kordoc 4.24.71 → 4.24.72
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.
- package/README.md +3 -3
- package/dist/{-F7GLIIGT.js → -S32WDXC4.js} +21 -21
- package/dist/{chunk-GFAWIBHG.js → chunk-2SUWIRWH.js} +10 -10
- package/dist/{chunk-T7MHZIFG.js → chunk-4ECEC6FD.js} +23 -4
- package/dist/chunk-4ECEC6FD.js.map +1 -0
- package/dist/{chunk-DSCT67WF.js → chunk-4GPZVPYG.js} +3 -3
- package/dist/{chunk-UJQRIX4L.js → chunk-4Q7L4IDD.js} +2 -2
- package/dist/{chunk-RUUUGCXS.js → chunk-4QOTRR5Z.js} +6 -6
- package/dist/{chunk-AUHQRRKM.js → chunk-4UL2KIOH.js} +3 -3
- package/dist/{chunk-YJ2YVG6N.cjs → chunk-5CYWVW3V.cjs} +88 -88
- package/dist/{chunk-YJ2YVG6N.cjs.map → chunk-5CYWVW3V.cjs.map} +1 -1
- package/dist/{chunk-IMT5TVVM.js → chunk-6DIACQ3R.js} +2 -2
- package/dist/{chunk-OJK4FLS5.js → chunk-6GQGU57N.js} +3 -3
- package/dist/{chunk-WMA4GJHC.js → chunk-7N2L6FBB.js} +5 -5
- package/dist/{chunk-5WWGC5SG.js → chunk-BD75GPTM.js} +2 -2
- package/dist/{chunk-2OF2YWIZ.js → chunk-BJCTFKEU.js} +2 -2
- package/dist/{chunk-MHXPW72E.js → chunk-C3USRXCH.js} +2 -2
- package/dist/{chunk-NPBNJCXZ.js → chunk-C4K2XCGX.js} +2 -2
- package/dist/{chunk-H2VOH7X3.cjs → chunk-COG4POSK.cjs} +199 -180
- package/dist/chunk-COG4POSK.cjs.map +1 -0
- package/dist/{chunk-O7PJFEOC.js → chunk-CQUOEZBJ.js} +2 -2
- package/dist/{chunk-2VBRCIPI.js → chunk-DIHV6CDK.js} +2 -2
- package/dist/{chunk-KGCJNPAI.js → chunk-FKCSNCWC.js} +5 -5
- package/dist/{chunk-2CPEW6WC.js → chunk-FTPYYLCR.js} +3 -3
- package/dist/{chunk-7KVDHXP2.js → chunk-G3TKEQZ3.js} +4 -4
- package/dist/{chunk-TYGZ6O2A.js → chunk-GAZDWFRT.js} +11 -11
- package/dist/{chunk-HIYRMYAS.js → chunk-GK4OHUV5.js} +2 -2
- package/dist/{chunk-LNWURZ2Z.js → chunk-GOQWCHX5.js} +7 -7
- package/dist/{chunk-ZPJZXTEG.js → chunk-IPYSZ2WD.js} +6 -6
- package/dist/{chunk-BNP3WXTB.cjs → chunk-JE4NCQIN.cjs} +3 -3
- package/dist/{chunk-BNP3WXTB.cjs.map → chunk-JE4NCQIN.cjs.map} +1 -1
- package/dist/{chunk-YTDHH362.js → chunk-JEPTA64I.js} +2 -2
- package/dist/{chunk-OW2XKTQA.cjs → chunk-L4GCUYDS.cjs} +8 -8
- package/dist/{chunk-OW2XKTQA.cjs.map → chunk-L4GCUYDS.cjs.map} +1 -1
- package/dist/{chunk-EZNUMAAJ.js → chunk-LINC7S3M.js} +2 -2
- package/dist/{chunk-6ZA4V4QS.js → chunk-MCO77XJN.js} +2 -2
- package/dist/{chunk-KLUI4SAZ.js → chunk-MHYFBIS5.js} +2 -2
- package/dist/{chunk-GRCIFCGC.js → chunk-NHWWNRQT.js} +2 -2
- package/dist/{chunk-RWU3Y5YK.js → chunk-O4MTW4JH.js} +18 -16
- package/dist/chunk-O4MTW4JH.js.map +1 -0
- package/dist/{chunk-M27VBFO6.js → chunk-SGQC3BVV.js} +22 -3
- package/dist/chunk-SGQC3BVV.js.map +1 -0
- package/dist/{chunk-OUHMNF2A.js → chunk-SNNM4GFE.js} +2 -2
- package/dist/{chunk-SK5AOGYK.cjs → chunk-TDNYBCPC.cjs} +104 -104
- package/dist/{chunk-SK5AOGYK.cjs.map → chunk-TDNYBCPC.cjs.map} +1 -1
- package/dist/{chunk-YTP7FPA5.cjs → chunk-U2K3WVR5.cjs} +3 -3
- package/dist/{chunk-YTP7FPA5.cjs.map → chunk-U2K3WVR5.cjs.map} +1 -1
- package/dist/{chunk-D4UFBXMT.js → chunk-U6CZ5IGF.js} +2 -2
- package/dist/{chunk-YPRIJDH6.js → chunk-UOML7PVK.js} +2 -2
- package/dist/{chunk-QK5KCWLE.js → chunk-VRJ3CABR.js} +2 -2
- package/dist/{chunk-YISBYF7X.cjs → chunk-WWTG5JUI.cjs} +58 -58
- package/dist/{chunk-YISBYF7X.cjs.map → chunk-WWTG5JUI.cjs.map} +1 -1
- package/dist/{chunk-SMEBVDM2.js → chunk-WXKUE2MU.js} +5 -5
- package/dist/{chunk-BHYBZSOC.js → chunk-YZXGUJFI.js} +2 -2
- package/dist/{chunk-LFTO5QAP.cjs → chunk-ZTVH2HQ5.cjs} +2 -2
- package/dist/{chunk-LFTO5QAP.cjs.map → chunk-ZTVH2HQ5.cjs.map} +1 -1
- package/dist/chunks-XNCDYMWO.js +11 -0
- package/dist/cli.js +45 -45
- package/dist/{formula-RTPZD2IM.cjs → formula-BLK43PWB.cjs} +41 -11
- package/dist/formula-BLK43PWB.cjs.map +1 -0
- package/dist/{formula-UJF4RZ6W.js → formula-E5QNTLM3.js} +35 -5
- package/dist/formula-E5QNTLM3.js.map +1 -0
- package/dist/{formula-3PJYUQMG.js → formula-WVFBIXND.js} +36 -6
- package/dist/formula-WVFBIXND.js.map +1 -0
- package/dist/generator-5VFDO4CB.js +11 -0
- package/dist/generator-APR6DUTL.cjs +12 -0
- package/dist/{generator-INMUN6KB.cjs.map → generator-APR6DUTL.cjs.map} +1 -1
- package/dist/generator-IOGPVCG2.js +18 -0
- package/dist/{hancom-RYIZHWJ5.js → hancom-BCYRSFDF.js} +2 -2
- package/dist/{hancom-MVPEYI4X.cjs → hancom-DJTR4HYI.cjs} +5 -5
- package/dist/{hancom-MVPEYI4X.cjs.map → hancom-DJTR4HYI.cjs.map} +1 -1
- package/dist/{hancom-P3SUQXM4.js → hancom-HLLJXF2H.js} +2 -2
- package/dist/{image-ocr-GL5YVCNU.js → image-ocr-B5SIBPET.js} +10 -10
- package/dist/{image-ocr-ZS4EMQN3.cjs → image-ocr-HCT57HQA.cjs} +28 -28
- package/dist/{image-ocr-ZS4EMQN3.cjs.map → image-ocr-HCT57HQA.cjs.map} +1 -1
- package/dist/{image-ocr-ZXLHPQI2.js → image-ocr-QSSVO27L.js} +7 -7
- package/dist/index.cjs +1118 -1116
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -10
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +36 -36
- package/dist/memo-R5CO35OZ.js +17 -0
- package/dist/{model-bundle-VCUAKBF3.js → model-bundle-KB7GFS7J.js} +5 -5
- package/dist/{models-UACAGYBI.js → models-A6PYBE2Q.js} +5 -5
- package/dist/{parse-worker-v2-LJB4QXGF.js → parse-worker-v2-OSOABIQB.js} +22 -22
- package/dist/{parser-5GZUD22P.js → parser-E2ZCR6UV.js} +12 -12
- package/dist/{parser-HCZD4DUO.js → parser-F7Q2ENVO.js} +9 -9
- package/dist/{parser-T4HAQ3QW.cjs → parser-JQXLIKOT.cjs} +166 -166
- package/dist/{parser-T4HAQ3QW.cjs.map → parser-JQXLIKOT.cjs.map} +1 -1
- package/dist/pdf-ocr-AV7FKNFZ.cjs +43 -0
- package/dist/{pdf-ocr-H4DKZSOB.cjs.map → pdf-ocr-AV7FKNFZ.cjs.map} +1 -1
- package/dist/{pdf-ocr-JXVGK5MR.js → pdf-ocr-B6QVPBMI.js} +6 -6
- package/dist/{pdf-ocr-YCMC2VL4.js → pdf-ocr-RY6UZ5PG.js} +9 -9
- package/dist/{profile-io-MVTEOXAU.js → profile-io-FX2SDCMR.js} +3 -3
- package/dist/{rasterize-VWT3C3RW.js → rasterize-ZJAMZCQM.js} +3 -3
- package/dist/{redact-doc-SU3JDC6F.js → redact-doc-DNXUF4WL.js} +21 -21
- package/dist/{render-D5N4FKWB.js → render-FQ2LMZIL.js} +12 -12
- package/dist/{rewrite-fallback-QXTWSPGY.js → rewrite-fallback-QNLQXJRS.js} +13 -13
- package/dist/seal-6LBVNZYX.js +16 -0
- package/dist/{setup-TXNJYX6P.js → setup-2VMN6LBY.js} +3 -3
- package/dist/to-hwpx-2RENWAWF.cjs +16 -0
- package/dist/{to-hwpx-KZTTH7EY.cjs.map → to-hwpx-2RENWAWF.cjs.map} +1 -1
- package/dist/{to-hwpx-YHGVFTBO.js → to-hwpx-DS6DH5WH.js} +4 -4
- package/dist/{to-hwpx-Z7NHUMUD.js → to-hwpx-H7B6CEN5.js} +7 -7
- package/dist/visual-3H3HGNOW.js +38 -0
- package/dist/{watch-EI5QYDT2.js → watch-53NVSD5Z.js} +22 -22
- package/package.json +1 -1
- package/dist/chunk-H2VOH7X3.cjs.map +0 -1
- package/dist/chunk-M27VBFO6.js.map +0 -1
- package/dist/chunk-RWU3Y5YK.js.map +0 -1
- package/dist/chunk-T7MHZIFG.js.map +0 -1
- package/dist/chunks-JAD5Z5YY.js +0 -11
- package/dist/formula-3PJYUQMG.js.map +0 -1
- package/dist/formula-RTPZD2IM.cjs.map +0 -1
- package/dist/formula-UJF4RZ6W.js.map +0 -1
- package/dist/generator-EB2436BE.js +0 -18
- package/dist/generator-INMUN6KB.cjs +0 -12
- package/dist/generator-K5KMPSLC.js +0 -11
- package/dist/memo-JNMSGIO7.js +0 -17
- package/dist/pdf-ocr-H4DKZSOB.cjs +0 -43
- package/dist/seal-Q3BD6CRB.js +0 -16
- package/dist/to-hwpx-KZTTH7EY.cjs +0 -16
- package/dist/visual-LNHFYJDL.js +0 -38
- /package/dist/{-F7GLIIGT.js.map → -S32WDXC4.js.map} +0 -0
- /package/dist/{chunk-GFAWIBHG.js.map → chunk-2SUWIRWH.js.map} +0 -0
- /package/dist/{chunk-DSCT67WF.js.map → chunk-4GPZVPYG.js.map} +0 -0
- /package/dist/{chunk-UJQRIX4L.js.map → chunk-4Q7L4IDD.js.map} +0 -0
- /package/dist/{chunk-RUUUGCXS.js.map → chunk-4QOTRR5Z.js.map} +0 -0
- /package/dist/{chunk-AUHQRRKM.js.map → chunk-4UL2KIOH.js.map} +0 -0
- /package/dist/{chunk-IMT5TVVM.js.map → chunk-6DIACQ3R.js.map} +0 -0
- /package/dist/{chunk-OJK4FLS5.js.map → chunk-6GQGU57N.js.map} +0 -0
- /package/dist/{chunk-WMA4GJHC.js.map → chunk-7N2L6FBB.js.map} +0 -0
- /package/dist/{chunk-5WWGC5SG.js.map → chunk-BD75GPTM.js.map} +0 -0
- /package/dist/{chunk-2OF2YWIZ.js.map → chunk-BJCTFKEU.js.map} +0 -0
- /package/dist/{chunk-MHXPW72E.js.map → chunk-C3USRXCH.js.map} +0 -0
- /package/dist/{chunk-NPBNJCXZ.js.map → chunk-C4K2XCGX.js.map} +0 -0
- /package/dist/{chunk-O7PJFEOC.js.map → chunk-CQUOEZBJ.js.map} +0 -0
- /package/dist/{chunk-2VBRCIPI.js.map → chunk-DIHV6CDK.js.map} +0 -0
- /package/dist/{chunk-KGCJNPAI.js.map → chunk-FKCSNCWC.js.map} +0 -0
- /package/dist/{chunk-2CPEW6WC.js.map → chunk-FTPYYLCR.js.map} +0 -0
- /package/dist/{chunk-7KVDHXP2.js.map → chunk-G3TKEQZ3.js.map} +0 -0
- /package/dist/{chunk-TYGZ6O2A.js.map → chunk-GAZDWFRT.js.map} +0 -0
- /package/dist/{chunk-HIYRMYAS.js.map → chunk-GK4OHUV5.js.map} +0 -0
- /package/dist/{chunk-LNWURZ2Z.js.map → chunk-GOQWCHX5.js.map} +0 -0
- /package/dist/{chunk-ZPJZXTEG.js.map → chunk-IPYSZ2WD.js.map} +0 -0
- /package/dist/{chunk-YTDHH362.js.map → chunk-JEPTA64I.js.map} +0 -0
- /package/dist/{chunk-EZNUMAAJ.js.map → chunk-LINC7S3M.js.map} +0 -0
- /package/dist/{chunk-6ZA4V4QS.js.map → chunk-MCO77XJN.js.map} +0 -0
- /package/dist/{chunk-KLUI4SAZ.js.map → chunk-MHYFBIS5.js.map} +0 -0
- /package/dist/{chunk-GRCIFCGC.js.map → chunk-NHWWNRQT.js.map} +0 -0
- /package/dist/{chunk-OUHMNF2A.js.map → chunk-SNNM4GFE.js.map} +0 -0
- /package/dist/{chunk-D4UFBXMT.js.map → chunk-U6CZ5IGF.js.map} +0 -0
- /package/dist/{chunk-YPRIJDH6.js.map → chunk-UOML7PVK.js.map} +0 -0
- /package/dist/{chunk-QK5KCWLE.js.map → chunk-VRJ3CABR.js.map} +0 -0
- /package/dist/{chunk-SMEBVDM2.js.map → chunk-WXKUE2MU.js.map} +0 -0
- /package/dist/{chunk-BHYBZSOC.js.map → chunk-YZXGUJFI.js.map} +0 -0
- /package/dist/{chunks-JAD5Z5YY.js.map → chunks-XNCDYMWO.js.map} +0 -0
- /package/dist/{generator-EB2436BE.js.map → generator-5VFDO4CB.js.map} +0 -0
- /package/dist/{generator-K5KMPSLC.js.map → generator-IOGPVCG2.js.map} +0 -0
- /package/dist/{hancom-RYIZHWJ5.js.map → hancom-BCYRSFDF.js.map} +0 -0
- /package/dist/{hancom-P3SUQXM4.js.map → hancom-HLLJXF2H.js.map} +0 -0
- /package/dist/{image-ocr-GL5YVCNU.js.map → image-ocr-B5SIBPET.js.map} +0 -0
- /package/dist/{image-ocr-ZXLHPQI2.js.map → image-ocr-QSSVO27L.js.map} +0 -0
- /package/dist/{memo-JNMSGIO7.js.map → memo-R5CO35OZ.js.map} +0 -0
- /package/dist/{model-bundle-VCUAKBF3.js.map → model-bundle-KB7GFS7J.js.map} +0 -0
- /package/dist/{models-UACAGYBI.js.map → models-A6PYBE2Q.js.map} +0 -0
- /package/dist/{parse-worker-v2-LJB4QXGF.js.map → parse-worker-v2-OSOABIQB.js.map} +0 -0
- /package/dist/{parser-5GZUD22P.js.map → parser-E2ZCR6UV.js.map} +0 -0
- /package/dist/{parser-HCZD4DUO.js.map → parser-F7Q2ENVO.js.map} +0 -0
- /package/dist/{pdf-ocr-JXVGK5MR.js.map → pdf-ocr-B6QVPBMI.js.map} +0 -0
- /package/dist/{pdf-ocr-YCMC2VL4.js.map → pdf-ocr-RY6UZ5PG.js.map} +0 -0
- /package/dist/{profile-io-MVTEOXAU.js.map → profile-io-FX2SDCMR.js.map} +0 -0
- /package/dist/{rasterize-VWT3C3RW.js.map → rasterize-ZJAMZCQM.js.map} +0 -0
- /package/dist/{redact-doc-SU3JDC6F.js.map → redact-doc-DNXUF4WL.js.map} +0 -0
- /package/dist/{render-D5N4FKWB.js.map → render-FQ2LMZIL.js.map} +0 -0
- /package/dist/{rewrite-fallback-QXTWSPGY.js.map → rewrite-fallback-QNLQXJRS.js.map} +0 -0
- /package/dist/{seal-Q3BD6CRB.js.map → seal-6LBVNZYX.js.map} +0 -0
- /package/dist/{setup-TXNJYX6P.js.map → setup-2VMN6LBY.js.map} +0 -0
- /package/dist/{to-hwpx-YHGVFTBO.js.map → to-hwpx-DS6DH5WH.js.map} +0 -0
- /package/dist/{to-hwpx-Z7NHUMUD.js.map → to-hwpx-H7B6CEN5.js.map} +0 -0
- /package/dist/{visual-LNHFYJDL.js.map → visual-3H3HGNOW.js.map} +0 -0
- /package/dist/{watch-EI5QYDT2.js.map → watch-53NVSD5Z.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
KordocError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VRJ3CABR.js";
|
|
5
5
|
|
|
6
6
|
// src/hwpx/profile-io.ts
|
|
7
7
|
import { z } from "zod";
|
|
@@ -89,4 +89,4 @@ export {
|
|
|
89
89
|
formatProfileSchema,
|
|
90
90
|
parseFormatProfileJson
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=chunk-
|
|
92
|
+
//# sourceMappingURL=chunk-LINC7S3M.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
assertNetworkAllowed
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6DIACQ3R.js";
|
|
5
5
|
|
|
6
6
|
// src/pdf/formula/models.ts
|
|
7
7
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -296,4 +296,4 @@ export {
|
|
|
296
296
|
ensureFormulaModels,
|
|
297
297
|
ensureSingleModel
|
|
298
298
|
};
|
|
299
|
-
//# sourceMappingURL=chunk-
|
|
299
|
+
//# sourceMappingURL=chunk-MCO77XJN.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
KordocError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DIHV6CDK.js";
|
|
4
4
|
|
|
5
5
|
// src/pdf/formula/models.ts
|
|
6
6
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -310,4 +310,4 @@ export {
|
|
|
310
310
|
ensureFormulaModels,
|
|
311
311
|
ensureSingleModel
|
|
312
312
|
};
|
|
313
|
-
//# sourceMappingURL=chunk-
|
|
313
|
+
//# sourceMappingURL=chunk-MHYFBIS5.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-UJELMNOU.js";
|
|
5
5
|
import {
|
|
6
6
|
blocksToMarkdown
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-C3USRXCH.js";
|
|
8
8
|
|
|
9
9
|
// src/qr.ts
|
|
10
10
|
import { readFile } from "fs/promises";
|
|
@@ -211,4 +211,4 @@ export {
|
|
|
211
211
|
dropBlankImages,
|
|
212
212
|
blocksToPages
|
|
213
213
|
};
|
|
214
|
-
//# sourceMappingURL=chunk-
|
|
214
|
+
//# sourceMappingURL=chunk-NHWWNRQT.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
extractRenderedRegions,
|
|
4
4
|
renderDocumentToScene
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2SUWIRWH.js";
|
|
6
6
|
import {
|
|
7
7
|
WEBP_OPTIONS,
|
|
8
8
|
blocksToPages,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
loadSharp,
|
|
11
11
|
readImageQrCodes,
|
|
12
12
|
toBuffer
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4Q7L4IDD.js";
|
|
14
14
|
import {
|
|
15
15
|
applyCellEdit,
|
|
16
16
|
buildOrigUnits,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
resolveParagraphMappings,
|
|
24
24
|
resolveSectionEntryNames,
|
|
25
25
|
stripCellTokens
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GAZDWFRT.js";
|
|
27
27
|
import {
|
|
28
28
|
TOTAL_LABEL_RE,
|
|
29
29
|
comResultToParseResult,
|
|
@@ -49,10 +49,10 @@ import {
|
|
|
49
49
|
stripHeadMarker,
|
|
50
50
|
summarize,
|
|
51
51
|
topLevelParagraphs
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-4QOTRR5Z.js";
|
|
53
53
|
import {
|
|
54
54
|
patchZipEntries
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-CQUOEZBJ.js";
|
|
56
56
|
import {
|
|
57
57
|
ANNOTATION_BLANK_RE,
|
|
58
58
|
ValueCursor,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
rawTextContent,
|
|
92
92
|
readZipEntry,
|
|
93
93
|
warnInto
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-U6CZ5IGF.js";
|
|
95
95
|
import {
|
|
96
96
|
INLINE_TABLE_MARK,
|
|
97
97
|
blocksPlainText,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
memosMarkdown,
|
|
105
105
|
parseHwp5Document,
|
|
106
106
|
resolveImageBlocks
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-7N2L6FBB.js";
|
|
108
108
|
import {
|
|
109
109
|
MAX_PIXELS,
|
|
110
110
|
bmpToPng,
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
stripScriptTags,
|
|
137
137
|
tidyScriptTags,
|
|
138
138
|
wrapScript
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-C4K2XCGX.js";
|
|
140
140
|
import {
|
|
141
141
|
MAX_COLS,
|
|
142
142
|
MAX_ROWS,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
flattenLayoutTables,
|
|
148
148
|
hasStructuredCellContent,
|
|
149
149
|
sanitizeText
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-BJCTFKEU.js";
|
|
151
151
|
import {
|
|
152
152
|
hangulAmount,
|
|
153
153
|
mapPuaText
|
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
toArrayBuffer,
|
|
170
170
|
unescapeHtml,
|
|
171
171
|
unzipLimitBytes
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-VRJ3CABR.js";
|
|
173
173
|
|
|
174
174
|
// src/table/visual.ts
|
|
175
175
|
import { readFile as readFile2 } from "fs/promises";
|
|
@@ -12935,7 +12935,7 @@ function parseHwp3Document(buffer, options) {
|
|
|
12935
12935
|
body = tail;
|
|
12936
12936
|
}
|
|
12937
12937
|
const bodyReader = new Reader(body);
|
|
12938
|
-
const ctx = { warnings, headerBlocks: [], footerBlocks: [], headerTexts: /* @__PURE__ */ new Set(), pageNumbers: 0, noteSeq: [0, 0], depth: 0, picIds: /* @__PURE__ */ new Map() };
|
|
12938
|
+
const ctx = { warnings, headerBlocks: [], footerBlocks: [], headerTexts: /* @__PURE__ */ new Set(), pageNumbers: 0, noteSeq: [0, 0], depth: 0, picIds: /* @__PURE__ */ new Map(), pictures: 0 };
|
|
12939
12939
|
const bodyBlocks = [];
|
|
12940
12940
|
let binData = /* @__PURE__ */ new Map();
|
|
12941
12941
|
try {
|
|
@@ -13202,6 +13202,7 @@ function autoNumberText(type, num2, ctx) {
|
|
|
13202
13202
|
ctx.pageNumbers++;
|
|
13203
13203
|
return "";
|
|
13204
13204
|
}
|
|
13205
|
+
if (type === 3 && ctx.pictures > 0) return String(ctx.pictures);
|
|
13205
13206
|
if (num2 <= 0) return " ";
|
|
13206
13207
|
return type === 1 || type === 2 ? `${num2})` : String(num2);
|
|
13207
13208
|
}
|
|
@@ -13290,6 +13291,7 @@ function parsePicture(reader, ctx) {
|
|
|
13290
13291
|
const blocks = [];
|
|
13291
13292
|
if (ext && info[74] === PIC_TYPE_DRAWING) parseDrawingObject(ext, ctx, blocks);
|
|
13292
13293
|
else {
|
|
13294
|
+
ctx.pictures++;
|
|
13293
13295
|
const name = decodeHwp3String(info.subarray(83, 83 + 256));
|
|
13294
13296
|
let id = ctx.picIds.get(name);
|
|
13295
13297
|
if (id === void 0) ctx.picIds.set(name, id = ctx.picIds.size + 1);
|
|
@@ -16945,7 +16947,7 @@ var MIN_SIDE = 24;
|
|
|
16945
16947
|
async function ocrEmbeddedImages(blocks, options, warnings) {
|
|
16946
16948
|
const ocr = options?.ocr;
|
|
16947
16949
|
if (ocr !== true && ocr !== "force" && typeof ocr !== "function") return false;
|
|
16948
|
-
const { parseImageDocument } = await import("./image-ocr-
|
|
16950
|
+
const { parseImageDocument } = await import("./image-ocr-B5SIBPET.js");
|
|
16949
16951
|
let inserted = false, unreadable = 0;
|
|
16950
16952
|
let failed = null;
|
|
16951
16953
|
const walk = async (list, depth) => {
|
|
@@ -20642,7 +20644,7 @@ function scriptsOff(r, off) {
|
|
|
20642
20644
|
}
|
|
20643
20645
|
async function parseImage(buffer, options) {
|
|
20644
20646
|
try {
|
|
20645
|
-
const { parseImageDocument } = await import("./image-ocr-
|
|
20647
|
+
const { parseImageDocument } = await import("./image-ocr-B5SIBPET.js");
|
|
20646
20648
|
const { blocks, warnings, lines } = await parseImageDocument(buffer, options);
|
|
20647
20649
|
stripScriptTags({ blocks });
|
|
20648
20650
|
return {
|
|
@@ -20717,7 +20719,7 @@ async function parseHwp(buffer, options) {
|
|
|
20717
20719
|
async function parsePdf(buffer, options) {
|
|
20718
20720
|
let parsePdfDocument;
|
|
20719
20721
|
try {
|
|
20720
|
-
const mod = await import("./parser-
|
|
20722
|
+
const mod = await import("./parser-E2ZCR6UV.js");
|
|
20721
20723
|
parsePdfDocument = mod.parsePdfDocument;
|
|
20722
20724
|
} catch {
|
|
20723
20725
|
return {
|
|
@@ -20799,7 +20801,7 @@ async function fillForm(input, values, outputFormat = "markdown") {
|
|
|
20799
20801
|
throw new Error(`hwpx-preserve \uD3EC\uB9F7\uC740 HWPX\xB7HWP 5.x \uC785\uB825\uB9CC \uC9C0\uC6D0\uD569\uB2C8\uB2E4 (\uAC10\uC9C0\uB41C \uD3EC\uB9F7: ${zipFormat})`);
|
|
20800
20802
|
}
|
|
20801
20803
|
} else if (format2 === "hwp" && detectOle2Format(buffer) === "hwp") {
|
|
20802
|
-
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-
|
|
20804
|
+
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-H7B6CEN5.js");
|
|
20803
20805
|
const hwpx = await hwpToHwpx2(new Uint8Array(buffer));
|
|
20804
20806
|
buffer = hwpx.buffer.slice(hwpx.byteOffset, hwpx.byteOffset + hwpx.byteLength);
|
|
20805
20807
|
} else {
|
|
@@ -20949,4 +20951,4 @@ export {
|
|
|
20949
20951
|
parseHwpml,
|
|
20950
20952
|
fillForm
|
|
20951
20953
|
};
|
|
20952
|
-
//# sourceMappingURL=chunk-
|
|
20954
|
+
//# sourceMappingURL=chunk-O4MTW4JH.js.map
|