kordoc 4.22.11 → 4.22.13

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 (121) hide show
  1. package/README.md +6 -4
  2. package/dist/{-HVSX4WBM.js → -WQIGIQTE.js} +11 -11
  3. package/dist/{chunk-ZXNKMDBN.js → chunk-3FXLQRWO.js} +4 -4
  4. package/dist/{chunk-JBPCRB4H.js → chunk-47NQ362T.js} +2 -2
  5. package/dist/{chunk-K6EG6ACM.js → chunk-6VNSISFI.js} +104 -29
  6. package/dist/chunk-6VNSISFI.js.map +1 -0
  7. package/dist/{chunk-PFDAVLZT.js → chunk-AEDBCPFA.js} +11 -11
  8. package/dist/{chunk-A4UUVU43.cjs → chunk-AXKG24PC.cjs} +3 -3
  9. package/dist/{chunk-A4UUVU43.cjs.map → chunk-AXKG24PC.cjs.map} +1 -1
  10. package/dist/{chunk-MDMCZUDP.js → chunk-DO3TPBBJ.js} +2 -2
  11. package/dist/{chunk-KINTYLL4.js → chunk-DUTPIML6.js} +2 -2
  12. package/dist/{chunk-Z6EA67XV.js → chunk-EMEEVTP2.js} +2 -2
  13. package/dist/{chunk-QLDKBCAG.js → chunk-EQNLV4YH.js} +2 -2
  14. package/dist/{chunk-JX3QPTMU.js → chunk-FKMKZ3CV.js} +2 -2
  15. package/dist/{chunk-NK3WCKJA.js → chunk-FVHGH6DG.js} +3 -3
  16. package/dist/{chunk-LP6D54PI.js → chunk-GBJNTGVV.js} +2 -2
  17. package/dist/{chunk-DRBOO4F2.cjs → chunk-GDLEO7SO.cjs} +23 -23
  18. package/dist/{chunk-DRBOO4F2.cjs.map → chunk-GDLEO7SO.cjs.map} +1 -1
  19. package/dist/{chunk-SOHPBZHR.cjs → chunk-GZEVDQ7S.cjs} +3 -3
  20. package/dist/{chunk-SOHPBZHR.cjs.map → chunk-GZEVDQ7S.cjs.map} +1 -1
  21. package/dist/{chunk-PJHRL7UZ.cjs → chunk-JOHVSCHT.cjs} +2 -2
  22. package/dist/{chunk-PJHRL7UZ.cjs.map → chunk-JOHVSCHT.cjs.map} +1 -1
  23. package/dist/{chunk-YP5T2EZ7.js → chunk-KGO5RHY2.js} +2 -2
  24. package/dist/{chunk-RWWUQMLO.cjs → chunk-KMYZ2SBN.cjs} +24 -24
  25. package/dist/{chunk-RWWUQMLO.cjs.map → chunk-KMYZ2SBN.cjs.map} +1 -1
  26. package/dist/{chunk-ZYKZS3F6.js → chunk-LKHXRJX2.js} +2 -2
  27. package/dist/{chunk-WTJ7NVIJ.js → chunk-M3YLZLHF.js} +3 -3
  28. package/dist/{chunk-7HTGSGIV.js → chunk-MKRVPDDJ.js} +2 -2
  29. package/dist/{chunk-SWY3AIPF.js → chunk-PE3PGTLM.js} +2 -2
  30. package/dist/{chunk-NCP7M4N2.js → chunk-Q7BAXRRK.js} +3 -3
  31. package/dist/{chunk-RLMAOBWN.js → chunk-RQII7NRF.js} +2 -2
  32. package/dist/{chunk-4ZUR6QAO.js → chunk-T2BVIFDL.js} +4 -4
  33. package/dist/{chunk-GMBWB4OU.js → chunk-T4JZ7DGA.js} +2 -2
  34. package/dist/{chunk-XWTXCBXT.js → chunk-W5B45M7Z.js} +4 -4
  35. package/dist/{chunk-4YZMZMSL.js → chunk-YD4TF6JI.js} +2 -2
  36. package/dist/{chunk-PGIFLIT5.js → chunk-YLCNGVXU.js} +2 -2
  37. package/dist/{chunk-QJRRJB6Z.cjs → chunk-ZEVEVTRG.cjs} +6 -6
  38. package/dist/{chunk-QJRRJB6Z.cjs.map → chunk-ZEVEVTRG.cjs.map} +1 -1
  39. package/dist/chunks-FBC25VC6.js +10 -0
  40. package/dist/cli.js +30 -30
  41. package/dist/{formula-MO5QV2WU.cjs → formula-DZA6DTBT.cjs} +9 -9
  42. package/dist/{formula-MO5QV2WU.cjs.map → formula-DZA6DTBT.cjs.map} +1 -1
  43. package/dist/{formula-67MKCQ44.js → formula-GAW4HYPK.js} +4 -4
  44. package/dist/{formula-N3GX3SO2.js → formula-Q5O27Q3L.js} +3 -3
  45. package/dist/{image-ocr-65B7BSUH.js → image-ocr-SKLXAVIR.js} +9 -9
  46. package/dist/{image-ocr-PQ2Q55I2.js → image-ocr-WHMF24OA.js} +6 -6
  47. package/dist/{image-ocr-7GIT7REG.cjs → image-ocr-YUVG57VO.cjs} +17 -17
  48. package/dist/{image-ocr-7GIT7REG.cjs.map → image-ocr-YUVG57VO.cjs.map} +1 -1
  49. package/dist/index.cjs +484 -409
  50. package/dist/index.cjs.map +1 -1
  51. package/dist/index.js +104 -29
  52. package/dist/index.js.map +1 -1
  53. package/dist/mcp.js +22 -22
  54. package/dist/{model-bundle-AH3WIGOE.js → model-bundle-PHYAMJXE.js} +5 -5
  55. package/dist/{models-YFEVC3DI.js → models-B7DEVMPD.js} +5 -5
  56. package/dist/{parse-worker-v2-7NT2ZMYZ.js → parse-worker-v2-C7VA7D6M.js} +12 -12
  57. package/dist/{parser-REXFNEES.js → parser-4L4HI6KN.js} +9 -9
  58. package/dist/{parser-DIA2JXPE.cjs → parser-IBWL5DO6.cjs} +157 -157
  59. package/dist/{parser-DIA2JXPE.cjs.map → parser-IBWL5DO6.cjs.map} +1 -1
  60. package/dist/{parser-OZI6POE7.js → parser-SCRC6YOP.js} +12 -12
  61. package/dist/{pdf-ocr-U2XEMTFR.js → pdf-ocr-7JVAWHAF.js} +9 -9
  62. package/dist/pdf-ocr-BEXABEIP.cjs +31 -0
  63. package/dist/{pdf-ocr-3K5LAKGL.cjs.map → pdf-ocr-BEXABEIP.cjs.map} +1 -1
  64. package/dist/{pdf-ocr-EUJDEV4Z.js → pdf-ocr-Z62E4OGV.js} +6 -6
  65. package/dist/{profile-io-OIFR5XXG.js → profile-io-T4O5ZOSF.js} +3 -3
  66. package/dist/{rasterize-7QURJJZB.js → rasterize-2WOVCKGY.js} +3 -3
  67. package/dist/{redact-doc-OIHZYWVF.js → redact-doc-BS5KXZJU.js} +11 -11
  68. package/dist/{render-ZAJ4L4QM.js → render-EWFXTGYC.js} +7 -7
  69. package/dist/seal-B2FGIQ5C.js +10 -0
  70. package/dist/{setup-MWFDDT5X.js → setup-LRMO3ZKM.js} +3 -3
  71. package/dist/visual-UZQZUJIA.js +21 -0
  72. package/dist/{watch-7K2NBGMZ.js → watch-SOK25KLD.js} +12 -12
  73. package/package.json +1 -1
  74. package/dist/chunk-K6EG6ACM.js.map +0 -1
  75. package/dist/chunks-OZGUNAAZ.js +0 -10
  76. package/dist/pdf-ocr-3K5LAKGL.cjs +0 -31
  77. package/dist/seal-XVZFHFMG.js +0 -10
  78. package/dist/visual-QZVCWEG2.js +0 -21
  79. /package/dist/{-HVSX4WBM.js.map → -WQIGIQTE.js.map} +0 -0
  80. /package/dist/{chunk-ZXNKMDBN.js.map → chunk-3FXLQRWO.js.map} +0 -0
  81. /package/dist/{chunk-JBPCRB4H.js.map → chunk-47NQ362T.js.map} +0 -0
  82. /package/dist/{chunk-PFDAVLZT.js.map → chunk-AEDBCPFA.js.map} +0 -0
  83. /package/dist/{chunk-MDMCZUDP.js.map → chunk-DO3TPBBJ.js.map} +0 -0
  84. /package/dist/{chunk-KINTYLL4.js.map → chunk-DUTPIML6.js.map} +0 -0
  85. /package/dist/{chunk-Z6EA67XV.js.map → chunk-EMEEVTP2.js.map} +0 -0
  86. /package/dist/{chunk-QLDKBCAG.js.map → chunk-EQNLV4YH.js.map} +0 -0
  87. /package/dist/{chunk-JX3QPTMU.js.map → chunk-FKMKZ3CV.js.map} +0 -0
  88. /package/dist/{chunk-NK3WCKJA.js.map → chunk-FVHGH6DG.js.map} +0 -0
  89. /package/dist/{chunk-LP6D54PI.js.map → chunk-GBJNTGVV.js.map} +0 -0
  90. /package/dist/{chunk-YP5T2EZ7.js.map → chunk-KGO5RHY2.js.map} +0 -0
  91. /package/dist/{chunk-ZYKZS3F6.js.map → chunk-LKHXRJX2.js.map} +0 -0
  92. /package/dist/{chunk-WTJ7NVIJ.js.map → chunk-M3YLZLHF.js.map} +0 -0
  93. /package/dist/{chunk-7HTGSGIV.js.map → chunk-MKRVPDDJ.js.map} +0 -0
  94. /package/dist/{chunk-SWY3AIPF.js.map → chunk-PE3PGTLM.js.map} +0 -0
  95. /package/dist/{chunk-NCP7M4N2.js.map → chunk-Q7BAXRRK.js.map} +0 -0
  96. /package/dist/{chunk-RLMAOBWN.js.map → chunk-RQII7NRF.js.map} +0 -0
  97. /package/dist/{chunk-4ZUR6QAO.js.map → chunk-T2BVIFDL.js.map} +0 -0
  98. /package/dist/{chunk-GMBWB4OU.js.map → chunk-T4JZ7DGA.js.map} +0 -0
  99. /package/dist/{chunk-XWTXCBXT.js.map → chunk-W5B45M7Z.js.map} +0 -0
  100. /package/dist/{chunk-4YZMZMSL.js.map → chunk-YD4TF6JI.js.map} +0 -0
  101. /package/dist/{chunk-PGIFLIT5.js.map → chunk-YLCNGVXU.js.map} +0 -0
  102. /package/dist/{chunks-OZGUNAAZ.js.map → chunks-FBC25VC6.js.map} +0 -0
  103. /package/dist/{formula-67MKCQ44.js.map → formula-GAW4HYPK.js.map} +0 -0
  104. /package/dist/{formula-N3GX3SO2.js.map → formula-Q5O27Q3L.js.map} +0 -0
  105. /package/dist/{image-ocr-65B7BSUH.js.map → image-ocr-SKLXAVIR.js.map} +0 -0
  106. /package/dist/{image-ocr-PQ2Q55I2.js.map → image-ocr-WHMF24OA.js.map} +0 -0
  107. /package/dist/{model-bundle-AH3WIGOE.js.map → model-bundle-PHYAMJXE.js.map} +0 -0
  108. /package/dist/{models-YFEVC3DI.js.map → models-B7DEVMPD.js.map} +0 -0
  109. /package/dist/{parse-worker-v2-7NT2ZMYZ.js.map → parse-worker-v2-C7VA7D6M.js.map} +0 -0
  110. /package/dist/{parser-REXFNEES.js.map → parser-4L4HI6KN.js.map} +0 -0
  111. /package/dist/{parser-OZI6POE7.js.map → parser-SCRC6YOP.js.map} +0 -0
  112. /package/dist/{pdf-ocr-EUJDEV4Z.js.map → pdf-ocr-7JVAWHAF.js.map} +0 -0
  113. /package/dist/{pdf-ocr-U2XEMTFR.js.map → pdf-ocr-Z62E4OGV.js.map} +0 -0
  114. /package/dist/{profile-io-OIFR5XXG.js.map → profile-io-T4O5ZOSF.js.map} +0 -0
  115. /package/dist/{rasterize-7QURJJZB.js.map → rasterize-2WOVCKGY.js.map} +0 -0
  116. /package/dist/{redact-doc-OIHZYWVF.js.map → redact-doc-BS5KXZJU.js.map} +0 -0
  117. /package/dist/{render-ZAJ4L4QM.js.map → render-EWFXTGYC.js.map} +0 -0
  118. /package/dist/{seal-XVZFHFMG.js.map → seal-B2FGIQ5C.js.map} +0 -0
  119. /package/dist/{setup-MWFDDT5X.js.map → setup-LRMO3ZKM.js.map} +0 -0
  120. /package/dist/{visual-QZVCWEG2.js.map → visual-UZQZUJIA.js.map} +0 -0
  121. /package/dist/{watch-7K2NBGMZ.js.map → watch-SOK25KLD.js.map} +0 -0
