kordoc 4.24.63 → 4.24.64
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 +2 -2
- package/dist/{-JKJWVZ7E.js → -QAZ44KKA.js} +21 -21
- package/dist/{chunk-PEDFVAXJ.js → chunk-34OGRWYW.js} +6 -5
- package/dist/chunk-34OGRWYW.js.map +1 -0
- package/dist/{chunk-MKH2CVD2.cjs → chunk-35WLNE3R.cjs} +3 -3
- package/dist/{chunk-MKH2CVD2.cjs.map → chunk-35WLNE3R.cjs.map} +1 -1
- package/dist/{chunk-AKMBPYRU.js → chunk-36EJXOCF.js} +5 -5
- package/dist/{chunk-WB4LZYGW.cjs → chunk-3XZR5JQY.cjs} +113 -108
- package/dist/chunk-3XZR5JQY.cjs.map +1 -0
- package/dist/{chunk-JMYWAW2S.js → chunk-4R6LAJCT.js} +7 -7
- package/dist/{chunk-CB365CYO.cjs → chunk-72H52U6F.cjs} +91 -90
- package/dist/{chunk-Q2ZKAVNU.js.map → chunk-72H52U6F.cjs.map} +1 -1
- package/dist/{chunk-3R4LS2QM.js → chunk-ACDKOGKO.js} +15 -15
- package/dist/{chunk-B7JISVV7.js → chunk-AZZKSDLD.js} +2 -2
- package/dist/{chunk-KWISIIRJ.js → chunk-CKA2X7FC.js} +2 -2
- package/dist/{chunk-HG6K7PDG.js → chunk-COARY4DW.js} +2 -2
- package/dist/{chunk-Q2ZKAVNU.js → chunk-DAP3G7G3.js} +7 -6
- package/dist/chunk-DAP3G7G3.js.map +1 -0
- package/dist/{chunk-NCI5VSUC.js → chunk-DFZIE6NM.js} +2 -2
- package/dist/{chunk-X4PFJ3S3.js → chunk-EUNUDJXO.js} +2 -2
- package/dist/{chunk-SQT5Z35B.cjs → chunk-FEFKONND.cjs} +25 -25
- package/dist/{chunk-SQT5Z35B.cjs.map → chunk-FEFKONND.cjs.map} +1 -1
- package/dist/{chunk-A73BTJH5.js → chunk-FNRCQGZN.js} +4 -4
- package/dist/{chunk-PTWPZYBM.js → chunk-FPC3GEAD.js} +10 -10
- package/dist/{chunk-ZVUZZFGY.js → chunk-GDRQGXPC.js} +3 -3
- package/dist/{chunk-FIKCNQ5Q.js → chunk-GOXFAAHN.js} +2 -2
- package/dist/{chunk-YRMVLAYZ.js → chunk-HQSGKBH4.js} +2 -2
- package/dist/{chunk-SPEEZYS4.js → chunk-I4ON2NHU.js} +6 -6
- package/dist/{chunk-FZNNNXEW.js → chunk-IEOC3SKK.js} +5 -5
- package/dist/{chunk-XYMBGOXH.cjs → chunk-KVLIFFDJ.cjs} +11 -11
- package/dist/chunk-KVLIFFDJ.cjs.map +1 -0
- package/dist/{chunk-SUXFV3AL.js → chunk-LJUESQWH.js} +5 -5
- package/dist/{chunk-DQEZVDKS.js → chunk-LKCLRP4E.js} +2 -2
- package/dist/{chunk-JIH23K74.cjs → chunk-LKH3LG3N.cjs} +58 -58
- package/dist/{chunk-JIH23K74.cjs.map → chunk-LKH3LG3N.cjs.map} +1 -1
- package/dist/{chunk-UMF44YJH.js → chunk-LNAOHM6K.js} +2 -2
- package/dist/{chunk-E3IGBNLD.js → chunk-MEHJKEUZ.js} +2 -2
- package/dist/{chunk-WDFJGFAH.cjs → chunk-MMZO2B5N.cjs} +3 -3
- package/dist/{chunk-WDFJGFAH.cjs.map → chunk-MMZO2B5N.cjs.map} +1 -1
- package/dist/{chunk-CD7YHKSF.js → chunk-NVHBKHTR.js} +11 -11
- package/dist/{chunk-XIJH4QF7.js → chunk-OJKFBZPW.js} +5 -5
- package/dist/chunk-OJKFBZPW.js.map +1 -0
- package/dist/{chunk-SUMSKQ43.js → chunk-PNEMJTPG.js} +2 -2
- package/dist/{chunk-TFEQHER2.js → chunk-PO2TQW2B.js} +2 -2
- package/dist/{chunk-BW2KS7VQ.js → chunk-PTJDTKU3.js} +37 -32
- package/dist/chunk-PTJDTKU3.js.map +1 -0
- package/dist/{chunk-CL2GZ7JO.js → chunk-PZOKLEDR.js} +2 -2
- package/dist/{chunk-MQNJY7II.js → chunk-Q4AQE7TN.js} +2 -2
- package/dist/{chunk-55QH5LSM.js → chunk-R5PEYGFS.js} +5 -5
- package/dist/{chunk-55QH5LSM.js.map → chunk-R5PEYGFS.js.map} +1 -1
- package/dist/{chunk-ROHCAUUO.js → chunk-R7GE5HUE.js} +3 -3
- package/dist/{chunk-UZDSVTD4.js → chunk-S6WRR43D.js} +2 -2
- package/dist/{chunk-4J7PCDT5.cjs → chunk-T3JCWBOI.cjs} +2 -2
- package/dist/{chunk-4J7PCDT5.cjs.map → chunk-T3JCWBOI.cjs.map} +1 -1
- package/dist/{chunk-7OBVSSAQ.js → chunk-X2XUGRV3.js} +34 -29
- package/dist/chunk-X2XUGRV3.js.map +1 -0
- package/dist/{chunk-XABC4RKP.js → chunk-XCPST2YL.js} +2 -2
- package/dist/{chunk-JCNNDOOW.js → chunk-YFEV3NNV.js} +2 -2
- package/dist/{chunk-WIPBQVIK.js → chunk-ZRHMLFJB.js} +3 -3
- package/dist/chunks-OWWHWU6T.js +11 -0
- package/dist/cli.js +45 -45
- package/dist/{formula-DNS3KV3C.js → formula-AKSUUGPE.js} +8 -4
- package/dist/formula-AKSUUGPE.js.map +1 -0
- package/dist/{formula-WTTPNY2I.cjs → formula-IWBM3D27.cjs} +13 -9
- package/dist/formula-IWBM3D27.cjs.map +1 -0
- package/dist/{formula-VKUUIOIT.js → formula-TGSWQZXE.js} +7 -3
- package/dist/formula-TGSWQZXE.js.map +1 -0
- package/dist/generator-AUHRYGI3.cjs +12 -0
- package/dist/{generator-NDQUC266.cjs.map → generator-AUHRYGI3.cjs.map} +1 -1
- package/dist/generator-TGYD6N7S.js +11 -0
- package/dist/generator-UB2TEEE6.js +18 -0
- package/dist/{hancom-QGPXR2US.js → hancom-HQBZBCSR.js} +2 -2
- package/dist/{hancom-IBHKEOO5.js → hancom-PV626GYI.js} +2 -2
- package/dist/{hancom-JYQQYZPV.cjs → hancom-QSZ33R47.cjs} +5 -5
- package/dist/{hancom-JYQQYZPV.cjs.map → hancom-QSZ33R47.cjs.map} +1 -1
- package/dist/{image-ocr-TKWNXWUY.js → image-ocr-2EYCNJJU.js} +10 -10
- package/dist/{image-ocr-OHVXCHWL.cjs → image-ocr-EL2WFECB.cjs} +28 -28
- package/dist/{image-ocr-OHVXCHWL.cjs.map → image-ocr-EL2WFECB.cjs.map} +1 -1
- package/dist/{image-ocr-6O6E6XIZ.js → image-ocr-P5XZGIPX.js} +7 -7
- package/dist/index.cjs +1115 -1115
- package/dist/index.js +9 -9
- package/dist/mcp.js +36 -36
- package/dist/memo-I5S4HZBP.js +17 -0
- package/dist/{model-bundle-ICW2B75K.js → model-bundle-5ZAV3WPL.js} +5 -5
- package/dist/{models-ZIAOV7EN.js → models-KOHBYNOH.js} +5 -5
- package/dist/{parse-worker-v2-QBMUV2FV.js → parse-worker-v2-SSXAWHMP.js} +22 -22
- package/dist/{parser-7SXRUERF.js → parser-GAT6U7NK.js} +9 -9
- package/dist/{parser-FIVOMRFD.cjs → parser-JAXFIY4Z.cjs} +166 -166
- package/dist/{parser-FIVOMRFD.cjs.map → parser-JAXFIY4Z.cjs.map} +1 -1
- package/dist/{parser-IYDEYLT2.js → parser-Q2LYKLLS.js} +12 -12
- package/dist/{pdf-ocr-NJAOCNPW.js → pdf-ocr-5EHHYF3C.js} +6 -6
- package/dist/pdf-ocr-S6LZ5SDT.cjs +43 -0
- package/dist/{pdf-ocr-YVLMXFYG.cjs.map → pdf-ocr-S6LZ5SDT.cjs.map} +1 -1
- package/dist/{pdf-ocr-L2FDPW4J.js → pdf-ocr-ZK6W2KRC.js} +9 -9
- package/dist/{profile-io-ZFFUBVD7.js → profile-io-6LSVAJGK.js} +3 -3
- package/dist/{rasterize-73LPY77L.js → rasterize-JRBWIABQ.js} +3 -3
- package/dist/{redact-doc-PMLOYY4I.js → redact-doc-K6Q3J4QN.js} +21 -21
- package/dist/{render-6IUG73FB.js → render-QXCUXJBD.js} +12 -12
- package/dist/{rewrite-fallback-MLILIZUH.js → rewrite-fallback-LKK3CK7E.js} +13 -13
- package/dist/seal-GMZGRQE7.js +16 -0
- package/dist/{setup-GOFOC4YG.js → setup-NA3L7AP4.js} +3 -3
- package/dist/to-hwpx-ICWG2YYM.cjs +16 -0
- package/dist/{to-hwpx-OPZN5DZY.cjs.map → to-hwpx-ICWG2YYM.cjs.map} +1 -1
- package/dist/{to-hwpx-Y3MXBDML.js → to-hwpx-QVGHZIYD.js} +4 -4
- package/dist/{to-hwpx-3LMSUQTA.js → to-hwpx-YNCXFNZV.js} +7 -7
- package/dist/visual-5BXQ3MAX.js +38 -0
- package/dist/{watch-WHMWDPKY.js → watch-C276YW4I.js} +22 -22
- package/package.json +1 -1
- package/dist/chunk-7OBVSSAQ.js.map +0 -1
- package/dist/chunk-BW2KS7VQ.js.map +0 -1
- package/dist/chunk-CB365CYO.cjs.map +0 -1
- package/dist/chunk-PEDFVAXJ.js.map +0 -1
- package/dist/chunk-WB4LZYGW.cjs.map +0 -1
- package/dist/chunk-XIJH4QF7.js.map +0 -1
- package/dist/chunk-XYMBGOXH.cjs.map +0 -1
- package/dist/chunks-XCTKHHQF.js +0 -11
- package/dist/formula-DNS3KV3C.js.map +0 -1
- package/dist/formula-VKUUIOIT.js.map +0 -1
- package/dist/formula-WTTPNY2I.cjs.map +0 -1
- package/dist/generator-B7BQ7GSG.js +0 -11
- package/dist/generator-NDQUC266.cjs +0 -12
- package/dist/generator-SBFQTDAS.js +0 -18
- package/dist/memo-TRWRHDYB.js +0 -17
- package/dist/pdf-ocr-YVLMXFYG.cjs +0 -43
- package/dist/seal-KDPRMM4D.js +0 -16
- package/dist/to-hwpx-OPZN5DZY.cjs +0 -16
- package/dist/visual-VI4WYIWM.js +0 -38
- /package/dist/{-JKJWVZ7E.js.map → -QAZ44KKA.js.map} +0 -0
- /package/dist/{chunk-AKMBPYRU.js.map → chunk-36EJXOCF.js.map} +0 -0
- /package/dist/{chunk-JMYWAW2S.js.map → chunk-4R6LAJCT.js.map} +0 -0
- /package/dist/{chunk-3R4LS2QM.js.map → chunk-ACDKOGKO.js.map} +0 -0
- /package/dist/{chunk-B7JISVV7.js.map → chunk-AZZKSDLD.js.map} +0 -0
- /package/dist/{chunk-KWISIIRJ.js.map → chunk-CKA2X7FC.js.map} +0 -0
- /package/dist/{chunk-HG6K7PDG.js.map → chunk-COARY4DW.js.map} +0 -0
- /package/dist/{chunk-NCI5VSUC.js.map → chunk-DFZIE6NM.js.map} +0 -0
- /package/dist/{chunk-X4PFJ3S3.js.map → chunk-EUNUDJXO.js.map} +0 -0
- /package/dist/{chunk-A73BTJH5.js.map → chunk-FNRCQGZN.js.map} +0 -0
- /package/dist/{chunk-PTWPZYBM.js.map → chunk-FPC3GEAD.js.map} +0 -0
- /package/dist/{chunk-ZVUZZFGY.js.map → chunk-GDRQGXPC.js.map} +0 -0
- /package/dist/{chunk-FIKCNQ5Q.js.map → chunk-GOXFAAHN.js.map} +0 -0
- /package/dist/{chunk-YRMVLAYZ.js.map → chunk-HQSGKBH4.js.map} +0 -0
- /package/dist/{chunk-SPEEZYS4.js.map → chunk-I4ON2NHU.js.map} +0 -0
- /package/dist/{chunk-FZNNNXEW.js.map → chunk-IEOC3SKK.js.map} +0 -0
- /package/dist/{chunk-SUXFV3AL.js.map → chunk-LJUESQWH.js.map} +0 -0
- /package/dist/{chunk-DQEZVDKS.js.map → chunk-LKCLRP4E.js.map} +0 -0
- /package/dist/{chunk-UMF44YJH.js.map → chunk-LNAOHM6K.js.map} +0 -0
- /package/dist/{chunk-E3IGBNLD.js.map → chunk-MEHJKEUZ.js.map} +0 -0
- /package/dist/{chunk-CD7YHKSF.js.map → chunk-NVHBKHTR.js.map} +0 -0
- /package/dist/{chunk-SUMSKQ43.js.map → chunk-PNEMJTPG.js.map} +0 -0
- /package/dist/{chunk-TFEQHER2.js.map → chunk-PO2TQW2B.js.map} +0 -0
- /package/dist/{chunk-CL2GZ7JO.js.map → chunk-PZOKLEDR.js.map} +0 -0
- /package/dist/{chunk-MQNJY7II.js.map → chunk-Q4AQE7TN.js.map} +0 -0
- /package/dist/{chunk-ROHCAUUO.js.map → chunk-R7GE5HUE.js.map} +0 -0
- /package/dist/{chunk-UZDSVTD4.js.map → chunk-S6WRR43D.js.map} +0 -0
- /package/dist/{chunk-XABC4RKP.js.map → chunk-XCPST2YL.js.map} +0 -0
- /package/dist/{chunk-JCNNDOOW.js.map → chunk-YFEV3NNV.js.map} +0 -0
- /package/dist/{chunk-WIPBQVIK.js.map → chunk-ZRHMLFJB.js.map} +0 -0
- /package/dist/{chunks-XCTKHHQF.js.map → chunks-OWWHWU6T.js.map} +0 -0
- /package/dist/{generator-B7BQ7GSG.js.map → generator-TGYD6N7S.js.map} +0 -0
- /package/dist/{generator-SBFQTDAS.js.map → generator-UB2TEEE6.js.map} +0 -0
- /package/dist/{hancom-QGPXR2US.js.map → hancom-HQBZBCSR.js.map} +0 -0
- /package/dist/{hancom-IBHKEOO5.js.map → hancom-PV626GYI.js.map} +0 -0
- /package/dist/{image-ocr-TKWNXWUY.js.map → image-ocr-2EYCNJJU.js.map} +0 -0
- /package/dist/{image-ocr-6O6E6XIZ.js.map → image-ocr-P5XZGIPX.js.map} +0 -0
- /package/dist/{memo-TRWRHDYB.js.map → memo-I5S4HZBP.js.map} +0 -0
- /package/dist/{model-bundle-ICW2B75K.js.map → model-bundle-5ZAV3WPL.js.map} +0 -0
- /package/dist/{models-ZIAOV7EN.js.map → models-KOHBYNOH.js.map} +0 -0
- /package/dist/{parse-worker-v2-QBMUV2FV.js.map → parse-worker-v2-SSXAWHMP.js.map} +0 -0
- /package/dist/{parser-7SXRUERF.js.map → parser-GAT6U7NK.js.map} +0 -0
- /package/dist/{parser-IYDEYLT2.js.map → parser-Q2LYKLLS.js.map} +0 -0
- /package/dist/{pdf-ocr-L2FDPW4J.js.map → pdf-ocr-5EHHYF3C.js.map} +0 -0
- /package/dist/{pdf-ocr-NJAOCNPW.js.map → pdf-ocr-ZK6W2KRC.js.map} +0 -0
- /package/dist/{profile-io-ZFFUBVD7.js.map → profile-io-6LSVAJGK.js.map} +0 -0
- /package/dist/{rasterize-73LPY77L.js.map → rasterize-JRBWIABQ.js.map} +0 -0
- /package/dist/{redact-doc-PMLOYY4I.js.map → redact-doc-K6Q3J4QN.js.map} +0 -0
- /package/dist/{render-6IUG73FB.js.map → render-QXCUXJBD.js.map} +0 -0
- /package/dist/{rewrite-fallback-MLILIZUH.js.map → rewrite-fallback-LKK3CK7E.js.map} +0 -0
- /package/dist/{seal-KDPRMM4D.js.map → seal-GMZGRQE7.js.map} +0 -0
- /package/dist/{setup-GOFOC4YG.js.map → setup-NA3L7AP4.js.map} +0 -0
- /package/dist/{to-hwpx-3LMSUQTA.js.map → to-hwpx-QVGHZIYD.js.map} +0 -0
- /package/dist/{to-hwpx-Y3MXBDML.js.map → to-hwpx-YNCXFNZV.js.map} +0 -0
- /package/dist/{visual-VI4WYIWM.js.map → visual-5BXQ3MAX.js.map} +0 -0
- /package/dist/{watch-WHMWDPKY.js.map → watch-C276YW4I.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureModelsIn,
|
|
3
3
|
getModelsDir
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DFZIE6NM.js";
|
|
5
5
|
import {
|
|
6
6
|
CELL_EDGES,
|
|
7
7
|
HEADING_RATIO_H1,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
HEADING_RATIO_H3,
|
|
10
10
|
tidyScriptTags,
|
|
11
11
|
toTex
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OJKFBZPW.js";
|
|
13
13
|
import {
|
|
14
14
|
safeMax,
|
|
15
15
|
safeMin
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EUNUDJXO.js";
|
|
17
17
|
|
|
18
18
|
// src/ocr/models.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -11378,4 +11378,4 @@ export {
|
|
|
11378
11378
|
UNRULED_REGION_TABLES,
|
|
11379
11379
|
mergeOcrImageRegions
|
|
11380
11380
|
};
|
|
11381
|
-
//# sourceMappingURL=chunk-
|
|
11381
|
+
//# sourceMappingURL=chunk-FNRCQGZN.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
decryptHwpxInPlace,
|
|
4
4
|
isEncryptedManifest,
|
|
5
5
|
lockedHwpxError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZRHMLFJB.js";
|
|
7
7
|
import {
|
|
8
8
|
BEFORE_2024_WIDTH,
|
|
9
9
|
faceClassForReflow,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
readSectionNoteFormats,
|
|
21
21
|
simulateWrap,
|
|
22
22
|
syntheticBoldEm
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-Q4AQE7TN.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_CHAR,
|
|
26
26
|
DEFAULT_PARA_GEOM,
|
|
@@ -29,14 +29,14 @@ import {
|
|
|
29
29
|
hwpxAppBuild,
|
|
30
30
|
hwpxAppMajor,
|
|
31
31
|
parseRenderStyles
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-PZOKLEDR.js";
|
|
33
33
|
import {
|
|
34
34
|
MAX_DECOMPRESS_SIZE,
|
|
35
35
|
MAX_ZIP_ENTRIES,
|
|
36
36
|
createXmlParser,
|
|
37
37
|
findChildByLocalName,
|
|
38
38
|
readZipEntry
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-S6WRR43D.js";
|
|
40
40
|
import {
|
|
41
41
|
detectImageMime,
|
|
42
42
|
hwpEquationToLatex,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
readHwp5DocInfoRecords,
|
|
47
47
|
readHwp5SectionRecords,
|
|
48
48
|
readHwp5SectionStreams
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-IEOC3SKK.js";
|
|
50
50
|
import {
|
|
51
51
|
TAG_CHAR_SHAPE,
|
|
52
52
|
TAG_CTRL_HEADER,
|
|
@@ -63,11 +63,11 @@ import {
|
|
|
63
63
|
TAG_TABLE,
|
|
64
64
|
isExtendedOnlyCtrlChar,
|
|
65
65
|
parseDocInfo
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-AZZKSDLD.js";
|
|
67
67
|
import {
|
|
68
68
|
loadSharp,
|
|
69
69
|
rasterizePageSvg
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-LNAOHM6K.js";
|
|
71
71
|
import {
|
|
72
72
|
parsePageRange
|
|
73
73
|
} from "./chunk-VQFA55IC.js";
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
} from "./chunk-GHHVT4Q5.js";
|
|
78
78
|
import {
|
|
79
79
|
blocksToMarkdown
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-R5PEYGFS.js";
|
|
81
81
|
import {
|
|
82
82
|
mapPuaText
|
|
83
83
|
} from "./chunk-KFF47XZ7.js";
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
precheckZipSize,
|
|
89
89
|
stripDtd,
|
|
90
90
|
toArrayBuffer
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-LKCLRP4E.js";
|
|
92
92
|
|
|
93
93
|
// src/render/svg-render.ts
|
|
94
94
|
import JSZip from "jszip";
|
|
@@ -5732,4 +5732,4 @@ export {
|
|
|
5732
5732
|
cropRect,
|
|
5733
5733
|
extractRenderedRegions
|
|
5734
5734
|
};
|
|
5735
|
-
//# sourceMappingURL=chunk-
|
|
5735
|
+
//# sourceMappingURL=chunk-FPC3GEAD.js.map
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
HEADING_RATIO_H3,
|
|
7
7
|
tidyScriptTags,
|
|
8
8
|
toTex
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PO2TQW2B.js";
|
|
10
10
|
import {
|
|
11
11
|
safeMax,
|
|
12
12
|
safeMin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LKCLRP4E.js";
|
|
14
14
|
|
|
15
15
|
// src/ocr/line-split.ts
|
|
16
16
|
function grayCrop(rgba, pageW, box) {
|
|
@@ -11225,4 +11225,4 @@ export {
|
|
|
11225
11225
|
UNRULED_REGION_TABLES,
|
|
11226
11226
|
mergeOcrImageRegions
|
|
11227
11227
|
};
|
|
11228
|
-
//# sourceMappingURL=chunk-
|
|
11228
|
+
//# sourceMappingURL=chunk-GDRQGXPC.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
KordocError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LKCLRP4E.js";
|
|
5
5
|
|
|
6
6
|
// src/roundtrip/zip-patch.ts
|
|
7
7
|
import { deflateRawSync } from "zlib";
|
|
@@ -233,4 +233,4 @@ export {
|
|
|
233
233
|
readZipEntries,
|
|
234
234
|
patchZipEntries
|
|
235
235
|
};
|
|
236
|
-
//# sourceMappingURL=chunk-
|
|
236
|
+
//# sourceMappingURL=chunk-GOXFAAHN.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-FU6ZDWCI.js";
|
|
6
6
|
import {
|
|
7
7
|
blocksToMarkdown
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-R5PEYGFS.js";
|
|
9
9
|
|
|
10
10
|
// src/qr.ts
|
|
11
11
|
import { readFile } from "fs/promises";
|
|
@@ -212,4 +212,4 @@ export {
|
|
|
212
212
|
dropBlankImages,
|
|
213
213
|
blocksToPages
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=chunk-
|
|
215
|
+
//# sourceMappingURL=chunk-HQSGKBH4.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
collectSites
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-36EJXOCF.js";
|
|
5
5
|
import {
|
|
6
6
|
patchZipEntries
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GOXFAAHN.js";
|
|
8
8
|
import {
|
|
9
9
|
applySplices,
|
|
10
10
|
changedLinesegRemovalSplices,
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
} from "./chunk-3AHL6YEA.js";
|
|
15
15
|
import {
|
|
16
16
|
readZipEntry
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-S6WRR43D.js";
|
|
18
18
|
import {
|
|
19
19
|
fileTimeText
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AZZKSDLD.js";
|
|
21
21
|
import {
|
|
22
22
|
KordocError,
|
|
23
23
|
precheckZipSize
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-LKCLRP4E.js";
|
|
25
25
|
|
|
26
26
|
// src/form/memo.ts
|
|
27
27
|
import JSZip from "jszip";
|
|
@@ -128,4 +128,4 @@ async function addMemoHwpx(hwpxBuffer, ops, now = /* @__PURE__ */ new Date()) {
|
|
|
128
128
|
export {
|
|
129
129
|
addMemoHwpx
|
|
130
130
|
};
|
|
131
|
-
//# sourceMappingURL=chunk-
|
|
131
|
+
//# sourceMappingURL=chunk-I4ON2NHU.js.map
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
parseFileHeader,
|
|
38
38
|
readRecords,
|
|
39
39
|
resolveLiteralLt
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-AZZKSDLD.js";
|
|
41
41
|
import {
|
|
42
42
|
TOC_ENTRY_BLOCKS,
|
|
43
43
|
takeTocLeaders
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
HEADING_RATIO_H3,
|
|
56
56
|
tidyScriptTags,
|
|
57
57
|
unframeLayoutTables
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-PO2TQW2B.js";
|
|
59
59
|
import {
|
|
60
60
|
MAX_COLS,
|
|
61
61
|
MAX_ROWS,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
flattenLayoutTables,
|
|
69
69
|
markNonLayoutTable,
|
|
70
70
|
sanitizeText
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-R5PEYGFS.js";
|
|
72
72
|
import {
|
|
73
73
|
circledHangul,
|
|
74
74
|
circledNumber,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
import {
|
|
80
80
|
KordocError,
|
|
81
81
|
sanitizeHref
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-LKCLRP4E.js";
|
|
83
83
|
|
|
84
84
|
// src/memo-notes.ts
|
|
85
85
|
var squash = (s) => sanitizeText(s).replace(/\s+/g, "");
|
|
@@ -2827,4 +2827,4 @@ export {
|
|
|
2827
2827
|
parseHwp5Document,
|
|
2828
2828
|
extractHwp5MetadataOnly
|
|
2829
2829
|
};
|
|
2830
|
-
//# sourceMappingURL=chunk-
|
|
2830
|
+
//# sourceMappingURL=chunk-IEOC3SKK.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkT3JCWBOIcjs = require('./chunk-T3JCWBOI.cjs');
|
|
7
7
|
|
|
8
8
|
// src/script-tags.ts
|
|
9
9
|
var LITERAL_TAG = /<(?=\/?(?:u|sup|sub)>)/g;
|
|
@@ -727,12 +727,12 @@ var CELL_URL = new RegExp(String.raw`(?:(?<![A-Za-z])https?:\/\/|(?<![^\s(])www\
|
|
|
727
727
|
function gfmCellMarkdown(text) {
|
|
728
728
|
return text.replace(/\r\n|\r|\n/g, "<br>").replace(CELL_URL, (u) => u.replace(/\|/g, "%7C")).replace(/(?<!\\)\|/g, "\\|");
|
|
729
729
|
}
|
|
730
|
-
var GFM_PROTECTED = new RegExp(/!\[[^\]<>\n]*\]\([^)\s<>"'\x60:]*\)|\]\((?:https?:|mailto:|tel:|#)[^)\s<>"'\x60]*\)|(?<!\\)\$\$(?:\\[\s\S]|[^\\$])*\$\$|(?<!\\)\$(?:\\[^\n]|[^\\$\n])*\$/.source + `|(${
|
|
730
|
+
var GFM_PROTECTED = new RegExp(/!\[[^\]<>\n]*\]\([^)\s<>"'\x60:]*\)|\]\((?:https?:|mailto:|tel:|#)[^)\s<>"'\x60]*\)|(?<!\\)\$\$(?:\\[\s\S]|[^\\$])*\$\$|(?<!\\)\$(?:\\[^\n]|[^\\$\n])*\$/.source + `|(${_chunkT3JCWBOIcjs.BARE_URL})`, "gi");
|
|
731
731
|
function escapeGfm(text) {
|
|
732
732
|
const NUL = String.fromCharCode(0);
|
|
733
733
|
const spans = [];
|
|
734
734
|
const masked = text.replace(GFM_PROTECTED, (m, url, at, s) => {
|
|
735
|
-
if (url && !
|
|
735
|
+
if (url && !_chunkT3JCWBOIcjs.isGfmUrl.call(void 0, url, s, at + url.length)) return m;
|
|
736
736
|
spans.push(m);
|
|
737
737
|
return NUL + (spans.length - 1) + NUL;
|
|
738
738
|
});
|
|
@@ -959,26 +959,26 @@ function blocksToMarkdown(blocks, options) {
|
|
|
959
959
|
lines.push(`*${escapeGfm(text)}*`, "");
|
|
960
960
|
continue;
|
|
961
961
|
}
|
|
962
|
-
const
|
|
962
|
+
const listHead = (md) => block.listDepth ? escapeItemHead(md) : md;
|
|
963
963
|
const noteTable = noteTableMarkdown(block, gfm);
|
|
964
964
|
if (_optionalChain([block, 'access', _38 => _38.spans, 'optionalAccess', _39 => _39.length])) {
|
|
965
965
|
let rendered = spansToMarkdown(block.spans);
|
|
966
966
|
if (block.href) {
|
|
967
|
-
const href =
|
|
967
|
+
const href = _chunkT3JCWBOIcjs.sanitizeHref.call(void 0, block.href);
|
|
968
968
|
if (href) rendered = `[${rendered}](${href})`;
|
|
969
969
|
}
|
|
970
970
|
if (block.footnoteText) rendered += noteTable || escapeGfm(` (\uC8FC: ${block.footnoteText})`);
|
|
971
|
-
lines.push(block.quote ? "> " + rendered :
|
|
971
|
+
lines.push(block.quote ? "> " + rendered : listHead(rendered), "");
|
|
972
972
|
continue;
|
|
973
973
|
}
|
|
974
974
|
if (block.href) {
|
|
975
|
-
const href =
|
|
975
|
+
const href = _chunkT3JCWBOIcjs.sanitizeHref.call(void 0, block.href);
|
|
976
976
|
if (href) text = `[${text}](${href})`;
|
|
977
977
|
}
|
|
978
978
|
if (block.footnoteText && !noteTable) {
|
|
979
979
|
text += ` (\uC8FC: ${block.footnoteText})`;
|
|
980
980
|
}
|
|
981
|
-
lines.push((block.quote ? escapeGfm(text).split("\n").map((l) => "> " + l).join("\n") :
|
|
981
|
+
lines.push((block.quote ? escapeGfm(text).split("\n").map((l) => "> " + l).join("\n") : listHead(escapeGfm(text))) + noteTable, "");
|
|
982
982
|
} else if (block.type === "table" && block.table) {
|
|
983
983
|
if (lines.length > 0 && lines[lines.length - 1] !== "") {
|
|
984
984
|
lines.push("");
|
|
@@ -1061,7 +1061,7 @@ function visibleText(b) {
|
|
|
1061
1061
|
return _optionalChain([b, 'access', _53 => _53.spans, 'optionalAccess', _54 => _54.some, 'call', _55 => _55((s) => s.placeholder)]) ? b.spans.filter((s) => !s.placeholder).map((s) => s.text).join("") : _nullishCoalesce(b.text, () => ( ""));
|
|
1062
1062
|
}
|
|
1063
1063
|
function escapeHtmlCellText(text) {
|
|
1064
|
-
return
|
|
1064
|
+
return _chunkT3JCWBOIcjs.escapeHtml.call(void 0, text).replace(/(\\)?<(\/?)(u|sup|sub)>/g, (_, esc, sl, tag) => esc ? `<${sl}${tag}>` : `<${sl}${tag}>`);
|
|
1065
1065
|
}
|
|
1066
1066
|
function cellInnerHtml(cell) {
|
|
1067
1067
|
if (_optionalChain([cell, 'access', _56 => _56.blocks, 'optionalAccess', _57 => _57.length])) {
|
|
@@ -1070,7 +1070,7 @@ function cellInnerHtml(cell) {
|
|
|
1070
1070
|
const cap = captionToHtml(b.table);
|
|
1071
1071
|
return (cap ? cap + "<br>" : "") + tableToHtml(b.table);
|
|
1072
1072
|
}
|
|
1073
|
-
if (b.type === "image" && b.text) return `<img src="${
|
|
1073
|
+
if (b.type === "image" && b.text) return `<img src="${_chunkT3JCWBOIcjs.escapeHtml.call(void 0, b.text, true)}" alt="image">` + (_nullishCoalesce(b.qr, () => ( []))).map((v) => "<br>" + escapeHtmlCellText(v).replace(/\r?\n/g, "<br>")).join("");
|
|
1074
1074
|
const note = noteTableHtml(b);
|
|
1075
1075
|
const t = (sanitizeText(visibleText(b)) + (note ? "" : noteSuffix(b))).trim();
|
|
1076
1076
|
return ((t ? escapeHtmlCellText(t).replace(/\n/g, "<br>") : "") + note).trim();
|
|
@@ -1558,4 +1558,4 @@ var HEADING_RATIO_H3 = 1.15;
|
|
|
1558
1558
|
|
|
1559
1559
|
|
|
1560
1560
|
exports.escapeLiteralTags = escapeLiteralTags; exports.wrapScript = wrapScript; exports.tidyScriptTags = tidyScriptTags; exports.plainScripts = plainScripts; exports.stripScriptTags = stripScriptTags; exports.WINGDINGS = WINGDINGS; exports.hangulOrdinal = hangulOrdinal; exports.circledNumber = circledNumber; exports.circledHangul = circledHangul; exports.hangulAmount = hangulAmount; exports.romanNumeral = romanNumeral; exports.enclosedNumber = enclosedNumber; exports.composeDigits = composeDigits; exports.pairedNumber = pairedNumber; exports.composeText = composeText; exports.mapPuaText = mapPuaText; exports.MAX_COLS = MAX_COLS; exports.MAX_ROWS = MAX_ROWS; exports.MAX_TABLE_CELLS = MAX_TABLE_CELLS; exports.buildTable = buildTable; exports.captionedText = captionedText; exports.convertTableToText = convertTableToText; exports.gfmCellMarkdown = gfmCellMarkdown; exports.escapeGfm = escapeGfm; exports.escapeLiteralDollar = escapeLiteralDollar; exports.sanitizeText = sanitizeText; exports.markNonLayoutTable = markNonLayoutTable; exports.flattenLayoutTables = flattenLayoutTables; exports.dedupeRunningHeaders = dedupeRunningHeaders; exports.assignTableIds = assignTableIds; exports.blocksToMarkdown = blocksToMarkdown; exports.hasStructuredCellContent = hasStructuredCellContent; exports.noteSuffix = noteSuffix; exports.noteTableHtml = noteTableHtml; exports.visibleText = visibleText; exports.escapeHtmlCellText = escapeHtmlCellText; exports.hasInlineCellBlocks = hasInlineCellBlocks; exports.cellToMarkdown = cellToMarkdown; exports.CELL_EDGES = CELL_EDGES; exports.CELL_PAGES = CELL_PAGES; exports.CONTENT_CELLS = CONTENT_CELLS; exports.CELL_BASELINES = CELL_BASELINES; exports.toTex = toTex; exports.unframeLayoutTables = unframeLayoutTables; exports.HEADING_RATIO_H1 = HEADING_RATIO_H1; exports.HEADING_RATIO_H2 = HEADING_RATIO_H2; exports.HEADING_RATIO_H3 = HEADING_RATIO_H3;
|
|
1561
|
-
//# sourceMappingURL=chunk-
|
|
1561
|
+
//# sourceMappingURL=chunk-KVLIFFDJ.cjs.map
|