kordoc 4.25.16 → 4.25.17

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 (117) hide show
  1. package/README.md +3 -3
  2. package/dist/{chunk-OHIQCST3.js → chunk-3R5WQUO6.js} +2 -2
  3. package/dist/{chunk-LURU4TEK.js → chunk-6CANT2ER.js} +6 -6
  4. package/dist/{chunk-SEX6XWX7.js → chunk-74YTJRYG.js} +6 -6
  5. package/dist/{chunk-TEGIJIXP.js → chunk-A3DHXCLY.js} +19 -19
  6. package/dist/chunk-A3DHXCLY.js.map +7 -0
  7. package/dist/{chunk-ITECESX6.js → chunk-AVAGQG3L.js} +2 -2
  8. package/dist/{chunk-G3V65LWR.js → chunk-AVZGJSDR.js} +2 -2
  9. package/dist/{chunk-QP7P3MVI.js → chunk-CP4DVSSB.js} +2 -2
  10. package/dist/{chunk-IWW2U63D.js → chunk-EQLSCCLK.js} +3 -3
  11. package/dist/{chunk-THXEXFU3.js → chunk-G2KAT4IK.js} +4 -4
  12. package/dist/{chunk-E52RFWAK.js → chunk-HNMFCEB2.js} +2 -2
  13. package/dist/{chunk-QZXDD4X7.js → chunk-I2AWRPGS.js} +2 -2
  14. package/dist/{chunk-2IDEXT2T.js → chunk-LLQZPKH6.js} +3 -3
  15. package/dist/{chunk-DQLAHHDK.js → chunk-MPRARKME.js} +75 -16
  16. package/dist/chunk-MPRARKME.js.map +7 -0
  17. package/dist/{chunk-AO6CHOM4.js → chunk-NF7NGVM7.js} +2 -2
  18. package/dist/{chunk-RKGQTQYO.js → chunk-NPC3KSLU.js} +2 -2
  19. package/dist/{chunk-3YHLDW7C.js → chunk-NTJZSRU6.js} +8 -8
  20. package/dist/{chunk-Y3OVJSGG.js → chunk-OE62BVQ4.js} +2 -2
  21. package/dist/{chunk-X25CW5HZ.js → chunk-PENB25MK.js} +3 -3
  22. package/dist/{chunk-UBVTDQGG.js → chunk-PIUSGKCJ.js} +2 -2
  23. package/dist/{chunk-6UY6Q3H3.js → chunk-QC3Q4VET.js} +2 -2
  24. package/dist/{chunk-MU75DILK.js → chunk-ULPZO66F.js} +10 -10
  25. package/dist/{chunk-K46IEF7M.js → chunk-VBGM3CIH.js} +6 -6
  26. package/dist/{chunk-YJ3BAKYB.js → chunk-VT7T7R3M.js} +5 -5
  27. package/dist/{chunk-6HDDPUBR.js → chunk-WTMU4QEW.js} +2 -2
  28. package/dist/{chunk-7HZNGQ5U.js → chunk-Y3DRNIXW.js} +2 -2
  29. package/dist/{chunk-7HZNGQ5U.js.map → chunk-Y3DRNIXW.js.map} +2 -2
  30. package/dist/{chunk-WQU4SUVX.js → chunk-YKROSGHR.js} +2 -2
  31. package/dist/{chunk-67I4YNFQ.js → chunk-ZDISS2SZ.js} +4 -1
  32. package/dist/chunk-ZDISS2SZ.js.map +7 -0
  33. package/dist/chunks-YB4E7HDH.js +10 -0
  34. package/dist/cli.js +40 -39
  35. package/dist/cli.js.map +2 -2
  36. package/dist/{formula-I3G5X7CZ.js → formula-UGCZT2AS.js} +4 -4
  37. package/dist/{generator-XENG34HU.js → generator-6HV3EDPE.js} +7 -7
  38. package/dist/{hancom-RBXDJUFE.js → hancom-V53LWZBA.js} +2 -2
  39. package/dist/{image-ocr-5HIABUZG.js → image-ocr-UBZZANWO.js} +13 -13
  40. package/dist/image-ocr-UBZZANWO.js.map +7 -0
  41. package/dist/index.cjs +76 -14
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.d.cts +28 -1
  44. package/dist/index.d.ts +28 -1
  45. package/dist/index.js +22 -22
  46. package/dist/mcp.js +34 -34
  47. package/dist/memo-XHA6VODL.js +15 -0
  48. package/dist/{model-bundle-5LVS7WL2.js → model-bundle-LGWE4QFJ.js} +5 -5
  49. package/dist/{models-5JEF4JQS.js → models-6N5UI5IU.js} +5 -5
  50. package/dist/{page-images-YFM4CSIC.js → page-images-QOQUGDQS.js} +3 -3
  51. package/dist/{parse-worker-v2-IMPTIH45.js → parse-worker-v2-F2J2T4YR.js} +25 -24
  52. package/dist/parse-worker-v2-F2J2T4YR.js.map +7 -0
  53. package/dist/{parser-IX22R5CW.js → parser-JIDRX6AB.js} +15 -15
  54. package/dist/{pdf-ocr-UQVJ46BE.js → pdf-ocr-ODTWGGJQ.js} +10 -10
  55. package/dist/{profile-io-HEQPNSE7.js → profile-io-36PUXAEI.js} +3 -3
  56. package/dist/{rasterize-HNKRSEJH.js → rasterize-TSMXDBDW.js} +3 -3
  57. package/dist/{redact-doc-LPFKSYEI.js → redact-doc-XKYNTLEW.js} +23 -23
  58. package/dist/{render-U5IYSDBI.js → render-ZMLVODOD.js} +10 -10
  59. package/dist/{rewrite-fallback-HIGAPL72.js → rewrite-fallback-2SQFTZYY.js} +12 -12
  60. package/dist/seal-HAMGSQSH.js +14 -0
  61. package/dist/{setup-7HF5QL6U.js → setup-2XNSFVJ3.js} +3 -3
  62. package/dist/{to-hwpx-23VZEMCA.js → to-hwpx-QYDUGPOF.js} +7 -7
  63. package/dist/visual-OZKPHLJJ.js +42 -0
  64. package/dist/{watch-MH7IWVND.js → watch-ZDHERS2D.js} +23 -23
  65. package/package.json +1 -1
  66. package/dist/chunk-67I4YNFQ.js.map +0 -7
  67. package/dist/chunk-DQLAHHDK.js.map +0 -7
  68. package/dist/chunk-TEGIJIXP.js.map +0 -7
  69. package/dist/chunks-U3JEWLD3.js +0 -10
  70. package/dist/image-ocr-5HIABUZG.js.map +0 -7
  71. package/dist/memo-QXM534TX.js +0 -15
  72. package/dist/parse-worker-v2-IMPTIH45.js.map +0 -7
  73. package/dist/seal-SOPO4X5A.js +0 -14
  74. package/dist/visual-AFOIRUFC.js +0 -42
  75. /package/dist/{chunk-OHIQCST3.js.map → chunk-3R5WQUO6.js.map} +0 -0
  76. /package/dist/{chunk-LURU4TEK.js.map → chunk-6CANT2ER.js.map} +0 -0
  77. /package/dist/{chunk-SEX6XWX7.js.map → chunk-74YTJRYG.js.map} +0 -0
  78. /package/dist/{chunk-ITECESX6.js.map → chunk-AVAGQG3L.js.map} +0 -0
  79. /package/dist/{chunk-G3V65LWR.js.map → chunk-AVZGJSDR.js.map} +0 -0
  80. /package/dist/{chunk-QP7P3MVI.js.map → chunk-CP4DVSSB.js.map} +0 -0
  81. /package/dist/{chunk-IWW2U63D.js.map → chunk-EQLSCCLK.js.map} +0 -0
  82. /package/dist/{chunk-THXEXFU3.js.map → chunk-G2KAT4IK.js.map} +0 -0
  83. /package/dist/{chunk-E52RFWAK.js.map → chunk-HNMFCEB2.js.map} +0 -0
  84. /package/dist/{chunk-QZXDD4X7.js.map → chunk-I2AWRPGS.js.map} +0 -0
  85. /package/dist/{chunk-2IDEXT2T.js.map → chunk-LLQZPKH6.js.map} +0 -0
  86. /package/dist/{chunk-AO6CHOM4.js.map → chunk-NF7NGVM7.js.map} +0 -0
  87. /package/dist/{chunk-RKGQTQYO.js.map → chunk-NPC3KSLU.js.map} +0 -0
  88. /package/dist/{chunk-3YHLDW7C.js.map → chunk-NTJZSRU6.js.map} +0 -0
  89. /package/dist/{chunk-Y3OVJSGG.js.map → chunk-OE62BVQ4.js.map} +0 -0
  90. /package/dist/{chunk-X25CW5HZ.js.map → chunk-PENB25MK.js.map} +0 -0
  91. /package/dist/{chunk-UBVTDQGG.js.map → chunk-PIUSGKCJ.js.map} +0 -0
  92. /package/dist/{chunk-6UY6Q3H3.js.map → chunk-QC3Q4VET.js.map} +0 -0
  93. /package/dist/{chunk-MU75DILK.js.map → chunk-ULPZO66F.js.map} +0 -0
  94. /package/dist/{chunk-K46IEF7M.js.map → chunk-VBGM3CIH.js.map} +0 -0
  95. /package/dist/{chunk-YJ3BAKYB.js.map → chunk-VT7T7R3M.js.map} +0 -0
  96. /package/dist/{chunk-6HDDPUBR.js.map → chunk-WTMU4QEW.js.map} +0 -0
  97. /package/dist/{chunk-WQU4SUVX.js.map → chunk-YKROSGHR.js.map} +0 -0
  98. /package/dist/{chunks-U3JEWLD3.js.map → chunks-YB4E7HDH.js.map} +0 -0
  99. /package/dist/{formula-I3G5X7CZ.js.map → formula-UGCZT2AS.js.map} +0 -0
  100. /package/dist/{generator-XENG34HU.js.map → generator-6HV3EDPE.js.map} +0 -0
  101. /package/dist/{hancom-RBXDJUFE.js.map → hancom-V53LWZBA.js.map} +0 -0
  102. /package/dist/{memo-QXM534TX.js.map → memo-XHA6VODL.js.map} +0 -0
  103. /package/dist/{model-bundle-5LVS7WL2.js.map → model-bundle-LGWE4QFJ.js.map} +0 -0
  104. /package/dist/{models-5JEF4JQS.js.map → models-6N5UI5IU.js.map} +0 -0
  105. /package/dist/{page-images-YFM4CSIC.js.map → page-images-QOQUGDQS.js.map} +0 -0
  106. /package/dist/{parser-IX22R5CW.js.map → parser-JIDRX6AB.js.map} +0 -0
  107. /package/dist/{pdf-ocr-UQVJ46BE.js.map → pdf-ocr-ODTWGGJQ.js.map} +0 -0
  108. /package/dist/{profile-io-HEQPNSE7.js.map → profile-io-36PUXAEI.js.map} +0 -0
  109. /package/dist/{rasterize-HNKRSEJH.js.map → rasterize-TSMXDBDW.js.map} +0 -0
  110. /package/dist/{redact-doc-LPFKSYEI.js.map → redact-doc-XKYNTLEW.js.map} +0 -0
  111. /package/dist/{render-U5IYSDBI.js.map → render-ZMLVODOD.js.map} +0 -0
  112. /package/dist/{rewrite-fallback-HIGAPL72.js.map → rewrite-fallback-2SQFTZYY.js.map} +0 -0
  113. /package/dist/{seal-SOPO4X5A.js.map → seal-HAMGSQSH.js.map} +0 -0
  114. /package/dist/{setup-7HF5QL6U.js.map → setup-2XNSFVJ3.js.map} +0 -0
  115. /package/dist/{to-hwpx-23VZEMCA.js.map → to-hwpx-QYDUGPOF.js.map} +0 -0
  116. /package/dist/{visual-AFOIRUFC.js.map → visual-OZKPHLJJ.js.map} +0 -0
  117. /package/dist/{watch-MH7IWVND.js.map → watch-ZDHERS2D.js.map} +0 -0