package/dist/mcp.js CHANGED
@@ -38,33 +38,33 @@ import {
38
38
  resolveBuiltinTemplate,
39
39
  unknownFontWarnings,
40
40
  usesGaejosikMunche
41
- } from "./chunk-PFDAVLZT.js";
42
- import "./chunk-SWY3AIPF.js";
41
+ } from "./chunk-AEDBCPFA.js";
42
+ import "./chunk-PE3PGTLM.js";
43
43
  import {
44
44
  detectFormat,
45
45
  detectOle2Format,
46
46
  detectZipFormat,
47
47
  extractHwp5MetadataOnly
48
- } from "./chunk-K6EG6ACM.js";
49
- import "./chunk-4YZMZMSL.js";
50
- import "./chunk-PGIFLIT5.js";
48
+ } from "./chunk-6VNSISFI.js";
49
+ import "./chunk-YD4TF6JI.js";
50
+ import "./chunk-YLCNGVXU.js";
51
51
  import "./chunk-VKVDMH7X.js";
52
52
  import "./chunk-VQFA55IC.js";
53
53
  import "./chunk-BYMPPVT3.js";
54
- import "./chunk-7HTGSGIV.js";
54
+ import "./chunk-MKRVPDDJ.js";
55
55
  import {
56
56
  blocksToMarkdown
57
- } from "./chunk-KINTYLL4.js";
57
+ } from "./chunk-DUTPIML6.js";
58
58
  import {
59
59
  assertWithinRoot,
60
60
  getAccessRoot,
61
61
  isOfflineMode
62
- } from "./chunk-ZYKZS3F6.js";
62
+ } from "./chunk-LKHXRJX2.js";
63
63
  import {
64
64
  extractFormFields,
65
65
  fillWithUniqueGuard
66
- } from "./chunk-NK3WCKJA.js";
67
- import "./chunk-JX3QPTMU.js";
66
+ } from "./chunk-FVHGH6DG.js";
67
+ import "./chunk-FKMKZ3CV.js";
68
68
  import {
69
69
  KordocError,
70
70
  VERSION,
@@ -72,7 +72,7 @@ import {
72
72
  routeConsoleToStderr,
73
73
  sanitizeError,
74
74
  toArrayBuffer
75
- } from "./chunk-RLMAOBWN.js";
75
+ } from "./chunk-RQII7NRF.js";
76
76
  import "./chunk-3WSNLH4B.js";
