mystmd 1.2.2__py3-none-any.whl → 1.2.3__py3-none-any.whl

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.
mystmd_py/myst.cjs CHANGED
@@ -884,7 +884,7 @@ var require_make_built_in = __commonJS({
884
884
  var defineProperty = Object.defineProperty;
885
885
  var stringSlice = uncurryThis("".slice);
886
886
  var replace = uncurryThis("".replace);
887
- var join20 = uncurryThis([].join);
887
+ var join19 = uncurryThis([].join);
888
888
  var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function() {
889
889
  return defineProperty(function() {
890
890
  }, "length", { value: 8 }).length !== 8;
@@ -917,7 +917,7 @@ var require_make_built_in = __commonJS({
917
917
  }
918
918
  var state = enforceInternalState(value);
919
919
  if (!hasOwn(state, "source")) {
920
- state.source = join20(TEMPLATE, typeof name3 == "string" ? name3 : "");
920
+ state.source = join19(TEMPLATE, typeof name3 == "string" ? name3 : "");
921
921
  }
922
922
  return value;
923
923
  };
@@ -3920,7 +3920,7 @@ var require_es_array_join = __commonJS({
3920
3920
  var ES3_STRINGS = IndexedObject != Object;
3921
3921
  var FORCED = ES3_STRINGS || !arrayMethodIsStrict("join", ",");
3922
3922
  $2({ target: "Array", proto: true, forced: FORCED }, {
3923
- join: function join20(separator) {
3923
+ join: function join19(separator) {
3924
3924
  return nativeJoin(toIndexedObject(this), separator === void 0 ? "," : separator);
3925
3925
  }
3926
3926
  });
@@ -5796,13 +5796,13 @@ var require_function_bind = __commonJS({
5796
5796
  var NATIVE_BIND = require_function_bind_native();
5797
5797
  var $Function = Function;
5798
5798
  var concat2 = uncurryThis([].concat);
5799
- var join20 = uncurryThis([].join);
5799
+ var join19 = uncurryThis([].join);
5800
5800
  var factories = {};
5801
5801
  var construct = function(C, argsLength, args) {
5802
5802
  if (!hasOwn(factories, argsLength)) {
5803
5803
  for (var list6 = [], i2 = 0; i2 < argsLength; i2++)
5804
5804
  list6[i2] = "a[" + i2 + "]";
5805
- factories[argsLength] = $Function("C,a", "return new C(" + join20(list6, ",") + ")");
5805
+ factories[argsLength] = $Function("C,a", "return new C(" + join19(list6, ",") + ")");
5806
5806
  }
5807
5807
  return factories[argsLength](C, args);
5808
5808
  };
@@ -9991,7 +9991,7 @@ var require_es_string_from_code_point = __commonJS({
9991
9991
  var $RangeError = RangeError;
9992
9992
  var fromCharCode = String.fromCharCode;
9993
9993
  var $fromCodePoint = String.fromCodePoint;
9994
- var join20 = uncurryThis([].join);
9994
+ var join19 = uncurryThis([].join);
9995
9995
  var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length != 1;
9996
9996
  $2({ target: "String", stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
9997
9997
  // eslint-disable-next-line no-unused-vars -- required for `.length`
@@ -10006,7 +10006,7 @@ var require_es_string_from_code_point = __commonJS({
10006
10006
  throw $RangeError(code7 + " is not a valid code point");
10007
10007
  elements[i2] = code7 < 65536 ? fromCharCode(code7) : fromCharCode(((code7 -= 65536) >> 10) + 55296, code7 % 1024 + 56320);
10008
10008
  }
10009
- return join20(elements, "");
10009
+ return join19(elements, "");
10010
10010
  }
10011
10011
  });
10012
10012
  }
@@ -10397,7 +10397,7 @@ var require_es_string_raw = __commonJS({
10397
10397
  var toString6 = require_to_string();
10398
10398
  var lengthOfArrayLike = require_length_of_array_like();
10399
10399
  var push = uncurryThis([].push);
10400
- var join20 = uncurryThis([].join);
10400
+ var join19 = uncurryThis([].join);
10401
10401
  $2({ target: "String", stat: true }, {
10402
10402
  raw: function raw2(template) {
10403
10403
  var rawTemplate = toIndexedObject(toObject(template).raw);
@@ -10410,7 +10410,7 @@ var require_es_string_raw = __commonJS({
10410
10410
  while (true) {
10411
10411
  push(elements, toString6(rawTemplate[i2++]));
10412
10412
  if (i2 === literalSegments)
10413
- return join20(elements, "");
10413
+ return join19(elements, "");
10414
10414
  if (i2 < argumentsLength)
10415
10415
  push(elements, toString6(arguments[i2]));
10416
10416
  }
@@ -10940,7 +10940,7 @@ var require_es_string_to_well_formed = __commonJS({
10940
10940
  var $Array = Array;
10941
10941
  var charAt = uncurryThis("".charAt);
10942
10942
  var charCodeAt = uncurryThis("".charCodeAt);
10943
- var join20 = uncurryThis([].join);
10943
+ var join19 = uncurryThis([].join);
10944
10944
  var $toWellFormed = "".toWellFormed;
10945
10945
  var REPLACEMENT_CHARACTER2 = "\uFFFD";
10946
10946
  var TO_STRING_CONVERSION_BUG = $toWellFormed && fails(function() {
@@ -10964,7 +10964,7 @@ var require_es_string_to_well_formed = __commonJS({
10964
10964
  result[++i2] = charAt(S3, i2);
10965
10965
  }
10966
10966
  }
10967
- return join20(result, "");
10967
+ return join19(result, "");
10968
10968
  }
10969
10969
  });
10970
10970
  }
@@ -12021,7 +12021,7 @@ var require_es_typed_array_join = __commonJS({
12021
12021
  var aTypedArray = ArrayBufferViewCore.aTypedArray;
12022
12022
  var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
12023
12023
  var $join = uncurryThis([].join);
12024
- exportTypedArrayMethod("join", function join20(separator) {
12024
+ exportTypedArrayMethod("join", function join19(separator) {
12025
12025
  return $join(aTypedArray(this), separator);
12026
12026
  });
12027
12027
  }
@@ -12392,12 +12392,12 @@ var require_es_typed_array_to_string = __commonJS({
12392
12392
  var Uint8Array2 = global2.Uint8Array;
12393
12393
  var Uint8ArrayPrototype = Uint8Array2 && Uint8Array2.prototype || {};
12394
12394
  var arrayToString = [].toString;
12395
- var join20 = uncurryThis([].join);
12395
+ var join19 = uncurryThis([].join);
12396
12396
  if (fails(function() {
12397
12397
  arrayToString.call({});
12398
12398
  })) {
12399
12399
  arrayToString = function toString6() {
12400
- return join20(this);
12400
+ return join19(this);
12401
12401
  };
12402
12402
  }
12403
12403
  var IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString != arrayToString;
@@ -13419,12 +13419,12 @@ var require_structured_clone_proper_transfer = __commonJS({
13419
13419
  var IS_BROWSER = require_engine_is_browser();
13420
13420
  var IS_DENO = require_engine_is_deno();
13421
13421
  var IS_NODE = require_engine_is_node();
13422
- var structuredClone = global2.structuredClone;
13423
- module2.exports = !!structuredClone && !fails(function() {
13422
+ var structuredClone2 = global2.structuredClone;
13423
+ module2.exports = !!structuredClone2 && !fails(function() {
13424
13424
  if (IS_DENO && V8 > 92 || IS_NODE && V8 > 94 || IS_BROWSER && V8 > 97)
13425
13425
  return false;
13426
13426
  var buffer2 = new ArrayBuffer(8);
13427
- var clone4 = structuredClone(buffer2, { transfer: [buffer2] });
13427
+ var clone4 = structuredClone2(buffer2, { transfer: [buffer2] });
13428
13428
  return buffer2.byteLength != 0 || clone4.byteLength != 8;
13429
13429
  });
13430
13430
  }
@@ -13983,7 +13983,7 @@ var require_web_structured_clone = __commonJS({
13983
13983
  }
13984
13984
  };
13985
13985
  $2({ global: true, enumerable: true, sham: !PROPER_TRANSFER, forced: FORCED_REPLACEMENT }, {
13986
- structuredClone: function structuredClone(value) {
13986
+ structuredClone: function structuredClone2(value) {
13987
13987
  var options = validateArgumentsLength(arguments.length, 1) > 1 && !isNullOrUndefined(arguments[1]) ? anObject(arguments[1]) : void 0;
13988
13988
  var transfer = options ? options.transfer : void 0;
13989
13989
  var transferredBuffers = false;
@@ -14085,7 +14085,7 @@ var require_string_punycode_to_ascii = __commonJS({
14085
14085
  var floor = Math.floor;
14086
14086
  var fromCharCode = String.fromCharCode;
14087
14087
  var charCodeAt = uncurryThis("".charCodeAt);
14088
- var join20 = uncurryThis([].join);
14088
+ var join19 = uncurryThis([].join);
14089
14089
  var push = uncurryThis([].push);
14090
14090
  var replace = uncurryThis("".replace);
14091
14091
  var split2 = uncurryThis("".split);
@@ -14183,7 +14183,7 @@ var require_string_punycode_to_ascii = __commonJS({
14183
14183
  delta++;
14184
14184
  n++;
14185
14185
  }
14186
- return join20(output2, "");
14186
+ return join19(output2, "");
14187
14187
  };
14188
14188
  module2.exports = function(input3) {
14189
14189
  var encoded = [];
@@ -14193,7 +14193,7 @@ var require_string_punycode_to_ascii = __commonJS({
14193
14193
  label = labels[i2];
14194
14194
  push(encoded, exec3(regexNonASCII, label) ? "xn--" + encode(label) : label);
14195
14195
  }
14196
- return join20(encoded, ".");
14196
+ return join19(encoded, ".");
14197
14197
  };
14198
14198
  }
14199
14199
  });
@@ -14253,7 +14253,7 @@ var require_web_url_search_params_constructor = __commonJS({
14253
14253
  var decodeURIComponent2 = global2.decodeURIComponent;
14254
14254
  var encodeURIComponent2 = global2.encodeURIComponent;
14255
14255
  var charAt = uncurryThis("".charAt);
14256
- var join20 = uncurryThis([].join);
14256
+ var join19 = uncurryThis([].join);
14257
14257
  var push = uncurryThis([].push);
14258
14258
  var replace = uncurryThis("".replace);
14259
14259
  var shift = uncurryThis([].shift);
@@ -14361,7 +14361,7 @@ var require_web_url_search_params_constructor = __commonJS({
14361
14361
  entry = split2(attribute2, "=");
14362
14362
  push(this.entries, {
14363
14363
  key: deserialize(shift(entry)),
14364
- value: deserialize(join20(entry, "="))
14364
+ value: deserialize(join19(entry, "="))
14365
14365
  });
14366
14366
  }
14367
14367
  }
@@ -14376,7 +14376,7 @@ var require_web_url_search_params_constructor = __commonJS({
14376
14376
  entry = entries2[index4++];
14377
14377
  push(result, serialize3(entry.key) + "=" + serialize3(entry.value));
14378
14378
  }
14379
- return join20(result, "&");
14379
+ return join19(result, "&");
14380
14380
  },
14381
14381
  update: function() {
14382
14382
  this.entries.length = 0;
@@ -14635,7 +14635,7 @@ var require_web_url_constructor = __commonJS({
14635
14635
  var pow = Math.pow;
14636
14636
  var charAt = uncurryThis("".charAt);
14637
14637
  var exec3 = uncurryThis(/./.exec);
14638
- var join20 = uncurryThis([].join);
14638
+ var join19 = uncurryThis([].join);
14639
14639
  var numberToString = uncurryThis(1 .toString);
14640
14640
  var pop = uncurryThis([].pop);
14641
14641
  var push = uncurryThis([].push);
@@ -14828,7 +14828,7 @@ var require_web_url_constructor = __commonJS({
14828
14828
  unshift(result, host % 256);
14829
14829
  host = floor(host / 256);
14830
14830
  }
14831
- return join20(result, ".");
14831
+ return join19(result, ".");
14832
14832
  } else if (typeof host == "object") {
14833
14833
  result = "";
14834
14834
  compress = findLongestZeroSequence(host);
@@ -15219,7 +15219,7 @@ var require_web_url_constructor = __commonJS({
15219
15219
  url.fragment = "";
15220
15220
  state = FRAGMENT;
15221
15221
  } else {
15222
- if (!startsWithWindowsDriveLetter(join20(arraySlice(codePoints, pointer), ""))) {
15222
+ if (!startsWithWindowsDriveLetter(join19(arraySlice(codePoints, pointer), ""))) {
15223
15223
  url.host = base5.host;
15224
15224
  url.path = arraySlice(base5.path);
15225
15225
  url.shortenPath();
@@ -15237,7 +15237,7 @@ var require_web_url_constructor = __commonJS({
15237
15237
  state = FILE_HOST;
15238
15238
  break;
15239
15239
  }
15240
- if (base5 && base5.scheme == "file" && !startsWithWindowsDriveLetter(join20(arraySlice(codePoints, pointer), ""))) {
15240
+ if (base5 && base5.scheme == "file" && !startsWithWindowsDriveLetter(join19(arraySlice(codePoints, pointer), ""))) {
15241
15241
  if (isWindowsDriveLetter(base5.path[0], true))
15242
15242
  push(url.path, base5.path[0]);
15243
15243
  else
@@ -15425,7 +15425,7 @@ var require_web_url_constructor = __commonJS({
15425
15425
  output2 += ":" + port;
15426
15426
  } else if (scheme == "file")
15427
15427
  output2 += "//";
15428
- output2 += url.cannotBeABaseURL ? path42[0] : path42.length ? "/" + join20(path42, "/") : "";
15428
+ output2 += url.cannotBeABaseURL ? path42[0] : path42.length ? "/" + join19(path42, "/") : "";
15429
15429
  if (query !== null)
15430
15430
  output2 += "?" + query;
15431
15431
  if (fragment !== null)
@@ -15524,7 +15524,7 @@ var require_web_url_constructor = __commonJS({
15524
15524
  // https://url.spec.whatwg.org/#dom-url-pathname
15525
15525
  getPathname: function() {
15526
15526
  var path42 = this.path;
15527
- return this.cannotBeABaseURL ? path42[0] : path42.length ? "/" + join20(path42, "/") : "";
15527
+ return this.cannotBeABaseURL ? path42[0] : path42.length ? "/" + join19(path42, "/") : "";
15528
15528
  },
15529
15529
  setPathname: function(pathname) {
15530
15530
  if (this.cannotBeABaseURL)
@@ -16712,7 +16712,7 @@ var require_array_buffer_transfer = __commonJS({
16712
16712
  var arrayBufferByteLength = require_array_buffer_byte_length();
16713
16713
  var PROPER_TRANSFER = require_structured_clone_proper_transfer();
16714
16714
  var TypeError2 = global2.TypeError;
16715
- var structuredClone = global2.structuredClone;
16715
+ var structuredClone2 = global2.structuredClone;
16716
16716
  var ArrayBuffer2 = global2.ArrayBuffer;
16717
16717
  var DataView2 = global2.DataView;
16718
16718
  var min = Math.min;
@@ -16729,7 +16729,7 @@ var require_array_buffer_transfer = __commonJS({
16729
16729
  var fixedLength = !isResizable || !isResizable(arrayBuffer);
16730
16730
  if (isDetached(arrayBuffer))
16731
16731
  throw TypeError2("ArrayBuffer is detached");
16732
- var newBuffer = structuredClone(arrayBuffer, { transfer: [arrayBuffer] });
16732
+ var newBuffer = structuredClone2(arrayBuffer, { transfer: [arrayBuffer] });
16733
16733
  if (byteLength2 == newByteLength && (preserveResizability || fixedLength))
16734
16734
  return newBuffer;
16735
16735
  if (byteLength2 >= newByteLength && (!preserveResizability || fixedLength))
@@ -20343,7 +20343,7 @@ var require_command = __commonJS({
20343
20343
  var EventEmitter4 = require("events").EventEmitter;
20344
20344
  var childProcess = require("child_process");
20345
20345
  var path42 = require("path");
20346
- var fs46 = require("fs");
20346
+ var fs45 = require("fs");
20347
20347
  var process11 = require("process");
20348
20348
  var { Argument: Argument2, humanReadableArgName } = require_argument();
20349
20349
  var { CommanderError: CommanderError2 } = require_error();
@@ -21180,11 +21180,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
21180
21180
  const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
21181
21181
  function findFile(baseDir, baseName) {
21182
21182
  const localBin = path42.resolve(baseDir, baseName);
21183
- if (fs46.existsSync(localBin))
21183
+ if (fs45.existsSync(localBin))
21184
21184
  return localBin;
21185
21185
  if (sourceExt.includes(path42.extname(baseName)))
21186
21186
  return void 0;
21187
- const foundExt = sourceExt.find((ext2) => fs46.existsSync(`${localBin}${ext2}`));
21187
+ const foundExt = sourceExt.find((ext2) => fs45.existsSync(`${localBin}${ext2}`));
21188
21188
  if (foundExt)
21189
21189
  return `${localBin}${foundExt}`;
21190
21190
  return void 0;
@@ -21196,7 +21196,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
21196
21196
  if (this._scriptPath) {
21197
21197
  let resolvedScriptPath;
21198
21198
  try {
21199
- resolvedScriptPath = fs46.realpathSync(this._scriptPath);
21199
+ resolvedScriptPath = fs45.realpathSync(this._scriptPath);
21200
21200
  } catch (err) {
21201
21201
  resolvedScriptPath = this._scriptPath;
21202
21202
  }
@@ -44282,7 +44282,7 @@ var require_util2 = __commonJS({
44282
44282
  return path42;
44283
44283
  });
44284
44284
  exports2.normalize = normalize6;
44285
- function join20(aRoot, aPath) {
44285
+ function join19(aRoot, aPath) {
44286
44286
  if (aRoot === "") {
44287
44287
  aRoot = ".";
44288
44288
  }
@@ -44314,7 +44314,7 @@ var require_util2 = __commonJS({
44314
44314
  }
44315
44315
  return joined;
44316
44316
  }
44317
- exports2.join = join20;
44317
+ exports2.join = join19;
44318
44318
  exports2.isAbsolute = function(aPath) {
44319
44319
  return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
44320
44320
  };
@@ -44528,7 +44528,7 @@ var require_util2 = __commonJS({
44528
44528
  parsed.path = parsed.path.substring(0, index4 + 1);
44529
44529
  }
44530
44530
  }
44531
- sourceURL = join20(urlGenerate(parsed), sourceURL);
44531
+ sourceURL = join19(urlGenerate(parsed), sourceURL);
44532
44532
  }
44533
44533
  return normalize6(sourceURL);
44534
44534
  }
@@ -45976,7 +45976,7 @@ var require_previous_map = __commonJS({
45976
45976
  "use strict";
45977
45977
  var { SourceMapConsumer, SourceMapGenerator } = require_source_map();
45978
45978
  var { existsSync: existsSync2, readFileSync: readFileSync2 } = require("fs");
45979
- var { dirname: dirname7, join: join20 } = require("path");
45979
+ var { dirname: dirname7, join: join19 } = require("path");
45980
45980
  function fromBase64(str2) {
45981
45981
  if (Buffer) {
45982
45982
  return Buffer.from(str2, "base64").toString();
@@ -46078,7 +46078,7 @@ var require_previous_map = __commonJS({
46078
46078
  } else if (this.annotation) {
46079
46079
  let map14 = this.annotation;
46080
46080
  if (file)
46081
- map14 = join20(dirname7(file), map14);
46081
+ map14 = join19(dirname7(file), map14);
46082
46082
  return this.loadFile(map14);
46083
46083
  }
46084
46084
  }
@@ -91251,7 +91251,7 @@ var require_windows = __commonJS({
91251
91251
  "../../node_modules/isexe/windows.js"(exports2, module2) {
91252
91252
  module2.exports = isexe;
91253
91253
  isexe.sync = sync2;
91254
- var fs46 = require("fs");
91254
+ var fs45 = require("fs");
91255
91255
  function checkPathExt(path42, options) {
91256
91256
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
91257
91257
  if (!pathext) {
@@ -91276,12 +91276,12 @@ var require_windows = __commonJS({
91276
91276
  return checkPathExt(path42, options);
91277
91277
  }
91278
91278
  function isexe(path42, options, cb) {
91279
- fs46.stat(path42, function(er, stat2) {
91279
+ fs45.stat(path42, function(er, stat2) {
91280
91280
  cb(er, er ? false : checkStat(stat2, path42, options));
91281
91281
  });
91282
91282
  }
91283
91283
  function sync2(path42, options) {
91284
- return checkStat(fs46.statSync(path42), path42, options);
91284
+ return checkStat(fs45.statSync(path42), path42, options);
91285
91285
  }
91286
91286
  }
91287
91287
  });
@@ -91291,14 +91291,14 @@ var require_mode = __commonJS({
91291
91291
  "../../node_modules/isexe/mode.js"(exports2, module2) {
91292
91292
  module2.exports = isexe;
91293
91293
  isexe.sync = sync2;
91294
- var fs46 = require("fs");
91294
+ var fs45 = require("fs");
91295
91295
  function isexe(path42, options, cb) {
91296
- fs46.stat(path42, function(er, stat2) {
91296
+ fs45.stat(path42, function(er, stat2) {
91297
91297
  cb(er, er ? false : checkStat(stat2, options));
91298
91298
  });
91299
91299
  }
91300
91300
  function sync2(path42, options) {
91301
- return checkStat(fs46.statSync(path42), options);
91301
+ return checkStat(fs45.statSync(path42), options);
91302
91302
  }
91303
91303
  function checkStat(stat2, options) {
91304
91304
  return stat2.isFile() && checkMode(stat2, options);
@@ -91322,7 +91322,7 @@ var require_mode = __commonJS({
91322
91322
  // ../../node_modules/isexe/index.js
91323
91323
  var require_isexe = __commonJS({
91324
91324
  "../../node_modules/isexe/index.js"(exports2, module2) {
91325
- var fs46 = require("fs");
91325
+ var fs45 = require("fs");
91326
91326
  var core4;
91327
91327
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
91328
91328
  core4 = require_windows();
@@ -91378,7 +91378,7 @@ var require_isexe = __commonJS({
91378
91378
  var require_lib15 = __commonJS({
91379
91379
  "../../node_modules/which/lib/index.js"(exports2, module2) {
91380
91380
  var isexe = require_isexe();
91381
- var { join: join20, delimiter: delimiter2, sep: sep5, posix: posix2 } = require("path");
91381
+ var { join: join19, delimiter: delimiter2, sep: sep5, posix: posix2 } = require("path");
91382
91382
  var isWindows = process.platform === "win32";
91383
91383
  var rSlash = new RegExp(`[${posix2.sep}${sep5 === posix2.sep ? "" : sep5}]`.replace(/(\\)/g, "\\$1"));
91384
91384
  var rRel = new RegExp(`^\\.${rSlash.source}`);
@@ -91411,7 +91411,7 @@ var require_lib15 = __commonJS({
91411
91411
  var getPathPart = (raw2, cmd) => {
91412
91412
  const pathPart = /^".*"$/.test(raw2) ? raw2.slice(1, -1) : raw2;
91413
91413
  const prefix2 = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "";
91414
- return prefix2 + join20(pathPart, cmd);
91414
+ return prefix2 + join19(pathPart, cmd);
91415
91415
  };
91416
91416
  var which6 = async (cmd, opt = {}) => {
91417
91417
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
@@ -96805,9 +96805,9 @@ var require_utils8 = __commonJS({
96805
96805
  // ../../node_modules/adm-zip/util/fattr.js
96806
96806
  var require_fattr = __commonJS({
96807
96807
  "../../node_modules/adm-zip/util/fattr.js"(exports2, module2) {
96808
- var fs46 = require_fileSystem().require();
96808
+ var fs45 = require_fileSystem().require();
96809
96809
  var pth = require("path");
96810
- fs46.existsSync = fs46.existsSync || pth.existsSync;
96810
+ fs45.existsSync = fs45.existsSync || pth.existsSync;
96811
96811
  module2.exports = function(path42) {
96812
96812
  var _path3 = path42 || "", _obj = newAttr(), _stat = null;
96813
96813
  function newAttr() {
@@ -96820,8 +96820,8 @@ var require_fattr = __commonJS({
96820
96820
  atime: 0
96821
96821
  };
96822
96822
  }
96823
- if (_path3 && fs46.existsSync(_path3)) {
96824
- _stat = fs46.statSync(_path3);
96823
+ if (_path3 && fs45.existsSync(_path3)) {
96824
+ _stat = fs45.statSync(_path3);
96825
96825
  _obj.directory = _stat.isDirectory();
96826
96826
  _obj.mtime = _stat.mtime;
96827
96827
  _obj.atime = _stat.atime;
@@ -98082,8 +98082,8 @@ var require_adm_zip = __commonJS({
98082
98082
  return null;
98083
98083
  }
98084
98084
  function fixPath(zipPath) {
98085
- const { join: join20, normalize: normalize6, sep: sep5 } = pth.posix;
98086
- return join20(".", normalize6(sep5 + zipPath.split("\\").join(sep5) + sep5));
98085
+ const { join: join19, normalize: normalize6, sep: sep5 } = pth.posix;
98086
+ return join19(".", normalize6(sep5 + zipPath.split("\\").join(sep5) + sep5));
98087
98087
  }
98088
98088
  return {
98089
98089
  /**
@@ -98976,7 +98976,7 @@ var require_cjs3 = __commonJS({
98976
98976
  var require_lib16 = __commonJS({
98977
98977
  "../myst-execute/node_modules/which/lib/index.js"(exports2, module2) {
98978
98978
  var { isexe, sync: isexeSync } = require_cjs3();
98979
- var { join: join20, delimiter: delimiter2, sep: sep5, posix: posix2 } = require("path");
98979
+ var { join: join19, delimiter: delimiter2, sep: sep5, posix: posix2 } = require("path");
98980
98980
  var isWindows = process.platform === "win32";
98981
98981
  var rSlash = new RegExp(`[${posix2.sep}${sep5 === posix2.sep ? "" : sep5}]`.replace(/(\\)/g, "\\$1"));
98982
98982
  var rRel = new RegExp(`^\\.${rSlash.source}`);
@@ -99005,7 +99005,7 @@ var require_lib16 = __commonJS({
99005
99005
  var getPathPart = (raw2, cmd) => {
99006
99006
  const pathPart = /^".*"$/.test(raw2) ? raw2.slice(1, -1) : raw2;
99007
99007
  const prefix2 = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "";
99008
- return prefix2 + join20(pathPart, cmd);
99008
+ return prefix2 + join19(pathPart, cmd);
99009
99009
  };
99010
99010
  var which6 = async (cmd, opt = {}) => {
99011
99011
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
@@ -100590,15 +100590,15 @@ var require_picomatch2 = __commonJS({
100590
100590
  var require_readdirp = __commonJS({
100591
100591
  "../../node_modules/readdirp/index.js"(exports2, module2) {
100592
100592
  "use strict";
100593
- var fs46 = require("fs");
100593
+ var fs45 = require("fs");
100594
100594
  var { Readable } = require("stream");
100595
100595
  var sysPath = require("path");
100596
100596
  var { promisify: promisify5 } = require("util");
100597
100597
  var picomatch = require_picomatch2();
100598
- var readdir2 = promisify5(fs46.readdir);
100599
- var stat2 = promisify5(fs46.stat);
100600
- var lstat2 = promisify5(fs46.lstat);
100601
- var realpath2 = promisify5(fs46.realpath);
100598
+ var readdir2 = promisify5(fs45.readdir);
100599
+ var stat2 = promisify5(fs45.stat);
100600
+ var lstat2 = promisify5(fs45.lstat);
100601
+ var realpath2 = promisify5(fs45.realpath);
100602
100602
  var BANG = "!";
100603
100603
  var RECURSIVE_ERROR_CODE = "READDIRP_RECURSIVE_ERROR";
100604
100604
  var NORMAL_FLOW_ERRORS = /* @__PURE__ */ new Set(["ENOENT", "EPERM", "EACCES", "ELOOP", RECURSIVE_ERROR_CODE]);
@@ -100674,7 +100674,7 @@ var require_readdirp = __commonJS({
100674
100674
  this._wantsFile = [FILE_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE].includes(type2);
100675
100675
  this._wantsEverything = type2 === EVERYTHING_TYPE;
100676
100676
  this._root = sysPath.resolve(root6);
100677
- this._isDirent = "Dirent" in fs46 && !opts.alwaysStat;
100677
+ this._isDirent = "Dirent" in fs45 && !opts.alwaysStat;
100678
100678
  this._statsProp = this._isDirent ? "dirent" : "stats";
100679
100679
  this._rdOptions = { encoding: "utf8", withFileTypes: this._isDirent };
100680
100680
  this.parents = [this._exploreDir(root6, 1)];
@@ -102553,7 +102553,7 @@ var require_constants5 = __commonJS({
102553
102553
  var require_nodefs_handler = __commonJS({
102554
102554
  "../../node_modules/chokidar/lib/nodefs-handler.js"(exports2, module2) {
102555
102555
  "use strict";
102556
- var fs46 = require("fs");
102556
+ var fs45 = require("fs");
102557
102557
  var sysPath = require("path");
102558
102558
  var { promisify: promisify5 } = require("util");
102559
102559
  var isBinaryPath = require_is_binary_path();
@@ -102576,11 +102576,11 @@ var require_nodefs_handler = __commonJS({
102576
102576
  STAR
102577
102577
  } = require_constants5();
102578
102578
  var THROTTLE_MODE_WATCH = "watch";
102579
- var open2 = promisify5(fs46.open);
102580
- var stat2 = promisify5(fs46.stat);
102581
- var lstat2 = promisify5(fs46.lstat);
102582
- var close2 = promisify5(fs46.close);
102583
- var fsrealpath = promisify5(fs46.realpath);
102579
+ var open2 = promisify5(fs45.open);
102580
+ var stat2 = promisify5(fs45.stat);
102581
+ var lstat2 = promisify5(fs45.lstat);
102582
+ var close2 = promisify5(fs45.close);
102583
+ var fsrealpath = promisify5(fs45.realpath);
102584
102584
  var statMethods = { lstat: lstat2, stat: stat2 };
102585
102585
  var foreach = (val, fn) => {
102586
102586
  if (val instanceof Set) {
@@ -102627,7 +102627,7 @@ var require_nodefs_handler = __commonJS({
102627
102627
  }
102628
102628
  };
102629
102629
  try {
102630
- return fs46.watch(path42, options, handleEvent);
102630
+ return fs45.watch(path42, options, handleEvent);
102631
102631
  } catch (error) {
102632
102632
  errHandler(error);
102633
102633
  }
@@ -102714,7 +102714,7 @@ var require_nodefs_handler = __commonJS({
102714
102714
  if (copts && (copts.persistent < options.persistent || copts.interval > options.interval)) {
102715
102715
  listeners = cont.listeners;
102716
102716
  rawEmitters = cont.rawEmitters;
102717
- fs46.unwatchFile(fullPath2);
102717
+ fs45.unwatchFile(fullPath2);
102718
102718
  cont = void 0;
102719
102719
  }
102720
102720
  if (cont) {
@@ -102725,7 +102725,7 @@ var require_nodefs_handler = __commonJS({
102725
102725
  listeners: listener2,
102726
102726
  rawEmitters: rawEmitter,
102727
102727
  options,
102728
- watcher: fs46.watchFile(fullPath2, options, (curr, prev) => {
102728
+ watcher: fs45.watchFile(fullPath2, options, (curr, prev) => {
102729
102729
  foreach(cont.rawEmitters, (rawEmitter2) => {
102730
102730
  rawEmitter2(EV_CHANGE, fullPath2, { curr, prev });
102731
102731
  });
@@ -102742,7 +102742,7 @@ var require_nodefs_handler = __commonJS({
102742
102742
  delFromSet(cont, KEY_RAW, rawEmitter);
102743
102743
  if (isEmptySet(cont.listeners)) {
102744
102744
  FsWatchFileInstances.delete(fullPath2);
102745
- fs46.unwatchFile(fullPath2);
102745
+ fs45.unwatchFile(fullPath2);
102746
102746
  cont.options = cont.watcher = void 0;
102747
102747
  Object.freeze(cont);
102748
102748
  }
@@ -103062,7 +103062,7 @@ var require_nodefs_handler = __commonJS({
103062
103062
  var require_fsevents_handler = __commonJS({
103063
103063
  "../../node_modules/chokidar/lib/fsevents-handler.js"(exports2, module2) {
103064
103064
  "use strict";
103065
- var fs46 = require("fs");
103065
+ var fs45 = require("fs");
103066
103066
  var sysPath = require("path");
103067
103067
  var { promisify: promisify5 } = require("util");
103068
103068
  var fsevents;
@@ -103107,9 +103107,9 @@ var require_fsevents_handler = __commonJS({
103107
103107
  IDENTITY_FN
103108
103108
  } = require_constants5();
103109
103109
  var Depth = (value) => isNaN(value) ? {} : { depth: value };
103110
- var stat2 = promisify5(fs46.stat);
103111
- var lstat2 = promisify5(fs46.lstat);
103112
- var realpath2 = promisify5(fs46.realpath);
103110
+ var stat2 = promisify5(fs45.stat);
103111
+ var lstat2 = promisify5(fs45.lstat);
103112
+ var realpath2 = promisify5(fs45.realpath);
103113
103113
  var statMethods = { stat: stat2, lstat: lstat2 };
103114
103114
  var FSEventsWatchers = /* @__PURE__ */ new Map();
103115
103115
  var consolidateThreshhold = 10;
@@ -103482,7 +103482,7 @@ var require_chokidar = __commonJS({
103482
103482
  "../../node_modules/chokidar/index.js"(exports2) {
103483
103483
  "use strict";
103484
103484
  var { EventEmitter: EventEmitter4 } = require("events");
103485
- var fs46 = require("fs");
103485
+ var fs45 = require("fs");
103486
103486
  var sysPath = require("path");
103487
103487
  var { promisify: promisify5 } = require("util");
103488
103488
  var readdirp = require_readdirp();
@@ -103527,8 +103527,8 @@ var require_chokidar = __commonJS({
103527
103527
  isMacos,
103528
103528
  isIBMi
103529
103529
  } = require_constants5();
103530
- var stat2 = promisify5(fs46.stat);
103531
- var readdir2 = promisify5(fs46.readdir);
103530
+ var stat2 = promisify5(fs45.stat);
103531
+ var readdir2 = promisify5(fs45.readdir);
103532
103532
  var arrify = (value = []) => Array.isArray(value) ? value : [value];
103533
103533
  var flatten2 = (list6, result = []) => {
103534
103534
  list6.forEach((item) => {
@@ -104070,7 +104070,7 @@ var require_chokidar = __commonJS({
104070
104070
  }
104071
104071
  const now = /* @__PURE__ */ new Date();
104072
104072
  const awaitWriteFinish = (prevStat) => {
104073
- fs46.stat(fullPath2, (err, curStat) => {
104073
+ fs45.stat(fullPath2, (err, curStat) => {
104074
104074
  if (err || !this._pendingWrites.has(path42)) {
104075
104075
  if (err && err.code !== "ENOENT")
104076
104076
  awfEmit(err);
@@ -108220,7 +108220,7 @@ var require_filters = __commonJS({
108220
108220
  return r2.copySafeness(str2, res);
108221
108221
  }
108222
108222
  _exports.indent = indent2;
108223
- function join20(arr, del2, attr) {
108223
+ function join19(arr, del2, attr) {
108224
108224
  del2 = del2 || "";
108225
108225
  if (attr) {
108226
108226
  arr = lib.map(arr, function(v) {
@@ -108229,7 +108229,7 @@ var require_filters = __commonJS({
108229
108229
  }
108230
108230
  return arr.join(del2);
108231
108231
  }
108232
- _exports.join = join20;
108232
+ _exports.join = join19;
108233
108233
  function last(arr) {
108234
108234
  return arr[arr.length - 1];
108235
108235
  }
@@ -108663,7 +108663,7 @@ var require_node_loaders = __commonJS({
108663
108663
  };
108664
108664
  return _setPrototypeOf(o, p5);
108665
108665
  }
108666
- var fs46 = require("fs");
108666
+ var fs45 = require("fs");
108667
108667
  var path42 = require("path");
108668
108668
  var Loader = require_loader();
108669
108669
  var _require = require_precompiled_loader();
@@ -108692,7 +108692,7 @@ var require_node_loaders = __commonJS({
108692
108692
  } catch (e2) {
108693
108693
  throw new Error("watch requires chokidar to be installed");
108694
108694
  }
108695
- var paths = _this.searchPaths.filter(fs46.existsSync);
108695
+ var paths = _this.searchPaths.filter(fs45.existsSync);
108696
108696
  var watcher = chokidar3.watch(paths);
108697
108697
  watcher.on("all", function(event, fullname) {
108698
108698
  fullname = path42.resolve(fullname);
@@ -108713,7 +108713,7 @@ var require_node_loaders = __commonJS({
108713
108713
  for (var i2 = 0; i2 < paths.length; i2++) {
108714
108714
  var basePath = path42.resolve(paths[i2]);
108715
108715
  var p5 = path42.resolve(paths[i2], name3);
108716
- if (p5.indexOf(basePath) === 0 && fs46.existsSync(p5)) {
108716
+ if (p5.indexOf(basePath) === 0 && fs45.existsSync(p5)) {
108717
108717
  fullpath = p5;
108718
108718
  break;
108719
108719
  }
@@ -108723,7 +108723,7 @@ var require_node_loaders = __commonJS({
108723
108723
  }
108724
108724
  this.pathsToNames[fullpath] = name3;
108725
108725
  var source2 = {
108726
- src: fs46.readFileSync(fullpath, "utf-8"),
108726
+ src: fs45.readFileSync(fullpath, "utf-8"),
108727
108727
  path: fullpath,
108728
108728
  noCache: this.noCache
108729
108729
  };
@@ -108775,7 +108775,7 @@ var require_node_loaders = __commonJS({
108775
108775
  }
108776
108776
  this.pathsToNames[fullpath] = name3;
108777
108777
  var source2 = {
108778
- src: fs46.readFileSync(fullpath, "utf-8"),
108778
+ src: fs45.readFileSync(fullpath, "utf-8"),
108779
108779
  path: fullpath,
108780
108780
  noCache: this.noCache
108781
108781
  };
@@ -109532,7 +109532,7 @@ var require_precompile_global = __commonJS({
109532
109532
  var require_precompile = __commonJS({
109533
109533
  "../../node_modules/nunjucks/src/precompile.js"(exports2, module2) {
109534
109534
  "use strict";
109535
- var fs46 = require("fs");
109535
+ var fs45 = require("fs");
109536
109536
  var path42 = require("path");
109537
109537
  var _require = require_lib17();
109538
109538
  var _prettifyError = _require._prettifyError;
@@ -109565,14 +109565,14 @@ var require_precompile = __commonJS({
109565
109565
  if (opts.isString) {
109566
109566
  return precompileString(input3, opts);
109567
109567
  }
109568
- var pathStats = fs46.existsSync(input3) && fs46.statSync(input3);
109568
+ var pathStats = fs45.existsSync(input3) && fs45.statSync(input3);
109569
109569
  var precompiled = [];
109570
109570
  var templates = [];
109571
109571
  function addTemplates(dir) {
109572
- fs46.readdirSync(dir).forEach(function(file) {
109572
+ fs45.readdirSync(dir).forEach(function(file) {
109573
109573
  var filepath = path42.join(dir, file);
109574
109574
  var subpath = filepath.substr(path42.join(input3, "/").length);
109575
- var stat2 = fs46.statSync(filepath);
109575
+ var stat2 = fs45.statSync(filepath);
109576
109576
  if (stat2 && stat2.isDirectory()) {
109577
109577
  subpath += "/";
109578
109578
  if (!match3(subpath, opts.exclude)) {
@@ -109584,13 +109584,13 @@ var require_precompile = __commonJS({
109584
109584
  });
109585
109585
  }
109586
109586
  if (pathStats.isFile()) {
109587
- precompiled.push(_precompile(fs46.readFileSync(input3, "utf-8"), opts.name || input3, env7));
109587
+ precompiled.push(_precompile(fs45.readFileSync(input3, "utf-8"), opts.name || input3, env7));
109588
109588
  } else if (pathStats.isDirectory()) {
109589
109589
  addTemplates(input3);
109590
109590
  for (var i2 = 0; i2 < templates.length; i2++) {
109591
109591
  var name3 = templates[i2].replace(path42.join(input3, "/"), "");
109592
109592
  try {
109593
- precompiled.push(_precompile(fs46.readFileSync(templates[i2], "utf-8"), name3, env7));
109593
+ precompiled.push(_precompile(fs45.readFileSync(templates[i2], "utf-8"), name3, env7));
109594
109594
  } catch (e2) {
109595
109595
  if (opts.force) {
109596
109596
  console.error(e2);
@@ -117472,14 +117472,14 @@ var require_build = __commonJS({
117472
117472
  super(...arguments), this.xmlKeys = { character: "m:val" };
117473
117473
  }
117474
117474
  }
117475
- class fs46 extends s5 {
117475
+ class fs45 extends s5 {
117476
117476
  constructor(e4) {
117477
117477
  super("m:endChr"), this.root.push(new ds({ character: e4 }));
117478
117478
  }
117479
117479
  }
117480
117480
  class ms extends s5 {
117481
117481
  constructor(e4) {
117482
- super("m:dPr"), e4 && (this.root.push(new ps(e4.beginningCharacter)), this.root.push(new fs46(e4.endingCharacter)));
117482
+ super("m:dPr"), e4 && (this.root.push(new ps(e4.beginningCharacter)), this.root.push(new fs45(e4.endingCharacter)));
117483
117483
  }
117484
117484
  }
117485
117485
  class ws extends s5 {
@@ -121488,56 +121488,56 @@ var require_polyfills = __commonJS({
121488
121488
  }
121489
121489
  var chdir;
121490
121490
  module2.exports = patch4;
121491
- function patch4(fs46) {
121491
+ function patch4(fs45) {
121492
121492
  if (constants2.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
121493
- patchLchmod(fs46);
121494
- }
121495
- if (!fs46.lutimes) {
121496
- patchLutimes(fs46);
121497
- }
121498
- fs46.chown = chownFix(fs46.chown);
121499
- fs46.fchown = chownFix(fs46.fchown);
121500
- fs46.lchown = chownFix(fs46.lchown);
121501
- fs46.chmod = chmodFix(fs46.chmod);
121502
- fs46.fchmod = chmodFix(fs46.fchmod);
121503
- fs46.lchmod = chmodFix(fs46.lchmod);
121504
- fs46.chownSync = chownFixSync(fs46.chownSync);
121505
- fs46.fchownSync = chownFixSync(fs46.fchownSync);
121506
- fs46.lchownSync = chownFixSync(fs46.lchownSync);
121507
- fs46.chmodSync = chmodFixSync(fs46.chmodSync);
121508
- fs46.fchmodSync = chmodFixSync(fs46.fchmodSync);
121509
- fs46.lchmodSync = chmodFixSync(fs46.lchmodSync);
121510
- fs46.stat = statFix(fs46.stat);
121511
- fs46.fstat = statFix(fs46.fstat);
121512
- fs46.lstat = statFix(fs46.lstat);
121513
- fs46.statSync = statFixSync(fs46.statSync);
121514
- fs46.fstatSync = statFixSync(fs46.fstatSync);
121515
- fs46.lstatSync = statFixSync(fs46.lstatSync);
121516
- if (fs46.chmod && !fs46.lchmod) {
121517
- fs46.lchmod = function(path42, mode, cb) {
121493
+ patchLchmod(fs45);
121494
+ }
121495
+ if (!fs45.lutimes) {
121496
+ patchLutimes(fs45);
121497
+ }
121498
+ fs45.chown = chownFix(fs45.chown);
121499
+ fs45.fchown = chownFix(fs45.fchown);
121500
+ fs45.lchown = chownFix(fs45.lchown);
121501
+ fs45.chmod = chmodFix(fs45.chmod);
121502
+ fs45.fchmod = chmodFix(fs45.fchmod);
121503
+ fs45.lchmod = chmodFix(fs45.lchmod);
121504
+ fs45.chownSync = chownFixSync(fs45.chownSync);
121505
+ fs45.fchownSync = chownFixSync(fs45.fchownSync);
121506
+ fs45.lchownSync = chownFixSync(fs45.lchownSync);
121507
+ fs45.chmodSync = chmodFixSync(fs45.chmodSync);
121508
+ fs45.fchmodSync = chmodFixSync(fs45.fchmodSync);
121509
+ fs45.lchmodSync = chmodFixSync(fs45.lchmodSync);
121510
+ fs45.stat = statFix(fs45.stat);
121511
+ fs45.fstat = statFix(fs45.fstat);
121512
+ fs45.lstat = statFix(fs45.lstat);
121513
+ fs45.statSync = statFixSync(fs45.statSync);
121514
+ fs45.fstatSync = statFixSync(fs45.fstatSync);
121515
+ fs45.lstatSync = statFixSync(fs45.lstatSync);
121516
+ if (fs45.chmod && !fs45.lchmod) {
121517
+ fs45.lchmod = function(path42, mode, cb) {
121518
121518
  if (cb)
121519
121519
  process.nextTick(cb);
121520
121520
  };
121521
- fs46.lchmodSync = function() {
121521
+ fs45.lchmodSync = function() {
121522
121522
  };
121523
121523
  }
121524
- if (fs46.chown && !fs46.lchown) {
121525
- fs46.lchown = function(path42, uid, gid, cb) {
121524
+ if (fs45.chown && !fs45.lchown) {
121525
+ fs45.lchown = function(path42, uid, gid, cb) {
121526
121526
  if (cb)
121527
121527
  process.nextTick(cb);
121528
121528
  };
121529
- fs46.lchownSync = function() {
121529
+ fs45.lchownSync = function() {
121530
121530
  };
121531
121531
  }
121532
121532
  if (platform === "win32") {
121533
- fs46.rename = typeof fs46.rename !== "function" ? fs46.rename : function(fs$rename) {
121533
+ fs45.rename = typeof fs45.rename !== "function" ? fs45.rename : function(fs$rename) {
121534
121534
  function rename(from4, to, cb) {
121535
121535
  var start = Date.now();
121536
121536
  var backoff = 0;
121537
121537
  fs$rename(from4, to, function CB(er) {
121538
121538
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
121539
121539
  setTimeout(function() {
121540
- fs46.stat(to, function(stater, st) {
121540
+ fs45.stat(to, function(stater, st) {
121541
121541
  if (stater && stater.code === "ENOENT")
121542
121542
  fs$rename(from4, to, CB);
121543
121543
  else
@@ -121555,9 +121555,9 @@ var require_polyfills = __commonJS({
121555
121555
  if (Object.setPrototypeOf)
121556
121556
  Object.setPrototypeOf(rename, fs$rename);
121557
121557
  return rename;
121558
- }(fs46.rename);
121558
+ }(fs45.rename);
121559
121559
  }
121560
- fs46.read = typeof fs46.read !== "function" ? fs46.read : function(fs$read) {
121560
+ fs45.read = typeof fs45.read !== "function" ? fs45.read : function(fs$read) {
121561
121561
  function read2(fd, buffer2, offset, length, position6, callback_) {
121562
121562
  var callback;
121563
121563
  if (callback_ && typeof callback_ === "function") {
@@ -121565,23 +121565,23 @@ var require_polyfills = __commonJS({
121565
121565
  callback = function(er, _3, __) {
121566
121566
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
121567
121567
  eagCounter++;
121568
- return fs$read.call(fs46, fd, buffer2, offset, length, position6, callback);
121568
+ return fs$read.call(fs45, fd, buffer2, offset, length, position6, callback);
121569
121569
  }
121570
121570
  callback_.apply(this, arguments);
121571
121571
  };
121572
121572
  }
121573
- return fs$read.call(fs46, fd, buffer2, offset, length, position6, callback);
121573
+ return fs$read.call(fs45, fd, buffer2, offset, length, position6, callback);
121574
121574
  }
121575
121575
  if (Object.setPrototypeOf)
121576
121576
  Object.setPrototypeOf(read2, fs$read);
121577
121577
  return read2;
121578
- }(fs46.read);
121579
- fs46.readSync = typeof fs46.readSync !== "function" ? fs46.readSync : function(fs$readSync) {
121578
+ }(fs45.read);
121579
+ fs45.readSync = typeof fs45.readSync !== "function" ? fs45.readSync : function(fs$readSync) {
121580
121580
  return function(fd, buffer2, offset, length, position6) {
121581
121581
  var eagCounter = 0;
121582
121582
  while (true) {
121583
121583
  try {
121584
- return fs$readSync.call(fs46, fd, buffer2, offset, length, position6);
121584
+ return fs$readSync.call(fs45, fd, buffer2, offset, length, position6);
121585
121585
  } catch (er) {
121586
121586
  if (er.code === "EAGAIN" && eagCounter < 10) {
121587
121587
  eagCounter++;
@@ -121591,10 +121591,10 @@ var require_polyfills = __commonJS({
121591
121591
  }
121592
121592
  }
121593
121593
  };
121594
- }(fs46.readSync);
121595
- function patchLchmod(fs47) {
121596
- fs47.lchmod = function(path42, mode, callback) {
121597
- fs47.open(
121594
+ }(fs45.readSync);
121595
+ function patchLchmod(fs46) {
121596
+ fs46.lchmod = function(path42, mode, callback) {
121597
+ fs46.open(
121598
121598
  path42,
121599
121599
  constants2.O_WRONLY | constants2.O_SYMLINK,
121600
121600
  mode,
@@ -121604,8 +121604,8 @@ var require_polyfills = __commonJS({
121604
121604
  callback(err);
121605
121605
  return;
121606
121606
  }
121607
- fs47.fchmod(fd, mode, function(err2) {
121608
- fs47.close(fd, function(err22) {
121607
+ fs46.fchmod(fd, mode, function(err2) {
121608
+ fs46.close(fd, function(err22) {
121609
121609
  if (callback)
121610
121610
  callback(err2 || err22);
121611
121611
  });
@@ -121613,68 +121613,68 @@ var require_polyfills = __commonJS({
121613
121613
  }
121614
121614
  );
121615
121615
  };
121616
- fs47.lchmodSync = function(path42, mode) {
121617
- var fd = fs47.openSync(path42, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
121616
+ fs46.lchmodSync = function(path42, mode) {
121617
+ var fd = fs46.openSync(path42, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
121618
121618
  var threw = true;
121619
121619
  var ret;
121620
121620
  try {
121621
- ret = fs47.fchmodSync(fd, mode);
121621
+ ret = fs46.fchmodSync(fd, mode);
121622
121622
  threw = false;
121623
121623
  } finally {
121624
121624
  if (threw) {
121625
121625
  try {
121626
- fs47.closeSync(fd);
121626
+ fs46.closeSync(fd);
121627
121627
  } catch (er) {
121628
121628
  }
121629
121629
  } else {
121630
- fs47.closeSync(fd);
121630
+ fs46.closeSync(fd);
121631
121631
  }
121632
121632
  }
121633
121633
  return ret;
121634
121634
  };
121635
121635
  }
121636
- function patchLutimes(fs47) {
121637
- if (constants2.hasOwnProperty("O_SYMLINK") && fs47.futimes) {
121638
- fs47.lutimes = function(path42, at, mt, cb) {
121639
- fs47.open(path42, constants2.O_SYMLINK, function(er, fd) {
121636
+ function patchLutimes(fs46) {
121637
+ if (constants2.hasOwnProperty("O_SYMLINK") && fs46.futimes) {
121638
+ fs46.lutimes = function(path42, at, mt, cb) {
121639
+ fs46.open(path42, constants2.O_SYMLINK, function(er, fd) {
121640
121640
  if (er) {
121641
121641
  if (cb)
121642
121642
  cb(er);
121643
121643
  return;
121644
121644
  }
121645
- fs47.futimes(fd, at, mt, function(er2) {
121646
- fs47.close(fd, function(er22) {
121645
+ fs46.futimes(fd, at, mt, function(er2) {
121646
+ fs46.close(fd, function(er22) {
121647
121647
  if (cb)
121648
121648
  cb(er2 || er22);
121649
121649
  });
121650
121650
  });
121651
121651
  });
121652
121652
  };
121653
- fs47.lutimesSync = function(path42, at, mt) {
121654
- var fd = fs47.openSync(path42, constants2.O_SYMLINK);
121653
+ fs46.lutimesSync = function(path42, at, mt) {
121654
+ var fd = fs46.openSync(path42, constants2.O_SYMLINK);
121655
121655
  var ret;
121656
121656
  var threw = true;
121657
121657
  try {
121658
- ret = fs47.futimesSync(fd, at, mt);
121658
+ ret = fs46.futimesSync(fd, at, mt);
121659
121659
  threw = false;
121660
121660
  } finally {
121661
121661
  if (threw) {
121662
121662
  try {
121663
- fs47.closeSync(fd);
121663
+ fs46.closeSync(fd);
121664
121664
  } catch (er) {
121665
121665
  }
121666
121666
  } else {
121667
- fs47.closeSync(fd);
121667
+ fs46.closeSync(fd);
121668
121668
  }
121669
121669
  }
121670
121670
  return ret;
121671
121671
  };
121672
- } else if (fs47.futimes) {
121673
- fs47.lutimes = function(_a6, _b, _c, cb) {
121672
+ } else if (fs46.futimes) {
121673
+ fs46.lutimes = function(_a6, _b, _c, cb) {
121674
121674
  if (cb)
121675
121675
  process.nextTick(cb);
121676
121676
  };
121677
- fs47.lutimesSync = function() {
121677
+ fs46.lutimesSync = function() {
121678
121678
  };
121679
121679
  }
121680
121680
  }
@@ -121682,7 +121682,7 @@ var require_polyfills = __commonJS({
121682
121682
  if (!orig)
121683
121683
  return orig;
121684
121684
  return function(target, mode, cb) {
121685
- return orig.call(fs46, target, mode, function(er) {
121685
+ return orig.call(fs45, target, mode, function(er) {
121686
121686
  if (chownErOk(er))
121687
121687
  er = null;
121688
121688
  if (cb)
@@ -121695,7 +121695,7 @@ var require_polyfills = __commonJS({
121695
121695
  return orig;
121696
121696
  return function(target, mode) {
121697
121697
  try {
121698
- return orig.call(fs46, target, mode);
121698
+ return orig.call(fs45, target, mode);
121699
121699
  } catch (er) {
121700
121700
  if (!chownErOk(er))
121701
121701
  throw er;
@@ -121706,7 +121706,7 @@ var require_polyfills = __commonJS({
121706
121706
  if (!orig)
121707
121707
  return orig;
121708
121708
  return function(target, uid, gid, cb) {
121709
- return orig.call(fs46, target, uid, gid, function(er) {
121709
+ return orig.call(fs45, target, uid, gid, function(er) {
121710
121710
  if (chownErOk(er))
121711
121711
  er = null;
121712
121712
  if (cb)
@@ -121719,7 +121719,7 @@ var require_polyfills = __commonJS({
121719
121719
  return orig;
121720
121720
  return function(target, uid, gid) {
121721
121721
  try {
121722
- return orig.call(fs46, target, uid, gid);
121722
+ return orig.call(fs45, target, uid, gid);
121723
121723
  } catch (er) {
121724
121724
  if (!chownErOk(er))
121725
121725
  throw er;
@@ -121744,14 +121744,14 @@ var require_polyfills = __commonJS({
121744
121744
  if (cb)
121745
121745
  cb.apply(this, arguments);
121746
121746
  }
121747
- return options ? orig.call(fs46, target, options, callback) : orig.call(fs46, target, callback);
121747
+ return options ? orig.call(fs45, target, options, callback) : orig.call(fs45, target, callback);
121748
121748
  };
121749
121749
  }
121750
121750
  function statFixSync(orig) {
121751
121751
  if (!orig)
121752
121752
  return orig;
121753
121753
  return function(target, options) {
121754
- var stats = options ? orig.call(fs46, target, options) : orig.call(fs46, target);
121754
+ var stats = options ? orig.call(fs45, target, options) : orig.call(fs45, target);
121755
121755
  if (stats) {
121756
121756
  if (stats.uid < 0)
121757
121757
  stats.uid += 4294967296;
@@ -121782,7 +121782,7 @@ var require_legacy_streams = __commonJS({
121782
121782
  "../../node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
121783
121783
  var Stream4 = require("stream").Stream;
121784
121784
  module2.exports = legacy;
121785
- function legacy(fs46) {
121785
+ function legacy(fs45) {
121786
121786
  return {
121787
121787
  ReadStream,
121788
121788
  WriteStream
@@ -121827,7 +121827,7 @@ var require_legacy_streams = __commonJS({
121827
121827
  });
121828
121828
  return;
121829
121829
  }
121830
- fs46.open(this.path, this.flags, this.mode, function(err, fd) {
121830
+ fs45.open(this.path, this.flags, this.mode, function(err, fd) {
121831
121831
  if (err) {
121832
121832
  self2.emit("error", err);
121833
121833
  self2.readable = false;
@@ -121867,7 +121867,7 @@ var require_legacy_streams = __commonJS({
121867
121867
  this.busy = false;
121868
121868
  this._queue = [];
121869
121869
  if (this.fd === null) {
121870
- this._open = fs46.open;
121870
+ this._open = fs45.open;
121871
121871
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
121872
121872
  this.flush();
121873
121873
  }
@@ -121902,7 +121902,7 @@ var require_clone = __commonJS({
121902
121902
  // ../../node_modules/graceful-fs/graceful-fs.js
121903
121903
  var require_graceful_fs = __commonJS({
121904
121904
  "../../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
121905
- var fs46 = require("fs");
121905
+ var fs45 = require("fs");
121906
121906
  var polyfills = require_polyfills();
121907
121907
  var legacy = require_legacy_streams();
121908
121908
  var clone4 = require_clone();
@@ -121934,12 +121934,12 @@ var require_graceful_fs = __commonJS({
121934
121934
  m2 = "GFS4: " + m2.split(/\n/).join("\nGFS4: ");
121935
121935
  console.error(m2);
121936
121936
  };
121937
- if (!fs46[gracefulQueue]) {
121937
+ if (!fs45[gracefulQueue]) {
121938
121938
  queue = global[gracefulQueue] || [];
121939
- publishQueue(fs46, queue);
121940
- fs46.close = function(fs$close) {
121939
+ publishQueue(fs45, queue);
121940
+ fs45.close = function(fs$close) {
121941
121941
  function close2(fd, cb) {
121942
- return fs$close.call(fs46, fd, function(err) {
121942
+ return fs$close.call(fs45, fd, function(err) {
121943
121943
  if (!err) {
121944
121944
  resetQueue();
121945
121945
  }
@@ -121951,40 +121951,40 @@ var require_graceful_fs = __commonJS({
121951
121951
  value: fs$close
121952
121952
  });
121953
121953
  return close2;
121954
- }(fs46.close);
121955
- fs46.closeSync = function(fs$closeSync) {
121954
+ }(fs45.close);
121955
+ fs45.closeSync = function(fs$closeSync) {
121956
121956
  function closeSync(fd) {
121957
- fs$closeSync.apply(fs46, arguments);
121957
+ fs$closeSync.apply(fs45, arguments);
121958
121958
  resetQueue();
121959
121959
  }
121960
121960
  Object.defineProperty(closeSync, previousSymbol, {
121961
121961
  value: fs$closeSync
121962
121962
  });
121963
121963
  return closeSync;
121964
- }(fs46.closeSync);
121964
+ }(fs45.closeSync);
121965
121965
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
121966
121966
  process.on("exit", function() {
121967
- debug(fs46[gracefulQueue]);
121968
- require("assert").equal(fs46[gracefulQueue].length, 0);
121967
+ debug(fs45[gracefulQueue]);
121968
+ require("assert").equal(fs45[gracefulQueue].length, 0);
121969
121969
  });
121970
121970
  }
121971
121971
  }
121972
121972
  var queue;
121973
121973
  if (!global[gracefulQueue]) {
121974
- publishQueue(global, fs46[gracefulQueue]);
121975
- }
121976
- module2.exports = patch4(clone4(fs46));
121977
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs46.__patched) {
121978
- module2.exports = patch4(fs46);
121979
- fs46.__patched = true;
121980
- }
121981
- function patch4(fs47) {
121982
- polyfills(fs47);
121983
- fs47.gracefulify = patch4;
121984
- fs47.createReadStream = createReadStream2;
121985
- fs47.createWriteStream = createWriteStream2;
121986
- var fs$readFile = fs47.readFile;
121987
- fs47.readFile = readFile;
121974
+ publishQueue(global, fs45[gracefulQueue]);
121975
+ }
121976
+ module2.exports = patch4(clone4(fs45));
121977
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs45.__patched) {
121978
+ module2.exports = patch4(fs45);
121979
+ fs45.__patched = true;
121980
+ }
121981
+ function patch4(fs46) {
121982
+ polyfills(fs46);
121983
+ fs46.gracefulify = patch4;
121984
+ fs46.createReadStream = createReadStream2;
121985
+ fs46.createWriteStream = createWriteStream2;
121986
+ var fs$readFile = fs46.readFile;
121987
+ fs46.readFile = readFile;
121988
121988
  function readFile(path42, options, cb) {
121989
121989
  if (typeof options === "function")
121990
121990
  cb = options, options = null;
@@ -122000,8 +122000,8 @@ var require_graceful_fs = __commonJS({
122000
122000
  });
122001
122001
  }
122002
122002
  }
122003
- var fs$writeFile = fs47.writeFile;
122004
- fs47.writeFile = writeFile2;
122003
+ var fs$writeFile = fs46.writeFile;
122004
+ fs46.writeFile = writeFile2;
122005
122005
  function writeFile2(path42, data, options, cb) {
122006
122006
  if (typeof options === "function")
122007
122007
  cb = options, options = null;
@@ -122017,9 +122017,9 @@ var require_graceful_fs = __commonJS({
122017
122017
  });
122018
122018
  }
122019
122019
  }
122020
- var fs$appendFile = fs47.appendFile;
122020
+ var fs$appendFile = fs46.appendFile;
122021
122021
  if (fs$appendFile)
122022
- fs47.appendFile = appendFile;
122022
+ fs46.appendFile = appendFile;
122023
122023
  function appendFile(path42, data, options, cb) {
122024
122024
  if (typeof options === "function")
122025
122025
  cb = options, options = null;
@@ -122035,9 +122035,9 @@ var require_graceful_fs = __commonJS({
122035
122035
  });
122036
122036
  }
122037
122037
  }
122038
- var fs$copyFile = fs47.copyFile;
122038
+ var fs$copyFile = fs46.copyFile;
122039
122039
  if (fs$copyFile)
122040
- fs47.copyFile = copyFile2;
122040
+ fs46.copyFile = copyFile2;
122041
122041
  function copyFile2(src, dest, flags, cb) {
122042
122042
  if (typeof flags === "function") {
122043
122043
  cb = flags;
@@ -122055,8 +122055,8 @@ var require_graceful_fs = __commonJS({
122055
122055
  });
122056
122056
  }
122057
122057
  }
122058
- var fs$readdir = fs47.readdir;
122059
- fs47.readdir = readdir2;
122058
+ var fs$readdir = fs46.readdir;
122059
+ fs46.readdir = readdir2;
122060
122060
  var noReaddirOptionVersions = /^v[0-5]\./;
122061
122061
  function readdir2(path42, options, cb) {
122062
122062
  if (typeof options === "function")
@@ -122097,21 +122097,21 @@ var require_graceful_fs = __commonJS({
122097
122097
  }
122098
122098
  }
122099
122099
  if (process.version.substr(0, 4) === "v0.8") {
122100
- var legStreams = legacy(fs47);
122100
+ var legStreams = legacy(fs46);
122101
122101
  ReadStream = legStreams.ReadStream;
122102
122102
  WriteStream = legStreams.WriteStream;
122103
122103
  }
122104
- var fs$ReadStream = fs47.ReadStream;
122104
+ var fs$ReadStream = fs46.ReadStream;
122105
122105
  if (fs$ReadStream) {
122106
122106
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
122107
122107
  ReadStream.prototype.open = ReadStream$open;
122108
122108
  }
122109
- var fs$WriteStream = fs47.WriteStream;
122109
+ var fs$WriteStream = fs46.WriteStream;
122110
122110
  if (fs$WriteStream) {
122111
122111
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
122112
122112
  WriteStream.prototype.open = WriteStream$open;
122113
122113
  }
122114
- Object.defineProperty(fs47, "ReadStream", {
122114
+ Object.defineProperty(fs46, "ReadStream", {
122115
122115
  get: function() {
122116
122116
  return ReadStream;
122117
122117
  },
@@ -122121,7 +122121,7 @@ var require_graceful_fs = __commonJS({
122121
122121
  enumerable: true,
122122
122122
  configurable: true
122123
122123
  });
122124
- Object.defineProperty(fs47, "WriteStream", {
122124
+ Object.defineProperty(fs46, "WriteStream", {
122125
122125
  get: function() {
122126
122126
  return WriteStream;
122127
122127
  },
@@ -122132,7 +122132,7 @@ var require_graceful_fs = __commonJS({
122132
122132
  configurable: true
122133
122133
  });
122134
122134
  var FileReadStream = ReadStream;
122135
- Object.defineProperty(fs47, "FileReadStream", {
122135
+ Object.defineProperty(fs46, "FileReadStream", {
122136
122136
  get: function() {
122137
122137
  return FileReadStream;
122138
122138
  },
@@ -122143,7 +122143,7 @@ var require_graceful_fs = __commonJS({
122143
122143
  configurable: true
122144
122144
  });
122145
122145
  var FileWriteStream = WriteStream;
122146
- Object.defineProperty(fs47, "FileWriteStream", {
122146
+ Object.defineProperty(fs46, "FileWriteStream", {
122147
122147
  get: function() {
122148
122148
  return FileWriteStream;
122149
122149
  },
@@ -122192,13 +122192,13 @@ var require_graceful_fs = __commonJS({
122192
122192
  });
122193
122193
  }
122194
122194
  function createReadStream2(path42, options) {
122195
- return new fs47.ReadStream(path42, options);
122195
+ return new fs46.ReadStream(path42, options);
122196
122196
  }
122197
122197
  function createWriteStream2(path42, options) {
122198
- return new fs47.WriteStream(path42, options);
122198
+ return new fs46.WriteStream(path42, options);
122199
122199
  }
122200
- var fs$open = fs47.open;
122201
- fs47.open = open2;
122200
+ var fs$open = fs46.open;
122201
+ fs46.open = open2;
122202
122202
  function open2(path42, flags, mode, cb) {
122203
122203
  if (typeof mode === "function")
122204
122204
  cb = mode, mode = null;
@@ -122214,20 +122214,20 @@ var require_graceful_fs = __commonJS({
122214
122214
  });
122215
122215
  }
122216
122216
  }
122217
- return fs47;
122217
+ return fs46;
122218
122218
  }
122219
122219
  function enqueue(elem) {
122220
122220
  debug("ENQUEUE", elem[0].name, elem[1]);
122221
- fs46[gracefulQueue].push(elem);
122221
+ fs45[gracefulQueue].push(elem);
122222
122222
  retry();
122223
122223
  }
122224
122224
  var retryTimer;
122225
122225
  function resetQueue() {
122226
122226
  var now = Date.now();
122227
- for (var i2 = 0; i2 < fs46[gracefulQueue].length; ++i2) {
122228
- if (fs46[gracefulQueue][i2].length > 2) {
122229
- fs46[gracefulQueue][i2][3] = now;
122230
- fs46[gracefulQueue][i2][4] = now;
122227
+ for (var i2 = 0; i2 < fs45[gracefulQueue].length; ++i2) {
122228
+ if (fs45[gracefulQueue][i2].length > 2) {
122229
+ fs45[gracefulQueue][i2][3] = now;
122230
+ fs45[gracefulQueue][i2][4] = now;
122231
122231
  }
122232
122232
  }
122233
122233
  retry();
@@ -122235,9 +122235,9 @@ var require_graceful_fs = __commonJS({
122235
122235
  function retry() {
122236
122236
  clearTimeout(retryTimer);
122237
122237
  retryTimer = void 0;
122238
- if (fs46[gracefulQueue].length === 0)
122238
+ if (fs45[gracefulQueue].length === 0)
122239
122239
  return;
122240
- var elem = fs46[gracefulQueue].shift();
122240
+ var elem = fs45[gracefulQueue].shift();
122241
122241
  var fn = elem[0];
122242
122242
  var args = elem[1];
122243
122243
  var err = elem[2];
@@ -122259,7 +122259,7 @@ var require_graceful_fs = __commonJS({
122259
122259
  debug("RETRY", fn.name, args);
122260
122260
  fn.apply(null, args.concat([startTime]));
122261
122261
  } else {
122262
- fs46[gracefulQueue].push(elem);
122262
+ fs45[gracefulQueue].push(elem);
122263
122263
  }
122264
122264
  }
122265
122265
  if (retryTimer === void 0) {
@@ -122274,7 +122274,7 @@ var require_fs = __commonJS({
122274
122274
  "../myst-cli/node_modules/fs-extra/lib/fs/index.js"(exports2) {
122275
122275
  "use strict";
122276
122276
  var u3 = require_universalify().fromCallback;
122277
- var fs46 = require_graceful_fs();
122277
+ var fs45 = require_graceful_fs();
122278
122278
  var api = [
122279
122279
  "access",
122280
122280
  "appendFile",
@@ -122311,26 +122311,26 @@ var require_fs = __commonJS({
122311
122311
  "utimes",
122312
122312
  "writeFile"
122313
122313
  ].filter((key2) => {
122314
- return typeof fs46[key2] === "function";
122314
+ return typeof fs45[key2] === "function";
122315
122315
  });
122316
- Object.assign(exports2, fs46);
122316
+ Object.assign(exports2, fs45);
122317
122317
  api.forEach((method) => {
122318
- exports2[method] = u3(fs46[method]);
122318
+ exports2[method] = u3(fs45[method]);
122319
122319
  });
122320
122320
  exports2.exists = function(filename, callback) {
122321
122321
  if (typeof callback === "function") {
122322
- return fs46.exists(filename, callback);
122322
+ return fs45.exists(filename, callback);
122323
122323
  }
122324
122324
  return new Promise((resolve7) => {
122325
- return fs46.exists(filename, resolve7);
122325
+ return fs45.exists(filename, resolve7);
122326
122326
  });
122327
122327
  };
122328
122328
  exports2.read = function(fd, buffer2, offset, length, position6, callback) {
122329
122329
  if (typeof callback === "function") {
122330
- return fs46.read(fd, buffer2, offset, length, position6, callback);
122330
+ return fs45.read(fd, buffer2, offset, length, position6, callback);
122331
122331
  }
122332
122332
  return new Promise((resolve7, reject) => {
122333
- fs46.read(fd, buffer2, offset, length, position6, (err, bytesRead, buffer3) => {
122333
+ fs45.read(fd, buffer2, offset, length, position6, (err, bytesRead, buffer3) => {
122334
122334
  if (err)
122335
122335
  return reject(err);
122336
122336
  resolve7({ bytesRead, buffer: buffer3 });
@@ -122339,10 +122339,10 @@ var require_fs = __commonJS({
122339
122339
  };
122340
122340
  exports2.write = function(fd, buffer2, ...args) {
122341
122341
  if (typeof args[args.length - 1] === "function") {
122342
- return fs46.write(fd, buffer2, ...args);
122342
+ return fs45.write(fd, buffer2, ...args);
122343
122343
  }
122344
122344
  return new Promise((resolve7, reject) => {
122345
- fs46.write(fd, buffer2, ...args, (err, bytesWritten, buffer3) => {
122345
+ fs45.write(fd, buffer2, ...args, (err, bytesWritten, buffer3) => {
122346
122346
  if (err)
122347
122347
  return reject(err);
122348
122348
  resolve7({ bytesWritten, buffer: buffer3 });
@@ -122351,10 +122351,10 @@ var require_fs = __commonJS({
122351
122351
  };
122352
122352
  exports2.readv = function(fd, buffers, ...args) {
122353
122353
  if (typeof args[args.length - 1] === "function") {
122354
- return fs46.readv(fd, buffers, ...args);
122354
+ return fs45.readv(fd, buffers, ...args);
122355
122355
  }
122356
122356
  return new Promise((resolve7, reject) => {
122357
- fs46.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
122357
+ fs45.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
122358
122358
  if (err)
122359
122359
  return reject(err);
122360
122360
  resolve7({ bytesRead, buffers: buffers2 });
@@ -122363,18 +122363,18 @@ var require_fs = __commonJS({
122363
122363
  };
122364
122364
  exports2.writev = function(fd, buffers, ...args) {
122365
122365
  if (typeof args[args.length - 1] === "function") {
122366
- return fs46.writev(fd, buffers, ...args);
122366
+ return fs45.writev(fd, buffers, ...args);
122367
122367
  }
122368
122368
  return new Promise((resolve7, reject) => {
122369
- fs46.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
122369
+ fs45.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
122370
122370
  if (err)
122371
122371
  return reject(err);
122372
122372
  resolve7({ bytesWritten, buffers: buffers2 });
122373
122373
  });
122374
122374
  });
122375
122375
  };
122376
- if (typeof fs46.realpath.native === "function") {
122377
- exports2.realpath.native = u3(fs46.realpath.native);
122376
+ if (typeof fs45.realpath.native === "function") {
122377
+ exports2.realpath.native = u3(fs45.realpath.native);
122378
122378
  } else {
122379
122379
  process.emitWarning(
122380
122380
  "fs.realpath.native is not a function. Is fs being monkey-patched?",
@@ -122407,7 +122407,7 @@ var require_utils11 = __commonJS({
122407
122407
  var require_make_dir = __commonJS({
122408
122408
  "../myst-cli/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
122409
122409
  "use strict";
122410
- var fs46 = require_fs();
122410
+ var fs45 = require_fs();
122411
122411
  var { checkPath } = require_utils11();
122412
122412
  var getMode = (options) => {
122413
122413
  const defaults4 = { mode: 511 };
@@ -122417,14 +122417,14 @@ var require_make_dir = __commonJS({
122417
122417
  };
122418
122418
  module2.exports.makeDir = async (dir, options) => {
122419
122419
  checkPath(dir);
122420
- return fs46.mkdir(dir, {
122420
+ return fs45.mkdir(dir, {
122421
122421
  mode: getMode(options),
122422
122422
  recursive: true
122423
122423
  });
122424
122424
  };
122425
122425
  module2.exports.makeDirSync = (dir, options) => {
122426
122426
  checkPath(dir);
122427
- return fs46.mkdirSync(dir, {
122427
+ return fs45.mkdirSync(dir, {
122428
122428
  mode: getMode(options),
122429
122429
  recursive: true
122430
122430
  });
@@ -122456,13 +122456,13 @@ var require_path_exists = __commonJS({
122456
122456
  "../myst-cli/node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
122457
122457
  "use strict";
122458
122458
  var u3 = require_universalify().fromPromise;
122459
- var fs46 = require_fs();
122459
+ var fs45 = require_fs();
122460
122460
  function pathExists(path42) {
122461
- return fs46.access(path42).then(() => true).catch(() => false);
122461
+ return fs45.access(path42).then(() => true).catch(() => false);
122462
122462
  }
122463
122463
  module2.exports = {
122464
122464
  pathExists: u3(pathExists),
122465
- pathExistsSync: fs46.existsSync
122465
+ pathExistsSync: fs45.existsSync
122466
122466
  };
122467
122467
  }
122468
122468
  });
@@ -122471,13 +122471,13 @@ var require_path_exists = __commonJS({
122471
122471
  var require_utimes = __commonJS({
122472
122472
  "../myst-cli/node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
122473
122473
  "use strict";
122474
- var fs46 = require_graceful_fs();
122474
+ var fs45 = require_graceful_fs();
122475
122475
  function utimesMillis(path42, atime, mtime, callback) {
122476
- fs46.open(path42, "r+", (err, fd) => {
122476
+ fs45.open(path42, "r+", (err, fd) => {
122477
122477
  if (err)
122478
122478
  return callback(err);
122479
- fs46.futimes(fd, atime, mtime, (futimesErr) => {
122480
- fs46.close(fd, (closeErr) => {
122479
+ fs45.futimes(fd, atime, mtime, (futimesErr) => {
122480
+ fs45.close(fd, (closeErr) => {
122481
122481
  if (callback)
122482
122482
  callback(futimesErr || closeErr);
122483
122483
  });
@@ -122485,9 +122485,9 @@ var require_utimes = __commonJS({
122485
122485
  });
122486
122486
  }
122487
122487
  function utimesMillisSync(path42, atime, mtime) {
122488
- const fd = fs46.openSync(path42, "r+");
122489
- fs46.futimesSync(fd, atime, mtime);
122490
- return fs46.closeSync(fd);
122488
+ const fd = fs45.openSync(path42, "r+");
122489
+ fs45.futimesSync(fd, atime, mtime);
122490
+ return fs45.closeSync(fd);
122491
122491
  }
122492
122492
  module2.exports = {
122493
122493
  utimesMillis,
@@ -122500,11 +122500,11 @@ var require_utimes = __commonJS({
122500
122500
  var require_stat = __commonJS({
122501
122501
  "../myst-cli/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
122502
122502
  "use strict";
122503
- var fs46 = require_fs();
122503
+ var fs45 = require_fs();
122504
122504
  var path42 = require("path");
122505
122505
  var util3 = require("util");
122506
122506
  function getStats(src, dest, opts) {
122507
- const statFunc = opts.dereference ? (file) => fs46.stat(file, { bigint: true }) : (file) => fs46.lstat(file, { bigint: true });
122507
+ const statFunc = opts.dereference ? (file) => fs45.stat(file, { bigint: true }) : (file) => fs45.lstat(file, { bigint: true });
122508
122508
  return Promise.all([
122509
122509
  statFunc(src),
122510
122510
  statFunc(dest).catch((err) => {
@@ -122516,7 +122516,7 @@ var require_stat = __commonJS({
122516
122516
  }
122517
122517
  function getStatsSync(src, dest, opts) {
122518
122518
  let destStat;
122519
- const statFunc = opts.dereference ? (file) => fs46.statSync(file, { bigint: true }) : (file) => fs46.lstatSync(file, { bigint: true });
122519
+ const statFunc = opts.dereference ? (file) => fs45.statSync(file, { bigint: true }) : (file) => fs45.lstatSync(file, { bigint: true });
122520
122520
  const srcStat = statFunc(src);
122521
122521
  try {
122522
122522
  destStat = statFunc(dest);
@@ -122582,7 +122582,7 @@ var require_stat = __commonJS({
122582
122582
  const destParent = path42.resolve(path42.dirname(dest));
122583
122583
  if (destParent === srcParent || destParent === path42.parse(destParent).root)
122584
122584
  return cb();
122585
- fs46.stat(destParent, { bigint: true }, (err, destStat) => {
122585
+ fs45.stat(destParent, { bigint: true }, (err, destStat) => {
122586
122586
  if (err) {
122587
122587
  if (err.code === "ENOENT")
122588
122588
  return cb();
@@ -122601,7 +122601,7 @@ var require_stat = __commonJS({
122601
122601
  return;
122602
122602
  let destStat;
122603
122603
  try {
122604
- destStat = fs46.statSync(destParent, { bigint: true });
122604
+ destStat = fs45.statSync(destParent, { bigint: true });
122605
122605
  } catch (err) {
122606
122606
  if (err.code === "ENOENT")
122607
122607
  return;
@@ -122638,7 +122638,7 @@ var require_stat = __commonJS({
122638
122638
  var require_copy = __commonJS({
122639
122639
  "../myst-cli/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
122640
122640
  "use strict";
122641
- var fs46 = require_graceful_fs();
122641
+ var fs45 = require_graceful_fs();
122642
122642
  var path42 = require("path");
122643
122643
  var mkdirs = require_mkdirs().mkdirs;
122644
122644
  var pathExists = require_path_exists().pathExists;
@@ -122700,7 +122700,7 @@ var require_copy = __commonJS({
122700
122700
  Promise.resolve(opts.filter(src, dest)).then((include3) => cb(null, include3), (error) => cb(error));
122701
122701
  }
122702
122702
  function getStats(destStat, src, dest, opts, cb) {
122703
- const stat3 = opts.dereference ? fs46.stat : fs46.lstat;
122703
+ const stat3 = opts.dereference ? fs45.stat : fs45.lstat;
122704
122704
  stat3(src, (err, srcStat) => {
122705
122705
  if (err)
122706
122706
  return cb(err);
@@ -122724,7 +122724,7 @@ var require_copy = __commonJS({
122724
122724
  }
122725
122725
  function mayCopyFile(srcStat, src, dest, opts, cb) {
122726
122726
  if (opts.overwrite) {
122727
- fs46.unlink(dest, (err) => {
122727
+ fs45.unlink(dest, (err) => {
122728
122728
  if (err)
122729
122729
  return cb(err);
122730
122730
  return copyFile2(srcStat, src, dest, opts, cb);
@@ -122735,7 +122735,7 @@ var require_copy = __commonJS({
122735
122735
  return cb();
122736
122736
  }
122737
122737
  function copyFile2(srcStat, src, dest, opts, cb) {
122738
- fs46.copyFile(src, dest, (err) => {
122738
+ fs45.copyFile(src, dest, (err) => {
122739
122739
  if (err)
122740
122740
  return cb(err);
122741
122741
  if (opts.preserveTimestamps)
@@ -122767,10 +122767,10 @@ var require_copy = __commonJS({
122767
122767
  });
122768
122768
  }
122769
122769
  function setDestMode(dest, srcMode, cb) {
122770
- return fs46.chmod(dest, srcMode, cb);
122770
+ return fs45.chmod(dest, srcMode, cb);
122771
122771
  }
122772
122772
  function setDestTimestamps(src, dest, cb) {
122773
- fs46.stat(src, (err, updatedSrcStat) => {
122773
+ fs45.stat(src, (err, updatedSrcStat) => {
122774
122774
  if (err)
122775
122775
  return cb(err);
122776
122776
  return utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime, cb);
@@ -122782,7 +122782,7 @@ var require_copy = __commonJS({
122782
122782
  return copyDir(src, dest, opts, cb);
122783
122783
  }
122784
122784
  function mkDirAndCopy(srcMode, src, dest, opts, cb) {
122785
- fs46.mkdir(dest, (err) => {
122785
+ fs45.mkdir(dest, (err) => {
122786
122786
  if (err)
122787
122787
  return cb(err);
122788
122788
  copyDir(src, dest, opts, (err2) => {
@@ -122793,7 +122793,7 @@ var require_copy = __commonJS({
122793
122793
  });
122794
122794
  }
122795
122795
  function copyDir(src, dest, opts, cb) {
122796
- fs46.readdir(src, (err, items) => {
122796
+ fs45.readdir(src, (err, items) => {
122797
122797
  if (err)
122798
122798
  return cb(err);
122799
122799
  return copyDirItems(items, src, dest, opts, cb);
@@ -122826,19 +122826,19 @@ var require_copy = __commonJS({
122826
122826
  });
122827
122827
  }
122828
122828
  function onLink(destStat, src, dest, opts, cb) {
122829
- fs46.readlink(src, (err, resolvedSrc) => {
122829
+ fs45.readlink(src, (err, resolvedSrc) => {
122830
122830
  if (err)
122831
122831
  return cb(err);
122832
122832
  if (opts.dereference) {
122833
122833
  resolvedSrc = path42.resolve(process.cwd(), resolvedSrc);
122834
122834
  }
122835
122835
  if (!destStat) {
122836
- return fs46.symlink(resolvedSrc, dest, cb);
122836
+ return fs45.symlink(resolvedSrc, dest, cb);
122837
122837
  } else {
122838
- fs46.readlink(dest, (err2, resolvedDest) => {
122838
+ fs45.readlink(dest, (err2, resolvedDest) => {
122839
122839
  if (err2) {
122840
122840
  if (err2.code === "EINVAL" || err2.code === "UNKNOWN")
122841
- return fs46.symlink(resolvedSrc, dest, cb);
122841
+ return fs45.symlink(resolvedSrc, dest, cb);
122842
122842
  return cb(err2);
122843
122843
  }
122844
122844
  if (opts.dereference) {
@@ -122856,10 +122856,10 @@ var require_copy = __commonJS({
122856
122856
  });
122857
122857
  }
122858
122858
  function copyLink(resolvedSrc, dest, cb) {
122859
- fs46.unlink(dest, (err) => {
122859
+ fs45.unlink(dest, (err) => {
122860
122860
  if (err)
122861
122861
  return cb(err);
122862
- return fs46.symlink(resolvedSrc, dest, cb);
122862
+ return fs45.symlink(resolvedSrc, dest, cb);
122863
122863
  });
122864
122864
  }
122865
122865
  module2.exports = copy2;
@@ -122870,7 +122870,7 @@ var require_copy = __commonJS({
122870
122870
  var require_copy_sync = __commonJS({
122871
122871
  "../myst-cli/node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
122872
122872
  "use strict";
122873
- var fs46 = require_graceful_fs();
122873
+ var fs45 = require_graceful_fs();
122874
122874
  var path42 = require("path");
122875
122875
  var mkdirsSync = require_mkdirs().mkdirsSync;
122876
122876
  var utimesMillisSync = require_utimes().utimesMillisSync;
@@ -122894,12 +122894,12 @@ var require_copy_sync = __commonJS({
122894
122894
  if (opts.filter && !opts.filter(src, dest))
122895
122895
  return;
122896
122896
  const destParent = path42.dirname(dest);
122897
- if (!fs46.existsSync(destParent))
122897
+ if (!fs45.existsSync(destParent))
122898
122898
  mkdirsSync(destParent);
122899
122899
  return getStats(destStat, src, dest, opts);
122900
122900
  }
122901
122901
  function getStats(destStat, src, dest, opts) {
122902
- const statSync2 = opts.dereference ? fs46.statSync : fs46.lstatSync;
122902
+ const statSync2 = opts.dereference ? fs45.statSync : fs45.lstatSync;
122903
122903
  const srcStat = statSync2(src);
122904
122904
  if (srcStat.isDirectory())
122905
122905
  return onDir(srcStat, destStat, src, dest, opts);
@@ -122920,14 +122920,14 @@ var require_copy_sync = __commonJS({
122920
122920
  }
122921
122921
  function mayCopyFile(srcStat, src, dest, opts) {
122922
122922
  if (opts.overwrite) {
122923
- fs46.unlinkSync(dest);
122923
+ fs45.unlinkSync(dest);
122924
122924
  return copyFile2(srcStat, src, dest, opts);
122925
122925
  } else if (opts.errorOnExist) {
122926
122926
  throw new Error(`'${dest}' already exists`);
122927
122927
  }
122928
122928
  }
122929
122929
  function copyFile2(srcStat, src, dest, opts) {
122930
- fs46.copyFileSync(src, dest);
122930
+ fs45.copyFileSync(src, dest);
122931
122931
  if (opts.preserveTimestamps)
122932
122932
  handleTimestamps(srcStat.mode, src, dest);
122933
122933
  return setDestMode(dest, srcStat.mode);
@@ -122944,10 +122944,10 @@ var require_copy_sync = __commonJS({
122944
122944
  return setDestMode(dest, srcMode | 128);
122945
122945
  }
122946
122946
  function setDestMode(dest, srcMode) {
122947
- return fs46.chmodSync(dest, srcMode);
122947
+ return fs45.chmodSync(dest, srcMode);
122948
122948
  }
122949
122949
  function setDestTimestamps(src, dest) {
122950
- const updatedSrcStat = fs46.statSync(src);
122950
+ const updatedSrcStat = fs45.statSync(src);
122951
122951
  return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
122952
122952
  }
122953
122953
  function onDir(srcStat, destStat, src, dest, opts) {
@@ -122956,12 +122956,12 @@ var require_copy_sync = __commonJS({
122956
122956
  return copyDir(src, dest, opts);
122957
122957
  }
122958
122958
  function mkDirAndCopy(srcMode, src, dest, opts) {
122959
- fs46.mkdirSync(dest);
122959
+ fs45.mkdirSync(dest);
122960
122960
  copyDir(src, dest, opts);
122961
122961
  return setDestMode(dest, srcMode);
122962
122962
  }
122963
122963
  function copyDir(src, dest, opts) {
122964
- fs46.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
122964
+ fs45.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
122965
122965
  }
122966
122966
  function copyDirItem(item, src, dest, opts) {
122967
122967
  const srcItem = path42.join(src, item);
@@ -122972,19 +122972,19 @@ var require_copy_sync = __commonJS({
122972
122972
  return getStats(destStat, srcItem, destItem, opts);
122973
122973
  }
122974
122974
  function onLink(destStat, src, dest, opts) {
122975
- let resolvedSrc = fs46.readlinkSync(src);
122975
+ let resolvedSrc = fs45.readlinkSync(src);
122976
122976
  if (opts.dereference) {
122977
122977
  resolvedSrc = path42.resolve(process.cwd(), resolvedSrc);
122978
122978
  }
122979
122979
  if (!destStat) {
122980
- return fs46.symlinkSync(resolvedSrc, dest);
122980
+ return fs45.symlinkSync(resolvedSrc, dest);
122981
122981
  } else {
122982
122982
  let resolvedDest;
122983
122983
  try {
122984
- resolvedDest = fs46.readlinkSync(dest);
122984
+ resolvedDest = fs45.readlinkSync(dest);
122985
122985
  } catch (err) {
122986
122986
  if (err.code === "EINVAL" || err.code === "UNKNOWN")
122987
- return fs46.symlinkSync(resolvedSrc, dest);
122987
+ return fs45.symlinkSync(resolvedSrc, dest);
122988
122988
  throw err;
122989
122989
  }
122990
122990
  if (opts.dereference) {
@@ -123000,8 +123000,8 @@ var require_copy_sync = __commonJS({
123000
123000
  }
123001
123001
  }
123002
123002
  function copyLink(resolvedSrc, dest) {
123003
- fs46.unlinkSync(dest);
123004
- return fs46.symlinkSync(resolvedSrc, dest);
123003
+ fs45.unlinkSync(dest);
123004
+ return fs45.symlinkSync(resolvedSrc, dest);
123005
123005
  }
123006
123006
  module2.exports = copySync;
123007
123007
  }
@@ -123023,13 +123023,13 @@ var require_copy2 = __commonJS({
123023
123023
  var require_remove = __commonJS({
123024
123024
  "../myst-cli/node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
123025
123025
  "use strict";
123026
- var fs46 = require_graceful_fs();
123026
+ var fs45 = require_graceful_fs();
123027
123027
  var u3 = require_universalify().fromCallback;
123028
123028
  function remove3(path42, callback) {
123029
- fs46.rm(path42, { recursive: true, force: true }, callback);
123029
+ fs45.rm(path42, { recursive: true, force: true }, callback);
123030
123030
  }
123031
123031
  function removeSync(path42) {
123032
- fs46.rmSync(path42, { recursive: true, force: true });
123032
+ fs45.rmSync(path42, { recursive: true, force: true });
123033
123033
  }
123034
123034
  module2.exports = {
123035
123035
  remove: u3(remove3),
@@ -123043,14 +123043,14 @@ var require_empty2 = __commonJS({
123043
123043
  "../myst-cli/node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
123044
123044
  "use strict";
123045
123045
  var u3 = require_universalify().fromPromise;
123046
- var fs46 = require_fs();
123046
+ var fs45 = require_fs();
123047
123047
  var path42 = require("path");
123048
123048
  var mkdir = require_mkdirs();
123049
123049
  var remove3 = require_remove();
123050
123050
  var emptyDir = u3(async function emptyDir2(dir) {
123051
123051
  let items;
123052
123052
  try {
123053
- items = await fs46.readdir(dir);
123053
+ items = await fs45.readdir(dir);
123054
123054
  } catch {
123055
123055
  return mkdir.mkdirs(dir);
123056
123056
  }
@@ -123059,7 +123059,7 @@ var require_empty2 = __commonJS({
123059
123059
  function emptyDirSync(dir) {
123060
123060
  let items;
123061
123061
  try {
123062
- items = fs46.readdirSync(dir);
123062
+ items = fs45.readdirSync(dir);
123063
123063
  } catch {
123064
123064
  return mkdir.mkdirsSync(dir);
123065
123065
  }
@@ -123083,21 +123083,21 @@ var require_file2 = __commonJS({
123083
123083
  "use strict";
123084
123084
  var u3 = require_universalify().fromCallback;
123085
123085
  var path42 = require("path");
123086
- var fs46 = require_graceful_fs();
123086
+ var fs45 = require_graceful_fs();
123087
123087
  var mkdir = require_mkdirs();
123088
123088
  function createFile(file, callback) {
123089
123089
  function makeFile() {
123090
- fs46.writeFile(file, "", (err) => {
123090
+ fs45.writeFile(file, "", (err) => {
123091
123091
  if (err)
123092
123092
  return callback(err);
123093
123093
  callback();
123094
123094
  });
123095
123095
  }
123096
- fs46.stat(file, (err, stats) => {
123096
+ fs45.stat(file, (err, stats) => {
123097
123097
  if (!err && stats.isFile())
123098
123098
  return callback();
123099
123099
  const dir = path42.dirname(file);
123100
- fs46.stat(dir, (err2, stats2) => {
123100
+ fs45.stat(dir, (err2, stats2) => {
123101
123101
  if (err2) {
123102
123102
  if (err2.code === "ENOENT") {
123103
123103
  return mkdir.mkdirs(dir, (err3) => {
@@ -123111,7 +123111,7 @@ var require_file2 = __commonJS({
123111
123111
  if (stats2.isDirectory())
123112
123112
  makeFile();
123113
123113
  else {
123114
- fs46.readdir(dir, (err3) => {
123114
+ fs45.readdir(dir, (err3) => {
123115
123115
  if (err3)
123116
123116
  return callback(err3);
123117
123117
  });
@@ -123122,15 +123122,15 @@ var require_file2 = __commonJS({
123122
123122
  function createFileSync(file) {
123123
123123
  let stats;
123124
123124
  try {
123125
- stats = fs46.statSync(file);
123125
+ stats = fs45.statSync(file);
123126
123126
  } catch {
123127
123127
  }
123128
123128
  if (stats && stats.isFile())
123129
123129
  return;
123130
123130
  const dir = path42.dirname(file);
123131
123131
  try {
123132
- if (!fs46.statSync(dir).isDirectory()) {
123133
- fs46.readdirSync(dir);
123132
+ if (!fs45.statSync(dir).isDirectory()) {
123133
+ fs45.readdirSync(dir);
123134
123134
  }
123135
123135
  } catch (err) {
123136
123136
  if (err && err.code === "ENOENT")
@@ -123138,7 +123138,7 @@ var require_file2 = __commonJS({
123138
123138
  else
123139
123139
  throw err;
123140
123140
  }
123141
- fs46.writeFileSync(file, "");
123141
+ fs45.writeFileSync(file, "");
123142
123142
  }
123143
123143
  module2.exports = {
123144
123144
  createFile: u3(createFile),
@@ -123153,20 +123153,20 @@ var require_link2 = __commonJS({
123153
123153
  "use strict";
123154
123154
  var u3 = require_universalify().fromCallback;
123155
123155
  var path42 = require("path");
123156
- var fs46 = require_graceful_fs();
123156
+ var fs45 = require_graceful_fs();
123157
123157
  var mkdir = require_mkdirs();
123158
123158
  var pathExists = require_path_exists().pathExists;
123159
123159
  var { areIdentical } = require_stat();
123160
123160
  function createLink(srcpath, dstpath, callback) {
123161
123161
  function makeLink(srcpath2, dstpath2) {
123162
- fs46.link(srcpath2, dstpath2, (err) => {
123162
+ fs45.link(srcpath2, dstpath2, (err) => {
123163
123163
  if (err)
123164
123164
  return callback(err);
123165
123165
  callback(null);
123166
123166
  });
123167
123167
  }
123168
- fs46.lstat(dstpath, (_3, dstStat) => {
123169
- fs46.lstat(srcpath, (err, srcStat) => {
123168
+ fs45.lstat(dstpath, (_3, dstStat) => {
123169
+ fs45.lstat(srcpath, (err, srcStat) => {
123170
123170
  if (err) {
123171
123171
  err.message = err.message.replace("lstat", "ensureLink");
123172
123172
  return callback(err);
@@ -123191,11 +123191,11 @@ var require_link2 = __commonJS({
123191
123191
  function createLinkSync(srcpath, dstpath) {
123192
123192
  let dstStat;
123193
123193
  try {
123194
- dstStat = fs46.lstatSync(dstpath);
123194
+ dstStat = fs45.lstatSync(dstpath);
123195
123195
  } catch {
123196
123196
  }
123197
123197
  try {
123198
- const srcStat = fs46.lstatSync(srcpath);
123198
+ const srcStat = fs45.lstatSync(srcpath);
123199
123199
  if (dstStat && areIdentical(srcStat, dstStat))
123200
123200
  return;
123201
123201
  } catch (err) {
@@ -123203,11 +123203,11 @@ var require_link2 = __commonJS({
123203
123203
  throw err;
123204
123204
  }
123205
123205
  const dir = path42.dirname(dstpath);
123206
- const dirExists = fs46.existsSync(dir);
123206
+ const dirExists = fs45.existsSync(dir);
123207
123207
  if (dirExists)
123208
- return fs46.linkSync(srcpath, dstpath);
123208
+ return fs45.linkSync(srcpath, dstpath);
123209
123209
  mkdir.mkdirsSync(dir);
123210
- return fs46.linkSync(srcpath, dstpath);
123210
+ return fs45.linkSync(srcpath, dstpath);
123211
123211
  }
123212
123212
  module2.exports = {
123213
123213
  createLink: u3(createLink),
@@ -123221,11 +123221,11 @@ var require_symlink_paths = __commonJS({
123221
123221
  "../myst-cli/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
123222
123222
  "use strict";
123223
123223
  var path42 = require("path");
123224
- var fs46 = require_graceful_fs();
123224
+ var fs45 = require_graceful_fs();
123225
123225
  var pathExists = require_path_exists().pathExists;
123226
123226
  function symlinkPaths(srcpath, dstpath, callback) {
123227
123227
  if (path42.isAbsolute(srcpath)) {
123228
- return fs46.lstat(srcpath, (err) => {
123228
+ return fs45.lstat(srcpath, (err) => {
123229
123229
  if (err) {
123230
123230
  err.message = err.message.replace("lstat", "ensureSymlink");
123231
123231
  return callback(err);
@@ -123247,7 +123247,7 @@ var require_symlink_paths = __commonJS({
123247
123247
  toDst: srcpath
123248
123248
  });
123249
123249
  } else {
123250
- return fs46.lstat(srcpath, (err2) => {
123250
+ return fs45.lstat(srcpath, (err2) => {
123251
123251
  if (err2) {
123252
123252
  err2.message = err2.message.replace("lstat", "ensureSymlink");
123253
123253
  return callback(err2);
@@ -123264,7 +123264,7 @@ var require_symlink_paths = __commonJS({
123264
123264
  function symlinkPathsSync(srcpath, dstpath) {
123265
123265
  let exists2;
123266
123266
  if (path42.isAbsolute(srcpath)) {
123267
- exists2 = fs46.existsSync(srcpath);
123267
+ exists2 = fs45.existsSync(srcpath);
123268
123268
  if (!exists2)
123269
123269
  throw new Error("absolute srcpath does not exist");
123270
123270
  return {
@@ -123274,14 +123274,14 @@ var require_symlink_paths = __commonJS({
123274
123274
  } else {
123275
123275
  const dstdir = path42.dirname(dstpath);
123276
123276
  const relativeToDst = path42.join(dstdir, srcpath);
123277
- exists2 = fs46.existsSync(relativeToDst);
123277
+ exists2 = fs45.existsSync(relativeToDst);
123278
123278
  if (exists2) {
123279
123279
  return {
123280
123280
  toCwd: relativeToDst,
123281
123281
  toDst: srcpath
123282
123282
  };
123283
123283
  } else {
123284
- exists2 = fs46.existsSync(srcpath);
123284
+ exists2 = fs45.existsSync(srcpath);
123285
123285
  if (!exists2)
123286
123286
  throw new Error("relative srcpath does not exist");
123287
123287
  return {
@@ -123302,13 +123302,13 @@ var require_symlink_paths = __commonJS({
123302
123302
  var require_symlink_type = __commonJS({
123303
123303
  "../myst-cli/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
123304
123304
  "use strict";
123305
- var fs46 = require_graceful_fs();
123305
+ var fs45 = require_graceful_fs();
123306
123306
  function symlinkType(srcpath, type2, callback) {
123307
123307
  callback = typeof type2 === "function" ? type2 : callback;
123308
123308
  type2 = typeof type2 === "function" ? false : type2;
123309
123309
  if (type2)
123310
123310
  return callback(null, type2);
123311
- fs46.lstat(srcpath, (err, stats) => {
123311
+ fs45.lstat(srcpath, (err, stats) => {
123312
123312
  if (err)
123313
123313
  return callback(null, "file");
123314
123314
  type2 = stats && stats.isDirectory() ? "dir" : "file";
@@ -123320,7 +123320,7 @@ var require_symlink_type = __commonJS({
123320
123320
  if (type2)
123321
123321
  return type2;
123322
123322
  try {
123323
- stats = fs46.lstatSync(srcpath);
123323
+ stats = fs45.lstatSync(srcpath);
123324
123324
  } catch {
123325
123325
  return "file";
123326
123326
  }
@@ -123339,7 +123339,7 @@ var require_symlink = __commonJS({
123339
123339
  "use strict";
123340
123340
  var u3 = require_universalify().fromCallback;
123341
123341
  var path42 = require("path");
123342
- var fs46 = require_fs();
123342
+ var fs45 = require_fs();
123343
123343
  var _mkdirs = require_mkdirs();
123344
123344
  var mkdirs = _mkdirs.mkdirs;
123345
123345
  var mkdirsSync = _mkdirs.mkdirsSync;
@@ -123354,11 +123354,11 @@ var require_symlink = __commonJS({
123354
123354
  function createSymlink(srcpath, dstpath, type2, callback) {
123355
123355
  callback = typeof type2 === "function" ? type2 : callback;
123356
123356
  type2 = typeof type2 === "function" ? false : type2;
123357
- fs46.lstat(dstpath, (err, stats) => {
123357
+ fs45.lstat(dstpath, (err, stats) => {
123358
123358
  if (!err && stats.isSymbolicLink()) {
123359
123359
  Promise.all([
123360
- fs46.stat(srcpath),
123361
- fs46.stat(dstpath)
123360
+ fs45.stat(srcpath),
123361
+ fs45.stat(dstpath)
123362
123362
  ]).then(([srcStat, dstStat]) => {
123363
123363
  if (areIdentical(srcStat, dstStat))
123364
123364
  return callback(null);
@@ -123381,11 +123381,11 @@ var require_symlink = __commonJS({
123381
123381
  if (err3)
123382
123382
  return callback(err3);
123383
123383
  if (dirExists)
123384
- return fs46.symlink(srcpath, dstpath, type3, callback);
123384
+ return fs45.symlink(srcpath, dstpath, type3, callback);
123385
123385
  mkdirs(dir, (err4) => {
123386
123386
  if (err4)
123387
123387
  return callback(err4);
123388
- fs46.symlink(srcpath, dstpath, type3, callback);
123388
+ fs45.symlink(srcpath, dstpath, type3, callback);
123389
123389
  });
123390
123390
  });
123391
123391
  });
@@ -123394,12 +123394,12 @@ var require_symlink = __commonJS({
123394
123394
  function createSymlinkSync(srcpath, dstpath, type2) {
123395
123395
  let stats;
123396
123396
  try {
123397
- stats = fs46.lstatSync(dstpath);
123397
+ stats = fs45.lstatSync(dstpath);
123398
123398
  } catch {
123399
123399
  }
123400
123400
  if (stats && stats.isSymbolicLink()) {
123401
- const srcStat = fs46.statSync(srcpath);
123402
- const dstStat = fs46.statSync(dstpath);
123401
+ const srcStat = fs45.statSync(srcpath);
123402
+ const dstStat = fs45.statSync(dstpath);
123403
123403
  if (areIdentical(srcStat, dstStat))
123404
123404
  return;
123405
123405
  }
@@ -123407,11 +123407,11 @@ var require_symlink = __commonJS({
123407
123407
  srcpath = relative4.toDst;
123408
123408
  type2 = symlinkTypeSync(relative4.toCwd, type2);
123409
123409
  const dir = path42.dirname(dstpath);
123410
- const exists2 = fs46.existsSync(dir);
123410
+ const exists2 = fs45.existsSync(dir);
123411
123411
  if (exists2)
123412
- return fs46.symlinkSync(srcpath, dstpath, type2);
123412
+ return fs45.symlinkSync(srcpath, dstpath, type2);
123413
123413
  mkdirsSync(dir);
123414
- return fs46.symlinkSync(srcpath, dstpath, type2);
123414
+ return fs45.symlinkSync(srcpath, dstpath, type2);
123415
123415
  }
123416
123416
  module2.exports = {
123417
123417
  createSymlink: u3(createSymlink),
@@ -123479,9 +123479,9 @@ var require_jsonfile = __commonJS({
123479
123479
  if (typeof options === "string") {
123480
123480
  options = { encoding: options };
123481
123481
  }
123482
- const fs46 = options.fs || _fs3;
123482
+ const fs45 = options.fs || _fs3;
123483
123483
  const shouldThrow = "throws" in options ? options.throws : true;
123484
- let data = await universalify.fromCallback(fs46.readFile)(file, options);
123484
+ let data = await universalify.fromCallback(fs45.readFile)(file, options);
123485
123485
  data = stripBom(data);
123486
123486
  let obj;
123487
123487
  try {
@@ -123501,10 +123501,10 @@ var require_jsonfile = __commonJS({
123501
123501
  if (typeof options === "string") {
123502
123502
  options = { encoding: options };
123503
123503
  }
123504
- const fs46 = options.fs || _fs3;
123504
+ const fs45 = options.fs || _fs3;
123505
123505
  const shouldThrow = "throws" in options ? options.throws : true;
123506
123506
  try {
123507
- let content3 = fs46.readFileSync(file, options);
123507
+ let content3 = fs45.readFileSync(file, options);
123508
123508
  content3 = stripBom(content3);
123509
123509
  return JSON.parse(content3, options.reviver);
123510
123510
  } catch (err) {
@@ -123517,15 +123517,15 @@ var require_jsonfile = __commonJS({
123517
123517
  }
123518
123518
  }
123519
123519
  async function _writeFile(file, obj, options = {}) {
123520
- const fs46 = options.fs || _fs3;
123520
+ const fs45 = options.fs || _fs3;
123521
123521
  const str2 = stringify4(obj, options);
123522
- await universalify.fromCallback(fs46.writeFile)(file, str2, options);
123522
+ await universalify.fromCallback(fs45.writeFile)(file, str2, options);
123523
123523
  }
123524
123524
  var writeFile2 = universalify.fromPromise(_writeFile);
123525
123525
  function writeFileSync2(file, obj, options = {}) {
123526
- const fs46 = options.fs || _fs3;
123526
+ const fs45 = options.fs || _fs3;
123527
123527
  const str2 = stringify4(obj, options);
123528
- return fs46.writeFileSync(file, str2, options);
123528
+ return fs45.writeFileSync(file, str2, options);
123529
123529
  }
123530
123530
  var jsonfile = {
123531
123531
  readFile,
@@ -123557,7 +123557,7 @@ var require_output_file = __commonJS({
123557
123557
  "../myst-cli/node_modules/fs-extra/lib/output-file/index.js"(exports2, module2) {
123558
123558
  "use strict";
123559
123559
  var u3 = require_universalify().fromCallback;
123560
- var fs46 = require_graceful_fs();
123560
+ var fs45 = require_graceful_fs();
123561
123561
  var path42 = require("path");
123562
123562
  var mkdir = require_mkdirs();
123563
123563
  var pathExists = require_path_exists().pathExists;
@@ -123571,21 +123571,21 @@ var require_output_file = __commonJS({
123571
123571
  if (err)
123572
123572
  return callback(err);
123573
123573
  if (itDoes)
123574
- return fs46.writeFile(file, data, encoding, callback);
123574
+ return fs45.writeFile(file, data, encoding, callback);
123575
123575
  mkdir.mkdirs(dir, (err2) => {
123576
123576
  if (err2)
123577
123577
  return callback(err2);
123578
- fs46.writeFile(file, data, encoding, callback);
123578
+ fs45.writeFile(file, data, encoding, callback);
123579
123579
  });
123580
123580
  });
123581
123581
  }
123582
123582
  function outputFileSync(file, ...args) {
123583
123583
  const dir = path42.dirname(file);
123584
- if (fs46.existsSync(dir)) {
123585
- return fs46.writeFileSync(file, ...args);
123584
+ if (fs45.existsSync(dir)) {
123585
+ return fs45.writeFileSync(file, ...args);
123586
123586
  }
123587
123587
  mkdir.mkdirsSync(dir);
123588
- fs46.writeFileSync(file, ...args);
123588
+ fs45.writeFileSync(file, ...args);
123589
123589
  }
123590
123590
  module2.exports = {
123591
123591
  outputFile: u3(outputFile),
@@ -123644,7 +123644,7 @@ var require_json3 = __commonJS({
123644
123644
  var require_move = __commonJS({
123645
123645
  "../myst-cli/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
123646
123646
  "use strict";
123647
- var fs46 = require_graceful_fs();
123647
+ var fs45 = require_graceful_fs();
123648
123648
  var path42 = require("path");
123649
123649
  var copy2 = require_copy2().copy;
123650
123650
  var remove3 = require_remove().remove;
@@ -123699,7 +123699,7 @@ var require_move = __commonJS({
123699
123699
  });
123700
123700
  }
123701
123701
  function rename(src, dest, overwrite, cb) {
123702
- fs46.rename(src, dest, (err) => {
123702
+ fs45.rename(src, dest, (err) => {
123703
123703
  if (!err)
123704
123704
  return cb();
123705
123705
  if (err.code !== "EXDEV")
@@ -123727,7 +123727,7 @@ var require_move = __commonJS({
123727
123727
  var require_move_sync = __commonJS({
123728
123728
  "../myst-cli/node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
123729
123729
  "use strict";
123730
- var fs46 = require_graceful_fs();
123730
+ var fs45 = require_graceful_fs();
123731
123731
  var path42 = require("path");
123732
123732
  var copySync = require_copy2().copySync;
123733
123733
  var removeSync = require_remove().removeSync;
@@ -123754,13 +123754,13 @@ var require_move_sync = __commonJS({
123754
123754
  removeSync(dest);
123755
123755
  return rename(src, dest, overwrite);
123756
123756
  }
123757
- if (fs46.existsSync(dest))
123757
+ if (fs45.existsSync(dest))
123758
123758
  throw new Error("dest already exists.");
123759
123759
  return rename(src, dest, overwrite);
123760
123760
  }
123761
123761
  function rename(src, dest, overwrite) {
123762
123762
  try {
123763
- fs46.renameSync(src, dest);
123763
+ fs45.renameSync(src, dest);
123764
123764
  } catch (err) {
123765
123765
  if (err.code !== "EXDEV")
123766
123766
  throw err;
@@ -125435,8 +125435,8 @@ var require_node3 = __commonJS({
125435
125435
  }
125436
125436
  break;
125437
125437
  case "FILE":
125438
- var fs46 = require("fs");
125439
- stream4 = new fs46.SyncWriteStream(fd2, { autoClose: false });
125438
+ var fs45 = require("fs");
125439
+ stream4 = new fs45.SyncWriteStream(fd2, { autoClose: false });
125440
125440
  stream4._type = "fs";
125441
125441
  break;
125442
125442
  case "PIPE":
@@ -132762,8 +132762,8 @@ var require_node4 = __commonJS({
132762
132762
  }
132763
132763
  break;
132764
132764
  case "FILE":
132765
- var fs46 = require("fs");
132766
- stream4 = new fs46.SyncWriteStream(fd2, { autoClose: false });
132765
+ var fs45 = require("fs");
132766
+ stream4 = new fs45.SyncWriteStream(fd2, { autoClose: false });
132767
132767
  stream4._type = "fs";
132768
132768
  break;
132769
132769
  case "PIPE":
@@ -133481,8 +133481,8 @@ var require_node5 = __commonJS({
133481
133481
  }
133482
133482
  break;
133483
133483
  case "FILE":
133484
- var fs46 = require("fs");
133485
- stream4 = new fs46.SyncWriteStream(fd2, { autoClose: false });
133484
+ var fs45 = require("fs");
133485
+ stream4 = new fs45.SyncWriteStream(fd2, { autoClose: false });
133486
133486
  stream4._type = "fs";
133487
133487
  break;
133488
133488
  case "PIPE":
@@ -134348,11 +134348,11 @@ var require_view = __commonJS({
134348
134348
  "use strict";
134349
134349
  var debug = require_src3()("express:view");
134350
134350
  var path42 = require("path");
134351
- var fs46 = require("fs");
134351
+ var fs45 = require("fs");
134352
134352
  var dirname7 = path42.dirname;
134353
134353
  var basename3 = path42.basename;
134354
134354
  var extname7 = path42.extname;
134355
- var join20 = path42.join;
134355
+ var join19 = path42.join;
134356
134356
  var resolve7 = path42.resolve;
134357
134357
  module2.exports = View;
134358
134358
  function View(name3, options) {
@@ -134400,12 +134400,12 @@ var require_view = __commonJS({
134400
134400
  };
134401
134401
  View.prototype.resolve = function resolve8(dir, file) {
134402
134402
  var ext2 = this.ext;
134403
- var path43 = join20(dir, file);
134403
+ var path43 = join19(dir, file);
134404
134404
  var stat2 = tryStat(path43);
134405
134405
  if (stat2 && stat2.isFile()) {
134406
134406
  return path43;
134407
134407
  }
134408
- path43 = join20(dir, basename3(file, ext2), "index" + ext2);
134408
+ path43 = join19(dir, basename3(file, ext2), "index" + ext2);
134409
134409
  stat2 = tryStat(path43);
134410
134410
  if (stat2 && stat2.isFile()) {
134411
134411
  return path43;
@@ -134414,7 +134414,7 @@ var require_view = __commonJS({
134414
134414
  function tryStat(path43) {
134415
134415
  debug('stat "%s"', path43);
134416
134416
  try {
134417
- return fs46.statSync(path43);
134417
+ return fs45.statSync(path43);
134418
134418
  } catch (e2) {
134419
134419
  return void 0;
134420
134420
  }
@@ -135029,8 +135029,8 @@ var require_node6 = __commonJS({
135029
135029
  }
135030
135030
  break;
135031
135031
  case "FILE":
135032
- var fs46 = require("fs");
135033
- stream4 = new fs46.SyncWriteStream(fd2, { autoClose: false });
135032
+ var fs45 = require("fs");
135033
+ stream4 = new fs45.SyncWriteStream(fd2, { autoClose: false });
135034
135034
  stream4._type = "fs";
135035
135035
  break;
135036
135036
  case "PIPE":
@@ -135203,7 +135203,7 @@ var require_types4 = __commonJS({
135203
135203
  var require_mime2 = __commonJS({
135204
135204
  "../../node_modules/mime/mime.js"(exports2, module2) {
135205
135205
  var path42 = require("path");
135206
- var fs46 = require("fs");
135206
+ var fs45 = require("fs");
135207
135207
  function Mime() {
135208
135208
  this.types = /* @__PURE__ */ Object.create(null);
135209
135209
  this.extensions = /* @__PURE__ */ Object.create(null);
@@ -135224,7 +135224,7 @@ var require_mime2 = __commonJS({
135224
135224
  };
135225
135225
  Mime.prototype.load = function(file) {
135226
135226
  this._loading = file;
135227
- var map14 = {}, content3 = fs46.readFileSync(file, "ascii"), lines = content3.split(/[\r\n]+/);
135227
+ var map14 = {}, content3 = fs45.readFileSync(file, "ascii"), lines = content3.split(/[\r\n]+/);
135228
135228
  lines.forEach(function(line2) {
135229
135229
  var fields = line2.replace(/\s*#.*|^\s*|\s*$/g, "").split(/\s+/);
135230
135230
  map14[fields.shift()] = fields;
@@ -135462,7 +135462,7 @@ var require_send = __commonJS({
135462
135462
  var escapeHtml4 = require_escape_html();
135463
135463
  var etag = require_etag();
135464
135464
  var fresh = require_fresh();
135465
- var fs46 = require("fs");
135465
+ var fs45 = require("fs");
135466
135466
  var mime3 = require_mime2();
135467
135467
  var ms = require_ms5();
135468
135468
  var onFinished = require_on_finished();
@@ -135472,7 +135472,7 @@ var require_send = __commonJS({
135472
135472
  var Stream4 = require("stream");
135473
135473
  var util3 = require("util");
135474
135474
  var extname7 = path42.extname;
135475
- var join20 = path42.join;
135475
+ var join19 = path42.join;
135476
135476
  var normalize6 = path42.normalize;
135477
135477
  var resolve7 = path42.resolve;
135478
135478
  var sep5 = path42.sep;
@@ -135691,7 +135691,7 @@ var require_send = __commonJS({
135691
135691
  return res;
135692
135692
  }
135693
135693
  parts = path43.split(sep5);
135694
- path43 = normalize6(join20(root6, path43));
135694
+ path43 = normalize6(join19(root6, path43));
135695
135695
  } else {
135696
135696
  if (UP_PATH_REGEXP.test(path43)) {
135697
135697
  debug('malicious path "%s"', path43);
@@ -135796,7 +135796,7 @@ var require_send = __commonJS({
135796
135796
  var i2 = 0;
135797
135797
  var self2 = this;
135798
135798
  debug('stat "%s"', path43);
135799
- fs46.stat(path43, function onstat(err, stat2) {
135799
+ fs45.stat(path43, function onstat(err, stat2) {
135800
135800
  if (err && err.code === "ENOENT" && !extname7(path43) && path43[path43.length - 1] !== sep5) {
135801
135801
  return next(err);
135802
135802
  }
@@ -135813,7 +135813,7 @@ var require_send = __commonJS({
135813
135813
  }
135814
135814
  var p5 = path43 + "." + self2._extensions[i2++];
135815
135815
  debug('stat "%s"', p5);
135816
- fs46.stat(p5, function(err2, stat2) {
135816
+ fs45.stat(p5, function(err2, stat2) {
135817
135817
  if (err2)
135818
135818
  return next(err2);
135819
135819
  if (stat2.isDirectory())
@@ -135832,9 +135832,9 @@ var require_send = __commonJS({
135832
135832
  return self2.onStatError(err);
135833
135833
  return self2.error(404);
135834
135834
  }
135835
- var p5 = join20(path43, self2._index[i2]);
135835
+ var p5 = join19(path43, self2._index[i2]);
135836
135836
  debug('stat "%s"', p5);
135837
- fs46.stat(p5, function(err2, stat2) {
135837
+ fs45.stat(p5, function(err2, stat2) {
135838
135838
  if (err2)
135839
135839
  return next(err2);
135840
135840
  if (stat2.isDirectory())
@@ -135848,7 +135848,7 @@ var require_send = __commonJS({
135848
135848
  SendStream.prototype.stream = function stream3(path43, options) {
135849
135849
  var self2 = this;
135850
135850
  var res = this.res;
135851
- var stream4 = fs46.createReadStream(path43, options);
135851
+ var stream4 = fs45.createReadStream(path43, options);
135852
135852
  this.emit("stream", stream4);
135853
135853
  stream4.pipe(res);
135854
135854
  function cleanup() {
@@ -162165,7 +162165,7 @@ var require_buffer_list = __commonJS({
162165
162165
  }
162166
162166
  }, {
162167
162167
  key: "join",
162168
- value: function join20(s5) {
162168
+ value: function join19(s5) {
162169
162169
  if (this.length === 0)
162170
162170
  return "";
162171
162171
  var p5 = this.head;
@@ -171047,7 +171047,7 @@ var require_iso2022 = __commonJS({
171047
171047
  // ../../node_modules/chardet/index.js
171048
171048
  var require_chardet = __commonJS({
171049
171049
  "../../node_modules/chardet/index.js"(exports2, module2) {
171050
- var fs46 = require("fs");
171050
+ var fs45 = require("fs");
171051
171051
  var utf8 = require_utf8();
171052
171052
  var unicode = require_unicode3();
171053
171053
  var mbcs = require_mbcs();
@@ -171121,29 +171121,29 @@ var require_chardet = __commonJS({
171121
171121
  var fd;
171122
171122
  var handler = function(err, buffer2) {
171123
171123
  if (fd) {
171124
- fs46.closeSync(fd);
171124
+ fs45.closeSync(fd);
171125
171125
  }
171126
171126
  if (err)
171127
171127
  return cb(err, null);
171128
171128
  cb(null, self2.detect(buffer2, opts));
171129
171129
  };
171130
171130
  if (opts && opts.sampleSize) {
171131
- fd = fs46.openSync(filepath, "r"), sample = Buffer.allocUnsafe(opts.sampleSize);
171132
- fs46.read(fd, sample, 0, opts.sampleSize, null, function(err) {
171131
+ fd = fs45.openSync(filepath, "r"), sample = Buffer.allocUnsafe(opts.sampleSize);
171132
+ fs45.read(fd, sample, 0, opts.sampleSize, null, function(err) {
171133
171133
  handler(err, sample);
171134
171134
  });
171135
171135
  return;
171136
171136
  }
171137
- fs46.readFile(filepath, handler);
171137
+ fs45.readFile(filepath, handler);
171138
171138
  };
171139
171139
  module2.exports.detectFileSync = function(filepath, opts) {
171140
171140
  if (opts && opts.sampleSize) {
171141
- var fd = fs46.openSync(filepath, "r"), sample2 = Buffer.allocUnsafe(opts.sampleSize);
171142
- fs46.readSync(fd, sample2, 0, opts.sampleSize);
171143
- fs46.closeSync(fd);
171141
+ var fd = fs45.openSync(filepath, "r"), sample2 = Buffer.allocUnsafe(opts.sampleSize);
171142
+ fs45.readSync(fd, sample2, 0, opts.sampleSize);
171143
+ fs45.closeSync(fd);
171144
171144
  return self2.detect(sample2, opts);
171145
171145
  }
171146
- return self2.detect(fs46.readFileSync(filepath), opts);
171146
+ return self2.detect(fs45.readFileSync(filepath), opts);
171147
171147
  };
171148
171148
  module2.exports.detectAll = function(buffer2, opts) {
171149
171149
  if (typeof opts !== "object") {
@@ -171197,7 +171197,7 @@ var require_os_tmpdir = __commonJS({
171197
171197
  // ../../node_modules/tmp/lib/tmp.js
171198
171198
  var require_tmp = __commonJS({
171199
171199
  "../../node_modules/tmp/lib/tmp.js"(exports2, module2) {
171200
- var fs46 = require("fs");
171200
+ var fs45 = require("fs");
171201
171201
  var path42 = require("path");
171202
171202
  var crypto3 = require("crypto");
171203
171203
  var osTmpDir = require_os_tmpdir();
@@ -171261,7 +171261,7 @@ var require_tmp = __commonJS({
171261
171261
  return cb(new Error("Invalid template provided"));
171262
171262
  (function _getUniqueName() {
171263
171263
  const name3 = _generateTmpName(opts);
171264
- fs46.stat(name3, function(err) {
171264
+ fs45.stat(name3, function(err) {
171265
171265
  if (!err) {
171266
171266
  if (tries-- > 0)
171267
171267
  return _getUniqueName();
@@ -171280,7 +171280,7 @@ var require_tmp = __commonJS({
171280
171280
  do {
171281
171281
  const name3 = _generateTmpName(opts);
171282
171282
  try {
171283
- fs46.statSync(name3);
171283
+ fs45.statSync(name3);
171284
171284
  } catch (e2) {
171285
171285
  return name3;
171286
171286
  }
@@ -171293,14 +171293,14 @@ var require_tmp = __commonJS({
171293
171293
  tmpName(opts, function _tmpNameCreated(err, name3) {
171294
171294
  if (err)
171295
171295
  return cb(err);
171296
- fs46.open(name3, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) {
171296
+ fs45.open(name3, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) {
171297
171297
  if (err2)
171298
171298
  return cb(err2);
171299
171299
  if (opts.discardDescriptor) {
171300
- return fs46.close(fd, function _discardCallback(err3) {
171300
+ return fs45.close(fd, function _discardCallback(err3) {
171301
171301
  if (err3) {
171302
171302
  try {
171303
- fs46.unlinkSync(name3);
171303
+ fs45.unlinkSync(name3);
171304
171304
  } catch (e2) {
171305
171305
  if (!isENOENT(e2)) {
171306
171306
  err3 = e2;
@@ -171323,9 +171323,9 @@ var require_tmp = __commonJS({
171323
171323
  opts.postfix = opts.postfix || ".tmp";
171324
171324
  const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
171325
171325
  const name3 = tmpNameSync(opts);
171326
- var fd = fs46.openSync(name3, CREATE_FLAGS, opts.mode || FILE_MODE);
171326
+ var fd = fs45.openSync(name3, CREATE_FLAGS, opts.mode || FILE_MODE);
171327
171327
  if (opts.discardDescriptor) {
171328
- fs46.closeSync(fd);
171328
+ fs45.closeSync(fd);
171329
171329
  fd = void 0;
171330
171330
  }
171331
171331
  return {
@@ -171337,9 +171337,9 @@ var require_tmp = __commonJS({
171337
171337
  function _rmdirRecursiveSync(root6) {
171338
171338
  const dirs = [root6];
171339
171339
  do {
171340
- var dir2 = dirs.pop(), deferred = false, files = fs46.readdirSync(dir2);
171340
+ var dir2 = dirs.pop(), deferred = false, files = fs45.readdirSync(dir2);
171341
171341
  for (var i2 = 0, length = files.length; i2 < length; i2++) {
171342
- var file2 = path42.join(dir2, files[i2]), stat2 = fs46.lstatSync(file2);
171342
+ var file2 = path42.join(dir2, files[i2]), stat2 = fs45.lstatSync(file2);
171343
171343
  if (stat2.isDirectory()) {
171344
171344
  if (!deferred) {
171345
171345
  deferred = true;
@@ -171347,11 +171347,11 @@ var require_tmp = __commonJS({
171347
171347
  }
171348
171348
  dirs.push(file2);
171349
171349
  } else {
171350
- fs46.unlinkSync(file2);
171350
+ fs45.unlinkSync(file2);
171351
171351
  }
171352
171352
  }
171353
171353
  if (!deferred) {
171354
- fs46.rmdirSync(dir2);
171354
+ fs45.rmdirSync(dir2);
171355
171355
  }
171356
171356
  } while (dirs.length !== 0);
171357
171357
  }
@@ -171360,7 +171360,7 @@ var require_tmp = __commonJS({
171360
171360
  tmpName(opts, function _tmpNameCreated(err, name3) {
171361
171361
  if (err)
171362
171362
  return cb(err);
171363
- fs46.mkdir(name3, opts.mode || DIR_MODE, function _dirCreated(err2) {
171363
+ fs45.mkdir(name3, opts.mode || DIR_MODE, function _dirCreated(err2) {
171364
171364
  if (err2)
171365
171365
  return cb(err2);
171366
171366
  cb(null, name3, _prepareTmpDirRemoveCallback(name3, opts));
@@ -171370,7 +171370,7 @@ var require_tmp = __commonJS({
171370
171370
  function dirSync(options) {
171371
171371
  var args = _parseArguments(options), opts = args[0];
171372
171372
  const name3 = tmpNameSync(opts);
171373
- fs46.mkdirSync(name3, opts.mode || DIR_MODE);
171373
+ fs45.mkdirSync(name3, opts.mode || DIR_MODE);
171374
171374
  return {
171375
171375
  name: name3,
171376
171376
  removeCallback: _prepareTmpDirRemoveCallback(name3, opts)
@@ -171380,7 +171380,7 @@ var require_tmp = __commonJS({
171380
171380
  const removeCallback = _prepareRemoveCallback(function _removeCallback(fdPath) {
171381
171381
  try {
171382
171382
  if (0 <= fdPath[0]) {
171383
- fs46.closeSync(fdPath[0]);
171383
+ fs45.closeSync(fdPath[0]);
171384
171384
  }
171385
171385
  } catch (e2) {
171386
171386
  if (!isEBADF(e2) && !isENOENT(e2)) {
@@ -171388,7 +171388,7 @@ var require_tmp = __commonJS({
171388
171388
  }
171389
171389
  }
171390
171390
  try {
171391
- fs46.unlinkSync(fdPath[1]);
171391
+ fs45.unlinkSync(fdPath[1]);
171392
171392
  } catch (e2) {
171393
171393
  if (!isENOENT(e2)) {
171394
171394
  throw e2;
@@ -171401,7 +171401,7 @@ var require_tmp = __commonJS({
171401
171401
  return removeCallback;
171402
171402
  }
171403
171403
  function _prepareTmpDirRemoveCallback(name3, opts) {
171404
- const removeFunction = opts.unsafeCleanup ? _rmdirRecursiveSync : fs46.rmdirSync.bind(fs46);
171404
+ const removeFunction = opts.unsafeCleanup ? _rmdirRecursiveSync : fs45.rmdirSync.bind(fs45);
171405
171405
  const removeCallback = _prepareRemoveCallback(removeFunction, name3);
171406
171406
  if (!opts.keep) {
171407
171407
  _removeObjects.unshift(removeCallback);
@@ -175308,7 +175308,7 @@ var require_strip_json_comments = __commonJS({
175308
175308
  var require_utils15 = __commonJS({
175309
175309
  "../../node_modules/rc/lib/utils.js"(exports2) {
175310
175310
  "use strict";
175311
- var fs46 = require("fs");
175311
+ var fs45 = require("fs");
175312
175312
  var ini = require_ini();
175313
175313
  var path42 = require("path");
175314
175314
  var stripJsonComments = require_strip_json_comments();
@@ -175327,7 +175327,7 @@ var require_utils15 = __commonJS({
175327
175327
  var file2 = path42.join.apply(null, args);
175328
175328
  var content3;
175329
175329
  try {
175330
- return fs46.readFileSync(file2, "utf-8");
175330
+ return fs45.readFileSync(file2, "utf-8");
175331
175331
  } catch (err) {
175332
175332
  return;
175333
175333
  }
@@ -175366,7 +175366,7 @@ var require_utils15 = __commonJS({
175366
175366
  function find3(start, rel3) {
175367
175367
  var file2 = path42.join(start, rel3);
175368
175368
  try {
175369
- fs46.statSync(file2);
175369
+ fs45.statSync(file2);
175370
175370
  return file2;
175371
175371
  } catch (err) {
175372
175372
  if (path42.dirname(start) !== start)
@@ -175686,7 +175686,7 @@ var require_minimist = __commonJS({
175686
175686
  var require_rc = __commonJS({
175687
175687
  "../../node_modules/rc/index.js"(exports2, module2) {
175688
175688
  var cc = require_utils15();
175689
- var join20 = require("path").join;
175689
+ var join19 = require("path").join;
175690
175690
  var deepExtend = require_deep_extend();
175691
175691
  var etc = "/etc";
175692
175692
  var win = process.platform === "win32";
@@ -175712,15 +175712,15 @@ var require_rc = __commonJS({
175712
175712
  }
175713
175713
  if (!win)
175714
175714
  [
175715
- join20(etc, name3, "config"),
175716
- join20(etc, name3 + "rc")
175715
+ join19(etc, name3, "config"),
175716
+ join19(etc, name3 + "rc")
175717
175717
  ].forEach(addConfigFile);
175718
175718
  if (home)
175719
175719
  [
175720
- join20(home, ".config", name3, "config"),
175721
- join20(home, ".config", name3),
175722
- join20(home, "." + name3, "config"),
175723
- join20(home, "." + name3 + "rc")
175720
+ join19(home, ".config", name3, "config"),
175721
+ join19(home, ".config", name3),
175722
+ join19(home, "." + name3, "config"),
175723
+ join19(home, "." + name3 + "rc")
175724
175724
  ].forEach(addConfigFile);
175725
175725
  addConfigFile(cc.find("." + name3 + "rc"));
175726
175726
  if (env7.config)
@@ -175763,56 +175763,56 @@ var require_polyfills2 = __commonJS({
175763
175763
  }
175764
175764
  var chdir;
175765
175765
  module2.exports = patch4;
175766
- function patch4(fs46) {
175766
+ function patch4(fs45) {
175767
175767
  if (constants2.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
175768
- patchLchmod(fs46);
175769
- }
175770
- if (!fs46.lutimes) {
175771
- patchLutimes(fs46);
175772
- }
175773
- fs46.chown = chownFix(fs46.chown);
175774
- fs46.fchown = chownFix(fs46.fchown);
175775
- fs46.lchown = chownFix(fs46.lchown);
175776
- fs46.chmod = chmodFix(fs46.chmod);
175777
- fs46.fchmod = chmodFix(fs46.fchmod);
175778
- fs46.lchmod = chmodFix(fs46.lchmod);
175779
- fs46.chownSync = chownFixSync(fs46.chownSync);
175780
- fs46.fchownSync = chownFixSync(fs46.fchownSync);
175781
- fs46.lchownSync = chownFixSync(fs46.lchownSync);
175782
- fs46.chmodSync = chmodFixSync(fs46.chmodSync);
175783
- fs46.fchmodSync = chmodFixSync(fs46.fchmodSync);
175784
- fs46.lchmodSync = chmodFixSync(fs46.lchmodSync);
175785
- fs46.stat = statFix(fs46.stat);
175786
- fs46.fstat = statFix(fs46.fstat);
175787
- fs46.lstat = statFix(fs46.lstat);
175788
- fs46.statSync = statFixSync(fs46.statSync);
175789
- fs46.fstatSync = statFixSync(fs46.fstatSync);
175790
- fs46.lstatSync = statFixSync(fs46.lstatSync);
175791
- if (fs46.chmod && !fs46.lchmod) {
175792
- fs46.lchmod = function(path42, mode, cb) {
175768
+ patchLchmod(fs45);
175769
+ }
175770
+ if (!fs45.lutimes) {
175771
+ patchLutimes(fs45);
175772
+ }
175773
+ fs45.chown = chownFix(fs45.chown);
175774
+ fs45.fchown = chownFix(fs45.fchown);
175775
+ fs45.lchown = chownFix(fs45.lchown);
175776
+ fs45.chmod = chmodFix(fs45.chmod);
175777
+ fs45.fchmod = chmodFix(fs45.fchmod);
175778
+ fs45.lchmod = chmodFix(fs45.lchmod);
175779
+ fs45.chownSync = chownFixSync(fs45.chownSync);
175780
+ fs45.fchownSync = chownFixSync(fs45.fchownSync);
175781
+ fs45.lchownSync = chownFixSync(fs45.lchownSync);
175782
+ fs45.chmodSync = chmodFixSync(fs45.chmodSync);
175783
+ fs45.fchmodSync = chmodFixSync(fs45.fchmodSync);
175784
+ fs45.lchmodSync = chmodFixSync(fs45.lchmodSync);
175785
+ fs45.stat = statFix(fs45.stat);
175786
+ fs45.fstat = statFix(fs45.fstat);
175787
+ fs45.lstat = statFix(fs45.lstat);
175788
+ fs45.statSync = statFixSync(fs45.statSync);
175789
+ fs45.fstatSync = statFixSync(fs45.fstatSync);
175790
+ fs45.lstatSync = statFixSync(fs45.lstatSync);
175791
+ if (fs45.chmod && !fs45.lchmod) {
175792
+ fs45.lchmod = function(path42, mode, cb) {
175793
175793
  if (cb)
175794
175794
  process.nextTick(cb);
175795
175795
  };
175796
- fs46.lchmodSync = function() {
175796
+ fs45.lchmodSync = function() {
175797
175797
  };
175798
175798
  }
175799
- if (fs46.chown && !fs46.lchown) {
175800
- fs46.lchown = function(path42, uid, gid, cb) {
175799
+ if (fs45.chown && !fs45.lchown) {
175800
+ fs45.lchown = function(path42, uid, gid, cb) {
175801
175801
  if (cb)
175802
175802
  process.nextTick(cb);
175803
175803
  };
175804
- fs46.lchownSync = function() {
175804
+ fs45.lchownSync = function() {
175805
175805
  };
175806
175806
  }
175807
175807
  if (platform === "win32") {
175808
- fs46.rename = typeof fs46.rename !== "function" ? fs46.rename : function(fs$rename) {
175808
+ fs45.rename = typeof fs45.rename !== "function" ? fs45.rename : function(fs$rename) {
175809
175809
  function rename(from4, to, cb) {
175810
175810
  var start = Date.now();
175811
175811
  var backoff = 0;
175812
175812
  fs$rename(from4, to, function CB(er) {
175813
175813
  if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) {
175814
175814
  setTimeout(function() {
175815
- fs46.stat(to, function(stater, st) {
175815
+ fs45.stat(to, function(stater, st) {
175816
175816
  if (stater && stater.code === "ENOENT")
175817
175817
  fs$rename(from4, to, CB);
175818
175818
  else
@@ -175830,9 +175830,9 @@ var require_polyfills2 = __commonJS({
175830
175830
  if (Object.setPrototypeOf)
175831
175831
  Object.setPrototypeOf(rename, fs$rename);
175832
175832
  return rename;
175833
- }(fs46.rename);
175833
+ }(fs45.rename);
175834
175834
  }
175835
- fs46.read = typeof fs46.read !== "function" ? fs46.read : function(fs$read) {
175835
+ fs45.read = typeof fs45.read !== "function" ? fs45.read : function(fs$read) {
175836
175836
  function read2(fd, buffer2, offset, length, position6, callback_) {
175837
175837
  var callback;
175838
175838
  if (callback_ && typeof callback_ === "function") {
@@ -175840,23 +175840,23 @@ var require_polyfills2 = __commonJS({
175840
175840
  callback = function(er, _3, __) {
175841
175841
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
175842
175842
  eagCounter++;
175843
- return fs$read.call(fs46, fd, buffer2, offset, length, position6, callback);
175843
+ return fs$read.call(fs45, fd, buffer2, offset, length, position6, callback);
175844
175844
  }
175845
175845
  callback_.apply(this, arguments);
175846
175846
  };
175847
175847
  }
175848
- return fs$read.call(fs46, fd, buffer2, offset, length, position6, callback);
175848
+ return fs$read.call(fs45, fd, buffer2, offset, length, position6, callback);
175849
175849
  }
175850
175850
  if (Object.setPrototypeOf)
175851
175851
  Object.setPrototypeOf(read2, fs$read);
175852
175852
  return read2;
175853
- }(fs46.read);
175854
- fs46.readSync = typeof fs46.readSync !== "function" ? fs46.readSync : function(fs$readSync) {
175853
+ }(fs45.read);
175854
+ fs45.readSync = typeof fs45.readSync !== "function" ? fs45.readSync : function(fs$readSync) {
175855
175855
  return function(fd, buffer2, offset, length, position6) {
175856
175856
  var eagCounter = 0;
175857
175857
  while (true) {
175858
175858
  try {
175859
- return fs$readSync.call(fs46, fd, buffer2, offset, length, position6);
175859
+ return fs$readSync.call(fs45, fd, buffer2, offset, length, position6);
175860
175860
  } catch (er) {
175861
175861
  if (er.code === "EAGAIN" && eagCounter < 10) {
175862
175862
  eagCounter++;
@@ -175866,10 +175866,10 @@ var require_polyfills2 = __commonJS({
175866
175866
  }
175867
175867
  }
175868
175868
  };
175869
- }(fs46.readSync);
175870
- function patchLchmod(fs47) {
175871
- fs47.lchmod = function(path42, mode, callback) {
175872
- fs47.open(
175869
+ }(fs45.readSync);
175870
+ function patchLchmod(fs46) {
175871
+ fs46.lchmod = function(path42, mode, callback) {
175872
+ fs46.open(
175873
175873
  path42,
175874
175874
  constants2.O_WRONLY | constants2.O_SYMLINK,
175875
175875
  mode,
@@ -175879,8 +175879,8 @@ var require_polyfills2 = __commonJS({
175879
175879
  callback(err);
175880
175880
  return;
175881
175881
  }
175882
- fs47.fchmod(fd, mode, function(err2) {
175883
- fs47.close(fd, function(err22) {
175882
+ fs46.fchmod(fd, mode, function(err2) {
175883
+ fs46.close(fd, function(err22) {
175884
175884
  if (callback)
175885
175885
  callback(err2 || err22);
175886
175886
  });
@@ -175888,68 +175888,68 @@ var require_polyfills2 = __commonJS({
175888
175888
  }
175889
175889
  );
175890
175890
  };
175891
- fs47.lchmodSync = function(path42, mode) {
175892
- var fd = fs47.openSync(path42, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
175891
+ fs46.lchmodSync = function(path42, mode) {
175892
+ var fd = fs46.openSync(path42, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
175893
175893
  var threw = true;
175894
175894
  var ret;
175895
175895
  try {
175896
- ret = fs47.fchmodSync(fd, mode);
175896
+ ret = fs46.fchmodSync(fd, mode);
175897
175897
  threw = false;
175898
175898
  } finally {
175899
175899
  if (threw) {
175900
175900
  try {
175901
- fs47.closeSync(fd);
175901
+ fs46.closeSync(fd);
175902
175902
  } catch (er) {
175903
175903
  }
175904
175904
  } else {
175905
- fs47.closeSync(fd);
175905
+ fs46.closeSync(fd);
175906
175906
  }
175907
175907
  }
175908
175908
  return ret;
175909
175909
  };
175910
175910
  }
175911
- function patchLutimes(fs47) {
175912
- if (constants2.hasOwnProperty("O_SYMLINK") && fs47.futimes) {
175913
- fs47.lutimes = function(path42, at, mt, cb) {
175914
- fs47.open(path42, constants2.O_SYMLINK, function(er, fd) {
175911
+ function patchLutimes(fs46) {
175912
+ if (constants2.hasOwnProperty("O_SYMLINK") && fs46.futimes) {
175913
+ fs46.lutimes = function(path42, at, mt, cb) {
175914
+ fs46.open(path42, constants2.O_SYMLINK, function(er, fd) {
175915
175915
  if (er) {
175916
175916
  if (cb)
175917
175917
  cb(er);
175918
175918
  return;
175919
175919
  }
175920
- fs47.futimes(fd, at, mt, function(er2) {
175921
- fs47.close(fd, function(er22) {
175920
+ fs46.futimes(fd, at, mt, function(er2) {
175921
+ fs46.close(fd, function(er22) {
175922
175922
  if (cb)
175923
175923
  cb(er2 || er22);
175924
175924
  });
175925
175925
  });
175926
175926
  });
175927
175927
  };
175928
- fs47.lutimesSync = function(path42, at, mt) {
175929
- var fd = fs47.openSync(path42, constants2.O_SYMLINK);
175928
+ fs46.lutimesSync = function(path42, at, mt) {
175929
+ var fd = fs46.openSync(path42, constants2.O_SYMLINK);
175930
175930
  var ret;
175931
175931
  var threw = true;
175932
175932
  try {
175933
- ret = fs47.futimesSync(fd, at, mt);
175933
+ ret = fs46.futimesSync(fd, at, mt);
175934
175934
  threw = false;
175935
175935
  } finally {
175936
175936
  if (threw) {
175937
175937
  try {
175938
- fs47.closeSync(fd);
175938
+ fs46.closeSync(fd);
175939
175939
  } catch (er) {
175940
175940
  }
175941
175941
  } else {
175942
- fs47.closeSync(fd);
175942
+ fs46.closeSync(fd);
175943
175943
  }
175944
175944
  }
175945
175945
  return ret;
175946
175946
  };
175947
- } else if (fs47.futimes) {
175948
- fs47.lutimes = function(_a6, _b, _c, cb) {
175947
+ } else if (fs46.futimes) {
175948
+ fs46.lutimes = function(_a6, _b, _c, cb) {
175949
175949
  if (cb)
175950
175950
  process.nextTick(cb);
175951
175951
  };
175952
- fs47.lutimesSync = function() {
175952
+ fs46.lutimesSync = function() {
175953
175953
  };
175954
175954
  }
175955
175955
  }
@@ -175957,7 +175957,7 @@ var require_polyfills2 = __commonJS({
175957
175957
  if (!orig)
175958
175958
  return orig;
175959
175959
  return function(target, mode, cb) {
175960
- return orig.call(fs46, target, mode, function(er) {
175960
+ return orig.call(fs45, target, mode, function(er) {
175961
175961
  if (chownErOk(er))
175962
175962
  er = null;
175963
175963
  if (cb)
@@ -175970,7 +175970,7 @@ var require_polyfills2 = __commonJS({
175970
175970
  return orig;
175971
175971
  return function(target, mode) {
175972
175972
  try {
175973
- return orig.call(fs46, target, mode);
175973
+ return orig.call(fs45, target, mode);
175974
175974
  } catch (er) {
175975
175975
  if (!chownErOk(er))
175976
175976
  throw er;
@@ -175981,7 +175981,7 @@ var require_polyfills2 = __commonJS({
175981
175981
  if (!orig)
175982
175982
  return orig;
175983
175983
  return function(target, uid, gid, cb) {
175984
- return orig.call(fs46, target, uid, gid, function(er) {
175984
+ return orig.call(fs45, target, uid, gid, function(er) {
175985
175985
  if (chownErOk(er))
175986
175986
  er = null;
175987
175987
  if (cb)
@@ -175994,7 +175994,7 @@ var require_polyfills2 = __commonJS({
175994
175994
  return orig;
175995
175995
  return function(target, uid, gid) {
175996
175996
  try {
175997
- return orig.call(fs46, target, uid, gid);
175997
+ return orig.call(fs45, target, uid, gid);
175998
175998
  } catch (er) {
175999
175999
  if (!chownErOk(er))
176000
176000
  throw er;
@@ -176019,14 +176019,14 @@ var require_polyfills2 = __commonJS({
176019
176019
  if (cb)
176020
176020
  cb.apply(this, arguments);
176021
176021
  }
176022
- return options ? orig.call(fs46, target, options, callback) : orig.call(fs46, target, callback);
176022
+ return options ? orig.call(fs45, target, options, callback) : orig.call(fs45, target, callback);
176023
176023
  };
176024
176024
  }
176025
176025
  function statFixSync(orig) {
176026
176026
  if (!orig)
176027
176027
  return orig;
176028
176028
  return function(target, options) {
176029
- var stats = options ? orig.call(fs46, target, options) : orig.call(fs46, target);
176029
+ var stats = options ? orig.call(fs45, target, options) : orig.call(fs45, target);
176030
176030
  if (stats) {
176031
176031
  if (stats.uid < 0)
176032
176032
  stats.uid += 4294967296;
@@ -176057,7 +176057,7 @@ var require_legacy_streams2 = __commonJS({
176057
176057
  "../../node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
176058
176058
  var Stream4 = require("stream").Stream;
176059
176059
  module2.exports = legacy;
176060
- function legacy(fs46) {
176060
+ function legacy(fs45) {
176061
176061
  return {
176062
176062
  ReadStream,
176063
176063
  WriteStream
@@ -176102,7 +176102,7 @@ var require_legacy_streams2 = __commonJS({
176102
176102
  });
176103
176103
  return;
176104
176104
  }
176105
- fs46.open(this.path, this.flags, this.mode, function(err, fd) {
176105
+ fs45.open(this.path, this.flags, this.mode, function(err, fd) {
176106
176106
  if (err) {
176107
176107
  self2.emit("error", err);
176108
176108
  self2.readable = false;
@@ -176142,7 +176142,7 @@ var require_legacy_streams2 = __commonJS({
176142
176142
  this.busy = false;
176143
176143
  this._queue = [];
176144
176144
  if (this.fd === null) {
176145
- this._open = fs46.open;
176145
+ this._open = fs45.open;
176146
176146
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
176147
176147
  this.flush();
176148
176148
  }
@@ -176177,7 +176177,7 @@ var require_clone4 = __commonJS({
176177
176177
  // ../../node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/graceful-fs.js
176178
176178
  var require_graceful_fs2 = __commonJS({
176179
176179
  "../../node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
176180
- var fs46 = require("fs");
176180
+ var fs45 = require("fs");
176181
176181
  var polyfills = require_polyfills2();
176182
176182
  var legacy = require_legacy_streams2();
176183
176183
  var clone4 = require_clone4();
@@ -176209,12 +176209,12 @@ var require_graceful_fs2 = __commonJS({
176209
176209
  m2 = "GFS4: " + m2.split(/\n/).join("\nGFS4: ");
176210
176210
  console.error(m2);
176211
176211
  };
176212
- if (!fs46[gracefulQueue]) {
176212
+ if (!fs45[gracefulQueue]) {
176213
176213
  queue = global[gracefulQueue] || [];
176214
- publishQueue(fs46, queue);
176215
- fs46.close = function(fs$close) {
176214
+ publishQueue(fs45, queue);
176215
+ fs45.close = function(fs$close) {
176216
176216
  function close2(fd, cb) {
176217
- return fs$close.call(fs46, fd, function(err) {
176217
+ return fs$close.call(fs45, fd, function(err) {
176218
176218
  if (!err) {
176219
176219
  resetQueue();
176220
176220
  }
@@ -176226,40 +176226,40 @@ var require_graceful_fs2 = __commonJS({
176226
176226
  value: fs$close
176227
176227
  });
176228
176228
  return close2;
176229
- }(fs46.close);
176230
- fs46.closeSync = function(fs$closeSync) {
176229
+ }(fs45.close);
176230
+ fs45.closeSync = function(fs$closeSync) {
176231
176231
  function closeSync(fd) {
176232
- fs$closeSync.apply(fs46, arguments);
176232
+ fs$closeSync.apply(fs45, arguments);
176233
176233
  resetQueue();
176234
176234
  }
176235
176235
  Object.defineProperty(closeSync, previousSymbol, {
176236
176236
  value: fs$closeSync
176237
176237
  });
176238
176238
  return closeSync;
176239
- }(fs46.closeSync);
176239
+ }(fs45.closeSync);
176240
176240
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
176241
176241
  process.on("exit", function() {
176242
- debug(fs46[gracefulQueue]);
176243
- require("assert").equal(fs46[gracefulQueue].length, 0);
176242
+ debug(fs45[gracefulQueue]);
176243
+ require("assert").equal(fs45[gracefulQueue].length, 0);
176244
176244
  });
176245
176245
  }
176246
176246
  }
176247
176247
  var queue;
176248
176248
  if (!global[gracefulQueue]) {
176249
- publishQueue(global, fs46[gracefulQueue]);
176250
- }
176251
- module2.exports = patch4(clone4(fs46));
176252
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs46.__patched) {
176253
- module2.exports = patch4(fs46);
176254
- fs46.__patched = true;
176255
- }
176256
- function patch4(fs47) {
176257
- polyfills(fs47);
176258
- fs47.gracefulify = patch4;
176259
- fs47.createReadStream = createReadStream2;
176260
- fs47.createWriteStream = createWriteStream2;
176261
- var fs$readFile = fs47.readFile;
176262
- fs47.readFile = readFile;
176249
+ publishQueue(global, fs45[gracefulQueue]);
176250
+ }
176251
+ module2.exports = patch4(clone4(fs45));
176252
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs45.__patched) {
176253
+ module2.exports = patch4(fs45);
176254
+ fs45.__patched = true;
176255
+ }
176256
+ function patch4(fs46) {
176257
+ polyfills(fs46);
176258
+ fs46.gracefulify = patch4;
176259
+ fs46.createReadStream = createReadStream2;
176260
+ fs46.createWriteStream = createWriteStream2;
176261
+ var fs$readFile = fs46.readFile;
176262
+ fs46.readFile = readFile;
176263
176263
  function readFile(path42, options, cb) {
176264
176264
  if (typeof options === "function")
176265
176265
  cb = options, options = null;
@@ -176275,8 +176275,8 @@ var require_graceful_fs2 = __commonJS({
176275
176275
  });
176276
176276
  }
176277
176277
  }
176278
- var fs$writeFile = fs47.writeFile;
176279
- fs47.writeFile = writeFile2;
176278
+ var fs$writeFile = fs46.writeFile;
176279
+ fs46.writeFile = writeFile2;
176280
176280
  function writeFile2(path42, data, options, cb) {
176281
176281
  if (typeof options === "function")
176282
176282
  cb = options, options = null;
@@ -176292,9 +176292,9 @@ var require_graceful_fs2 = __commonJS({
176292
176292
  });
176293
176293
  }
176294
176294
  }
176295
- var fs$appendFile = fs47.appendFile;
176295
+ var fs$appendFile = fs46.appendFile;
176296
176296
  if (fs$appendFile)
176297
- fs47.appendFile = appendFile;
176297
+ fs46.appendFile = appendFile;
176298
176298
  function appendFile(path42, data, options, cb) {
176299
176299
  if (typeof options === "function")
176300
176300
  cb = options, options = null;
@@ -176310,9 +176310,9 @@ var require_graceful_fs2 = __commonJS({
176310
176310
  });
176311
176311
  }
176312
176312
  }
176313
- var fs$copyFile = fs47.copyFile;
176313
+ var fs$copyFile = fs46.copyFile;
176314
176314
  if (fs$copyFile)
176315
- fs47.copyFile = copyFile2;
176315
+ fs46.copyFile = copyFile2;
176316
176316
  function copyFile2(src, dest, flags, cb) {
176317
176317
  if (typeof flags === "function") {
176318
176318
  cb = flags;
@@ -176330,8 +176330,8 @@ var require_graceful_fs2 = __commonJS({
176330
176330
  });
176331
176331
  }
176332
176332
  }
176333
- var fs$readdir = fs47.readdir;
176334
- fs47.readdir = readdir2;
176333
+ var fs$readdir = fs46.readdir;
176334
+ fs46.readdir = readdir2;
176335
176335
  var noReaddirOptionVersions = /^v[0-5]\./;
176336
176336
  function readdir2(path42, options, cb) {
176337
176337
  if (typeof options === "function")
@@ -176372,21 +176372,21 @@ var require_graceful_fs2 = __commonJS({
176372
176372
  }
176373
176373
  }
176374
176374
  if (process.version.substr(0, 4) === "v0.8") {
176375
- var legStreams = legacy(fs47);
176375
+ var legStreams = legacy(fs46);
176376
176376
  ReadStream = legStreams.ReadStream;
176377
176377
  WriteStream = legStreams.WriteStream;
176378
176378
  }
176379
- var fs$ReadStream = fs47.ReadStream;
176379
+ var fs$ReadStream = fs46.ReadStream;
176380
176380
  if (fs$ReadStream) {
176381
176381
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
176382
176382
  ReadStream.prototype.open = ReadStream$open;
176383
176383
  }
176384
- var fs$WriteStream = fs47.WriteStream;
176384
+ var fs$WriteStream = fs46.WriteStream;
176385
176385
  if (fs$WriteStream) {
176386
176386
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
176387
176387
  WriteStream.prototype.open = WriteStream$open;
176388
176388
  }
176389
- Object.defineProperty(fs47, "ReadStream", {
176389
+ Object.defineProperty(fs46, "ReadStream", {
176390
176390
  get: function() {
176391
176391
  return ReadStream;
176392
176392
  },
@@ -176396,7 +176396,7 @@ var require_graceful_fs2 = __commonJS({
176396
176396
  enumerable: true,
176397
176397
  configurable: true
176398
176398
  });
176399
- Object.defineProperty(fs47, "WriteStream", {
176399
+ Object.defineProperty(fs46, "WriteStream", {
176400
176400
  get: function() {
176401
176401
  return WriteStream;
176402
176402
  },
@@ -176407,7 +176407,7 @@ var require_graceful_fs2 = __commonJS({
176407
176407
  configurable: true
176408
176408
  });
176409
176409
  var FileReadStream = ReadStream;
176410
- Object.defineProperty(fs47, "FileReadStream", {
176410
+ Object.defineProperty(fs46, "FileReadStream", {
176411
176411
  get: function() {
176412
176412
  return FileReadStream;
176413
176413
  },
@@ -176418,7 +176418,7 @@ var require_graceful_fs2 = __commonJS({
176418
176418
  configurable: true
176419
176419
  });
176420
176420
  var FileWriteStream = WriteStream;
176421
- Object.defineProperty(fs47, "FileWriteStream", {
176421
+ Object.defineProperty(fs46, "FileWriteStream", {
176422
176422
  get: function() {
176423
176423
  return FileWriteStream;
176424
176424
  },
@@ -176467,13 +176467,13 @@ var require_graceful_fs2 = __commonJS({
176467
176467
  });
176468
176468
  }
176469
176469
  function createReadStream2(path42, options) {
176470
- return new fs47.ReadStream(path42, options);
176470
+ return new fs46.ReadStream(path42, options);
176471
176471
  }
176472
176472
  function createWriteStream2(path42, options) {
176473
- return new fs47.WriteStream(path42, options);
176473
+ return new fs46.WriteStream(path42, options);
176474
176474
  }
176475
- var fs$open = fs47.open;
176476
- fs47.open = open2;
176475
+ var fs$open = fs46.open;
176476
+ fs46.open = open2;
176477
176477
  function open2(path42, flags, mode, cb) {
176478
176478
  if (typeof mode === "function")
176479
176479
  cb = mode, mode = null;
@@ -176489,20 +176489,20 @@ var require_graceful_fs2 = __commonJS({
176489
176489
  });
176490
176490
  }
176491
176491
  }
176492
- return fs47;
176492
+ return fs46;
176493
176493
  }
176494
176494
  function enqueue(elem) {
176495
176495
  debug("ENQUEUE", elem[0].name, elem[1]);
176496
- fs46[gracefulQueue].push(elem);
176496
+ fs45[gracefulQueue].push(elem);
176497
176497
  retry();
176498
176498
  }
176499
176499
  var retryTimer;
176500
176500
  function resetQueue() {
176501
176501
  var now = Date.now();
176502
- for (var i2 = 0; i2 < fs46[gracefulQueue].length; ++i2) {
176503
- if (fs46[gracefulQueue][i2].length > 2) {
176504
- fs46[gracefulQueue][i2][3] = now;
176505
- fs46[gracefulQueue][i2][4] = now;
176502
+ for (var i2 = 0; i2 < fs45[gracefulQueue].length; ++i2) {
176503
+ if (fs45[gracefulQueue][i2].length > 2) {
176504
+ fs45[gracefulQueue][i2][3] = now;
176505
+ fs45[gracefulQueue][i2][4] = now;
176506
176506
  }
176507
176507
  }
176508
176508
  retry();
@@ -176510,9 +176510,9 @@ var require_graceful_fs2 = __commonJS({
176510
176510
  function retry() {
176511
176511
  clearTimeout(retryTimer);
176512
176512
  retryTimer = void 0;
176513
- if (fs46[gracefulQueue].length === 0)
176513
+ if (fs45[gracefulQueue].length === 0)
176514
176514
  return;
176515
- var elem = fs46[gracefulQueue].shift();
176515
+ var elem = fs45[gracefulQueue].shift();
176516
176516
  var fn = elem[0];
176517
176517
  var args = elem[1];
176518
176518
  var err = elem[2];
@@ -176534,7 +176534,7 @@ var require_graceful_fs2 = __commonJS({
176534
176534
  debug("RETRY", fn.name, args);
176535
176535
  fn.apply(null, args.concat([startTime]));
176536
176536
  } else {
176537
- fs46[gracefulQueue].push(elem);
176537
+ fs45[gracefulQueue].push(elem);
176538
176538
  }
176539
176539
  }
176540
176540
  if (retryTimer === void 0) {
@@ -176704,7 +176704,7 @@ var require_config_chain = __commonJS({
176704
176704
  "../../node_modules/config-chain/index.js"(exports2, module2) {
176705
176705
  var ProtoList = require_proto_list();
176706
176706
  var path42 = require("path");
176707
- var fs46 = require("fs");
176707
+ var fs45 = require("fs");
176708
176708
  var ini = require_ini();
176709
176709
  var EE = require("events").EventEmitter;
176710
176710
  var url = require("url");
@@ -176723,7 +176723,7 @@ var require_config_chain = __commonJS({
176723
176723
  function find3(start, rel3) {
176724
176724
  var file = path42.join(start, rel3);
176725
176725
  try {
176726
- fs46.statSync(file);
176726
+ fs45.statSync(file);
176727
176727
  return file;
176728
176728
  } catch (err) {
176729
176729
  if (path42.dirname(start) !== start)
@@ -176761,7 +176761,7 @@ var require_config_chain = __commonJS({
176761
176761
  var file = path42.join.apply(null, args);
176762
176762
  var content3;
176763
176763
  try {
176764
- content3 = fs46.readFileSync(file, "utf-8");
176764
+ content3 = fs45.readFileSync(file, "utf-8");
176765
176765
  } catch (err) {
176766
176766
  return;
176767
176767
  }
@@ -176857,7 +176857,7 @@ var require_config_chain = __commonJS({
176857
176857
  data = ini.stringify(data);
176858
176858
  }
176859
176859
  this._saving++;
176860
- fs46.writeFile(target.path, data, "utf8", function(er) {
176860
+ fs45.writeFile(target.path, data, "utf8", function(er) {
176861
176861
  this._saving--;
176862
176862
  if (er) {
176863
176863
  if (cb)
@@ -176879,7 +176879,7 @@ var require_config_chain = __commonJS({
176879
176879
  this.sources[name3] = { path: file, type: type2 };
176880
176880
  this.push(marker);
176881
176881
  this._await();
176882
- fs46.readFile(file, "utf8", function(er, data) {
176882
+ fs45.readFile(file, "utf8", function(er, data) {
176883
176883
  if (er)
176884
176884
  this.emit("error", er);
176885
176885
  this.addString(data, file, type2, marker);
@@ -177028,7 +177028,7 @@ var require_dist3 = __commonJS({
177028
177028
  var require_util6 = __commonJS({
177029
177029
  "../../node_modules/@pnpm/npm-conf/lib/util.js"(exports2) {
177030
177030
  "use strict";
177031
- var fs46 = require("fs");
177031
+ var fs45 = require("fs");
177032
177032
  var path42 = require("path");
177033
177033
  var { envReplace } = require_dist3();
177034
177034
  var parseField = (types6, field, key2) => {
@@ -177094,7 +177094,7 @@ var require_util6 = __commonJS({
177094
177094
  return original;
177095
177095
  }
177096
177096
  try {
177097
- const files = fs46.readdirSync(name4);
177097
+ const files = fs45.readdirSync(name4);
177098
177098
  if (files.includes("node_modules") || files.includes("package.json") || files.includes("package.json5") || files.includes("package.yaml") || files.includes("pnpm-workspace.yaml")) {
177099
177099
  return name4;
177100
177100
  }
@@ -177265,7 +177265,7 @@ var require_conf = __commonJS({
177265
177265
  "../../node_modules/@pnpm/npm-conf/lib/conf.js"(exports2, module2) {
177266
177266
  "use strict";
177267
177267
  var { readCAFileSync } = require_dist2();
177268
- var fs46 = require("fs");
177268
+ var fs45 = require("fs");
177269
177269
  var path42 = require("path");
177270
177270
  var { ConfigChain } = require_config_chain();
177271
177271
  var envKeyToSetting = require_envKeyToSetting();
@@ -177296,7 +177296,7 @@ var require_conf = __commonJS({
177296
177296
  this.push(marker);
177297
177297
  this._await();
177298
177298
  try {
177299
- const contents = fs46.readFileSync(file, "utf8");
177299
+ const contents = fs45.readFileSync(file, "utf8");
177300
177300
  this.addString(contents, file, "ini", marker);
177301
177301
  } catch (error) {
177302
177302
  if (error.code === "ENOENT") {
@@ -177385,7 +177385,7 @@ var require_conf = __commonJS({
177385
177385
  }
177386
177386
  const prefix2 = path42.resolve(this.get("prefix"));
177387
177387
  try {
177388
- const stats = fs46.statSync(prefix2);
177388
+ const stats = fs45.statSync(prefix2);
177389
177389
  defConf.user = stats.uid;
177390
177390
  } catch (error) {
177391
177391
  if (error.code === "ENOENT") {
@@ -184004,7 +184004,7 @@ var require_url = __commonJS({
184004
184004
  return url && parse13(url).toString();
184005
184005
  }
184006
184006
  URLExt2.normalize = normalize6;
184007
- function join20(...parts) {
184007
+ function join19(...parts) {
184008
184008
  let u3 = (0, url_parse_1.default)(parts[0], {});
184009
184009
  const isSchemaLess = u3.protocol === "" && u3.slashes;
184010
184010
  if (isSchemaLess) {
@@ -184014,9 +184014,9 @@ var require_url = __commonJS({
184014
184014
  const path42 = path_1.posix.join(`${!!prefix2 && u3.pathname[0] !== "/" ? "/" : ""}${u3.pathname}`, ...parts.slice(1));
184015
184015
  return `${prefix2}${path42 === "." ? "" : path42}`;
184016
184016
  }
184017
- URLExt2.join = join20;
184017
+ URLExt2.join = join19;
184018
184018
  function encodeParts(url) {
184019
- return join20(...url.split("/").map(encodeURIComponent));
184019
+ return join19(...url.split("/").map(encodeURIComponent));
184020
184020
  }
184021
184021
  URLExt2.encodeParts = encodeParts;
184022
184022
  function objectToQueryString(value) {
@@ -184236,11 +184236,11 @@ var require_path2 = __commonJS({
184236
184236
  var path_1 = require("path");
184237
184237
  var PathExt;
184238
184238
  (function(PathExt2) {
184239
- function join20(...paths) {
184239
+ function join19(...paths) {
184240
184240
  const path42 = path_1.posix.join(...paths);
184241
184241
  return path42 === "." ? "" : removeSlash(path42);
184242
184242
  }
184243
- PathExt2.join = join20;
184243
+ PathExt2.join = join19;
184244
184244
  function joinWithLeadingSlash(...paths) {
184245
184245
  const path42 = path_1.posix.join(...paths);
184246
184246
  return path42 === "." ? "" : path42;
@@ -193279,11 +193279,11 @@ var {
193279
193279
  } = import_index.default;
193280
193280
 
193281
193281
  // src/version.ts
193282
- var version = "1.2.2";
193282
+ var version = "1.2.3";
193283
193283
  var version_default = version;
193284
193284
 
193285
193285
  // ../myst-cli/dist/build/build.js
193286
- var import_node_path57 = __toESM(require("path"), 1);
193286
+ var import_node_path56 = __toESM(require("path"), 1);
193287
193287
 
193288
193288
  // ../myst-cli/node_modules/chalk/source/vendor/ansi-styles/index.js
193289
193289
  var ANSI_BACKGROUND_OFFSET = 10;
@@ -202013,7 +202013,7 @@ function toText(content3) {
202013
202013
  }).join("");
202014
202014
  }
202015
202015
  function copyNode(node3) {
202016
- return JSON.parse(JSON.stringify(node3));
202016
+ return structuredClone(node3);
202017
202017
  }
202018
202018
  function mergeTextNodes(node3) {
202019
202019
  var _a6;
@@ -206302,9 +206302,6 @@ function fillReferenceEnumerators(node3, enumerator) {
206302
206302
  const num = String(enumerator);
206303
206303
  findAndReplace(node3, { "%s": num, "{number}": num });
206304
206304
  }
206305
- function copyNode2(node3) {
206306
- return JSON.parse(JSON.stringify(node3));
206307
- }
206308
206305
  function kindFromNode(node3) {
206309
206306
  return node3.type === "container" ? node3.kind : node3.type;
206310
206307
  }
@@ -206340,7 +206337,7 @@ var State2 = class {
206340
206337
  }
206341
206338
  if (node3.identifier) {
206342
206339
  this.targets[node3.identifier] = {
206343
- node: copyNode2(node3),
206340
+ node: structuredClone(node3),
206344
206341
  kind
206345
206342
  };
206346
206343
  }
@@ -206397,13 +206394,13 @@ var State2 = class {
206397
206394
  node3.resolved = true;
206398
206395
  } else if (kinds.ref.ref && kinds.target.heading) {
206399
206396
  if (noNodeChildren) {
206400
- node3.children = copyNode2(target.node).children;
206397
+ node3.children = structuredClone(target.node).children;
206401
206398
  }
206402
206399
  node3.resolved = true;
206403
206400
  } else if (kinds.ref.ref && (kinds.target.figure || kinds.target.table)) {
206404
206401
  if (noNodeChildren) {
206405
206402
  const caption3 = select("caption > paragraph", target.node);
206406
- node3.children = copyNode2(caption3).children;
206403
+ node3.children = structuredClone(caption3).children;
206407
206404
  }
206408
206405
  node3.resolved = true;
206409
206406
  } else if (kinds.ref.numref && kinds.target.figure && target.node.enumerator) {
@@ -208964,16 +208961,16 @@ function collectText(node3, info) {
208964
208961
  start = end + 1;
208965
208962
  }
208966
208963
  let index4 = -1;
208967
- let join20;
208964
+ let join19;
208968
208965
  while (++index4 < lines.length) {
208969
208966
  if (lines[index4].charCodeAt(lines[index4].length - 1) === 8203 || index4 < lines.length - 1 && lines[index4 + 1].charCodeAt(0) === 8203) {
208970
208967
  result.push(lines[index4]);
208971
- join20 = void 0;
208968
+ join19 = void 0;
208972
208969
  } else if (lines[index4]) {
208973
- if (typeof join20 === "number")
208974
- result.push(join20);
208970
+ if (typeof join19 === "number")
208971
+ result.push(join19);
208975
208972
  result.push(lines[index4]);
208976
- join20 = 0;
208973
+ join19 = 0;
208977
208974
  } else if (index4 === 0 || index4 === lines.length - 1) {
208978
208975
  result.push(0);
208979
208976
  }
@@ -251537,8 +251534,8 @@ var xcolor_expressions_default = (
251537
251534
  var peg$f18 = function(c, r2) {
251538
251535
  return { type: "num_spec", content: r2 ? [c].concat(r2) : [c] };
251539
251536
  };
251540
- var peg$f19 = function(c, fs46) {
251541
- return { type: "color", color: c, functions: fs46 };
251537
+ var peg$f19 = function(c, fs45) {
251538
+ return { type: "color", color: c, functions: fs45 };
251542
251539
  };
251543
251540
  var peg$f20 = function(f3, n) {
251544
251541
  return n;
@@ -265145,9 +265142,9 @@ var require_standalone = __commonJS3({
265145
265142
  return Tl(bl(e2));
265146
265143
  };
265147
265144
  });
265148
- var Ct = xe((I0, fs46) => {
265145
+ var Ct = xe((I0, fs45) => {
265149
265146
  var Bl = mt(), Nl = yr(), wl = Bl({}.hasOwnProperty);
265150
- fs46.exports = Object.hasOwn || function(r2, t2) {
265147
+ fs45.exports = Object.hasOwn || function(r2, t2) {
265151
265148
  return wl(Nl(r2), t2);
265152
265149
  };
265153
265150
  });
@@ -280151,10 +280148,12 @@ var embedDirective = {
280151
280148
  },
280152
280149
  options: {
280153
280150
  "remove-input": {
280154
- type: Boolean
280151
+ type: Boolean,
280152
+ doc: "If embedding a Jupyter Notebook cell, remove the input of the cell."
280155
280153
  },
280156
280154
  "remove-output": {
280157
- type: Boolean
280155
+ type: Boolean,
280156
+ doc: "If embedding a Jupyter Notebook cell, remove the output of the cell."
280158
280157
  }
280159
280158
  },
280160
280159
  run(data) {
@@ -287406,7 +287405,7 @@ var import_node_path17 = __toESM(require("path"), 1);
287406
287405
  var import_nbtx = __toESM(require_cjs2(), 1);
287407
287406
 
287408
287407
  // ../myst-cli/dist/version.js
287409
- var version2 = "1.2.2";
287408
+ var version2 = "1.2.3";
287410
287409
  var version_default2 = version2;
287411
287410
 
287412
287411
  // ../myst-cli/dist/utils/headers.js
@@ -287531,14 +287530,14 @@ function createTempFolder(session) {
287531
287530
 
287532
287531
  // ../myst-cli/dist/utils/fileInfo.js
287533
287532
  var import_node_path11 = __toESM(require("path"), 1);
287534
- function input2name(input3, allowed, join20) {
287535
- let name3 = `\xB6${input3}`.toLowerCase().split("").map((char) => allowed.test(char) ? char : "\xB6").join("").split("").reduce((p5, n) => p5.charAt(p5.length - 1) === "\xB6" && n === "\xB6" ? p5 : p5 + n).slice(1).replace(/¶/g, join20);
287536
- if (join20) {
287537
- name3 = name3.replace(new RegExp(`${join20}+`, "g"), join20);
287533
+ function input2name(input3, allowed, join19) {
287534
+ let name3 = `\xB6${input3}`.toLowerCase().split("").map((char) => allowed.test(char) ? char : "\xB6").join("").split("").reduce((p5, n) => p5.charAt(p5.length - 1) === "\xB6" && n === "\xB6" ? p5 : p5 + n).slice(1).replace(/¶/g, join19);
287535
+ if (join19) {
287536
+ name3 = name3.replace(new RegExp(`${join19}+`, "g"), join19);
287538
287537
  }
287539
- if (name3.charAt(0) === join20)
287538
+ if (name3.charAt(0) === join19)
287540
287539
  name3 = name3.slice(1);
287541
- if (name3.charAt(name3.length - 1) === join20)
287540
+ if (name3.charAt(name3.length - 1) === join19)
287542
287541
  name3 = name3.slice(0, name3.length - 1);
287543
287542
  return name3;
287544
287543
  }
@@ -293391,7 +293390,7 @@ var PathScurryBase = class {
293391
293390
  *
293392
293391
  * @internal
293393
293392
  */
293394
- constructor(cwd = process.cwd(), pathImpl, sep5, { nocase, childrenCacheSize = 16 * 1024, fs: fs46 = defaultFS } = {}) {
293393
+ constructor(cwd = process.cwd(), pathImpl, sep5, { nocase, childrenCacheSize = 16 * 1024, fs: fs45 = defaultFS } = {}) {
293395
293394
  /**
293396
293395
  * The root Path entry for the current working directory of this Scurry
293397
293396
  */
@@ -293418,7 +293417,7 @@ var PathScurryBase = class {
293418
293417
  */
293419
293418
  __publicField(this, "nocase");
293420
293419
  __privateAdd(this, _fs2, void 0);
293421
- __privateSet(this, _fs2, fsFromOption(fs46));
293420
+ __privateSet(this, _fs2, fsFromOption(fs45));
293422
293421
  if (cwd instanceof URL || cwd.startsWith("file://")) {
293423
293422
  cwd = (0, import_url2.fileURLToPath)(cwd);
293424
293423
  }
@@ -293980,8 +293979,8 @@ var PathScurryWin32 = class extends PathScurryBase {
293980
293979
  /**
293981
293980
  * @internal
293982
293981
  */
293983
- newRoot(fs46) {
293984
- return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs46 });
293982
+ newRoot(fs45) {
293983
+ return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs45 });
293985
293984
  }
293986
293985
  /**
293987
293986
  * Return true if the provided path string is an absolute path
@@ -294009,8 +294008,8 @@ var PathScurryPosix = class extends PathScurryBase {
294009
294008
  /**
294010
294009
  * @internal
294011
294010
  */
294012
- newRoot(fs46) {
294013
- return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs46 });
294011
+ newRoot(fs45) {
294012
+ return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs45 });
294014
294013
  }
294015
294014
  /**
294016
294015
  * Return true if the provided path string is an absolute path
@@ -295413,10 +295412,10 @@ function filterPages(project) {
295413
295412
  }
295414
295413
 
295415
295414
  // ../myst-cli/dist/build/site/prepare.js
295416
- var import_node_fs31 = __toESM(require("fs"), 1);
295415
+ var import_node_fs30 = __toESM(require("fs"), 1);
295417
295416
 
295418
295417
  // ../myst-cli/dist/process/site.js
295419
- var import_node_path39 = require("path");
295418
+ var import_node_path38 = require("path");
295420
295419
 
295421
295420
  // ../../node_modules/intersphinx/dist/intersphinx.js
295422
295421
  var import_fs2 = __toESM(require("fs"), 1);
@@ -298651,6 +298650,8 @@ ${error === null || error === void 0 ? void 0 : error.stack}
298651
298650
  }
298652
298651
  return;
298653
298652
  }
298653
+ reference.kind = "intersphinx";
298654
+ reference.value = inventory;
298654
298655
  if (inventory.id && inventory.path && isUrl(inventory.path)) {
298655
298656
  const intersphinxPath = cachePath(session, inventoryCacheFilename("intersphinx", inventory.id, inventory.path));
298656
298657
  if (!import_node_fs24.default.existsSync(intersphinxPath)) {
@@ -298687,7 +298688,7 @@ async function loadReferences(session, opts) {
298687
298688
  }
298688
298689
 
298689
298690
  // ../myst-cli/dist/process/mdast.js
298690
- var import_node_path38 = __toESM(require("path"), 1);
298691
+ var import_node_path37 = __toESM(require("path"), 1);
298691
298692
 
298692
298693
  // ../myst-cli/dist/transforms/citations.js
298693
298694
  function pushCite(references, citeRenderer, label) {
@@ -299153,14 +299154,9 @@ async function transformLinkedDOIs(session, vfile2, mdast2, doiRenderer, path42)
299153
299154
  }
299154
299155
 
299155
299156
  // ../myst-cli/dist/transforms/ror.js
299156
- var import_node_fs25 = __toESM(require("fs"), 1);
299157
- var import_node_path31 = require("path");
299158
- function rorFromCacheFile(session, ror) {
299159
- const filename = `ror-${computeHash(ror)}.json`;
299160
- const cacheFolder = (0, import_node_path31.join)(session.buildPath(), "cache");
299161
- if (!import_node_fs25.default.existsSync(cacheFolder))
299162
- import_node_fs25.default.mkdirSync(cacheFolder, { recursive: true });
299163
- return (0, import_node_path31.join)(cacheFolder, filename);
299157
+ var ROR_MAX_AGE = 30;
299158
+ function rorCacheFilename(ror) {
299159
+ return `ror-${computeHash(ror)}.json`;
299164
299160
  }
299165
299161
  async function resolveRORAsJSON(session, ror) {
299166
299162
  const url = `https://api.ror.org/organizations/${ror}`;
@@ -299179,12 +299175,10 @@ async function resolveRORAsJSON(session, ror) {
299179
299175
  async function resolveROR(session, vfile2, node3, ror) {
299180
299176
  if (!ror)
299181
299177
  return void 0;
299182
- const cachePath2 = rorFromCacheFile(session, ror);
299183
- if (import_node_fs25.default.existsSync(cachePath2)) {
299184
- const cached = import_node_fs25.default.readFileSync(cachePath2).toString();
299185
- session.log.debug(`Loaded cached ROR response for https://ror.org/${ror}`);
299178
+ const filename = rorCacheFilename(ror);
299179
+ const cached = loadFromCache(session, filename, { maxAge: ROR_MAX_AGE });
299180
+ if (cached)
299186
299181
  return JSON.parse(cached);
299187
- }
299188
299182
  const toc = tic();
299189
299183
  let data;
299190
299184
  try {
@@ -299204,8 +299198,7 @@ async function resolveROR(session, vfile2, node3, ror) {
299204
299198
  }
299205
299199
  if (!data)
299206
299200
  return void 0;
299207
- session.log.debug(`Saving ROR JSON to cache ${cachePath2}`);
299208
- import_node_fs25.default.writeFileSync(cachePath2, JSON.stringify(data));
299201
+ writeToCache(session, filename, JSON.stringify(data));
299209
299202
  return data;
299210
299203
  }
299211
299204
  async function transformLinkedRORs(session, vfile2, mdast2, path42) {
@@ -299223,7 +299216,6 @@ async function transformLinkedRORs(session, vfile2, mdast2, path42) {
299223
299216
  return;
299224
299217
  number2 += 1;
299225
299218
  const rorData = await resolveROR(session, vfile2, node3, ror);
299226
- console.log(rorData);
299227
299219
  if (rorData && toText(node3.children) === ror) {
299228
299220
  node3.children = [{ type: "text", value: rorData.name }];
299229
299221
  }
@@ -299288,8 +299280,8 @@ var filter2 = (
299288
299280
  );
299289
299281
 
299290
299282
  // ../myst-cli/dist/transforms/links.js
299291
- var import_node_fs26 = __toESM(require("fs"), 1);
299292
- var import_node_path32 = __toESM(require("path"), 1);
299283
+ var import_node_fs25 = __toESM(require("fs"), 1);
299284
+ var import_node_path31 = __toESM(require("path"), 1);
299293
299285
  var import_p_limit = __toESM(require_p_limit(), 1);
299294
299286
  var LINK_MAX_AGE = 30;
299295
299287
  var skippedDomains = [
@@ -299350,15 +299342,15 @@ function fileFromRelativePath(pathFromLink, file) {
299350
299342
  [pathFromLink, ...target] = pathFromLink.split("#");
299351
299343
  pathFromLink = decodeURIComponent(pathFromLink);
299352
299344
  if (file) {
299353
- pathFromLink = import_node_path32.default.resolve(import_node_path32.default.dirname(file), pathFromLink);
299345
+ pathFromLink = import_node_path31.default.resolve(import_node_path31.default.dirname(file), pathFromLink);
299354
299346
  }
299355
- if (import_node_fs26.default.existsSync(pathFromLink) && import_node_fs26.default.lstatSync(pathFromLink).isDirectory()) {
299347
+ if (import_node_fs25.default.existsSync(pathFromLink) && import_node_fs25.default.lstatSync(pathFromLink).isDirectory()) {
299356
299348
  return void 0;
299357
299349
  }
299358
- if (!import_node_fs26.default.existsSync(pathFromLink)) {
299359
- if (import_node_fs26.default.existsSync(`${pathFromLink}.md`)) {
299350
+ if (!import_node_fs25.default.existsSync(pathFromLink)) {
299351
+ if (import_node_fs25.default.existsSync(`${pathFromLink}.md`)) {
299360
299352
  pathFromLink = `${pathFromLink}.md`;
299361
- } else if (import_node_fs26.default.existsSync(`${pathFromLink}.ipynb`)) {
299353
+ } else if (import_node_fs25.default.existsSync(`${pathFromLink}.ipynb`)) {
299362
299354
  pathFromLink = `${pathFromLink}.ipynb`;
299363
299355
  } else {
299364
299356
  return void 0;
@@ -299416,7 +299408,7 @@ var StaticFileTransformer = class {
299416
299408
  link4.url = `/${copiedFile}`;
299417
299409
  link4.static = true;
299418
299410
  }
299419
- updateLinkTextIfEmpty(link4, title || import_node_path32.default.basename(linkFile));
299411
+ updateLinkTextIfEmpty(link4, title || import_node_path31.default.basename(linkFile));
299420
299412
  return true;
299421
299413
  }
299422
299414
  };
@@ -299649,12 +299641,12 @@ async function embedTransform(session, mdast2, file, dependencies, state) {
299649
299641
  }
299650
299642
 
299651
299643
  // ../myst-cli/dist/transforms/include.js
299652
- var import_node_path33 = __toESM(require("path"), 1);
299653
- var import_node_fs27 = __toESM(require("fs"), 1);
299644
+ var import_node_path32 = __toESM(require("path"), 1);
299645
+ var import_node_fs26 = __toESM(require("fs"), 1);
299654
299646
  var makeFileResolver = (baseFile) => (relativeFile, sourceFile, vfile2) => {
299655
299647
  const base5 = sourceFile.toLowerCase().endsWith(".tex") ? baseFile : sourceFile;
299656
- const fullFile = import_node_path33.default.resolve(import_node_path33.default.dirname(base5), relativeFile);
299657
- if (!import_node_fs27.default.existsSync(fullFile)) {
299648
+ const fullFile = import_node_path32.default.resolve(import_node_path32.default.dirname(base5), relativeFile);
299649
+ if (!import_node_fs26.default.existsSync(fullFile)) {
299658
299650
  fileError(vfile2, `Include Directive: Could not find "${relativeFile}" relative to "${base5}"`, {
299659
299651
  ruleId: RuleId.includeContentLoads
299660
299652
  });
@@ -299667,7 +299659,7 @@ var makeFileLoader = (session, baseFile) => (fullFile) => {
299667
299659
  path: baseFile,
299668
299660
  dependency: fullFile
299669
299661
  }));
299670
- return import_node_fs27.default.readFileSync(fullFile).toString();
299662
+ return import_node_fs26.default.readFileSync(fullFile).toString();
299671
299663
  };
299672
299664
  var makeContentParser = (session, file) => async (filename, content3) => {
299673
299665
  if (filename.toLowerCase().endsWith(".html")) {
@@ -299696,18 +299688,18 @@ async function includeFilesTransform(session, baseFile, tree, frontmatter, vfile
299696
299688
  }
299697
299689
 
299698
299690
  // ../myst-cli/dist/transforms/mdast.js
299699
- var import_node_fs28 = __toESM(require("fs"), 1);
299700
- var import_node_path34 = require("path");
299691
+ var import_node_fs27 = __toESM(require("fs"), 1);
299692
+ var import_node_path33 = require("path");
299701
299693
  function importMdastFromJson(session, filename, mdast2) {
299702
299694
  const mdastNodes = selectAll("mdast", mdast2);
299703
299695
  const loadedData = {};
299704
- const dir = (0, import_node_path34.dirname)(filename);
299696
+ const dir = (0, import_node_path33.dirname)(filename);
299705
299697
  mdastNodes.forEach((node3) => {
299706
299698
  const [mdastFilename, id] = node3.id.split("#");
299707
299699
  let data = loadedData[mdastFilename];
299708
299700
  if (!data) {
299709
299701
  try {
299710
- data = JSON.parse(import_node_fs28.default.readFileSync((0, import_node_path34.join)(dir, mdastFilename)).toString());
299702
+ data = JSON.parse(import_node_fs27.default.readFileSync((0, import_node_path33.join)(dir, mdastFilename)).toString());
299711
299703
  loadedData[mdastFilename] = data;
299712
299704
  } catch {
299713
299705
  addWarningForFile(session, filename, `Mdast Node import: Could not load ${mdastFilename}`, "error", { ruleId: RuleId.mdastSnippetImports });
@@ -299726,8 +299718,8 @@ function importMdastFromJson(session, filename, mdast2) {
299726
299718
  }
299727
299719
 
299728
299720
  // ../myst-cli/dist/transforms/outputs.js
299729
- var import_node_fs29 = __toESM(require("fs"), 1);
299730
- var import_node_path35 = require("path");
299721
+ var import_node_fs28 = __toESM(require("fs"), 1);
299722
+ var import_node_path34 = require("path");
299731
299723
 
299732
299724
  // ../../node_modules/ansi-regex/index.js
299733
299725
  function ansiRegex({ onlyFirst = false } = {}) {
@@ -299753,7 +299745,7 @@ function getFilename(hash, contentType) {
299753
299745
  return `${hash}${(0, import_nbtx3.extFromMimeType)(contentType)}`;
299754
299746
  }
299755
299747
  function getWriteDestination(hash, contentType, writeFolder) {
299756
- return (0, import_node_path35.join)(writeFolder, getFilename(hash, contentType));
299748
+ return (0, import_node_path34.join)(writeFolder, getFilename(hash, contentType));
299757
299749
  }
299758
299750
  async function transformOutputsToCache(session, mdast2, kind, opts) {
299759
299751
  const outputs = selectAll("output", mdast2);
@@ -299832,13 +299824,13 @@ function writeCachedOutputToFile(session, hash, cachedOutput, writeFolder, opts)
299832
299824
  const [content3, { contentType, encoding }] = cachedOutput;
299833
299825
  const filename = getFilename(hash, contentType);
299834
299826
  const destination = getWriteDestination(hash, contentType, writeFolder);
299835
- if (import_node_fs29.default.existsSync(destination)) {
299827
+ if (import_node_fs28.default.existsSync(destination)) {
299836
299828
  session.log.debug(`Cached file found for notebook output: ${destination}`);
299837
299829
  } else {
299838
299830
  try {
299839
- if (!import_node_fs29.default.existsSync(writeFolder))
299840
- import_node_fs29.default.mkdirSync(writeFolder, { recursive: true });
299841
- import_node_fs29.default.writeFileSync(destination, content3, { encoding });
299831
+ if (!import_node_fs28.default.existsSync(writeFolder))
299832
+ import_node_fs28.default.mkdirSync(writeFolder, { recursive: true });
299833
+ import_node_fs28.default.writeFileSync(destination, content3, { encoding });
299842
299834
  session.log.debug(`Notebook output successfully written: ${destination}`);
299843
299835
  } catch {
299844
299836
  if (opts === null || opts === void 0 ? void 0 : opts.vfile) {
@@ -299933,7 +299925,7 @@ function reduceOutputs(session, mdast2, file, writeFolder, opts) {
299933
299925
  });
299934
299926
  if (!path42)
299935
299927
  return void 0;
299936
- const relativePath = (0, import_node_path35.relative)((0, import_node_path35.dirname)(file), path42);
299928
+ const relativePath = (0, import_node_path34.relative)((0, import_node_path34.dirname)(file), path42);
299937
299929
  return {
299938
299930
  type: "image",
299939
299931
  data: { type: "output" },
@@ -299977,7 +299969,7 @@ function frontmatterPartsTransform(session, file, mdast2, frontmatter) {
299977
299969
  }
299978
299970
 
299979
299971
  // ../myst-execute/dist/execute.js
299980
- var import_node_path36 = __toESM(require("path"), 1);
299972
+ var import_node_path35 = __toESM(require("path"), 1);
299981
299973
  var import_node_assert = __toESM(require("assert"), 1);
299982
299974
  var import_node_crypto4 = require("crypto");
299983
299975
  function IOPubAsOutput(msg) {
@@ -300131,9 +300123,9 @@ async function kernelExecutionTransform(tree, vfile2, opts) {
300131
300123
  } else {
300132
300124
  let sessionConnection;
300133
300125
  const sessionOpts = {
300134
- path: import_node_path36.default.relative(opts.basePath, vfile2.path),
300126
+ path: import_node_path35.default.relative(opts.basePath, vfile2.path),
300135
300127
  type: "notebook",
300136
- name: import_node_path36.default.basename(vfile2.path),
300128
+ name: import_node_path35.default.basename(vfile2.path),
300137
300129
  kernel: {
300138
300130
  name: (_d2 = (_c = (_b = opts.frontmatter) === null || _b === void 0 ? void 0 : _b.kernelspec) === null || _c === void 0 ? void 0 : _c.name) !== null && _d2 !== void 0 ? _d2 : "python3"
300139
300131
  }
@@ -300735,31 +300727,31 @@ async function launchJupyterServer(contentPath, log) {
300735
300727
  }
300736
300728
 
300737
300729
  // ../myst-execute/dist/cache.js
300738
- var import_node_fs30 = require("fs");
300739
- var import_node_path37 = __toESM(require("path"), 1);
300730
+ var import_node_fs29 = require("fs");
300731
+ var import_node_path36 = __toESM(require("path"), 1);
300740
300732
  var LocalDiskCache = class {
300741
300733
  constructor(cachePath2) {
300742
300734
  this._cachePath = cachePath2;
300743
- if (!(0, import_node_fs30.existsSync)(cachePath2)) {
300744
- (0, import_node_fs30.mkdirSync)(cachePath2, { recursive: true });
300735
+ if (!(0, import_node_fs29.existsSync)(cachePath2)) {
300736
+ (0, import_node_fs29.mkdirSync)(cachePath2, { recursive: true });
300745
300737
  }
300746
300738
  }
300747
300739
  _makeKeyPath(key2) {
300748
- return import_node_path37.default.join(this._cachePath, `${key2}.json`);
300740
+ return import_node_path36.default.join(this._cachePath, `${key2}.json`);
300749
300741
  }
300750
300742
  test(key2) {
300751
- return (0, import_node_fs30.existsSync)(this._makeKeyPath(key2));
300743
+ return (0, import_node_fs29.existsSync)(this._makeKeyPath(key2));
300752
300744
  }
300753
300745
  get(key2) {
300754
300746
  const keyPath = this._makeKeyPath(key2);
300755
- if (!(0, import_node_fs30.existsSync)(keyPath)) {
300747
+ if (!(0, import_node_fs29.existsSync)(keyPath)) {
300756
300748
  return void 0;
300757
300749
  }
300758
- return JSON.parse((0, import_node_fs30.readFileSync)(keyPath, { encoding: "utf8" }));
300750
+ return JSON.parse((0, import_node_fs29.readFileSync)(keyPath, { encoding: "utf8" }));
300759
300751
  }
300760
300752
  set(key2, item) {
300761
300753
  const keyPath = this._makeKeyPath(key2);
300762
- return (0, import_node_fs30.writeFileSync)(keyPath, JSON.stringify(item), { encoding: "utf8" });
300754
+ return (0, import_node_fs29.writeFileSync)(keyPath, JSON.stringify(item), { encoding: "utf8" });
300763
300755
  }
300764
300756
  };
300765
300757
 
@@ -300808,7 +300800,7 @@ async function transformMdast(session, opts) {
300808
300800
  log.debug(`Processing "${file}"`);
300809
300801
  const vfile2 = new VFile();
300810
300802
  vfile2.path = file;
300811
- const mdast2 = JSON.parse(JSON.stringify(mdastPre));
300803
+ const mdast2 = structuredClone(mdastPre);
300812
300804
  const frontmatter = processPageFrontmatter(session, preFrontmatter !== null && preFrontmatter !== void 0 ? preFrontmatter : {}, {
300813
300805
  property: "frontmatter",
300814
300806
  file,
@@ -300846,12 +300838,12 @@ async function transformMdast(session, opts) {
300846
300838
  if (projectPath) {
300847
300839
  rendererFiles.unshift(projectPath);
300848
300840
  } else {
300849
- const localFiles = await bibFilesInDir(session, import_node_path38.default.dirname(file)) || [];
300841
+ const localFiles = await bibFilesInDir(session, import_node_path37.default.dirname(file)) || [];
300850
300842
  rendererFiles.push(...localFiles);
300851
300843
  }
300852
300844
  const fileCitationRenderer = combineCitationRenderers(cache, ...rendererFiles);
300853
300845
  if (execute) {
300854
- const cachePath2 = import_node_path38.default.join(session.buildPath(), "execute");
300846
+ const cachePath2 = import_node_path37.default.join(session.buildPath(), "execute");
300855
300847
  await kernelExecutionTransform(mdast2, vfile2, {
300856
300848
  basePath: session.sourcePath(),
300857
300849
  cache: new LocalDiskCache(cachePath2),
@@ -300927,11 +300919,11 @@ async function postProcessMdast(session, { file, checkLinks, pageReferenceStates
300927
300919
  // Links static files and internally linked files
300928
300920
  ];
300929
300921
  resolveLinksAndCitationsTransform(mdast2, { state, transformers });
300930
- await transformLinkedRORs(session, vfile2, mdast2, file);
300931
300922
  linksTransform(mdast2, state.vfile, {
300932
300923
  transformers,
300933
300924
  selector: LINKS_SELECTOR
300934
300925
  });
300926
+ await transformLinkedRORs(session, vfile2, mdast2, file);
300935
300927
  resolveReferencesTransform(mdast2, state.vfile, { state, transformers });
300936
300928
  await transformMystXRefs(session, vfile2, mdast2, frontmatter);
300937
300929
  await embedTransform(session, mdast2, file, dependencies, state);
@@ -301020,7 +301012,7 @@ function changeFile(session, path42, eventType) {
301020
301012
  delete cache.$citationRenderers[path42];
301021
301013
  }
301022
301014
  async function writeSiteManifest(session, opts) {
301023
- const configPath = (0, import_node_path39.join)(session.sitePath(), "config.json");
301015
+ const configPath = (0, import_node_path38.join)(session.sitePath(), "config.json");
301024
301016
  session.log.debug("Writing site config.json");
301025
301017
  const siteManifest = await getSiteManifest(session, opts);
301026
301018
  writeFileToFolder(configPath, JSON.stringify(siteManifest));
@@ -301061,7 +301053,7 @@ async function writeMystXRefJson(session, states) {
301061
301053
  return [pageRef, ...pageIdRefs, ...targetRefs];
301062
301054
  }).flat()
301063
301055
  };
301064
- const filename = (0, import_node_path39.join)(session.sitePath(), "myst.xref.json");
301056
+ const filename = (0, import_node_path38.join)(session.sitePath(), "myst.xref.json");
301065
301057
  session.log.debug(`Writing myst.xref.json file: ${filename}`);
301066
301058
  writeFileToFolder(filename, JSON.stringify(mystXRefs));
301067
301059
  }
@@ -301092,7 +301084,7 @@ async function writeObjectsInv(session, states, siteConfig) {
301092
301084
  });
301093
301085
  });
301094
301086
  });
301095
- const filename = (0, import_node_path39.join)(session.sitePath(), "objects.inv");
301087
+ const filename = (0, import_node_path38.join)(session.sitePath(), "objects.inv");
301096
301088
  session.log.debug(`Writing objects.inv file: ${filename}`);
301097
301089
  inv.write(filename);
301098
301090
  }
@@ -301151,7 +301143,7 @@ async function resolvePageSource(session, file) {
301151
301143
  ruleId: RuleId.sourceFileCopied
301152
301144
  });
301153
301145
  });
301154
- return { format: (0, import_node_path39.extname)(file).substring(1), filename: (0, import_node_path39.basename)(file), url: `/${fileHash}` };
301146
+ return { format: (0, import_node_path38.extname)(file).substring(1), filename: (0, import_node_path38.basename)(file), url: `/${fileHash}` };
301155
301147
  }
301156
301148
  async function writeFile(session, { file, pageSlug, projectSlug, projectPath }) {
301157
301149
  const toc = tic();
@@ -301169,7 +301161,7 @@ async function writeFile(session, { file, pageSlug, projectSlug, projectPath })
301169
301161
  if (projectSlug)
301170
301162
  jsonFilenameParts.push(projectSlug);
301171
301163
  jsonFilenameParts.push(`${pageSlug}.json`);
301172
- writeFileToFolder((0, import_node_path39.join)(...jsonFilenameParts), JSON.stringify({
301164
+ writeFileToFolder((0, import_node_path38.join)(...jsonFilenameParts), JSON.stringify({
301173
301165
  kind,
301174
301166
  sha256,
301175
301167
  slug,
@@ -301360,8 +301352,8 @@ ${page.file}
301360
301352
 
301361
301353
  // ../myst-cli/dist/build/site/prepare.js
301362
301354
  function ensureBuildFoldersExist(session) {
301363
- import_node_fs31.default.mkdirSync(session.contentPath(), { recursive: true });
301364
- import_node_fs31.default.mkdirSync(session.publicPath(), { recursive: true });
301355
+ import_node_fs30.default.mkdirSync(session.contentPath(), { recursive: true });
301356
+ import_node_fs30.default.mkdirSync(session.publicPath(), { recursive: true });
301365
301357
  session.log.debug(`Build folders created for site content: ${session.sitePath()}`);
301366
301358
  }
301367
301359
  async function buildSite(session, opts) {
@@ -301370,7 +301362,7 @@ async function buildSite(session, opts) {
301370
301362
  }
301371
301363
 
301372
301364
  // ../myst-cli/dist/build/utils/localArticleExport.js
301373
- var import_node_path53 = __toESM(require("path"), 1);
301365
+ var import_node_path52 = __toESM(require("path"), 1);
301374
301366
  var import_chokidar = __toESM(require_chokidar(), 1);
301375
301367
 
301376
301368
  // ../myst-cli/dist/build/utils/resolveAndLogErrors.js
@@ -301392,10 +301384,10 @@ ${e2 === null || e2 === void 0 ? void 0 : e2.stack}
301392
301384
 
301393
301385
  // ../myst-cli/dist/build/tex/single.js
301394
301386
  var import_adm_zip2 = __toESM(require_adm_zip(), 1);
301395
- var import_node_path45 = __toESM(require("path"), 1);
301387
+ var import_node_path44 = __toESM(require("path"), 1);
301396
301388
 
301397
301389
  // ../jtex/dist/tex/export.js
301398
- var import_node_path40 = __toESM(require("path"), 1);
301390
+ var import_node_path39 = __toESM(require("path"), 1);
301399
301391
 
301400
301392
  // ../jtex/dist/utils.js
301401
301393
  function createCommand2(baseCommand, logFile) {
@@ -301411,7 +301403,7 @@ function pdfTexExportCommand(texFile, logFile, template) {
301411
301403
  return createCommand2(baseCommand, logFile);
301412
301404
  }
301413
301405
  function texMakeGlossariesCommand(texFile, logFile) {
301414
- const fileNameNoExt = import_node_path40.default.basename(texFile, ".tex");
301406
+ const fileNameNoExt = import_node_path39.default.basename(texFile, ".tex");
301415
301407
  const baseCommand = `makeglossaries ${fileNameNoExt}`;
301416
301408
  return createCommand2(baseCommand, logFile);
301417
301409
  }
@@ -301463,7 +301455,7 @@ function mergeTexTemplateImports(current2, next) {
301463
301455
  }
301464
301456
 
301465
301457
  // ../jtex/dist/typst/imports.js
301466
- var import_node_path41 = __toESM(require("path"), 1);
301458
+ var import_node_path40 = __toESM(require("path"), 1);
301467
301459
  function renderTypstImports(output2, templateImports, preamble) {
301468
301460
  const { macros: macros18, commands } = templateImports !== null && templateImports !== void 0 ? templateImports : {};
301469
301461
  const importStatements = [];
@@ -301471,7 +301463,7 @@ function renderTypstImports(output2, templateImports, preamble) {
301471
301463
  if (hasMacros)
301472
301464
  importStatements.push('#import "myst.typ": *');
301473
301465
  if (output2 && hasMacros) {
301474
- const mystTypst = import_node_path41.default.join(import_node_path41.default.dirname(output2), "myst.typ");
301466
+ const mystTypst = import_node_path40.default.join(import_node_path40.default.dirname(output2), "myst.typ");
301475
301467
  writeFileToFolder(mystTypst, macros18.join("\n\n"));
301476
301468
  }
301477
301469
  if (commands && Object.keys(commands).length > 0) {
@@ -301493,8 +301485,8 @@ function mergeTypstTemplateImports(current2, next) {
301493
301485
  }
301494
301486
 
301495
301487
  // ../jtex/dist/jtex.js
301496
- var import_node_fs32 = __toESM(require("fs"), 1);
301497
- var import_node_path42 = require("path");
301488
+ var import_node_fs31 = __toESM(require("fs"), 1);
301489
+ var import_node_path41 = require("path");
301498
301490
  var import_nunjucks = __toESM(require_nunjucks(), 1);
301499
301491
 
301500
301492
  // ../jtex/dist/render.js
@@ -301512,8 +301504,8 @@ var version_default3 = version3;
301512
301504
 
301513
301505
  // ../jtex/dist/jtex.js
301514
301506
  function ensureDirectoryExists(directory) {
301515
- if (!import_node_fs32.default.existsSync(directory))
301516
- import_node_fs32.default.mkdirSync(directory, { recursive: true });
301507
+ if (!import_node_fs31.default.existsSync(directory))
301508
+ import_node_fs31.default.mkdirSync(directory, { recursive: true });
301517
301509
  }
301518
301510
  function getDefaultEnv(template) {
301519
301511
  const env7 = import_nunjucks.default.configure(template.templatePath, {
@@ -301541,13 +301533,13 @@ function renderTemplate(template, opts) {
301541
301533
  if (!ext2) {
301542
301534
  throw new Error(`Cannot render template of kind: ${template.kind}`);
301543
301535
  }
301544
- if ((0, import_node_path42.extname)(opts.outputPath) !== ext2) {
301536
+ if ((0, import_node_path41.extname)(opts.outputPath) !== ext2) {
301545
301537
  throw new Error(`outputPath must be a "${ext2}" file, not "${opts.outputPath}"`);
301546
301538
  }
301547
301539
  let content3;
301548
- if (import_node_fs32.default.existsSync(opts.contentOrPath)) {
301540
+ if (import_node_fs31.default.existsSync(opts.contentOrPath)) {
301549
301541
  template.session.log.debug(`Reading content from ${opts.contentOrPath}`);
301550
- content3 = import_node_fs32.default.readFileSync(opts.contentOrPath).toString();
301542
+ content3 = import_node_fs31.default.readFileSync(opts.contentOrPath).toString();
301551
301543
  } else {
301552
301544
  content3 = opts.contentOrPath;
301553
301545
  }
@@ -301562,10 +301554,10 @@ function renderTemplate(template, opts) {
301562
301554
  };
301563
301555
  const env7 = getDefaultEnv(template);
301564
301556
  const rendered = env7.render(template.getTemplateFilename(), renderer);
301565
- const outputDirectory = (0, import_node_path42.dirname)(opts.outputPath);
301557
+ const outputDirectory = (0, import_node_path41.dirname)(opts.outputPath);
301566
301558
  ensureDirectoryExists(outputDirectory);
301567
- template.copyTemplateFiles((0, import_node_path42.dirname)(opts.outputPath), { force: opts.force });
301568
- import_node_fs32.default.writeFileSync(opts.outputPath, opts.removeVersionComment ? rendered : `${commentSymbol(template.kind)} Created with jtex v.${version_default3}
301559
+ template.copyTemplateFiles((0, import_node_path41.dirname)(opts.outputPath), { force: opts.force });
301560
+ import_node_fs31.default.writeFileSync(opts.outputPath, opts.removeVersionComment ? rendered : `${commentSymbol(template.kind)} Created with jtex v.${version_default3}
301569
301561
  ${rendered}`);
301570
301562
  }
301571
301563
 
@@ -302949,11 +302941,11 @@ var plugin2 = function(opts) {
302949
302941
  var dist_default3 = plugin2;
302950
302942
 
302951
302943
  // ../myst-cli/dist/build/utils/getFileContent.js
302952
- var import_node_path43 = require("path");
302944
+ var import_node_path42 = require("path");
302953
302945
  async function getFileContent(session, files, { projectPath, imageExtensions, extraLinkTransformers, extraTransforms, titleDepths, preFrontmatters }) {
302954
302946
  const toc = tic();
302955
- files = files.map((file) => (0, import_node_path43.resolve)(file));
302956
- projectPath = projectPath !== null && projectPath !== void 0 ? projectPath : (0, import_node_path43.resolve)(".");
302947
+ files = files.map((file) => (0, import_node_path42.resolve)(file));
302948
+ projectPath = projectPath !== null && projectPath !== void 0 ? projectPath : (0, import_node_path42.resolve)(".");
302957
302949
  const { project, pages } = await loadProject(session, projectPath);
302958
302950
  const projectFiles = pages.map((page) => page.file).filter((file) => !files.includes(file));
302959
302951
  const allFiles = [...files, ...projectFiles];
@@ -303005,17 +302997,17 @@ async function getFileContent(session, files, { projectPath, imageExtensions, ex
303005
302997
  }
303006
302998
 
303007
302999
  // ../myst-cli/dist/build/utils/cleanOutput.js
303008
- var import_node_fs33 = __toESM(require("fs"), 1);
303000
+ var import_node_fs32 = __toESM(require("fs"), 1);
303009
303001
  function cleanOutput(session, output2) {
303010
- if (import_node_fs33.default.existsSync(output2)) {
303002
+ if (import_node_fs32.default.existsSync(output2)) {
303011
303003
  session.log.info(`\u{1F9F9} Cleaning old output at ${output2}`);
303012
- import_node_fs33.default.rmSync(output2, { recursive: true });
303004
+ import_node_fs32.default.rmSync(output2, { recursive: true });
303013
303005
  }
303014
303006
  }
303015
303007
 
303016
303008
  // ../myst-cli/dist/build/utils/bibtex.js
303017
- var import_node_fs34 = __toESM(require("fs"), 1);
303018
- var import_node_path44 = __toESM(require("path"), 1);
303009
+ var import_node_fs33 = __toESM(require("fs"), 1);
303010
+ var import_node_path43 = __toESM(require("path"), 1);
303019
303011
  function writeBibtexFromCitationRenderers(session, output2, content3) {
303020
303012
  const order3 = content3.map(({ references }) => {
303021
303013
  var _a6, _b;
@@ -303042,9 +303034,9 @@ function writeBibtexFromCitationRenderers(session, output2, content3) {
303042
303034
  });
303043
303035
  if (!bibtexContent.length)
303044
303036
  return false;
303045
- if (!import_node_fs34.default.existsSync(output2))
303046
- import_node_fs34.default.mkdirSync(import_node_path44.default.dirname(output2), { recursive: true });
303047
- import_node_fs34.default.writeFileSync(output2, bibtexContent.join("\n"));
303037
+ if (!import_node_fs33.default.existsSync(output2))
303038
+ import_node_fs33.default.mkdirSync(import_node_path43.default.dirname(output2), { recursive: true });
303039
+ import_node_fs33.default.writeFileSync(output2, bibtexContent.join("\n"));
303048
303040
  return true;
303049
303041
  }
303050
303042
 
@@ -303117,7 +303109,7 @@ async function localArticleToTexRaw(session, templateOptions, opts) {
303117
303109
  const toc = tic();
303118
303110
  const results = await Promise.all(content3.map(async ({ mdast: mdast2, frontmatter, references }, ind) => {
303119
303111
  await finalizeMdast(session, mdast2, frontmatter, fileArticles[ind].file, {
303120
- imageWriteFolder: import_node_path45.default.join(import_node_path45.default.dirname(output2), "files"),
303112
+ imageWriteFolder: import_node_path44.default.join(import_node_path44.default.dirname(output2), "files"),
303121
303113
  imageAltOutputFolder: "files/",
303122
303114
  imageExtensions: TEX_IMAGE_EXTENSIONS,
303123
303115
  simplifyFigures: true
@@ -303130,12 +303122,12 @@ async function localArticleToTexRaw(session, templateOptions, opts) {
303130
303122
  } else {
303131
303123
  let includeContent = "";
303132
303124
  let fileInd = 0;
303133
- const { dir, name: name3, ext: ext2 } = import_node_path45.default.parse(output2);
303125
+ const { dir, name: name3, ext: ext2 } = import_node_path44.default.parse(output2);
303134
303126
  articles.forEach((article) => {
303135
303127
  var _a6, _b, _c, _d2, _e;
303136
303128
  if (article.file) {
303137
303129
  const base5 = `${name3}-${(_b = (_a6 = content3[fileInd]) === null || _a6 === void 0 ? void 0 : _a6.slug) !== null && _b !== void 0 ? _b : fileInd}${ext2}`;
303138
- const includeFile = import_node_path45.default.format({ dir, ext: ext2, base: base5 });
303130
+ const includeFile = import_node_path44.default.format({ dir, ext: ext2, base: base5 });
303139
303131
  let part = "";
303140
303132
  const { title, content_includes_title } = (_d2 = (_c = content3[fileInd]) === null || _c === void 0 ? void 0 : _c.frontmatter) !== null && _d2 !== void 0 ? _d2 : {};
303141
303133
  if (title && !content_includes_title) {
@@ -303162,7 +303154,7 @@ async function localArticleToTexTemplated(session, file, templateOptions, opts)
303162
303154
  var _a6;
303163
303155
  const { output: output2, articles, template } = templateOptions;
303164
303156
  const { projectPath, extraLinkTransformers, clean: clean3, ci } = opts !== null && opts !== void 0 ? opts : {};
303165
- const filesPath = import_node_path45.default.join(import_node_path45.default.dirname(output2), "files");
303157
+ const filesPath = import_node_path44.default.join(import_node_path44.default.dirname(output2), "files");
303166
303158
  const fileArticles = articlesWithFile(articles);
303167
303159
  const content3 = await getFileContent(session, fileArticles.map((article) => article.file), {
303168
303160
  projectPath,
@@ -303171,7 +303163,7 @@ async function localArticleToTexTemplated(session, file, templateOptions, opts)
303171
303163
  titleDepths: fileArticles.map((article) => article.level),
303172
303164
  preFrontmatters: fileArticles.map((article) => filterKeys(article, [...PAGE_FRONTMATTER_KEYS, ...Object.keys(FRONTMATTER_ALIASES)]))
303173
303165
  });
303174
- const bibtexWritten = writeBibtexFromCitationRenderers(session, import_node_path45.default.join(import_node_path45.default.dirname(output2), DEFAULT_BIB_FILENAME), content3);
303166
+ const bibtexWritten = writeBibtexFromCitationRenderers(session, import_node_path44.default.join(import_node_path44.default.dirname(output2), DEFAULT_BIB_FILENAME), content3);
303175
303167
  const warningLogFn = (message) => {
303176
303168
  addWarningForFile(session, file, message, "warn", {
303177
303169
  ruleId: RuleId.texRenders
@@ -303237,14 +303229,14 @@ async function localArticleToTexTemplated(session, file, templateOptions, opts)
303237
303229
  } else {
303238
303230
  const state = session.store.getState();
303239
303231
  frontmatter = (_a6 = selectors_exports.selectLocalProjectConfig(state, projectPath !== null && projectPath !== void 0 ? projectPath : ".")) !== null && _a6 !== void 0 ? _a6 : {};
303240
- const { dir, name: name3, ext: ext2 } = import_node_path45.default.parse(output2);
303232
+ const { dir, name: name3, ext: ext2 } = import_node_path44.default.parse(output2);
303241
303233
  texContent = "";
303242
303234
  let fileInd = 0;
303243
303235
  articles.forEach((article) => {
303244
303236
  var _a7, _b, _c, _d2;
303245
303237
  if (article.file) {
303246
303238
  const includeFilename = `${name3}-${(_b = (_a7 = content3[fileInd]) === null || _a7 === void 0 ? void 0 : _a7.slug) !== null && _b !== void 0 ? _b : fileInd}`;
303247
- const includeFile = import_node_path45.default.format({ dir, ext: ext2, base: `${includeFilename}${ext2}` });
303239
+ const includeFile = import_node_path44.default.format({ dir, ext: ext2, base: `${includeFilename}${ext2}` });
303248
303240
  let part = "";
303249
303241
  const { title, content_includes_title } = (_d2 = (_c = content3[fileInd]) === null || _c === void 0 ? void 0 : _c.frontmatter) !== null && _d2 !== void 0 ? _d2 : {};
303250
303242
  if (title && !content_includes_title) {
@@ -303304,7 +303296,7 @@ async function runTexZipExport(session, file, exportOptions, opts) {
303304
303296
  cleanOutput(session, exportOptions.output);
303305
303297
  const zipOutput = exportOptions.output;
303306
303298
  const texFolder = createTempFolder(session);
303307
- exportOptions.output = import_node_path45.default.join(texFolder, `${import_node_path45.default.basename(zipOutput, import_node_path45.default.extname(zipOutput))}.tex`);
303299
+ exportOptions.output = import_node_path44.default.join(texFolder, `${import_node_path44.default.basename(zipOutput, import_node_path44.default.extname(zipOutput))}.tex`);
303308
303300
  await runTexExport(session, file, exportOptions, opts);
303309
303301
  session.log.info(`\u{1F910} Zipping tex outputs to ${zipOutput}`);
303310
303302
  const zip2 = new import_adm_zip2.default();
@@ -303319,8 +303311,8 @@ function hasGlossary(mdast2) {
303319
303311
 
303320
303312
  // ../myst-cli/dist/build/typst.js
303321
303313
  var import_adm_zip3 = __toESM(require_adm_zip(), 1);
303322
- var import_node_fs35 = __toESM(require("fs"), 1);
303323
- var import_node_path46 = __toESM(require("path"), 1);
303314
+ var import_node_fs34 = __toESM(require("fs"), 1);
303315
+ var import_node_path45 = __toESM(require("path"), 1);
303324
303316
  var import_which4 = __toESM(require_lib15(), 1);
303325
303317
 
303326
303318
  // ../myst-to-typst/dist/container.js
@@ -304516,7 +304508,7 @@ async function runTypstExecutable(session, typstFile) {
304516
304508
  if (!isTypstAvailable()) {
304517
304509
  throw new Error("The typst CLI must be installed to build PDFs with typst");
304518
304510
  }
304519
- if (import_node_path46.default.extname(typstFile) !== ".typ") {
304511
+ if (import_node_path45.default.extname(typstFile) !== ".typ") {
304520
304512
  throw new Error(`invalid input file for typst executable: ${typstFile}`);
304521
304513
  }
304522
304514
  session.log.debug("Running typst compile");
@@ -304582,7 +304574,7 @@ async function localArticleToTypstRaw(session, templateOptions, opts) {
304582
304574
  const toc = tic();
304583
304575
  const results = await Promise.all(content3.map(async ({ mdast: mdast2, frontmatter, references }, ind) => {
304584
304576
  await finalizeMdast(session, mdast2, frontmatter, fileArticles[ind].file, {
304585
- imageWriteFolder: import_node_path46.default.join(import_node_path46.default.dirname(output2), "files"),
304577
+ imageWriteFolder: import_node_path45.default.join(import_node_path45.default.dirname(output2), "files"),
304586
304578
  imageAltOutputFolder: "files/",
304587
304579
  imageExtensions: TYPST_IMAGE_EXTENSIONS,
304588
304580
  simplifyFigures: true
@@ -304593,14 +304585,14 @@ async function localArticleToTypstRaw(session, templateOptions, opts) {
304593
304585
  if (results.length === 1) {
304594
304586
  writeFileToFolder(output2, results[0].value);
304595
304587
  } else {
304596
- const { dir, name: name3, ext: ext2 } = import_node_path46.default.parse(output2);
304588
+ const { dir, name: name3, ext: ext2 } = import_node_path45.default.parse(output2);
304597
304589
  let includeContent = "";
304598
304590
  let fileInd = 0;
304599
304591
  articles.forEach((article) => {
304600
304592
  var _a6, _b, _c, _d2;
304601
304593
  if (article.file) {
304602
304594
  const base5 = `${name3}-${(_b = (_a6 = content3[fileInd]) === null || _a6 === void 0 ? void 0 : _a6.slug) !== null && _b !== void 0 ? _b : fileInd}${ext2}`;
304603
- const includeFile = import_node_path46.default.format({ dir, ext: ext2, base: base5 });
304595
+ const includeFile = import_node_path45.default.format({ dir, ext: ext2, base: base5 });
304604
304596
  let part = "";
304605
304597
  const { title, content_includes_title } = (_d2 = (_c = content3[fileInd]) === null || _c === void 0 ? void 0 : _c.frontmatter) !== null && _d2 !== void 0 ? _d2 : {};
304606
304598
  if (title && !content_includes_title) {
@@ -304627,7 +304619,7 @@ async function localArticleToTypstTemplated(session, file, templateOptions, opts
304627
304619
  var _a6;
304628
304620
  const { output: output2, articles, template } = templateOptions;
304629
304621
  const { projectPath, extraLinkTransformers, clean: clean3, ci } = opts !== null && opts !== void 0 ? opts : {};
304630
- const filesPath = import_node_path46.default.join(import_node_path46.default.dirname(output2), "files");
304622
+ const filesPath = import_node_path45.default.join(import_node_path45.default.dirname(output2), "files");
304631
304623
  const fileArticles = articlesWithFile(articles);
304632
304624
  const content3 = await getFileContent(session, fileArticles.map((article) => article.file), {
304633
304625
  projectPath,
@@ -304636,7 +304628,7 @@ async function localArticleToTypstTemplated(session, file, templateOptions, opts
304636
304628
  titleDepths: fileArticles.map((article) => article.level),
304637
304629
  preFrontmatters: fileArticles.map((article) => filterKeys(article, [...PAGE_FRONTMATTER_KEYS, ...Object.keys(FRONTMATTER_ALIASES)]))
304638
304630
  });
304639
- const bibtexWritten = writeBibtexFromCitationRenderers(session, import_node_path46.default.join(import_node_path46.default.dirname(output2), DEFAULT_BIB_FILENAME2), content3);
304631
+ const bibtexWritten = writeBibtexFromCitationRenderers(session, import_node_path45.default.join(import_node_path45.default.dirname(output2), DEFAULT_BIB_FILENAME2), content3);
304640
304632
  const warningLogFn = (message) => {
304641
304633
  addWarningForFile(session, file, message, "warn", {
304642
304634
  ruleId: RuleId.texRenders
@@ -304700,14 +304692,14 @@ async function localArticleToTypstTemplated(session, file, templateOptions, opts
304700
304692
  } else {
304701
304693
  const state = session.store.getState();
304702
304694
  frontmatter = (_a6 = selectors_exports.selectLocalProjectConfig(state, projectPath !== null && projectPath !== void 0 ? projectPath : ".")) !== null && _a6 !== void 0 ? _a6 : {};
304703
- const { dir, name: name3, ext: ext2 } = import_node_path46.default.parse(output2);
304695
+ const { dir, name: name3, ext: ext2 } = import_node_path45.default.parse(output2);
304704
304696
  typstContent = "";
304705
304697
  let fileInd = 0;
304706
304698
  articles.forEach((article) => {
304707
304699
  var _a7, _b, _c, _d2;
304708
304700
  if (article.file) {
304709
304701
  const base5 = `${name3}-${(_b = (_a7 = content3[fileInd]) === null || _a7 === void 0 ? void 0 : _a7.slug) !== null && _b !== void 0 ? _b : fileInd}${ext2}`;
304710
- const includeFile = import_node_path46.default.format({ dir, ext: ext2, base: base5 });
304702
+ const includeFile = import_node_path45.default.format({ dir, ext: ext2, base: base5 });
304711
304703
  const exports2 = renderTypstImports(false, collected);
304712
304704
  let part = "";
304713
304705
  const { title, content_includes_title } = (_d2 = (_c = content3[fileInd]) === null || _c === void 0 ? void 0 : _c.frontmatter) !== null && _d2 !== void 0 ? _d2 : {};
@@ -304770,7 +304762,7 @@ async function runTypstZipExport(session, file, exportOptions, opts) {
304770
304762
  cleanOutput(session, exportOptions.output);
304771
304763
  const zipOutput = exportOptions.output;
304772
304764
  const typFolder = createTempFolder(session);
304773
- exportOptions.output = import_node_path46.default.join(typFolder, `${import_node_path46.default.basename(zipOutput, import_node_path46.default.extname(zipOutput))}.typ`);
304765
+ exportOptions.output = import_node_path45.default.join(typFolder, `${import_node_path45.default.basename(zipOutput, import_node_path45.default.extname(zipOutput))}.typ`);
304774
304766
  await runTypstExport(session, file, exportOptions, { ...opts !== null && opts !== void 0 ? opts : {}, clean: false });
304775
304767
  session.log.info(`\u{1F910} Zipping typst outputs to ${zipOutput}`);
304776
304768
  const zip2 = new import_adm_zip3.default();
@@ -304783,19 +304775,19 @@ async function runTypstPdfExport(session, file, exportOptions, opts) {
304783
304775
  cleanOutput(session, exportOptions.output);
304784
304776
  const pdfOutput = exportOptions.output;
304785
304777
  const typFolder = createTempFolder(session);
304786
- exportOptions.output = import_node_path46.default.join(typFolder, `${import_node_path46.default.basename(pdfOutput, import_node_path46.default.extname(pdfOutput))}.typ`);
304778
+ exportOptions.output = import_node_path45.default.join(typFolder, `${import_node_path45.default.basename(pdfOutput, import_node_path45.default.extname(pdfOutput))}.typ`);
304787
304779
  await runTypstExport(session, file, exportOptions, { ...opts !== null && opts !== void 0 ? opts : {}, clean: false });
304788
- const writeFolder = import_node_path46.default.dirname(pdfOutput);
304780
+ const writeFolder = import_node_path45.default.dirname(pdfOutput);
304789
304781
  session.log.info(`\u{1F5A8} Rendering typst pdf to ${pdfOutput}`);
304790
- if (!import_node_fs35.default.existsSync(writeFolder))
304791
- import_node_fs35.default.mkdirSync(writeFolder, { recursive: true });
304792
- import_node_fs35.default.copyFileSync(exportOptions.output.replace(".typ", ".pdf"), pdfOutput);
304782
+ if (!import_node_fs34.default.existsSync(writeFolder))
304783
+ import_node_fs34.default.mkdirSync(writeFolder, { recursive: true });
304784
+ import_node_fs34.default.copyFileSync(exportOptions.output.replace(".typ", ".pdf"), pdfOutput);
304793
304785
  return { tempFolders: [typFolder] };
304794
304786
  }
304795
304787
 
304796
304788
  // ../myst-cli/dist/build/docx/single.js
304797
- var import_node_fs37 = __toESM(require("fs"), 1);
304798
- var import_node_path47 = __toESM(require("path"), 1);
304789
+ var import_node_fs36 = __toESM(require("fs"), 1);
304790
+ var import_node_path46 = __toESM(require("path"), 1);
304799
304791
 
304800
304792
  // ../myst-to-docx/dist/serializer.js
304801
304793
  var import_docx4 = __toESM(require_build(), 1);
@@ -305443,7 +305435,7 @@ var DocxSerializer = class {
305443
305435
  var import_docx5 = __toESM(require_build(), 1);
305444
305436
 
305445
305437
  // ../myst-cli/dist/build/docx/footers.js
305446
- var import_node_fs36 = __toESM(require("fs"), 1);
305438
+ var import_node_fs35 = __toESM(require("fs"), 1);
305447
305439
  var import_docx6 = __toESM(require_build(), 1);
305448
305440
  function createFooter(logo) {
305449
305441
  return new import_docx6.Footer({
@@ -305452,7 +305444,7 @@ function createFooter(logo) {
305452
305444
  children: [
305453
305445
  new import_docx6.TextRun("Created with "),
305454
305446
  new import_docx6.ImageRun({
305455
- data: import_node_fs36.default.readFileSync(logo).buffer,
305447
+ data: import_node_fs35.default.readFileSync(logo).buffer,
305456
305448
  transformation: {
305457
305449
  width: 1150 / 18,
305458
305450
  height: 200 / 18
@@ -305501,8 +305493,8 @@ function defaultWordRenderer(session, data, doc, opts, staticPath, vfile2) {
305501
305493
  const frontmatterNodes = createArticleTitle(frontmatter.title, frontmatter.authors);
305502
305494
  const serializer = new DocxSerializer(vfile2, {
305503
305495
  getImageBuffer(image6) {
305504
- import_node_fs37.default.readFileSync(image6);
305505
- return Buffer.from(import_node_fs37.default.readFileSync(image6).buffer);
305496
+ import_node_fs36.default.readFileSync(image6);
305497
+ return Buffer.from(import_node_fs36.default.readFileSync(image6).buffer);
305506
305498
  },
305507
305499
  useFieldsForCrossReferences: false
305508
305500
  }, frontmatter);
@@ -305521,10 +305513,10 @@ function defaultWordRenderer(session, data, doc, opts, staticPath, vfile2) {
305521
305513
  selectAll("footnoteDefinition", mdast2).forEach((footnote2) => {
305522
305514
  serializer.render(footnote2);
305523
305515
  });
305524
- const logo = import_node_path47.default.join(staticPath, "logo.png");
305525
- const docfooter = import_node_fs37.default.existsSync(logo) && !opts.hideFooter ? createFooter(logo) : void 0;
305526
- const styles16 = import_node_path47.default.join(staticPath, "styles.xml");
305527
- const docstyles = import_node_fs37.default.existsSync(styles16) ? import_node_fs37.default.readFileSync(styles16).toString() : void 0;
305516
+ const logo = import_node_path46.default.join(staticPath, "logo.png");
305517
+ const docfooter = import_node_fs36.default.existsSync(logo) && !opts.hideFooter ? createFooter(logo) : void 0;
305518
+ const styles16 = import_node_path46.default.join(staticPath, "styles.xml");
305519
+ const docstyles = import_node_fs36.default.existsSync(styles16) ? import_node_fs36.default.readFileSync(styles16).toString() : void 0;
305528
305520
  return createDocFromState(serializer, docfooter, docstyles);
305529
305521
  }
305530
305522
  async function runWordExport(session, file, exportOptions, opts) {
@@ -305583,7 +305575,7 @@ async function runWordExport(session, file, exportOptions, opts) {
305583
305575
  }
305584
305576
 
305585
305577
  // ../myst-cli/dist/build/jats/single.js
305586
- var import_node_path48 = __toESM(require("path"), 1);
305578
+ var import_node_path47 = __toESM(require("path"), 1);
305587
305579
 
305588
305580
  // ../myst-to-jats/dist/index.js
305589
305581
  var import_xml_js2 = __toESM(require_lib19(), 1);
@@ -308073,7 +308065,7 @@ async function runJatsExport(session, sourceFile, exportOptions, opts) {
308073
308065
  });
308074
308066
  await Promise.all(processedContents.map(({ mdast: mdast2, frontmatter, file }) => {
308075
308067
  return finalizeMdast(session, mdast2, frontmatter, file, {
308076
- imageWriteFolder: import_node_path48.default.join(import_node_path48.default.dirname(output2), "files"),
308068
+ imageWriteFolder: import_node_path47.default.join(import_node_path47.default.dirname(output2), "files"),
308077
308069
  imageAltOutputFolder: "files/",
308078
308070
  imageExtensions: KNOWN_IMAGE_EXTENSIONS,
308079
308071
  simplifyFigures: false
@@ -308116,11 +308108,11 @@ async function runJatsExport(session, sourceFile, exportOptions, opts) {
308116
308108
  }
308117
308109
 
308118
308110
  // ../myst-cli/dist/build/pdf/single.js
308119
- var import_node_path50 = __toESM(require("path"), 1);
308111
+ var import_node_path49 = __toESM(require("path"), 1);
308120
308112
 
308121
308113
  // ../myst-cli/dist/build/pdf/create.js
308122
- var import_node_fs38 = __toESM(require("fs"), 1);
308123
- var import_node_path49 = __toESM(require("path"), 1);
308114
+ var import_node_fs37 = __toESM(require("fs"), 1);
308115
+ var import_node_path48 = __toESM(require("path"), 1);
308124
308116
  var import_util5 = __toESM(require("util"), 1);
308125
308117
 
308126
308118
  // ../myst-cli/dist/build/pdf/utils.js
@@ -308133,26 +308125,26 @@ function isMakeglossariesAvailable() {
308133
308125
  }
308134
308126
 
308135
308127
  // ../myst-cli/dist/build/pdf/create.js
308136
- var copyFile = import_util5.default.promisify(import_node_fs38.default.copyFile);
308128
+ var copyFile = import_util5.default.promisify(import_node_fs37.default.copyFile);
308137
308129
  function copyContents(srcFolder, destFolder) {
308138
- import_node_fs38.default.readdirSync(srcFolder).forEach((item) => {
308139
- const srcItemPath = import_node_path49.default.join(srcFolder, item);
308140
- const destItemPath = import_node_path49.default.join(destFolder, item);
308141
- if (import_node_fs38.default.lstatSync(srcItemPath).isDirectory()) {
308142
- import_node_fs38.default.mkdirSync(destItemPath);
308130
+ import_node_fs37.default.readdirSync(srcFolder).forEach((item) => {
308131
+ const srcItemPath = import_node_path48.default.join(srcFolder, item);
308132
+ const destItemPath = import_node_path48.default.join(destFolder, item);
308133
+ if (import_node_fs37.default.lstatSync(srcItemPath).isDirectory()) {
308134
+ import_node_fs37.default.mkdirSync(destItemPath);
308143
308135
  copyContents(srcItemPath, destItemPath);
308144
308136
  } else {
308145
- import_node_fs38.default.copyFileSync(srcItemPath, destItemPath);
308137
+ import_node_fs37.default.copyFileSync(srcItemPath, destItemPath);
308146
308138
  }
308147
308139
  });
308148
308140
  }
308149
308141
  function getLogOutputFolder(pdfOutput) {
308150
- const pdfBasename = import_node_path49.default.basename(pdfOutput, import_node_path49.default.extname(pdfOutput));
308151
- return import_node_path49.default.join(import_node_path49.default.dirname(pdfOutput), `${pdfBasename}_pdf_logs`);
308142
+ const pdfBasename = import_node_path48.default.basename(pdfOutput, import_node_path48.default.extname(pdfOutput));
308143
+ return import_node_path48.default.join(import_node_path48.default.dirname(pdfOutput), `${pdfBasename}_pdf_logs`);
308152
308144
  }
308153
308145
  function getTexOutputFolder(pdfOutput) {
308154
- const pdfBasename = import_node_path49.default.basename(pdfOutput, import_node_path49.default.extname(pdfOutput));
308155
- return import_node_path49.default.join(import_node_path49.default.dirname(pdfOutput), `${pdfBasename}_pdf_tex`);
308146
+ const pdfBasename = import_node_path48.default.basename(pdfOutput, import_node_path48.default.extname(pdfOutput));
308147
+ return import_node_path48.default.join(import_node_path48.default.dirname(pdfOutput), `${pdfBasename}_pdf_tex`);
308156
308148
  }
308157
308149
  async function createPdfGivenTexExport(session, texExportOptions, pdfOutput, copyLogs, clean3, glossaries) {
308158
308150
  if (clean3)
@@ -308165,7 +308157,7 @@ async function createPdfGivenTexExport(session, texExportOptions, pdfOutput, cop
308165
308157
  if (clean3)
308166
308158
  cleanOutput(session, logOutputFolder);
308167
308159
  const { buildError, toc } = await runCommands(session, template, texFile, texLogFile, templateLogString, pdfBuild, buildPath, vfile2, glossaries);
308168
- const logs = uniqueArray(import_node_fs38.default.readFileSync(logBuild).toString().split("\n").filter((line2) => line2.includes("WARN ") || line2.includes("LaTeX Error") || line2.includes("LaTeX Warning")), (line2) => line2.indexOf("WARN") > -1 ? line2.slice(line2.indexOf("WARN")) : line2).filter((line2) => !line2.includes("Unused global option"));
308160
+ const logs = uniqueArray(import_node_fs37.default.readFileSync(logBuild).toString().split("\n").filter((line2) => line2.includes("WARN ") || line2.includes("LaTeX Error") || line2.includes("LaTeX Warning")), (line2) => line2.indexOf("WARN") > -1 ? line2.slice(line2.indexOf("WARN")) : line2).filter((line2) => !line2.includes("Unused global option"));
308169
308161
  const packageErrors = logs.map((line2) => {
308170
308162
  var _a6;
308171
308163
  return line2.includes("LaTeX Error") ? (_a6 = line2.match(/`(.*)\.sty'/)) === null || _a6 === void 0 ? void 0 : _a6[1] : void 0;
@@ -308173,7 +308165,7 @@ async function createPdfGivenTexExport(session, texExportOptions, pdfOutput, cop
308173
308165
  session.log.debug(`Unknown style files: "${packageErrors.join('", "')}"`);
308174
308166
  if (logs.length > 0) {
308175
308167
  if (buildError) {
308176
- if (import_node_fs38.default.existsSync(pdfBuild)) {
308168
+ if (import_node_fs37.default.existsSync(pdfBuild)) {
308177
308169
  session.log.info("\n Please check your PDF, it may actually be fine? \u{1F937}");
308178
308170
  } else {
308179
308171
  session.log.info("\n The PDF did not compile, here are the logs:");
@@ -308192,11 +308184,11 @@ async function createPdfGivenTexExport(session, texExportOptions, pdfOutput, cop
308192
308184
  ${logs.map((line2) => line2.includes("LaTeX Error") ? source_default.red(line2) : source_default.yellowBright(line2)).join("\n ")}
308193
308185
  `);
308194
308186
  }
308195
- const pdfBuildExists = import_node_fs38.default.existsSync(pdfBuild);
308196
- const logBuildExists = import_node_fs38.default.existsSync(logBuild);
308197
- const texLogBuildExists = import_node_fs38.default.existsSync(texLogBuild);
308198
- if (pdfBuildExists && !import_node_fs38.default.existsSync(import_node_path49.default.dirname(pdfOutput))) {
308199
- import_node_fs38.default.mkdirSync(import_node_path49.default.dirname(pdfOutput), { recursive: true });
308187
+ const pdfBuildExists = import_node_fs37.default.existsSync(pdfBuild);
308188
+ const logBuildExists = import_node_fs37.default.existsSync(logBuild);
308189
+ const texLogBuildExists = import_node_fs37.default.existsSync(texLogBuild);
308190
+ if (pdfBuildExists && !import_node_fs37.default.existsSync(import_node_path48.default.dirname(pdfOutput))) {
308191
+ import_node_fs37.default.mkdirSync(import_node_path48.default.dirname(pdfOutput), { recursive: true });
308200
308192
  }
308201
308193
  if (pdfBuildExists) {
308202
308194
  session.log.info(toc(`\u{1F4C4} Exported PDF ${templateLogString} in %s, copying to ${pdfOutput}`));
@@ -308206,8 +308198,8 @@ async function createPdfGivenTexExport(session, texExportOptions, pdfOutput, cop
308206
308198
  fileError(vfile2, `Could not find ${pdfBuild} as expected`, { ruleId: RuleId.pdfBuilds });
308207
308199
  }
308208
308200
  if (copyLogs) {
308209
- if ((logBuildExists || texLogBuildExists) && !import_node_fs38.default.existsSync(import_node_path49.default.dirname(logOutput))) {
308210
- import_node_fs38.default.mkdirSync(import_node_path49.default.dirname(logOutput), { recursive: true });
308201
+ if ((logBuildExists || texLogBuildExists) && !import_node_fs37.default.existsSync(import_node_path48.default.dirname(logOutput))) {
308202
+ import_node_fs37.default.mkdirSync(import_node_path48.default.dirname(logOutput), { recursive: true });
308211
308203
  }
308212
308204
  if (logBuildExists) {
308213
308205
  session.log.debug(`Copying log file: ${logOutput}`);
@@ -308220,7 +308212,7 @@ async function createPdfGivenTexExport(session, texExportOptions, pdfOutput, cop
308220
308212
  }
308221
308213
  logMessagesFromVFile(session, vfile2);
308222
308214
  const logFiles = copyLogs ? [logOutput, texLogOutput] : [logBuild, texLogBuild];
308223
- if (!import_node_fs38.default.existsSync(pdfOutput)) {
308215
+ if (!import_node_fs37.default.existsSync(pdfOutput)) {
308224
308216
  const err = Error(`Error exporting: ${pdfOutput}`);
308225
308217
  err.logFiles = logFiles;
308226
308218
  throw err;
@@ -308229,23 +308221,23 @@ async function createPdfGivenTexExport(session, texExportOptions, pdfOutput, cop
308229
308221
  }
308230
308222
  function ensurePaths(session, texOutput, pdfOutput) {
308231
308223
  const buildPath = createTempFolder(session);
308232
- const texFile = import_node_path49.default.basename(texOutput);
308233
- const texBuild = import_node_path49.default.join(buildPath, texFile);
308234
- copyContents(import_node_path49.default.dirname(texOutput), buildPath);
308235
- if (!import_node_fs38.default.existsSync(texBuild)) {
308224
+ const texFile = import_node_path48.default.basename(texOutput);
308225
+ const texBuild = import_node_path48.default.join(buildPath, texFile);
308226
+ copyContents(import_node_path48.default.dirname(texOutput), buildPath);
308227
+ if (!import_node_fs37.default.existsSync(texBuild)) {
308236
308228
  throw Error(`Error exporting: ${pdfOutput}
308237
308229
  Could not find tex file: ${texOutput}`);
308238
308230
  }
308239
- const pdfBasename = import_node_path49.default.basename(pdfOutput, import_node_path49.default.extname(pdfOutput));
308231
+ const pdfBasename = import_node_path48.default.basename(pdfOutput, import_node_path48.default.extname(pdfOutput));
308240
308232
  const pdfFile = `${pdfBasename}.pdf`;
308241
- const pdfBuild = import_node_path49.default.join(buildPath, pdfFile);
308233
+ const pdfBuild = import_node_path48.default.join(buildPath, pdfFile);
308242
308234
  const logFile = `${pdfBasename}.log`;
308243
308235
  const texLogFile = `${pdfBasename}.shell.log`;
308244
- const logBuild = import_node_path49.default.join(buildPath, logFile);
308245
- const texLogBuild = import_node_path49.default.join(buildPath, texLogFile);
308236
+ const logBuild = import_node_path48.default.join(buildPath, logFile);
308237
+ const texLogBuild = import_node_path48.default.join(buildPath, texLogFile);
308246
308238
  const logOutputFolder = getLogOutputFolder(pdfOutput);
308247
- const logOutput = import_node_path49.default.join(logOutputFolder, logFile);
308248
- const texLogOutput = import_node_path49.default.join(logOutputFolder, texLogFile);
308239
+ const logOutput = import_node_path48.default.join(logOutputFolder, logFile);
308240
+ const texLogOutput = import_node_path48.default.join(logOutputFolder, texLogFile);
308249
308241
  return {
308250
308242
  buildPath,
308251
308243
  texFile,
@@ -308333,23 +308325,23 @@ ${docLinks.installLatex}`);
308333
308325
 
308334
308326
  // ../myst-cli/dist/build/pdf/single.js
308335
308327
  function texExportOptionsFromPdf(session, pdfExp, keepTex, clean3) {
308336
- const basename3 = import_node_path50.default.basename(pdfExp.output, import_node_path50.default.extname(pdfExp.output));
308328
+ const basename3 = import_node_path49.default.basename(pdfExp.output, import_node_path49.default.extname(pdfExp.output));
308337
308329
  const outputTexFile = `${basename3}.tex`;
308338
308330
  let output2;
308339
308331
  if (keepTex) {
308340
308332
  const texOutputFolder = getTexOutputFolder(pdfExp.output);
308341
308333
  if (clean3)
308342
308334
  cleanOutput(session, texOutputFolder);
308343
- output2 = import_node_path50.default.join(texOutputFolder, outputTexFile);
308335
+ output2 = import_node_path49.default.join(texOutputFolder, outputTexFile);
308344
308336
  } else {
308345
- output2 = import_node_path50.default.join(createTempFolder(session), outputTexFile);
308337
+ output2 = import_node_path49.default.join(createTempFolder(session), outputTexFile);
308346
308338
  }
308347
308339
  return { ...pdfExp, format: ExportFormats.tex, output: output2 };
308348
308340
  }
308349
308341
 
308350
308342
  // ../myst-cli/dist/build/meca/index.js
308351
- var import_node_fs39 = __toESM(require("fs"), 1);
308352
- var import_node_path51 = __toESM(require("path"), 1);
308343
+ var import_node_fs38 = __toESM(require("fs"), 1);
308344
+ var import_node_path50 = __toESM(require("path"), 1);
308353
308345
  var import_adm_zip4 = __toESM(require_adm_zip(), 1);
308354
308346
  var import_mime_types2 = __toESM(require_mime_types(), 1);
308355
308347
 
@@ -308433,7 +308425,7 @@ function mediaTypeFromFile(file) {
308433
308425
  const mediaType = import_mime_types2.default.lookup(file);
308434
308426
  if (mediaType)
308435
308427
  return mediaType;
308436
- const ext2 = import_node_path51.default.extname(file);
308428
+ const ext2 = import_node_path50.default.extname(file);
308437
308429
  if (ext2 === ".ipynb")
308438
308430
  return "application/x-ipynb+json";
308439
308431
  if (ext2 === ".bib")
@@ -308443,7 +308435,7 @@ function mediaTypeFromFile(file) {
308443
308435
  function addManifestItem(manifestItems, itemType, mecaFolder, file, mediaType) {
308444
308436
  if (!file)
308445
308437
  return;
308446
- const hrefPath = import_node_path51.default.relative(mecaFolder, file).split(import_node_path51.default.sep).join("/");
308438
+ const hrefPath = import_node_path50.default.relative(mecaFolder, file).split(import_node_path50.default.sep).join("/");
308447
308439
  const hrefTrail = isDirectory(file) ? "/" : "";
308448
308440
  manifestItems.push({
308449
308441
  href: `${hrefPath}${hrefTrail}`,
@@ -308452,7 +308444,7 @@ function addManifestItem(manifestItems, itemType, mecaFolder, file, mediaType) {
308452
308444
  });
308453
308445
  }
308454
308446
  function bundleFolder(folder) {
308455
- return import_node_path51.default.join(folder, "bundle");
308447
+ return import_node_path50.default.join(folder, "bundle");
308456
308448
  }
308457
308449
  async function copyFilesFromConfig(session, projectPath, mecaFolder, manifestItems, errorLogFn) {
308458
308450
  var _a6, _b;
@@ -308467,9 +308459,9 @@ async function copyFilesFromConfig(session, projectPath, mecaFolder, manifestIte
308467
308459
  ];
308468
308460
  if (entries2.length) {
308469
308461
  await Promise.all(entries2.map(async ({ itemType, entry }) => {
308470
- const resolvedEntry = [...projectPath.split(import_node_path51.default.sep), entry].join("/");
308462
+ const resolvedEntry = [...projectPath.split(import_node_path50.default.sep), entry].join("/");
308471
308463
  const matches4 = await glob(resolvedEntry);
308472
- matches4.map((match3) => match3.split("/").join(import_node_path51.default.sep)).filter((match3) => !isDirectory(match3)).forEach((match3) => {
308464
+ matches4.map((match3) => match3.split("/").join(import_node_path50.default.sep)).filter((match3) => !isDirectory(match3)).forEach((match3) => {
308473
308465
  const destination = copyFileMaintainPath(session, match3, projectPath, bundleFolder(mecaFolder), errorLogFn);
308474
308466
  addManifestItem(manifestItems, itemType, mecaFolder, destination);
308475
308467
  });
@@ -308492,7 +308484,7 @@ async function copyDependentFiles(session, sourceFile, projectPath, mecaFolder,
308492
308484
  ...urlNodes.map((node3) => node3.url),
308493
308485
  ...fileNodes.map((node3) => node3.file),
308494
308486
  frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.thumbnail
308495
- ].filter((file) => !!file).map((file) => import_node_path51.default.resolve(import_node_path51.default.dirname(sourceFile), file)).filter((file) => import_node_fs39.default.existsSync(file));
308487
+ ].filter((file) => !!file).map((file) => import_node_path50.default.resolve(import_node_path50.default.dirname(sourceFile), file)).filter((file) => import_node_fs38.default.existsSync(file));
308496
308488
  filesToCopy.forEach((file) => {
308497
308489
  const dependency = copyFileMaintainPath(session, file, projectPath, bundleFolder(mecaFolder), errorLogFn);
308498
308490
  addManifestItem(manifestItems, "article-source", mecaFolder, dependency);
@@ -308500,7 +308492,7 @@ async function copyDependentFiles(session, sourceFile, projectPath, mecaFolder,
308500
308492
  }
308501
308493
  function writeMecaManifest(manifestItems, mecaFolder) {
308502
308494
  const manifest = createManifestXml(manifestItems);
308503
- import_node_fs39.default.writeFileSync(import_node_path51.default.join(mecaFolder, "manifest.xml"), manifest);
308495
+ import_node_fs38.default.writeFileSync(import_node_path50.default.join(mecaFolder, "manifest.xml"), manifest);
308504
308496
  }
308505
308497
  async function runMecaExport(session, sourceFile, exportOptions, opts) {
308506
308498
  var _a6;
@@ -308521,13 +308513,13 @@ async function runMecaExport(session, sourceFile, exportOptions, opts) {
308521
308513
  projectPath
308522
308514
  });
308523
308515
  if (jatsExports.length === 0 && articleFile) {
308524
- const jatsOutput = import_node_path51.default.join(mecaFolder, "article.xml");
308516
+ const jatsOutput = import_node_path50.default.join(mecaFolder, "article.xml");
308525
308517
  await runJatsExport(session, sourceFile, { ...exportOptions, output: jatsOutput }, { projectPath, clean: clean3, extraLinkTransformers });
308526
308518
  addManifestItem(manifestItems, "article-metadata", mecaFolder, jatsOutput);
308527
- const jatsFiles = import_node_path51.default.join(mecaFolder, "files");
308528
- if (import_node_fs39.default.existsSync(jatsFiles)) {
308529
- import_node_fs39.default.readdirSync(jatsFiles).forEach((file) => {
308530
- addManifestItem(manifestItems, "article-supporting-file", mecaFolder, import_node_path51.default.join(mecaFolder, "files", file));
308519
+ const jatsFiles = import_node_path50.default.join(mecaFolder, "files");
308520
+ if (import_node_fs38.default.existsSync(jatsFiles)) {
308521
+ import_node_fs38.default.readdirSync(jatsFiles).forEach((file) => {
308522
+ addManifestItem(manifestItems, "article-supporting-file", mecaFolder, import_node_path50.default.join(mecaFolder, "files", file));
308531
308523
  });
308532
308524
  }
308533
308525
  } else if (jatsExports.length === 0) {
@@ -308541,7 +308533,7 @@ Conventionally, MECA should only have one JATS article`, {
308541
308533
  });
308542
308534
  }
308543
308535
  jatsExports.forEach(({ output: jatsOutput }) => {
308544
- if (!import_node_fs39.default.existsSync(jatsOutput)) {
308536
+ if (!import_node_fs38.default.existsSync(jatsOutput)) {
308545
308537
  fileWarn(vfile2, `Other exports must be built prior to building MECA bundle
308546
308538
  To resolve this, run: myst build --all`, {
308547
308539
  ruleId: RuleId.mecaExportsBuilt
@@ -308551,11 +308543,11 @@ To resolve this, run: myst build --all`, {
308551
308543
  if (jatsDest) {
308552
308544
  addManifestItem(manifestItems, "article-metadata", mecaFolder, jatsDest);
308553
308545
  }
308554
- const jatsFiles = import_node_path51.default.join(import_node_path51.default.dirname(jatsOutput), "files");
308555
- if (import_node_fs39.default.existsSync(jatsFiles)) {
308556
- import_node_fs39.default.readdirSync(jatsFiles).forEach((file) => {
308557
- const src = import_node_path51.default.join(jatsFiles, file);
308558
- const fileDest = copyFileToFolder(session, src, import_node_path51.default.join(mecaFolder, "files"), fileCopyErrorLogFn);
308546
+ const jatsFiles = import_node_path50.default.join(import_node_path50.default.dirname(jatsOutput), "files");
308547
+ if (import_node_fs38.default.existsSync(jatsFiles)) {
308548
+ import_node_fs38.default.readdirSync(jatsFiles).forEach((file) => {
308549
+ const src = import_node_path50.default.join(jatsFiles, file);
308550
+ const fileDest = copyFileToFolder(session, src, import_node_path50.default.join(mecaFolder, "files"), fileCopyErrorLogFn);
308559
308551
  addManifestItem(manifestItems, "article-supporting-file", mecaFolder, fileDest);
308560
308552
  });
308561
308553
  }
@@ -308563,10 +308555,10 @@ To resolve this, run: myst build --all`, {
308563
308555
  const manuscriptExports = (await collectExportOptions(session, articleFile ? [articleFile] : [], [ExportFormats.docx, ExportFormats.pdf, ExportFormats.tex], {
308564
308556
  projectPath
308565
308557
  })).filter((exp) => {
308566
- return exp.format !== ExportFormats.tex || import_node_path51.default.extname(exp.output) === ".zip";
308558
+ return exp.format !== ExportFormats.tex || import_node_path50.default.extname(exp.output) === ".zip";
308567
308559
  });
308568
308560
  manuscriptExports.forEach(({ output: manuscriptOutput }) => {
308569
- if (!import_node_fs39.default.existsSync(manuscriptOutput)) {
308561
+ if (!import_node_fs38.default.existsSync(manuscriptOutput)) {
308570
308562
  fileWarn(vfile2, `Other exports must be built prior to building MECA bundle
308571
308563
  To resolve this, run: myst build --all`, {
308572
308564
  ruleId: RuleId.mecaExportsBuilt
@@ -308584,12 +308576,12 @@ To resolve this, run: myst build --all`, {
308584
308576
  addManifestItem(manifestItems, "article-source", mecaFolder, configDest);
308585
308577
  await copyFilesFromConfig(session, projectPath, mecaFolder, manifestItems, fileCopyErrorLogFn);
308586
308578
  }
308587
- if (import_node_fs39.default.existsSync(import_node_path51.default.join(projectPath, "_toc.yml"))) {
308588
- copyFileToFolder(session, import_node_path51.default.join(projectPath, "_toc.yml"), bundle, fileCopyErrorLogFn);
308579
+ if (import_node_fs38.default.existsSync(import_node_path50.default.join(projectPath, "_toc.yml"))) {
308580
+ copyFileToFolder(session, import_node_path50.default.join(projectPath, "_toc.yml"), bundle, fileCopyErrorLogFn);
308589
308581
  } else {
308590
308582
  writeTOCFromProject(project, bundle);
308591
308583
  }
308592
- addManifestItem(manifestItems, "article-source", mecaFolder, import_node_path51.default.join(bundle, "_toc.yml"));
308584
+ addManifestItem(manifestItems, "article-source", mecaFolder, import_node_path50.default.join(bundle, "_toc.yml"));
308593
308585
  const projectPages = [
308594
308586
  { page: project.file, itemType: "article-source" },
308595
308587
  ...project.pages.filter((page) => {
@@ -308610,8 +308602,8 @@ To resolve this, run: myst build --all`, {
308610
308602
  const articleDest = copyFileToFolder(session, articleFile, bundle, fileCopyErrorLogFn);
308611
308603
  addManifestItem(manifestItems, "article-source", mecaFolder, articleDest);
308612
308604
  }
308613
- if (import_node_fs39.default.existsSync(bundle)) {
308614
- addManifestItem(manifestItems, "article-source-directory", mecaFolder, import_node_path51.default.join(bundle, ""), "application/x-directory");
308605
+ if (import_node_fs38.default.existsSync(bundle)) {
308606
+ addManifestItem(manifestItems, "article-source-directory", mecaFolder, import_node_path50.default.join(bundle, ""), "application/x-directory");
308615
308607
  }
308616
308608
  writeMecaManifest(manifestItems, mecaFolder);
308617
308609
  const zip2 = new import_adm_zip4.default();
@@ -308623,7 +308615,7 @@ To resolve this, run: myst build --all`, {
308623
308615
  }
308624
308616
 
308625
308617
  // ../myst-cli/dist/build/md/index.js
308626
- var import_node_path52 = __toESM(require("path"), 1);
308618
+ var import_node_path51 = __toESM(require("path"), 1);
308627
308619
 
308628
308620
  // ../../node_modules/character-entities/index.js
308629
308621
  var characterEntities = {
@@ -312198,7 +312190,7 @@ var handle5 = {
312198
312190
  };
312199
312191
 
312200
312192
  // ../../node_modules/mdast-util-to-markdown/lib/join.js
312201
- var join16 = [joinDefaults];
312193
+ var join15 = [joinDefaults];
312202
312194
  function joinDefaults(left2, right2, parent2, state) {
312203
312195
  if (right2.type === "code" && formatCodeAsIndented(right2, state) && (left2.type === "list" || left2.type === right2.type && formatCodeAsIndented(left2, state))) {
312204
312196
  return false;
@@ -312370,7 +312362,7 @@ function toMarkdown(tree, options = {}) {
312370
312362
  // @ts-expect-error: we’ll add `handle` later.
312371
312363
  handle: void 0
312372
312364
  };
312373
- configure(state, { unsafe, join: join16, handlers: handle5 });
312365
+ configure(state, { unsafe, join: join15, handlers: handle5 });
312374
312366
  configure(state, options);
312375
312367
  if (state.options.tightDefinitions) {
312376
312368
  configure(state, { join: [joinDefinition] });
@@ -313013,7 +313005,7 @@ async function runMdExport(session, sourceFile, exportOptions, opts) {
313013
313005
  ]
313014
313006
  });
313015
313007
  await finalizeMdast(session, mdast2, frontmatter, article.file, {
313016
- imageWriteFolder: import_node_path52.default.join(import_node_path52.default.dirname(output2), "files"),
313008
+ imageWriteFolder: import_node_path51.default.join(import_node_path51.default.dirname(output2), "files"),
313017
313009
  imageAltOutputFolder: "files/",
313018
313010
  imageExtensions: KNOWN_IMAGE_EXTENSIONS,
313019
313011
  simplifyFigures: false,
@@ -313067,21 +313059,21 @@ async function _localArticleExport(session, exportOptionsList, opts) {
313067
313059
  const { $file, $project, ...exportOptions } = exportOptionsWithFile;
313068
313060
  const { format, output: output2 } = exportOptions;
313069
313061
  const sessionClone = session.clone();
313070
- const fileProjectPath = (_a6 = projectPath !== null && projectPath !== void 0 ? projectPath : $project) !== null && _a6 !== void 0 ? _a6 : findCurrentProjectAndLoad(sessionClone, import_node_path53.default.dirname($file));
313062
+ const fileProjectPath = (_a6 = projectPath !== null && projectPath !== void 0 ? projectPath : $project) !== null && _a6 !== void 0 ? _a6 : findCurrentProjectAndLoad(sessionClone, import_node_path52.default.dirname($file));
313071
313063
  if (fileProjectPath) {
313072
313064
  await loadProjectFromDisk(sessionClone, fileProjectPath);
313073
313065
  }
313074
313066
  let exportFn;
313075
313067
  if (format === ExportFormats.tex) {
313076
- if (import_node_path53.default.extname(output2) === ".zip") {
313068
+ if (import_node_path52.default.extname(output2) === ".zip") {
313077
313069
  exportFn = runTexZipExport;
313078
313070
  } else {
313079
313071
  exportFn = runTexExport;
313080
313072
  }
313081
313073
  } else if (format === ExportFormats.typst) {
313082
- if (import_node_path53.default.extname(output2) === ".zip") {
313074
+ if (import_node_path52.default.extname(output2) === ".zip") {
313083
313075
  exportFn = runTypstZipExport;
313084
- } else if (import_node_path53.default.extname(output2) === ".pdf") {
313076
+ } else if (import_node_path52.default.extname(output2) === ".pdf") {
313085
313077
  exportFn = runTypstPdfExport;
313086
313078
  } else {
313087
313079
  exportFn = runTypstExport;
@@ -313119,7 +313111,7 @@ async function localArticleExport(session, exportOptionsList, opts) {
313119
313111
 
313120
313112
  // ../myst-cli/dist/build/html/index.js
313121
313113
  var import_fs_extra = __toESM(require_lib20(), 1);
313122
- var import_node_path56 = __toESM(require("path"), 1);
313114
+ var import_node_path55 = __toESM(require("path"), 1);
313123
313115
 
313124
313116
  // ../myst-cli/dist/build/site/start.js
313125
313117
  var import_cors = __toESM(require_lib21(), 1);
@@ -313260,7 +313252,7 @@ function portNumbers(from4, to) {
313260
313252
  }
313261
313253
 
313262
313254
  // ../myst-cli/dist/build/site/start.js
313263
- var import_node_path55 = require("path");
313255
+ var import_node_path54 = require("path");
313264
313256
 
313265
313257
  // ../../node_modules/ws/wrapper.mjs
313266
313258
  var import_stream = __toESM(require_stream(), 1);
@@ -313320,7 +313312,7 @@ function createServerLogger(session, ready) {
313320
313312
 
313321
313313
  // ../myst-cli/dist/build/site/watch.js
313322
313314
  var import_chokidar2 = __toESM(require_chokidar(), 1);
313323
- var import_node_path54 = require("path");
313315
+ var import_node_path53 = require("path");
313324
313316
  function watchConfigAndPublic(session, serverReload, opts) {
313325
313317
  const watchFiles = ["public"];
313326
313318
  const siteConfigFile = selectors_exports.selectCurrentSiteFile(session.store.getState());
@@ -313334,7 +313326,7 @@ function watchConfigAndPublic(session, serverReload, opts) {
313334
313326
  function triggerProjectReload(session, file, eventType, projectPath) {
313335
313327
  const state = session.store.getState();
313336
313328
  const projectConfigFile = projectPath ? selectors_exports.selectLocalConfigFile(state, projectPath) : selectors_exports.selectCurrentProjectFile(state);
313337
- if (file === projectConfigFile || (0, import_node_path54.basename)(file) === "_toc.yml")
313329
+ if (file === projectConfigFile || (0, import_node_path53.basename)(file) === "_toc.yml")
313338
313330
  return true;
313339
313331
  if (["add", "unlink"].includes(eventType))
313340
313332
  return true;
@@ -313343,11 +313335,11 @@ function triggerProjectReload(session, file, eventType, projectPath) {
313343
313335
  async function processorFn(session, file, eventType, siteProject, serverReload, opts) {
313344
313336
  if (file) {
313345
313337
  changeFile(session, file, eventType);
313346
- if (KNOWN_FAST_BUILDS.has((0, import_node_path54.extname)(file)) && eventType === "unlink") {
313338
+ if (KNOWN_FAST_BUILDS.has((0, import_node_path53.extname)(file)) && eventType === "unlink") {
313347
313339
  session.log.info(`\u{1F6AE} File ${file} deleted...`);
313348
313340
  }
313349
313341
  }
313350
- if (!siteProject || !file || !KNOWN_FAST_BUILDS.has((0, import_node_path54.extname)(file)) || ["add", "unlink"].includes(eventType)) {
313342
+ if (!siteProject || !file || !KNOWN_FAST_BUILDS.has((0, import_node_path53.extname)(file)) || ["add", "unlink"].includes(eventType)) {
313351
313343
  let reloadProject = false;
313352
313344
  if (file && triggerProjectReload(session, file, eventType, siteProject === null || siteProject === void 0 ? void 0 : siteProject.path)) {
313353
313345
  session.log.info("\u{1F4A5} Triggered full project load and site rebuild");
@@ -313432,7 +313424,7 @@ function watchContent(session, serverReload, opts) {
313432
313424
  return Boolean(proj.path);
313433
313425
  });
313434
313426
  localProjects.forEach((proj) => {
313435
- const ignored = proj.path === "." ? localProjects.filter(({ path: path42 }) => path42 !== ".").map(({ path: path42 }) => (0, import_node_path54.join)(path42, "*")) : [];
313427
+ const ignored = proj.path === "." ? localProjects.filter(({ path: path42 }) => path42 !== ".").map(({ path: path42 }) => (0, import_node_path53.join)(path42, "*")) : [];
313436
313428
  if (siteConfigFile)
313437
313429
  ignored.push(siteConfigFile);
313438
313430
  const projectConfig = selectors_exports.selectLocalProjectConfig(state, proj.path);
@@ -313465,9 +313457,9 @@ async function startContentServer(session, opts) {
313465
313457
  });
313466
313458
  app.use("/", import_express.default.static(session.publicPath()));
313467
313459
  app.use("/content", import_express.default.static(session.contentPath()));
313468
- app.use("/config.json", import_express.default.static((0, import_node_path55.join)(session.sitePath(), "config.json")));
313469
- app.use("/objects.inv", import_express.default.static((0, import_node_path55.join)(session.sitePath(), "objects.inv")));
313470
- app.use("/myst.xref.json", import_express.default.static((0, import_node_path55.join)(session.sitePath(), "myst.xref.json")));
313460
+ app.use("/config.json", import_express.default.static((0, import_node_path54.join)(session.sitePath(), "config.json")));
313461
+ app.use("/objects.inv", import_express.default.static((0, import_node_path54.join)(session.sitePath(), "objects.inv")));
313462
+ app.use("/myst.xref.json", import_express.default.static((0, import_node_path54.join)(session.sitePath(), "myst.xref.json")));
313471
313463
  const server = app.listen(port, () => {
313472
313464
  session.log.debug(`Content server listening on port ${port}`);
313473
313465
  });
@@ -313582,24 +313574,24 @@ async function currentSiteRoutes(session, host, baseurl, opts) {
313582
313574
  const siteIndex = baseurl ? `/${proj.index}` : "";
313583
313575
  const pages = proj.pages.filter((page) => !!page.slug);
313584
313576
  return [
313585
- { url: `${host}${projSlug}${siteIndex}`, path: import_node_path56.default.join((_a7 = proj.slug) !== null && _a7 !== void 0 ? _a7 : "", "index.html") },
313577
+ { url: `${host}${projSlug}${siteIndex}`, path: import_node_path55.default.join((_a7 = proj.slug) !== null && _a7 !== void 0 ? _a7 : "", "index.html") },
313586
313578
  ...pages.map((page) => {
313587
313579
  var _a8;
313588
313580
  return {
313589
313581
  url: `${host}${projSlug}/${page.slug}`,
313590
- path: import_node_path56.default.join((_a8 = proj.slug) !== null && _a8 !== void 0 ? _a8 : "", `${page.slug}.html`)
313582
+ path: import_node_path55.default.join((_a8 = proj.slug) !== null && _a8 !== void 0 ? _a8 : "", `${page.slug}.html`)
313591
313583
  };
313592
313584
  }),
313593
313585
  // Download all of the configured JSON
313594
313586
  {
313595
313587
  url: `${host}${projSlug}/${proj.index}.json`,
313596
- path: import_node_path56.default.join((_b2 = proj.slug) !== null && _b2 !== void 0 ? _b2 : "", `${proj.index}.json`)
313588
+ path: import_node_path55.default.join((_b2 = proj.slug) !== null && _b2 !== void 0 ? _b2 : "", `${proj.index}.json`)
313597
313589
  },
313598
313590
  ...pages.map((page) => {
313599
313591
  var _a8;
313600
313592
  return {
313601
313593
  url: `${host}${projSlug}/${page.slug}.json`,
313602
- path: import_node_path56.default.join((_a8 = proj.slug) !== null && _a8 !== void 0 ? _a8 : "", `${page.slug}.json`)
313594
+ path: import_node_path55.default.join((_a8 = proj.slug) !== null && _a8 !== void 0 ? _a8 : "", `${page.slug}.json`)
313603
313595
  };
313604
313596
  }),
313605
313597
  // Download other assets
@@ -313613,16 +313605,16 @@ async function currentSiteRoutes(session, host, baseurl, opts) {
313613
313605
  var ASSETS_FOLDER = "myst_assets_folder";
313614
313606
  function rewriteAssetsFolder(directory, baseurl) {
313615
313607
  import_fs_extra.default.readdirSync(directory).forEach((filename) => {
313616
- const file = import_node_path56.default.join(directory, filename);
313608
+ const file = import_node_path55.default.join(directory, filename);
313617
313609
  if (import_fs_extra.default.statSync(file).isDirectory()) {
313618
313610
  rewriteAssetsFolder(file, baseurl);
313619
313611
  return;
313620
313612
  }
313621
- if (import_node_path56.default.extname(file) === ".map") {
313613
+ if (import_node_path55.default.extname(file) === ".map") {
313622
313614
  import_fs_extra.default.rmSync(file);
313623
313615
  return;
313624
313616
  }
313625
- if (![".html", ".js", ".json"].includes(import_node_path56.default.extname(file)))
313617
+ if (![".html", ".js", ".json"].includes(import_node_path55.default.extname(file)))
313626
313618
  return;
313627
313619
  const data = import_fs_extra.default.readFileSync(file).toString();
313628
313620
  const modified = data.replace(new RegExp(`\\/${ASSETS_FOLDER}\\/`, "g"), `${baseurl || ""}/build/`);
@@ -313647,7 +313639,7 @@ function get_baseurl(session) {
313647
313639
  async function buildHtml(session, opts) {
313648
313640
  const template = await getMystTemplate(session, opts);
313649
313641
  const baseurl = get_baseurl(session);
313650
- const htmlDir = import_node_path56.default.join(session.buildPath(), "html");
313642
+ const htmlDir = import_node_path55.default.join(session.buildPath(), "html");
313651
313643
  import_fs_extra.default.rmSync(htmlDir, { recursive: true, force: true });
313652
313644
  import_fs_extra.default.mkdirSync(htmlDir, { recursive: true });
313653
313645
  const appServer = await startServer(session, { ...opts, buildStatic: true, baseurl });
@@ -313662,15 +313654,15 @@ async function buildHtml(session, opts) {
313662
313654
  return;
313663
313655
  }
313664
313656
  const content3 = await resp.text();
313665
- writeFileToFolder(import_node_path56.default.join(htmlDir, page.path), content3);
313657
+ writeFileToFolder(import_node_path55.default.join(htmlDir, page.path), content3);
313666
313658
  }));
313667
313659
  appServer.stop();
313668
- const templateBuildDir = import_node_path56.default.join(template.templatePath, "public");
313660
+ const templateBuildDir = import_node_path55.default.join(template.templatePath, "public");
313669
313661
  import_fs_extra.default.copySync(templateBuildDir, htmlDir);
313670
- import_fs_extra.default.copySync(session.publicPath(), import_node_path56.default.join(htmlDir, "build"));
313671
- import_fs_extra.default.copySync(import_node_path56.default.join(session.sitePath(), "config.json"), import_node_path56.default.join(htmlDir, "config.json"));
313672
- import_fs_extra.default.copySync(import_node_path56.default.join(session.sitePath(), "objects.inv"), import_node_path56.default.join(htmlDir, "objects.inv"));
313673
- import_fs_extra.default.copySync(import_node_path56.default.join(session.sitePath(), "myst.xref.json"), import_node_path56.default.join(htmlDir, "myst.xref.json"));
313662
+ import_fs_extra.default.copySync(session.publicPath(), import_node_path55.default.join(htmlDir, "build"));
313663
+ import_fs_extra.default.copySync(import_node_path55.default.join(session.sitePath(), "config.json"), import_node_path55.default.join(htmlDir, "config.json"));
313664
+ import_fs_extra.default.copySync(import_node_path55.default.join(session.sitePath(), "objects.inv"), import_node_path55.default.join(htmlDir, "objects.inv"));
313665
+ import_fs_extra.default.copySync(import_node_path55.default.join(session.sitePath(), "myst.xref.json"), import_node_path55.default.join(htmlDir, "myst.xref.json"));
313674
313666
  rewriteAssetsFolder(htmlDir, baseurl);
313675
313667
  process.exit(0);
313676
313668
  }
@@ -313731,7 +313723,7 @@ function getProjectPaths(session) {
313731
313723
  var _a6, _b, _c;
313732
313724
  const siteConfig = selectors_exports.selectCurrentSiteConfig(session.store.getState());
313733
313725
  const projectPaths = [
313734
- (_a6 = selectors_exports.selectCurrentProjectPath(session.store.getState())) !== null && _a6 !== void 0 ? _a6 : import_node_path57.default.resolve("."),
313726
+ (_a6 = selectors_exports.selectCurrentProjectPath(session.store.getState())) !== null && _a6 !== void 0 ? _a6 : import_node_path56.default.resolve("."),
313735
313727
  ...(_c = (_b = siteConfig === null || siteConfig === void 0 ? void 0 : siteConfig.projects) === null || _b === void 0 ? void 0 : _b.map((proj) => proj.path).filter((projectPath) => !!projectPath)) !== null && _c !== void 0 ? _c : []
313736
313728
  ];
313737
313729
  return uniqueArray(projectPaths);
@@ -313739,7 +313731,7 @@ function getProjectPaths(session) {
313739
313731
  async function collectAllBuildExportOptions(session, files, opts) {
313740
313732
  var _a6;
313741
313733
  const { output: output2 } = opts;
313742
- files = files.map((file) => import_node_path57.default.resolve(file));
313734
+ files = files.map((file) => import_node_path56.default.resolve(file));
313743
313735
  if (output2 && files.length !== 1) {
313744
313736
  throw new Error("When specifying a named output for export, you must list exactly one file.");
313745
313737
  }
@@ -313748,16 +313740,16 @@ async function collectAllBuildExportOptions(session, files, opts) {
313748
313740
  throw new Error(`When specifying output, you can only request one format`);
313749
313741
  }
313750
313742
  let exportOptionsList;
313751
- const projectPath = findCurrentProjectAndLoad(session, files[0] ? import_node_path57.default.dirname(files[0]) : ".");
313743
+ const projectPath = findCurrentProjectAndLoad(session, files[0] ? import_node_path56.default.dirname(files[0]) : ".");
313752
313744
  if (projectPath)
313753
313745
  await loadProjectFromDisk(session, projectPath);
313754
313746
  if (output2) {
313755
313747
  session.log.debug(`Exporting formats: "${requestedFormats.join('", "')}"`);
313756
- const format = (_a6 = requestedFormats[0]) !== null && _a6 !== void 0 ? _a6 : EXT_TO_FORMAT[import_node_path57.default.extname(output2)];
313748
+ const format = (_a6 = requestedFormats[0]) !== null && _a6 !== void 0 ? _a6 : EXT_TO_FORMAT[import_node_path56.default.extname(output2)];
313757
313749
  if (!format) {
313758
313750
  throw new Error(`Cannot specify format from output "${output2}" - please specify format option, e.g. --pdf`);
313759
313751
  }
313760
- exportOptionsList = resolveExportListArticles(session, files[0], [{ format, output: import_node_path57.default.join(import_node_path57.default.resolve("."), output2) }], projectPath, opts).map((exp) => {
313752
+ exportOptionsList = resolveExportListArticles(session, files[0], [{ format, output: import_node_path56.default.join(import_node_path56.default.resolve("."), output2) }], projectPath, opts).map((exp) => {
313761
313753
  return { ...exp, $file: files[0], $project: projectPath };
313762
313754
  });
313763
313755
  } else if (files.length) {
@@ -313817,7 +313809,7 @@ async function build(session, files, opts) {
313817
313809
  exports: exportOptionsList
313818
313810
  };
313819
313811
  const exportLogList = exportOptionsList.map((exportOptions) => {
313820
- return `${import_node_path57.default.relative(".", exportOptions.$file)} -> ${exportOptions.output}`;
313812
+ return `${import_node_path56.default.relative(".", exportOptions.$file)} -> ${exportOptions.output}`;
313821
313813
  });
313822
313814
  if (exportLogList.length === 0) {
313823
313815
  if (!(site || performSiteBuild)) {
@@ -313863,8 +313855,8 @@ exports:
313863
313855
  }
313864
313856
 
313865
313857
  // ../myst-cli/dist/build/clean.js
313866
- var import_node_fs40 = __toESM(require("fs"), 1);
313867
- var import_node_path58 = __toESM(require("path"), 1);
313858
+ var import_node_fs39 = __toESM(require("fs"), 1);
313859
+ var import_node_path57 = __toESM(require("path"), 1);
313868
313860
 
313869
313861
  // ../../node_modules/inquirer/node_modules/chalk/source/vendor/ansi-styles/index.js
313870
313862
  var ANSI_BACKGROUND_OFFSET4 = 10;
@@ -316222,8 +316214,8 @@ function coerceOpts(opts) {
316222
316214
  function isSubpath(item, folder) {
316223
316215
  if (item === folder)
316224
316216
  return false;
316225
- const itemParts = item.split(import_node_path58.default.sep);
316226
- const folderParts = folder.split(import_node_path58.default.sep);
316217
+ const itemParts = item.split(import_node_path57.default.sep);
316218
+ const folderParts = folder.split(import_node_path57.default.sep);
316227
316219
  let subpath = true;
316228
316220
  folderParts.forEach((part, index4) => {
316229
316221
  if (itemParts[index4] !== part)
@@ -316264,7 +316256,7 @@ async function clean2(session, files, opts) {
316264
316256
  ...exportOptionsList.map((exp) => exp.$project)
316265
316257
  ];
316266
316258
  projectPaths.filter((projPath) => Boolean(projPath)).forEach((projPath) => {
316267
- buildFolders.push(import_node_path58.default.join(projPath, "_build"));
316259
+ buildFolders.push(import_node_path57.default.join(projPath, "_build"));
316268
316260
  });
316269
316261
  buildFolders.push(session.buildPath());
316270
316262
  }
@@ -316272,25 +316264,25 @@ async function clean2(session, files, opts) {
316272
316264
  if (temp || logs || cache || exports2 || templates || execute || html7) {
316273
316265
  buildFolders.forEach((folder) => {
316274
316266
  if (temp)
316275
- pathsToDelete.push(import_node_path58.default.join(folder, "temp"));
316267
+ pathsToDelete.push(import_node_path57.default.join(folder, "temp"));
316276
316268
  if (logs)
316277
- pathsToDelete.push(import_node_path58.default.join(folder, "logs"));
316269
+ pathsToDelete.push(import_node_path57.default.join(folder, "logs"));
316278
316270
  if (cache)
316279
- pathsToDelete.push(import_node_path58.default.join(folder, "cache"));
316271
+ pathsToDelete.push(import_node_path57.default.join(folder, "cache"));
316280
316272
  if (exports2)
316281
- pathsToDelete.push(import_node_path58.default.join(folder, "exports"));
316273
+ pathsToDelete.push(import_node_path57.default.join(folder, "exports"));
316282
316274
  if (templates)
316283
- pathsToDelete.push(import_node_path58.default.join(folder, "templates"));
316275
+ pathsToDelete.push(import_node_path57.default.join(folder, "templates"));
316284
316276
  if (html7)
316285
- pathsToDelete.push(import_node_path58.default.join(folder, "html"));
316277
+ pathsToDelete.push(import_node_path57.default.join(folder, "html"));
316286
316278
  if (execute)
316287
- pathsToDelete.push(import_node_path58.default.join(folder, "execute"));
316279
+ pathsToDelete.push(import_node_path57.default.join(folder, "execute"));
316288
316280
  });
316289
316281
  }
316290
316282
  if (site) {
316291
316283
  pathsToDelete.push(session.sitePath());
316292
316284
  }
316293
- pathsToDelete = deduplicatePaths(pathsToDelete.filter((p5) => import_node_fs40.default.existsSync(p5))).sort();
316285
+ pathsToDelete = deduplicatePaths(pathsToDelete.filter((p5) => import_node_fs39.default.existsSync(p5))).sort();
316294
316286
  if (pathsToDelete.length === 0) {
316295
316287
  session.log.info(source_default.yellow(`\u{1F9F9} Your folders are already so clean! \u2728`));
316296
316288
  return;
@@ -316303,20 +316295,20 @@ async function clean2(session, files, opts) {
316303
316295
  if (cont) {
316304
316296
  pathsToDelete.forEach((pathToDelete) => {
316305
316297
  session.log.info(`\u{1F5D1} Deleting: ${pathToDelete}`);
316306
- import_node_fs40.default.rmSync(pathToDelete, { recursive: true, force: true });
316298
+ import_node_fs39.default.rmSync(pathToDelete, { recursive: true, force: true });
316307
316299
  });
316308
316300
  buildFolders.forEach((buildFolder) => {
316309
- if (import_node_fs40.default.existsSync(buildFolder) && import_node_fs40.default.readdirSync(buildFolder).length === 0) {
316301
+ if (import_node_fs39.default.existsSync(buildFolder) && import_node_fs39.default.readdirSync(buildFolder).length === 0) {
316310
316302
  session.log.debug(`Deleting empty build folder: ${buildFolder}`);
316311
- import_node_fs40.default.rmSync(buildFolder, { recursive: true, force: true });
316303
+ import_node_fs39.default.rmSync(buildFolder, { recursive: true, force: true });
316312
316304
  }
316313
316305
  });
316314
316306
  }
316315
316307
  }
316316
316308
 
316317
316309
  // ../myst-cli/dist/build/init.js
316318
- var import_node_fs42 = __toESM(require("fs"), 1);
316319
- var import_node_path60 = __toESM(require("path"), 1);
316310
+ var import_node_fs41 = __toESM(require("fs"), 1);
316311
+ var import_node_path59 = __toESM(require("path"), 1);
316320
316312
 
316321
316313
  // ../../node_modules/uuid/dist/esm-node/rng.js
316322
316314
  var import_crypto2 = __toESM(require("crypto"));
@@ -316371,8 +316363,8 @@ function v4(options, buf, offset) {
316371
316363
  var v4_default = v4;
316372
316364
 
316373
316365
  // ../myst-cli/dist/build/gh-actions/index.js
316374
- var import_node_fs41 = __toESM(require("fs"), 1);
316375
- var import_node_path59 = __toESM(require("path"), 1);
316366
+ var import_node_fs40 = __toESM(require("fs"), 1);
316367
+ var import_node_path58 = __toESM(require("path"), 1);
316376
316368
 
316377
316369
  // ../myst-cli/dist/build/utils/github.js
316378
316370
  async function getGithubUrl() {
@@ -316472,7 +316464,7 @@ async function checkFolderIsGit() {
316472
316464
  }
316473
316465
  async function checkAtGitRoot() {
316474
316466
  try {
316475
- import_node_fs41.default.readdirSync(".git");
316467
+ import_node_fs40.default.readdirSync(".git");
316476
316468
  return true;
316477
316469
  } catch (error) {
316478
316470
  return false;
@@ -316512,7 +316504,7 @@ var workflowQuestions = [
316512
316504
  validate(input3) {
316513
316505
  if (!input3.endsWith(".yml"))
316514
316506
  return "The GitHub Action name must end in `.yml`";
316515
- const exists2 = import_node_fs41.default.existsSync(import_node_path59.default.join(".github", "workflows", input3));
316507
+ const exists2 = import_node_fs40.default.existsSync(import_node_path58.default.join(".github", "workflows", input3));
316516
316508
  if (exists2)
316517
316509
  return "The workflow file already exists, please choose another name.";
316518
316510
  return true;
@@ -316530,7 +316522,7 @@ async function githubPagesAction(session) {
316530
316522
  username: org,
316531
316523
  defaultBranch: prompt2.branch
316532
316524
  });
316533
- const filename = import_node_path59.default.join(".github", "workflows", prompt2.name);
316525
+ const filename = import_node_path58.default.join(".github", "workflows", prompt2.name);
316534
316526
  writeFileToFolder(filename, action);
316535
316527
  const githubPagesUrl = githubUrl ? `https://${org}.github.io/${repo}` : void 0;
316536
316528
  session.log.info(`
@@ -316564,7 +316556,7 @@ async function githubCurvenoteAction(session) {
316564
316556
  `);
316565
316557
  const prompt2 = await inquirer_default.prompt(workflowQuestions);
316566
316558
  const action = createGithubCurvenoteAction({ defaultBranch: prompt2.branch });
316567
- const filename = import_node_path59.default.join(".github", "workflows", prompt2.name);
316559
+ const filename = import_node_path58.default.join(".github", "workflows", prompt2.name);
316568
316560
  writeFileToFolder(filename, action);
316569
316561
  session.log.info(`
316570
316562
  \u{1F389} GitHub Action is configured:
@@ -316691,8 +316683,8 @@ async function init2(session, opts) {
316691
316683
  configData2 = `${VERSION_CONFIG}${createProjectConfig({ github })}${SITE_CONFIG}`;
316692
316684
  configDoc = "project and site";
316693
316685
  }
316694
- session.log.info(`\u{1F4BE} Writing new ${configDoc} config file: ${source_default.blue(import_node_path60.default.resolve(configFile))}`);
316695
- import_node_fs42.default.writeFileSync(configFile, configData2);
316686
+ session.log.info(`\u{1F4BE} Writing new ${configDoc} config file: ${source_default.blue(import_node_path59.default.resolve(configFile))}`);
316687
+ import_node_fs41.default.writeFileSync(configFile, configData2);
316696
316688
  }
316697
316689
  if (writeTOC) {
316698
316690
  loadConfig(session, ".");
@@ -316835,7 +316827,7 @@ function makeStartCommand() {
316835
316827
  }
316836
316828
 
316837
316829
  // ../myst-cli/dist/plugins.js
316838
- var import_node_fs43 = __toESM(require("fs"), 1);
316830
+ var import_node_fs42 = __toESM(require("fs"), 1);
316839
316831
  async function loadPlugins(session) {
316840
316832
  let configPlugins = [];
316841
316833
  const state = session.store.getState();
@@ -316861,7 +316853,7 @@ async function loadPlugins(session) {
316861
316853
  }
316862
316854
  session.log.debug(`Loading plugins: "${configPlugins.join('", "')}"`);
316863
316855
  const modules = await Promise.all(configPlugins.map(async (filename) => {
316864
- if (!import_node_fs43.default.statSync(filename).isFile || !filename.endsWith(".mjs")) {
316856
+ if (!import_node_fs42.default.statSync(filename).isFile || !filename.endsWith(".mjs")) {
316865
316857
  addWarningForFile(session, filename, `Unknown plugin "${filename}", it must be an mjs file`, "error", {
316866
316858
  ruleId: RuleId.pluginLoads
316867
316859
  });
@@ -316907,7 +316899,7 @@ ${error === null || error === void 0 ? void 0 : error.stack}
316907
316899
  }
316908
316900
 
316909
316901
  // ../myst-cli/dist/session/session.js
316910
- var import_node_path61 = __toESM(require("path"), 1);
316902
+ var import_node_path60 = __toESM(require("path"), 1);
316911
316903
 
316912
316904
  // ../../node_modules/package-json/index.js
316913
316905
  var import_node_http5 = require("http");
@@ -323565,19 +323557,19 @@ var Session = class {
323565
323557
  const sitePath = selectors_exports.selectCurrentSitePath(state);
323566
323558
  const projectPath = selectors_exports.selectCurrentProjectPath(state);
323567
323559
  const root6 = (_a6 = sitePath !== null && sitePath !== void 0 ? sitePath : projectPath) !== null && _a6 !== void 0 ? _a6 : ".";
323568
- return import_node_path61.default.resolve(root6);
323560
+ return import_node_path60.default.resolve(root6);
323569
323561
  }
323570
323562
  buildPath() {
323571
- return import_node_path61.default.join(this.sourcePath(), "_build");
323563
+ return import_node_path60.default.join(this.sourcePath(), "_build");
323572
323564
  }
323573
323565
  sitePath() {
323574
- return import_node_path61.default.join(this.buildPath(), "site");
323566
+ return import_node_path60.default.join(this.buildPath(), "site");
323575
323567
  }
323576
323568
  contentPath() {
323577
- return import_node_path61.default.join(this.sitePath(), "content");
323569
+ return import_node_path60.default.join(this.sitePath(), "content");
323578
323570
  }
323579
323571
  publicPath() {
323580
- return import_node_path61.default.join(this.sitePath(), "public");
323572
+ return import_node_path60.default.join(this.sitePath(), "public");
323581
323573
  }
323582
323574
  clone() {
323583
323575
  const cloneSession = new Session({ logger: this.log });
@@ -324229,8 +324221,8 @@ function makeStartCLI(program3) {
324229
324221
  }
324230
324222
 
324231
324223
  // src/templates.ts
324232
- var import_node_fs44 = __toESM(require("fs"), 1);
324233
- var import_node_path62 = require("path");
324224
+ var import_node_fs43 = __toESM(require("fs"), 1);
324225
+ var import_node_path61 = require("path");
324234
324226
  var allTemplates = [TemplateKind.tex, TemplateKind.typst, TemplateKind.docx, TemplateKind.site];
324235
324227
  function getKindFromName(name3) {
324236
324228
  var _a6;
@@ -324269,13 +324261,13 @@ async function downloadTemplateCLI(session, template, path42, opts) {
324269
324261
  if (!templateUrl) {
324270
324262
  throw new Error(`Unresolved template URL for "${template}"`);
324271
324263
  }
324272
- if (import_node_fs44.default.existsSync(templatePath)) {
324264
+ if (import_node_fs43.default.existsSync(templatePath)) {
324273
324265
  if (!(opts == null ? void 0 : opts.force)) {
324274
324266
  session.log.error(`The template download path already exists: "${templatePath}"`);
324275
324267
  process.exit(1);
324276
324268
  }
324277
324269
  session.log.info(`\u{1F5D1} Deleting path ${templatePath} due to "force" option`);
324278
- import_node_fs44.default.rmSync(templatePath, { recursive: true });
324270
+ import_node_fs43.default.rmSync(templatePath, { recursive: true });
324279
324271
  }
324280
324272
  await downloadTemplate(session, { templatePath, templateUrl });
324281
324273
  }
@@ -324287,8 +324279,8 @@ async function listTemplatesCLI(session, name3, opts) {
324287
324279
  if (kinds && (kinds == null ? void 0 : kinds.length) > 1) {
324288
324280
  throw new Error("Cannot lookup a template with more than one kind.");
324289
324281
  }
324290
- const isLocal = import_node_fs44.default.existsSync(name3) ? name3.endsWith(".yml") ? name3 : (0, import_node_path62.join)(name3, TEMPLATE_YML) : false;
324291
- const template = isLocal ? js_yaml_default.load(import_node_fs44.default.readFileSync(isLocal).toString()) : await fetchPublicTemplate(session, name3, kinds == null ? void 0 : kinds[0]);
324282
+ const isLocal = import_node_fs43.default.existsSync(name3) ? name3.endsWith(".yml") ? name3 : (0, import_node_path61.join)(name3, TEMPLATE_YML) : false;
324283
+ const template = isLocal ? js_yaml_default.load(import_node_fs43.default.readFileSync(isLocal).toString()) : await fetchPublicTemplate(session, name3, kinds == null ? void 0 : kinds[0]);
324292
324284
  if (!template.id)
324293
324285
  template.id = name3;
324294
324286
  session.log.debug(toc(`Found ${template.id} template in %s`));