package/README.md CHANGED
@@ -130,15 +130,15 @@ await writeFile("보고서.hwpx", Buffer.from(hwpx))
130
130
 
131
131
  ## 최근 업데이트
132
132
 
133
- 최신 배포: **[4.25.16](https://github.com/chrisryugj/kordoc/releases/tag/v4.25.16)** · 2026-11-25
133
+ 최신 배포: **[4.25.17](https://github.com/chrisryugj/kordoc/releases/tag/v4.25.17)** · 2026-11-25
134
134
 
135
135
  | 버전 | 바뀐 점 | 실측 변화 |
136
136
  | --- | --- | --- |
137
+ | 4.25.17 | OCR 줄마다 글자별 신뢰도·상자·대안을 돌려주는 `ocrChars` 옵션(CLI `--ocr-chars [n]`, #235, @VerifiedIdiot). 줄에서 어느 글자가 불확실한지와 그 자리 대안을 봅니다 | 옵션을 끄면 OCR 출력이 바이트까지 같음(KoOCR 877쪽 예측 동일) · OCR·견고성·odlocr·표 하락 0 · 시험 5,335개 실패 0 |
137
138
  | 4.25.16 | PDF 본문 줄 끝에서 꺾인 어절은 줄 끝 어절 꼬리와 다음 줄 어절을 이은 꼴이 문서에 붙어 나오면 붙입니다("서울지방중대범죄⏎수사청"). PDF·OCR 표의 묶음 사이 빈 열을 이웃 열과 합치지 않습니다 | PDF 글 띄어쓰기 F1 0.99251 → **0.99253**(6문서 오름, 내림 0) · KoOCR 877쪽 1쪽 오름(통계표 TEDS 0.810 → 0.869), 내림 0 · 점수·표·별표·ODL·OCR·견고성 하락 0 · 시험 5,321개 실패 0 |
138
139
  | 4.25.15 | 변경 추적 HWP를 HWPX로 바꿀 때 빈 문단의 지움 구간 끝 표시가 빠져 다시 읽으면 본문 대부분이 사라지던 문제를 고쳤고, 짝이 깨진 HWPX도 끝까지 읽습니다. PDF 줄 끝 꺾임은 연결 어미로 끝난 어절 뒤를 띄웁니다 | 변경 추적 HWP 왕복 글 일치도 0.114 → **0.993**, 0.269 → **1.0** · hwp2hwpx 벤치 그대로 · PDF 글 띄어쓰기 F1 0.99250 → 0.99251(7문서 오름, 내림 0) · 점수·표·roundtrip·formats 하락 0 · 시험 5,319개 실패 0 |
139
140
  | 4.25.14 | PDF 줄 끝 꺾임에서 법령 사전을 더 넓게 씁니다. 문서 안 글자 쌍 증거가 띄움이어도 사전을 따르고, 괄호 덧말(「에너지기구(IEA)는」)이나 가운뎃점·영문 앞말(「산업·에너지」「AI기본」)이 붙은 어절도 사전으로 판정합니다 | PDF 글 744쌍 띄어쓰기 F1 0.99240 → **0.99250**(53문서 오름, 4문서 내림) · 표·별표·점수·ODL 4종·OCR·견고성·KoOCR 877쪽 하락 0 · 시험 5,315개 실패 0 |
140
141
  | 4.25.13 | PDF 줄 끝 꺾임 붙여 쓰기 사전 재료에 현행 행정규칙 22,744개를 더했습니다(사전 98,619 → 212,857낱말). 소스맵에서 사전 원문을 비워 패키지 크기는 거의 그대로입니다 | PDF 글 744쌍 띄어쓰기 F1 0.99222 → **0.99240**(68문서 오름, 8문서 내림) · 표·별표·점수·ODL 4종·OCR·견고성·KoOCR 877쪽 하락 0 · 압축 해제 32.4MB · 시험 5,312개 실패 0 |
141
- | 4.25.12 | 크롬으로 인쇄한 PDF의 CSS 배경 무늬(쪽 전체 무늬 칠)를 불투명 덮개로 보고 그 아래 본문을 통째로 지우던 문제를 고쳤습니다(#234, @Byun11) | 보고된 시험지·공문 쪽 0자 → 9,889자·6,527자 · 점수·표·글·별표·formats·ODL 4종·OCR 문서별 변화 **0** · 시험 5,312개 실패 0 |
142
142
 
143
143
  이전 버전과 상세 내용은 [변경 이력](CHANGELOG.md)에 있습니다.
144
144
 
@@ -157,7 +157,7 @@ await writeFile("보고서.hwpx", Buffer.from(hwpx))
157
157
  `--format chunks`가 제목 경로를 붙인 구조 청크와 독립 표 청크를 냅니다. 표를 HTML 없이 받으려면 `--table-format gfm`(API는 `tableFormat: "gfm"`)을 씁니다. Python·Java에서는 [Python SDK](sdk/python/README.md)·[Java SDK](sdk/java/README.md)로 부릅니다.
158
158
 
159
159
  **Q. OCR 줄 좌표나 다른 모델이 필요하면?**
160
- `--ocr --ocr-lines --format json`이 줄별 상자·신뢰도를 내고(`--ocr-line-candidates 3`이면 줄마다 상위 읽기 후보와 확률도), `--ocr-det`·`--ocr-det-long-side`로 검출 모델과 해상도를, `--ocr-rec handwriting|auto`로 손글씨 인식 모델을 고릅니다. `--page-images png`는 OCR 경로가 읽은 페이지를 이미지로 함께 냅니다. [OCR 줄·모델 선택](docs/usage.md#ocr-줄모델-선택)
160
+ `--ocr --ocr-lines --format json`이 줄별 상자·신뢰도를 내고(`--ocr-line-candidates 3`이면 줄마다 상위 읽기 후보와 확률도, `--ocr-chars 3`이면 글자마다 신뢰도·상자·대안도), `--ocr-det`·`--ocr-det-long-side`로 검출 모델과 해상도를, `--ocr-rec handwriting|auto`로 손글씨 인식 모델을 고릅니다. `--page-images png`는 OCR 경로가 읽은 페이지를 이미지로 함께 냅니다. [OCR 줄·모델 선택](docs/usage.md#ocr-줄모델-선택)
161
161
 
162
162
  ## 문서·보안
163
163
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  KordocError
3
- } from "./chunk-ITECESX6.js";
3
+ } from "./chunk-AVAGQG3L.js";
4
4
 
5
5
  // src/shared/offline.ts
6
6
  import { realpathSync } from "fs";
@@ -48,4 +48,4 @@ export {
48
48
  getAccessRoot,
49
49
  assertWithinRoot
50
50
  };
51
- //# sourceMappingURL=chunk-OHIQCST3.js.map
51
+ //# sourceMappingURL=chunk-3R5WQUO6.js.map
@@ -4,20 +4,20 @@ import {
4
4
  readHwp5DocInfoRecords,
5
5
  readHwp5SectionRecords,
6
6
  readHwp5SectionStreams
7
- } from "./chunk-YJ3BAKYB.js";
7
+ } from "./chunk-VT7T7R3M.js";
8
8
  import {
9
9
  FLAG_TRACK_CHANGES,
10
10
  decompressStream,
11
11
  fileTimeText,
12
12
  readRecords
13
- } from "./chunk-6UY6Q3H3.js";
13
+ } from "./chunk-QC3Q4VET.js";
14
14
  import {
15
15
  composeDigits
16
16
  } from "./chunk-QXQX4AN7.js";
17
17
  import {
18
18
  KordocError,
19
19
  VERSION
20
- } from "./chunk-ITECESX6.js";
20
+ } from "./chunk-AVAGQG3L.js";
21
21
 
22
22
  // src/hwp5/to-hwpx/index.ts
23
23
  import JSZip from "jszip";
@@ -2245,7 +2245,7 @@ async function convertToHwpx(input, options) {
2245
2245
  if (format !== "hwp" && format !== "hwp3" && format !== "hwpml") throw new KordocError(`HWP 문서가 아닙니다 (${format})`);
2246
2246
  const engine = options?.engine ?? "kordoc";
2247
2247
  if (engine !== "kordoc") {
2248
- const { hancomAvailable, hwpToHwpxViaHancom } = await import("./hancom-RBXDJUFE.js");
2248
+ const { hancomAvailable, hwpToHwpxViaHancom } = await import("./hancom-V53LWZBA.js");
2249
2249
  if (engine === "hancom" || !options?.password && hancomAvailable()) {
2250
2250
  if (options?.password) throw new KordocError('한/글 저장 변환은 열기 암호를 받지 않습니다 — engine "kordoc" 으로 바꾸세요');
2251
2251
  return { data: hwpToHwpxViaHancom(bytes, format === "hwpml" ? "hml" : "hwp"), mode: "preserve", engine: "hancom", warnings: [] };
@@ -2253,7 +2253,7 @@ async function convertToHwpx(input, options) {
2253
2253
  }
2254
2254
  if (format === "hwp") return { data: await hwpToHwpx(bytes, options), mode: "preserve", engine: "kordoc", warnings: [] };
2255
2255
  const { parse } = await import("./index.js");
2256
- const { markdownToHwpx } = await import("./generator-XENG34HU.js");
2256
+ const { markdownToHwpx } = await import("./generator-6HV3EDPE.js");
2257
2257
  const parsed = await parse(ab, { password: options?.password });
2258
2258
  if (!parsed.success) throw new KordocError(parsed.error ?? "문서를 읽지 못했습니다");
2259
2259
  return {
@@ -2268,4 +2268,4 @@ export {
2268
2268
  hwpToHwpx,
2269
2269
  convertToHwpx
2270
2270
  };
2271
- //# sourceMappingURL=chunk-LURU4TEK.js.map
2271
+ //# sourceMappingURL=chunk-6CANT2ER.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  collectSites
3
- } from "./chunk-THXEXFU3.js";
3
+ } from "./chunk-G2KAT4IK.js";
4
4
  import {
5
5
  patchZipEntries
6
- } from "./chunk-6HDDPUBR.js";
6
+ } from "./chunk-WTMU4QEW.js";
7
7
  import {
8
8
  applySplices,
9
9
  changedLinesegRemovalSplices,
@@ -13,14 +13,14 @@ import {
13
13
  } from "./chunk-B2SRYWEY.js";
14
14
  import {
15
15
  readZipEntry
16
- } from "./chunk-WQU4SUVX.js";
16
+ } from "./chunk-YKROSGHR.js";
17
17
  import {
18
18
  fileTimeText
19
- } from "./chunk-6UY6Q3H3.js";
19
+ } from "./chunk-QC3Q4VET.js";
20
20
  import {
21
21
  KordocError,
22
22
  precheckZipSize
23
- } from "./chunk-ITECESX6.js";
23
+ } from "./chunk-AVAGQG3L.js";
24
24
 