77
77
 
78
78
  // src/mcp.ts
@@ -378,7 +378,7 @@ ${markdown}`);
378
378
  break;
379
379
  case "pdf":
380
380
  try {
381
- const { extractPdfMetadataOnly } = await import("./parser-OZI6POE7.js");
381
+ const { extractPdfMetadataOnly } = await import("./parser-SCRC6YOP.js");
382
382
  metadata = await extractPdfMetadataOnly(buffer);
383
383
  } catch {
384
384
  metadata = void 0;
@@ -555,7 +555,7 @@ ${tableMarkdown}` }]
555
555
  if (!parsed.success) {
556
556
  return { content: [{ type: "text", text: `\uD30C\uC2F1 \uC2E4\uD328: ${parsed.error}` }], isError: true };
557
557
  }
558
- const { blocksToChunks } = await import("./chunks-OZGUNAAZ.js");
558
+ const { blocksToChunks } = await import("./chunks-FBC25VC6.js");
559
559
  const chunks = blocksToChunks(parsed.blocks, { granularity, includeTableCells: include_table_cells });
560
560
  return { content: [{ type: "text", text: capResponseText(JSON.stringify(chunks, null, 2)) }] };
561
561
  } catch (err) {
@@ -825,7 +825,7 @@ ${previewMd}` }]
825
825
  }
826
826
  const image = new Uint8Array(await readFile2(imgResolved));
827
827
  const ext = extname2(imgResolved).slice(1).toLowerCase();
828
- const { placeSealHwpx } = await import("./seal-XVZFHFMG.js");
828
+ const { placeSealHwpx } = await import("./seal-B2FGIQ5C.js");
829
829
  const result = await placeSealHwpx(buffer, [{
830
830
  anchor,
831
831
  occurrence,
@@ -942,7 +942,7 @@ ${previewMd}` }]
942
942
  if (outPath && await isSameFile(outPath, resolved)) {
943
943
  return { content: [{ type: "text", text: "output_path\uAC00 \uC785\uB825 \uD30C\uC77C\uACFC \uAC19\uC2B5\uB2C8\uB2E4 \u2014 \uC6D0\uBCF8\uC744 \uB36E\uC5B4\uC4F0\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uACBD\uB85C\uB97C \uC9C0\uC815\uD558\uC138\uC694." }], isError: true };
944
944
  }
