kordoc 4.24.71 → 4.24.73
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 +4 -4
- package/dist/{-F7GLIIGT.js → -CNXSUEGZ.js} +21 -21
- package/dist/{chunk-YPRIJDH6.js → chunk-2JA4FJJM.js} +2 -2
- package/dist/{chunk-M27VBFO6.js → chunk-32NWTEPA.js} +26 -6
- package/dist/chunk-32NWTEPA.js.map +1 -0
- package/dist/{chunk-SMEBVDM2.js → chunk-376JPHHC.js} +5 -5
- package/dist/{chunk-OW2XKTQA.cjs → chunk-5MBQW3KP.cjs} +8 -8
- package/dist/{chunk-OW2XKTQA.cjs.map → chunk-5MBQW3KP.cjs.map} +1 -1
- package/dist/{chunk-TYGZ6O2A.js → chunk-64QDDZO3.js} +11 -11
- package/dist/{chunk-RWU3Y5YK.js → chunk-A6YD5KUQ.js} +18 -16
- package/dist/chunk-A6YD5KUQ.js.map +1 -0
- package/dist/{chunk-OUHMNF2A.js → chunk-AAXWKG3C.js} +2 -2
- package/dist/{chunk-BHYBZSOC.js → chunk-ABNK5QI2.js} +2 -2
- package/dist/{chunk-KLUI4SAZ.js → chunk-AUGOG3KY.js} +2 -2
- package/dist/{chunk-O7PJFEOC.js → chunk-B5F7B5NL.js} +2 -2
- package/dist/{chunk-7KVDHXP2.js → chunk-BK55EX56.js} +4 -4
- package/dist/{chunk-T7MHZIFG.js → chunk-BUB3O7LS.js} +27 -7
- package/dist/chunk-BUB3O7LS.js.map +1 -0
- package/dist/{chunk-KGCJNPAI.js → chunk-BX23BOYN.js} +5 -5
- package/dist/{chunk-2CPEW6WC.js → chunk-CBGH37CU.js} +3 -3
- package/dist/{chunk-AUHQRRKM.js → chunk-CGOCVSWC.js} +3 -3
- package/dist/{chunk-MHXPW72E.js → chunk-E3G3JTXW.js} +2 -2
- package/dist/{chunk-NPBNJCXZ.js → chunk-G7QVY67O.js} +2 -2
- package/dist/{chunk-LFTO5QAP.cjs → chunk-HMHIF6QF.cjs} +2 -2
- package/dist/{chunk-LFTO5QAP.cjs.map → chunk-HMHIF6QF.cjs.map} +1 -1
- package/dist/{chunk-5WWGC5SG.js → chunk-IV6UP7MO.js} +2 -2
- package/dist/{chunk-HIYRMYAS.js → chunk-JDGPQVTX.js} +2 -2
- package/dist/{chunk-GRCIFCGC.js → chunk-JY4YMR6F.js} +2 -2
- package/dist/{chunk-2VBRCIPI.js → chunk-LMHDQWQM.js} +2 -2
- package/dist/{chunk-YISBYF7X.cjs → chunk-LUQH3SUU.cjs} +58 -58
- package/dist/{chunk-YISBYF7X.cjs.map → chunk-LUQH3SUU.cjs.map} +1 -1
- package/dist/{chunk-LNWURZ2Z.js → chunk-M4QZCXT4.js} +7 -7
- package/dist/{chunk-SK5AOGYK.cjs → chunk-MDDQRVA4.cjs} +104 -104
- package/dist/{chunk-SK5AOGYK.cjs.map → chunk-MDDQRVA4.cjs.map} +1 -1
- package/dist/{chunk-GFAWIBHG.js → chunk-MHLTXTP2.js} +10 -10
- package/dist/{chunk-IMT5TVVM.js → chunk-NQL7NCSE.js} +2 -2
- package/dist/{chunk-YTP7FPA5.cjs → chunk-O4TKUBCF.cjs} +3 -3
- package/dist/{chunk-YTP7FPA5.cjs.map → chunk-O4TKUBCF.cjs.map} +1 -1
- package/dist/{chunk-H2VOH7X3.cjs → chunk-OOD35TZR.cjs} +203 -183
- package/dist/chunk-OOD35TZR.cjs.map +1 -0
- package/dist/{chunk-2OF2YWIZ.js → chunk-P4FHTYVX.js} +2 -2
- package/dist/{chunk-BNP3WXTB.cjs → chunk-QLUFTCAE.cjs} +3 -3
- package/dist/{chunk-BNP3WXTB.cjs.map → chunk-QLUFTCAE.cjs.map} +1 -1
- package/dist/{chunk-WMA4GJHC.js → chunk-RJ26GRDB.js} +5 -5
- package/dist/{chunk-YJ2YVG6N.cjs → chunk-ROYGVYLL.cjs} +88 -88
- package/dist/{chunk-YJ2YVG6N.cjs.map → chunk-ROYGVYLL.cjs.map} +1 -1
- package/dist/{chunk-QK5KCWLE.js → chunk-S366ICXS.js} +2 -2
- package/dist/{chunk-EZNUMAAJ.js → chunk-S6K222FM.js} +2 -2
- package/dist/{chunk-ZPJZXTEG.js → chunk-TTIJTR5Z.js} +6 -6
- package/dist/{chunk-D4UFBXMT.js → chunk-UMVL776E.js} +2 -2
- package/dist/{chunk-YTDHH362.js → chunk-VMM5PVOA.js} +2 -2
- package/dist/{chunk-OJK4FLS5.js → chunk-VSWGRKTF.js} +3 -3
- package/dist/{chunk-6ZA4V4QS.js → chunk-X4HNVXJI.js} +2 -2
- package/dist/{chunk-RUUUGCXS.js → chunk-XSDVY4S6.js} +6 -6
- package/dist/{chunk-DSCT67WF.js → chunk-YLC25Z64.js} +3 -3
- package/dist/{chunk-UJQRIX4L.js → chunk-ZH322FQG.js} +2 -2
- package/dist/chunks-7XYOWREB.js +11 -0
- package/dist/cli.js +45 -45
- package/dist/{formula-3PJYUQMG.js → formula-7Q6CKLK2.js} +36 -6
- package/dist/formula-7Q6CKLK2.js.map +1 -0
- package/dist/{formula-RTPZD2IM.cjs → formula-AORKEC66.cjs} +41 -11
- package/dist/formula-AORKEC66.cjs.map +1 -0
- package/dist/{formula-UJF4RZ6W.js → formula-IP2SLKUY.js} +35 -5
- package/dist/formula-IP2SLKUY.js.map +1 -0
- package/dist/generator-BPEAWT2P.cjs +12 -0
- package/dist/{generator-INMUN6KB.cjs.map → generator-BPEAWT2P.cjs.map} +1 -1
- package/dist/generator-NLWOHWUW.js +18 -0
- package/dist/generator-VBJWJI3E.js +11 -0
- package/dist/{hancom-P3SUQXM4.js → hancom-DVWCKSEN.js} +2 -2
- package/dist/{hancom-MVPEYI4X.cjs → hancom-J2SWJYM6.cjs} +5 -5
- package/dist/{hancom-MVPEYI4X.cjs.map → hancom-J2SWJYM6.cjs.map} +1 -1
- package/dist/{hancom-RYIZHWJ5.js → hancom-P34JL3HX.js} +2 -2
- package/dist/{image-ocr-ZS4EMQN3.cjs → image-ocr-3CJ4KVOT.cjs} +28 -28
- package/dist/{image-ocr-ZS4EMQN3.cjs.map → image-ocr-3CJ4KVOT.cjs.map} +1 -1
- package/dist/{image-ocr-ZXLHPQI2.js → image-ocr-5RBEPJPK.js} +7 -7
- package/dist/{image-ocr-GL5YVCNU.js → image-ocr-7EOTOS42.js} +10 -10
- 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-ARHG3OC5.js +17 -0
- package/dist/{model-bundle-VCUAKBF3.js → model-bundle-7YL3PW4N.js} +5 -5
- package/dist/{models-UACAGYBI.js → models-ZXDUWX64.js} +5 -5
- package/dist/{parse-worker-v2-LJB4QXGF.js → parse-worker-v2-SGBIWVYJ.js} +22 -22
- package/dist/{parser-T4HAQ3QW.cjs → parser-6M4IIKSU.cjs} +166 -166
- package/dist/{parser-T4HAQ3QW.cjs.map → parser-6M4IIKSU.cjs.map} +1 -1
- package/dist/{parser-5GZUD22P.js → parser-HZANYZZA.js} +12 -12
- package/dist/{parser-HCZD4DUO.js → parser-RYPZ245J.js} +9 -9
- package/dist/pdf-ocr-26AWXUHX.cjs +43 -0
- package/dist/{pdf-ocr-H4DKZSOB.cjs.map → pdf-ocr-26AWXUHX.cjs.map} +1 -1
- package/dist/{pdf-ocr-JXVGK5MR.js → pdf-ocr-J5BIUOOQ.js} +6 -6
- package/dist/{pdf-ocr-YCMC2VL4.js → pdf-ocr-VMB4NOXR.js} +9 -9
- package/dist/{profile-io-MVTEOXAU.js → profile-io-F6WUV5PU.js} +3 -3
- package/dist/{rasterize-VWT3C3RW.js → rasterize-AFUYHCSP.js} +3 -3
- package/dist/{redact-doc-SU3JDC6F.js → redact-doc-UKYOAVBS.js} +21 -21
- package/dist/{render-D5N4FKWB.js → render-VRZS47LX.js} +12 -12
- package/dist/{rewrite-fallback-QXTWSPGY.js → rewrite-fallback-PNSM4XRC.js} +13 -13
- package/dist/seal-CJOUVTMN.js +16 -0
- package/dist/{setup-TXNJYX6P.js → setup-VV6ERJGY.js} +3 -3
- package/dist/to-hwpx-3OWX37Q4.cjs +16 -0
- package/dist/{to-hwpx-KZTTH7EY.cjs.map → to-hwpx-3OWX37Q4.cjs.map} +1 -1
- package/dist/{to-hwpx-Z7NHUMUD.js → to-hwpx-WBMWA54L.js} +7 -7
- package/dist/{to-hwpx-YHGVFTBO.js → to-hwpx-YYMXNCCW.js} +4 -4
- package/dist/visual-YY2BPPCJ.js +38 -0
- package/dist/{watch-EI5QYDT2.js → watch-BTAIN7LZ.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 → -CNXSUEGZ.js.map} +0 -0
- /package/dist/{chunk-YPRIJDH6.js.map → chunk-2JA4FJJM.js.map} +0 -0
- /package/dist/{chunk-SMEBVDM2.js.map → chunk-376JPHHC.js.map} +0 -0
- /package/dist/{chunk-TYGZ6O2A.js.map → chunk-64QDDZO3.js.map} +0 -0
- /package/dist/{chunk-OUHMNF2A.js.map → chunk-AAXWKG3C.js.map} +0 -0
- /package/dist/{chunk-BHYBZSOC.js.map → chunk-ABNK5QI2.js.map} +0 -0
- /package/dist/{chunk-KLUI4SAZ.js.map → chunk-AUGOG3KY.js.map} +0 -0
- /package/dist/{chunk-O7PJFEOC.js.map → chunk-B5F7B5NL.js.map} +0 -0
- /package/dist/{chunk-7KVDHXP2.js.map → chunk-BK55EX56.js.map} +0 -0
- /package/dist/{chunk-KGCJNPAI.js.map → chunk-BX23BOYN.js.map} +0 -0
- /package/dist/{chunk-2CPEW6WC.js.map → chunk-CBGH37CU.js.map} +0 -0
- /package/dist/{chunk-AUHQRRKM.js.map → chunk-CGOCVSWC.js.map} +0 -0
- /package/dist/{chunk-MHXPW72E.js.map → chunk-E3G3JTXW.js.map} +0 -0
- /package/dist/{chunk-NPBNJCXZ.js.map → chunk-G7QVY67O.js.map} +0 -0
- /package/dist/{chunk-5WWGC5SG.js.map → chunk-IV6UP7MO.js.map} +0 -0
- /package/dist/{chunk-HIYRMYAS.js.map → chunk-JDGPQVTX.js.map} +0 -0
- /package/dist/{chunk-GRCIFCGC.js.map → chunk-JY4YMR6F.js.map} +0 -0
- /package/dist/{chunk-2VBRCIPI.js.map → chunk-LMHDQWQM.js.map} +0 -0
- /package/dist/{chunk-LNWURZ2Z.js.map → chunk-M4QZCXT4.js.map} +0 -0
- /package/dist/{chunk-GFAWIBHG.js.map → chunk-MHLTXTP2.js.map} +0 -0
- /package/dist/{chunk-IMT5TVVM.js.map → chunk-NQL7NCSE.js.map} +0 -0
- /package/dist/{chunk-2OF2YWIZ.js.map → chunk-P4FHTYVX.js.map} +0 -0
- /package/dist/{chunk-WMA4GJHC.js.map → chunk-RJ26GRDB.js.map} +0 -0
- /package/dist/{chunk-QK5KCWLE.js.map → chunk-S366ICXS.js.map} +0 -0
- /package/dist/{chunk-EZNUMAAJ.js.map → chunk-S6K222FM.js.map} +0 -0
- /package/dist/{chunk-ZPJZXTEG.js.map → chunk-TTIJTR5Z.js.map} +0 -0
- /package/dist/{chunk-D4UFBXMT.js.map → chunk-UMVL776E.js.map} +0 -0
- /package/dist/{chunk-YTDHH362.js.map → chunk-VMM5PVOA.js.map} +0 -0
- /package/dist/{chunk-OJK4FLS5.js.map → chunk-VSWGRKTF.js.map} +0 -0
- /package/dist/{chunk-6ZA4V4QS.js.map → chunk-X4HNVXJI.js.map} +0 -0
- /package/dist/{chunk-RUUUGCXS.js.map → chunk-XSDVY4S6.js.map} +0 -0
- /package/dist/{chunk-DSCT67WF.js.map → chunk-YLC25Z64.js.map} +0 -0
- /package/dist/{chunk-UJQRIX4L.js.map → chunk-ZH322FQG.js.map} +0 -0
- /package/dist/{chunks-JAD5Z5YY.js.map → chunks-7XYOWREB.js.map} +0 -0
- /package/dist/{generator-EB2436BE.js.map → generator-NLWOHWUW.js.map} +0 -0
- /package/dist/{generator-K5KMPSLC.js.map → generator-VBJWJI3E.js.map} +0 -0
- /package/dist/{hancom-P3SUQXM4.js.map → hancom-DVWCKSEN.js.map} +0 -0
- /package/dist/{hancom-RYIZHWJ5.js.map → hancom-P34JL3HX.js.map} +0 -0
- /package/dist/{image-ocr-ZXLHPQI2.js.map → image-ocr-5RBEPJPK.js.map} +0 -0
- /package/dist/{image-ocr-GL5YVCNU.js.map → image-ocr-7EOTOS42.js.map} +0 -0
- /package/dist/{memo-JNMSGIO7.js.map → memo-ARHG3OC5.js.map} +0 -0
- /package/dist/{model-bundle-VCUAKBF3.js.map → model-bundle-7YL3PW4N.js.map} +0 -0
- /package/dist/{models-UACAGYBI.js.map → models-ZXDUWX64.js.map} +0 -0
- /package/dist/{parse-worker-v2-LJB4QXGF.js.map → parse-worker-v2-SGBIWVYJ.js.map} +0 -0
- /package/dist/{parser-5GZUD22P.js.map → parser-HZANYZZA.js.map} +0 -0
- /package/dist/{parser-HCZD4DUO.js.map → parser-RYPZ245J.js.map} +0 -0
- /package/dist/{pdf-ocr-JXVGK5MR.js.map → pdf-ocr-J5BIUOOQ.js.map} +0 -0
- /package/dist/{pdf-ocr-YCMC2VL4.js.map → pdf-ocr-VMB4NOXR.js.map} +0 -0
- /package/dist/{profile-io-MVTEOXAU.js.map → profile-io-F6WUV5PU.js.map} +0 -0
- /package/dist/{rasterize-VWT3C3RW.js.map → rasterize-AFUYHCSP.js.map} +0 -0
- /package/dist/{redact-doc-SU3JDC6F.js.map → redact-doc-UKYOAVBS.js.map} +0 -0
- /package/dist/{render-D5N4FKWB.js.map → render-VRZS47LX.js.map} +0 -0
- /package/dist/{rewrite-fallback-QXTWSPGY.js.map → rewrite-fallback-PNSM4XRC.js.map} +0 -0
- /package/dist/{seal-Q3BD6CRB.js.map → seal-CJOUVTMN.js.map} +0 -0
- /package/dist/{setup-TXNJYX6P.js.map → setup-VV6ERJGY.js.map} +0 -0
- /package/dist/{to-hwpx-YHGVFTBO.js.map → to-hwpx-WBMWA54L.js.map} +0 -0
- /package/dist/{to-hwpx-Z7NHUMUD.js.map → to-hwpx-YYMXNCCW.js.map} +0 -0
- /package/dist/{visual-LNHFYJDL.js.map → visual-YY2BPPCJ.js.map} +0 -0
- /package/dist/{watch-EI5QYDT2.js.map → watch-BTAIN7LZ.js.map} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
decryptHwpxInPlace,
|
|
4
4
|
lockedHwpxError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CBGH37CU.js";
|
|
6
6
|
import {
|
|
7
7
|
AUTONUM_PREFIX_RE,
|
|
8
8
|
EMPH_BOLD,
|
|
@@ -62,15 +62,15 @@ import {
|
|
|
62
62
|
unescapeGfm,
|
|
63
63
|
unescapeGfmCell,
|
|
64
64
|
wordHunks
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-XSDVY4S6.js";
|
|
66
66
|
import {
|
|
67
67
|
noteFormatFrom,
|
|
68
68
|
noteRefMark
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-AAXWKG3C.js";
|
|
70
70
|
import {
|
|
71
71
|
patchZipEntries,
|
|
72
72
|
readZipEntries
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-B5F7B5NL.js";
|
|
74
74
|
import {
|
|
75
75
|
allLinesegRemovalSplices,
|
|
76
76
|
applySplices,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
findChildByLocalName,
|
|
100
100
|
localName,
|
|
101
101
|
readZipEntry
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-UMVL776E.js";
|
|
103
103
|
import {
|
|
104
104
|
detectImageMime,
|
|
105
105
|
hasRealStrike,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
locateMemoBlocks,
|
|
109
109
|
parseHwp5Document,
|
|
110
110
|
unfilledClickHereGuide
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-RJ26GRDB.js";
|
|
112
112
|
import {
|
|
113
113
|
FLAG_COMPRESSED,
|
|
114
114
|
FLAG_DISTRIBUTION,
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
isExtendedOnlyCtrlChar,
|
|
130
130
|
parseFileHeader,
|
|
131
131
|
readRecords
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-VMM5PVOA.js";
|
|
133
133
|
import {
|
|
134
134
|
parsePageRange
|
|
135
135
|
} from "./chunk-VQFA55IC.js";
|
|
@@ -141,20 +141,20 @@ import {
|
|
|
141
141
|
} from "./chunk-QLZHIJWJ.js";
|
|
142
142
|
import {
|
|
143
143
|
unframeLayoutTables
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-G7QVY67O.js";
|
|
145
145
|
import {
|
|
146
146
|
blocksToMarkdown,
|
|
147
147
|
escapeGfm,
|
|
148
148
|
hasInlineCellBlocks,
|
|
149
149
|
sanitizeText
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-P4FHTYVX.js";
|
|
151
151
|
import {
|
|
152
152
|
KordocError,
|
|
153
153
|
compareSectionPaths,
|
|
154
154
|
isPathTraversal,
|
|
155
155
|
precheckZipSize,
|
|
156
156
|
stripDtd
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-S366ICXS.js";
|
|
158
158
|
|
|
159
159
|
// src/hwpx/parser.ts
|
|
160
160
|
import JSZip2 from "jszip";
|
|
@@ -4208,4 +4208,4 @@ export {
|
|
|
4208
4208
|
removeNoteMarks,
|
|
4209
4209
|
diffUnitLists
|
|
4210
4210
|
};
|
|
4211
|
-
//# sourceMappingURL=chunk-
|
|
4211
|
+
//# sourceMappingURL=chunk-64QDDZO3.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
extractRenderedRegions,
|
|
4
4
|
renderDocumentToScene
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MHLTXTP2.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-ZH322FQG.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-64QDDZO3.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-XSDVY4S6.js";
|
|
53
53
|
import {
|
|
54
54
|
patchZipEntries
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-B5F7B5NL.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-UMVL776E.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-RJ26GRDB.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-G7QVY67O.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-P4FHTYVX.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-S366ICXS.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-7EOTOS42.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-7EOTOS42.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-HZANYZZA.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-WBMWA54L.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-A6YD5KUQ.js.map
|