25
25
  // src/form/memo.ts
26
26
  import JSZip from "jszip";
@@ -127,4 +127,4 @@ async function addMemoHwpx(hwpxBuffer, ops, now = /* @__PURE__ */ new Date()) {
127
127
  export {
128
128
  addMemoHwpx
129
129
  };
130
- //# sourceMappingURL=chunk-SEX6XWX7.js.map
130
+ //# sourceMappingURL=chunk-74YTJRYG.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  extractRenderedRegions,
3
3
  renderDocumentToScene
4
- } from "./chunk-3YHLDW7C.js";
4
+ } from "./chunk-NTJZSRU6.js";
5
5
  import {
6
6
  EV,
7
7
  blocksToPages,
@@ -17,7 +17,7 @@ import {
17
17
  restoreUnmappedGlyphs,
18
18
  spaceMappedDots,
19
19
  wmfBitmap
20
- } from "./chunk-E52RFWAK.js";
20
+ } from "./chunk-HNMFCEB2.js";
21
21
  import {
22
22
  applyCellEdit,
23
23
  buildOrigUnits,
@@ -30,13 +30,13 @@ import {
30
30
  resolveParagraphMappings,
31
31
  resolveSectionEntryNames,
32
32
  stripCellTokens
33
- } from "./chunk-MU75DILK.js";
33
+ } from "./chunk-ULPZO66F.js";
34
34
  import {
35
35
  dcxPages,
36
36
  hasLibheif,
37
37
  heicToRgba,
38
38
  pcxToRgba
39
- } from "./chunk-QP7P3MVI.js";
39
+ } from "./chunk-CP4DVSSB.js";
40
40
  import {
41
41
  WEBP_OPTIONS,
42
42
  flushHeifCache,
@@ -69,10 +69,10 @@ import {
69
69
  summarize,
70
70
  topLevelParagraphs,
71
71
  usesV5Engine
72
- } from "./chunk-K46IEF7M.js";
72
+ } from "./chunk-VBGM3CIH.js";
73
73
  import {
74
74
  patchZipEntries
75
- } from "./chunk-6HDDPUBR.js";
75
+ } from "./chunk-WTMU4QEW.js";
76
76
  import {
77
77
  ANNOTATION_BLANK_RE,
78
78
  ValueCursor,
@@ -111,7 +111,7 @@ import {
111
111
  rawTextContent,
112
112
  readZipEntry,
113
113
  warnInto
114
- } from "./chunk-WQU4SUVX.js";
114
+ } from "./chunk-YKROSGHR.js";
115
115
  import {
116
116
  comResultToParseResult,
117
117
  extractTextViaCom,
@@ -128,7 +128,7 @@ import {
128
128
  memosMarkdown,
129
129
  parseHwp5Document,
130
130
  resolveImageBlocks
131
- } from "./chunk-YJ3BAKYB.js";
131
+ } from "./chunk-VT7T7R3M.js";
132
132
  import {
133
133
  MAX_PIXELS,
134
134
  bmpToPng,
@@ -154,7 +154,7 @@ import {
154
154
  } from "./chunk-Y6BVOW4Y.js";
155
155
  import {
156
156
  validateOcrOptions
157
- } from "./chunk-67I4YNFQ.js";
157
+ } from "./chunk-ZDISS2SZ.js";
158
158
  import {
159
159
  normalizedSimilarity,
160
160
  similarityUpperBound,
@@ -166,7 +166,7 @@ import {
166
166
  stripScriptTags,
167
167
  tidyScriptTags,
168
168
  wrapScript
169
- } from "./chunk-7HZNGQ5U.js";
169
+ } from "./chunk-Y3DRNIXW.js";
170
170
  import {
171
171
  MAX_COLS,
172
172
  MAX_ROWS,
@@ -177,7 +177,7 @@ import {
177
177
  flattenLayoutTables,
178
178
  hasStructuredCellContent,
179
179
  sanitizeText
180
- } from "./chunk-UBVTDQGG.js";
180
+ } from "./chunk-PIUSGKCJ.js";
181
181
  import {
182
182
  hangulAmount,
183
183
  mapPuaText
@@ -188,7 +188,7 @@ import {
188
188
  import {
189
189
  ensureModelsIn,
190
190
  getModelsDir
191
- } from "./chunk-RKGQTQYO.js";
191
+ } from "./chunk-NPC3KSLU.js";
192
192
  import {
193
193
  BARE_URL,
194
194
  KordocError,
@@ -206,7 +206,7 @@ import {
206
206
  toArrayBuffer,
207
207
  unescapeHtml,
208
208
  unzipLimitBytes
209
- } from "./chunk-ITECESX6.js";
209
+ } from "./chunk-AVAGQG3L.js";
210
210
 
211
211
  // src/table/visual.ts
212
212
  import { readFile as readFile4 } from "node:fs/promises";
@@ -16984,7 +16984,7 @@ var MIN_SIDE = 24;
16984
16984
  async function ocrEmbeddedImages(blocks, options, warnings) {
16985
16985
  const ocr = options?.ocr;
16986
16986
  if (ocr !== true && ocr !== "force" && typeof ocr !== "function") return false;
16987
- const { parseImageDocument } = await import("./image-ocr-5HIABUZG.js");
16987
+ const { parseImageDocument } = await import("./image-ocr-UBZZANWO.js");
16988
16988
  let inserted = false, unreadable = 0;
16989
16989
  let failed = null;
16990
16990
  const walk = async (list, depth) => {
@@ -21342,8 +21342,8 @@ var MAX_MULTIPAGE_PIXELS = 1e9;
21342
21342
  var MIN_PAGE_PIXELS = 1e6;
21343
21343
  async function parseImage(buffer, options) {
21344
21344
  try {
21345
- const { parseImageDocument, imagePageCount, imagePage, imagePagePixels, decodeToRgba } = await import("./image-ocr-5HIABUZG.js");
21346
- const pageRasters = options?.pageImages ? new (await import("./page-images-YFM4CSIC.js")).PageImageSink(options.pageImages) : null;
21345
+ const { parseImageDocument, imagePageCount, imagePage, imagePagePixels, decodeToRgba } = await import("./image-ocr-UBZZANWO.js");
21346
+ const pageRasters = options?.pageImages ? new (await import("./page-images-QOQUGDQS.js")).PageImageSink(options.pageImages) : null;
21347
21347
  const pageCount = await imagePageCount(buffer);
21348
21348
  const wanted = pageCount > 1 && options?.pages ? parsePageRange(options.pages, pageCount) : null;
21349
21349
  const blocks = [], warnings = [], lines = [], images = [];
@@ -21450,7 +21450,7 @@ async function parseHwp(buffer, options) {
21450
21450
  async function parsePdf(buffer, options) {
21451
21451
  let parsePdfDocument;
21452
21452
  try {
21453
- const mod = await import("./parser-IX22R5CW.js");
21453
+ const mod = await import("./parser-JIDRX6AB.js");
21454
21454
  parsePdfDocument = mod.parsePdfDocument;
21455
21455
  } catch (err) {
21456
21456
  return { success: false, fileType: "pdf", error: sanitizeError(err), code: classifyError(err) };
@@ -21527,7 +21527,7 @@ async function fillForm(input, values, outputFormat = "markdown") {
21527
21527
  throw new Error(`hwpx-preserve 포맷은 HWPX·HWP 5.x 입력만 지원합니다 (감지된 포맷: ${zipFormat})`);
21528
21528
  }
21529
21529
  } else if (format2 === "hwp" && detectOle2Format(buffer) === "hwp") {
21530
- const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-23VZEMCA.js");
21530
+ const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-QYDUGPOF.js");
21531
21531
  const hwpx = await hwpToHwpx2(new Uint8Array(buffer));
21532
21532
  buffer = hwpx.buffer.slice(hwpx.byteOffset, hwpx.byteOffset + hwpx.byteLength);
21533
21533
  } else {
@@ -21683,4 +21683,4 @@ export {
21683
21683
  parseHwpml,
21684
21684
  fillForm
21685
21685
  };
21686
- //# sourceMappingURL=chunk-TEGIJIXP.js.map
21686
+ //# sourceMappingURL=chunk-A3DHXCLY.js.map