945
- const { redactDocument } = await import("./redact-doc-OIHZYWVF.js");
945
+ const { redactDocument } = await import("./redact-doc-BS5KXZJU.js");
946
946
  const r = await redactDocument(buffer, { rules, maskChar: mask_char, filePath: file_path, dryRun: dry_run });
947
947
  const MAX_LINES = 50;
948
948
  const listed = r.fileHits.length > 0 ? r.fileHits.map((h) => ` - [${h.rule}] ${h.masked} (${h.where} @ ${h.part})`) : r.markdownHits.map((h) => ` - [${h.rule}] ${h.masked}`);
@@ -1016,7 +1016,7 @@ function registerRenderTools(server2) {
1016
1016
  const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
1017
1017
  const isHwp5 = resolved.toLowerCase().endsWith(".hwp");
1018
1018
  if (!isHwp5 && !pages && (format === "png" || format === "svg")) {
1019
- const { renderHwpxToSvg } = await import("./render-ZAJ4L4QM.js");
1019
+ const { renderHwpxToSvg } = await import("./render-EWFXTGYC.js");
1020
1020
  const result = await renderHwpxToSvg(buffer, { highlights, reflow: true, reflowMode: reflow_mode });
1021
1021
  const summary2 = [
1022
1022
  `\uB80C\uB354 \uC644\uB8CC: ${result.pageCount}\uD398\uC774\uC9C0, ${Math.round(result.width)}x${Math.round(result.height)}pt (\uD14D\uC2A4\uD2B8 ${result.stats.texts}\xB7\uC774\uBBF8\uC9C0 ${result.stats.images}\xB7\uD45C ${result.stats.tables})`,
@@ -1028,7 +1028,7 @@ function registerRenderTools(server2) {
1028
1028
  summary2.push(`\uC800\uC7A5: ${outPath}`);
1029
1029
  return { content: [{ type: "text", text: summary2.join("\n") }] };
1030
1030
  }
1031
- const { rasterizeSvg } = await import("./rasterize-7QURJJZB.js");
1031
+ const { rasterizeSvg } = await import("./rasterize-2WOVCKGY.js");
1032
1032
  const raster = await rasterizeSvg(result.svg, result.width, result.height, max_width_px ? { maxWidthPx: max_width_px } : void 0);
1033
1033
  if (outPath) {
1034
1034
  await mkdir2(dirname3(outPath), { recursive: true });
@@ -1043,7 +1043,7 @@ function registerRenderTools(server2) {
1043
1043
  ]
1044
1044
  };
1045
1045
  }
1046
- const { renderDocument } = await import("./render-ZAJ4L4QM.js");
1046
+ const { renderDocument } = await import("./render-EWFXTGYC.js");
1047
1047
  const { scene, assets } = await renderDocument(buffer, { format, pages, highlights, reflow: true, reflowMode: reflow_mode, maxWidthPx: max_width_px });
1048
1048
  const summary = [
1049
1049
  `\uB80C\uB354 \uC644\uB8CC: \uBB38\uC11C ${scene.pages.length}\uD398\uC774\uC9C0 \uC911 ${assets.filter((a) => a.page !== void 0).length || 1}\uAC74 (\uD14D\uC2A4\uD2B8 ${scene.stats.texts}\xB7\uC774\uBBF8\uC9C0 ${scene.stats.images}\xB7\uD45C ${scene.stats.tables}\xB7\uB3C4\uD615 ${scene.stats.shapes})`,
@@ -1093,7 +1093,7 @@ function registerRenderTools(server2) {
1093
1093
  try {
1094
1094
  const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
1095
1095
  const dir = safeOutputPath(join2(output_dir, "regions.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]regions\.json$/, "");
1096
- const { extractRenderedRegions } = await import("./render-ZAJ4L4QM.js");
1096
+ const { extractRenderedRegions } = await import("./render-EWFXTGYC.js");
1097
1097
  const regions = await extractRenderedRegions(buffer, { types: target, format, pages, paddingPt: padding_pt, reflow: true });
1098
1098
  await mkdir2(dir, { recursive: true });
1099
1099
  const ext = format === "jpeg" ? "jpg" : "png";
@@ -1129,7 +1129,7 @@ function registerRenderTools(server2) {
1129
1129
  }
1130
1130
  const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
1131
1131
  const dir = output_dir ? safeOutputPath(join2(output_dir, "tables.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]tables\.json$/, "") : void 0;
1132
- const { extractTables } = await import("./visual-QZVCWEG2.js");
1132
+ const { extractTables } = await import("./visual-UZQZUJIA.js");
1133
1133
  const tables = await extractTables(buffer, { policy: visual, format, paddingPt: padding_pt });
1134
1134
  if (dir) await mkdir2(dir, { recursive: true });
1135
1135
  const ext = format === "jpeg" ? "jpg" : "png";
@@ -1186,7 +1186,7 @@ function registerGenerateTools(server2) {
1186
1186
  try {
1187
1187
  const out = safeOutputPath(output_path, PROFILE_EXTENSIONS);
1188
1188
  const { buffer } = await readValidatedFile(hwpx_path);
1189
- const { hwpxToProfile } = await import("./-HVSX4WBM.js");
1189
+ const { hwpxToProfile } = await import("./-WQIGIQTE.js");
1190
1190
  const profile = await hwpxToProfile(buffer);
1191
1191
  await mkdir3(dirname4(out), { recursive: true });
1192
1192
  await writeOutputFile(out, JSON.stringify(profile, null, 2));
@@ -1299,7 +1299,7 @@ function registerGenerateTools(server2) {
1299
1299
  }
1300
1300
  let profile;
1301
1301
  if (profile_path) {
1302
- const { parseFormatProfileJson } = await import("./profile-io-OIFR5XXG.js");
1302
+ const { parseFormatProfileJson } = await import("./profile-io-T4O5ZOSF.js");
1303
1303
  profile = parseFormatProfileJson(await readFile3(safePath(profile_path, PROFILE_EXTENSIONS), "utf-8"));
1304
1304
  }
1305
1305
  const out = safeOutputPath(output_path, /* @__PURE__ */ new Set([".hwpx"]));
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  ALL_OCR_MODELS
4
- } from "./chunk-GMBWB4OU.js";
4
+ } from "./chunk-T4JZ7DGA.js";
5
5
  import {
6
6
  ALL_FORMULA_MODELS,
7
7
  getModelStatusIn,
8
8
  getModelsDir
9
- } from "./chunk-LP6D54PI.js";
10
- import "./chunk-ZYKZS3F6.js";
11
- import "./chunk-RLMAOBWN.js";
9
+ } from "./chunk-GBJNTGVV.js";
10
+ import "./chunk-LKHXRJX2.js";
11
+ import "./chunk-RQII7NRF.js";
12
12
 
13
13
  // src/shared/model-bundle.ts
14
14
  import { copyFile, mkdir } from "fs/promises";
@@ -101,4 +101,4 @@ export {
101
101
  importModels,
102
102
  modelCacheStatus
103
103
  };
104
- //# sourceMappingURL=model-bundle-AH3WIGOE.js.map
104
+ //# sourceMappingURL=model-bundle-PHYAMJXE.js.map
@@ -17,10 +17,10 @@ import {
17
17
  ocrSourcePath,
18
18
  parseCharacterDict,
19
19
  resolveOcrModels
20
- } from "./chunk-GMBWB4OU.js";
21
- import "./chunk-LP6D54PI.js";
22
- import "./chunk-ZYKZS3F6.js";
23
- import "./chunk-RLMAOBWN.js";
20
+ } from "./chunk-T4JZ7DGA.js";
21
+ import "./chunk-GBJNTGVV.js";
22
+ import "./chunk-LKHXRJX2.js";
23
+ import "./chunk-RQII7NRF.js";
24
24
  export {
25
25
  ALL_OCR_MODELS,
26
26
  DEFAULT_OCR_MODELS,
@@ -40,4 +40,4 @@ export {
40
40
  parseCharacterDict,
41
41
  resolveOcrModels
42
42
  };
43
- //# sourceMappingURL=models-YFEVC3DI.js.map
43
+ //# sourceMappingURL=models-B7DEVMPD.js.map
@@ -1,25 +1,25 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  parseWorkerFile
4
- } from "./chunk-NCP7M4N2.js";
5
- import "./chunk-PFDAVLZT.js";
6
- import "./chunk-SWY3AIPF.js";
7
- import "./chunk-K6EG6ACM.js";
8
- import "./chunk-4YZMZMSL.js";
9
- import "./chunk-PGIFLIT5.js";
4
+ } from "./chunk-Q7BAXRRK.js";
5
+ import "./chunk-AEDBCPFA.js";
6
+ import "./chunk-PE3PGTLM.js";
7
+ import "./chunk-6VNSISFI.js";
8
+ import "./chunk-YD4TF6JI.js";
9
+ import "./chunk-YLCNGVXU.js";
10
10
  import "./chunk-VKVDMH7X.js";
11
11
  import "./chunk-VQFA55IC.js";
12
12
  import {
13
13
  validateOcrOptions
14
14
  } from "./chunk-BYMPPVT3.js";
15
- import "./chunk-7HTGSGIV.js";
16
- import "./chunk-KINTYLL4.js";
17
- import "./chunk-NK3WCKJA.js";
18
- import "./chunk-JX3QPTMU.js";
15
+ import "./chunk-MKRVPDDJ.js";
16
+ import "./chunk-DUTPIML6.js";
17
+ import "./chunk-FVHGH6DG.js";
18
+ import "./chunk-FKMKZ3CV.js";
19
19
  import {
20
20
  VERSION,
21
21
  sanitizeError
22
- } from "./chunk-RLMAOBWN.js";
22
+ } from "./chunk-RQII7NRF.js";
23
23
  import "./chunk-3WSNLH4B.js";
24
24
 
25
25
  // src/cli/parse-worker-v2.ts
@@ -311,4 +311,4 @@ export {
311
311
  runParseWorkerV2,
312
312
  toParseOptions
313
313
  };
314
- //# sourceMappingURL=parse-worker-v2-7NT2ZMYZ.js.map
314
+ //# sourceMappingURL=parse-worker-v2-C7VA7D6M.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  blocksToPages,
3
3
  encodePng
4
- } from "./chunk-QLDKBCAG.js";
4
+ } from "./chunk-EQNLV4YH.js";
5
5
  import {
6
6
  hasRequestedPagesAfter,
7
7
  parsePageRange
@@ -61,7 +61,7 @@ import {
61
61
  stripAbsorbedRunningLines,
62
62
  trimTrailingEmptyTableCols,
63
63
  wrapJoiner
64
- } from "./chunk-4ZUR6QAO.js";
64
+ } from "./chunk-T2BVIFDL.js";
65
65
  import {
66
66
  CELL_BASELINES,
67
67
  CELL_EDGES,
@@ -78,12 +78,12 @@ import {
78
78
  stripScriptTags,
79
79
  unframeLayoutTables,
80
80
  validateOcrOptions
81
- } from "./chunk-JBPCRB4H.js";
82
- import "./chunk-MDMCZUDP.js";
81
+ } from "./chunk-47NQ362T.js";
82
+ import "./chunk-DO3TPBBJ.js";
83
83
  import {
84
84
  KordocError,
85
85
  sanitizeHref
86
- } from "./chunk-Z6EA67XV.js";
86
+ } from "./chunk-EMEEVTP2.js";
87
87
 
88
88
  // src/pdf/image-extract.ts
89
89
  import { createHash } from "crypto";
@@ -4003,7 +4003,7 @@ function mergeLinkRuns(markdown) {
4003
4003
 
4004
4004
  // src/pdf/formula-ocr.ts
4005
4005
  async function applyFormulaOcr(buffer, blocks, pageFilter, effectivePageCount, warnings, _onProgress) {
4006
- const formulaMod = await import("./formula-N3GX3SO2.js");
4006
+ const formulaMod = await import("./formula-Q5O27Q3L.js");
4007
4007
  const { FormulaPipeline, ensureFormulaModels } = formulaMod;
4008
4008
  await ensureFormulaModels((p) => {
4009
4009
  if (p.phase === "download" && p.total) {
@@ -4430,10 +4430,10 @@ async function parsePdfDocument(buffer, options) {
4430
4430
  }
4431
4431
  if (targets.size > 0) {
4432
4432
  try {
4433
- const { runPdfOcr } = await import("./pdf-ocr-EUJDEV4Z.js");
4433
+ const { runPdfOcr } = await import("./pdf-ocr-Z62E4OGV.js");
4434
4434
  const mode = typeof options?.ocr === "function" ? options.ocr : "builtin";
4435
4435
  const regionPages = new Map([...ocrRegions].filter(([p]) => options?.ocr !== "force" && !isImageBased && !pageQuality.find((q) => q.page === p)?.needsOcr));
4436
- const { builtinOcrConfig } = await import("./pdf-ocr-EUJDEV4Z.js");
4436
+ const { builtinOcrConfig } = await import("./pdf-ocr-Z62E4OGV.js");
4437
4437
  const ocrPageBlocks = await runPdfOcr(ocrBuffer, targets, mode, warnings, options?.onProgress, options?.tables !== false, vectorPageOps, regionPages, builtinOcrConfig(options), ocrLinesOut);
4438
4438
  for (const obs of ocrPageBlocks.values()) stripScriptTags({ blocks: obs });
4439
4439
  if (ocrPageBlocks.size > 0) {
@@ -4678,4 +4678,4 @@ export {
4678
4678
  parsePdfDocument,
4679
4679
  removeHeaderFooterBlocks
4680
4680
  };
4681
- //# sourceMappingURL=parser-REXFNEES.js.map
4681
+ //# sourceMappingURL=parser-4L4HI6KN.js.map