@poe-platform/safe-bash 0.1.825 → 0.1.827
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/dist/image-ast/index.js +39 -18
- package/dist/pdf-ast/image.js +1 -1
- package/dist/pdf-ast/index.js +1 -1
- package/dist/pdf-ast/vendor/pdfjs-fonts.mjs +9 -3
- package/dist/safe-bash/chunks/{chunk-AGHV53VF.js → chunk-M6XFU6LQ.js} +3 -1
- package/dist/safe-bash/chunks/{chunk-363QOIDR.js → chunk-T6FHWSHM.js} +3 -1
- package/dist/safe-bash/command-chunks/{chunk-ZPBL7TYJ.js → chunk-2JRHCVMQ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-FMGNXOMV.js → chunk-2L3NMRLG.js} +7 -3
- package/dist/safe-bash/command-chunks/{chunk-DAQO64WC.js → chunk-2YKOJPIW.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-EPYJSPOY.js → chunk-3QCW4VQF.js} +12 -8
- package/dist/safe-bash/command-chunks/{chunk-YRBFNT5B.js → chunk-3YL2TMLA.js} +10 -1
- package/dist/safe-bash/command-chunks/{chunk-5H7ZHP7F.js → chunk-43NDRBKY.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-BBOYR6LV.js → chunk-46GA576V.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-WPT2FCHH.js → chunk-4SLPM2WM.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-7ZQVMPSB.js → chunk-5CAXR62E.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-3DTHX5UU.js → chunk-66653AEZ.js} +40 -14
- package/dist/safe-bash/command-chunks/{chunk-ETFJ4L7F.js → chunk-6OLE6CLV.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ZIDESNHW.js → chunk-7M3M6FKC.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-2KMNVJB7.js → chunk-A7PKUIJT.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-AVSINNZ6.js → chunk-DEQ47SBQ.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-EV7A5FNN.js → chunk-FFFRLPXU.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-4MVQE6CT.js → chunk-FYTBEGSY.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-LFTGMUAV.js → chunk-HQIZR6EU.js} +192 -489
- package/dist/safe-bash/command-chunks/chunk-HS2L7I4N.js +219 -0
- package/dist/safe-bash/command-chunks/{chunk-WKS2PAZL.js → chunk-HUGKO4ZE.js} +10 -1
- package/dist/safe-bash/command-chunks/chunk-IGXH5W5Z.js +111 -0
- package/dist/safe-bash/command-chunks/{chunk-CMJBRGU2.js → chunk-IHQZKUBS.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-JADJ4BMN.js +1519 -0
- package/dist/safe-bash/command-chunks/{chunk-5AQAWIYK.js → chunk-JEZC5V3B.js} +4 -0
- package/dist/safe-bash/command-chunks/{chunk-YB5TNDY6.js → chunk-K5VJ4NNL.js} +39 -5
- package/dist/safe-bash/command-chunks/{chunk-7RQGRFHJ.js → chunk-KHWDEAE4.js} +2 -2
- package/dist/safe-bash/command-chunks/chunk-L54KVUSY.js +604 -0
- package/dist/safe-bash/command-chunks/{chunk-3NJETNC2.js → chunk-MBXNG6C3.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-HCPEYQKT.js → chunk-N4SH6QY5.js} +285 -302
- package/dist/safe-bash/command-chunks/{chunk-3DID6MQY.js → chunk-OWTQYLID.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-4EA7WI3L.js → chunk-QOOQD6BD.js} +42 -33
- package/dist/safe-bash/command-chunks/{chunk-RQTFK7AV.js → chunk-QZYEI4N6.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-R3SLT3ZX.js → chunk-R6GON4H3.js} +11 -1
- package/dist/safe-bash/command-chunks/{chunk-2GILUQJY.js → chunk-R7ZGDHME.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-HNEWGADJ.js → chunk-RUXOFW5G.js} +7 -6
- package/dist/safe-bash/command-chunks/{chunk-LKAFLJ5L.js → chunk-RWQKX44L.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-PKH57OIC.js → chunk-SG2KOOD4.js} +2 -2
- package/dist/safe-bash/command-chunks/chunk-T4TGJYFV.js +60 -0
- package/dist/safe-bash/command-chunks/chunk-TGSNVLFZ.js +105 -0
- package/dist/safe-bash/command-chunks/{chunk-NXCJNPL3.js → chunk-UCE77LYV.js} +2 -1
- package/dist/safe-bash/command-chunks/{chunk-EWECMOQ5.js → chunk-UIHPHIKI.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-XSZNL3GV.js → chunk-UJPWPRVB.js} +191 -146
- package/dist/safe-bash/command-chunks/{chunk-E5CDHXFA.js → chunk-VOR6YDZC.js} +26 -1
- package/dist/safe-bash/command-chunks/chunk-VSNVYOK2.js +30 -0
- package/dist/safe-bash/command-chunks/{chunk-4XYGJB24.js → chunk-VTH4AORO.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-W5LH7D23.js → chunk-WKKJJBJQ.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-OLXMWQJ5.js → chunk-WRO3PB2M.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-RUAGHZNF.js → chunk-X5ODTF3E.js} +7 -5
- package/dist/safe-bash/command-chunks/{chunk-LH4VBNF6.js → chunk-XGTSP2CP.js} +84 -16
- package/dist/safe-bash/command-chunks/{chunk-K576GZED.js → chunk-XTHKXCF2.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-J3VS55K4.js → chunk-YHRESVJ7.js} +9 -3
- package/dist/safe-bash/command-chunks/{chunk-UWIDPTOB.js → chunk-YSCKOUQP.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-UYNJF5QN.js → chunk-ZALAWNOE.js} +76 -122
- package/dist/safe-bash/command-chunks/{chunk-OT75C5YS.js → chunk-ZYXKW2K7.js} +1 -1
- package/dist/safe-bash/command-chunks/{pdf-renderer-346WYKSZ.js → pdf-renderer-5QWOVFA4.js} +1 -1
- package/dist/safe-bash/command-chunks/{prompt-tool-debug-3POFNRYP.js → prompt-tool-debug-G7ATE7D5.js} +6 -4
- package/dist/safe-bash/commands/llm/index.browser.js +5 -1
- package/dist/safe-bash/commands/llm/index.js +1 -1
- package/dist/safe-bash/commands/python/executor.browser.js +3 -1
- package/dist/safe-bash/commands/python/executor.js +1 -1
- package/dist/safe-bash/commands/python/index.browser.js +5 -1
- package/dist/safe-bash/commands/python/index.js +1 -1
- package/dist/safe-bash/core.browser.js +2 -2
- package/dist/safe-bash/full-core.browser.js +10 -2
- package/dist/safe-bash-command-awk/awk-runtime.js +2 -2
- package/dist/safe-bash-command-awk/awk-syntax.js +1 -1
- package/dist/safe-bash-command-awk/awk.js +3 -3
- package/dist/safe-bash-command-awk/index.js +3 -3
- package/dist/safe-bash-command-gpg/index.js +11 -3
- package/dist/safe-bash-command-imagemagick/index.js +2 -2
- package/dist/safe-bash-command-llm/collections.js +6 -4
- package/dist/safe-bash-command-llm/command.js +4 -4
- package/dist/safe-bash-command-llm/import-json-document.d.ts +9 -2
- package/dist/safe-bash-command-llm/index.d.ts +2 -1
- package/dist/safe-bash-command-llm/index.js +10 -4
- package/dist/safe-bash-command-llm/loader-provider.d.ts +5 -0
- package/dist/safe-bash-command-mcp/index.js +10 -13
- package/dist/safe-bash-command-pdftoppm/index.js +2 -2
- package/dist/safe-bash-command-playwright-cli/index.js +2 -2
- package/dist/safe-bash-command-playwright-cli/playwright/ability-execution.d.ts +1 -0
- package/dist/safe-bash-command-playwright-cli/playwright/ability-execution.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/controller.d.ts +2 -0
- package/dist/safe-bash-command-playwright-cli/playwright/controller.js +2 -2
- package/dist/safe-bash-command-playwright-cli/playwright/index.js +2 -2
- package/dist/safe-bash-command-python/build-backend.d.ts +2 -0
- package/dist/safe-bash-command-python/cache.d.ts +1 -1
- package/dist/safe-bash-command-python/executor.d.ts +5 -2
- package/dist/safe-bash-command-python/executor.js +11 -6
- package/dist/safe-bash-command-python/host-capabilities.js +1 -1
- package/dist/safe-bash-command-python/index.js +11 -6
- package/dist/safe-bash-command-python/jspi.js +5 -3
- package/dist/safe-bash-command-python/manifest-file.d.ts +44 -0
- package/dist/safe-bash-command-python/manifest.d.ts +45 -0
- package/dist/safe-bash-command-python/provisioning.d.ts +20 -1
- package/dist/safe-bash-command-python/provisioning.js +3 -2
- package/dist/safe-bash-command-python/reply.js +7 -11
- package/dist/safe-bash-command-python/source-archive.js +2 -2
- package/dist/safe-bash-command-python/source-zip.js +2 -2
- package/dist/safe-bash-command-python/worker.js +34 -21
- package/dist/safe-bash-command-sqlite3/engine.d.ts +4 -0
- package/dist/safe-bash-command-sqlite3/index.js +174 -18
- package/dist/safe-bash-command-svgo/index.js +1 -1
- package/dist/safe-bash-command-tar/create.js +3 -3
- package/dist/safe-bash-command-tar/extract.js +3 -3
- package/dist/safe-bash-command-tar/index.js +5 -5
- package/dist/safe-bash-command-tar/modes.js +5 -5
- package/dist/safe-bash-command-tar/options.d.ts +1 -1
- package/dist/safe-bash-command-tar/options.js +1 -1
- package/dist/safe-bash-command-tar/stream.js +1 -1
- package/dist/safe-bash-command-wkhtmltopdf/index.js +1 -1
- package/dist/safe-bash-command-xan/argv.js +1 -1
- package/dist/safe-bash-command-xan/commands.js +3 -3
- package/dist/safe-bash-command-xan/index.js +3 -3
- package/dist/safe-bash-command-xan/io.js +2 -2
- package/dist/safe-bash-compression-engine/bounded-codec.js +3 -3
- package/dist/safe-bash-compression-engine/codec-loader.js +2 -2
- package/dist/safe-bash-compression-engine/files.js +6 -6
- package/dist/safe-bash-compression-engine/index.js +5 -5
- package/dist/safe-bash-compression-engine/operand.js +6 -6
- package/dist/safe-bash-compression-engine/options.js +1 -1
- package/dist/safe-bash-compression-engine/stream.js +5 -5
- package/dist/safe-bash-compression-engine/zstd-decode.js +4 -4
- package/dist/safe-bash-contracts/filesystem-descriptor.js +1 -1
- package/dist/safe-bash-contracts/filesystem-output.js +1 -1
- package/dist/safe-bash-csv-engine/index.js +6 -6
- package/dist/safe-bash-csv-engine/python-codec-aliases.js +1 -1
- package/dist/safe-bash-csv-engine/python-codepages.js +3 -3
- package/dist/safe-bash-csv-engine/python-file-codepages.js +2 -2
- package/dist/safe-bash-csv-engine/python-utf16.js +4 -4
- package/dist/safe-bash-csv-engine/text-decoder.js +6 -6
- package/dist/safe-bash-graphviz-engine/index.js +1 -1
- package/dist/safe-bash-pager-engine/index.js +2 -2
- package/dist/safe-bash-query-engine/capture.js +3 -3
- package/dist/safe-bash-query-engine/delpaths.js +3 -3
- package/dist/safe-bash-query-engine/formats.js +2 -2
- package/dist/safe-bash-query-engine/index.js +10 -10
- package/dist/safe-bash-query-engine/indices.js +3 -3
- package/dist/safe-bash-query-engine/input.d.ts +3 -3
- package/dist/safe-bash-query-engine/input.js +1 -1
- package/dist/safe-bash-query-engine/interpreter.js +9 -9
- package/dist/safe-bash-query-engine/query-core.js +10 -10
- package/dist/safe-bash-query-engine/regex.js +4 -4
- package/dist/safe-bash-query-engine/splits.js +5 -5
- package/dist/safe-bash-query-engine/values.js +2 -2
- package/package.json +2 -2
- package/dist/safe-bash/command-chunks/chunk-OOYVZAWL.js +0 -90
- package/dist/safe-bash/command-chunks/chunk-RZOHZGEZ.js +0 -772
- package/dist/safe-bash/command-chunks/chunk-WIUEM7HP.js +0 -58
- package/dist/safe-bash/command-chunks/chunk-WY6THI6J.js +0 -673
- package/dist/safe-bash/command-chunks/chunk-ZERCTWUI.js +0 -467
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
zstdDecode
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-FYTBEGSY.js";
|
|
4
4
|
import "../safe-bash/command-chunks/chunk-52DDLGBS.js";
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-IHQZKUBS.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-6OLE6CLV.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-JEZC5V3B.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-5T7WL5CN.js";
|
|
9
9
|
import "../safe-bash/command-chunks/chunk-LNWJHOR5.js";
|
|
10
10
|
import "../safe-bash/command-chunks/chunk-V7IP2PFT.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openCommandFile
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-3YL2TMLA.js";
|
|
4
4
|
import "../safe-bash/command-chunks/chunk-PUJB6ZOP.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-SMDVFI7O.js";
|
|
6
6
|
import "../safe-bash/command-chunks/chunk-NDGO4DJT.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PythonTextDecoder
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
8
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-DEQ47SBQ.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-WRO3PB2M.js";
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-IGXH5W5Z.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-VSNVYOK2.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-TGSNVLFZ.js";
|
|
8
|
+
import "../safe-bash/command-chunks/chunk-RUXOFW5G.js";
|
|
9
9
|
import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
|
|
10
10
|
|
|
11
11
|
// packages/safe-bash-csv-engine/src/index.ts
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
dbfCodepages,
|
|
4
4
|
decodePythonSingleByte,
|
|
5
5
|
pythonSingleByteCodepages
|
|
6
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
8
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
+
} from "../safe-bash/command-chunks/chunk-IGXH5W5Z.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-VSNVYOK2.js";
|
|
8
|
+
import "../safe-bash/command-chunks/chunk-RUXOFW5G.js";
|
|
9
9
|
import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
|
|
10
10
|
export {
|
|
11
11
|
PythonTextDecodeError,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pythonFileCodepages
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-TGSNVLFZ.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-RUXOFW5G.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
|
|
6
6
|
export {
|
|
7
7
|
pythonFileCodepages
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PythonTextEncodingError,
|
|
3
3
|
PythonUtf16Decoder
|
|
4
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
4
|
+
} from "../safe-bash/command-chunks/chunk-WRO3PB2M.js";
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-IGXH5W5Z.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-VSNVYOK2.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-RUXOFW5G.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
|
|
9
9
|
export {
|
|
10
10
|
PythonTextEncodingError,
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
PythonIso2022PendingError,
|
|
3
3
|
PythonTextDecoder,
|
|
4
4
|
PythonUtf7EncodingError
|
|
5
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
+
} from "../safe-bash/command-chunks/chunk-DEQ47SBQ.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-WRO3PB2M.js";
|
|
7
7
|
import {
|
|
8
8
|
PythonTextDecodeError
|
|
9
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
10
|
-
import "../safe-bash/command-chunks/chunk-
|
|
11
|
-
import "../safe-bash/command-chunks/chunk-
|
|
12
|
-
import "../safe-bash/command-chunks/chunk-
|
|
9
|
+
} from "../safe-bash/command-chunks/chunk-IGXH5W5Z.js";
|
|
10
|
+
import "../safe-bash/command-chunks/chunk-VSNVYOK2.js";
|
|
11
|
+
import "../safe-bash/command-chunks/chunk-TGSNVLFZ.js";
|
|
12
|
+
import "../safe-bash/command-chunks/chunk-RUXOFW5G.js";
|
|
13
13
|
import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
|
|
14
14
|
export {
|
|
15
15
|
PythonIso2022PendingError,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
parseDot,
|
|
5
5
|
renderSvg,
|
|
6
6
|
serializeDot
|
|
7
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
7
|
+
} from "../safe-bash/command-chunks/chunk-2YKOJPIW.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
|
|
9
9
|
|
|
10
10
|
// packages/safe-bash-graphviz-engine/src/index.ts
|
|
@@ -47,7 +47,7 @@ async function readSourceText(source, signal, admit) {
|
|
|
47
47
|
merged.set(c, offset);
|
|
48
48
|
offset += c.byteLength;
|
|
49
49
|
}
|
|
50
|
-
return new TextDecoder("utf-8", { fatal: false }).decode(merged);
|
|
50
|
+
return new TextDecoder("utf-8", { fatal: false, ignoreBOM: true }).decode(merged);
|
|
51
51
|
}
|
|
52
52
|
function createPagerCommand(name, options = {}) {
|
|
53
53
|
const limits = settings(options);
|
|
@@ -161,7 +161,7 @@ function createPagerCommand(name, options = {}) {
|
|
|
161
161
|
context.signal.throwIfAborted();
|
|
162
162
|
admit(raw.byteLength);
|
|
163
163
|
if (passThrough) await writeBytes(context.stdout, raw, context.signal);
|
|
164
|
-
else texts.push(new TextDecoder("utf-8", { fatal: false }).decode(raw));
|
|
164
|
+
else texts.push(new TextDecoder("utf-8", { fatal: false, ignoreBOM: true }).decode(raw));
|
|
165
165
|
} catch (err) {
|
|
166
166
|
context.signal.throwIfAborted();
|
|
167
167
|
if (!(err instanceof FsError)) throw err;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
capture,
|
|
3
3
|
extendedPattern
|
|
4
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
4
|
+
} from "../safe-bash/command-chunks/chunk-YSCKOUQP.js";
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-7M3M6FKC.js";
|
|
6
6
|
import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-N4SH6QY5.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
9
9
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
10
10
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
delpaths
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-ZYXKW2K7.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-7M3M6FKC.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-N4SH6QY5.js";
|
|
7
7
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
9
9
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatValue
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-HUGKO4ZE.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-N4SH6QY5.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
6
6
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
7
7
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
YqValueFailure,
|
|
3
3
|
createYqQuerySession
|
|
4
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
+
} from "../safe-bash/command-chunks/chunk-2JRHCVMQ.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-DZY7V74W.js";
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-WKKJJBJQ.js";
|
|
7
7
|
import "../safe-bash/command-chunks/chunk-2IGH6JIP.js";
|
|
8
|
-
import "../safe-bash/command-chunks/chunk-
|
|
9
|
-
import "../safe-bash/command-chunks/chunk-
|
|
10
|
-
import "../safe-bash/command-chunks/chunk-
|
|
8
|
+
import "../safe-bash/command-chunks/chunk-VTH4AORO.js";
|
|
9
|
+
import "../safe-bash/command-chunks/chunk-XTHKXCF2.js";
|
|
10
|
+
import "../safe-bash/command-chunks/chunk-YSCKOUQP.js";
|
|
11
11
|
import "../safe-bash/command-chunks/chunk-BTDSUATE.js";
|
|
12
|
-
import "../safe-bash/command-chunks/chunk-
|
|
13
|
-
import "../safe-bash/command-chunks/chunk-
|
|
14
|
-
import "../safe-bash/command-chunks/chunk-
|
|
15
|
-
import "../safe-bash/command-chunks/chunk-
|
|
12
|
+
import "../safe-bash/command-chunks/chunk-ZYXKW2K7.js";
|
|
13
|
+
import "../safe-bash/command-chunks/chunk-HUGKO4ZE.js";
|
|
14
|
+
import "../safe-bash/command-chunks/chunk-QZYEI4N6.js";
|
|
15
|
+
import "../safe-bash/command-chunks/chunk-7M3M6FKC.js";
|
|
16
16
|
import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
|
|
17
|
-
import "../safe-bash/command-chunks/chunk-
|
|
17
|
+
import "../safe-bash/command-chunks/chunk-N4SH6QY5.js";
|
|
18
18
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
19
19
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
20
20
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
indices
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-QZYEI4N6.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-7M3M6FKC.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-N4SH6QY5.js";
|
|
7
7
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
9
9
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
|
@@ -10,7 +10,7 @@ export declare class JqParseError extends JqError {
|
|
|
10
10
|
constructor(detail: string, offset: number, line?: number, column?: number, located?: boolean);
|
|
11
11
|
diagnostic(): string;
|
|
12
12
|
}
|
|
13
|
-
export declare function decodeUtf8(bytes: string, budget: Budget, fatal?: boolean | "surrogatepass", points?: number[]): string;
|
|
13
|
+
export declare function decodeUtf8(bytes: string, budget: Budget, fatal?: boolean | "surrogatepass" | "javascript", points?: number[]): string;
|
|
14
14
|
export declare function parseJson(input: string, budget: Budget, byteEncoded?: boolean): Json;
|
|
15
15
|
export declare function readChunks(source: ByteSource, budget: Budget): AsyncGenerator<Uint8Array>;
|
|
16
16
|
export interface JsonInputOptions {
|
|
@@ -22,8 +22,8 @@ export interface JsonInputOptions {
|
|
|
22
22
|
readonly containers?: boolean; /** Preserve Python code points in a fourth event field: { key, points }. Requires python39. */
|
|
23
23
|
readonly codePoints?: boolean;
|
|
24
24
|
};
|
|
25
|
-
/** Python
|
|
26
|
-
readonly profile?: "python39";
|
|
25
|
+
/** Python byte JSON or JavaScript TextDecoder/JSON.parse semantics, as one document. */
|
|
26
|
+
readonly profile?: "python39" | "javascript";
|
|
27
27
|
readonly stream?: boolean;
|
|
28
28
|
readonly streamErrors?: boolean;
|
|
29
29
|
readonly sequence?: boolean;
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
tryProcessFlatSelectProjectChunkSync,
|
|
15
15
|
tryStringifyCompactSync,
|
|
16
16
|
tryWriteCompactSync
|
|
17
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
17
|
+
} from "../safe-bash/command-chunks/chunk-N4SH6QY5.js";
|
|
18
18
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
19
19
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
20
20
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Interpreter
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-WKKJJBJQ.js";
|
|
4
4
|
import "../safe-bash/command-chunks/chunk-2IGH6JIP.js";
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-VTH4AORO.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-XTHKXCF2.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-YSCKOUQP.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-BTDSUATE.js";
|
|
9
|
-
import "../safe-bash/command-chunks/chunk-
|
|
10
|
-
import "../safe-bash/command-chunks/chunk-
|
|
11
|
-
import "../safe-bash/command-chunks/chunk-
|
|
12
|
-
import "../safe-bash/command-chunks/chunk-
|
|
9
|
+
import "../safe-bash/command-chunks/chunk-ZYXKW2K7.js";
|
|
10
|
+
import "../safe-bash/command-chunks/chunk-HUGKO4ZE.js";
|
|
11
|
+
import "../safe-bash/command-chunks/chunk-QZYEI4N6.js";
|
|
12
|
+
import "../safe-bash/command-chunks/chunk-7M3M6FKC.js";
|
|
13
13
|
import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
|
|
14
|
-
import "../safe-bash/command-chunks/chunk-
|
|
14
|
+
import "../safe-bash/command-chunks/chunk-N4SH6QY5.js";
|
|
15
15
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
16
16
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
17
17
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
YqValueFailure,
|
|
3
3
|
createYqQuerySession
|
|
4
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
+
} from "../safe-bash/command-chunks/chunk-2JRHCVMQ.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-DZY7V74W.js";
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-WKKJJBJQ.js";
|
|
7
7
|
import "../safe-bash/command-chunks/chunk-2IGH6JIP.js";
|
|
8
|
-
import "../safe-bash/command-chunks/chunk-
|
|
9
|
-
import "../safe-bash/command-chunks/chunk-
|
|
10
|
-
import "../safe-bash/command-chunks/chunk-
|
|
8
|
+
import "../safe-bash/command-chunks/chunk-VTH4AORO.js";
|
|
9
|
+
import "../safe-bash/command-chunks/chunk-XTHKXCF2.js";
|
|
10
|
+
import "../safe-bash/command-chunks/chunk-YSCKOUQP.js";
|
|
11
11
|
import "../safe-bash/command-chunks/chunk-BTDSUATE.js";
|
|
12
|
-
import "../safe-bash/command-chunks/chunk-
|
|
13
|
-
import "../safe-bash/command-chunks/chunk-
|
|
14
|
-
import "../safe-bash/command-chunks/chunk-
|
|
15
|
-
import "../safe-bash/command-chunks/chunk-
|
|
12
|
+
import "../safe-bash/command-chunks/chunk-ZYXKW2K7.js";
|
|
13
|
+
import "../safe-bash/command-chunks/chunk-HUGKO4ZE.js";
|
|
14
|
+
import "../safe-bash/command-chunks/chunk-QZYEI4N6.js";
|
|
15
|
+
import "../safe-bash/command-chunks/chunk-7M3M6FKC.js";
|
|
16
16
|
import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
|
|
17
|
-
import "../safe-bash/command-chunks/chunk-
|
|
17
|
+
import "../safe-bash/command-chunks/chunk-N4SH6QY5.js";
|
|
18
18
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
19
19
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
20
20
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
regexFlags,
|
|
5
5
|
scanRegex,
|
|
6
6
|
substituteRegex
|
|
7
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
8
|
-
import "../safe-bash/command-chunks/chunk-
|
|
9
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
+
} from "../safe-bash/command-chunks/chunk-XTHKXCF2.js";
|
|
8
|
+
import "../safe-bash/command-chunks/chunk-YSCKOUQP.js";
|
|
9
|
+
import "../safe-bash/command-chunks/chunk-7M3M6FKC.js";
|
|
10
10
|
import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
|
|
11
|
-
import "../safe-bash/command-chunks/chunk-
|
|
11
|
+
import "../safe-bash/command-chunks/chunk-N4SH6QY5.js";
|
|
12
12
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
13
13
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
14
14
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
splitRegex
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-VTH4AORO.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-XTHKXCF2.js";
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-YSCKOUQP.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-7M3M6FKC.js";
|
|
7
7
|
import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
|
|
8
|
-
import "../safe-bash/command-chunks/chunk-
|
|
8
|
+
import "../safe-bash/command-chunks/chunk-N4SH6QY5.js";
|
|
9
9
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
10
10
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
11
11
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
stringCompare,
|
|
15
15
|
stringCompareMaybeSync,
|
|
16
16
|
type
|
|
17
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
17
|
+
} from "../safe-bash/command-chunks/chunk-7M3M6FKC.js";
|
|
18
18
|
import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
|
|
19
|
-
import "../safe-bash/command-chunks/chunk-
|
|
19
|
+
import "../safe-bash/command-chunks/chunk-N4SH6QY5.js";
|
|
20
20
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
21
21
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
22
22
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poe-platform/safe-bash",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.827",
|
|
4
4
|
"description": "Extensible virtual shell with pluggable filesystems and streaming commands",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1415,7 +1415,7 @@
|
|
|
1415
1415
|
"access": "public"
|
|
1416
1416
|
},
|
|
1417
1417
|
"dependencies": {
|
|
1418
|
-
"@poe-platform/safe-fs": "0.1.
|
|
1418
|
+
"@poe-platform/safe-fs": "0.1.827",
|
|
1419
1419
|
"pdf-lib": "1.17.1",
|
|
1420
1420
|
"@types/node": "^25.2.2",
|
|
1421
1421
|
"@formatjs/intl-numberformat": "9.4.0",
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
normalizeEncoding,
|
|
3
|
-
pythonCodecAliases
|
|
4
|
-
} from "./chunk-ZERCTWUI.js";
|
|
5
|
-
import {
|
|
6
|
-
unpackCodepage
|
|
7
|
-
} from "./chunk-HNEWGADJ.js";
|
|
8
|
-
|
|
9
|
-
// packages/safe-bash-csv-engine/src/python-codepages.ts
|
|
10
|
-
var dbfCodepages = Object.freeze({
|
|
11
|
-
"cp1250": unpackCodepage("rCD//xog//8eICYgICAhIP//MCBgATkgWgFkAX0BeQH//xggGSAcIB0gIiATIBQg//8iIWEBOiBbAWUBfgF6AaAAxwLYAkEBpAAEAaYApwCoAKkAXgGrAKwArQCuAHsBsACxANsCQgG0ALUAtgC3ALgABQFfAbsAPQHdAj4BfAFUAcEAwgACAcQAOQEGAccADAHJABgBywAaAc0AzgAOARABQwFHAdMA1ABQAdYA1wBYAW4B2gBwAdwA3QBiAd8AVQHhAOIAAwHkADoBBwHnAA0B6QAZAesAGwHtAO4ADwERAUQBSAHzAPQAUQH2APcAWQFvAfoAcQH8AP0AYwHZAg=="),
|
|
12
|
-
"cp1251": unpackCodepage("AgQDBBogUwQeICYgICAhIKwgMCAJBDkgCgQMBAsEDwRSBBggGSAcIB0gIiATIBQg//8iIVkEOiBaBFwEWwRfBKAADgReBAgEpACQBKYApwABBKkABASrAKwArQCuAAcEsACxAAYEVgSRBLUAtgC3AFEEFiFUBLsAWAQFBFUEVwQQBBEEEgQTBBQEFQQWBBcEGAQZBBoEGwQcBB0EHgQfBCAEIQQiBCMEJAQlBCYEJwQoBCkEKgQrBCwELQQuBC8EMAQxBDIEMwQ0BDUENgQ3BDgEOQQ6BDsEPAQ9BD4EPwRABEEEQgRDBEQERQRGBEcESARJBEoESwRMBE0ETgRPBA=="),
|
|
13
|
-
"cp1253": unpackCodepage("rCD//xogkgEeICYgICAhIP//MCD//zkg/////////////xggGSAcIB0gIiATIBQg//8iIf//OiD//////////6AAhQOGA6MApAClAKYApwCoAKkA//+rAKwArQCuABUgsACxALIAswCEA7UAtgC3AIgDiQOKA7sAjAO9AI4DjwOQA5EDkgOTA5QDlQOWA5cDmAOZA5oDmwOcA50DngOfA6ADoQP//6MDpAOlA6YDpwOoA6kDqgOrA6wDrQOuA68DsAOxA7IDswO0A7UDtgO3A7gDuQO6A7sDvAO9A74DvwPAA8EDwgPDA8QDxQPGA8cDyAPJA8oDywPMA80DzgP//w=="),
|
|
14
|
-
"cp1254": unpackCodepage("rCD//xogkgEeICYgICAhIMYCMCBgATkgUgH//////////xggGSAcIB0gIiATIBQg3AIiIWEBOiBTAf////94AaAAoQCiAKMApAClAKYApwCoAKkAqgCrAKwArQCuAK8AsACxALIAswC0ALUAtgC3ALgAuQC6ALsAvAC9AL4AvwDAAMEAwgDDAMQAxQDGAMcAyADJAMoAywDMAM0AzgDPAB4B0QDSANMA1ADVANYA1wDYANkA2gDbANwAMAFeAd8A4ADhAOIA4wDkAOUA5gDnAOgA6QDqAOsA7ADtAO4A7wAfAfEA8gDzAPQA9QD2APcA+AD5APoA+wD8ADEBXwH/AA=="),
|
|
15
|
-
"cp1255": unpackCodepage("rCD//xogkgEeICYgICAhIMYCMCD//zkg/////////////xggGSAcIB0gIiATIBQg3AIiIf//OiD//////////6AAoQCiAKMAqiClAKYApwCoAKkA1wCrAKwArQCuAK8AsACxALIAswC0ALUAtgC3ALgAuQD3ALsAvAC9AL4AvwCwBbEFsgWzBbQFtQW2BbcFuAW5Bf//uwW8Bb0FvgW/BcAFwQXCBcMF8AXxBfIF8wX0Bf//////////////////0AXRBdIF0wXUBdUF1gXXBdgF2QXaBdsF3AXdBd4F3wXgBeEF4gXjBeQF5QXmBecF6AXpBeoF/////w4gDyD//w=="),
|
|
16
|
-
"cp1256": unpackCodepage("rCB+BhogkgEeICYgICAhIMYCMCB5BjkgUgGGBpgGiAavBhggGSAcIB0gIiATIBQgqQYiIZEGOiBTAQwgDSC6BqAADAaiAKMApAClAKYApwCoAKkAvgarAKwArQCuAK8AsACxALIAswC0ALUAtgC3ALgAuQAbBrsAvAC9AL4AHwbBBiEGIgYjBiQGJQYmBicGKAYpBioGKwYsBi0GLgYvBjAGMQYyBjMGNAY1BjYG1wA3BjgGOQY6BkAGQQZCBkMG4ABEBuIARQZGBkcGSAbnAOgA6QDqAOsASQZKBu4A7wBLBkwGTQZOBvQATwZQBvcAUQb5AFIG+wD8AA4gDyDSBg=="),
|
|
17
|
-
"cp437": unpackCodepage("xwD8AOkA4gDkAOAA5QDnAOoA6wDoAO8A7gDsAMQAxQDJAOYAxgD0APYA8gD7APkA/wDWANwAogCjAKUApyCSAeEA7QDzAPoA8QDRAKoAugC/ABAjrAC9ALwAoQCrALsAkSWSJZMlAiUkJWElYiVWJVUlYyVRJVclXSVcJVslECUUJTQlLCUcJQAlPCVeJV8lWiVUJWklZiVgJVAlbCVnJWglZCVlJVklWCVSJVMlayVqJRglDCWIJYQljCWQJYAlsQPfAJMDwAOjA8MDtQDEA6YDmAOpA7QDHiLGA7UDKSJhIrEAZSJkIiAjISP3AEgisAAZIrcAGiJ/ILIAoCWgAA=="),
|
|
18
|
-
"cp737": unpackCodepage("kQOSA5MDlAOVA5YDlwOYA5kDmgObA5wDnQOeA58DoAOhA6MDpAOlA6YDpwOoA6kDsQOyA7MDtAO1A7YDtwO4A7kDugO7A7wDvQO+A78DwAPBA8MDwgPEA8UDxgPHA8gDkSWSJZMlAiUkJWElYiVWJVUlYyVRJVclXSVcJVslECUUJTQlLCUcJQAlPCVeJV8lWiVUJWklZiVgJVAlbCVnJWglZCVlJVklWCVSJVMlayVqJRglDCWIJYQljCWQJYAlyQOsA60DrgPKA68DzAPNA8sDzgOGA4gDiQOKA4wDjgOPA7EAZSJkIqoDqwP3AEgisAAZIrcAGiJ/ILIAoCWgAA=="),
|
|
19
|
-
"cp850": unpackCodepage("xwD8AOkA4gDkAOAA5QDnAOoA6wDoAO8A7gDsAMQAxQDJAOYAxgD0APYA8gD7APkA/wDWANwA+ACjANgA1wCSAeEA7QDzAPoA8QDRAKoAugC/AK4ArAC9ALwAoQCrALsAkSWSJZMlAiUkJcEAwgDAAKkAYyVRJVclXSWiAKUAECUUJTQlLCUcJQAlPCXjAMMAWiVUJWklZiVgJVAlbCWkAPAA0ADKAMsAyAAxAc0AzgDPABglDCWIJYQlpgDMAIAl0wDfANQA0gD1ANUAtQD+AN4A2gDbANkA/QDdAK8AtACtALEAFyC+ALYApwD3ALgAsACoALcAuQCzALIAoCWgAA=="),
|
|
20
|
-
"cp852": unpackCodepage("xwD8AOkA4gDkAG8BBwHnAEIB6wBQAVEB7gB5AcQABgHJADkBOgH0APYAPQE+AVoBWwHWANwAZAFlAUEB1wANAeEA7QDzAPoABAEFAX0BfgEYARkBrAB6AQwBXwGrALsAkSWSJZMlAiUkJcEAwgAaAV4BYyVRJVclXSV7AXwBECUUJTQlLCUcJQAlPCUCAQMBWiVUJWklZiVgJVAlbCWkABEBEAEOAcsADwFHAc0AzgAbARglDCWIJYQlYgFuAYAl0wDfANQAQwFEAUgBYAFhAVQB2gBVAXAB/QDdAGMBtACtAN0C2wLHAtgCpwD3ALgAsACoANkCcQFYAVkBoCWgAA=="),
|
|
21
|
-
"cp857": unpackCodepage("xwD8AOkA4gDkAOAA5QDnAOoA6wDoAO8A7gAxAcQAxQDJAOYAxgD0APYA8gD7APkAMAHWANwA+ACjANgAXgFfAeEA7QDzAPoA8QDRAB4BHwG/AK4ArAC9ALwAoQCrALsAkSWSJZMlAiUkJcEAwgDAAKkAYyVRJVclXSWiAKUAECUUJTQlLCUcJQAlPCXjAMMAWiVUJWklZiVgJVAlbCWkALoAqgDKAMsAyAD//80AzgDPABglDCWIJYQlpgDMAIAl0wDfANQA0gD1ANUAtQD//9cA2gDbANkA7AD/AK8AtACtALEA//++ALYApwD3ALgAsACoALcAuQCzALIAoCWgAA=="),
|
|
22
|
-
"cp860": unpackCodepage("xwD8AOkA4gDjAOAAwQDnAOoAygDoAM0A1ADsAMMAwgDJAMAAyAD0APUA8gDaAPkAzADVANwAogCjANkApyDTAOEA7QDzAPoA8QDRAKoAugC/ANIArAC9ALwAoQCrALsAkSWSJZMlAiUkJWElYiVWJVUlYyVRJVclXSVcJVslECUUJTQlLCUcJQAlPCVeJV8lWiVUJWklZiVgJVAlbCVnJWglZCVlJVklWCVSJVMlayVqJRglDCWIJYQljCWQJYAlsQPfAJMDwAOjA8MDtQDEA6YDmAOpA7QDHiLGA7UDKSJhIrEAZSJkIiAjISP3AEgisAAZIrcAGiJ/ILIAoCWgAA=="),
|
|
23
|
-
"cp861": unpackCodepage("xwD8AOkA4gDkAOAA5QDnAOoA6wDoANAA8ADeAMQAxQDJAOYAxgD0APYA/gD7AN0A/QDWANwA+ACjANgApyCSAeEA7QDzAPoAwQDNANMA2gC/ABAjrAC9ALwAoQCrALsAkSWSJZMlAiUkJWElYiVWJVUlYyVRJVclXSVcJVslECUUJTQlLCUcJQAlPCVeJV8lWiVUJWklZiVgJVAlbCVnJWglZCVlJVklWCVSJVMlayVqJRglDCWIJYQljCWQJYAlsQPfAJMDwAOjA8MDtQDEA6YDmAOpA7QDHiLGA7UDKSJhIrEAZSJkIiAjISP3AEgisAAZIrcAGiJ/ILIAoCWgAA=="),
|
|
24
|
-
"cp863": unpackCodepage("xwD8AOkA4gDCAOAAtgDnAOoA6wDoAO8A7gAXIMAApwDJAMgAygD0AMsAzwD7APkApADUANwAogCjANkA2wCSAaYAtADzAPoAqAC4ALMArwDOABAjrAC9ALwAvgCrALsAkSWSJZMlAiUkJWElYiVWJVUlYyVRJVclXSVcJVslECUUJTQlLCUcJQAlPCVeJV8lWiVUJWklZiVgJVAlbCVnJWglZCVlJVklWCVSJVMlayVqJRglDCWIJYQljCWQJYAlsQPfAJMDwAOjA8MDtQDEA6YDmAOpA7QDHiLGA7UDKSJhIrEAZSJkIiAjISP3AEgisAAZIrcAGiJ/ILIAoCWgAA=="),
|
|
25
|
-
"cp865": unpackCodepage("xwD8AOkA4gDkAOAA5QDnAOoA6wDoAO8A7gDsAMQAxQDJAOYAxgD0APYA8gD7APkA/wDWANwA+ACjANgApyCSAeEA7QDzAPoA8QDRAKoAugC/ABAjrAC9ALwAoQCrAKQAkSWSJZMlAiUkJWElYiVWJVUlYyVRJVclXSVcJVslECUUJTQlLCUcJQAlPCVeJV8lWiVUJWklZiVgJVAlbCVnJWglZCVlJVklWCVSJVMlayVqJRglDCWIJYQljCWQJYAlsQPfAJMDwAOjA8MDtQDEA6YDmAOpA7QDHiLGA7UDKSJhIrEAZSJkIiAjISP3AEgisAAZIrcAGiJ/ILIAoCWgAA=="),
|
|
26
|
-
"cp866": unpackCodepage("EAQRBBIEEwQUBBUEFgQXBBgEGQQaBBsEHAQdBB4EHwQgBCEEIgQjBCQEJQQmBCcEKAQpBCoEKwQsBC0ELgQvBDAEMQQyBDMENAQ1BDYENwQ4BDkEOgQ7BDwEPQQ+BD8EkSWSJZMlAiUkJWElYiVWJVUlYyVRJVclXSVcJVslECUUJTQlLCUcJQAlPCVeJV8lWiVUJWklZiVgJVAlbCVnJWglZCVlJVklWCVSJVMlayVqJRglDCWIJYQljCWQJYAlQARBBEIEQwREBEUERgRHBEgESQRKBEsETARNBE4ETwQBBFEEBARUBAcEVwQOBF4EsAAZIrcAGiIWIaQAoCWgAA=="),
|
|
27
|
-
"cp874": unpackCodepage("rCD//////////yYg/////////////////////////////xggGSAcIB0gIiATIBQg/////////////////////6AAAQ4CDgMOBA4FDgYOBw4IDgkOCg4LDgwODQ4ODg8OEA4RDhIOEw4UDhUOFg4XDhgOGQ4aDhsOHA4dDh4OHw4gDiEOIg4jDiQOJQ4mDicOKA4pDioOKw4sDi0OLg4vDjAOMQ4yDjMONA41DjYONw44DjkOOg7//////////z8OQA5BDkIOQw5EDkUORg5HDkgOSQ5KDksOTA5NDk4OTw5QDlEOUg5TDlQOVQ5WDlcOWA5ZDloOWw7//////////w=="),
|
|
28
|
-
"mac_cyrillic": unpackCodepage("EAQRBBIEEwQUBBUEFgQXBBgEGQQaBBsEHAQdBB4EHwQgBCEEIgQjBCQEJQQmBCcEKAQpBCoEKwQsBC0ELgQvBCAgsACQBKMApwAiILYABgSuAKkAIiECBFIEYCIDBFMEHiKxAGQiZSJWBLUAkQQIBAQEVAQHBFcECQRZBAoEWgRYBAUErAAaIpIBSCIGIqsAuwAmIKAACwRbBAwEXARVBBMgFCAcIB0gGCAZIPcAHiAOBF4EDwRfBBYhAQRRBE8EMAQxBDIEMwQ0BDUENgQ3BDgEOQQ6BDsEPAQ9BD4EPwRABEEEQgRDBEQERQRGBEcESARJBEoESwRMBE0ETgSsIA=="),
|
|
29
|
-
"mac_greek": unpackCodepage("xAC5ALIAyQCzANYA3ACFA+AA4gDkAIQDqADnAOkA6ADqAOsAowAiIe4A7wAiIL0AMCD0APYApgCsIPkA+wD8ACAgkwOUA5gDmwOeA6AD3wCuAKkAowOqA6cAYCKwALcAkQOxAGQiZSKlAJIDlQOWA5cDmQOaA5wDpgOrA6gDqQOsA50DrACfA6EDSCKkA6sAuwAmIKAApQOnA4YDiANTARMgFSAcIB0gGCAZIPcAiQOKA4wDjgOtA64DrwPMA48DzQOxA7IDyAO0A7UDxgOzA7cDuQO+A7oDuwO8A70DvwPAA84DwQPDA8QDuAPJA8IDxwPFA7YDygPLA5ADsAOtAA=="),
|
|
30
|
-
"mac_latin2": unpackCodepage("xAAAAQEByQAEAdYA3ADhAAUBDAHkAA0BBgEHAekAeQF6AQ4B7QAPARIBEwEWAfMAFwH0APYA9QD6ABoBGwH8ACAgsAAYAaMApwAiILYA3wCuAKkAIiEZAagAYCIjAS4BLwEqAWQiZSIrATYBAiIRIkIBOwE8AT0BPgE5AToBRQFGAUMBrAAaIkQBRwEGIqsAuwAmIKAASAFQAdUAUQFMARMgFCAcIB0gGCAZIPcAyiVNAVQBVQFYATkgOiBZAVYBVwFgARogHiBhAVoBWwHBAGQBZQHNAH0BfgFqAdMA1ABrAW4B2gBvAXABcQFyAXMB3QD9ADcBewFBAXwBIgHHAg=="),
|
|
31
|
-
"mac_roman": unpackCodepage("xADFAMcAyQDRANYA3ADhAOAA4gDkAOMA5QDnAOkA6ADqAOsA7QDsAO4A7wDxAPMA8gD0APYA9QD6APkA+wD8ACAgsACiAKMApwAiILYA3wCuAKkAIiG0AKgAYCLGANgAHiKxAGQiZSKlALUAAiIRIg8iwAMrIqoAugCpA+YA+AC/AKEArAAaIpIBSCIGIqsAuwAmIKAAwADDANUAUgFTARMgFCAcIB0gGCAZIPcAyiX/AHgBRCCsIDkgOiAB+wL7ISC3ABogHiAwIMIAygDBAMsAyADNAM4AzwDMANMA1AD/+NIA2gDbANkAMQHGAtwCrwDYAtkC2gK4AN0C2wLHAg==")
|
|
32
|
-
});
|
|
33
|
-
var cp1252High = [
|
|
34
|
-
8364,
|
|
35
|
-
-1,
|
|
36
|
-
8218,
|
|
37
|
-
402,
|
|
38
|
-
8222,
|
|
39
|
-
8230,
|
|
40
|
-
8224,
|
|
41
|
-
8225,
|
|
42
|
-
710,
|
|
43
|
-
8240,
|
|
44
|
-
352,
|
|
45
|
-
8249,
|
|
46
|
-
338,
|
|
47
|
-
-1,
|
|
48
|
-
381,
|
|
49
|
-
-1,
|
|
50
|
-
-1,
|
|
51
|
-
8216,
|
|
52
|
-
8217,
|
|
53
|
-
8220,
|
|
54
|
-
8221,
|
|
55
|
-
8226,
|
|
56
|
-
8211,
|
|
57
|
-
8212,
|
|
58
|
-
732,
|
|
59
|
-
8482,
|
|
60
|
-
353,
|
|
61
|
-
8250,
|
|
62
|
-
339,
|
|
63
|
-
-1,
|
|
64
|
-
382,
|
|
65
|
-
376
|
|
66
|
-
];
|
|
67
|
-
var PythonTextDecodeError = class extends Error {
|
|
68
|
-
};
|
|
69
|
-
function decodePythonSingleByte(bytes, codepoints, encoding) {
|
|
70
|
-
let text = "";
|
|
71
|
-
for (const byte of bytes) {
|
|
72
|
-
const code = codepoints[byte];
|
|
73
|
-
if (code < 0) throw new PythonTextDecodeError(`Invalid ${encoding} input`);
|
|
74
|
-
text += String.fromCodePoint(code);
|
|
75
|
-
}
|
|
76
|
-
return text;
|
|
77
|
-
}
|
|
78
|
-
var pythonSingleByteCodepages = Object.freeze({
|
|
79
|
-
...Object.fromEntries(Object.entries(dbfCodepages).map(([name, codepoints]) => [pythonCodecAliases[normalizeEncoding(name)], codepoints])),
|
|
80
|
-
ascii: Object.freeze(Array.from({ length: 256 }, (_, byte) => byte < 128 ? byte : -1)),
|
|
81
|
-
"iso8859-1": Object.freeze(Array.from({ length: 256 }, (_, byte) => byte)),
|
|
82
|
-
cp1252: Object.freeze(Array.from({ length: 256 }, (_, byte) => byte >= 128 && byte < 160 ? cp1252High[byte - 128] : byte))
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
export {
|
|
86
|
-
dbfCodepages,
|
|
87
|
-
PythonTextDecodeError,
|
|
88
|
-
decodePythonSingleByte,
|
|
89
|
-
pythonSingleByteCodepages
|
|
90
|
-
};
|