@getpochi/cli 0.5.86 → 0.5.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +1766 -330
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -54531,7 +54531,7 @@ var require_filesystem = __commonJS((exports, module) => {
54531
54531
  var fs2 = __require("fs");
54532
54532
  var LDD_PATH = "/usr/bin/ldd";
54533
54533
  var readFileSync2 = (path4) => fs2.readFileSync(path4, "utf-8");
54534
- var readFile3 = (path4) => new Promise((resolve4, reject3) => {
54534
+ var readFile2 = (path4) => new Promise((resolve4, reject3) => {
54535
54535
  fs2.readFile(path4, "utf-8", (err, data) => {
54536
54536
  if (err) {
54537
54537
  reject3(err);
@@ -54543,7 +54543,7 @@ var require_filesystem = __commonJS((exports, module) => {
54543
54543
  module.exports = {
54544
54544
  LDD_PATH,
54545
54545
  readFileSync: readFileSync2,
54546
- readFile: readFile3
54546
+ readFile: readFile2
54547
54547
  };
54548
54548
  });
54549
54549
 
@@ -54551,7 +54551,7 @@ var require_filesystem = __commonJS((exports, module) => {
54551
54551
  var require_detect_libc = __commonJS((exports, module) => {
54552
54552
  var childProcess = __require("child_process");
54553
54553
  var { isLinux, getReport } = require_process();
54554
- var { LDD_PATH, readFile: readFile3, readFileSync: readFileSync2 } = require_filesystem();
54554
+ var { LDD_PATH, readFile: readFile2, readFileSync: readFileSync2 } = require_filesystem();
54555
54555
  var cachedFamilyFilesystem;
54556
54556
  var cachedVersionFilesystem;
54557
54557
  var command = "getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true";
@@ -54618,7 +54618,7 @@ var require_detect_libc = __commonJS((exports, module) => {
54618
54618
  }
54619
54619
  cachedFamilyFilesystem = null;
54620
54620
  try {
54621
- const lddContent = await readFile3(LDD_PATH);
54621
+ const lddContent = await readFile2(LDD_PATH);
54622
54622
  cachedFamilyFilesystem = getFamilyFromLddContent(lddContent);
54623
54623
  } catch (e2) {}
54624
54624
  return cachedFamilyFilesystem;
@@ -54670,7 +54670,7 @@ var require_detect_libc = __commonJS((exports, module) => {
54670
54670
  }
54671
54671
  cachedVersionFilesystem = null;
54672
54672
  try {
54673
- const lddContent = await readFile3(LDD_PATH);
54673
+ const lddContent = await readFile2(LDD_PATH);
54674
54674
  const versionMatch = lddContent.match(RE_GLIBC_VERSION);
54675
54675
  if (versionMatch) {
54676
54676
  cachedVersionFilesystem = versionMatch[1];
@@ -102716,11 +102716,11 @@ var require_exists = __commonJS((exports, module) => {
102716
102716
  var fs2 = __require("fs");
102717
102717
  var untildify = require_untildify();
102718
102718
  var { promisify } = require_promisify();
102719
- var readFile3 = promisify(fs2.readFile);
102719
+ var readFile2 = promisify(fs2.readFile);
102720
102720
  module.exports = async (file5) => {
102721
102721
  let fileExists;
102722
102722
  try {
102723
- await readFile3(untildify(file5));
102723
+ await readFile2(untildify(file5));
102724
102724
  fileExists = true;
102725
102725
  } catch (err) {
102726
102726
  fileExists = false;
@@ -102767,7 +102767,7 @@ var require_installer = __commonJS((exports, module) => {
102767
102767
  var mkdirp = promisify(require_mkdirp());
102768
102768
  var { tabtabDebug, systemShell, exists: exists7 } = require_utils5();
102769
102769
  var debug2 = tabtabDebug("tabtab:installer");
102770
- var readFile3 = promisify(fs2.readFile);
102770
+ var readFile2 = promisify(fs2.readFile);
102771
102771
  var writeFile2 = promisify(fs2.writeFile);
102772
102772
  var unlink = promisify(fs2.unlink);
102773
102773
  var {
@@ -102817,7 +102817,7 @@ var require_installer = __commonJS((exports, module) => {
102817
102817
  debug2('Check filename (%s) for "%s"', filename, line);
102818
102818
  let filecontent = "";
102819
102819
  try {
102820
- filecontent = await readFile3(untildify(filename), "utf8");
102820
+ filecontent = await readFile2(untildify(filename), "utf8");
102821
102821
  } catch (err) {
102822
102822
  if (err.code !== "ENOENT") {
102823
102823
  return console.error("Got an error while trying to read from %s file", filename, err);
@@ -102881,7 +102881,7 @@ ${sourceLineForShell(scriptname)}`);
102881
102881
  const script = scriptFromShell();
102882
102882
  debug2("Writing completion script to", filename);
102883
102883
  debug2("with", script);
102884
- return readFile3(script, "utf8").then((filecontent) => filecontent.replace(/\{pkgname\}/g, name17).replace(/{completer}/g, completer).replace(/\r?\n/g, `
102884
+ return readFile2(script, "utf8").then((filecontent) => filecontent.replace(/\{pkgname\}/g, name17).replace(/{completer}/g, completer).replace(/\r?\n/g, `
102885
102885
  `)).then((filecontent) => mkdirp(path4.dirname(filename)).then(() => writeFile2(filename, filecontent))).then(() => console.log("=> Wrote completion script to %s file", filename)).catch((err) => console.error("ERROR:", err));
102886
102886
  };
102887
102887
  var install = async (options4 = { name: "", completer: "", location: "" }) => {
@@ -102913,7 +102913,7 @@ ${sourceLineForShell(scriptname)}`);
102913
102913
  if (!await exists7(filename)) {
102914
102914
  return debug2("File %s does not exist", filename);
102915
102915
  }
102916
- const filecontent = await readFile3(filename, "utf8");
102916
+ const filecontent = await readFile2(filename, "utf8");
102917
102917
  const lines2 = filecontent.split(/\r?\n/);
102918
102918
  const sourceLine = isInShellConfig(filename) ? `# tabtab source for packages` : `# tabtab source for ${name17} package`;
102919
102919
  const hasLine = !!filecontent.match(`${sourceLine}`);
@@ -102953,7 +102953,7 @@ ${sourceLineForShell(scriptname)}`);
102953
102953
  }
102954
102954
  const tabtabScript = untildify(path4.join(COMPLETION_DIR, `${TABTAB_SCRIPT_NAME}.${shellExtension()}`));
102955
102955
  await removeLinesFromFilename(tabtabScript, name17);
102956
- const isEmpty25 = (await readFile3(tabtabScript, "utf8")).trim() === "";
102956
+ const isEmpty25 = (await readFile2(tabtabScript, "utf8")).trim() === "";
102957
102957
  if (isEmpty25) {
102958
102958
  const shellScript = locationFromShell();
102959
102959
  debug2("File %s is empty. Removing source line from %s file", tabtabScript, shellScript);
@@ -119930,7 +119930,7 @@ var require_data_url = __commonJS((exports, module) => {
119930
119930
 
119931
119931
  // ../../node_modules/@effect/platform-node/node_modules/undici/lib/web/webidl/index.js
119932
119932
  var require_webidl = __commonJS((exports, module) => {
119933
- var { types: types7, inspect: inspect3 } = __require("node:util");
119933
+ var { types: types9, inspect: inspect3 } = __require("node:util");
119934
119934
  var { markAsUncloneable } = __require("node:worker_threads");
119935
119935
  var UNDEFINED = 1;
119936
119936
  var BOOLEAN = 2;
@@ -120166,7 +120166,7 @@ var require_webidl = __commonJS((exports, module) => {
120166
120166
  });
120167
120167
  }
120168
120168
  const result2 = {};
120169
- if (!types7.isProxy(O)) {
120169
+ if (!types9.isProxy(O)) {
120170
120170
  const keys12 = [...Object.getOwnPropertyNames(O), ...Object.getOwnPropertySymbols(O)];
120171
120171
  for (const key2 of keys12) {
120172
120172
  const keyName = webidl.util.Stringify(key2);
@@ -120312,14 +120312,14 @@ var require_webidl = __commonJS((exports, module) => {
120312
120312
  return x;
120313
120313
  };
120314
120314
  webidl.converters.ArrayBuffer = function(V, prefix3, argument, opts) {
120315
- if (webidl.util.Type(V) !== OBJECT || !types7.isAnyArrayBuffer(V)) {
120315
+ if (webidl.util.Type(V) !== OBJECT || !types9.isAnyArrayBuffer(V)) {
120316
120316
  throw webidl.errors.conversionFailed({
120317
120317
  prefix: prefix3,
120318
120318
  argument: `${argument} ("${webidl.util.Stringify(V)}")`,
120319
120319
  types: ["ArrayBuffer"]
120320
120320
  });
120321
120321
  }
120322
- if (opts?.allowShared === false && types7.isSharedArrayBuffer(V)) {
120322
+ if (opts?.allowShared === false && types9.isSharedArrayBuffer(V)) {
120323
120323
  throw webidl.errors.exception({
120324
120324
  header: "ArrayBuffer",
120325
120325
  message: "SharedArrayBuffer is not allowed."
@@ -120334,14 +120334,14 @@ var require_webidl = __commonJS((exports, module) => {
120334
120334
  return V;
120335
120335
  };
120336
120336
  webidl.converters.TypedArray = function(V, T3, prefix3, name17, opts) {
120337
- if (webidl.util.Type(V) !== OBJECT || !types7.isTypedArray(V) || V.constructor.name !== T3.name) {
120337
+ if (webidl.util.Type(V) !== OBJECT || !types9.isTypedArray(V) || V.constructor.name !== T3.name) {
120338
120338
  throw webidl.errors.conversionFailed({
120339
120339
  prefix: prefix3,
120340
120340
  argument: `${name17} ("${webidl.util.Stringify(V)}")`,
120341
120341
  types: [T3.name]
120342
120342
  });
120343
120343
  }
120344
- if (opts?.allowShared === false && types7.isSharedArrayBuffer(V.buffer)) {
120344
+ if (opts?.allowShared === false && types9.isSharedArrayBuffer(V.buffer)) {
120345
120345
  throw webidl.errors.exception({
120346
120346
  header: "ArrayBuffer",
120347
120347
  message: "SharedArrayBuffer is not allowed."
@@ -120356,13 +120356,13 @@ var require_webidl = __commonJS((exports, module) => {
120356
120356
  return V;
120357
120357
  };
120358
120358
  webidl.converters.DataView = function(V, prefix3, name17, opts) {
120359
- if (webidl.util.Type(V) !== OBJECT || !types7.isDataView(V)) {
120359
+ if (webidl.util.Type(V) !== OBJECT || !types9.isDataView(V)) {
120360
120360
  throw webidl.errors.exception({
120361
120361
  header: prefix3,
120362
120362
  message: `${name17} is not a DataView.`
120363
120363
  });
120364
120364
  }
120365
- if (opts?.allowShared === false && types7.isSharedArrayBuffer(V.buffer)) {
120365
+ if (opts?.allowShared === false && types9.isSharedArrayBuffer(V.buffer)) {
120366
120366
  throw webidl.errors.exception({
120367
120367
  header: "ArrayBuffer",
120368
120368
  message: "SharedArrayBuffer is not allowed."
@@ -127436,7 +127436,7 @@ var require_snapshot_utils = __commonJS((exports, module) => {
127436
127436
 
127437
127437
  // ../../node_modules/@effect/platform-node/node_modules/undici/lib/mock/snapshot-recorder.js
127438
127438
  var require_snapshot_recorder = __commonJS((exports, module) => {
127439
- var { writeFile: writeFile2, readFile: readFile8, mkdir: mkdir2 } = __require("node:fs/promises");
127439
+ var { writeFile: writeFile2, readFile: readFile7, mkdir: mkdir2 } = __require("node:fs/promises");
127440
127440
  var { dirname: dirname2, resolve: resolve5 } = __require("node:path");
127441
127441
  var { setTimeout: setTimeout2, clearTimeout: clearTimeout2 } = __require("node:timers");
127442
127442
  var { InvalidArgumentError: InvalidArgumentError5, UndiciError } = require_errors2();
@@ -127606,7 +127606,7 @@ var require_snapshot_recorder = __commonJS((exports, module) => {
127606
127606
  throw new InvalidArgumentError5("Snapshot path is required");
127607
127607
  }
127608
127608
  try {
127609
- const data = await readFile8(resolve5(path14), "utf8");
127609
+ const data = await readFile7(resolve5(path14), "utf8");
127610
127610
  const parsed = JSON.parse(data);
127611
127611
  if (Array.isArray(parsed)) {
127612
127612
  this.#snapshots.clear();
@@ -139587,7 +139587,7 @@ var handleBadArgument = (method) => (cause3) => new BadArgument({
139587
139587
  }, makeTempFile, makeTempFileScoped, readDirectory = (path14, options4) => tryPromise2({
139588
139588
  try: () => NFS2.promises.readdir(path14, options4),
139589
139589
  catch: (err) => handleErrnoException("FileSystem", "readDirectory")(err, [path14])
139590
- }), readFile9 = (path14) => async((resume2, signal2) => {
139590
+ }), readFile8 = (path14) => async((resume2, signal2) => {
139591
139591
  try {
139592
139592
  NFS2.readFile(path14, {
139593
139593
  signal: signal2
@@ -139895,7 +139895,7 @@ var init_fileSystem2 = __esm(() => {
139895
139895
  makeTempFileScoped,
139896
139896
  open: open3,
139897
139897
  readDirectory,
139898
- readFile: readFile9,
139898
+ readFile: readFile8,
139899
139899
  readLink,
139900
139900
  realPath,
139901
139901
  remove: remove21,
@@ -140167,7 +140167,7 @@ var init_NodeContext = __esm(() => {
140167
140167
 
140168
140168
  // ../../node_modules/@effect/platform-node/node_modules/mime/Mime.js
140169
140169
  var require_Mime = __commonJS((exports, module) => {
140170
- function Mime() {
140170
+ function Mime2() {
140171
140171
  this._types = Object.create(null);
140172
140172
  this._extensions = Object.create(null);
140173
140173
  for (let i6 = 0;i6 < arguments.length; i6++) {
@@ -140177,7 +140177,7 @@ var require_Mime = __commonJS((exports, module) => {
140177
140177
  this.getType = this.getType.bind(this);
140178
140178
  this.getExtension = this.getExtension.bind(this);
140179
140179
  }
140180
- Mime.prototype.define = function(typeMap, force) {
140180
+ Mime2.prototype.define = function(typeMap, force) {
140181
140181
  for (let type3 in typeMap) {
140182
140182
  let extensions2 = typeMap[type3].map(function(t4) {
140183
140183
  return t4.toLowerCase();
@@ -140199,7 +140199,7 @@ var require_Mime = __commonJS((exports, module) => {
140199
140199
  }
140200
140200
  }
140201
140201
  };
140202
- Mime.prototype.getType = function(path14) {
140202
+ Mime2.prototype.getType = function(path14) {
140203
140203
  path14 = String(path14);
140204
140204
  let last6 = path14.replace(/^.*[/\\]/, "").toLowerCase();
140205
140205
  let ext2 = last6.replace(/^.*\./, "").toLowerCase();
@@ -140207,11 +140207,11 @@ var require_Mime = __commonJS((exports, module) => {
140207
140207
  let hasDot = ext2.length < last6.length - 1;
140208
140208
  return (hasDot || !hasPath) && this._types[ext2] || null;
140209
140209
  };
140210
- Mime.prototype.getExtension = function(type3) {
140210
+ Mime2.prototype.getExtension = function(type3) {
140211
140211
  type3 = /^\s*([^;\s]*)/.test(type3) && RegExp.$1;
140212
140212
  return type3 && this._extensions[type3.toLowerCase()] || null;
140213
140213
  };
140214
- module.exports = Mime;
140214
+ module.exports = Mime2;
140215
140215
  });
140216
140216
 
140217
140217
  // ../../node_modules/@effect/platform-node/node_modules/mime/types/standard.js
@@ -140226,8 +140226,8 @@ var require_other = __commonJS((exports, module) => {
140226
140226
 
140227
140227
  // ../../node_modules/@effect/platform-node/node_modules/mime/index.js
140228
140228
  var require_mime = __commonJS((exports, module) => {
140229
- var Mime = require_Mime();
140230
- module.exports = new Mime(require_standard(), require_other());
140229
+ var Mime2 = require_Mime();
140230
+ module.exports = new Mime2(require_standard(), require_other());
140231
140231
  });
140232
140232
 
140233
140233
  // ../../node_modules/@effect/platform-node/dist/esm/NodeFileSystem.js
@@ -140244,7 +140244,7 @@ var init_NodeFileSystem2 = __esm(() => {
140244
140244
  // ../../node_modules/@effect/platform-node/dist/esm/internal/httpPlatform.js
140245
140245
  import * as Fs from "node:fs";
140246
140246
  import { Readable as Readable4 } from "node:stream";
140247
- var import_mime, make169, layer42;
140247
+ var import_mime2, make169, layer42;
140248
140248
  var init_httpPlatform2 = __esm(() => {
140249
140249
  init_Etag();
140250
140250
  init_Headers();
@@ -140252,7 +140252,7 @@ var init_httpPlatform2 = __esm(() => {
140252
140252
  init_HttpServerResponse();
140253
140253
  init_Function();
140254
140254
  init_Layer();
140255
- import_mime = __toESM(require_mime(), 1);
140255
+ import_mime2 = __toESM(require_mime(), 1);
140256
140256
  init_NodeFileSystem2();
140257
140257
  make169 = /* @__PURE__ */ make140({
140258
140258
  fileResponse(path14, status3, statusText, headers, start6, end6, contentLength) {
@@ -140263,7 +140263,7 @@ var init_httpPlatform2 = __esm(() => {
140263
140263
  return raw4(stream12, {
140264
140264
  headers: {
140265
140265
  ...headers,
140266
- "content-type": headers["content-type"] ?? import_mime.default.getType(path14) ?? "application/octet-stream",
140266
+ "content-type": headers["content-type"] ?? import_mime2.default.getType(path14) ?? "application/octet-stream",
140267
140267
  "content-length": contentLength.toString()
140268
140268
  },
140269
140269
  status: status3,
@@ -140273,7 +140273,7 @@ var init_httpPlatform2 = __esm(() => {
140273
140273
  fileWebResponse(file5, status3, statusText, headers, _options) {
140274
140274
  return raw4(Readable4.fromWeb(file5.stream()), {
140275
140275
  headers: merge16(headers, unsafeFromRecord({
140276
- "content-type": headers["content-type"] ?? import_mime.default.getType(file5.name) ?? "application/octet-stream",
140276
+ "content-type": headers["content-type"] ?? import_mime2.default.getType(file5.name) ?? "application/octet-stream",
140277
140277
  "content-length": file5.size.toString()
140278
140278
  })),
140279
140279
  status: status3,
@@ -236363,16 +236363,16 @@ Defaulting to 2020, but this will stop working in the future.`)), options6.ecmaV
236363
236363
  };
236364
236364
  var TokContext = function(token, isExpr, preserveSpace, override, generator) {
236365
236365
  this.token = token, this.isExpr = !!isExpr, this.preserveSpace = !!preserveSpace, this.override = override, this.generator = !!generator;
236366
- }, types7 = { b_stat: new TokContext("{", false), b_expr: new TokContext("{", true), b_tmpl: new TokContext("${", false), p_stat: new TokContext("(", false), p_expr: new TokContext("(", true), q_tmpl: new TokContext("`", true, true, function(p10) {
236366
+ }, types9 = { b_stat: new TokContext("{", false), b_expr: new TokContext("{", true), b_tmpl: new TokContext("${", false), p_stat: new TokContext("(", false), p_expr: new TokContext("(", true), q_tmpl: new TokContext("`", true, true, function(p10) {
236367
236367
  return p10.tryReadTemplateToken();
236368
236368
  }), f_stat: new TokContext("function", false), f_expr: new TokContext("function", true), f_expr_gen: new TokContext("function", true, false, null, true), f_gen: new TokContext("function", false, false, null, true) }, pp$6 = Parser.prototype;
236369
236369
  pp$6.initialContext = function() {
236370
- return [types7.b_stat];
236370
+ return [types9.b_stat];
236371
236371
  }, pp$6.curContext = function() {
236372
236372
  return this.context[this.context.length - 1];
236373
236373
  }, pp$6.braceIsBlock = function(prevType) {
236374
236374
  var parent = this.curContext();
236375
- return parent === types7.f_expr || parent === types7.f_stat || (prevType !== types$1.colon || parent !== types7.b_stat && parent !== types7.b_expr ? prevType === types$1._return || prevType === types$1.name && this.exprAllowed ? lineBreak3.test(this.input.slice(this.lastTokEnd, this.start)) : prevType === types$1._else || prevType === types$1.semi || prevType === types$1.eof || prevType === types$1.parenR || prevType === types$1.arrow || (prevType === types$1.braceL ? parent === types7.b_stat : prevType !== types$1._var && prevType !== types$1._const && prevType !== types$1.name && !this.exprAllowed) : !parent.isExpr);
236375
+ return parent === types9.f_expr || parent === types9.f_stat || (prevType !== types$1.colon || parent !== types9.b_stat && parent !== types9.b_expr ? prevType === types$1._return || prevType === types$1.name && this.exprAllowed ? lineBreak3.test(this.input.slice(this.lastTokEnd, this.start)) : prevType === types$1._else || prevType === types$1.semi || prevType === types$1.eof || prevType === types$1.parenR || prevType === types$1.arrow || (prevType === types$1.braceL ? parent === types9.b_stat : prevType !== types$1._var && prevType !== types$1._const && prevType !== types$1.name && !this.exprAllowed) : !parent.isExpr);
236376
236376
  }, pp$6.inGeneratorContext = function() {
236377
236377
  for (var i12 = this.context.length - 1;i12 >= 1; i12--) {
236378
236378
  var context15 = this.context[i12];
@@ -236388,26 +236388,26 @@ Defaulting to 2020, but this will stop working in the future.`)), options6.ecmaV
236388
236388
  }, types$1.parenR.updateContext = types$1.braceR.updateContext = function() {
236389
236389
  if (this.context.length !== 1) {
236390
236390
  var out = this.context.pop();
236391
- out === types7.b_stat && this.curContext().token === "function" && (out = this.context.pop()), this.exprAllowed = !out.isExpr;
236391
+ out === types9.b_stat && this.curContext().token === "function" && (out = this.context.pop()), this.exprAllowed = !out.isExpr;
236392
236392
  } else
236393
236393
  this.exprAllowed = true;
236394
236394
  }, types$1.braceL.updateContext = function(prevType) {
236395
- this.context.push(this.braceIsBlock(prevType) ? types7.b_stat : types7.b_expr), this.exprAllowed = true;
236395
+ this.context.push(this.braceIsBlock(prevType) ? types9.b_stat : types9.b_expr), this.exprAllowed = true;
236396
236396
  }, types$1.dollarBraceL.updateContext = function() {
236397
- this.context.push(types7.b_tmpl), this.exprAllowed = true;
236397
+ this.context.push(types9.b_tmpl), this.exprAllowed = true;
236398
236398
  }, types$1.parenL.updateContext = function(prevType) {
236399
236399
  var statementParens = prevType === types$1._if || prevType === types$1._for || prevType === types$1._with || prevType === types$1._while;
236400
- this.context.push(statementParens ? types7.p_stat : types7.p_expr), this.exprAllowed = true;
236400
+ this.context.push(statementParens ? types9.p_stat : types9.p_expr), this.exprAllowed = true;
236401
236401
  }, types$1.incDec.updateContext = function() {}, types$1._function.updateContext = types$1._class.updateContext = function(prevType) {
236402
- !prevType.beforeExpr || prevType === types$1._else || prevType === types$1.semi && this.curContext() !== types7.p_stat || prevType === types$1._return && lineBreak3.test(this.input.slice(this.lastTokEnd, this.start)) || (prevType === types$1.colon || prevType === types$1.braceL) && this.curContext() === types7.b_stat ? this.context.push(types7.f_stat) : this.context.push(types7.f_expr), this.exprAllowed = false;
236402
+ !prevType.beforeExpr || prevType === types$1._else || prevType === types$1.semi && this.curContext() !== types9.p_stat || prevType === types$1._return && lineBreak3.test(this.input.slice(this.lastTokEnd, this.start)) || (prevType === types$1.colon || prevType === types$1.braceL) && this.curContext() === types9.b_stat ? this.context.push(types9.f_stat) : this.context.push(types9.f_expr), this.exprAllowed = false;
236403
236403
  }, types$1.colon.updateContext = function() {
236404
236404
  this.curContext().token === "function" && this.context.pop(), this.exprAllowed = true;
236405
236405
  }, types$1.backQuote.updateContext = function() {
236406
- this.curContext() === types7.q_tmpl ? this.context.pop() : this.context.push(types7.q_tmpl), this.exprAllowed = false;
236406
+ this.curContext() === types9.q_tmpl ? this.context.pop() : this.context.push(types9.q_tmpl), this.exprAllowed = false;
236407
236407
  }, types$1.star.updateContext = function(prevType) {
236408
236408
  if (prevType === types$1._function) {
236409
236409
  var index3 = this.context.length - 1;
236410
- this.context[index3] === types7.f_expr ? this.context[index3] = types7.f_expr_gen : this.context[index3] = types7.f_gen;
236410
+ this.context[index3] === types9.f_expr ? this.context[index3] = types9.f_expr_gen : this.context[index3] = types9.f_gen;
236411
236411
  }
236412
236412
  this.exprAllowed = true;
236413
236413
  }, types$1.name.updateContext = function(prevType) {
@@ -236570,7 +236570,7 @@ Defaulting to 2020, but this will stop working in the future.`)), options6.ecmaV
236570
236570
  case types$1.name:
236571
236571
  var startPos = this.start, startLoc = this.startLoc, containsEsc = this.containsEsc, id5 = this.parseIdent(false);
236572
236572
  if (this.options.ecmaVersion >= 8 && !containsEsc && id5.name === "async" && !this.canInsertSemicolon() && this.eat(types$1._function))
236573
- return this.overrideContext(types7.f_expr), this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit);
236573
+ return this.overrideContext(types9.f_expr), this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit);
236574
236574
  if (canBeArrow && !this.canInsertSemicolon()) {
236575
236575
  if (this.eat(types$1.arrow))
236576
236576
  return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id5], false, forInit);
@@ -236594,7 +236594,7 @@ Defaulting to 2020, but this will stop working in the future.`)), options6.ecmaV
236594
236594
  case types$1.bracketL:
236595
236595
  return node3 = this.startNode(), this.next(), node3.elements = this.parseExprList(types$1.bracketR, true, true, refDestructuringErrors), this.finishNode(node3, "ArrayExpression");
236596
236596
  case types$1.braceL:
236597
- return this.overrideContext(types7.b_expr), this.parseObj(false, refDestructuringErrors);
236597
+ return this.overrideContext(types9.b_expr), this.parseObj(false, refDestructuringErrors);
236598
236598
  case types$1._function:
236599
236599
  return node3 = this.startNode(), this.next(), this.parseFunction(node3, 0);
236600
236600
  case types$1._class:
@@ -237821,7 +237821,7 @@ Defaulting to 2020, but this will stop working in the future.`)), options6.ecmaV
237821
237821
  var word = this.readWord1(), type3 = types$1.name;
237822
237822
  return this.keywords.test(word) && (type3 = keywords[word]), this.finishToken(type3, word);
237823
237823
  };
237824
- Parser.acorn = { Parser, version: "8.14.0", defaultOptions: defaultOptions3, Position, SourceLocation, getLineInfo, Node: Node3, TokenType, tokTypes: types$1, keywordTypes: keywords, TokContext, tokContexts: types7, isIdentifierChar, isIdentifierStart, Token, isNewLine, lineBreak: lineBreak3, lineBreakG, nonASCIIwhitespace };
237824
+ Parser.acorn = { Parser, version: "8.14.0", defaultOptions: defaultOptions3, Position, SourceLocation, getLineInfo, Node: Node3, TokenType, tokTypes: types$1, keywordTypes: keywords, TokContext, tokContexts: types9, isIdentifierChar, isIdentifierStart, Token, isNewLine, lineBreak: lineBreak3, lineBreakG, nonASCIIwhitespace };
237825
237825
  const external_node_module_namespaceObject = __require("node:module"), external_node_fs_namespaceObject = __require("node:fs");
237826
237826
  String.fromCharCode;
237827
237827
  const TRAILING_SLASH_RE = /\/$|\/\?|\/#/, JOIN_LEADING_SLASH_RE = /^\.?\//;
@@ -237976,14 +237976,14 @@ Defaulting to 2020, but this will stop working in the future.`)), options6.ecmaV
237976
237976
  message += `"${name17}" ${type3} `;
237977
237977
  }
237978
237978
  message += "must be ";
237979
- const types8 = [], instances = [], other = [];
237979
+ const types10 = [], instances = [], other = [];
237980
237980
  for (const value10 of expected)
237981
- external_node_assert_namespaceObject(typeof value10 == "string", "All expected entries have to be of type string"), kTypes.has(value10) ? types8.push(value10.toLowerCase()) : classRegExp.exec(value10) === null ? (external_node_assert_namespaceObject(value10 !== "object", 'The value "object" should be written as "Object"'), other.push(value10)) : instances.push(value10);
237981
+ external_node_assert_namespaceObject(typeof value10 == "string", "All expected entries have to be of type string"), kTypes.has(value10) ? types10.push(value10.toLowerCase()) : classRegExp.exec(value10) === null ? (external_node_assert_namespaceObject(value10 !== "object", 'The value "object" should be written as "Object"'), other.push(value10)) : instances.push(value10);
237982
237982
  if (instances.length > 0) {
237983
- const pos = types8.indexOf("object");
237984
- pos !== -1 && (types8.slice(pos, 1), instances.push("Object"));
237983
+ const pos = types10.indexOf("object");
237984
+ pos !== -1 && (types10.slice(pos, 1), instances.push("Object"));
237985
237985
  }
237986
- return types8.length > 0 && (message += `${types8.length > 1 ? "one of type" : "of type"} ${formatList(types8, "or")}`, (instances.length > 0 || other.length > 0) && (message += " or ")), instances.length > 0 && (message += `an instance of ${formatList(instances, "or")}`, other.length > 0 && (message += " or ")), other.length > 0 && (other.length > 1 ? message += `one of ${formatList(other, "or")}` : (other[0].toLowerCase() !== other[0] && (message += "an "), message += `${other[0]}`)), message += `. Received ${function(value10) {
237986
+ return types10.length > 0 && (message += `${types10.length > 1 ? "one of type" : "of type"} ${formatList(types10, "or")}`, (instances.length > 0 || other.length > 0) && (message += " or ")), instances.length > 0 && (message += `an instance of ${formatList(instances, "or")}`, other.length > 0 && (message += " or ")), other.length > 0 && (other.length > 1 ? message += `one of ${formatList(other, "or")}` : (other[0].toLowerCase() !== other[0] && (message += "an "), message += `${other[0]}`)), message += `. Received ${function(value10) {
237987
237987
  if (value10 == null)
237988
237988
  return String(value10);
237989
237989
  if (typeof value10 == "function" && value10.name)
@@ -239749,15 +239749,15 @@ Did you specify these with the most recent transformation maps first?`);
239749
239749
  }
239750
239750
  }
239751
239751
  module2.exports = function(_ref) {
239752
- var types7 = _ref.types, decoratorExpressionForConstructor = function(decorator2, param) {
239752
+ var types9 = _ref.types, decoratorExpressionForConstructor = function(decorator2, param) {
239753
239753
  return function(className) {
239754
- var resultantDecorator = types7.callExpression(decorator2.expression, [types7.Identifier(className), types7.Identifier("undefined"), types7.NumericLiteral(param.key)]), resultantDecoratorWithFallback = types7.logicalExpression("||", resultantDecorator, types7.Identifier(className)), assignment = types7.assignmentExpression("=", types7.Identifier(className), resultantDecoratorWithFallback);
239755
- return types7.expressionStatement(assignment);
239754
+ var resultantDecorator = types9.callExpression(decorator2.expression, [types9.Identifier(className), types9.Identifier("undefined"), types9.NumericLiteral(param.key)]), resultantDecoratorWithFallback = types9.logicalExpression("||", resultantDecorator, types9.Identifier(className)), assignment = types9.assignmentExpression("=", types9.Identifier(className), resultantDecoratorWithFallback);
239755
+ return types9.expressionStatement(assignment);
239756
239756
  };
239757
239757
  }, decoratorExpressionForMethod = function(decorator2, param) {
239758
239758
  return function(className, functionName) {
239759
- var resultantDecorator = types7.callExpression(decorator2.expression, [types7.Identifier("".concat(className, ".prototype")), types7.StringLiteral(functionName), types7.NumericLiteral(param.key)]);
239760
- return types7.expressionStatement(resultantDecorator);
239759
+ var resultantDecorator = types9.callExpression(decorator2.expression, [types9.Identifier("".concat(className, ".prototype")), types9.StringLiteral(functionName), types9.NumericLiteral(param.key)]);
239760
+ return types9.expressionStatement(resultantDecorator);
239761
239761
  };
239762
239762
  };
239763
239763
  return { visitor: { Program: function(path19, state2) {
@@ -239874,13 +239874,13 @@ Did you specify these with the most recent transformation maps first?`);
239874
239874
  var replacement = function(path20) {
239875
239875
  switch (path20.node.type) {
239876
239876
  case "ObjectPattern":
239877
- return types7.ObjectPattern(path20.node.properties);
239877
+ return types9.ObjectPattern(path20.node.properties);
239878
239878
  case "AssignmentPattern":
239879
- return types7.AssignmentPattern(path20.node.left, path20.node.right);
239879
+ return types9.AssignmentPattern(path20.node.left, path20.node.right);
239880
239880
  case "TSParameterProperty":
239881
- return types7.Identifier(path20.node.parameter.name);
239881
+ return types9.Identifier(path20.node.parameter.name);
239882
239882
  default:
239883
- return types7.Identifier(path20.node.name);
239883
+ return types9.Identifier(path20.node.name);
239884
239884
  }
239885
239885
  }(param);
239886
239886
  param.replaceWith(replacement);
@@ -244025,14 +244025,14 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
244025
244025
  message += `"${name17}" ${type3} `;
244026
244026
  }
244027
244027
  message += "must be ";
244028
- const types7 = [], instances = [], other = [];
244028
+ const types9 = [], instances = [], other = [];
244029
244029
  for (const value10 of expected)
244030
- _assert()(typeof value10 == "string", "All expected entries have to be of type string"), kTypes.has(value10) ? types7.push(value10.toLowerCase()) : classRegExp.exec(value10) === null ? (_assert()(value10 !== "object", 'The value "object" should be written as "Object"'), other.push(value10)) : instances.push(value10);
244030
+ _assert()(typeof value10 == "string", "All expected entries have to be of type string"), kTypes.has(value10) ? types9.push(value10.toLowerCase()) : classRegExp.exec(value10) === null ? (_assert()(value10 !== "object", 'The value "object" should be written as "Object"'), other.push(value10)) : instances.push(value10);
244031
244031
  if (instances.length > 0) {
244032
- const pos = types7.indexOf("object");
244033
- pos !== -1 && (types7.slice(pos, 1), instances.push("Object"));
244032
+ const pos = types9.indexOf("object");
244033
+ pos !== -1 && (types9.slice(pos, 1), instances.push("Object"));
244034
244034
  }
244035
- return types7.length > 0 && (message += `${types7.length > 1 ? "one of type" : "of type"} ${formatList(types7, "or")}`, (instances.length > 0 || other.length > 0) && (message += " or ")), instances.length > 0 && (message += `an instance of ${formatList(instances, "or")}`, other.length > 0 && (message += " or ")), other.length > 0 && (other.length > 1 ? message += `one of ${formatList(other, "or")}` : (other[0].toLowerCase() !== other[0] && (message += "an "), message += `${other[0]}`)), message += `. Received ${function(value10) {
244035
+ return types9.length > 0 && (message += `${types9.length > 1 ? "one of type" : "of type"} ${formatList(types9, "or")}`, (instances.length > 0 || other.length > 0) && (message += " or ")), instances.length > 0 && (message += `an instance of ${formatList(instances, "or")}`, other.length > 0 && (message += " or ")), other.length > 0 && (other.length > 1 ? message += `one of ${formatList(other, "or")}` : (other[0].toLowerCase() !== other[0] && (message += "an "), message += `${other[0]}`)), message += `. Received ${function(value10) {
244036
244036
  if (value10 == null)
244037
244037
  return String(value10);
244038
244038
  if (typeof value10 == "function" && value10.name)
@@ -249768,8 +249768,8 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
249768
249768
  this.token = undefined, this.preserveSpace = undefined, this.token = token, this.preserveSpace = !!preserveSpace;
249769
249769
  }
249770
249770
  }
249771
- const types7 = { brace: new TokContext("{"), j_oTag: new TokContext("<tag"), j_cTag: new TokContext("</tag"), j_expr: new TokContext("<tag>...</tag>", true) };
249772
- types7.template = new TokContext("`", true);
249771
+ const types9 = { brace: new TokContext("{"), j_oTag: new TokContext("<tag"), j_cTag: new TokContext("</tag"), j_expr: new TokContext("<tag>...</tag>", true) };
249772
+ types9.template = new TokContext("`", true);
249773
249773
 
249774
249774
  class ExportedTokenType {
249775
249775
  constructor(label, conf = {}) {
@@ -249829,11 +249829,11 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
249829
249829
  tokenTypes[8].updateContext = (context15) => {
249830
249830
  context15.pop();
249831
249831
  }, tokenTypes[5].updateContext = tokenTypes[7].updateContext = tokenTypes[23].updateContext = (context15) => {
249832
- context15.push(types7.brace);
249832
+ context15.push(types9.brace);
249833
249833
  }, tokenTypes[22].updateContext = (context15) => {
249834
- context15[context15.length - 1] === types7.template ? context15.pop() : context15.push(types7.template);
249834
+ context15[context15.length - 1] === types9.template ? context15.pop() : context15.push(types9.template);
249835
249835
  }, tokenTypes[143].updateContext = (context15) => {
249836
- context15.push(types7.j_expr, types7.j_oTag);
249836
+ context15.push(types9.j_expr, types9.j_oTag);
249837
249837
  };
249838
249838
  let nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
249839
249839
  const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]"), nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
@@ -250195,7 +250195,7 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
250195
250195
 
250196
250196
  class State4 {
250197
250197
  constructor() {
250198
- this.flags = 1024, this.startIndex = undefined, this.curLine = undefined, this.lineStart = undefined, this.startLoc = undefined, this.endLoc = undefined, this.errors = [], this.potentialArrowAt = -1, this.noArrowAt = [], this.noArrowParamsConversionAt = [], this.topicContext = { maxNumOfResolvableTopics: 0, maxTopicIndex: null }, this.labels = [], this.commentsLen = 0, this.commentStack = [], this.pos = 0, this.type = 140, this.value = null, this.start = 0, this.end = 0, this.lastTokEndLoc = null, this.lastTokStartLoc = null, this.context = [types7.brace], this.firstInvalidTemplateEscapePos = null, this.strictErrors = new Map, this.tokensLength = 0;
250198
+ this.flags = 1024, this.startIndex = undefined, this.curLine = undefined, this.lineStart = undefined, this.startLoc = undefined, this.endLoc = undefined, this.errors = [], this.potentialArrowAt = -1, this.noArrowAt = [], this.noArrowParamsConversionAt = [], this.topicContext = { maxNumOfResolvableTopics: 0, maxTopicIndex: null }, this.labels = [], this.commentsLen = 0, this.commentStack = [], this.pos = 0, this.type = 140, this.value = null, this.start = 0, this.end = 0, this.lastTokEndLoc = null, this.lastTokStartLoc = null, this.context = [types9.brace], this.firstInvalidTemplateEscapePos = null, this.strictErrors = new Map, this.tokensLength = 0;
250199
250199
  }
250200
250200
  get strict() {
250201
250201
  return (1 & this.flags) > 0;
@@ -251966,7 +251966,7 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
251966
251966
  let node3;
251967
251967
  switch (this.state.type) {
251968
251968
  case 5:
251969
- return node3 = this.startNode(), this.setContext(types7.brace), this.next(), node3 = this.jsxParseExpressionContainer(node3, types7.j_oTag), node3.expression.type === "JSXEmptyExpression" && this.raise(JsxErrors.AttributeIsEmpty, node3), node3;
251969
+ return node3 = this.startNode(), this.setContext(types9.brace), this.next(), node3 = this.jsxParseExpressionContainer(node3, types9.j_oTag), node3.expression.type === "JSXEmptyExpression" && this.raise(JsxErrors.AttributeIsEmpty, node3), node3;
251970
251970
  case 143:
251971
251971
  case 134:
251972
251972
  return this.parseExprAtom();
@@ -251979,7 +251979,7 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
251979
251979
  return this.finishNodeAt(node3, "JSXEmptyExpression", this.state.startLoc);
251980
251980
  }
251981
251981
  jsxParseSpreadChild(node3) {
251982
- return this.next(), node3.expression = this.parseExpression(), this.setContext(types7.j_expr), this.state.canStartJSXElement = true, this.expect(8), this.finishNode(node3, "JSXSpreadChild");
251982
+ return this.next(), node3.expression = this.parseExpression(), this.setContext(types9.j_expr), this.state.canStartJSXElement = true, this.expect(8), this.finishNode(node3, "JSXSpreadChild");
251983
251983
  }
251984
251984
  jsxParseExpressionContainer(node3, previousContext) {
251985
251985
  if (this.match(8))
@@ -251992,7 +251992,7 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
251992
251992
  }
251993
251993
  jsxParseAttribute() {
251994
251994
  const node3 = this.startNode();
251995
- return this.match(5) ? (this.setContext(types7.brace), this.next(), this.expect(21), node3.argument = this.parseMaybeAssignAllowIn(), this.setContext(types7.j_oTag), this.state.canStartJSXElement = true, this.expect(8), this.finishNode(node3, "JSXSpreadAttribute")) : (node3.name = this.jsxParseNamespacedName(), node3.value = this.eat(29) ? this.jsxParseAttributeValue() : null, this.finishNode(node3, "JSXAttribute"));
251995
+ return this.match(5) ? (this.setContext(types9.brace), this.next(), this.expect(21), node3.argument = this.parseMaybeAssignAllowIn(), this.setContext(types9.j_oTag), this.state.canStartJSXElement = true, this.expect(8), this.finishNode(node3, "JSXSpreadAttribute")) : (node3.name = this.jsxParseNamespacedName(), node3.value = this.eat(29) ? this.jsxParseAttributeValue() : null, this.finishNode(node3, "JSXAttribute"));
251996
251996
  }
251997
251997
  jsxParseOpeningElementAt(startLoc) {
251998
251998
  const node3 = this.startNodeAt(startLoc);
@@ -252027,7 +252027,7 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
252027
252027
  break;
252028
252028
  case 5: {
252029
252029
  const node4 = this.startNode();
252030
- this.setContext(types7.brace), this.next(), this.match(21) ? children3.push(this.jsxParseSpreadChild(node4)) : children3.push(this.jsxParseExpressionContainer(node4, types7.j_expr));
252030
+ this.setContext(types9.brace), this.next(), this.match(21) ? children3.push(this.jsxParseSpreadChild(node4)) : children3.push(this.jsxParseExpressionContainer(node4, types9.j_expr));
252031
252031
  break;
252032
252032
  }
252033
252033
  default:
@@ -252055,13 +252055,13 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
252055
252055
  }
252056
252056
  getTokenFromCode(code4) {
252057
252057
  const context15 = this.curContext();
252058
- if (context15 !== types7.j_expr) {
252059
- if (context15 === types7.j_oTag || context15 === types7.j_cTag) {
252058
+ if (context15 !== types9.j_expr) {
252059
+ if (context15 === types9.j_oTag || context15 === types9.j_cTag) {
252060
252060
  if (isIdentifierStart(code4))
252061
252061
  return void this.jsxReadWord();
252062
252062
  if (code4 === 62)
252063
252063
  return ++this.state.pos, void this.finishToken(144);
252064
- if ((code4 === 34 || code4 === 39) && context15 === types7.j_oTag)
252064
+ if ((code4 === 34 || code4 === 39) && context15 === types9.j_oTag)
252065
252065
  return void this.jsxReadString(code4);
252066
252066
  }
252067
252067
  if (code4 === 60 && this.state.canStartJSXElement && this.input.charCodeAt(this.state.pos + 1) !== 33)
@@ -252073,12 +252073,12 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
252073
252073
  updateContext(prevType) {
252074
252074
  const { context: context15, type: type3 } = this.state;
252075
252075
  if (type3 === 56 && prevType === 143)
252076
- context15.splice(-2, 2, types7.j_cTag), this.state.canStartJSXElement = false;
252076
+ context15.splice(-2, 2, types9.j_cTag), this.state.canStartJSXElement = false;
252077
252077
  else if (type3 === 143)
252078
- context15.push(types7.j_oTag);
252078
+ context15.push(types9.j_oTag);
252079
252079
  else if (type3 === 144) {
252080
252080
  const out = context15[context15.length - 1];
252081
- out === types7.j_oTag && prevType === 56 || out === types7.j_cTag ? (context15.pop(), this.state.canStartJSXElement = context15[context15.length - 1] === types7.j_expr) : (this.setContext(types7.j_expr), this.state.canStartJSXElement = true);
252081
+ out === types9.j_oTag && prevType === 56 || out === types9.j_cTag ? (context15.pop(), this.state.canStartJSXElement = context15[context15.length - 1] === types9.j_expr) : (this.setContext(types9.j_expr), this.state.canStartJSXElement = true);
252082
252082
  } else
252083
252083
  this.state.canStartJSXElement = tokenBeforeExprs[type3];
252084
252084
  }
@@ -252853,7 +252853,7 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
252853
252853
  if (state2 = this.state.clone(), jsx = this.tryParse(() => super.parseMaybeAssign(refExpressionErrors, afterLeftParse), state2), !jsx.error)
252854
252854
  return jsx.node;
252855
252855
  const { context: context15 } = this.state, currentContext3 = context15[context15.length - 1];
252856
- currentContext3 !== types7.j_oTag && currentContext3 !== types7.j_expr || context15.pop();
252856
+ currentContext3 !== types9.j_oTag && currentContext3 !== types9.j_expr || context15.pop();
252857
252857
  }
252858
252858
  if ((_jsx = jsx) != null && _jsx.error || this.match(47)) {
252859
252859
  var _jsx2, _jsx3;
@@ -253562,11 +253562,11 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
253562
253562
  return (token = this.state.type) >= 121 && token <= 123 && !this.state.containsEsc ? this.tsParseTypeOperator() : this.isContextual(115) ? this.tsParseInferType() : this.tsInAllowConditionalTypesContext(() => this.tsParseArrayTypeOrHigher());
253563
253563
  }
253564
253564
  tsParseUnionOrIntersectionType(kind, parseConstituentType, operator) {
253565
- const node3 = this.startNode(), hasLeadingOperator = this.eat(operator), types8 = [];
253565
+ const node3 = this.startNode(), hasLeadingOperator = this.eat(operator), types10 = [];
253566
253566
  do {
253567
- types8.push(parseConstituentType());
253567
+ types10.push(parseConstituentType());
253568
253568
  } while (this.eat(operator));
253569
- return types8.length !== 1 || hasLeadingOperator ? (node3.types = types8, this.finishNode(node3, kind)) : types8[0];
253569
+ return types10.length !== 1 || hasLeadingOperator ? (node3.types = types10, this.finishNode(node3, kind)) : types10[0];
253570
253570
  }
253571
253571
  tsParseIntersectionTypeOrHigher() {
253572
253572
  return this.tsParseUnionOrIntersectionType("TSIntersectionType", this.tsParseTypeOperatorOrHigher.bind(this), 45);
@@ -253884,7 +253884,7 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
253884
253884
  }
253885
253885
  tsParseTypeArguments() {
253886
253886
  const node3 = this.startNode();
253887
- return node3.params = this.tsInType(() => this.tsInNoContext(() => (this.expect(47), this.tsParseDelimitedList("TypeParametersOrArguments", this.tsParseType.bind(this))))), node3.params.length === 0 ? this.raise(TSErrors.EmptyTypeArguments, node3) : this.state.inType || this.curContext() !== types7.brace || this.reScan_lt_gt(), this.expect(48), this.finishNode(node3, "TSTypeParameterInstantiation");
253887
+ return node3.params = this.tsInType(() => this.tsInNoContext(() => (this.expect(47), this.tsParseDelimitedList("TypeParametersOrArguments", this.tsParseType.bind(this))))), node3.params.length === 0 ? this.raise(TSErrors.EmptyTypeArguments, node3) : this.state.inType || this.curContext() !== types9.brace || this.reScan_lt_gt(), this.expect(48), this.finishNode(node3, "TSTypeParameterInstantiation");
253888
253888
  }
253889
253889
  tsIsDeclarationStart() {
253890
253890
  return (token = this.state.type) >= 124 && token <= 130;
@@ -254202,7 +254202,7 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
254202
254202
  if (state2 = this.state.clone(), jsx = this.tryParse(() => super.parseMaybeAssign(refExpressionErrors, afterLeftParse), state2), !jsx.error)
254203
254203
  return jsx.node;
254204
254204
  const { context: context15 } = this.state, currentContext3 = context15[context15.length - 1];
254205
- currentContext3 !== types7.j_oTag && currentContext3 !== types7.j_expr || context15.pop();
254205
+ currentContext3 !== types9.j_oTag && currentContext3 !== types9.j_expr || context15.pop();
254206
254206
  }
254207
254207
  if (!((_jsx = jsx) != null && _jsx.error || this.match(47)))
254208
254208
  return super.parseMaybeAssign(refExpressionErrors, afterLeftParse);
@@ -259389,21 +259389,21 @@ ${str}
259389
259389
  const binding = this.scope.getBinding(node3.name);
259390
259390
  if (binding)
259391
259391
  return binding.identifier.typeAnnotation ? binding.identifier.typeAnnotation : function(binding2, path19, name17) {
259392
- const types7 = [], functionConstantViolations = [];
259392
+ const types9 = [], functionConstantViolations = [];
259393
259393
  let constantViolations = getConstantViolationsBefore(binding2, path19, functionConstantViolations);
259394
259394
  const testType = getConditionalAnnotation(binding2, path19, name17);
259395
259395
  if (testType) {
259396
259396
  const testConstantViolations = getConstantViolationsBefore(binding2, testType.ifStatement);
259397
- constantViolations = constantViolations.filter((path20) => !testConstantViolations.includes(path20)), types7.push(testType.typeAnnotation);
259397
+ constantViolations = constantViolations.filter((path20) => !testConstantViolations.includes(path20)), types9.push(testType.typeAnnotation);
259398
259398
  }
259399
259399
  if (constantViolations.length) {
259400
259400
  constantViolations.push(...functionConstantViolations);
259401
259401
  for (const violation of constantViolations)
259402
- types7.push(violation.getTypeAnnotation());
259402
+ types9.push(violation.getTypeAnnotation());
259403
259403
  }
259404
- if (!types7.length)
259404
+ if (!types9.length)
259405
259405
  return;
259406
- return (0, _util.createUnionType)(types7);
259406
+ return (0, _util.createUnionType)(types9);
259407
259407
  }(binding, this, node3.name);
259408
259408
  if (node3.name === "undefined")
259409
259409
  return voidTypeAnnotation();
@@ -259452,17 +259452,17 @@ ${str}
259452
259452
  }(binding, path19, name17);
259453
259453
  if (!ifStatement2)
259454
259454
  return;
259455
- const paths = [ifStatement2.get("test")], types7 = [];
259455
+ const paths = [ifStatement2.get("test")], types9 = [];
259456
259456
  for (let i10 = 0;i10 < paths.length; i10++) {
259457
259457
  const path20 = paths[i10];
259458
259458
  if (path20.isLogicalExpression())
259459
259459
  path20.node.operator === "&&" && (paths.push(path20.get("left")), paths.push(path20.get("right")));
259460
259460
  else if (path20.isBinaryExpression()) {
259461
259461
  const type3 = inferAnnotationFromBinaryExpression(name17, path20);
259462
- type3 && types7.push(type3);
259462
+ type3 && types9.push(type3);
259463
259463
  }
259464
259464
  }
259465
- return types7.length ? { typeAnnotation: (0, _util.createUnionType)(types7), ifStatement: ifStatement2 } : getConditionalAnnotation(binding, ifStatement2, name17);
259465
+ return types9.length ? { typeAnnotation: (0, _util.createUnionType)(types9), ifStatement: ifStatement2 } : getConditionalAnnotation(binding, ifStatement2, name17);
259466
259466
  }
259467
259467
  }, "./node_modules/.pnpm/@babel+traverse@7.26.4/node_modules/@babel/traverse/lib/path/inference/inferers.js": (__unused_webpack_module, exports2, __webpack_require__3) => {
259468
259468
  Object.defineProperty(exports2, "__esModule", { value: true }), exports2.ArrayExpression = ArrayExpression, exports2.AssignmentExpression = function() {
@@ -259568,11 +259568,11 @@ ${str}
259568
259568
  }
259569
259569
  }
259570
259570
  }, "./node_modules/.pnpm/@babel+traverse@7.26.4/node_modules/@babel/traverse/lib/path/inference/util.js": (__unused_webpack_module, exports2, __webpack_require__3) => {
259571
- Object.defineProperty(exports2, "__esModule", { value: true }), exports2.createUnionType = function(types7) {
259572
- if (types7.every((v11) => isFlowType(v11)))
259573
- return createFlowUnionType ? createFlowUnionType(types7) : createUnionTypeAnnotation(types7);
259574
- if (types7.every((v11) => isTSType(v11)) && createTSUnionType)
259575
- return createTSUnionType(types7);
259571
+ Object.defineProperty(exports2, "__esModule", { value: true }), exports2.createUnionType = function(types9) {
259572
+ if (types9.every((v11) => isFlowType(v11)))
259573
+ return createFlowUnionType ? createFlowUnionType(types9) : createUnionTypeAnnotation(types9);
259574
+ if (types9.every((v11) => isTSType(v11)) && createTSUnionType)
259575
+ return createTSUnionType(types9);
259576
259576
  };
259577
259577
  var _t2 = __webpack_require__3("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/index.js");
259578
259578
  const { createFlowUnionType, createTSUnionType, createUnionTypeAnnotation, isFlowType, isTSType } = _t2;
@@ -261079,9 +261079,9 @@ ${str}
261079
261079
  for (const type3 of Object.keys(fns))
261080
261080
  fns[type3] = wrapCheck(nodeType, fns[type3]);
261081
261081
  delete visitor[nodeType];
261082
- const types7 = virtualTypes[nodeType];
261083
- if (types7 !== null)
261084
- for (const type3 of types7)
261082
+ const types9 = virtualTypes[nodeType];
261083
+ if (types9 !== null)
261084
+ for (const type3 of types9)
261085
261085
  visitor[type3] ? mergePair(visitor[type3], fns) : visitor[type3] = fns;
261086
261086
  else
261087
261087
  mergePair(visitor, fns);
@@ -261813,8 +261813,8 @@ ${str}
261813
261813
  throw new Error(`Expected type "${type3}" with option ${JSON.stringify(opts)}, but instead got "${node3.type}".`);
261814
261814
  }
261815
261815
  }, "./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js": (__unused_webpack_module, exports2, __webpack_require__3) => {
261816
- Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(types7) {
261817
- const flattened2 = (0, _removeTypeDuplicates.default)(types7);
261816
+ Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(types9) {
261817
+ const flattened2 = (0, _removeTypeDuplicates.default)(types9);
261818
261818
  return flattened2.length === 1 ? flattened2[0] : (0, _index.unionTypeAnnotation)(flattened2);
261819
261819
  };
261820
261820
  var _index = __webpack_require__3("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/builders/generated/index.js"), _removeTypeDuplicates = __webpack_require__3("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js");
@@ -262107,9 +262107,9 @@ ${str}
262107
262107
  }, exports2.interpreterDirective = function(value10) {
262108
262108
  const node3 = { type: "InterpreterDirective", value: value10 }, defs2 = NODE_FIELDS.InterpreterDirective;
262109
262109
  return validate10(defs2.value, node3, "value", value10), node3;
262110
- }, exports2.intersectionTypeAnnotation = function(types7) {
262111
- const node3 = { type: "IntersectionTypeAnnotation", types: types7 }, defs2 = NODE_FIELDS.IntersectionTypeAnnotation;
262112
- return validate10(defs2.types, node3, "types", types7, 1), node3;
262110
+ }, exports2.intersectionTypeAnnotation = function(types9) {
262111
+ const node3 = { type: "IntersectionTypeAnnotation", types: types9 }, defs2 = NODE_FIELDS.IntersectionTypeAnnotation;
262112
+ return validate10(defs2.types, node3, "types", types9, 1), node3;
262113
262113
  }, exports2.jSXAttribute = exports2.jsxAttribute = function(name17, value10 = null) {
262114
262114
  const node3 = { type: "JSXAttribute", name: name17, value: value10 }, defs2 = NODE_FIELDS.JSXAttribute;
262115
262115
  return validate10(defs2.name, node3, "name", name17, 1), validate10(defs2.value, node3, "value", value10, 1), node3;
@@ -262382,9 +262382,9 @@ ${str}
262382
262382
  }, exports2.tSInterfaceDeclaration = exports2.tsInterfaceDeclaration = function(id5, typeParameters = null, _extends = null, body) {
262383
262383
  const node3 = { type: "TSInterfaceDeclaration", id: id5, typeParameters, extends: _extends, body }, defs2 = NODE_FIELDS.TSInterfaceDeclaration;
262384
262384
  return validate10(defs2.id, node3, "id", id5, 1), validate10(defs2.typeParameters, node3, "typeParameters", typeParameters, 1), validate10(defs2.extends, node3, "extends", _extends, 1), validate10(defs2.body, node3, "body", body, 1), node3;
262385
- }, exports2.tSIntersectionType = exports2.tsIntersectionType = function(types7) {
262386
- const node3 = { type: "TSIntersectionType", types: types7 }, defs2 = NODE_FIELDS.TSIntersectionType;
262387
- return validate10(defs2.types, node3, "types", types7, 1), node3;
262385
+ }, exports2.tSIntersectionType = exports2.tsIntersectionType = function(types9) {
262386
+ const node3 = { type: "TSIntersectionType", types: types9 }, defs2 = NODE_FIELDS.TSIntersectionType;
262387
+ return validate10(defs2.types, node3, "types", types9, 1), node3;
262388
262388
  }, exports2.tSIntrinsicKeyword = exports2.tsIntrinsicKeyword = function() {
262389
262389
  return { type: "TSIntrinsicKeyword" };
262390
262390
  }, exports2.tSLiteralType = exports2.tsLiteralType = function(literal3) {
@@ -262484,9 +262484,9 @@ ${str}
262484
262484
  return validate10(defs2.typeName, node3, "typeName", typeName, 1), validate10(defs2.typeParameters, node3, "typeParameters", typeParameters, 1), node3;
262485
262485
  }, exports2.tSUndefinedKeyword = exports2.tsUndefinedKeyword = function() {
262486
262486
  return { type: "TSUndefinedKeyword" };
262487
- }, exports2.tSUnionType = exports2.tsUnionType = function(types7) {
262488
- const node3 = { type: "TSUnionType", types: types7 }, defs2 = NODE_FIELDS.TSUnionType;
262489
- return validate10(defs2.types, node3, "types", types7, 1), node3;
262487
+ }, exports2.tSUnionType = exports2.tsUnionType = function(types9) {
262488
+ const node3 = { type: "TSUnionType", types: types9 }, defs2 = NODE_FIELDS.TSUnionType;
262489
+ return validate10(defs2.types, node3, "types", types9, 1), node3;
262490
262490
  }, exports2.tSUnknownKeyword = exports2.tsUnknownKeyword = function() {
262491
262491
  return { type: "TSUnknownKeyword" };
262492
262492
  }, exports2.tSVoidKeyword = exports2.tsVoidKeyword = function() {
@@ -262494,9 +262494,9 @@ ${str}
262494
262494
  }, exports2.tupleExpression = function(elements = []) {
262495
262495
  const node3 = { type: "TupleExpression", elements }, defs2 = NODE_FIELDS.TupleExpression;
262496
262496
  return validate10(defs2.elements, node3, "elements", elements, 1), node3;
262497
- }, exports2.tupleTypeAnnotation = function(types7) {
262498
- const node3 = { type: "TupleTypeAnnotation", types: types7 }, defs2 = NODE_FIELDS.TupleTypeAnnotation;
262499
- return validate10(defs2.types, node3, "types", types7, 1), node3;
262497
+ }, exports2.tupleTypeAnnotation = function(types9) {
262498
+ const node3 = { type: "TupleTypeAnnotation", types: types9 }, defs2 = NODE_FIELDS.TupleTypeAnnotation;
262499
+ return validate10(defs2.types, node3, "types", types9, 1), node3;
262500
262500
  }, exports2.typeAlias = function(id5, typeParameters = null, right3) {
262501
262501
  const node3 = { type: "TypeAlias", id: id5, typeParameters, right: right3 }, defs2 = NODE_FIELDS.TypeAlias;
262502
262502
  return validate10(defs2.id, node3, "id", id5, 1), validate10(defs2.typeParameters, node3, "typeParameters", typeParameters, 1), validate10(defs2.right, node3, "right", right3, 1), node3;
@@ -262521,9 +262521,9 @@ ${str}
262521
262521
  }, exports2.unaryExpression = function(operator, argument, prefix3 = true) {
262522
262522
  const node3 = { type: "UnaryExpression", operator, argument, prefix: prefix3 }, defs2 = NODE_FIELDS.UnaryExpression;
262523
262523
  return validate10(defs2.operator, node3, "operator", operator), validate10(defs2.argument, node3, "argument", argument, 1), validate10(defs2.prefix, node3, "prefix", prefix3), node3;
262524
- }, exports2.unionTypeAnnotation = function(types7) {
262525
- const node3 = { type: "UnionTypeAnnotation", types: types7 }, defs2 = NODE_FIELDS.UnionTypeAnnotation;
262526
- return validate10(defs2.types, node3, "types", types7, 1), node3;
262524
+ }, exports2.unionTypeAnnotation = function(types9) {
262525
+ const node3 = { type: "UnionTypeAnnotation", types: types9 }, defs2 = NODE_FIELDS.UnionTypeAnnotation;
262526
+ return validate10(defs2.types, node3, "types", types9, 1), node3;
262527
262527
  }, exports2.updateExpression = function(operator, argument, prefix3 = false) {
262528
262528
  const node3 = { type: "UpdateExpression", operator, argument, prefix: prefix3 }, defs2 = NODE_FIELDS.UpdateExpression;
262529
262529
  return validate10(defs2.operator, node3, "operator", operator), validate10(defs2.argument, node3, "argument", argument, 1), validate10(defs2.prefix, node3, "prefix", prefix3), node3;
@@ -263097,7 +263097,7 @@ ${str}
263097
263097
  var _index = __webpack_require__3("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/generated/index.js"), _cleanJSXElementLiteralChild = __webpack_require__3("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js");
263098
263098
  }, "./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js": (__unused_webpack_module, exports2, __webpack_require__3) => {
263099
263099
  Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(typeAnnotations) {
263100
- const types7 = typeAnnotations.map((type3) => (0, _index2.isTSTypeAnnotation)(type3) ? type3.typeAnnotation : type3), flattened2 = (0, _removeTypeDuplicates.default)(types7);
263100
+ const types9 = typeAnnotations.map((type3) => (0, _index2.isTSTypeAnnotation)(type3) ? type3.typeAnnotation : type3), flattened2 = (0, _removeTypeDuplicates.default)(types9);
263101
263101
  return flattened2.length === 1 ? flattened2[0] : (0, _index.tsUnionType)(flattened2);
263102
263102
  };
263103
263103
  var _index = __webpack_require__3("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/builders/generated/index.js"), _removeTypeDuplicates = __webpack_require__3("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js"), _index2 = __webpack_require__3("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/generated/index.js");
@@ -263662,14 +263662,14 @@ Expected ${val.length + 1} quasis but got ${node3.quasis.length}`);
263662
263662
  const TSTypeExpression = { aliases: ["Expression", "LVal", "PatternLike"], visitor: ["expression", "typeAnnotation"], fields: { expression: (0, _utils.validateType)("Expression"), typeAnnotation: (0, _utils.validateType)("TSType") } };
263663
263663
  defineType("TSAsExpression", TSTypeExpression), defineType("TSSatisfiesExpression", TSTypeExpression), defineType("TSTypeAssertion", { aliases: ["Expression", "LVal", "PatternLike"], visitor: ["typeAnnotation", "expression"], fields: { typeAnnotation: (0, _utils.validateType)("TSType"), expression: (0, _utils.validateType)("Expression") } }), defineType("TSEnumDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "members"], fields: { declare: (0, _utils.validateOptional)(bool), const: (0, _utils.validateOptional)(bool), id: (0, _utils.validateType)("Identifier"), members: (0, _utils.validateArrayOfType)("TSEnumMember"), initializer: (0, _utils.validateOptionalType)("Expression") } }), defineType("TSEnumMember", { visitor: ["id", "initializer"], fields: { id: (0, _utils.validateType)("Identifier", "StringLiteral"), initializer: (0, _utils.validateOptionalType)("Expression") } }), defineType("TSModuleDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "body"], fields: Object.assign({ kind: { validate: (0, _utils.assertOneOf)("global", "module", "namespace") }, declare: (0, _utils.validateOptional)(bool) }, { global: (0, _utils.validateOptional)(bool) }, { id: (0, _utils.validateType)("Identifier", "StringLiteral"), body: (0, _utils.validateType)("TSModuleBlock", "TSModuleDeclaration") }) }), defineType("TSModuleBlock", { aliases: ["Scopable", "Block", "BlockParent", "FunctionParent"], visitor: ["body"], fields: { body: (0, _utils.validateArrayOfType)("Statement") } }), defineType("TSImportType", { aliases: ["TSType"], visitor: ["argument", "qualifier", "typeParameters"], fields: { argument: (0, _utils.validateType)("StringLiteral"), qualifier: (0, _utils.validateOptionalType)("TSEntityName"), typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation"), options: { validate: (0, _utils.assertNodeType)("Expression"), optional: true } } }), defineType("TSImportEqualsDeclaration", { aliases: ["Statement"], visitor: ["id", "moduleReference"], fields: { isExport: (0, _utils.validate)(bool), id: (0, _utils.validateType)("Identifier"), moduleReference: (0, _utils.validateType)("TSEntityName", "TSExternalModuleReference"), importKind: { validate: (0, _utils.assertOneOf)("type", "value"), optional: true } } }), defineType("TSExternalModuleReference", { visitor: ["expression"], fields: { expression: (0, _utils.validateType)("StringLiteral") } }), defineType("TSNonNullExpression", { aliases: ["Expression", "LVal", "PatternLike"], visitor: ["expression"], fields: { expression: (0, _utils.validateType)("Expression") } }), defineType("TSExportAssignment", { aliases: ["Statement"], visitor: ["expression"], fields: { expression: (0, _utils.validateType)("Expression") } }), defineType("TSNamespaceExportDeclaration", { aliases: ["Statement"], visitor: ["id"], fields: { id: (0, _utils.validateType)("Identifier") } }), defineType("TSTypeAnnotation", { visitor: ["typeAnnotation"], fields: { typeAnnotation: { validate: (0, _utils.assertNodeType)("TSType") } } }), defineType("TSTypeParameterInstantiation", { visitor: ["params"], fields: { params: (0, _utils.validateArrayOfType)("TSType") } }), defineType("TSTypeParameterDeclaration", { visitor: ["params"], fields: { params: (0, _utils.validateArrayOfType)("TSTypeParameter") } }), defineType("TSTypeParameter", { builder: ["constraint", "default", "name"], visitor: ["constraint", "default"], fields: { name: { validate: (0, _utils.assertValueType)("string") }, in: { validate: (0, _utils.assertValueType)("boolean"), optional: true }, out: { validate: (0, _utils.assertValueType)("boolean"), optional: true }, const: { validate: (0, _utils.assertValueType)("boolean"), optional: true }, constraint: { validate: (0, _utils.assertNodeType)("TSType"), optional: true }, default: { validate: (0, _utils.assertNodeType)("TSType"), optional: true } } });
263664
263664
  }, "./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/definitions/utils.js": (__unused_webpack_module, exports2, __webpack_require__3) => {
263665
- Object.defineProperty(exports2, "__esModule", { value: true }), exports2.VISITOR_KEYS = exports2.NODE_PARENT_VALIDATIONS = exports2.NODE_FIELDS = exports2.FLIPPED_ALIAS_KEYS = exports2.DEPRECATED_KEYS = exports2.BUILDER_KEYS = exports2.ALIAS_KEYS = undefined, exports2.arrayOf = arrayOf, exports2.arrayOfType = arrayOfType, exports2.assertEach = assertEach, exports2.assertNodeOrValueType = function(...types7) {
263665
+ Object.defineProperty(exports2, "__esModule", { value: true }), exports2.VISITOR_KEYS = exports2.NODE_PARENT_VALIDATIONS = exports2.NODE_FIELDS = exports2.FLIPPED_ALIAS_KEYS = exports2.DEPRECATED_KEYS = exports2.BUILDER_KEYS = exports2.ALIAS_KEYS = undefined, exports2.arrayOf = arrayOf, exports2.arrayOfType = arrayOfType, exports2.assertEach = assertEach, exports2.assertNodeOrValueType = function(...types9) {
263666
263666
  function validate11(node3, key2, val) {
263667
- for (const type3 of types7)
263667
+ for (const type3 of types9)
263668
263668
  if (getType(val) === type3 || (0, _is.default)(type3, val))
263669
263669
  return void (0, _validate.validateChild)(node3, key2, val);
263670
- throw new TypeError(`Property ${key2} of ${node3.type} expected node to be of a type ${JSON.stringify(types7)} but instead got ${JSON.stringify(val == null ? undefined : val.type)}`);
263670
+ throw new TypeError(`Property ${key2} of ${node3.type} expected node to be of a type ${JSON.stringify(types9)} but instead got ${JSON.stringify(val == null ? undefined : val.type)}`);
263671
263671
  }
263672
- return validate11.oneOfNodeOrValueTypes = types7, validate11;
263672
+ return validate11.oneOfNodeOrValueTypes = types9, validate11;
263673
263673
  }, exports2.assertNodeType = assertNodeType, exports2.assertOneOf = function(...values10) {
263674
263674
  function validate11(node3, key2, val) {
263675
263675
  if (!values10.includes(val))
@@ -263757,14 +263757,14 @@ ${errors9.join(`
263757
263757
  }
263758
263758
  return validator3.each = callback2, validator3;
263759
263759
  }
263760
- function assertNodeType(...types7) {
263760
+ function assertNodeType(...types9) {
263761
263761
  function validate11(node3, key2, val) {
263762
- for (const type3 of types7)
263762
+ for (const type3 of types9)
263763
263763
  if ((0, _is.default)(type3, val))
263764
263764
  return void (0, _validate.validateChild)(node3, key2, val);
263765
- throw new TypeError(`Property ${key2} of ${node3.type} expected node to be of a type ${JSON.stringify(types7)} but instead got ${JSON.stringify(val == null ? undefined : val.type)}`);
263765
+ throw new TypeError(`Property ${key2} of ${node3.type} expected node to be of a type ${JSON.stringify(types9)} but instead got ${JSON.stringify(val == null ? undefined : val.type)}`);
263766
263766
  }
263767
- return validate11.oneOfNodeTypes = types7, validate11;
263767
+ return validate11.oneOfNodeTypes = types9, validate11;
263768
263768
  }
263769
263769
  function assertValueType(type3) {
263770
263770
  function validate11(node3, key2, val) {
@@ -263997,10 +263997,10 @@ ${errors9.join(`
263997
263997
  var _index = __webpack_require__3("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/builders/generated/index.js");
263998
263998
  }, "./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js": (__unused_webpack_module, exports2, __webpack_require__3) => {
263999
263999
  Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function removeTypeDuplicates(nodesIn) {
264000
- const nodes = Array.from(nodesIn), generics = new Map, bases = new Map, typeGroups = new Set, types7 = [];
264000
+ const nodes = Array.from(nodesIn), generics = new Map, bases = new Map, typeGroups = new Set, types9 = [];
264001
264001
  for (let i10 = 0;i10 < nodes.length; i10++) {
264002
264002
  const node3 = nodes[i10];
264003
- if (node3 && !types7.includes(node3)) {
264003
+ if (node3 && !types9.includes(node3)) {
264004
264004
  if ((0, _index.isAnyTypeAnnotation)(node3))
264005
264005
  return [node3];
264006
264006
  if ((0, _index.isFlowBaseAnnotation)(node3))
@@ -264015,14 +264015,14 @@ ${errors9.join(`
264015
264015
  } else
264016
264016
  generics.set(name17, node3);
264017
264017
  } else
264018
- types7.push(node3);
264018
+ types9.push(node3);
264019
264019
  }
264020
264020
  }
264021
264021
  for (const [, baseType] of bases)
264022
- types7.push(baseType);
264022
+ types9.push(baseType);
264023
264023
  for (const [, genericName] of generics)
264024
- types7.push(genericName);
264025
- return types7;
264024
+ types9.push(genericName);
264025
+ return types9;
264026
264026
  };
264027
264027
  var _index = __webpack_require__3("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/generated/index.js");
264028
264028
  function getQualifiedName(node3) {
@@ -264068,10 +264068,10 @@ ${errors9.join(`
264068
264068
  var _traverseFast = __webpack_require__3("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/traverse/traverseFast.js"), _removeProperties = __webpack_require__3("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/modifications/removeProperties.js");
264069
264069
  }, "./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js": (__unused_webpack_module, exports2, __webpack_require__3) => {
264070
264070
  Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function removeTypeDuplicates(nodesIn) {
264071
- const nodes = Array.from(nodesIn), generics = new Map, bases = new Map, typeGroups = new Set, types7 = [];
264071
+ const nodes = Array.from(nodesIn), generics = new Map, bases = new Map, typeGroups = new Set, types9 = [];
264072
264072
  for (let i10 = 0;i10 < nodes.length; i10++) {
264073
264073
  const node3 = nodes[i10];
264074
- if (node3 && !types7.includes(node3)) {
264074
+ if (node3 && !types9.includes(node3)) {
264075
264075
  if ((0, _index.isTSAnyKeyword)(node3))
264076
264076
  return [node3];
264077
264077
  if ((0, _index.isTSBaseType)(node3))
@@ -264086,14 +264086,14 @@ ${errors9.join(`
264086
264086
  } else
264087
264087
  generics.set(name17, node3);
264088
264088
  } else
264089
- types7.push(node3);
264089
+ types9.push(node3);
264090
264090
  }
264091
264091
  }
264092
264092
  for (const [, baseType] of bases)
264093
- types7.push(baseType);
264093
+ types9.push(baseType);
264094
264094
  for (const [, genericName] of generics)
264095
- types7.push(genericName);
264096
- return types7;
264095
+ types9.push(genericName);
264096
+ return types9;
264097
264097
  };
264098
264098
  var _index = __webpack_require__3("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/generated/index.js");
264099
264099
  function getQualifiedName(node3) {
@@ -267044,9 +267044,9 @@ ${trace8}`);
267044
267044
  }
267045
267045
  return lib.types.identifier("Object");
267046
267046
  }
267047
- function serializeTypeList(className, types8) {
267047
+ function serializeTypeList(className, types10) {
267048
267048
  let serializedUnion;
267049
- for (let typeNode of types8) {
267049
+ for (let typeNode of types10) {
267050
267050
  for (;typeNode.type === "TSParenthesizedType"; )
267051
267051
  typeNode = typeNode.typeAnnotation;
267052
267052
  if (typeNode.type === "TSNeverKeyword")
@@ -267092,16 +267092,16 @@ ${trace8}`);
267092
267092
  path19.parentPath.scope.crawl();
267093
267093
  } });
267094
267094
  } } }));
267095
- function importMetaEnvPlugin({ template, types: types8 }) {
267095
+ function importMetaEnvPlugin({ template, types: types10 }) {
267096
267096
  return { name: "@import-meta-env/babel", visitor: { Identifier(path19) {
267097
- if (!types8.isIdentifier(path19))
267097
+ if (!types10.isIdentifier(path19))
267098
267098
  return;
267099
- if (!types8.isMemberExpression(path19.parentPath) && !types8.isOptionalMemberExpression(path19.parentPath))
267099
+ if (!types10.isMemberExpression(path19.parentPath) && !types10.isOptionalMemberExpression(path19.parentPath))
267100
267100
  return;
267101
- if (!types8.isMemberExpression(path19.parentPath.node))
267101
+ if (!types10.isMemberExpression(path19.parentPath.node))
267102
267102
  return;
267103
267103
  const parentNode = path19.parentPath.node;
267104
- if (!types8.isMetaProperty(parentNode.object))
267104
+ if (!types10.isMetaProperty(parentNode.object))
267105
267105
  return;
267106
267106
  const parentNodeObjMeta = parentNode.object;
267107
267107
  parentNodeObjMeta.meta.name === "import" && parentNodeObjMeta.property.name === "meta" && parentNode.property.name === "env" && path19.parentPath.replaceWith(template.expression.ast("process.env"));
@@ -267885,16 +267885,16 @@ Defaulting to 2020, but this will stop working in the future.`)), options6.ecmaV
267885
267885
  };
267886
267886
  var TokContext = function(token, isExpr, preserveSpace, override, generator) {
267887
267887
  this.token = token, this.isExpr = !!isExpr, this.preserveSpace = !!preserveSpace, this.override = override, this.generator = !!generator;
267888
- }, types7 = { b_stat: new TokContext("{", false), b_expr: new TokContext("{", true), b_tmpl: new TokContext("${", false), p_stat: new TokContext("(", false), p_expr: new TokContext("(", true), q_tmpl: new TokContext("`", true, true, function(p10) {
267888
+ }, types9 = { b_stat: new TokContext("{", false), b_expr: new TokContext("{", true), b_tmpl: new TokContext("${", false), p_stat: new TokContext("(", false), p_expr: new TokContext("(", true), q_tmpl: new TokContext("`", true, true, function(p10) {
267889
267889
  return p10.tryReadTemplateToken();
267890
267890
  }), f_stat: new TokContext("function", false), f_expr: new TokContext("function", true), f_expr_gen: new TokContext("function", true, false, null, true), f_gen: new TokContext("function", false, false, null, true) }, pp$6 = Parser.prototype;
267891
267891
  pp$6.initialContext = function() {
267892
- return [types7.b_stat];
267892
+ return [types9.b_stat];
267893
267893
  }, pp$6.curContext = function() {
267894
267894
  return this.context[this.context.length - 1];
267895
267895
  }, pp$6.braceIsBlock = function(prevType) {
267896
267896
  var parent = this.curContext();
267897
- return parent === types7.f_expr || parent === types7.f_stat || (prevType !== types$1.colon || parent !== types7.b_stat && parent !== types7.b_expr ? prevType === types$1._return || prevType === types$1.name && this.exprAllowed ? lineBreak3.test(this.input.slice(this.lastTokEnd, this.start)) : prevType === types$1._else || prevType === types$1.semi || prevType === types$1.eof || prevType === types$1.parenR || prevType === types$1.arrow || (prevType === types$1.braceL ? parent === types7.b_stat : prevType !== types$1._var && prevType !== types$1._const && prevType !== types$1.name && !this.exprAllowed) : !parent.isExpr);
267897
+ return parent === types9.f_expr || parent === types9.f_stat || (prevType !== types$1.colon || parent !== types9.b_stat && parent !== types9.b_expr ? prevType === types$1._return || prevType === types$1.name && this.exprAllowed ? lineBreak3.test(this.input.slice(this.lastTokEnd, this.start)) : prevType === types$1._else || prevType === types$1.semi || prevType === types$1.eof || prevType === types$1.parenR || prevType === types$1.arrow || (prevType === types$1.braceL ? parent === types9.b_stat : prevType !== types$1._var && prevType !== types$1._const && prevType !== types$1.name && !this.exprAllowed) : !parent.isExpr);
267898
267898
  }, pp$6.inGeneratorContext = function() {
267899
267899
  for (var i12 = this.context.length - 1;i12 >= 1; i12--) {
267900
267900
  var context15 = this.context[i12];
@@ -267910,26 +267910,26 @@ Defaulting to 2020, but this will stop working in the future.`)), options6.ecmaV
267910
267910
  }, types$1.parenR.updateContext = types$1.braceR.updateContext = function() {
267911
267911
  if (this.context.length !== 1) {
267912
267912
  var out = this.context.pop();
267913
- out === types7.b_stat && this.curContext().token === "function" && (out = this.context.pop()), this.exprAllowed = !out.isExpr;
267913
+ out === types9.b_stat && this.curContext().token === "function" && (out = this.context.pop()), this.exprAllowed = !out.isExpr;
267914
267914
  } else
267915
267915
  this.exprAllowed = true;
267916
267916
  }, types$1.braceL.updateContext = function(prevType) {
267917
- this.context.push(this.braceIsBlock(prevType) ? types7.b_stat : types7.b_expr), this.exprAllowed = true;
267917
+ this.context.push(this.braceIsBlock(prevType) ? types9.b_stat : types9.b_expr), this.exprAllowed = true;
267918
267918
  }, types$1.dollarBraceL.updateContext = function() {
267919
- this.context.push(types7.b_tmpl), this.exprAllowed = true;
267919
+ this.context.push(types9.b_tmpl), this.exprAllowed = true;
267920
267920
  }, types$1.parenL.updateContext = function(prevType) {
267921
267921
  var statementParens = prevType === types$1._if || prevType === types$1._for || prevType === types$1._with || prevType === types$1._while;
267922
- this.context.push(statementParens ? types7.p_stat : types7.p_expr), this.exprAllowed = true;
267922
+ this.context.push(statementParens ? types9.p_stat : types9.p_expr), this.exprAllowed = true;
267923
267923
  }, types$1.incDec.updateContext = function() {}, types$1._function.updateContext = types$1._class.updateContext = function(prevType) {
267924
- !prevType.beforeExpr || prevType === types$1._else || prevType === types$1.semi && this.curContext() !== types7.p_stat || prevType === types$1._return && lineBreak3.test(this.input.slice(this.lastTokEnd, this.start)) || (prevType === types$1.colon || prevType === types$1.braceL) && this.curContext() === types7.b_stat ? this.context.push(types7.f_stat) : this.context.push(types7.f_expr), this.exprAllowed = false;
267924
+ !prevType.beforeExpr || prevType === types$1._else || prevType === types$1.semi && this.curContext() !== types9.p_stat || prevType === types$1._return && lineBreak3.test(this.input.slice(this.lastTokEnd, this.start)) || (prevType === types$1.colon || prevType === types$1.braceL) && this.curContext() === types9.b_stat ? this.context.push(types9.f_stat) : this.context.push(types9.f_expr), this.exprAllowed = false;
267925
267925
  }, types$1.colon.updateContext = function() {
267926
267926
  this.curContext().token === "function" && this.context.pop(), this.exprAllowed = true;
267927
267927
  }, types$1.backQuote.updateContext = function() {
267928
- this.curContext() === types7.q_tmpl ? this.context.pop() : this.context.push(types7.q_tmpl), this.exprAllowed = false;
267928
+ this.curContext() === types9.q_tmpl ? this.context.pop() : this.context.push(types9.q_tmpl), this.exprAllowed = false;
267929
267929
  }, types$1.star.updateContext = function(prevType) {
267930
267930
  if (prevType === types$1._function) {
267931
267931
  var index3 = this.context.length - 1;
267932
- this.context[index3] === types7.f_expr ? this.context[index3] = types7.f_expr_gen : this.context[index3] = types7.f_gen;
267932
+ this.context[index3] === types9.f_expr ? this.context[index3] = types9.f_expr_gen : this.context[index3] = types9.f_gen;
267933
267933
  }
267934
267934
  this.exprAllowed = true;
267935
267935
  }, types$1.name.updateContext = function(prevType) {
@@ -268092,7 +268092,7 @@ Defaulting to 2020, but this will stop working in the future.`)), options6.ecmaV
268092
268092
  case types$1.name:
268093
268093
  var startPos = this.start, startLoc = this.startLoc, containsEsc = this.containsEsc, id5 = this.parseIdent(false);
268094
268094
  if (this.options.ecmaVersion >= 8 && !containsEsc && id5.name === "async" && !this.canInsertSemicolon() && this.eat(types$1._function))
268095
- return this.overrideContext(types7.f_expr), this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit);
268095
+ return this.overrideContext(types9.f_expr), this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit);
268096
268096
  if (canBeArrow && !this.canInsertSemicolon()) {
268097
268097
  if (this.eat(types$1.arrow))
268098
268098
  return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id5], false, forInit);
@@ -268116,7 +268116,7 @@ Defaulting to 2020, but this will stop working in the future.`)), options6.ecmaV
268116
268116
  case types$1.bracketL:
268117
268117
  return node3 = this.startNode(), this.next(), node3.elements = this.parseExprList(types$1.bracketR, true, true, refDestructuringErrors), this.finishNode(node3, "ArrayExpression");
268118
268118
  case types$1.braceL:
268119
- return this.overrideContext(types7.b_expr), this.parseObj(false, refDestructuringErrors);
268119
+ return this.overrideContext(types9.b_expr), this.parseObj(false, refDestructuringErrors);
268120
268120
  case types$1._function:
268121
268121
  return node3 = this.startNode(), this.next(), this.parseFunction(node3, 0);
268122
268122
  case types$1._class:
@@ -269343,7 +269343,7 @@ Defaulting to 2020, but this will stop working in the future.`)), options6.ecmaV
269343
269343
  var word = this.readWord1(), type3 = types$1.name;
269344
269344
  return this.keywords.test(word) && (type3 = keywords[word]), this.finishToken(type3, word);
269345
269345
  };
269346
- Parser.acorn = { Parser, version: "8.14.0", defaultOptions: defaultOptions3, Position, SourceLocation, getLineInfo, Node: Node3, TokenType, tokTypes: types$1, keywordTypes: keywords, TokContext, tokContexts: types7, isIdentifierChar, isIdentifierStart, Token, isNewLine, lineBreak: lineBreak3, lineBreakG, nonASCIIwhitespace };
269346
+ Parser.acorn = { Parser, version: "8.14.0", defaultOptions: defaultOptions3, Position, SourceLocation, getLineInfo, Node: Node3, TokenType, tokTypes: types$1, keywordTypes: keywords, TokContext, tokContexts: types9, isIdentifierChar, isIdentifierStart, Token, isNewLine, lineBreak: lineBreak3, lineBreakG, nonASCIIwhitespace };
269347
269347
  const external_node_module_namespaceObject = __require("node:module"), external_node_url_namespaceObject = (__require("node:fs"), __require("node:url")), external_node_assert_namespaceObject = __require("node:assert"), external_node_v8_namespaceObject = (__require("node:process"), __require("node:path"), __require("node:v8")), external_node_util_namespaceObject = __require("node:util");
269348
269348
  new Set(external_node_module_namespaceObject.builtinModules);
269349
269349
  function normalizeSlash(path19) {
@@ -269397,14 +269397,14 @@ Defaulting to 2020, but this will stop working in the future.`)), options6.ecmaV
269397
269397
  message += `"${name17}" ${type3} `;
269398
269398
  }
269399
269399
  message += "must be ";
269400
- const types8 = [], instances = [], other = [];
269400
+ const types10 = [], instances = [], other = [];
269401
269401
  for (const value10 of expected)
269402
- external_node_assert_namespaceObject(typeof value10 == "string", "All expected entries have to be of type string"), kTypes.has(value10) ? types8.push(value10.toLowerCase()) : classRegExp.exec(value10) === null ? (external_node_assert_namespaceObject(value10 !== "object", 'The value "object" should be written as "Object"'), other.push(value10)) : instances.push(value10);
269402
+ external_node_assert_namespaceObject(typeof value10 == "string", "All expected entries have to be of type string"), kTypes.has(value10) ? types10.push(value10.toLowerCase()) : classRegExp.exec(value10) === null ? (external_node_assert_namespaceObject(value10 !== "object", 'The value "object" should be written as "Object"'), other.push(value10)) : instances.push(value10);
269403
269403
  if (instances.length > 0) {
269404
- const pos = types8.indexOf("object");
269405
- pos !== -1 && (types8.slice(pos, 1), instances.push("Object"));
269404
+ const pos = types10.indexOf("object");
269405
+ pos !== -1 && (types10.slice(pos, 1), instances.push("Object"));
269406
269406
  }
269407
- return types8.length > 0 && (message += `${types8.length > 1 ? "one of type" : "of type"} ${formatList(types8, "or")}`, (instances.length > 0 || other.length > 0) && (message += " or ")), instances.length > 0 && (message += `an instance of ${formatList(instances, "or")}`, other.length > 0 && (message += " or ")), other.length > 0 && (other.length > 1 ? message += `one of ${formatList(other, "or")}` : (other[0].toLowerCase() !== other[0] && (message += "an "), message += `${other[0]}`)), message += `. Received ${function(value10) {
269407
+ return types10.length > 0 && (message += `${types10.length > 1 ? "one of type" : "of type"} ${formatList(types10, "or")}`, (instances.length > 0 || other.length > 0) && (message += " or ")), instances.length > 0 && (message += `an instance of ${formatList(instances, "or")}`, other.length > 0 && (message += " or ")), other.length > 0 && (other.length > 1 ? message += `one of ${formatList(other, "or")}` : (other[0].toLowerCase() !== other[0] && (message += "an "), message += `${other[0]}`)), message += `. Received ${function(value10) {
269408
269408
  if (value10 == null)
269409
269409
  return String(value10);
269410
269410
  if (typeof value10 == "function" && value10.name)
@@ -284680,7 +284680,7 @@ function closestParentFunctionOrProgram(node3) {
284680
284680
  }
284681
284681
  return node3;
284682
284682
  }
284683
- function toBase64(value10) {
284683
+ function toBase642(value10) {
284684
284684
  let outString = "";
284685
284685
  do {
284686
284686
  const currentDigit = value10 % base;
@@ -284693,7 +284693,7 @@ function getSafeName(baseName, usedNames, forbiddenNames) {
284693
284693
  let safeName = baseName;
284694
284694
  let count6 = 1;
284695
284695
  while (usedNames.has(safeName) || RESERVED_NAMES.has(safeName) || forbiddenNames?.has(safeName)) {
284696
- safeName = `${baseName}$${toBase64(count6++)}`;
284696
+ safeName = `${baseName}$${toBase642(count6++)}`;
284697
284697
  }
284698
284698
  usedNames.add(safeName);
284699
284699
  return safeName;
@@ -288417,10 +288417,10 @@ function assignExportsToMangledNames(exports, exportsByName, exportNamesByVariab
288417
288417
  let [exportName] = variable.name;
288418
288418
  if (exportsByName.has(exportName)) {
288419
288419
  do {
288420
- exportName = toBase64(++nameIndex);
288420
+ exportName = toBase642(++nameIndex);
288421
288421
  if (exportName.charCodeAt(0) === 49) {
288422
288422
  nameIndex += 9 * 64 ** (exportName.length - 1);
288423
- exportName = toBase64(nameIndex);
288423
+ exportName = toBase642(nameIndex);
288424
288424
  }
288425
288425
  } while (RESERVED_NAMES.has(exportName) || exportsByName.has(exportName));
288426
288426
  }
@@ -293600,7 +293600,7 @@ ${next5}` : out, DECONFLICT_IMPORTED_VARIABLES_BY_FORMAT, hashPlaceholderLeft =
293600
293600
  if (hashSize > MAX_HASH_SIZE) {
293601
293601
  return error44(logFailedValidation(`Hashes cannot be longer than ${MAX_HASH_SIZE} characters, received ${hashSize}. Check the "${optionName}" option.`));
293602
293602
  }
293603
- const placeholder = `${hashPlaceholderLeft}${toBase64(++nextIndex).padStart(hashSize - hashPlaceholderOverhead, "0")}${hashPlaceholderRight}`;
293603
+ const placeholder = `${hashPlaceholderLeft}${toBase642(++nextIndex).padStart(hashSize - hashPlaceholderOverhead, "0")}${hashPlaceholderRight}`;
293604
293604
  if (placeholder.length > hashSize) {
293605
293605
  return error44(logFailedValidation(`To generate hashes for this number of chunks (currently ${nextIndex}), you need a minimum hash size of ${placeholder.length}, received ${hashSize}. Check the "${optionName}" option.`));
293606
293606
  }
@@ -307779,7 +307779,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
307779
307779
  var _sortAscending = _interopRequireDefault$5(require_sortAscending());
307780
307780
  var _tokenize = _interopRequireWildcard$1(require_tokenize());
307781
307781
  var tokens = _interopRequireWildcard$1(require_tokenTypes());
307782
- var types7 = _interopRequireWildcard$1(require_types2());
307782
+ var types9 = _interopRequireWildcard$1(require_types2());
307783
307783
  var _util = require_util7();
307784
307784
  var _WHITESPACE_TOKENS, _Object$assign;
307785
307785
  function _getRequireWildcardCache$1(nodeInterop) {
@@ -308363,7 +308363,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
308363
308363
  var last6 = this.current.last;
308364
308364
  var unbalanced = 1;
308365
308365
  this.position++;
308366
- if (last6 && last6.type === types7.PSEUDO) {
308366
+ if (last6 && last6.type === types9.PSEUDO) {
308367
308367
  var selector$1 = new _selector$1["default"]({
308368
308368
  source: { start: tokenStart(this.tokens[this.position]) },
308369
308369
  sourceIndex: this.tokens[this.position][_tokenize.FIELDS.START_POS]
@@ -339050,13 +339050,13 @@ Error: ${e$1.message}`);
339050
339050
  message += `"${name17}" ${type3} `;
339051
339051
  }
339052
339052
  message += "must be ";
339053
- const types7 = [];
339053
+ const types9 = [];
339054
339054
  const instances = [];
339055
339055
  const other = [];
339056
339056
  for (const value$1 of expected) {
339057
339057
  assert5(typeof value$1 === "string", "All expected entries have to be of type string");
339058
339058
  if (kTypes.has(value$1))
339059
- types7.push(value$1.toLowerCase());
339059
+ types9.push(value$1.toLowerCase());
339060
339060
  else if (classRegExp.exec(value$1) === null) {
339061
339061
  assert5(value$1 !== "object", 'The value "object" should be written as "Object"');
339062
339062
  other.push(value$1);
@@ -339064,14 +339064,14 @@ Error: ${e$1.message}`);
339064
339064
  instances.push(value$1);
339065
339065
  }
339066
339066
  if (instances.length > 0) {
339067
- const pos = types7.indexOf("object");
339067
+ const pos = types9.indexOf("object");
339068
339068
  if (pos !== -1) {
339069
- types7.slice(pos, 1);
339069
+ types9.slice(pos, 1);
339070
339070
  instances.push("Object");
339071
339071
  }
339072
339072
  }
339073
- if (types7.length > 0) {
339074
- message += `${types7.length > 1 ? "one of type" : "of type"} ${formatList(types7, "or")}`;
339073
+ if (types9.length > 0) {
339074
+ message += `${types9.length > 1 ? "one of type" : "of type"} ${formatList(types9, "or")}`;
339075
339075
  if (instances.length > 0 || other.length > 0)
339076
339076
  message += " or ";
339077
339077
  }
@@ -353893,7 +353893,7 @@ var require_types3 = __commonJS((exports) => {
353893
353893
  // ../../node_modules/@xstate/fsm/lib/index.js
353894
353894
  var require_lib6 = __commonJS((exports) => {
353895
353895
  Object.defineProperty(exports, "__esModule", { value: true });
353896
- var types8 = require_types3();
353896
+ var types10 = require_types3();
353897
353897
  var INIT_EVENT = { type: "xstate.init" };
353898
353898
  var ASSIGN_ACTION = "xstate.assign";
353899
353899
  var WILDCARD = "*";
@@ -354020,12 +354020,12 @@ var require_lib6 = __commonJS((exports) => {
354020
354020
  var executeStateActions = (state2, event) => state2.actions.forEach(({ exec: exec7 }) => exec7 && exec7(state2.context, event));
354021
354021
  function interpret(machine) {
354022
354022
  let state2 = machine.initialState;
354023
- let status3 = types8.InterpreterStatus.NotStarted;
354023
+ let status3 = types10.InterpreterStatus.NotStarted;
354024
354024
  const listeners = new Set;
354025
354025
  const service3 = {
354026
354026
  _machine: machine,
354027
354027
  send: (event) => {
354028
- if (status3 !== types8.InterpreterStatus.Running) {
354028
+ if (status3 !== types10.InterpreterStatus.Running) {
354029
354029
  return;
354030
354030
  }
354031
354031
  state2 = machine.transition(state2, event);
@@ -354056,12 +354056,12 @@ var require_lib6 = __commonJS((exports) => {
354056
354056
  } else {
354057
354057
  state2 = machine.initialState;
354058
354058
  }
354059
- status3 = types8.InterpreterStatus.Running;
354059
+ status3 = types10.InterpreterStatus.Running;
354060
354060
  executeStateActions(state2, INIT_EVENT);
354061
354061
  return service3;
354062
354062
  },
354063
354063
  stop: () => {
354064
- status3 = types8.InterpreterStatus.Stopped;
354064
+ status3 = types10.InterpreterStatus.Stopped;
354065
354065
  listeners.clear();
354066
354066
  return service3;
354067
354067
  },
@@ -354077,7 +354077,7 @@ var require_lib6 = __commonJS((exports) => {
354077
354077
  Object.defineProperty(exports, "InterpreterStatus", {
354078
354078
  enumerable: true,
354079
354079
  get: function() {
354080
- return types8.InterpreterStatus;
354080
+ return types10.InterpreterStatus;
354081
354081
  }
354082
354082
  });
354083
354083
  exports.assign = assign;
@@ -368799,7 +368799,8 @@ var v4_default = classic_default;
368799
368799
  var ModelOptions = v4_default.object({
368800
368800
  label: v4_default.string().optional(),
368801
368801
  contextWindow: v4_default.number().optional(),
368802
- useToolCallMiddleware: v4_default.boolean().optional()
368802
+ useToolCallMiddleware: v4_default.boolean().optional(),
368803
+ contentType: v4_default.array(v4_default.string()).optional()
368803
368804
  });
368804
368805
  // ../common/src/vendor/base.ts
368805
368806
  var runExclusive = __toESM(require_runExclusive(), 1);
@@ -385798,23 +385799,8 @@ Usage notes:
385798
385799
  })
385799
385800
  });
385800
385801
 
385801
- // ../tools/src/read-file.ts
385802
- var toolDef8 = {
385803
- description: "Request to read the contents of a file at the specified path. Use this when you need to examine the contents of an existing file you do not know the contents of, for example to analyze code, review text files, or extract information from configuration files.",
385804
- inputSchema: exports_external2.object({
385805
- path: exports_external2.string().describe("The path of the file to read (relative to the current working directory, or an absolute path)"),
385806
- startLine: exports_external2.number().optional().describe("The starting line number to read from (1-based). If not provided, it starts from the beginning of the file."),
385807
- endLine: exports_external2.number().optional().describe("The ending line number to read to (1-based, inclusive). If not provided, it reads to the end of the file.")
385808
- }),
385809
- outputSchema: exports_external2.object({
385810
- content: exports_external2.string().describe("The contents of the file"),
385811
- isTruncated: exports_external2.boolean().describe("Whether the content is truncated due to exceeding the maximum length")
385812
- })
385813
- };
385814
- var readFile = tool(toolDef8);
385815
-
385816
385802
  // ../tools/src/search-files.ts
385817
- var toolDef9 = {
385803
+ var toolDef8 = {
385818
385804
  description: `
385819
385805
  - Fast content search tool that works with any codebase size
385820
385806
  - Searches file contents using regular expressions
@@ -385840,7 +385826,7 @@ var toolDef9 = {
385840
385826
  isTruncated: exports_external2.boolean().describe("Whether the content is truncated due to exceeding the maximum buffer length")
385841
385827
  })
385842
385828
  };
385843
- var searchFiles = tool(toolDef9);
385829
+ var searchFiles = tool(toolDef8);
385844
385830
 
385845
385831
  // ../tools/src/todo-write.ts
385846
385832
  var Todo = exports_external2.object({
@@ -385849,7 +385835,7 @@ var Todo = exports_external2.object({
385849
385835
  status: exports_external2.enum(["pending", "in-progress", "completed", "cancelled"]).describe("The status of the task."),
385850
385836
  priority: exports_external2.enum(["low", "medium", "high"]).describe("The priority of the task.")
385851
385837
  });
385852
- var toolDef10 = {
385838
+ var toolDef9 = {
385853
385839
  description: `
385854
385840
  Use this tool to create and manage a structured task list for your current coding session. This helps you track progress, organize complex tasks, and demonstrate thoroughness to the user.
385855
385841
  It also helps the user understand the progress of the task and overall progress of their requests.
@@ -386025,7 +386011,28 @@ When in doubt, use this tool. Being proactive with task management demonstrates
386025
386011
  success: exports_external2.boolean().describe("Whether the todos were successfully updated.")
386026
386012
  })
386027
386013
  };
386028
- var todoWrite = tool(toolDef10);
386014
+ var todoWrite = tool(toolDef9);
386015
+ // ../tools/src/read-file.ts
386016
+ var TextOutput = exports_external2.object({
386017
+ type: exports_external2.literal("text").optional(),
386018
+ content: exports_external2.string(),
386019
+ isTruncated: exports_external2.boolean().describe("Whether the textual content is truncated due to exceeding the maximum length")
386020
+ });
386021
+ var MediaOutput = exports_external2.object({
386022
+ type: exports_external2.literal("media"),
386023
+ data: exports_external2.string().describe("The base64-encoded media data"),
386024
+ mimeType: exports_external2.string().describe("The MIME type of the media")
386025
+ });
386026
+ var createReadFileTool = (contentType) => tool({
386027
+ description: `Request to read the contents of a file at the specified path. Use this when you need to examine the contents of an existing file you do not know the contents of, for example to analyze code, review text files, extract information from configuration files.
386028
+ ${contentType && contentType.length > 0 ? `Also supports reading media files (e.g. image, audio, video) with the following mime types: ${contentType.join(", ")}.` : ""}`,
386029
+ inputSchema: exports_external2.object({
386030
+ path: exports_external2.string().describe("The path of the file to read (relative to the current working directory, or an absolute path)"),
386031
+ startLine: exports_external2.number().optional().describe("The starting line number to read from (1-based). If not provided, it starts from the beginning of the file."),
386032
+ endLine: exports_external2.number().optional().describe("The ending line number to read to (1-based, inclusive). If not provided, it reads to the end of the file.")
386033
+ }),
386034
+ outputSchema: exports_external2.union([TextOutput, MediaOutput]).describe("The file content as either text or media output.")
386035
+ });
386029
386036
  // ../tools/src/edit-notebook.ts
386030
386037
  var editNotebook = tool({
386031
386038
  description: "Edit a specific cell in a Jupyter notebook (.ipynb file) by its cell ID",
@@ -386040,7 +386047,7 @@ var editNotebook = tool({
386040
386047
  });
386041
386048
 
386042
386049
  // ../tools/src/kill-background-job.ts
386043
- var toolDef11 = {
386050
+ var toolDef10 = {
386044
386051
  description: `- Kills a running background job by its ID
386045
386052
  - Takes a backgroundJobId parameter identifying the job to kill
386046
386053
  - Returns a success or failure status
@@ -386052,10 +386059,10 @@ var toolDef11 = {
386052
386059
  success: zod_default.boolean().describe("Whether the background job was successfully killed.")
386053
386060
  })
386054
386061
  };
386055
- var killBackgroundJob = tool(toolDef11);
386062
+ var killBackgroundJob = tool(toolDef10);
386056
386063
 
386057
386064
  // ../tools/src/read-background-job-output.ts
386058
- var toolDef12 = {
386065
+ var toolDef11 = {
386059
386066
  description: `- Retrieves output from a running or completed background job
386060
386067
  - Takes a backgroundJobId parameter identifying the job
386061
386068
  - Always returns only new output since the last check
@@ -386072,10 +386079,10 @@ var toolDef12 = {
386072
386079
  isTruncated: zod_default.boolean().optional().describe("Whether the output was truncated")
386073
386080
  })
386074
386081
  };
386075
- var readBackgroundJobOutput = tool(toolDef12);
386082
+ var readBackgroundJobOutput = tool(toolDef11);
386076
386083
 
386077
386084
  // ../tools/src/start-background-job.ts
386078
- var toolDef13 = {
386085
+ var toolDef12 = {
386079
386086
  description: `Start a background job to execute a bash command, which allows you to continue working while the job runs.
386080
386087
 
386081
386088
  Before starting the background job, please follow these steps:
@@ -386115,10 +386122,10 @@ Command execution rules:
386115
386122
  backgroundJobId: exports_external2.string().optional().describe("The ID of the background job")
386116
386123
  })
386117
386124
  };
386118
- var startBackgroundJob = tool(toolDef13);
386125
+ var startBackgroundJob = tool(toolDef12);
386119
386126
 
386120
386127
  // ../tools/src/write-to-file.ts
386121
- var toolDef14 = {
386128
+ var toolDef13 = {
386122
386129
  description: `
386123
386130
  Request to write full content to a file at the specified path.
386124
386131
  If the file exists, it will be overwritten with the provided content.
@@ -386131,7 +386138,7 @@ ${EditFileResultPrompt}`.trim(),
386131
386138
  }),
386132
386139
  outputSchema: EditFileOutputSchema
386133
386140
  };
386134
- var writeToFile = tool(toolDef14);
386141
+ var writeToFile = tool(toolDef13);
386135
386142
 
386136
386143
  // ../tools/src/index.ts
386137
386144
  function isUserInputToolName(name17) {
@@ -386176,7 +386183,7 @@ var ToolsByPermission = {
386176
386183
  ],
386177
386184
  default: ["todoWrite"]
386178
386185
  };
386179
- var createCliTools = (customAgents) => ({
386186
+ var createCliTools = (options) => ({
386180
386187
  applyDiff,
386181
386188
  askFollowupQuestion,
386182
386189
  attemptCompletion,
@@ -386184,23 +386191,23 @@ var createCliTools = (customAgents) => ({
386184
386191
  globFiles,
386185
386192
  listFiles,
386186
386193
  multiApplyDiff,
386187
- readFile,
386194
+ readFile: createReadFileTool(options?.contentType),
386188
386195
  searchFiles,
386189
386196
  todoWrite,
386190
386197
  writeToFile,
386191
386198
  editNotebook,
386192
- newTask: createNewTaskTool(customAgents)
386199
+ newTask: createNewTaskTool(options?.customAgents)
386193
386200
  });
386194
- var createClientTools = (customAgents) => {
386201
+ var createClientTools = (options) => {
386195
386202
  return {
386196
- ...createCliTools(customAgents),
386203
+ ...createCliTools(options),
386197
386204
  startBackgroundJob,
386198
386205
  readBackgroundJobOutput,
386199
386206
  killBackgroundJob
386200
386207
  };
386201
386208
  };
386202
386209
  var selectClientTools = (options) => {
386203
- const cliTools = createCliTools(options.customAgents);
386210
+ const cliTools = createCliTools(options);
386204
386211
  if (options.isCli) {
386205
386212
  if (options.isSubTask) {
386206
386213
  const { newTask, ...rest } = cliTools;
@@ -386208,7 +386215,7 @@ var selectClientTools = (options) => {
386208
386215
  }
386209
386216
  return cliTools;
386210
386217
  }
386211
- const clientTools = createClientTools(options.customAgents);
386218
+ const clientTools = createClientTools(options);
386212
386219
  if (options?.isSubTask) {
386213
386220
  const { newTask, ...rest } = clientTools;
386214
386221
  return rest;
@@ -386509,6 +386516,39 @@ Create a user profile component. This should include fields for name, email, and
386509
386516
  </bad-example>`;
386510
386517
  }
386511
386518
 
386519
+ // ../common/src/base/prompts/inject-bash-outputs.ts
386520
+ function injectBashOutputs(message, outputs) {
386521
+ const bashCommandOutputs = outputs.map(({ command, output, error: error40 }) => {
386522
+ let result2 = `$ ${command}`;
386523
+ if (output) {
386524
+ result2 += `
386525
+ ${output}`;
386526
+ }
386527
+ if (error40) {
386528
+ result2 += `
386529
+ ERROR: ${error40}`;
386530
+ }
386531
+ return result2;
386532
+ });
386533
+ const reminderPart = {
386534
+ type: "text",
386535
+ text: prompts.createSystemReminder(`Bash command outputs:
386536
+ ${bashCommandOutputs.join(`
386537
+
386538
+ `)}`)
386539
+ };
386540
+ const workflowPartIndex = message.parts.findIndex(isWorkflowTextPart);
386541
+ const indexToInsert = workflowPartIndex === -1 ? 0 : workflowPartIndex;
386542
+ message.parts = [
386543
+ ...message.parts.slice(0, indexToInsert),
386544
+ reminderPart,
386545
+ ...message.parts.slice(indexToInsert)
386546
+ ];
386547
+ }
386548
+ function isWorkflowTextPart(part) {
386549
+ return part.type === "text" && /<workflow[^>]*>(.*?)<\/workflow>/gs.test(part.text);
386550
+ }
386551
+
386512
386552
  // ../common/src/base/social.ts
386513
386553
  var SocialLinks = {
386514
386554
  Discord: "https://getpochi.com/discord",
@@ -386642,7 +386682,8 @@ var prompts = {
386642
386682
  inlineCompact,
386643
386683
  parseInlineCompact,
386644
386684
  generateTitle,
386645
- workflow: createWorkflowPrompt
386685
+ workflow: createWorkflowPrompt,
386686
+ injectBashOutputs
386646
386687
  };
386647
386688
  function createSystemReminder(content) {
386648
386689
  return `<system-reminder>${content}</system-reminder>`;
@@ -388089,7 +388130,8 @@ var BaseModelSettings = v4_default.object({
388089
388130
  name: v4_default.string().optional().describe('Display name of the model, e.g., "GPT-4o"'),
388090
388131
  maxTokens: v4_default.number().optional().describe("Maximum number of generated tokens for the model"),
388091
388132
  contextWindow: v4_default.number().optional().describe("Context window size for the model"),
388092
- useToolCallMiddleware: v4_default.boolean().optional().describe("Whether to use tool call middleware")
388133
+ useToolCallMiddleware: v4_default.boolean().optional().describe("Whether to use tool call middleware"),
388134
+ contentType: v4_default.array(v4_default.string()).optional().describe("The supported mime types model can handle")
388093
388135
  }))
388094
388136
  });
388095
388137
  var ExtendedModelSettings = BaseModelSettings.extend({
@@ -388108,12 +388150,12 @@ var AnthropicModelSettings = ExtendedModelSettings.extend({
388108
388150
  var GoogleVertexModel = v4_default.union([
388109
388151
  v4_default.object({
388110
388152
  serviceAccountKey: v4_default.string().default(process.env.POCHI_VERTEX_SERVICE_ACCOUNT_KEY ?? ""),
388111
- location: v4_default.string()
388153
+ location: v4_default.string().default(process.env.POCHI_VERTEX_LOCATION ?? "")
388112
388154
  }),
388113
388155
  v4_default.object({
388114
- accessToken: v4_default.string(),
388115
- projectId: v4_default.string(),
388116
- location: v4_default.string()
388156
+ accessToken: v4_default.string().default(process.env.POCHI_VERTEX_ACCESS_TOKEN ?? ""),
388157
+ projectId: v4_default.string().default(process.env.POCHI_VERTEX_PROJECT_ID ?? ""),
388158
+ location: v4_default.string().default(process.env.POCHI_VERTEX_LOCATION ?? "")
388117
388159
  }),
388118
388160
  v4_default.object({
388119
388161
  issueUrl: v4_default.string().default(process.env.POCHI_VERTEX_ISSUE_URL ?? ""),
@@ -388242,7 +388284,7 @@ class PochiConfigFile {
388242
388284
  await fsPromise.writeFile(tmp, content);
388243
388285
  await fsPromise.rename(tmp, this.configFilePath);
388244
388286
  } catch (err) {
388245
- logger.error("Failed to save config file", err);
388287
+ logger.error("Failed to save config file", JSON.stringify(err));
388246
388288
  }
388247
388289
  }
388248
388290
  updateConfig = async (newConfig) => {
@@ -390588,7 +390630,30 @@ class Pochi extends VendorBase {
390588
390630
  {
390589
390631
  contextWindow: x.contextWindow,
390590
390632
  useToolCallMiddleware: x.id.includes("google/"),
390591
- label: x.costType === "basic" ? "swift" : "super"
390633
+ label: x.costType === "basic" ? "swift" : "super",
390634
+ contentType: x.id.includes("google/") ? [
390635
+ "image/png",
390636
+ "image/jpeg",
390637
+ "image/webp",
390638
+ "image/heic",
390639
+ "image/heif",
390640
+ "video/mp4",
390641
+ "video/mpeg",
390642
+ "video/mov",
390643
+ "video/avi",
390644
+ "video/x-flv",
390645
+ "video/mpg",
390646
+ "video/webm",
390647
+ "video/wmv",
390648
+ "video/3gpp",
390649
+ "audio/wav",
390650
+ "audio/mp3",
390651
+ "audio/aiff",
390652
+ "audio/aac",
390653
+ "audio/ogg",
390654
+ "audio/flac",
390655
+ "application/pdf"
390656
+ ] : undefined
390592
390657
  }
390593
390658
  ]));
390594
390659
  }
@@ -402455,7 +402520,7 @@ import fs18 from "fs/promises";
402455
402520
  import path28 from "path";
402456
402521
 
402457
402522
  // ../../node_modules/@commander-js/extra-typings/esm.mjs
402458
- var import__3 = __toESM(require_extra_typings(), 1);
402523
+ var import__4 = __toESM(require_extra_typings(), 1);
402459
402524
  var {
402460
402525
  program,
402461
402526
  createCommand,
@@ -402468,7 +402533,7 @@ var {
402468
402533
  Argument,
402469
402534
  Option,
402470
402535
  Help
402471
- } = import__3.default;
402536
+ } = import__4.default;
402472
402537
 
402473
402538
  // ../livekit/src/livestore/index.ts
402474
402539
  var exports_livestore = {};
@@ -404281,7 +404346,8 @@ var tables = {
404281
404346
  totalTokens: exports_mod4.SQLite.integer({ nullable: true }),
404282
404347
  error: exports_mod4.SQLite.json({ schema: TaskError, nullable: true }),
404283
404348
  createdAt: exports_mod4.SQLite.integer({ schema: exports_Schema2.DateFromNumber }),
404284
- updatedAt: exports_mod4.SQLite.integer({ schema: exports_Schema2.DateFromNumber })
404349
+ updatedAt: exports_mod4.SQLite.integer({ schema: exports_Schema2.DateFromNumber }),
404350
+ modelId: exports_mod4.SQLite.text({ nullable: true })
404285
404351
  },
404286
404352
  indexes: [
404287
404353
  {
@@ -404327,7 +404393,8 @@ var taskInitFields = {
404327
404393
  id: exports_Schema2.String,
404328
404394
  parentId: exports_Schema2.optional(exports_Schema2.String),
404329
404395
  cwd: exports_Schema2.optional(exports_Schema2.String),
404330
- createdAt: exports_Schema2.Date
404396
+ createdAt: exports_Schema2.Date,
404397
+ modelId: exports_Schema2.optional(exports_Schema2.String)
404331
404398
  };
404332
404399
  var taskFullFields = {
404333
404400
  ...taskInitFields,
@@ -404375,7 +404442,8 @@ var events = {
404375
404442
  todos: Todos,
404376
404443
  title: exports_Schema2.optional(exports_Schema2.String),
404377
404444
  git: exports_Schema2.optional(Git),
404378
- updatedAt: exports_Schema2.Date
404445
+ updatedAt: exports_Schema2.Date,
404446
+ modelId: exports_Schema2.optional(exports_Schema2.String)
404379
404447
  })
404380
404448
  }),
404381
404449
  chatStreamFinished: exports_events.synced({
@@ -404469,13 +404537,22 @@ var materializers2 = exports_mod4.SQLite.materializers(events, {
404469
404537
  data: message
404470
404538
  }).onConflict("id", "replace"))
404471
404539
  ],
404472
- "v1.ChatStreamStarted": ({ id: id4, data, todos, git, title, updatedAt }) => [
404540
+ "v1.ChatStreamStarted": ({
404541
+ id: id4,
404542
+ data,
404543
+ todos,
404544
+ git,
404545
+ title,
404546
+ updatedAt,
404547
+ modelId
404548
+ }) => [
404473
404549
  tables.tasks.update({
404474
404550
  status: "pending-model",
404475
404551
  todos,
404476
404552
  git,
404477
404553
  title,
404478
- updatedAt
404554
+ updatedAt,
404555
+ modelId
404479
404556
  }).where({ id: id4 }),
404480
404557
  tables.messages.insert({
404481
404558
  id: data.id,
@@ -404562,22 +404639,29 @@ var makeBlobQuery = (checksum) => queryDb(() => tables.blobs.where("checksum", "
404562
404639
  async function processContentOutput(store, output2, signal2) {
404563
404640
  const parsed = ContentOutput.safeParse(output2);
404564
404641
  if (parsed.success) {
404565
- const content = parsed.data.content.map(async (item) => {
404566
- if (item.type === "text") {
404567
- return item;
404568
- }
404569
- if (item.type === "image") {
404570
- return {
404571
- type: "image",
404572
- mimeType: item.mimeType,
404573
- data: await findBlobUrl(store, item.mimeType, item.data, signal2)
404574
- };
404575
- }
404576
- return item;
404577
- });
404642
+ if ("content" in parsed.data) {
404643
+ const content = parsed.data.content.map(async (item2) => {
404644
+ if (item2.type === "text") {
404645
+ return item2;
404646
+ }
404647
+ if (item2.type === "image") {
404648
+ return {
404649
+ type: "image",
404650
+ mimeType: item2.mimeType,
404651
+ data: await findBlobUrl(store, item2.mimeType, item2.data, signal2)
404652
+ };
404653
+ }
404654
+ return item2;
404655
+ });
404656
+ return {
404657
+ ...parsed.data,
404658
+ content: await Promise.all(content)
404659
+ };
404660
+ }
404661
+ const item = parsed.data;
404578
404662
  return {
404579
- ...parsed.data,
404580
- content: await Promise.all(content)
404663
+ ...item,
404664
+ data: await findBlobUrl(store, item.mimeType, item.data, signal2)
404581
404665
  };
404582
404666
  }
404583
404667
  if (typeof output2 === "object" && output2 !== null && "toolResult" in output2) {
@@ -404586,19 +404670,43 @@ async function processContentOutput(store, output2, signal2) {
404586
404670
  }
404587
404671
  return output2;
404588
404672
  }
404589
- var ContentOutput = zod_default.object({
404590
- content: zod_default.array(zod_default.discriminatedUnion("type", [
404591
- zod_default.object({
404592
- type: zod_default.literal("text"),
404593
- text: zod_default.string()
404594
- }),
404595
- zod_default.object({
404596
- type: zod_default.literal("image"),
404597
- mimeType: zod_default.string(),
404598
- data: zod_default.string()
404599
- })
404600
- ]))
404601
- });
404673
+ var ContentOutput = zod_default.union([
404674
+ zod_default.object({
404675
+ content: zod_default.array(zod_default.discriminatedUnion("type", [
404676
+ zod_default.object({
404677
+ type: zod_default.literal("text"),
404678
+ text: zod_default.string()
404679
+ }),
404680
+ zod_default.object({
404681
+ type: zod_default.literal("image"),
404682
+ mimeType: zod_default.string(),
404683
+ data: zod_default.string()
404684
+ })
404685
+ ]))
404686
+ }),
404687
+ MediaOutput
404688
+ ]);
404689
+ function toBase64(bytes) {
404690
+ const binString = Array.from(bytes, (byte) => String.fromCodePoint(byte)).join("");
404691
+ const base643 = btoa(binString);
404692
+ return base643;
404693
+ }
404694
+ function findBlob(store, url3, mediaType) {
404695
+ if (url3.protocol === StoreBlobProtocol) {
404696
+ const blob3 = store.query(makeBlobQuery(url3.pathname));
404697
+ if (blob3) {
404698
+ return {
404699
+ data: toBase64(blob3.data),
404700
+ mediaType: blob3.mimeType
404701
+ };
404702
+ }
404703
+ } else {
404704
+ return {
404705
+ data: fetch(url3).then((x) => x.blob()).then((blob3) => blob3.arrayBuffer()).then((data) => toBase64(new Uint8Array(data))),
404706
+ mediaType
404707
+ };
404708
+ }
404709
+ }
404602
404710
  async function fileToUri(store, file5, signal2) {
404603
404711
  if ("POCHI_CORS_PROXY_PORT" in globalThis) {
404604
404712
  return fileToRemoteUri(file5, signal2);
@@ -404683,7 +404791,7 @@ init_effect();
404683
404791
  init_source();
404684
404792
 
404685
404793
  // ../../node_modules/commander/esm.mjs
404686
- var import__5 = __toESM(require_commander(), 1);
404794
+ var import__6 = __toESM(require_commander(), 1);
404687
404795
  var {
404688
404796
  program: program2,
404689
404797
  createCommand: createCommand2,
@@ -404696,11 +404804,11 @@ var {
404696
404804
  Argument: Argument2,
404697
404805
  Option: Option3,
404698
404806
  Help: Help2
404699
- } = import__5.default;
404807
+ } = import__6.default;
404700
404808
  // package.json
404701
404809
  var package_default = {
404702
404810
  name: "@getpochi/cli",
404703
- version: "0.5.86",
404811
+ version: "0.5.88",
404704
404812
  type: "module",
404705
404813
  bin: {
404706
404814
  pochi: "src/cli.ts"
@@ -406603,7 +406711,7 @@ function getSystemInfo2(cwd) {
406603
406711
  }
406604
406712
  // ../common/src/tool-utils/git-status.ts
406605
406713
  import { exec as exec3 } from "node:child_process";
406606
- import { readFile as readFile4, stat } from "node:fs/promises";
406714
+ import { readFile as readFile3, stat } from "node:fs/promises";
406607
406715
  import { join as join13 } from "node:path";
406608
406716
  import { promisify as promisify2 } from "node:util";
406609
406717
 
@@ -406815,7 +406923,7 @@ async function parseWorktreeGitdir(cwd) {
406815
406923
  if (!fileStat.isFile()) {
406816
406924
  return;
406817
406925
  }
406818
- const content = await readFile4(gitFilePath, "utf8");
406926
+ const content = await readFile3(gitFilePath, "utf8");
406819
406927
  const match30 = content.trim().match(/^gitdir:\s*(.+)$/);
406820
406928
  return match30 ? match30[1] : undefined;
406821
406929
  } catch (error42) {
@@ -406823,7 +406931,7 @@ async function parseWorktreeGitdir(cwd) {
406823
406931
  }
406824
406932
  }
406825
406933
  // ../common/src/tool-utils/custom-rules.ts
406826
- import { readFile as readFile5 } from "node:fs/promises";
406934
+ import { readFile as readFile4 } from "node:fs/promises";
406827
406935
  import { homedir as homedir2 } from "node:os";
406828
406936
  import path8 from "node:path";
406829
406937
  var WorkspaceRulesFilePaths = ["README.pochi.md", "AGENTS.md"];
@@ -406860,7 +406968,7 @@ async function collectCustomRules(cwd, customRuleFiles = [], includeDefaultRules
406860
406968
  }));
406861
406969
  for (const rule of allRules) {
406862
406970
  try {
406863
- const content = await readFile5(rule.filePath, "utf-8");
406971
+ const content = await readFile4(rule.filePath, "utf-8");
406864
406972
  if (content.trim().length > 0) {
406865
406973
  rules += `# Rules from ${rule.label}
406866
406974
  ${content}
@@ -416579,6 +416687,1223 @@ function editNotebookCell(notebook, cellId, newContent) {
416579
416687
  function serializeNotebook(notebook) {
416580
416688
  return JSON.stringify(notebook, null, 2);
416581
416689
  }
416690
+ // ../../node_modules/mime/dist/types/other.js
416691
+ var types6 = {
416692
+ "application/prs.cww": ["cww"],
416693
+ "application/prs.xsf+xml": ["xsf"],
416694
+ "application/vnd.1000minds.decision-model+xml": ["1km"],
416695
+ "application/vnd.3gpp.pic-bw-large": ["plb"],
416696
+ "application/vnd.3gpp.pic-bw-small": ["psb"],
416697
+ "application/vnd.3gpp.pic-bw-var": ["pvb"],
416698
+ "application/vnd.3gpp2.tcap": ["tcap"],
416699
+ "application/vnd.3m.post-it-notes": ["pwn"],
416700
+ "application/vnd.accpac.simply.aso": ["aso"],
416701
+ "application/vnd.accpac.simply.imp": ["imp"],
416702
+ "application/vnd.acucobol": ["acu"],
416703
+ "application/vnd.acucorp": ["atc", "acutc"],
416704
+ "application/vnd.adobe.air-application-installer-package+zip": ["air"],
416705
+ "application/vnd.adobe.formscentral.fcdt": ["fcdt"],
416706
+ "application/vnd.adobe.fxp": ["fxp", "fxpl"],
416707
+ "application/vnd.adobe.xdp+xml": ["xdp"],
416708
+ "application/vnd.adobe.xfdf": ["*xfdf"],
416709
+ "application/vnd.age": ["age"],
416710
+ "application/vnd.ahead.space": ["ahead"],
416711
+ "application/vnd.airzip.filesecure.azf": ["azf"],
416712
+ "application/vnd.airzip.filesecure.azs": ["azs"],
416713
+ "application/vnd.amazon.ebook": ["azw"],
416714
+ "application/vnd.americandynamics.acc": ["acc"],
416715
+ "application/vnd.amiga.ami": ["ami"],
416716
+ "application/vnd.android.package-archive": ["apk"],
416717
+ "application/vnd.anser-web-certificate-issue-initiation": ["cii"],
416718
+ "application/vnd.anser-web-funds-transfer-initiation": ["fti"],
416719
+ "application/vnd.antix.game-component": ["atx"],
416720
+ "application/vnd.apple.installer+xml": ["mpkg"],
416721
+ "application/vnd.apple.keynote": ["key"],
416722
+ "application/vnd.apple.mpegurl": ["m3u8"],
416723
+ "application/vnd.apple.numbers": ["numbers"],
416724
+ "application/vnd.apple.pages": ["pages"],
416725
+ "application/vnd.apple.pkpass": ["pkpass"],
416726
+ "application/vnd.aristanetworks.swi": ["swi"],
416727
+ "application/vnd.astraea-software.iota": ["iota"],
416728
+ "application/vnd.audiograph": ["aep"],
416729
+ "application/vnd.autodesk.fbx": ["fbx"],
416730
+ "application/vnd.balsamiq.bmml+xml": ["bmml"],
416731
+ "application/vnd.blueice.multipass": ["mpm"],
416732
+ "application/vnd.bmi": ["bmi"],
416733
+ "application/vnd.businessobjects": ["rep"],
416734
+ "application/vnd.chemdraw+xml": ["cdxml"],
416735
+ "application/vnd.chipnuts.karaoke-mmd": ["mmd"],
416736
+ "application/vnd.cinderella": ["cdy"],
416737
+ "application/vnd.citationstyles.style+xml": ["csl"],
416738
+ "application/vnd.claymore": ["cla"],
416739
+ "application/vnd.cloanto.rp9": ["rp9"],
416740
+ "application/vnd.clonk.c4group": ["c4g", "c4d", "c4f", "c4p", "c4u"],
416741
+ "application/vnd.cluetrust.cartomobile-config": ["c11amc"],
416742
+ "application/vnd.cluetrust.cartomobile-config-pkg": ["c11amz"],
416743
+ "application/vnd.commonspace": ["csp"],
416744
+ "application/vnd.contact.cmsg": ["cdbcmsg"],
416745
+ "application/vnd.cosmocaller": ["cmc"],
416746
+ "application/vnd.crick.clicker": ["clkx"],
416747
+ "application/vnd.crick.clicker.keyboard": ["clkk"],
416748
+ "application/vnd.crick.clicker.palette": ["clkp"],
416749
+ "application/vnd.crick.clicker.template": ["clkt"],
416750
+ "application/vnd.crick.clicker.wordbank": ["clkw"],
416751
+ "application/vnd.criticaltools.wbs+xml": ["wbs"],
416752
+ "application/vnd.ctc-posml": ["pml"],
416753
+ "application/vnd.cups-ppd": ["ppd"],
416754
+ "application/vnd.curl.car": ["car"],
416755
+ "application/vnd.curl.pcurl": ["pcurl"],
416756
+ "application/vnd.dart": ["dart"],
416757
+ "application/vnd.data-vision.rdz": ["rdz"],
416758
+ "application/vnd.dbf": ["dbf"],
416759
+ "application/vnd.dcmp+xml": ["dcmp"],
416760
+ "application/vnd.dece.data": ["uvf", "uvvf", "uvd", "uvvd"],
416761
+ "application/vnd.dece.ttml+xml": ["uvt", "uvvt"],
416762
+ "application/vnd.dece.unspecified": ["uvx", "uvvx"],
416763
+ "application/vnd.dece.zip": ["uvz", "uvvz"],
416764
+ "application/vnd.denovo.fcselayout-link": ["fe_launch"],
416765
+ "application/vnd.dna": ["dna"],
416766
+ "application/vnd.dolby.mlp": ["mlp"],
416767
+ "application/vnd.dpgraph": ["dpg"],
416768
+ "application/vnd.dreamfactory": ["dfac"],
416769
+ "application/vnd.ds-keypoint": ["kpxx"],
416770
+ "application/vnd.dvb.ait": ["ait"],
416771
+ "application/vnd.dvb.service": ["svc"],
416772
+ "application/vnd.dynageo": ["geo"],
416773
+ "application/vnd.ecowin.chart": ["mag"],
416774
+ "application/vnd.enliven": ["nml"],
416775
+ "application/vnd.epson.esf": ["esf"],
416776
+ "application/vnd.epson.msf": ["msf"],
416777
+ "application/vnd.epson.quickanime": ["qam"],
416778
+ "application/vnd.epson.salt": ["slt"],
416779
+ "application/vnd.epson.ssf": ["ssf"],
416780
+ "application/vnd.eszigno3+xml": ["es3", "et3"],
416781
+ "application/vnd.ezpix-album": ["ez2"],
416782
+ "application/vnd.ezpix-package": ["ez3"],
416783
+ "application/vnd.fdf": ["*fdf"],
416784
+ "application/vnd.fdsn.mseed": ["mseed"],
416785
+ "application/vnd.fdsn.seed": ["seed", "dataless"],
416786
+ "application/vnd.flographit": ["gph"],
416787
+ "application/vnd.fluxtime.clip": ["ftc"],
416788
+ "application/vnd.framemaker": ["fm", "frame", "maker", "book"],
416789
+ "application/vnd.frogans.fnc": ["fnc"],
416790
+ "application/vnd.frogans.ltf": ["ltf"],
416791
+ "application/vnd.fsc.weblaunch": ["fsc"],
416792
+ "application/vnd.fujitsu.oasys": ["oas"],
416793
+ "application/vnd.fujitsu.oasys2": ["oa2"],
416794
+ "application/vnd.fujitsu.oasys3": ["oa3"],
416795
+ "application/vnd.fujitsu.oasysgp": ["fg5"],
416796
+ "application/vnd.fujitsu.oasysprs": ["bh2"],
416797
+ "application/vnd.fujixerox.ddd": ["ddd"],
416798
+ "application/vnd.fujixerox.docuworks": ["xdw"],
416799
+ "application/vnd.fujixerox.docuworks.binder": ["xbd"],
416800
+ "application/vnd.fuzzysheet": ["fzs"],
416801
+ "application/vnd.genomatix.tuxedo": ["txd"],
416802
+ "application/vnd.geogebra.file": ["ggb"],
416803
+ "application/vnd.geogebra.slides": ["ggs"],
416804
+ "application/vnd.geogebra.tool": ["ggt"],
416805
+ "application/vnd.geometry-explorer": ["gex", "gre"],
416806
+ "application/vnd.geonext": ["gxt"],
416807
+ "application/vnd.geoplan": ["g2w"],
416808
+ "application/vnd.geospace": ["g3w"],
416809
+ "application/vnd.gmx": ["gmx"],
416810
+ "application/vnd.google-apps.document": ["gdoc"],
416811
+ "application/vnd.google-apps.drawing": ["gdraw"],
416812
+ "application/vnd.google-apps.form": ["gform"],
416813
+ "application/vnd.google-apps.jam": ["gjam"],
416814
+ "application/vnd.google-apps.map": ["gmap"],
416815
+ "application/vnd.google-apps.presentation": ["gslides"],
416816
+ "application/vnd.google-apps.script": ["gscript"],
416817
+ "application/vnd.google-apps.site": ["gsite"],
416818
+ "application/vnd.google-apps.spreadsheet": ["gsheet"],
416819
+ "application/vnd.google-earth.kml+xml": ["kml"],
416820
+ "application/vnd.google-earth.kmz": ["kmz"],
416821
+ "application/vnd.gov.sk.xmldatacontainer+xml": ["xdcf"],
416822
+ "application/vnd.grafeq": ["gqf", "gqs"],
416823
+ "application/vnd.groove-account": ["gac"],
416824
+ "application/vnd.groove-help": ["ghf"],
416825
+ "application/vnd.groove-identity-message": ["gim"],
416826
+ "application/vnd.groove-injector": ["grv"],
416827
+ "application/vnd.groove-tool-message": ["gtm"],
416828
+ "application/vnd.groove-tool-template": ["tpl"],
416829
+ "application/vnd.groove-vcard": ["vcg"],
416830
+ "application/vnd.hal+xml": ["hal"],
416831
+ "application/vnd.handheld-entertainment+xml": ["zmm"],
416832
+ "application/vnd.hbci": ["hbci"],
416833
+ "application/vnd.hhe.lesson-player": ["les"],
416834
+ "application/vnd.hp-hpgl": ["hpgl"],
416835
+ "application/vnd.hp-hpid": ["hpid"],
416836
+ "application/vnd.hp-hps": ["hps"],
416837
+ "application/vnd.hp-jlyt": ["jlt"],
416838
+ "application/vnd.hp-pcl": ["pcl"],
416839
+ "application/vnd.hp-pclxl": ["pclxl"],
416840
+ "application/vnd.hydrostatix.sof-data": ["sfd-hdstx"],
416841
+ "application/vnd.ibm.minipay": ["mpy"],
416842
+ "application/vnd.ibm.modcap": ["afp", "listafp", "list3820"],
416843
+ "application/vnd.ibm.rights-management": ["irm"],
416844
+ "application/vnd.ibm.secure-container": ["sc"],
416845
+ "application/vnd.iccprofile": ["icc", "icm"],
416846
+ "application/vnd.igloader": ["igl"],
416847
+ "application/vnd.immervision-ivp": ["ivp"],
416848
+ "application/vnd.immervision-ivu": ["ivu"],
416849
+ "application/vnd.insors.igm": ["igm"],
416850
+ "application/vnd.intercon.formnet": ["xpw", "xpx"],
416851
+ "application/vnd.intergeo": ["i2g"],
416852
+ "application/vnd.intu.qbo": ["qbo"],
416853
+ "application/vnd.intu.qfx": ["qfx"],
416854
+ "application/vnd.ipunplugged.rcprofile": ["rcprofile"],
416855
+ "application/vnd.irepository.package+xml": ["irp"],
416856
+ "application/vnd.is-xpr": ["xpr"],
416857
+ "application/vnd.isac.fcs": ["fcs"],
416858
+ "application/vnd.jam": ["jam"],
416859
+ "application/vnd.jcp.javame.midlet-rms": ["rms"],
416860
+ "application/vnd.jisp": ["jisp"],
416861
+ "application/vnd.joost.joda-archive": ["joda"],
416862
+ "application/vnd.kahootz": ["ktz", "ktr"],
416863
+ "application/vnd.kde.karbon": ["karbon"],
416864
+ "application/vnd.kde.kchart": ["chrt"],
416865
+ "application/vnd.kde.kformula": ["kfo"],
416866
+ "application/vnd.kde.kivio": ["flw"],
416867
+ "application/vnd.kde.kontour": ["kon"],
416868
+ "application/vnd.kde.kpresenter": ["kpr", "kpt"],
416869
+ "application/vnd.kde.kspread": ["ksp"],
416870
+ "application/vnd.kde.kword": ["kwd", "kwt"],
416871
+ "application/vnd.kenameaapp": ["htke"],
416872
+ "application/vnd.kidspiration": ["kia"],
416873
+ "application/vnd.kinar": ["kne", "knp"],
416874
+ "application/vnd.koan": ["skp", "skd", "skt", "skm"],
416875
+ "application/vnd.kodak-descriptor": ["sse"],
416876
+ "application/vnd.las.las+xml": ["lasxml"],
416877
+ "application/vnd.llamagraphics.life-balance.desktop": ["lbd"],
416878
+ "application/vnd.llamagraphics.life-balance.exchange+xml": ["lbe"],
416879
+ "application/vnd.lotus-1-2-3": ["123"],
416880
+ "application/vnd.lotus-approach": ["apr"],
416881
+ "application/vnd.lotus-freelance": ["pre"],
416882
+ "application/vnd.lotus-notes": ["nsf"],
416883
+ "application/vnd.lotus-organizer": ["org"],
416884
+ "application/vnd.lotus-screencam": ["scm"],
416885
+ "application/vnd.lotus-wordpro": ["lwp"],
416886
+ "application/vnd.macports.portpkg": ["portpkg"],
416887
+ "application/vnd.mapbox-vector-tile": ["mvt"],
416888
+ "application/vnd.mcd": ["mcd"],
416889
+ "application/vnd.medcalcdata": ["mc1"],
416890
+ "application/vnd.mediastation.cdkey": ["cdkey"],
416891
+ "application/vnd.mfer": ["mwf"],
416892
+ "application/vnd.mfmp": ["mfm"],
416893
+ "application/vnd.micrografx.flo": ["flo"],
416894
+ "application/vnd.micrografx.igx": ["igx"],
416895
+ "application/vnd.mif": ["mif"],
416896
+ "application/vnd.mobius.daf": ["daf"],
416897
+ "application/vnd.mobius.dis": ["dis"],
416898
+ "application/vnd.mobius.mbk": ["mbk"],
416899
+ "application/vnd.mobius.mqy": ["mqy"],
416900
+ "application/vnd.mobius.msl": ["msl"],
416901
+ "application/vnd.mobius.plc": ["plc"],
416902
+ "application/vnd.mobius.txf": ["txf"],
416903
+ "application/vnd.mophun.application": ["mpn"],
416904
+ "application/vnd.mophun.certificate": ["mpc"],
416905
+ "application/vnd.mozilla.xul+xml": ["xul"],
416906
+ "application/vnd.ms-artgalry": ["cil"],
416907
+ "application/vnd.ms-cab-compressed": ["cab"],
416908
+ "application/vnd.ms-excel": ["xls", "xlm", "xla", "xlc", "xlt", "xlw"],
416909
+ "application/vnd.ms-excel.addin.macroenabled.12": ["xlam"],
416910
+ "application/vnd.ms-excel.sheet.binary.macroenabled.12": ["xlsb"],
416911
+ "application/vnd.ms-excel.sheet.macroenabled.12": ["xlsm"],
416912
+ "application/vnd.ms-excel.template.macroenabled.12": ["xltm"],
416913
+ "application/vnd.ms-fontobject": ["eot"],
416914
+ "application/vnd.ms-htmlhelp": ["chm"],
416915
+ "application/vnd.ms-ims": ["ims"],
416916
+ "application/vnd.ms-lrm": ["lrm"],
416917
+ "application/vnd.ms-officetheme": ["thmx"],
416918
+ "application/vnd.ms-outlook": ["msg"],
416919
+ "application/vnd.ms-pki.seccat": ["cat"],
416920
+ "application/vnd.ms-pki.stl": ["*stl"],
416921
+ "application/vnd.ms-powerpoint": ["ppt", "pps", "pot"],
416922
+ "application/vnd.ms-powerpoint.addin.macroenabled.12": ["ppam"],
416923
+ "application/vnd.ms-powerpoint.presentation.macroenabled.12": ["pptm"],
416924
+ "application/vnd.ms-powerpoint.slide.macroenabled.12": ["sldm"],
416925
+ "application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"],
416926
+ "application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"],
416927
+ "application/vnd.ms-project": ["*mpp", "mpt"],
416928
+ "application/vnd.ms-visio.viewer": ["vdx"],
416929
+ "application/vnd.ms-word.document.macroenabled.12": ["docm"],
416930
+ "application/vnd.ms-word.template.macroenabled.12": ["dotm"],
416931
+ "application/vnd.ms-works": ["wps", "wks", "wcm", "wdb"],
416932
+ "application/vnd.ms-wpl": ["wpl"],
416933
+ "application/vnd.ms-xpsdocument": ["xps"],
416934
+ "application/vnd.mseq": ["mseq"],
416935
+ "application/vnd.musician": ["mus"],
416936
+ "application/vnd.muvee.style": ["msty"],
416937
+ "application/vnd.mynfc": ["taglet"],
416938
+ "application/vnd.nato.bindingdataobject+xml": ["bdo"],
416939
+ "application/vnd.neurolanguage.nlu": ["nlu"],
416940
+ "application/vnd.nitf": ["ntf", "nitf"],
416941
+ "application/vnd.noblenet-directory": ["nnd"],
416942
+ "application/vnd.noblenet-sealer": ["nns"],
416943
+ "application/vnd.noblenet-web": ["nnw"],
416944
+ "application/vnd.nokia.n-gage.ac+xml": ["*ac"],
416945
+ "application/vnd.nokia.n-gage.data": ["ngdat"],
416946
+ "application/vnd.nokia.n-gage.symbian.install": ["n-gage"],
416947
+ "application/vnd.nokia.radio-preset": ["rpst"],
416948
+ "application/vnd.nokia.radio-presets": ["rpss"],
416949
+ "application/vnd.novadigm.edm": ["edm"],
416950
+ "application/vnd.novadigm.edx": ["edx"],
416951
+ "application/vnd.novadigm.ext": ["ext"],
416952
+ "application/vnd.oasis.opendocument.chart": ["odc"],
416953
+ "application/vnd.oasis.opendocument.chart-template": ["otc"],
416954
+ "application/vnd.oasis.opendocument.database": ["odb"],
416955
+ "application/vnd.oasis.opendocument.formula": ["odf"],
416956
+ "application/vnd.oasis.opendocument.formula-template": ["odft"],
416957
+ "application/vnd.oasis.opendocument.graphics": ["odg"],
416958
+ "application/vnd.oasis.opendocument.graphics-template": ["otg"],
416959
+ "application/vnd.oasis.opendocument.image": ["odi"],
416960
+ "application/vnd.oasis.opendocument.image-template": ["oti"],
416961
+ "application/vnd.oasis.opendocument.presentation": ["odp"],
416962
+ "application/vnd.oasis.opendocument.presentation-template": ["otp"],
416963
+ "application/vnd.oasis.opendocument.spreadsheet": ["ods"],
416964
+ "application/vnd.oasis.opendocument.spreadsheet-template": ["ots"],
416965
+ "application/vnd.oasis.opendocument.text": ["odt"],
416966
+ "application/vnd.oasis.opendocument.text-master": ["odm"],
416967
+ "application/vnd.oasis.opendocument.text-template": ["ott"],
416968
+ "application/vnd.oasis.opendocument.text-web": ["oth"],
416969
+ "application/vnd.olpc-sugar": ["xo"],
416970
+ "application/vnd.oma.dd2+xml": ["dd2"],
416971
+ "application/vnd.openblox.game+xml": ["obgx"],
416972
+ "application/vnd.openofficeorg.extension": ["oxt"],
416973
+ "application/vnd.openstreetmap.data+xml": ["osm"],
416974
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation": [
416975
+ "pptx"
416976
+ ],
416977
+ "application/vnd.openxmlformats-officedocument.presentationml.slide": [
416978
+ "sldx"
416979
+ ],
416980
+ "application/vnd.openxmlformats-officedocument.presentationml.slideshow": [
416981
+ "ppsx"
416982
+ ],
416983
+ "application/vnd.openxmlformats-officedocument.presentationml.template": [
416984
+ "potx"
416985
+ ],
416986
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ["xlsx"],
416987
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.template": [
416988
+ "xltx"
416989
+ ],
416990
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document": [
416991
+ "docx"
416992
+ ],
416993
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.template": [
416994
+ "dotx"
416995
+ ],
416996
+ "application/vnd.osgeo.mapguide.package": ["mgp"],
416997
+ "application/vnd.osgi.dp": ["dp"],
416998
+ "application/vnd.osgi.subsystem": ["esa"],
416999
+ "application/vnd.palm": ["pdb", "pqa", "oprc"],
417000
+ "application/vnd.pawaafile": ["paw"],
417001
+ "application/vnd.pg.format": ["str"],
417002
+ "application/vnd.pg.osasli": ["ei6"],
417003
+ "application/vnd.picsel": ["efif"],
417004
+ "application/vnd.pmi.widget": ["wg"],
417005
+ "application/vnd.pocketlearn": ["plf"],
417006
+ "application/vnd.powerbuilder6": ["pbd"],
417007
+ "application/vnd.previewsystems.box": ["box"],
417008
+ "application/vnd.procrate.brushset": ["brushset"],
417009
+ "application/vnd.procreate.brush": ["brush"],
417010
+ "application/vnd.procreate.dream": ["drm"],
417011
+ "application/vnd.proteus.magazine": ["mgz"],
417012
+ "application/vnd.publishare-delta-tree": ["qps"],
417013
+ "application/vnd.pvi.ptid1": ["ptid"],
417014
+ "application/vnd.pwg-xhtml-print+xml": ["xhtm"],
417015
+ "application/vnd.quark.quarkxpress": [
417016
+ "qxd",
417017
+ "qxt",
417018
+ "qwd",
417019
+ "qwt",
417020
+ "qxl",
417021
+ "qxb"
417022
+ ],
417023
+ "application/vnd.rar": ["rar"],
417024
+ "application/vnd.realvnc.bed": ["bed"],
417025
+ "application/vnd.recordare.musicxml": ["mxl"],
417026
+ "application/vnd.recordare.musicxml+xml": ["musicxml"],
417027
+ "application/vnd.rig.cryptonote": ["cryptonote"],
417028
+ "application/vnd.rim.cod": ["cod"],
417029
+ "application/vnd.rn-realmedia": ["rm"],
417030
+ "application/vnd.rn-realmedia-vbr": ["rmvb"],
417031
+ "application/vnd.route66.link66+xml": ["link66"],
417032
+ "application/vnd.sailingtracker.track": ["st"],
417033
+ "application/vnd.seemail": ["see"],
417034
+ "application/vnd.sema": ["sema"],
417035
+ "application/vnd.semd": ["semd"],
417036
+ "application/vnd.semf": ["semf"],
417037
+ "application/vnd.shana.informed.formdata": ["ifm"],
417038
+ "application/vnd.shana.informed.formtemplate": ["itp"],
417039
+ "application/vnd.shana.informed.interchange": ["iif"],
417040
+ "application/vnd.shana.informed.package": ["ipk"],
417041
+ "application/vnd.simtech-mindmapper": ["twd", "twds"],
417042
+ "application/vnd.smaf": ["mmf"],
417043
+ "application/vnd.smart.teacher": ["teacher"],
417044
+ "application/vnd.software602.filler.form+xml": ["fo"],
417045
+ "application/vnd.solent.sdkm+xml": ["sdkm", "sdkd"],
417046
+ "application/vnd.spotfire.dxp": ["dxp"],
417047
+ "application/vnd.spotfire.sfs": ["sfs"],
417048
+ "application/vnd.stardivision.calc": ["sdc"],
417049
+ "application/vnd.stardivision.draw": ["sda"],
417050
+ "application/vnd.stardivision.impress": ["sdd"],
417051
+ "application/vnd.stardivision.math": ["smf"],
417052
+ "application/vnd.stardivision.writer": ["sdw", "vor"],
417053
+ "application/vnd.stardivision.writer-global": ["sgl"],
417054
+ "application/vnd.stepmania.package": ["smzip"],
417055
+ "application/vnd.stepmania.stepchart": ["sm"],
417056
+ "application/vnd.sun.wadl+xml": ["wadl"],
417057
+ "application/vnd.sun.xml.calc": ["sxc"],
417058
+ "application/vnd.sun.xml.calc.template": ["stc"],
417059
+ "application/vnd.sun.xml.draw": ["sxd"],
417060
+ "application/vnd.sun.xml.draw.template": ["std"],
417061
+ "application/vnd.sun.xml.impress": ["sxi"],
417062
+ "application/vnd.sun.xml.impress.template": ["sti"],
417063
+ "application/vnd.sun.xml.math": ["sxm"],
417064
+ "application/vnd.sun.xml.writer": ["sxw"],
417065
+ "application/vnd.sun.xml.writer.global": ["sxg"],
417066
+ "application/vnd.sun.xml.writer.template": ["stw"],
417067
+ "application/vnd.sus-calendar": ["sus", "susp"],
417068
+ "application/vnd.svd": ["svd"],
417069
+ "application/vnd.symbian.install": ["sis", "sisx"],
417070
+ "application/vnd.syncml+xml": ["xsm"],
417071
+ "application/vnd.syncml.dm+wbxml": ["bdm"],
417072
+ "application/vnd.syncml.dm+xml": ["xdm"],
417073
+ "application/vnd.syncml.dmddf+xml": ["ddf"],
417074
+ "application/vnd.tao.intent-module-archive": ["tao"],
417075
+ "application/vnd.tcpdump.pcap": ["pcap", "cap", "dmp"],
417076
+ "application/vnd.tmobile-livetv": ["tmo"],
417077
+ "application/vnd.trid.tpt": ["tpt"],
417078
+ "application/vnd.triscape.mxs": ["mxs"],
417079
+ "application/vnd.trueapp": ["tra"],
417080
+ "application/vnd.ufdl": ["ufd", "ufdl"],
417081
+ "application/vnd.uiq.theme": ["utz"],
417082
+ "application/vnd.umajin": ["umj"],
417083
+ "application/vnd.unity": ["unityweb"],
417084
+ "application/vnd.uoml+xml": ["uoml", "uo"],
417085
+ "application/vnd.vcx": ["vcx"],
417086
+ "application/vnd.visio": ["vsd", "vst", "vss", "vsw", "vsdx", "vtx"],
417087
+ "application/vnd.visionary": ["vis"],
417088
+ "application/vnd.vsf": ["vsf"],
417089
+ "application/vnd.wap.wbxml": ["wbxml"],
417090
+ "application/vnd.wap.wmlc": ["wmlc"],
417091
+ "application/vnd.wap.wmlscriptc": ["wmlsc"],
417092
+ "application/vnd.webturbo": ["wtb"],
417093
+ "application/vnd.wolfram.player": ["nbp"],
417094
+ "application/vnd.wordperfect": ["wpd"],
417095
+ "application/vnd.wqd": ["wqd"],
417096
+ "application/vnd.wt.stf": ["stf"],
417097
+ "application/vnd.xara": ["xar"],
417098
+ "application/vnd.xfdl": ["xfdl"],
417099
+ "application/vnd.yamaha.hv-dic": ["hvd"],
417100
+ "application/vnd.yamaha.hv-script": ["hvs"],
417101
+ "application/vnd.yamaha.hv-voice": ["hvp"],
417102
+ "application/vnd.yamaha.openscoreformat": ["osf"],
417103
+ "application/vnd.yamaha.openscoreformat.osfpvg+xml": ["osfpvg"],
417104
+ "application/vnd.yamaha.smaf-audio": ["saf"],
417105
+ "application/vnd.yamaha.smaf-phrase": ["spf"],
417106
+ "application/vnd.yellowriver-custom-menu": ["cmp"],
417107
+ "application/vnd.zul": ["zir", "zirz"],
417108
+ "application/vnd.zzazz.deck+xml": ["zaz"],
417109
+ "application/x-7z-compressed": ["7z"],
417110
+ "application/x-abiword": ["abw"],
417111
+ "application/x-ace-compressed": ["ace"],
417112
+ "application/x-apple-diskimage": ["*dmg"],
417113
+ "application/x-arj": ["arj"],
417114
+ "application/x-authorware-bin": ["aab", "x32", "u32", "vox"],
417115
+ "application/x-authorware-map": ["aam"],
417116
+ "application/x-authorware-seg": ["aas"],
417117
+ "application/x-bcpio": ["bcpio"],
417118
+ "application/x-bdoc": ["*bdoc"],
417119
+ "application/x-bittorrent": ["torrent"],
417120
+ "application/x-blender": ["blend"],
417121
+ "application/x-blorb": ["blb", "blorb"],
417122
+ "application/x-bzip": ["bz"],
417123
+ "application/x-bzip2": ["bz2", "boz"],
417124
+ "application/x-cbr": ["cbr", "cba", "cbt", "cbz", "cb7"],
417125
+ "application/x-cdlink": ["vcd"],
417126
+ "application/x-cfs-compressed": ["cfs"],
417127
+ "application/x-chat": ["chat"],
417128
+ "application/x-chess-pgn": ["pgn"],
417129
+ "application/x-chrome-extension": ["crx"],
417130
+ "application/x-cocoa": ["cco"],
417131
+ "application/x-compressed": ["*rar"],
417132
+ "application/x-conference": ["nsc"],
417133
+ "application/x-cpio": ["cpio"],
417134
+ "application/x-csh": ["csh"],
417135
+ "application/x-debian-package": ["*deb", "udeb"],
417136
+ "application/x-dgc-compressed": ["dgc"],
417137
+ "application/x-director": [
417138
+ "dir",
417139
+ "dcr",
417140
+ "dxr",
417141
+ "cst",
417142
+ "cct",
417143
+ "cxt",
417144
+ "w3d",
417145
+ "fgd",
417146
+ "swa"
417147
+ ],
417148
+ "application/x-doom": ["wad"],
417149
+ "application/x-dtbncx+xml": ["ncx"],
417150
+ "application/x-dtbook+xml": ["dtb"],
417151
+ "application/x-dtbresource+xml": ["res"],
417152
+ "application/x-dvi": ["dvi"],
417153
+ "application/x-envoy": ["evy"],
417154
+ "application/x-eva": ["eva"],
417155
+ "application/x-font-bdf": ["bdf"],
417156
+ "application/x-font-ghostscript": ["gsf"],
417157
+ "application/x-font-linux-psf": ["psf"],
417158
+ "application/x-font-pcf": ["pcf"],
417159
+ "application/x-font-snf": ["snf"],
417160
+ "application/x-font-type1": ["pfa", "pfb", "pfm", "afm"],
417161
+ "application/x-freearc": ["arc"],
417162
+ "application/x-futuresplash": ["spl"],
417163
+ "application/x-gca-compressed": ["gca"],
417164
+ "application/x-glulx": ["ulx"],
417165
+ "application/x-gnumeric": ["gnumeric"],
417166
+ "application/x-gramps-xml": ["gramps"],
417167
+ "application/x-gtar": ["gtar"],
417168
+ "application/x-hdf": ["hdf"],
417169
+ "application/x-httpd-php": ["php"],
417170
+ "application/x-install-instructions": ["install"],
417171
+ "application/x-ipynb+json": ["ipynb"],
417172
+ "application/x-iso9660-image": ["*iso"],
417173
+ "application/x-iwork-keynote-sffkey": ["*key"],
417174
+ "application/x-iwork-numbers-sffnumbers": ["*numbers"],
417175
+ "application/x-iwork-pages-sffpages": ["*pages"],
417176
+ "application/x-java-archive-diff": ["jardiff"],
417177
+ "application/x-java-jnlp-file": ["jnlp"],
417178
+ "application/x-keepass2": ["kdbx"],
417179
+ "application/x-latex": ["latex"],
417180
+ "application/x-lua-bytecode": ["luac"],
417181
+ "application/x-lzh-compressed": ["lzh", "lha"],
417182
+ "application/x-makeself": ["run"],
417183
+ "application/x-mie": ["mie"],
417184
+ "application/x-mobipocket-ebook": ["*prc", "mobi"],
417185
+ "application/x-ms-application": ["application"],
417186
+ "application/x-ms-shortcut": ["lnk"],
417187
+ "application/x-ms-wmd": ["wmd"],
417188
+ "application/x-ms-wmz": ["wmz"],
417189
+ "application/x-ms-xbap": ["xbap"],
417190
+ "application/x-msaccess": ["mdb"],
417191
+ "application/x-msbinder": ["obd"],
417192
+ "application/x-mscardfile": ["crd"],
417193
+ "application/x-msclip": ["clp"],
417194
+ "application/x-msdos-program": ["*exe"],
417195
+ "application/x-msdownload": ["*exe", "*dll", "com", "bat", "*msi"],
417196
+ "application/x-msmediaview": ["mvb", "m13", "m14"],
417197
+ "application/x-msmetafile": ["*wmf", "*wmz", "*emf", "emz"],
417198
+ "application/x-msmoney": ["mny"],
417199
+ "application/x-mspublisher": ["pub"],
417200
+ "application/x-msschedule": ["scd"],
417201
+ "application/x-msterminal": ["trm"],
417202
+ "application/x-mswrite": ["wri"],
417203
+ "application/x-netcdf": ["nc", "cdf"],
417204
+ "application/x-ns-proxy-autoconfig": ["pac"],
417205
+ "application/x-nzb": ["nzb"],
417206
+ "application/x-perl": ["pl", "pm"],
417207
+ "application/x-pilot": ["*prc", "*pdb"],
417208
+ "application/x-pkcs12": ["p12", "pfx"],
417209
+ "application/x-pkcs7-certificates": ["p7b", "spc"],
417210
+ "application/x-pkcs7-certreqresp": ["p7r"],
417211
+ "application/x-rar-compressed": ["*rar"],
417212
+ "application/x-redhat-package-manager": ["rpm"],
417213
+ "application/x-research-info-systems": ["ris"],
417214
+ "application/x-sea": ["sea"],
417215
+ "application/x-sh": ["sh"],
417216
+ "application/x-shar": ["shar"],
417217
+ "application/x-shockwave-flash": ["swf"],
417218
+ "application/x-silverlight-app": ["xap"],
417219
+ "application/x-sql": ["*sql"],
417220
+ "application/x-stuffit": ["sit"],
417221
+ "application/x-stuffitx": ["sitx"],
417222
+ "application/x-subrip": ["srt"],
417223
+ "application/x-sv4cpio": ["sv4cpio"],
417224
+ "application/x-sv4crc": ["sv4crc"],
417225
+ "application/x-t3vm-image": ["t3"],
417226
+ "application/x-tads": ["gam"],
417227
+ "application/x-tar": ["tar"],
417228
+ "application/x-tcl": ["tcl", "tk"],
417229
+ "application/x-tex": ["tex"],
417230
+ "application/x-tex-tfm": ["tfm"],
417231
+ "application/x-texinfo": ["texinfo", "texi"],
417232
+ "application/x-tgif": ["*obj"],
417233
+ "application/x-ustar": ["ustar"],
417234
+ "application/x-virtualbox-hdd": ["hdd"],
417235
+ "application/x-virtualbox-ova": ["ova"],
417236
+ "application/x-virtualbox-ovf": ["ovf"],
417237
+ "application/x-virtualbox-vbox": ["vbox"],
417238
+ "application/x-virtualbox-vbox-extpack": ["vbox-extpack"],
417239
+ "application/x-virtualbox-vdi": ["vdi"],
417240
+ "application/x-virtualbox-vhd": ["vhd"],
417241
+ "application/x-virtualbox-vmdk": ["vmdk"],
417242
+ "application/x-wais-source": ["src"],
417243
+ "application/x-web-app-manifest+json": ["webapp"],
417244
+ "application/x-x509-ca-cert": ["der", "crt", "pem"],
417245
+ "application/x-xfig": ["fig"],
417246
+ "application/x-xliff+xml": ["*xlf"],
417247
+ "application/x-xpinstall": ["xpi"],
417248
+ "application/x-xz": ["xz"],
417249
+ "application/x-zip-compressed": ["*zip"],
417250
+ "application/x-zmachine": ["z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8"],
417251
+ "audio/vnd.dece.audio": ["uva", "uvva"],
417252
+ "audio/vnd.digital-winds": ["eol"],
417253
+ "audio/vnd.dra": ["dra"],
417254
+ "audio/vnd.dts": ["dts"],
417255
+ "audio/vnd.dts.hd": ["dtshd"],
417256
+ "audio/vnd.lucent.voice": ["lvp"],
417257
+ "audio/vnd.ms-playready.media.pya": ["pya"],
417258
+ "audio/vnd.nuera.ecelp4800": ["ecelp4800"],
417259
+ "audio/vnd.nuera.ecelp7470": ["ecelp7470"],
417260
+ "audio/vnd.nuera.ecelp9600": ["ecelp9600"],
417261
+ "audio/vnd.rip": ["rip"],
417262
+ "audio/x-aac": ["*aac"],
417263
+ "audio/x-aiff": ["aif", "aiff", "aifc"],
417264
+ "audio/x-caf": ["caf"],
417265
+ "audio/x-flac": ["flac"],
417266
+ "audio/x-m4a": ["*m4a"],
417267
+ "audio/x-matroska": ["mka"],
417268
+ "audio/x-mpegurl": ["m3u"],
417269
+ "audio/x-ms-wax": ["wax"],
417270
+ "audio/x-ms-wma": ["wma"],
417271
+ "audio/x-pn-realaudio": ["ram", "ra"],
417272
+ "audio/x-pn-realaudio-plugin": ["rmp"],
417273
+ "audio/x-realaudio": ["*ra"],
417274
+ "audio/x-wav": ["*wav"],
417275
+ "chemical/x-cdx": ["cdx"],
417276
+ "chemical/x-cif": ["cif"],
417277
+ "chemical/x-cmdf": ["cmdf"],
417278
+ "chemical/x-cml": ["cml"],
417279
+ "chemical/x-csml": ["csml"],
417280
+ "chemical/x-xyz": ["xyz"],
417281
+ "image/prs.btif": ["btif", "btf"],
417282
+ "image/prs.pti": ["pti"],
417283
+ "image/vnd.adobe.photoshop": ["psd"],
417284
+ "image/vnd.airzip.accelerator.azv": ["azv"],
417285
+ "image/vnd.blockfact.facti": ["facti"],
417286
+ "image/vnd.dece.graphic": ["uvi", "uvvi", "uvg", "uvvg"],
417287
+ "image/vnd.djvu": ["djvu", "djv"],
417288
+ "image/vnd.dvb.subtitle": ["*sub"],
417289
+ "image/vnd.dwg": ["dwg"],
417290
+ "image/vnd.dxf": ["dxf"],
417291
+ "image/vnd.fastbidsheet": ["fbs"],
417292
+ "image/vnd.fpx": ["fpx"],
417293
+ "image/vnd.fst": ["fst"],
417294
+ "image/vnd.fujixerox.edmics-mmr": ["mmr"],
417295
+ "image/vnd.fujixerox.edmics-rlc": ["rlc"],
417296
+ "image/vnd.microsoft.icon": ["ico"],
417297
+ "image/vnd.ms-dds": ["dds"],
417298
+ "image/vnd.ms-modi": ["mdi"],
417299
+ "image/vnd.ms-photo": ["wdp"],
417300
+ "image/vnd.net-fpx": ["npx"],
417301
+ "image/vnd.pco.b16": ["b16"],
417302
+ "image/vnd.tencent.tap": ["tap"],
417303
+ "image/vnd.valve.source.texture": ["vtf"],
417304
+ "image/vnd.wap.wbmp": ["wbmp"],
417305
+ "image/vnd.xiff": ["xif"],
417306
+ "image/vnd.zbrush.pcx": ["pcx"],
417307
+ "image/x-3ds": ["3ds"],
417308
+ "image/x-adobe-dng": ["dng"],
417309
+ "image/x-cmu-raster": ["ras"],
417310
+ "image/x-cmx": ["cmx"],
417311
+ "image/x-freehand": ["fh", "fhc", "fh4", "fh5", "fh7"],
417312
+ "image/x-icon": ["*ico"],
417313
+ "image/x-jng": ["jng"],
417314
+ "image/x-mrsid-image": ["sid"],
417315
+ "image/x-ms-bmp": ["*bmp"],
417316
+ "image/x-pcx": ["*pcx"],
417317
+ "image/x-pict": ["pic", "pct"],
417318
+ "image/x-portable-anymap": ["pnm"],
417319
+ "image/x-portable-bitmap": ["pbm"],
417320
+ "image/x-portable-graymap": ["pgm"],
417321
+ "image/x-portable-pixmap": ["ppm"],
417322
+ "image/x-rgb": ["rgb"],
417323
+ "image/x-tga": ["tga"],
417324
+ "image/x-xbitmap": ["xbm"],
417325
+ "image/x-xpixmap": ["xpm"],
417326
+ "image/x-xwindowdump": ["xwd"],
417327
+ "message/vnd.wfa.wsc": ["wsc"],
417328
+ "model/vnd.bary": ["bary"],
417329
+ "model/vnd.cld": ["cld"],
417330
+ "model/vnd.collada+xml": ["dae"],
417331
+ "model/vnd.dwf": ["dwf"],
417332
+ "model/vnd.gdl": ["gdl"],
417333
+ "model/vnd.gtw": ["gtw"],
417334
+ "model/vnd.mts": ["*mts"],
417335
+ "model/vnd.opengex": ["ogex"],
417336
+ "model/vnd.parasolid.transmit.binary": ["x_b"],
417337
+ "model/vnd.parasolid.transmit.text": ["x_t"],
417338
+ "model/vnd.pytha.pyox": ["pyo", "pyox"],
417339
+ "model/vnd.sap.vds": ["vds"],
417340
+ "model/vnd.usda": ["usda"],
417341
+ "model/vnd.usdz+zip": ["usdz"],
417342
+ "model/vnd.valve.source.compiled-map": ["bsp"],
417343
+ "model/vnd.vtu": ["vtu"],
417344
+ "text/prs.lines.tag": ["dsc"],
417345
+ "text/vnd.curl": ["curl"],
417346
+ "text/vnd.curl.dcurl": ["dcurl"],
417347
+ "text/vnd.curl.mcurl": ["mcurl"],
417348
+ "text/vnd.curl.scurl": ["scurl"],
417349
+ "text/vnd.dvb.subtitle": ["sub"],
417350
+ "text/vnd.familysearch.gedcom": ["ged"],
417351
+ "text/vnd.fly": ["fly"],
417352
+ "text/vnd.fmi.flexstor": ["flx"],
417353
+ "text/vnd.graphviz": ["gv"],
417354
+ "text/vnd.in3d.3dml": ["3dml"],
417355
+ "text/vnd.in3d.spot": ["spot"],
417356
+ "text/vnd.sun.j2me.app-descriptor": ["jad"],
417357
+ "text/vnd.wap.wml": ["wml"],
417358
+ "text/vnd.wap.wmlscript": ["wmls"],
417359
+ "text/x-asm": ["s", "asm"],
417360
+ "text/x-c": ["c", "cc", "cxx", "cpp", "h", "hh", "dic"],
417361
+ "text/x-component": ["htc"],
417362
+ "text/x-fortran": ["f", "for", "f77", "f90"],
417363
+ "text/x-handlebars-template": ["hbs"],
417364
+ "text/x-java-source": ["java"],
417365
+ "text/x-lua": ["lua"],
417366
+ "text/x-markdown": ["mkd"],
417367
+ "text/x-nfo": ["nfo"],
417368
+ "text/x-opml": ["opml"],
417369
+ "text/x-org": ["*org"],
417370
+ "text/x-pascal": ["p", "pas"],
417371
+ "text/x-processing": ["pde"],
417372
+ "text/x-sass": ["sass"],
417373
+ "text/x-scss": ["scss"],
417374
+ "text/x-setext": ["etx"],
417375
+ "text/x-sfv": ["sfv"],
417376
+ "text/x-suse-ymp": ["ymp"],
417377
+ "text/x-uuencode": ["uu"],
417378
+ "text/x-vcalendar": ["vcs"],
417379
+ "text/x-vcard": ["vcf"],
417380
+ "video/vnd.dece.hd": ["uvh", "uvvh"],
417381
+ "video/vnd.dece.mobile": ["uvm", "uvvm"],
417382
+ "video/vnd.dece.pd": ["uvp", "uvvp"],
417383
+ "video/vnd.dece.sd": ["uvs", "uvvs"],
417384
+ "video/vnd.dece.video": ["uvv", "uvvv"],
417385
+ "video/vnd.dvb.file": ["dvb"],
417386
+ "video/vnd.fvt": ["fvt"],
417387
+ "video/vnd.mpegurl": ["mxu", "m4u"],
417388
+ "video/vnd.ms-playready.media.pyv": ["pyv"],
417389
+ "video/vnd.uvvu.mp4": ["uvu", "uvvu"],
417390
+ "video/vnd.vivo": ["viv"],
417391
+ "video/x-f4v": ["f4v"],
417392
+ "video/x-fli": ["fli"],
417393
+ "video/x-flv": ["flv"],
417394
+ "video/x-m4v": ["m4v"],
417395
+ "video/x-matroska": ["mkv", "mk3d", "mks"],
417396
+ "video/x-mng": ["mng"],
417397
+ "video/x-ms-asf": ["asf", "asx"],
417398
+ "video/x-ms-vob": ["vob"],
417399
+ "video/x-ms-wm": ["wm"],
417400
+ "video/x-ms-wmv": ["wmv"],
417401
+ "video/x-ms-wmx": ["wmx"],
417402
+ "video/x-ms-wvx": ["wvx"],
417403
+ "video/x-msvideo": ["avi"],
417404
+ "video/x-sgi-movie": ["movie"],
417405
+ "video/x-smv": ["smv"],
417406
+ "x-conference/x-cooltalk": ["ice"]
417407
+ };
417408
+ Object.freeze(types6);
417409
+ var other_default = types6;
417410
+
417411
+ // ../../node_modules/mime/dist/types/standard.js
417412
+ var types7 = {
417413
+ "application/andrew-inset": ["ez"],
417414
+ "application/appinstaller": ["appinstaller"],
417415
+ "application/applixware": ["aw"],
417416
+ "application/appx": ["appx"],
417417
+ "application/appxbundle": ["appxbundle"],
417418
+ "application/atom+xml": ["atom"],
417419
+ "application/atomcat+xml": ["atomcat"],
417420
+ "application/atomdeleted+xml": ["atomdeleted"],
417421
+ "application/atomsvc+xml": ["atomsvc"],
417422
+ "application/atsc-dwd+xml": ["dwd"],
417423
+ "application/atsc-held+xml": ["held"],
417424
+ "application/atsc-rsat+xml": ["rsat"],
417425
+ "application/automationml-aml+xml": ["aml"],
417426
+ "application/automationml-amlx+zip": ["amlx"],
417427
+ "application/bdoc": ["bdoc"],
417428
+ "application/calendar+xml": ["xcs"],
417429
+ "application/ccxml+xml": ["ccxml"],
417430
+ "application/cdfx+xml": ["cdfx"],
417431
+ "application/cdmi-capability": ["cdmia"],
417432
+ "application/cdmi-container": ["cdmic"],
417433
+ "application/cdmi-domain": ["cdmid"],
417434
+ "application/cdmi-object": ["cdmio"],
417435
+ "application/cdmi-queue": ["cdmiq"],
417436
+ "application/cpl+xml": ["cpl"],
417437
+ "application/cu-seeme": ["cu"],
417438
+ "application/cwl": ["cwl"],
417439
+ "application/dash+xml": ["mpd"],
417440
+ "application/dash-patch+xml": ["mpp"],
417441
+ "application/davmount+xml": ["davmount"],
417442
+ "application/dicom": ["dcm"],
417443
+ "application/docbook+xml": ["dbk"],
417444
+ "application/dssc+der": ["dssc"],
417445
+ "application/dssc+xml": ["xdssc"],
417446
+ "application/ecmascript": ["ecma"],
417447
+ "application/emma+xml": ["emma"],
417448
+ "application/emotionml+xml": ["emotionml"],
417449
+ "application/epub+zip": ["epub"],
417450
+ "application/exi": ["exi"],
417451
+ "application/express": ["exp"],
417452
+ "application/fdf": ["fdf"],
417453
+ "application/fdt+xml": ["fdt"],
417454
+ "application/font-tdpfr": ["pfr"],
417455
+ "application/geo+json": ["geojson"],
417456
+ "application/gml+xml": ["gml"],
417457
+ "application/gpx+xml": ["gpx"],
417458
+ "application/gxf": ["gxf"],
417459
+ "application/gzip": ["gz"],
417460
+ "application/hjson": ["hjson"],
417461
+ "application/hyperstudio": ["stk"],
417462
+ "application/inkml+xml": ["ink", "inkml"],
417463
+ "application/ipfix": ["ipfix"],
417464
+ "application/its+xml": ["its"],
417465
+ "application/java-archive": ["jar", "war", "ear"],
417466
+ "application/java-serialized-object": ["ser"],
417467
+ "application/java-vm": ["class"],
417468
+ "application/javascript": ["*js"],
417469
+ "application/json": ["json", "map"],
417470
+ "application/json5": ["json5"],
417471
+ "application/jsonml+json": ["jsonml"],
417472
+ "application/ld+json": ["jsonld"],
417473
+ "application/lgr+xml": ["lgr"],
417474
+ "application/lost+xml": ["lostxml"],
417475
+ "application/mac-binhex40": ["hqx"],
417476
+ "application/mac-compactpro": ["cpt"],
417477
+ "application/mads+xml": ["mads"],
417478
+ "application/manifest+json": ["webmanifest"],
417479
+ "application/marc": ["mrc"],
417480
+ "application/marcxml+xml": ["mrcx"],
417481
+ "application/mathematica": ["ma", "nb", "mb"],
417482
+ "application/mathml+xml": ["mathml"],
417483
+ "application/mbox": ["mbox"],
417484
+ "application/media-policy-dataset+xml": ["mpf"],
417485
+ "application/mediaservercontrol+xml": ["mscml"],
417486
+ "application/metalink+xml": ["metalink"],
417487
+ "application/metalink4+xml": ["meta4"],
417488
+ "application/mets+xml": ["mets"],
417489
+ "application/mmt-aei+xml": ["maei"],
417490
+ "application/mmt-usd+xml": ["musd"],
417491
+ "application/mods+xml": ["mods"],
417492
+ "application/mp21": ["m21", "mp21"],
417493
+ "application/mp4": ["*mp4", "*mpg4", "mp4s", "m4p"],
417494
+ "application/msix": ["msix"],
417495
+ "application/msixbundle": ["msixbundle"],
417496
+ "application/msword": ["doc", "dot"],
417497
+ "application/mxf": ["mxf"],
417498
+ "application/n-quads": ["nq"],
417499
+ "application/n-triples": ["nt"],
417500
+ "application/node": ["cjs"],
417501
+ "application/octet-stream": [
417502
+ "bin",
417503
+ "dms",
417504
+ "lrf",
417505
+ "mar",
417506
+ "so",
417507
+ "dist",
417508
+ "distz",
417509
+ "pkg",
417510
+ "bpk",
417511
+ "dump",
417512
+ "elc",
417513
+ "deploy",
417514
+ "exe",
417515
+ "dll",
417516
+ "deb",
417517
+ "dmg",
417518
+ "iso",
417519
+ "img",
417520
+ "msi",
417521
+ "msp",
417522
+ "msm",
417523
+ "buffer"
417524
+ ],
417525
+ "application/oda": ["oda"],
417526
+ "application/oebps-package+xml": ["opf"],
417527
+ "application/ogg": ["ogx"],
417528
+ "application/omdoc+xml": ["omdoc"],
417529
+ "application/onenote": [
417530
+ "onetoc",
417531
+ "onetoc2",
417532
+ "onetmp",
417533
+ "onepkg",
417534
+ "one",
417535
+ "onea"
417536
+ ],
417537
+ "application/oxps": ["oxps"],
417538
+ "application/p2p-overlay+xml": ["relo"],
417539
+ "application/patch-ops-error+xml": ["xer"],
417540
+ "application/pdf": ["pdf"],
417541
+ "application/pgp-encrypted": ["pgp"],
417542
+ "application/pgp-keys": ["asc"],
417543
+ "application/pgp-signature": ["sig", "*asc"],
417544
+ "application/pics-rules": ["prf"],
417545
+ "application/pkcs10": ["p10"],
417546
+ "application/pkcs7-mime": ["p7m", "p7c"],
417547
+ "application/pkcs7-signature": ["p7s"],
417548
+ "application/pkcs8": ["p8"],
417549
+ "application/pkix-attr-cert": ["ac"],
417550
+ "application/pkix-cert": ["cer"],
417551
+ "application/pkix-crl": ["crl"],
417552
+ "application/pkix-pkipath": ["pkipath"],
417553
+ "application/pkixcmp": ["pki"],
417554
+ "application/pls+xml": ["pls"],
417555
+ "application/postscript": ["ai", "eps", "ps"],
417556
+ "application/provenance+xml": ["provx"],
417557
+ "application/pskc+xml": ["pskcxml"],
417558
+ "application/raml+yaml": ["raml"],
417559
+ "application/rdf+xml": ["rdf", "owl"],
417560
+ "application/reginfo+xml": ["rif"],
417561
+ "application/relax-ng-compact-syntax": ["rnc"],
417562
+ "application/resource-lists+xml": ["rl"],
417563
+ "application/resource-lists-diff+xml": ["rld"],
417564
+ "application/rls-services+xml": ["rs"],
417565
+ "application/route-apd+xml": ["rapd"],
417566
+ "application/route-s-tsid+xml": ["sls"],
417567
+ "application/route-usd+xml": ["rusd"],
417568
+ "application/rpki-ghostbusters": ["gbr"],
417569
+ "application/rpki-manifest": ["mft"],
417570
+ "application/rpki-roa": ["roa"],
417571
+ "application/rsd+xml": ["rsd"],
417572
+ "application/rss+xml": ["rss"],
417573
+ "application/rtf": ["rtf"],
417574
+ "application/sbml+xml": ["sbml"],
417575
+ "application/scvp-cv-request": ["scq"],
417576
+ "application/scvp-cv-response": ["scs"],
417577
+ "application/scvp-vp-request": ["spq"],
417578
+ "application/scvp-vp-response": ["spp"],
417579
+ "application/sdp": ["sdp"],
417580
+ "application/senml+xml": ["senmlx"],
417581
+ "application/sensml+xml": ["sensmlx"],
417582
+ "application/set-payment-initiation": ["setpay"],
417583
+ "application/set-registration-initiation": ["setreg"],
417584
+ "application/shf+xml": ["shf"],
417585
+ "application/sieve": ["siv", "sieve"],
417586
+ "application/smil+xml": ["smi", "smil"],
417587
+ "application/sparql-query": ["rq"],
417588
+ "application/sparql-results+xml": ["srx"],
417589
+ "application/sql": ["sql"],
417590
+ "application/srgs": ["gram"],
417591
+ "application/srgs+xml": ["grxml"],
417592
+ "application/sru+xml": ["sru"],
417593
+ "application/ssdl+xml": ["ssdl"],
417594
+ "application/ssml+xml": ["ssml"],
417595
+ "application/swid+xml": ["swidtag"],
417596
+ "application/tei+xml": ["tei", "teicorpus"],
417597
+ "application/thraud+xml": ["tfi"],
417598
+ "application/timestamped-data": ["tsd"],
417599
+ "application/toml": ["toml"],
417600
+ "application/trig": ["trig"],
417601
+ "application/ttml+xml": ["ttml"],
417602
+ "application/ubjson": ["ubj"],
417603
+ "application/urc-ressheet+xml": ["rsheet"],
417604
+ "application/urc-targetdesc+xml": ["td"],
417605
+ "application/voicexml+xml": ["vxml"],
417606
+ "application/wasm": ["wasm"],
417607
+ "application/watcherinfo+xml": ["wif"],
417608
+ "application/widget": ["wgt"],
417609
+ "application/winhlp": ["hlp"],
417610
+ "application/wsdl+xml": ["wsdl"],
417611
+ "application/wspolicy+xml": ["wspolicy"],
417612
+ "application/xaml+xml": ["xaml"],
417613
+ "application/xcap-att+xml": ["xav"],
417614
+ "application/xcap-caps+xml": ["xca"],
417615
+ "application/xcap-diff+xml": ["xdf"],
417616
+ "application/xcap-el+xml": ["xel"],
417617
+ "application/xcap-ns+xml": ["xns"],
417618
+ "application/xenc+xml": ["xenc"],
417619
+ "application/xfdf": ["xfdf"],
417620
+ "application/xhtml+xml": ["xhtml", "xht"],
417621
+ "application/xliff+xml": ["xlf"],
417622
+ "application/xml": ["xml", "xsl", "xsd", "rng"],
417623
+ "application/xml-dtd": ["dtd"],
417624
+ "application/xop+xml": ["xop"],
417625
+ "application/xproc+xml": ["xpl"],
417626
+ "application/xslt+xml": ["*xsl", "xslt"],
417627
+ "application/xspf+xml": ["xspf"],
417628
+ "application/xv+xml": ["mxml", "xhvml", "xvml", "xvm"],
417629
+ "application/yang": ["yang"],
417630
+ "application/yin+xml": ["yin"],
417631
+ "application/zip": ["zip"],
417632
+ "application/zip+dotlottie": ["lottie"],
417633
+ "audio/3gpp": ["*3gpp"],
417634
+ "audio/aac": ["adts", "aac"],
417635
+ "audio/adpcm": ["adp"],
417636
+ "audio/amr": ["amr"],
417637
+ "audio/basic": ["au", "snd"],
417638
+ "audio/midi": ["mid", "midi", "kar", "rmi"],
417639
+ "audio/mobile-xmf": ["mxmf"],
417640
+ "audio/mp3": ["*mp3"],
417641
+ "audio/mp4": ["m4a", "mp4a", "m4b"],
417642
+ "audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"],
417643
+ "audio/ogg": ["oga", "ogg", "spx", "opus"],
417644
+ "audio/s3m": ["s3m"],
417645
+ "audio/silk": ["sil"],
417646
+ "audio/wav": ["wav"],
417647
+ "audio/wave": ["*wav"],
417648
+ "audio/webm": ["weba"],
417649
+ "audio/xm": ["xm"],
417650
+ "font/collection": ["ttc"],
417651
+ "font/otf": ["otf"],
417652
+ "font/ttf": ["ttf"],
417653
+ "font/woff": ["woff"],
417654
+ "font/woff2": ["woff2"],
417655
+ "image/aces": ["exr"],
417656
+ "image/apng": ["apng"],
417657
+ "image/avci": ["avci"],
417658
+ "image/avcs": ["avcs"],
417659
+ "image/avif": ["avif"],
417660
+ "image/bmp": ["bmp", "dib"],
417661
+ "image/cgm": ["cgm"],
417662
+ "image/dicom-rle": ["drle"],
417663
+ "image/dpx": ["dpx"],
417664
+ "image/emf": ["emf"],
417665
+ "image/fits": ["fits"],
417666
+ "image/g3fax": ["g3"],
417667
+ "image/gif": ["gif"],
417668
+ "image/heic": ["heic"],
417669
+ "image/heic-sequence": ["heics"],
417670
+ "image/heif": ["heif"],
417671
+ "image/heif-sequence": ["heifs"],
417672
+ "image/hej2k": ["hej2"],
417673
+ "image/ief": ["ief"],
417674
+ "image/jaii": ["jaii"],
417675
+ "image/jais": ["jais"],
417676
+ "image/jls": ["jls"],
417677
+ "image/jp2": ["jp2", "jpg2"],
417678
+ "image/jpeg": ["jpg", "jpeg", "jpe"],
417679
+ "image/jph": ["jph"],
417680
+ "image/jphc": ["jhc"],
417681
+ "image/jpm": ["jpm", "jpgm"],
417682
+ "image/jpx": ["jpx", "jpf"],
417683
+ "image/jxl": ["jxl"],
417684
+ "image/jxr": ["jxr"],
417685
+ "image/jxra": ["jxra"],
417686
+ "image/jxrs": ["jxrs"],
417687
+ "image/jxs": ["jxs"],
417688
+ "image/jxsc": ["jxsc"],
417689
+ "image/jxsi": ["jxsi"],
417690
+ "image/jxss": ["jxss"],
417691
+ "image/ktx": ["ktx"],
417692
+ "image/ktx2": ["ktx2"],
417693
+ "image/pjpeg": ["jfif"],
417694
+ "image/png": ["png"],
417695
+ "image/sgi": ["sgi"],
417696
+ "image/svg+xml": ["svg", "svgz"],
417697
+ "image/t38": ["t38"],
417698
+ "image/tiff": ["tif", "tiff"],
417699
+ "image/tiff-fx": ["tfx"],
417700
+ "image/webp": ["webp"],
417701
+ "image/wmf": ["wmf"],
417702
+ "message/disposition-notification": ["disposition-notification"],
417703
+ "message/global": ["u8msg"],
417704
+ "message/global-delivery-status": ["u8dsn"],
417705
+ "message/global-disposition-notification": ["u8mdn"],
417706
+ "message/global-headers": ["u8hdr"],
417707
+ "message/rfc822": ["eml", "mime", "mht", "mhtml"],
417708
+ "model/3mf": ["3mf"],
417709
+ "model/gltf+json": ["gltf"],
417710
+ "model/gltf-binary": ["glb"],
417711
+ "model/iges": ["igs", "iges"],
417712
+ "model/jt": ["jt"],
417713
+ "model/mesh": ["msh", "mesh", "silo"],
417714
+ "model/mtl": ["mtl"],
417715
+ "model/obj": ["obj"],
417716
+ "model/prc": ["prc"],
417717
+ "model/step": ["step", "stp", "stpnc", "p21", "210"],
417718
+ "model/step+xml": ["stpx"],
417719
+ "model/step+zip": ["stpz"],
417720
+ "model/step-xml+zip": ["stpxz"],
417721
+ "model/stl": ["stl"],
417722
+ "model/u3d": ["u3d"],
417723
+ "model/vrml": ["wrl", "vrml"],
417724
+ "model/x3d+binary": ["*x3db", "x3dbz"],
417725
+ "model/x3d+fastinfoset": ["x3db"],
417726
+ "model/x3d+vrml": ["*x3dv", "x3dvz"],
417727
+ "model/x3d+xml": ["x3d", "x3dz"],
417728
+ "model/x3d-vrml": ["x3dv"],
417729
+ "text/cache-manifest": ["appcache", "manifest"],
417730
+ "text/calendar": ["ics", "ifb"],
417731
+ "text/coffeescript": ["coffee", "litcoffee"],
417732
+ "text/css": ["css"],
417733
+ "text/csv": ["csv"],
417734
+ "text/html": ["html", "htm", "shtml"],
417735
+ "text/jade": ["jade"],
417736
+ "text/javascript": ["js", "mjs"],
417737
+ "text/jsx": ["jsx"],
417738
+ "text/less": ["less"],
417739
+ "text/markdown": ["md", "markdown"],
417740
+ "text/mathml": ["mml"],
417741
+ "text/mdx": ["mdx"],
417742
+ "text/n3": ["n3"],
417743
+ "text/plain": ["txt", "text", "conf", "def", "list", "log", "in", "ini"],
417744
+ "text/richtext": ["rtx"],
417745
+ "text/rtf": ["*rtf"],
417746
+ "text/sgml": ["sgml", "sgm"],
417747
+ "text/shex": ["shex"],
417748
+ "text/slim": ["slim", "slm"],
417749
+ "text/spdx": ["spdx"],
417750
+ "text/stylus": ["stylus", "styl"],
417751
+ "text/tab-separated-values": ["tsv"],
417752
+ "text/troff": ["t", "tr", "roff", "man", "me", "ms"],
417753
+ "text/turtle": ["ttl"],
417754
+ "text/uri-list": ["uri", "uris", "urls"],
417755
+ "text/vcard": ["vcard"],
417756
+ "text/vtt": ["vtt"],
417757
+ "text/wgsl": ["wgsl"],
417758
+ "text/xml": ["*xml"],
417759
+ "text/yaml": ["yaml", "yml"],
417760
+ "video/3gpp": ["3gp", "3gpp"],
417761
+ "video/3gpp2": ["3g2"],
417762
+ "video/h261": ["h261"],
417763
+ "video/h263": ["h263"],
417764
+ "video/h264": ["h264"],
417765
+ "video/iso.segment": ["m4s"],
417766
+ "video/jpeg": ["jpgv"],
417767
+ "video/jpm": ["*jpm", "*jpgm"],
417768
+ "video/mj2": ["mj2", "mjp2"],
417769
+ "video/mp2t": ["ts", "m2t", "m2ts", "mts"],
417770
+ "video/mp4": ["mp4", "mp4v", "mpg4"],
417771
+ "video/mpeg": ["mpeg", "mpg", "mpe", "m1v", "m2v"],
417772
+ "video/ogg": ["ogv"],
417773
+ "video/quicktime": ["qt", "mov"],
417774
+ "video/webm": ["webm"]
417775
+ };
417776
+ Object.freeze(types7);
417777
+ var standard_default = types7;
417778
+
417779
+ // ../../node_modules/mime/dist/src/Mime.js
417780
+ var __classPrivateFieldGet = function(receiver, state2, kind, f4) {
417781
+ if (kind === "a" && !f4)
417782
+ throw new TypeError("Private accessor was defined without a getter");
417783
+ if (typeof state2 === "function" ? receiver !== state2 || !f4 : !state2.has(receiver))
417784
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
417785
+ return kind === "m" ? f4 : kind === "a" ? f4.call(receiver) : f4 ? f4.value : state2.get(receiver);
417786
+ };
417787
+ var _Mime_extensionToType;
417788
+ var _Mime_typeToExtension;
417789
+ var _Mime_typeToExtensions;
417790
+
417791
+ class Mime {
417792
+ constructor(...args2) {
417793
+ _Mime_extensionToType.set(this, new Map);
417794
+ _Mime_typeToExtension.set(this, new Map);
417795
+ _Mime_typeToExtensions.set(this, new Map);
417796
+ for (const arg of args2) {
417797
+ this.define(arg);
417798
+ }
417799
+ }
417800
+ define(typeMap, force = false) {
417801
+ for (let [type3, extensions2] of Object.entries(typeMap)) {
417802
+ type3 = type3.toLowerCase();
417803
+ extensions2 = extensions2.map((ext2) => ext2.toLowerCase());
417804
+ if (!__classPrivateFieldGet(this, _Mime_typeToExtensions, "f").has(type3)) {
417805
+ __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").set(type3, new Set);
417806
+ }
417807
+ const allExtensions = __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type3);
417808
+ let first4 = true;
417809
+ for (let extension2 of extensions2) {
417810
+ const starred = extension2.startsWith("*");
417811
+ extension2 = starred ? extension2.slice(1) : extension2;
417812
+ allExtensions?.add(extension2);
417813
+ if (first4) {
417814
+ __classPrivateFieldGet(this, _Mime_typeToExtension, "f").set(type3, extension2);
417815
+ }
417816
+ first4 = false;
417817
+ if (starred)
417818
+ continue;
417819
+ const currentType = __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(extension2);
417820
+ if (currentType && currentType != type3 && !force) {
417821
+ throw new Error(`"${type3} -> ${extension2}" conflicts with "${currentType} -> ${extension2}". Pass \`force=true\` to override this definition.`);
417822
+ }
417823
+ __classPrivateFieldGet(this, _Mime_extensionToType, "f").set(extension2, type3);
417824
+ }
417825
+ }
417826
+ return this;
417827
+ }
417828
+ getType(path10) {
417829
+ if (typeof path10 !== "string")
417830
+ return null;
417831
+ const last6 = path10.replace(/^.*[/\\]/s, "").toLowerCase();
417832
+ const ext2 = last6.replace(/^.*\./s, "").toLowerCase();
417833
+ const hasPath = last6.length < path10.length;
417834
+ const hasDot = ext2.length < last6.length - 1;
417835
+ if (!hasDot && hasPath)
417836
+ return null;
417837
+ return __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(ext2) ?? null;
417838
+ }
417839
+ getExtension(type3) {
417840
+ if (typeof type3 !== "string")
417841
+ return null;
417842
+ type3 = type3?.split?.(";")[0];
417843
+ return (type3 && __classPrivateFieldGet(this, _Mime_typeToExtension, "f").get(type3.trim().toLowerCase())) ?? null;
417844
+ }
417845
+ getAllExtensions(type3) {
417846
+ if (typeof type3 !== "string")
417847
+ return null;
417848
+ return __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type3.toLowerCase()) ?? null;
417849
+ }
417850
+ _freeze() {
417851
+ this.define = () => {
417852
+ throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
417853
+ };
417854
+ Object.freeze(this);
417855
+ for (const extensions2 of __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").values()) {
417856
+ Object.freeze(extensions2);
417857
+ }
417858
+ return this;
417859
+ }
417860
+ _getTestState() {
417861
+ return {
417862
+ types: __classPrivateFieldGet(this, _Mime_extensionToType, "f"),
417863
+ extensions: __classPrivateFieldGet(this, _Mime_typeToExtension, "f")
417864
+ };
417865
+ }
417866
+ }
417867
+ _Mime_extensionToType = new WeakMap, _Mime_typeToExtension = new WeakMap, _Mime_typeToExtensions = new WeakMap;
417868
+ var Mime_default = Mime;
417869
+
417870
+ // ../../node_modules/mime/dist/src/index.js
417871
+ var src_default = new Mime_default(standard_default, other_default)._freeze();
417872
+
417873
+ // ../common/src/tool-utils/media.ts
417874
+ var MaxMediaSizeBytes = 20 * 1024 * 1024;
417875
+ function readMediaFile(filePath, fileBuffer, contentType) {
417876
+ const mimeType = src_default.getType(filePath);
417877
+ if (!mimeType) {
417878
+ throw new Error(`Unsupported media file ${filePath}`);
417879
+ }
417880
+ if (!isSupportedMimeType(mimeType, contentType)) {
417881
+ throw new Error(`MIME type ${mimeType} is not supported.`);
417882
+ }
417883
+ if (fileBuffer.byteLength > MaxMediaSizeBytes) {
417884
+ throw new Error(`Media file ${filePath} is too large. Max size is 20 MB.`);
417885
+ }
417886
+ return {
417887
+ type: "media",
417888
+ data: Buffer.from(fileBuffer).toString("base64"),
417889
+ mimeType
417890
+ };
417891
+ }
417892
+ var isSupportedMimeType = (mimeType, contentType) => {
417893
+ const normalizedTypes = contentType.map((type3) => type3.toLowerCase());
417894
+ if (normalizedTypes.includes(mimeType)) {
417895
+ return true;
417896
+ }
417897
+ for (const pattern2 of normalizedTypes) {
417898
+ if (pattern2.endsWith("/*")) {
417899
+ const prefix3 = pattern2.slice(0, -2);
417900
+ if (mimeType.startsWith(`${prefix3}/`)) {
417901
+ return true;
417902
+ }
417903
+ }
417904
+ }
417905
+ return false;
417906
+ };
416582
417907
  // src/lib/load-agents.ts
416583
417908
  var logger15 = getLogger("loadAgents");
416584
417909
  async function readAgentsFromDir(dir2) {
@@ -421125,7 +422450,7 @@ async function Module2(moduleArg = {}) {
421125
422450
  return [n2 % 128 | 128, n2 >> 7, ...arr];
421126
422451
  };
421127
422452
  var wasmTypeCodes = { i: 127, p: 127, j: 126, f: 125, d: 124, e: 111 };
421128
- var generateTypePack = (types7) => uleb128EncodeWithLen(Array.from(types7, (type3) => {
422453
+ var generateTypePack = (types9) => uleb128EncodeWithLen(Array.from(types9, (type3) => {
421129
422454
  var code2 = wasmTypeCodes[type3];
421130
422455
  return code2;
421131
422456
  }));
@@ -425830,7 +427155,7 @@ var errorUtil2;
425830
427155
  })(errorUtil2 || (errorUtil2 = {}));
425831
427156
 
425832
427157
  // ../../node_modules/@modelcontextprotocol/sdk/node_modules/zod/dist/esm/v3/types.js
425833
- var __classPrivateFieldGet = function(receiver, state2, kind, f11) {
427158
+ var __classPrivateFieldGet2 = function(receiver, state2, kind, f11) {
425834
427159
  if (kind === "a" && !f11)
425835
427160
  throw new TypeError("Private accessor was defined without a getter");
425836
427161
  if (typeof state2 === "function" ? receiver !== state2 || !f11 : !state2.has(receiver))
@@ -427971,9 +429296,9 @@ class ZodUnion3 extends ZodType3 {
427971
429296
  return this._def.options;
427972
429297
  }
427973
429298
  }
427974
- ZodUnion3.create = (types7, params3) => {
429299
+ ZodUnion3.create = (types9, params3) => {
427975
429300
  return new ZodUnion3({
427976
- options: types7,
429301
+ options: types9,
427977
429302
  typeName: ZodFirstPartyTypeKind2.ZodUnion,
427978
429303
  ...processCreateParams2(params3)
427979
429304
  });
@@ -428618,10 +429943,10 @@ class ZodEnum3 extends ZodType3 {
428618
429943
  });
428619
429944
  return INVALID2;
428620
429945
  }
428621
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f")) {
429946
+ if (!__classPrivateFieldGet2(this, _ZodEnum_cache, "f")) {
428622
429947
  __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), "f");
428623
429948
  }
428624
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f").has(input2.data)) {
429949
+ if (!__classPrivateFieldGet2(this, _ZodEnum_cache, "f").has(input2.data)) {
428625
429950
  const ctx = this._getOrReturnCtx(input2);
428626
429951
  const expectedValues = this._def.values;
428627
429952
  addIssueToContext2(ctx, {
@@ -428690,10 +430015,10 @@ class ZodNativeEnum2 extends ZodType3 {
428690
430015
  });
428691
430016
  return INVALID2;
428692
430017
  }
428693
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f")) {
430018
+ if (!__classPrivateFieldGet2(this, _ZodNativeEnum_cache, "f")) {
428694
430019
  __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util4.getValidEnumValues(this._def.values)), "f");
428695
430020
  }
428696
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f").has(input2.data)) {
430021
+ if (!__classPrivateFieldGet2(this, _ZodNativeEnum_cache, "f").has(input2.data)) {
428697
430022
  const expectedValues = util4.objectValues(nativeEnumValues);
428698
430023
  addIssueToContext2(ctx, {
428699
430024
  received: ctx.data,
@@ -442102,12 +443427,44 @@ function findTodos(message) {
442102
443427
  }, []);
442103
443428
  return todos;
442104
443429
  }
443430
+ // ../common/src/message-utils/workflow.ts
443431
+ function extractBashCommands(content3) {
443432
+ const commands = [];
443433
+ const commandRegex = /!\`(.+?)\`/g;
443434
+ let match33;
443435
+ while ((match33 = commandRegex.exec(content3)) !== null) {
443436
+ const actualCommand = match33[1].trim();
443437
+ if (actualCommand) {
443438
+ commands.push(actualCommand);
443439
+ }
443440
+ }
443441
+ return commands;
443442
+ }
443443
+ var tag9 = "workflow";
443444
+ var workflowRegex = new RegExp(`<${tag9}([^>]*)>(.*?)</${tag9}>`, "gs");
443445
+ function extractWorkflowBashCommands(message) {
443446
+ const workflowContents = [];
443447
+ for (const part of message.parts) {
443448
+ if (part.type === "text") {
443449
+ const matches2 = part.text.matchAll(workflowRegex);
443450
+ for (const match33 of matches2) {
443451
+ const content3 = match33[2];
443452
+ workflowContents.push(content3);
443453
+ }
443454
+ }
443455
+ }
443456
+ let commands = [];
443457
+ for (const x11 of workflowContents) {
443458
+ commands = commands.concat(extractBashCommands(x11));
443459
+ }
443460
+ return commands;
443461
+ }
442105
443462
  // src/output-renderer.ts
442106
443463
  init_source();
442107
443464
 
442108
443465
  // ../../node_modules/eventemitter3/index.mjs
442109
- var import__6 = __toESM(require_eventemitter3(), 1);
442110
- var eventemitter3_default = import__6.default;
443466
+ var import__7 = __toESM(require_eventemitter3(), 1);
443467
+ var eventemitter3_default = import__7.default;
442111
443468
 
442112
443469
  // ../../node_modules/colorette/index.js
442113
443470
  import * as tty3 from "tty";
@@ -444820,27 +446177,6 @@ function parseMcpTool(store, _name, mcpTool) {
444820
446177
  function toJSONValue2(value10) {
444821
446178
  return value10 === undefined ? null : value10;
444822
446179
  }
444823
- function toBase642(bytes) {
444824
- const binString = Array.from(bytes, (byte) => String.fromCodePoint(byte)).join("");
444825
- const base643 = btoa(binString);
444826
- return base643;
444827
- }
444828
- function findBlob(store, url3, mediaType) {
444829
- if (url3.protocol === StoreBlobProtocol) {
444830
- const blob3 = store.query(makeBlobQuery(url3.pathname));
444831
- if (blob3) {
444832
- return {
444833
- data: toBase642(blob3.data),
444834
- mediaType: blob3.mimeType
444835
- };
444836
- }
444837
- } else {
444838
- return {
444839
- data: fetch(url3).then((x11) => x11.blob()).then((blob3) => blob3.arrayBuffer()).then((data) => toBase642(new Uint8Array(data))),
444840
- mediaType
444841
- };
444842
- }
444843
- }
444844
446180
 
444845
446181
  // ../livekit/src/chat/middlewares/utils.ts
444846
446182
  function getPotentialStartIndex(text20, searchedText) {
@@ -444861,9 +446197,9 @@ function getPotentialStartIndex(text20, searchedText) {
444861
446197
  }
444862
446198
 
444863
446199
  // ../livekit/src/chat/middlewares/reasoning-middleware.ts
444864
- function createReasoningMiddleware(tag9 = "think") {
444865
- const tagStart = `<${tag9}>`;
444866
- const tagEnd = `</${tag9}>`;
446200
+ function createReasoningMiddleware(tag10 = "think") {
446201
+ const tagStart = `<${tag10}>`;
446202
+ const tagEnd = `</${tag10}>`;
444867
446203
  let countReasoning = 0;
444868
446204
  let textId = "";
444869
446205
  let buffer4 = "";
@@ -445672,7 +447008,7 @@ function createPatchedFetchForFinetune(accessToken) {
445672
447008
  }
445673
447009
  function createVertexModel(vertex2, modelId) {
445674
447010
  const getBaseURL2 = (location3, projectId) => `https://${location3}-aiplatform.googleapis.com/v1/projects/${projectId}/locations/${location3}/publishers/google`;
445675
- if ("serviceAccountKey" in vertex2) {
447011
+ if ("serviceAccountKey" in vertex2 && vertex2.serviceAccountKey) {
445676
447012
  const service_account_key = JSON.parse(vertex2.serviceAccountKey);
445677
447013
  const location3 = vertex2.location;
445678
447014
  const project3 = service_account_key.project_id;
@@ -445688,7 +447024,7 @@ function createVertexModel(vertex2, modelId) {
445688
447024
  fetch: createPatchedFetchForFinetune()
445689
447025
  })(modelId);
445690
447026
  }
445691
- if ("accessToken" in vertex2) {
447027
+ if ("accessToken" in vertex2 && vertex2.accessToken) {
445692
447028
  const { location: location3, projectId, accessToken } = vertex2;
445693
447029
  return createVertex({
445694
447030
  project: projectId,
@@ -445697,7 +447033,7 @@ function createVertexModel(vertex2, modelId) {
445697
447033
  fetch: createPatchedFetchForFinetune(accessToken)
445698
447034
  })(modelId);
445699
447035
  }
445700
- if ("issueUrl" in vertex2) {
447036
+ if ("issueUrl" in vertex2 && vertex2.issueUrl) {
445701
447037
  const { issueUrl, modelUrl, timeout: timeout5 } = vertex2;
445702
447038
  return createVertex({
445703
447039
  project: "placeholder",
@@ -445925,7 +447261,8 @@ class FlexibleChatTransport {
445925
447261
  ...selectClientTools({
445926
447262
  isSubTask: !!this.isSubTask,
445927
447263
  isCli: !!this.isCli,
445928
- customAgents
447264
+ customAgents,
447265
+ contentType: llm.contentType
445929
447266
  }),
445930
447267
  ...mcpTools || {}
445931
447268
  }, (_val, key3) => {
@@ -445934,6 +447271,9 @@ class FlexibleChatTransport {
445934
447271
  }
445935
447272
  return true;
445936
447273
  });
447274
+ if (tools.readFile) {
447275
+ tools.readFile = handleReadFileOutput(this.store, tools.readFile);
447276
+ }
445937
447277
  const preparedMessages = await prepareMessages(messages2, environment2);
445938
447278
  const modelMessages = await resolvePromise(convertToModelMessages(formatters.llm(preparedMessages), { tools }));
445939
447279
  const stream12 = streamText({
@@ -446018,6 +447358,32 @@ async function resolvePromise(o10) {
446018
447358
  }
446019
447359
  return resolved;
446020
447360
  }
447361
+ function handleReadFileOutput(store, readFile10) {
447362
+ return tool({
447363
+ ...readFile10,
447364
+ toModelOutput: (output2) => {
447365
+ if (output2.type === "media") {
447366
+ const blob3 = findBlob(store, new URL(output2.data), output2.mimeType);
447367
+ if (!blob3) {
447368
+ return { type: "text", value: "Failed to load media." };
447369
+ }
447370
+ return {
447371
+ type: "content",
447372
+ value: [
447373
+ {
447374
+ type: "media",
447375
+ ...blob3
447376
+ }
447377
+ ]
447378
+ };
447379
+ }
447380
+ return {
447381
+ type: "json",
447382
+ value: output2
447383
+ };
447384
+ }
447385
+ });
447386
+ }
446021
447387
 
446022
447388
  // ../livekit/src/chat/live-chat-kit.ts
446023
447389
  var logger23 = getLogger("LiveChatKit");
@@ -446085,7 +447451,7 @@ class LiveChatKit {
446085
447451
  }
446086
447452
  }
446087
447453
  if (onOverrideMessages) {
446088
- await onOverrideMessages({ messages: messages2 });
447454
+ await onOverrideMessages({ messages: messages2, abortSignal: abortSignal2 });
446089
447455
  }
446090
447456
  };
446091
447457
  this.spawn = async () => {
@@ -446105,6 +447471,7 @@ class LiveChatKit {
446105
447471
  this.store.commit(events.taskInited({
446106
447472
  id: taskId2,
446107
447473
  cwd: this.task?.cwd || undefined,
447474
+ modelId: this.task?.modelId || undefined,
446108
447475
  createdAt: new Date,
446109
447476
  initMessage: {
446110
447477
  id: crypto.randomUUID(),
@@ -446179,7 +447546,8 @@ class LiveChatKit {
446179
447546
  if (!task) {
446180
447547
  throw new Error("Task not found");
446181
447548
  }
446182
- const getModel = () => createModel2({ llm: getters.getLLM() });
447549
+ const llm = getters.getLLM();
447550
+ const getModel = () => createModel2({ llm });
446183
447551
  scheduleGenerateTitleJob({
446184
447552
  taskId: this.taskId,
446185
447553
  store,
@@ -446191,7 +447559,8 @@ class LiveChatKit {
446191
447559
  data: lastMessage,
446192
447560
  todos: environment2?.todos || [],
446193
447561
  git: toTaskGitInfo(environment2?.workspace.gitStatus),
446194
- updatedAt: new Date
447562
+ updatedAt: new Date,
447563
+ modelId: llm.id
446195
447564
  }));
446196
447565
  }
446197
447566
  };
@@ -446385,6 +447754,53 @@ class Chat extends AbstractChat {
446385
447754
  return this.state;
446386
447755
  }
446387
447756
  }
447757
+ // src/on-override-messages.ts
447758
+ import { exec as exec8 } from "node:child_process";
447759
+ function createOnOverrideMessages(cwd2) {
447760
+ return async function onOverrideMessages({
447761
+ messages: messages2
447762
+ }) {
447763
+ const lastMessage = messages2.at(-1);
447764
+ if (lastMessage?.role === "user") {
447765
+ await appendWorkflowBashOutputs(cwd2, lastMessage);
447766
+ }
447767
+ };
447768
+ }
447769
+ async function appendWorkflowBashOutputs(cwd2, message) {
447770
+ if (message.role !== "user")
447771
+ return;
447772
+ const commands = extractWorkflowBashCommands(message);
447773
+ if (!commands.length)
447774
+ return [];
447775
+ const bashCommandResults = [];
447776
+ for (const command of commands) {
447777
+ try {
447778
+ const { output: output2, error: error46 } = await executeBashCommand(cwd2, command);
447779
+ bashCommandResults.push({ command, output: output2, error: error46 });
447780
+ } catch (e10) {
447781
+ const error46 = e10 instanceof Error ? e10.message : String(e10);
447782
+ bashCommandResults.push({ command, output: "", error: error46 });
447783
+ if (e10 instanceof Error && e10.name === "AbortError") {
447784
+ break;
447785
+ }
447786
+ }
447787
+ }
447788
+ if (bashCommandResults.length) {
447789
+ prompts.injectBashOutputs(message, bashCommandResults);
447790
+ }
447791
+ }
447792
+ function executeBashCommand(cwd2, command) {
447793
+ return new Promise((resolve11) => {
447794
+ exec8(command, { cwd: cwd2 }, (error46, stdout4, stderr5) => {
447795
+ if (error46) {
447796
+ resolve11({ output: stdout4, error: stderr5 || error46.message });
447797
+ } else {
447798
+ resolve11({ output: stdout4 });
447799
+ }
447800
+ });
447801
+ });
447802
+ }
447803
+
446388
447804
  // src/tools/apply-diff.ts
446389
447805
  import * as fs12 from "node:fs/promises";
446390
447806
 
@@ -446637,7 +448053,7 @@ var editNotebook2 = () => async ({ path: filePath, cellId, content: content3 },
446637
448053
 
446638
448054
  // src/tools/execute-command.ts
446639
448055
  import {
446640
- exec as exec8
448056
+ exec as exec9
446641
448057
  } from "node:child_process";
446642
448058
  import * as path27 from "node:path";
446643
448059
  import { promisify as promisify4 } from "node:util";
@@ -446687,7 +448103,7 @@ function isExecException(error46) {
446687
448103
  return error46 instanceof Error && "cmd" in error46 && "killed" in error46 && "code" in error46 && "signal" in error46;
446688
448104
  }
446689
448105
  async function execWithExitCode(timeout5, command, options6) {
446690
- const execCommand = promisify4(exec8);
448106
+ const execCommand = promisify4(exec9);
446691
448107
  try {
446692
448108
  const { stdout: stdout4, stderr: stderr5 } = await execCommand(command, options6);
446693
448109
  return {
@@ -446788,10 +448204,16 @@ var newTask = (options6) => async ({ _meta, agentType }) => {
446788
448204
 
446789
448205
  // src/tools/read-file.ts
446790
448206
  import * as fs15 from "node:fs/promises";
446791
- var readFile15 = () => async ({ path: path28, startLine, endLine }, { cwd: cwd2 }) => {
448207
+ var readFile14 = () => async ({ path: path28, startLine, endLine }, { cwd: cwd2, contentType }) => {
446792
448208
  const resolvedPath = resolvePath(path28, cwd2);
446793
448209
  const fileBuffer = await fs15.readFile(resolvedPath);
446794
- validateTextFile(fileBuffer);
448210
+ const isPlainTextFile2 = isPlainText(fileBuffer);
448211
+ if (contentType && contentType.length > 0 && !isPlainTextFile2) {
448212
+ return readMediaFile(resolvedPath, fileBuffer, contentType);
448213
+ }
448214
+ if (!isPlainTextFile2) {
448215
+ throw new Error("Reading binary files is not supported.");
448216
+ }
446795
448217
  const fileContent3 = fileBuffer.toString();
446796
448218
  const addLineNumbers = !!process.env.VSCODE_TEST_OPTIONS;
446797
448219
  return selectFileContent(fileContent3, {
@@ -446836,7 +448258,7 @@ var writeToFile2 = () => async ({ path: path28, content: content3 }, { cwd: cwd2
446836
448258
 
446837
448259
  // src/tools/index.ts
446838
448260
  var ToolMap = {
446839
- readFile: readFile15,
448261
+ readFile: readFile14,
446840
448262
  applyDiff: applyDiff2,
446841
448263
  editNotebook: editNotebook2,
446842
448264
  globFiles: globFiles3,
@@ -446848,7 +448270,7 @@ var ToolMap = {
446848
448270
  searchFiles: searchFiles2,
446849
448271
  executeCommand: executeCommand2
446850
448272
  };
446851
- async function executeToolCall(tool2, options6, cwd2, abortSignal) {
448273
+ async function executeToolCall(tool2, options6, cwd2, abortSignal, contentType) {
446852
448274
  const toolName = getToolName(tool2);
446853
448275
  const toolFunction = ToolMap[toolName];
446854
448276
  if (toolFunction) {
@@ -446857,7 +448279,8 @@ async function executeToolCall(tool2, options6, cwd2, abortSignal) {
446857
448279
  messages: [],
446858
448280
  toolCallId: tool2.toolCallId,
446859
448281
  abortSignal,
446860
- cwd: cwd2
448282
+ cwd: cwd2,
448283
+ contentType
446861
448284
  });
446862
448285
  } catch (e10) {
446863
448286
  return {
@@ -446891,6 +448314,7 @@ var logger26 = getLogger("TaskRunner");
446891
448314
  class TaskRunner {
446892
448315
  store;
446893
448316
  cwd;
448317
+ llm;
446894
448318
  toolCallOptions;
446895
448319
  stepCount;
446896
448320
  todos = [];
@@ -446904,6 +448328,7 @@ class TaskRunner {
446904
448328
  }
446905
448329
  constructor(options6) {
446906
448330
  this.cwd = options6.cwd;
448331
+ this.llm = options6.llm;
446907
448332
  this.toolCallOptions = {
446908
448333
  rg: options6.rg,
446909
448334
  customAgents: options6.customAgents,
@@ -446930,6 +448355,7 @@ class TaskRunner {
446930
448355
  isSubTask: options6.isSubTask,
446931
448356
  customAgent: options6.customAgent,
446932
448357
  outputSchema: options6.outputSchema,
448358
+ onOverrideMessages: createOnOverrideMessages(this.cwd),
446933
448359
  getters: {
446934
448360
  getLLM: () => options6.llm,
446935
448361
  getEnvironment: async () => ({
@@ -447059,7 +448485,7 @@ class TaskRunner {
447059
448485
  continue;
447060
448486
  const toolName = getToolName(toolCall);
447061
448487
  logger26.trace(`Found tool call: ${toolName} with args: ${JSON.stringify(toolCall.input)}`);
447062
- const toolResult = await processContentOutput(this.store, await executeToolCall(toolCall, this.toolCallOptions, this.cwd));
448488
+ const toolResult = await processContentOutput(this.store, await executeToolCall(toolCall, this.toolCallOptions, this.cwd, undefined, this.llm.contentType));
447063
448489
  await this.chatKit.chat.addToolResult({
447064
448490
  tool: toolName,
447065
448491
  toolCallId: toolCall.toolCallId,
@@ -447169,8 +448595,8 @@ function isNewerVersion(latest, current2) {
447169
448595
  return latest > current2;
447170
448596
  }
447171
448597
  }
447172
- function extractVersionFromTag(tag9) {
447173
- return tag9.replace(/^pochi-cli@/, "").replace(/^cli@/, "").replace(/^v/, "");
448598
+ function extractVersionFromTag(tag10) {
448599
+ return tag10.replace(/^pochi-cli@/, "").replace(/^cli@/, "").replace(/^v/, "");
447174
448600
  }
447175
448601
 
447176
448602
  // src/upgrade/binary-installer.ts
@@ -447302,8 +448728,8 @@ import { Console as Console2 } from "node:console";
447302
448728
  var GITHUB_REPO = "TabbyML/pochi";
447303
448729
  function filterCliReleases(releases) {
447304
448730
  return releases.filter((release3) => {
447305
- const tag9 = release3.tag_name.toLowerCase();
447306
- return tag9.includes("pochi-cli@") || tag9.includes("cli@") && !tag9.includes("vscode");
448731
+ const tag10 = release3.tag_name.toLowerCase();
448732
+ return tag10.includes("pochi-cli@") || tag10.includes("cli@") && !tag10.includes("vscode");
447307
448733
  });
447308
448734
  }
447309
448735
  async function fetchLatestCliRelease() {
@@ -447528,12 +448954,14 @@ async function createLLMConfigWithVendors(program6, model2) {
447528
448954
  return program6.error(`Model '${modelId}' not found. Please run 'pochi model' to see available models.`);
447529
448955
  }
447530
448956
  return {
448957
+ id: `${vendorId}/${modelId}`,
447531
448958
  type: "vendor",
447532
448959
  useToolCallMiddleware: options6.useToolCallMiddleware,
447533
448960
  getModel: () => createModel(vendorId, {
447534
448961
  modelId,
447535
448962
  getCredentials: vendor2.getCredentials
447536
- })
448963
+ }),
448964
+ contentType: options6.contentType
447537
448965
  };
447538
448966
  }
447539
448967
  }
@@ -447544,12 +448972,14 @@ async function createLLMConfigWithPochi(model2) {
447544
448972
  if (pochiModelOptions) {
447545
448973
  const vendorId = "pochi";
447546
448974
  return {
448975
+ id: `${vendorId}/${model2}`,
447547
448976
  type: "vendor",
447548
448977
  useToolCallMiddleware: pochiModelOptions.useToolCallMiddleware,
447549
448978
  getModel: () => createModel(vendorId, {
447550
448979
  modelId: model2,
447551
448980
  getCredentials: vendor2.getCredentials
447552
- })
448981
+ }),
448982
+ contentType: pochiModelOptions.contentType
447553
448983
  };
447554
448984
  }
447555
448985
  }
@@ -447566,32 +448996,38 @@ async function createLLMConfigWithProviders(program6, model2) {
447566
448996
  }
447567
448997
  if (modelProvider.kind === "ai-gateway") {
447568
448998
  return {
448999
+ id: `${providerId}/${modelId}`,
447569
449000
  type: "ai-gateway",
447570
449001
  modelId,
447571
449002
  apiKey: modelProvider.apiKey,
447572
449003
  contextWindow: modelSetting.contextWindow ?? exports_constants.DefaultContextWindow,
447573
- maxOutputTokens: modelSetting.maxTokens ?? exports_constants.DefaultMaxOutputTokens
449004
+ maxOutputTokens: modelSetting.maxTokens ?? exports_constants.DefaultMaxOutputTokens,
449005
+ contentType: modelSetting.contentType
447574
449006
  };
447575
449007
  }
447576
449008
  if (modelProvider.kind === "google-vertex-tuning") {
447577
449009
  return {
449010
+ id: `${providerId}/${modelId}`,
447578
449011
  type: "google-vertex-tuning",
447579
449012
  modelId,
447580
449013
  vertex: modelProvider.vertex,
447581
449014
  contextWindow: modelSetting.contextWindow ?? exports_constants.DefaultContextWindow,
447582
449015
  maxOutputTokens: modelSetting.maxTokens ?? exports_constants.DefaultMaxOutputTokens,
447583
- useToolCallMiddleware: modelSetting.useToolCallMiddleware
449016
+ useToolCallMiddleware: modelSetting.useToolCallMiddleware,
449017
+ contentType: modelSetting.contentType
447584
449018
  };
447585
449019
  }
447586
449020
  if (modelProvider.kind === undefined || modelProvider.kind === "openai" || modelProvider.kind === "openai-responses" || modelProvider.kind === "anthropic") {
447587
449021
  return {
449022
+ id: `${providerId}/${modelId}`,
447588
449023
  type: modelProvider.kind || "openai",
447589
449024
  modelId,
447590
449025
  baseURL: modelProvider.baseURL,
447591
449026
  apiKey: modelProvider.apiKey,
447592
449027
  contextWindow: modelSetting.contextWindow ?? exports_constants.DefaultContextWindow,
447593
449028
  maxOutputTokens: modelSetting.maxTokens ?? exports_constants.DefaultMaxOutputTokens,
447594
- useToolCallMiddleware: modelSetting.useToolCallMiddleware
449029
+ useToolCallMiddleware: modelSetting.useToolCallMiddleware,
449030
+ contentType: modelSetting.contentType
447595
449031
  };
447596
449032
  }
447597
449033
  assertUnreachable3(modelProvider.kind);