@batijs/cli 0.0.476 → 0.0.478
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/boilerplates/@batijs/auth0/files/$.env.js +6 -5
- package/dist/boilerplates/@batijs/auth0/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/auth0/files/$wrangler.toml.js +32 -0
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +7 -6
- package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +42 -35
- package/dist/boilerplates/@batijs/authjs/types/server/authjs-handler.d.ts +8 -3
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +10 -10
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +17 -26
- package/dist/boilerplates/@batijs/cloudflare/files/wrangler.toml +2 -3
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/$README.md.js +4 -4
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/database/d1/helpers.ts +3 -11
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/eslint/types/eslint.config.d.ts +1 -1
- package/dist/boilerplates/@batijs/express/files/$package.json.js +16 -29
- package/dist/boilerplates/@batijs/express/files/server/entry.ts +45 -0
- package/dist/boilerplates/@batijs/express/types/server/entry.d.ts +3 -0
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +18 -32
- package/dist/boilerplates/@batijs/fastify/files/server/entry.ts +52 -0
- package/dist/boilerplates/@batijs/fastify/types/server/entry.d.ts +4 -0
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +21 -32
- package/dist/boilerplates/@batijs/h3/files/server/entry.ts +45 -0
- package/dist/boilerplates/@batijs/{express/types/express-entry.d.ts → h3/types/server/entry.d.ts} +1 -1
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +23 -40
- package/dist/boilerplates/@batijs/hono/files/entry_aws_lambda.ts +2 -9
- package/dist/boilerplates/@batijs/hono/files/server/entry.ts +53 -0
- package/dist/boilerplates/@batijs/hono/types/server/entry.d.ts +4 -0
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +12 -12
- package/dist/boilerplates/@batijs/photon/files/$README.md.js +29 -0
- package/dist/boilerplates/@batijs/photon/files/$package.json.js +109 -0
- package/dist/boilerplates/@batijs/photon/files/+photon.ts +7 -0
- package/dist/boilerplates/@batijs/photon/types/+photon.d.ts +4 -0
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +3 -3
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$package.json.js +16 -15
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/react/files/pages/+config.ts +6 -1
- package/dist/boilerplates/@batijs/react/types/pages/+config.d.ts +63 -2
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +10 -10
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +9 -9
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +9 -9
- package/dist/boilerplates/@batijs/shared/files/package.json +3 -3
- package/dist/boilerplates/@batijs/shared/files/vite.config.ts +1 -20
- package/dist/boilerplates/@batijs/shared-db/files/server/db-middleware.ts +21 -15
- package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.ts +2 -2
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +8 -14
- package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +33 -34
- package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.ts +3 -4
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +11 -10
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +6 -1
- package/dist/boilerplates/@batijs/solid/types/pages/+config.d.ts +70 -2
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +4 -3
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +34 -27
- package/dist/boilerplates/@batijs/telefunc/types/server/telefunc-handler.d.ts +2 -2
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +26 -18
- package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.ts +6 -1
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +21 -14
- package/dist/boilerplates/@batijs/ts-rest/types/server/ts-rest-handler.d.ts +2 -2
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +8 -9
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +15 -14
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +6 -1
- package/dist/boilerplates/@batijs/vue/types/pages/+config.d.ts +1 -2
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +8 -8
- package/dist/boilerplates/boilerplates.json +20 -0
- package/dist/{chunk-2SZ4N3E5.js → chunk-LRTYGOU6.js} +83539 -83181
- package/dist/index.js +720 -659
- package/dist/jiti-ZW3ADF2F-7XIEJQMO.js +2982 -0
- package/dist/src-5HGZFBZ3-KQZBBJSW.js +468 -0
- package/package.json +10 -10
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +0 -19
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +0 -34
- package/dist/boilerplates/@batijs/express/files/express-entry.ts +0 -102
- package/dist/boilerplates/@batijs/fastify/files/fastify-entry.ts +0 -140
- package/dist/boilerplates/@batijs/fastify/types/fastify-entry.d.ts +0 -3
- package/dist/boilerplates/@batijs/h3/files/h3-entry.ts +0 -144
- package/dist/boilerplates/@batijs/h3/types/h3-entry.d.ts +0 -4
- package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +0 -36
- package/dist/boilerplates/@batijs/hono/files/hono-entry.node.ts +0 -31
- package/dist/boilerplates/@batijs/hono/files/hono-entry.ts +0 -74
- package/dist/boilerplates/@batijs/hono/types/hono-entry.d.ts +0 -6
- package/dist/boilerplates/@batijs/hono/types/hono-entry.node.d.ts +0 -1
- package/dist/boilerplates/@batijs/shared-server/files/server/vike-handler.ts +0 -20
- package/dist/boilerplates/@batijs/shared-server/types/server/vike-handler.d.ts +0 -2
- package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +0 -19
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +0 -27
- package/dist/jiti-W5Y5D52V-VBLACVBV.js +0 -30587
- package/dist/src-UAKFXUB2-DFO2P37K.js +0 -417
package/dist/index.js
CHANGED
|
@@ -3,13 +3,13 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
PNe,
|
|
7
|
+
csr,
|
|
8
|
+
est,
|
|
8
9
|
export_which,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./chunk-2SZ4N3E5.js";
|
|
10
|
+
l_s,
|
|
11
|
+
u_s
|
|
12
|
+
} from "./chunk-LRTYGOU6.js";
|
|
13
13
|
import "./chunk-IAWYWZSL.js";
|
|
14
14
|
import {
|
|
15
15
|
__commonJS,
|
|
@@ -17,9 +17,9 @@ import {
|
|
|
17
17
|
__toESM
|
|
18
18
|
} from "./chunk-DHZ7AZKP.js";
|
|
19
19
|
|
|
20
|
-
// ../../node_modules/.pnpm/yoctocolors-cjs@2.1.
|
|
20
|
+
// ../../node_modules/.pnpm/yoctocolors-cjs@2.1.3/node_modules/yoctocolors-cjs/index.js
|
|
21
21
|
var require_yoctocolors_cjs = __commonJS({
|
|
22
|
-
"../../node_modules/.pnpm/yoctocolors-cjs@2.1.
|
|
22
|
+
"../../node_modules/.pnpm/yoctocolors-cjs@2.1.3/node_modules/yoctocolors-cjs/index.js"(exports, module) {
|
|
23
23
|
"use strict";
|
|
24
24
|
var tty3 = __require("tty");
|
|
25
25
|
var hasColors = tty3?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
@@ -37,8 +37,10 @@ var require_yoctocolors_cjs = __commonJS({
|
|
|
37
37
|
}
|
|
38
38
|
let result = openCode;
|
|
39
39
|
let lastIndex = 0;
|
|
40
|
+
const reopenOnNestedClose = close === 22;
|
|
41
|
+
const replaceCode = (reopenOnNestedClose ? closeCode : "") + openCode;
|
|
40
42
|
while (index !== -1) {
|
|
41
|
-
result += string.slice(lastIndex, index) +
|
|
43
|
+
result += string.slice(lastIndex, index) + replaceCode;
|
|
42
44
|
lastIndex = index + closeCode.length;
|
|
43
45
|
index = string.indexOf(closeCode, lastIndex);
|
|
44
46
|
}
|
|
@@ -1598,133 +1600,6 @@ var require_lib = __commonJS({
|
|
|
1598
1600
|
}
|
|
1599
1601
|
});
|
|
1600
1602
|
|
|
1601
|
-
// ../../node_modules/.pnpm/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js
|
|
1602
|
-
var require_ansi_escapes = __commonJS({
|
|
1603
|
-
"../../node_modules/.pnpm/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js"(exports, module) {
|
|
1604
|
-
"use strict";
|
|
1605
|
-
var ansiEscapes5 = module.exports;
|
|
1606
|
-
module.exports.default = ansiEscapes5;
|
|
1607
|
-
var ESC = "\x1B[";
|
|
1608
|
-
var OSC = "\x1B]";
|
|
1609
|
-
var BEL = "\x07";
|
|
1610
|
-
var SEP = ";";
|
|
1611
|
-
var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
|
|
1612
|
-
ansiEscapes5.cursorTo = (x, y2) => {
|
|
1613
|
-
if (typeof x !== "number") {
|
|
1614
|
-
throw new TypeError("The `x` argument is required");
|
|
1615
|
-
}
|
|
1616
|
-
if (typeof y2 !== "number") {
|
|
1617
|
-
return ESC + (x + 1) + "G";
|
|
1618
|
-
}
|
|
1619
|
-
return ESC + (y2 + 1) + ";" + (x + 1) + "H";
|
|
1620
|
-
};
|
|
1621
|
-
ansiEscapes5.cursorMove = (x, y2) => {
|
|
1622
|
-
if (typeof x !== "number") {
|
|
1623
|
-
throw new TypeError("The `x` argument is required");
|
|
1624
|
-
}
|
|
1625
|
-
let ret = "";
|
|
1626
|
-
if (x < 0) {
|
|
1627
|
-
ret += ESC + -x + "D";
|
|
1628
|
-
} else if (x > 0) {
|
|
1629
|
-
ret += ESC + x + "C";
|
|
1630
|
-
}
|
|
1631
|
-
if (y2 < 0) {
|
|
1632
|
-
ret += ESC + -y2 + "A";
|
|
1633
|
-
} else if (y2 > 0) {
|
|
1634
|
-
ret += ESC + y2 + "B";
|
|
1635
|
-
}
|
|
1636
|
-
return ret;
|
|
1637
|
-
};
|
|
1638
|
-
ansiEscapes5.cursorUp = (count = 1) => ESC + count + "A";
|
|
1639
|
-
ansiEscapes5.cursorDown = (count = 1) => ESC + count + "B";
|
|
1640
|
-
ansiEscapes5.cursorForward = (count = 1) => ESC + count + "C";
|
|
1641
|
-
ansiEscapes5.cursorBackward = (count = 1) => ESC + count + "D";
|
|
1642
|
-
ansiEscapes5.cursorLeft = ESC + "G";
|
|
1643
|
-
ansiEscapes5.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
|
|
1644
|
-
ansiEscapes5.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
|
|
1645
|
-
ansiEscapes5.cursorGetPosition = ESC + "6n";
|
|
1646
|
-
ansiEscapes5.cursorNextLine = ESC + "E";
|
|
1647
|
-
ansiEscapes5.cursorPrevLine = ESC + "F";
|
|
1648
|
-
ansiEscapes5.cursorHide = ESC + "?25l";
|
|
1649
|
-
ansiEscapes5.cursorShow = ESC + "?25h";
|
|
1650
|
-
ansiEscapes5.eraseLines = (count) => {
|
|
1651
|
-
let clear = "";
|
|
1652
|
-
for (let i2 = 0; i2 < count; i2++) {
|
|
1653
|
-
clear += ansiEscapes5.eraseLine + (i2 < count - 1 ? ansiEscapes5.cursorUp() : "");
|
|
1654
|
-
}
|
|
1655
|
-
if (count) {
|
|
1656
|
-
clear += ansiEscapes5.cursorLeft;
|
|
1657
|
-
}
|
|
1658
|
-
return clear;
|
|
1659
|
-
};
|
|
1660
|
-
ansiEscapes5.eraseEndLine = ESC + "K";
|
|
1661
|
-
ansiEscapes5.eraseStartLine = ESC + "1K";
|
|
1662
|
-
ansiEscapes5.eraseLine = ESC + "2K";
|
|
1663
|
-
ansiEscapes5.eraseDown = ESC + "J";
|
|
1664
|
-
ansiEscapes5.eraseUp = ESC + "1J";
|
|
1665
|
-
ansiEscapes5.eraseScreen = ESC + "2J";
|
|
1666
|
-
ansiEscapes5.scrollUp = ESC + "S";
|
|
1667
|
-
ansiEscapes5.scrollDown = ESC + "T";
|
|
1668
|
-
ansiEscapes5.clearScreen = "\x1Bc";
|
|
1669
|
-
ansiEscapes5.clearTerminal = process.platform === "win32" ? `${ansiEscapes5.eraseScreen}${ESC}0f` : (
|
|
1670
|
-
// 1. Erases the screen (Only done in case `2` is not supported)
|
|
1671
|
-
// 2. Erases the whole screen including scrollback buffer
|
|
1672
|
-
// 3. Moves cursor to the top-left position
|
|
1673
|
-
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
|
1674
|
-
`${ansiEscapes5.eraseScreen}${ESC}3J${ESC}H`
|
|
1675
|
-
);
|
|
1676
|
-
ansiEscapes5.beep = BEL;
|
|
1677
|
-
ansiEscapes5.link = (text, url) => {
|
|
1678
|
-
return [
|
|
1679
|
-
OSC,
|
|
1680
|
-
"8",
|
|
1681
|
-
SEP,
|
|
1682
|
-
SEP,
|
|
1683
|
-
url,
|
|
1684
|
-
BEL,
|
|
1685
|
-
text,
|
|
1686
|
-
OSC,
|
|
1687
|
-
"8",
|
|
1688
|
-
SEP,
|
|
1689
|
-
SEP,
|
|
1690
|
-
BEL
|
|
1691
|
-
].join("");
|
|
1692
|
-
};
|
|
1693
|
-
ansiEscapes5.image = (buffer, options = {}) => {
|
|
1694
|
-
let ret = `${OSC}1337;File=inline=1`;
|
|
1695
|
-
if (options.width) {
|
|
1696
|
-
ret += `;width=${options.width}`;
|
|
1697
|
-
}
|
|
1698
|
-
if (options.height) {
|
|
1699
|
-
ret += `;height=${options.height}`;
|
|
1700
|
-
}
|
|
1701
|
-
if (options.preserveAspectRatio === false) {
|
|
1702
|
-
ret += ";preserveAspectRatio=0";
|
|
1703
|
-
}
|
|
1704
|
-
return ret + ":" + buffer.toString("base64") + BEL;
|
|
1705
|
-
};
|
|
1706
|
-
ansiEscapes5.iTerm = {
|
|
1707
|
-
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
|
1708
|
-
annotation: (message, options = {}) => {
|
|
1709
|
-
let ret = `${OSC}1337;`;
|
|
1710
|
-
const hasX = typeof options.x !== "undefined";
|
|
1711
|
-
const hasY = typeof options.y !== "undefined";
|
|
1712
|
-
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
|
1713
|
-
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
|
1714
|
-
}
|
|
1715
|
-
message = message.replace(/\|/g, "");
|
|
1716
|
-
ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
|
|
1717
|
-
if (options.length > 0) {
|
|
1718
|
-
ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
|
|
1719
|
-
} else {
|
|
1720
|
-
ret += message;
|
|
1721
|
-
}
|
|
1722
|
-
return ret + BEL;
|
|
1723
|
-
}
|
|
1724
|
-
};
|
|
1725
|
-
}
|
|
1726
|
-
});
|
|
1727
|
-
|
|
1728
1603
|
// ../../node_modules/.pnpm/chardet@2.1.0/node_modules/chardet/lib/fs/node.js
|
|
1729
1604
|
var require_node = __commonJS({
|
|
1730
1605
|
"../../node_modules/.pnpm/chardet@2.1.0/node_modules/chardet/lib/fs/node.js"(exports, module) {
|
|
@@ -7414,9 +7289,9 @@ var require_safer = __commonJS({
|
|
|
7414
7289
|
}
|
|
7415
7290
|
});
|
|
7416
7291
|
|
|
7417
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
7292
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/bom-handling.js
|
|
7418
7293
|
var require_bom_handling = __commonJS({
|
|
7419
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
7294
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/bom-handling.js"(exports) {
|
|
7420
7295
|
"use strict";
|
|
7421
7296
|
var BOMChar = "\uFEFF";
|
|
7422
7297
|
exports.PrependBOM = PrependBOMWrapper;
|
|
@@ -7442,12 +7317,14 @@ var require_bom_handling = __commonJS({
|
|
|
7442
7317
|
}
|
|
7443
7318
|
StripBOMWrapper.prototype.write = function(buf) {
|
|
7444
7319
|
var res = this.decoder.write(buf);
|
|
7445
|
-
if (this.pass || !res)
|
|
7320
|
+
if (this.pass || !res) {
|
|
7446
7321
|
return res;
|
|
7322
|
+
}
|
|
7447
7323
|
if (res[0] === BOMChar) {
|
|
7448
7324
|
res = res.slice(1);
|
|
7449
|
-
if (typeof this.options.stripBOM === "function")
|
|
7325
|
+
if (typeof this.options.stripBOM === "function") {
|
|
7450
7326
|
this.options.stripBOM();
|
|
7327
|
+
}
|
|
7451
7328
|
}
|
|
7452
7329
|
this.pass = true;
|
|
7453
7330
|
return res;
|
|
@@ -7458,9 +7335,25 @@ var require_bom_handling = __commonJS({
|
|
|
7458
7335
|
}
|
|
7459
7336
|
});
|
|
7460
7337
|
|
|
7461
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
7338
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/helpers/merge-exports.js
|
|
7339
|
+
var require_merge_exports = __commonJS({
|
|
7340
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/helpers/merge-exports.js"(exports, module) {
|
|
7341
|
+
"use strict";
|
|
7342
|
+
var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
|
|
7343
|
+
function mergeModules(target, module2) {
|
|
7344
|
+
for (var key in module2) {
|
|
7345
|
+
if (hasOwn(module2, key)) {
|
|
7346
|
+
target[key] = module2[key];
|
|
7347
|
+
}
|
|
7348
|
+
}
|
|
7349
|
+
}
|
|
7350
|
+
module.exports = mergeModules;
|
|
7351
|
+
}
|
|
7352
|
+
});
|
|
7353
|
+
|
|
7354
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/internal.js
|
|
7462
7355
|
var require_internal = __commonJS({
|
|
7463
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
7356
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/internal.js"(exports, module) {
|
|
7464
7357
|
"use strict";
|
|
7465
7358
|
var Buffer2 = require_safer().Buffer;
|
|
7466
7359
|
module.exports = {
|
|
@@ -7479,9 +7372,11 @@ var require_internal = __commonJS({
|
|
|
7479
7372
|
function InternalCodec(codecOptions, iconv2) {
|
|
7480
7373
|
this.enc = codecOptions.encodingName;
|
|
7481
7374
|
this.bomAware = codecOptions.bomAware;
|
|
7482
|
-
if (this.enc === "base64")
|
|
7375
|
+
if (this.enc === "base64") {
|
|
7483
7376
|
this.encoder = InternalEncoderBase64;
|
|
7484
|
-
else if (this.enc === "
|
|
7377
|
+
} else if (this.enc === "utf8") {
|
|
7378
|
+
this.encoder = InternalEncoderUtf8;
|
|
7379
|
+
} else if (this.enc === "cesu8") {
|
|
7485
7380
|
this.enc = "utf8";
|
|
7486
7381
|
this.encoder = InternalEncoderCesu8;
|
|
7487
7382
|
if (Buffer2.from("eda0bdedb2a9", "hex").toString() !== "\u{1F4A9}") {
|
|
@@ -7493,9 +7388,6 @@ var require_internal = __commonJS({
|
|
|
7493
7388
|
InternalCodec.prototype.encoder = InternalEncoder;
|
|
7494
7389
|
InternalCodec.prototype.decoder = InternalDecoder;
|
|
7495
7390
|
var StringDecoder = __require("string_decoder").StringDecoder;
|
|
7496
|
-
if (!StringDecoder.prototype.end)
|
|
7497
|
-
StringDecoder.prototype.end = function() {
|
|
7498
|
-
};
|
|
7499
7391
|
function InternalDecoder(options, codec) {
|
|
7500
7392
|
this.decoder = new StringDecoder(codec.enc);
|
|
7501
7393
|
}
|
|
@@ -7532,12 +7424,13 @@ var require_internal = __commonJS({
|
|
|
7532
7424
|
function InternalEncoderCesu8(options, codec) {
|
|
7533
7425
|
}
|
|
7534
7426
|
InternalEncoderCesu8.prototype.write = function(str) {
|
|
7535
|
-
var buf = Buffer2.alloc(str.length * 3)
|
|
7427
|
+
var buf = Buffer2.alloc(str.length * 3);
|
|
7428
|
+
var bufIdx = 0;
|
|
7536
7429
|
for (var i2 = 0; i2 < str.length; i2++) {
|
|
7537
7430
|
var charCode = str.charCodeAt(i2);
|
|
7538
|
-
if (charCode < 128)
|
|
7431
|
+
if (charCode < 128) {
|
|
7539
7432
|
buf[bufIdx++] = charCode;
|
|
7540
|
-
else if (charCode < 2048) {
|
|
7433
|
+
} else if (charCode < 2048) {
|
|
7541
7434
|
buf[bufIdx++] = 192 + (charCode >>> 6);
|
|
7542
7435
|
buf[bufIdx++] = 128 + (charCode & 63);
|
|
7543
7436
|
} else {
|
|
@@ -7557,7 +7450,10 @@ var require_internal = __commonJS({
|
|
|
7557
7450
|
this.defaultCharUnicode = codec.defaultCharUnicode;
|
|
7558
7451
|
}
|
|
7559
7452
|
InternalDecoderCesu8.prototype.write = function(buf) {
|
|
7560
|
-
var acc = this.acc
|
|
7453
|
+
var acc = this.acc;
|
|
7454
|
+
var contBytes = this.contBytes;
|
|
7455
|
+
var accBytes = this.accBytes;
|
|
7456
|
+
var res = "";
|
|
7561
7457
|
for (var i2 = 0; i2 < buf.length; i2++) {
|
|
7562
7458
|
var curByte = buf[i2];
|
|
7563
7459
|
if ((curByte & 192) !== 128) {
|
|
@@ -7584,12 +7480,13 @@ var require_internal = __commonJS({
|
|
|
7584
7480
|
contBytes--;
|
|
7585
7481
|
accBytes++;
|
|
7586
7482
|
if (contBytes === 0) {
|
|
7587
|
-
if (accBytes === 2 && acc < 128 && acc > 0)
|
|
7483
|
+
if (accBytes === 2 && acc < 128 && acc > 0) {
|
|
7588
7484
|
res += this.defaultCharUnicode;
|
|
7589
|
-
else if (accBytes === 3 && acc < 2048)
|
|
7485
|
+
} else if (accBytes === 3 && acc < 2048) {
|
|
7590
7486
|
res += this.defaultCharUnicode;
|
|
7591
|
-
else
|
|
7487
|
+
} else {
|
|
7592
7488
|
res += String.fromCharCode(acc);
|
|
7489
|
+
}
|
|
7593
7490
|
}
|
|
7594
7491
|
} else {
|
|
7595
7492
|
res += this.defaultCharUnicode;
|
|
@@ -7603,16 +7500,41 @@ var require_internal = __commonJS({
|
|
|
7603
7500
|
};
|
|
7604
7501
|
InternalDecoderCesu8.prototype.end = function() {
|
|
7605
7502
|
var res = 0;
|
|
7606
|
-
if (this.contBytes > 0)
|
|
7503
|
+
if (this.contBytes > 0) {
|
|
7607
7504
|
res += this.defaultCharUnicode;
|
|
7505
|
+
}
|
|
7608
7506
|
return res;
|
|
7609
7507
|
};
|
|
7508
|
+
function InternalEncoderUtf8(options, codec) {
|
|
7509
|
+
this.highSurrogate = "";
|
|
7510
|
+
}
|
|
7511
|
+
InternalEncoderUtf8.prototype.write = function(str) {
|
|
7512
|
+
if (this.highSurrogate) {
|
|
7513
|
+
str = this.highSurrogate + str;
|
|
7514
|
+
this.highSurrogate = "";
|
|
7515
|
+
}
|
|
7516
|
+
if (str.length > 0) {
|
|
7517
|
+
var charCode = str.charCodeAt(str.length - 1);
|
|
7518
|
+
if (charCode >= 55296 && charCode < 56320) {
|
|
7519
|
+
this.highSurrogate = str[str.length - 1];
|
|
7520
|
+
str = str.slice(0, str.length - 1);
|
|
7521
|
+
}
|
|
7522
|
+
}
|
|
7523
|
+
return Buffer2.from(str, this.enc);
|
|
7524
|
+
};
|
|
7525
|
+
InternalEncoderUtf8.prototype.end = function() {
|
|
7526
|
+
if (this.highSurrogate) {
|
|
7527
|
+
var str = this.highSurrogate;
|
|
7528
|
+
this.highSurrogate = "";
|
|
7529
|
+
return Buffer2.from(str, this.enc);
|
|
7530
|
+
}
|
|
7531
|
+
};
|
|
7610
7532
|
}
|
|
7611
7533
|
});
|
|
7612
7534
|
|
|
7613
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
7535
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf32.js
|
|
7614
7536
|
var require_utf32 = __commonJS({
|
|
7615
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
7537
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf32.js"(exports) {
|
|
7616
7538
|
"use strict";
|
|
7617
7539
|
var Buffer2 = require_safer().Buffer;
|
|
7618
7540
|
exports._utf32 = Utf32Codec;
|
|
@@ -7638,8 +7560,8 @@ var require_utf32 = __commonJS({
|
|
|
7638
7560
|
var offset = 0;
|
|
7639
7561
|
for (var i2 = 0; i2 < src.length; i2 += 2) {
|
|
7640
7562
|
var code = src.readUInt16LE(i2);
|
|
7641
|
-
var isHighSurrogate =
|
|
7642
|
-
var isLowSurrogate =
|
|
7563
|
+
var isHighSurrogate = code >= 55296 && code < 56320;
|
|
7564
|
+
var isLowSurrogate = code >= 56320 && code < 57344;
|
|
7643
7565
|
if (this.highSurrogate) {
|
|
7644
7566
|
if (isHighSurrogate || !isLowSurrogate) {
|
|
7645
7567
|
write32.call(dst, this.highSurrogate, offset);
|
|
@@ -7652,26 +7574,29 @@ var require_utf32 = __commonJS({
|
|
|
7652
7574
|
continue;
|
|
7653
7575
|
}
|
|
7654
7576
|
}
|
|
7655
|
-
if (isHighSurrogate)
|
|
7577
|
+
if (isHighSurrogate) {
|
|
7656
7578
|
this.highSurrogate = code;
|
|
7657
|
-
else {
|
|
7579
|
+
} else {
|
|
7658
7580
|
write32.call(dst, code, offset);
|
|
7659
7581
|
offset += 4;
|
|
7660
7582
|
this.highSurrogate = 0;
|
|
7661
7583
|
}
|
|
7662
7584
|
}
|
|
7663
|
-
if (offset < dst.length)
|
|
7585
|
+
if (offset < dst.length) {
|
|
7664
7586
|
dst = dst.slice(0, offset);
|
|
7587
|
+
}
|
|
7665
7588
|
return dst;
|
|
7666
7589
|
};
|
|
7667
7590
|
Utf32Encoder.prototype.end = function() {
|
|
7668
|
-
if (!this.highSurrogate)
|
|
7591
|
+
if (!this.highSurrogate) {
|
|
7669
7592
|
return;
|
|
7593
|
+
}
|
|
7670
7594
|
var buf = Buffer2.alloc(4);
|
|
7671
|
-
if (this.isLE)
|
|
7595
|
+
if (this.isLE) {
|
|
7672
7596
|
buf.writeUInt32LE(this.highSurrogate, 0);
|
|
7673
|
-
else
|
|
7597
|
+
} else {
|
|
7674
7598
|
buf.writeUInt32BE(this.highSurrogate, 0);
|
|
7599
|
+
}
|
|
7675
7600
|
this.highSurrogate = 0;
|
|
7676
7601
|
return buf;
|
|
7677
7602
|
};
|
|
@@ -7681,8 +7606,9 @@ var require_utf32 = __commonJS({
|
|
|
7681
7606
|
this.overflow = [];
|
|
7682
7607
|
}
|
|
7683
7608
|
Utf32Decoder.prototype.write = function(src) {
|
|
7684
|
-
if (src.length === 0)
|
|
7609
|
+
if (src.length === 0) {
|
|
7685
7610
|
return "";
|
|
7611
|
+
}
|
|
7686
7612
|
var i2 = 0;
|
|
7687
7613
|
var codepoint = 0;
|
|
7688
7614
|
var dst = Buffer2.alloc(src.length + 4);
|
|
@@ -7691,8 +7617,9 @@ var require_utf32 = __commonJS({
|
|
|
7691
7617
|
var overflow = this.overflow;
|
|
7692
7618
|
var badChar = this.badChar;
|
|
7693
7619
|
if (overflow.length > 0) {
|
|
7694
|
-
for (; i2 < src.length && overflow.length < 4; i2++)
|
|
7620
|
+
for (; i2 < src.length && overflow.length < 4; i2++) {
|
|
7695
7621
|
overflow.push(src[i2]);
|
|
7622
|
+
}
|
|
7696
7623
|
if (overflow.length === 4) {
|
|
7697
7624
|
if (isLE) {
|
|
7698
7625
|
codepoint = overflow[i2] | overflow[i2 + 1] << 8 | overflow[i2 + 2] << 16 | overflow[i2 + 3] << 24;
|
|
@@ -7743,8 +7670,9 @@ var require_utf32 = __commonJS({
|
|
|
7743
7670
|
Utf32AutoCodec.prototype.decoder = Utf32AutoDecoder;
|
|
7744
7671
|
function Utf32AutoEncoder(options, codec) {
|
|
7745
7672
|
options = options || {};
|
|
7746
|
-
if (options.addBOM === void 0)
|
|
7673
|
+
if (options.addBOM === void 0) {
|
|
7747
7674
|
options.addBOM = true;
|
|
7675
|
+
}
|
|
7748
7676
|
this.encoder = codec.iconv.getEncoder(options.defaultEncoding || "utf-32le", options);
|
|
7749
7677
|
}
|
|
7750
7678
|
Utf32AutoEncoder.prototype.write = function(str) {
|
|
@@ -7764,13 +7692,15 @@ var require_utf32 = __commonJS({
|
|
|
7764
7692
|
if (!this.decoder) {
|
|
7765
7693
|
this.initialBufs.push(buf);
|
|
7766
7694
|
this.initialBufsLen += buf.length;
|
|
7767
|
-
if (this.initialBufsLen < 32)
|
|
7695
|
+
if (this.initialBufsLen < 32) {
|
|
7768
7696
|
return "";
|
|
7697
|
+
}
|
|
7769
7698
|
var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
|
|
7770
7699
|
this.decoder = this.iconv.getDecoder(encoding, this.options);
|
|
7771
7700
|
var resStr = "";
|
|
7772
|
-
for (var i2 = 0; i2 < this.initialBufs.length; i2++)
|
|
7701
|
+
for (var i2 = 0; i2 < this.initialBufs.length; i2++) {
|
|
7773
7702
|
resStr += this.decoder.write(this.initialBufs[i2]);
|
|
7703
|
+
}
|
|
7774
7704
|
this.initialBufs.length = this.initialBufsLen = 0;
|
|
7775
7705
|
return resStr;
|
|
7776
7706
|
}
|
|
@@ -7781,11 +7711,13 @@ var require_utf32 = __commonJS({
|
|
|
7781
7711
|
var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
|
|
7782
7712
|
this.decoder = this.iconv.getDecoder(encoding, this.options);
|
|
7783
7713
|
var resStr = "";
|
|
7784
|
-
for (var i2 = 0; i2 < this.initialBufs.length; i2++)
|
|
7714
|
+
for (var i2 = 0; i2 < this.initialBufs.length; i2++) {
|
|
7785
7715
|
resStr += this.decoder.write(this.initialBufs[i2]);
|
|
7716
|
+
}
|
|
7786
7717
|
var trail = this.decoder.end();
|
|
7787
|
-
if (trail)
|
|
7718
|
+
if (trail) {
|
|
7788
7719
|
resStr += trail;
|
|
7720
|
+
}
|
|
7789
7721
|
this.initialBufs.length = this.initialBufsLen = 0;
|
|
7790
7722
|
return resStr;
|
|
7791
7723
|
}
|
|
@@ -7794,9 +7726,11 @@ var require_utf32 = __commonJS({
|
|
|
7794
7726
|
function detectEncoding(bufs, defaultEncoding) {
|
|
7795
7727
|
var b2 = [];
|
|
7796
7728
|
var charsProcessed = 0;
|
|
7797
|
-
var invalidLE = 0
|
|
7798
|
-
var
|
|
7799
|
-
|
|
7729
|
+
var invalidLE = 0;
|
|
7730
|
+
var invalidBE = 0;
|
|
7731
|
+
var bmpCharsLE = 0;
|
|
7732
|
+
var bmpCharsBE = 0;
|
|
7733
|
+
outerLoop:
|
|
7800
7734
|
for (var i2 = 0; i2 < bufs.length; i2++) {
|
|
7801
7735
|
var buf = bufs[i2];
|
|
7802
7736
|
for (var j = 0; j < buf.length; j++) {
|
|
@@ -7817,7 +7751,7 @@ var require_utf32 = __commonJS({
|
|
|
7817
7751
|
b2.length = 0;
|
|
7818
7752
|
charsProcessed++;
|
|
7819
7753
|
if (charsProcessed >= 100) {
|
|
7820
|
-
break
|
|
7754
|
+
break outerLoop;
|
|
7821
7755
|
}
|
|
7822
7756
|
}
|
|
7823
7757
|
}
|
|
@@ -7829,9 +7763,9 @@ var require_utf32 = __commonJS({
|
|
|
7829
7763
|
}
|
|
7830
7764
|
});
|
|
7831
7765
|
|
|
7832
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
7766
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf16.js
|
|
7833
7767
|
var require_utf16 = __commonJS({
|
|
7834
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
7768
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf16.js"(exports) {
|
|
7835
7769
|
"use strict";
|
|
7836
7770
|
var Buffer2 = require_safer().Buffer;
|
|
7837
7771
|
exports.utf16be = Utf16BECodec;
|
|
@@ -7857,9 +7791,12 @@ var require_utf16 = __commonJS({
|
|
|
7857
7791
|
this.overflowByte = -1;
|
|
7858
7792
|
}
|
|
7859
7793
|
Utf16BEDecoder.prototype.write = function(buf) {
|
|
7860
|
-
if (buf.length == 0)
|
|
7794
|
+
if (buf.length == 0) {
|
|
7861
7795
|
return "";
|
|
7862
|
-
|
|
7796
|
+
}
|
|
7797
|
+
var buf2 = Buffer2.alloc(buf.length + 1);
|
|
7798
|
+
var i2 = 0;
|
|
7799
|
+
var j = 0;
|
|
7863
7800
|
if (this.overflowByte !== -1) {
|
|
7864
7801
|
buf2[0] = buf[0];
|
|
7865
7802
|
buf2[1] = this.overflowByte;
|
|
@@ -7884,8 +7821,9 @@ var require_utf16 = __commonJS({
|
|
|
7884
7821
|
Utf16Codec.prototype.decoder = Utf16Decoder;
|
|
7885
7822
|
function Utf16Encoder(options, codec) {
|
|
7886
7823
|
options = options || {};
|
|
7887
|
-
if (options.addBOM === void 0)
|
|
7824
|
+
if (options.addBOM === void 0) {
|
|
7888
7825
|
options.addBOM = true;
|
|
7826
|
+
}
|
|
7889
7827
|
this.encoder = codec.iconv.getEncoder("utf-16le", options);
|
|
7890
7828
|
}
|
|
7891
7829
|
Utf16Encoder.prototype.write = function(str) {
|
|
@@ -7905,13 +7843,15 @@ var require_utf16 = __commonJS({
|
|
|
7905
7843
|
if (!this.decoder) {
|
|
7906
7844
|
this.initialBufs.push(buf);
|
|
7907
7845
|
this.initialBufsLen += buf.length;
|
|
7908
|
-
if (this.initialBufsLen < 16)
|
|
7846
|
+
if (this.initialBufsLen < 16) {
|
|
7909
7847
|
return "";
|
|
7848
|
+
}
|
|
7910
7849
|
var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
|
|
7911
7850
|
this.decoder = this.iconv.getDecoder(encoding, this.options);
|
|
7912
7851
|
var resStr = "";
|
|
7913
|
-
for (var i2 = 0; i2 < this.initialBufs.length; i2++)
|
|
7852
|
+
for (var i2 = 0; i2 < this.initialBufs.length; i2++) {
|
|
7914
7853
|
resStr += this.decoder.write(this.initialBufs[i2]);
|
|
7854
|
+
}
|
|
7915
7855
|
this.initialBufs.length = this.initialBufsLen = 0;
|
|
7916
7856
|
return resStr;
|
|
7917
7857
|
}
|
|
@@ -7922,11 +7862,13 @@ var require_utf16 = __commonJS({
|
|
|
7922
7862
|
var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
|
|
7923
7863
|
this.decoder = this.iconv.getDecoder(encoding, this.options);
|
|
7924
7864
|
var resStr = "";
|
|
7925
|
-
for (var i2 = 0; i2 < this.initialBufs.length; i2++)
|
|
7865
|
+
for (var i2 = 0; i2 < this.initialBufs.length; i2++) {
|
|
7926
7866
|
resStr += this.decoder.write(this.initialBufs[i2]);
|
|
7867
|
+
}
|
|
7927
7868
|
var trail = this.decoder.end();
|
|
7928
|
-
if (trail)
|
|
7869
|
+
if (trail) {
|
|
7929
7870
|
resStr += trail;
|
|
7871
|
+
}
|
|
7930
7872
|
this.initialBufs.length = this.initialBufsLen = 0;
|
|
7931
7873
|
return resStr;
|
|
7932
7874
|
}
|
|
@@ -7935,8 +7877,9 @@ var require_utf16 = __commonJS({
|
|
|
7935
7877
|
function detectEncoding(bufs, defaultEncoding) {
|
|
7936
7878
|
var b2 = [];
|
|
7937
7879
|
var charsProcessed = 0;
|
|
7938
|
-
var asciiCharsLE = 0
|
|
7939
|
-
|
|
7880
|
+
var asciiCharsLE = 0;
|
|
7881
|
+
var asciiCharsBE = 0;
|
|
7882
|
+
outerLoop:
|
|
7940
7883
|
for (var i2 = 0; i2 < bufs.length; i2++) {
|
|
7941
7884
|
var buf = bufs[i2];
|
|
7942
7885
|
for (var j = 0; j < buf.length; j++) {
|
|
@@ -7951,7 +7894,7 @@ var require_utf16 = __commonJS({
|
|
|
7951
7894
|
b2.length = 0;
|
|
7952
7895
|
charsProcessed++;
|
|
7953
7896
|
if (charsProcessed >= 100) {
|
|
7954
|
-
break
|
|
7897
|
+
break outerLoop;
|
|
7955
7898
|
}
|
|
7956
7899
|
}
|
|
7957
7900
|
}
|
|
@@ -7963,9 +7906,9 @@ var require_utf16 = __commonJS({
|
|
|
7963
7906
|
}
|
|
7964
7907
|
});
|
|
7965
7908
|
|
|
7966
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
7909
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf7.js
|
|
7967
7910
|
var require_utf7 = __commonJS({
|
|
7968
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
7911
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf7.js"(exports) {
|
|
7969
7912
|
"use strict";
|
|
7970
7913
|
var Buffer2 = require_safer().Buffer;
|
|
7971
7914
|
exports.utf7 = Utf7Codec;
|
|
@@ -7994,14 +7937,18 @@ var require_utf7 = __commonJS({
|
|
|
7994
7937
|
}
|
|
7995
7938
|
var base64Regex = /[A-Za-z0-9\/+]/;
|
|
7996
7939
|
var base64Chars = [];
|
|
7997
|
-
for (i2 = 0; i2 < 256; i2++)
|
|
7940
|
+
for (i2 = 0; i2 < 256; i2++) {
|
|
7998
7941
|
base64Chars[i2] = base64Regex.test(String.fromCharCode(i2));
|
|
7942
|
+
}
|
|
7999
7943
|
var i2;
|
|
8000
7944
|
var plusChar = "+".charCodeAt(0);
|
|
8001
7945
|
var minusChar = "-".charCodeAt(0);
|
|
8002
7946
|
var andChar = "&".charCodeAt(0);
|
|
8003
7947
|
Utf7Decoder.prototype.write = function(buf) {
|
|
8004
|
-
var res = ""
|
|
7948
|
+
var res = "";
|
|
7949
|
+
var lastI = 0;
|
|
7950
|
+
var inBase64 = this.inBase64;
|
|
7951
|
+
var base64Accum = this.base64Accum;
|
|
8005
7952
|
for (var i3 = 0; i3 < buf.length; i3++) {
|
|
8006
7953
|
if (!inBase64) {
|
|
8007
7954
|
if (buf[i3] == plusChar) {
|
|
@@ -8017,8 +7964,9 @@ var require_utf7 = __commonJS({
|
|
|
8017
7964
|
var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i3), "ascii");
|
|
8018
7965
|
res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be");
|
|
8019
7966
|
}
|
|
8020
|
-
if (buf[i3] != minusChar)
|
|
7967
|
+
if (buf[i3] != minusChar) {
|
|
8021
7968
|
i3--;
|
|
7969
|
+
}
|
|
8022
7970
|
lastI = i3 + 1;
|
|
8023
7971
|
inBase64 = false;
|
|
8024
7972
|
base64Accum = "";
|
|
@@ -8040,8 +7988,9 @@ var require_utf7 = __commonJS({
|
|
|
8040
7988
|
};
|
|
8041
7989
|
Utf7Decoder.prototype.end = function() {
|
|
8042
7990
|
var res = "";
|
|
8043
|
-
if (this.inBase64 && this.base64Accum.length > 0)
|
|
7991
|
+
if (this.inBase64 && this.base64Accum.length > 0) {
|
|
8044
7992
|
res = this.iconv.decode(Buffer2.from(this.base64Accum, "base64"), "utf16-be");
|
|
7993
|
+
}
|
|
8045
7994
|
this.inBase64 = false;
|
|
8046
7995
|
this.base64Accum = "";
|
|
8047
7996
|
return res;
|
|
@@ -8060,10 +8009,14 @@ var require_utf7 = __commonJS({
|
|
|
8060
8009
|
this.base64AccumIdx = 0;
|
|
8061
8010
|
}
|
|
8062
8011
|
Utf7IMAPEncoder.prototype.write = function(str) {
|
|
8063
|
-
var inBase64 = this.inBase64
|
|
8012
|
+
var inBase64 = this.inBase64;
|
|
8013
|
+
var base64Accum = this.base64Accum;
|
|
8014
|
+
var base64AccumIdx = this.base64AccumIdx;
|
|
8015
|
+
var buf = Buffer2.alloc(str.length * 5 + 10);
|
|
8016
|
+
var bufIdx = 0;
|
|
8064
8017
|
for (var i3 = 0; i3 < str.length; i3++) {
|
|
8065
8018
|
var uChar = str.charCodeAt(i3);
|
|
8066
|
-
if (
|
|
8019
|
+
if (uChar >= 32 && uChar <= 126) {
|
|
8067
8020
|
if (inBase64) {
|
|
8068
8021
|
if (base64AccumIdx > 0) {
|
|
8069
8022
|
bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
|
|
@@ -8074,8 +8027,9 @@ var require_utf7 = __commonJS({
|
|
|
8074
8027
|
}
|
|
8075
8028
|
if (!inBase64) {
|
|
8076
8029
|
buf[bufIdx++] = uChar;
|
|
8077
|
-
if (uChar === andChar)
|
|
8030
|
+
if (uChar === andChar) {
|
|
8078
8031
|
buf[bufIdx++] = minusChar;
|
|
8032
|
+
}
|
|
8079
8033
|
}
|
|
8080
8034
|
} else {
|
|
8081
8035
|
if (!inBase64) {
|
|
@@ -8097,7 +8051,8 @@ var require_utf7 = __commonJS({
|
|
|
8097
8051
|
return buf.slice(0, bufIdx);
|
|
8098
8052
|
};
|
|
8099
8053
|
Utf7IMAPEncoder.prototype.end = function() {
|
|
8100
|
-
var buf = Buffer2.alloc(10)
|
|
8054
|
+
var buf = Buffer2.alloc(10);
|
|
8055
|
+
var bufIdx = 0;
|
|
8101
8056
|
if (this.inBase64) {
|
|
8102
8057
|
if (this.base64AccumIdx > 0) {
|
|
8103
8058
|
bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
|
|
@@ -8116,7 +8071,10 @@ var require_utf7 = __commonJS({
|
|
|
8116
8071
|
var base64IMAPChars = base64Chars.slice();
|
|
8117
8072
|
base64IMAPChars[",".charCodeAt(0)] = true;
|
|
8118
8073
|
Utf7IMAPDecoder.prototype.write = function(buf) {
|
|
8119
|
-
var res = ""
|
|
8074
|
+
var res = "";
|
|
8075
|
+
var lastI = 0;
|
|
8076
|
+
var inBase64 = this.inBase64;
|
|
8077
|
+
var base64Accum = this.base64Accum;
|
|
8120
8078
|
for (var i3 = 0; i3 < buf.length; i3++) {
|
|
8121
8079
|
if (!inBase64) {
|
|
8122
8080
|
if (buf[i3] == andChar) {
|
|
@@ -8132,8 +8090,9 @@ var require_utf7 = __commonJS({
|
|
|
8132
8090
|
var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i3), "ascii").replace(/,/g, "/");
|
|
8133
8091
|
res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be");
|
|
8134
8092
|
}
|
|
8135
|
-
if (buf[i3] != minusChar)
|
|
8093
|
+
if (buf[i3] != minusChar) {
|
|
8136
8094
|
i3--;
|
|
8095
|
+
}
|
|
8137
8096
|
lastI = i3 + 1;
|
|
8138
8097
|
inBase64 = false;
|
|
8139
8098
|
base64Accum = "";
|
|
@@ -8155,8 +8114,9 @@ var require_utf7 = __commonJS({
|
|
|
8155
8114
|
};
|
|
8156
8115
|
Utf7IMAPDecoder.prototype.end = function() {
|
|
8157
8116
|
var res = "";
|
|
8158
|
-
if (this.inBase64 && this.base64Accum.length > 0)
|
|
8117
|
+
if (this.inBase64 && this.base64Accum.length > 0) {
|
|
8159
8118
|
res = this.iconv.decode(Buffer2.from(this.base64Accum, "base64"), "utf16-be");
|
|
8119
|
+
}
|
|
8160
8120
|
this.inBase64 = false;
|
|
8161
8121
|
this.base64Accum = "";
|
|
8162
8122
|
return res;
|
|
@@ -8164,27 +8124,31 @@ var require_utf7 = __commonJS({
|
|
|
8164
8124
|
}
|
|
8165
8125
|
});
|
|
8166
8126
|
|
|
8167
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
8127
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/sbcs-codec.js
|
|
8168
8128
|
var require_sbcs_codec = __commonJS({
|
|
8169
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
8129
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/sbcs-codec.js"(exports) {
|
|
8170
8130
|
"use strict";
|
|
8171
8131
|
var Buffer2 = require_safer().Buffer;
|
|
8172
8132
|
exports._sbcs = SBCSCodec;
|
|
8173
8133
|
function SBCSCodec(codecOptions, iconv2) {
|
|
8174
|
-
if (!codecOptions)
|
|
8134
|
+
if (!codecOptions) {
|
|
8175
8135
|
throw new Error("SBCS codec is called without the data.");
|
|
8176
|
-
|
|
8136
|
+
}
|
|
8137
|
+
if (!codecOptions.chars || codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256) {
|
|
8177
8138
|
throw new Error("Encoding '" + codecOptions.type + "' has incorrect 'chars' (must be of len 128 or 256)");
|
|
8139
|
+
}
|
|
8178
8140
|
if (codecOptions.chars.length === 128) {
|
|
8179
8141
|
var asciiString = "";
|
|
8180
|
-
for (var i2 = 0; i2 < 128; i2++)
|
|
8142
|
+
for (var i2 = 0; i2 < 128; i2++) {
|
|
8181
8143
|
asciiString += String.fromCharCode(i2);
|
|
8144
|
+
}
|
|
8182
8145
|
codecOptions.chars = asciiString + codecOptions.chars;
|
|
8183
8146
|
}
|
|
8184
8147
|
this.decodeBuf = Buffer2.from(codecOptions.chars, "ucs2");
|
|
8185
8148
|
var encodeBuf = Buffer2.alloc(65536, iconv2.defaultCharSingleByte.charCodeAt(0));
|
|
8186
|
-
for (var i2 = 0; i2 < codecOptions.chars.length; i2++)
|
|
8149
|
+
for (var i2 = 0; i2 < codecOptions.chars.length; i2++) {
|
|
8187
8150
|
encodeBuf[codecOptions.chars.charCodeAt(i2)] = i2;
|
|
8151
|
+
}
|
|
8188
8152
|
this.encodeBuf = encodeBuf;
|
|
8189
8153
|
}
|
|
8190
8154
|
SBCSCodec.prototype.encoder = SBCSEncoder;
|
|
@@ -8194,8 +8158,9 @@ var require_sbcs_codec = __commonJS({
|
|
|
8194
8158
|
}
|
|
8195
8159
|
SBCSEncoder.prototype.write = function(str) {
|
|
8196
8160
|
var buf = Buffer2.alloc(str.length);
|
|
8197
|
-
for (var i2 = 0; i2 < str.length; i2++)
|
|
8161
|
+
for (var i2 = 0; i2 < str.length; i2++) {
|
|
8198
8162
|
buf[i2] = this.encodeBuf[str.charCodeAt(i2)];
|
|
8163
|
+
}
|
|
8199
8164
|
return buf;
|
|
8200
8165
|
};
|
|
8201
8166
|
SBCSEncoder.prototype.end = function() {
|
|
@@ -8206,7 +8171,8 @@ var require_sbcs_codec = __commonJS({
|
|
|
8206
8171
|
SBCSDecoder.prototype.write = function(buf) {
|
|
8207
8172
|
var decodeBuf = this.decodeBuf;
|
|
8208
8173
|
var newBuf = Buffer2.alloc(buf.length * 2);
|
|
8209
|
-
var idx1 = 0
|
|
8174
|
+
var idx1 = 0;
|
|
8175
|
+
var idx2 = 0;
|
|
8210
8176
|
for (var i2 = 0; i2 < buf.length; i2++) {
|
|
8211
8177
|
idx1 = buf[i2] * 2;
|
|
8212
8178
|
idx2 = i2 * 2;
|
|
@@ -8220,162 +8186,162 @@ var require_sbcs_codec = __commonJS({
|
|
|
8220
8186
|
}
|
|
8221
8187
|
});
|
|
8222
8188
|
|
|
8223
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
8189
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/sbcs-data.js
|
|
8224
8190
|
var require_sbcs_data = __commonJS({
|
|
8225
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
8191
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/sbcs-data.js"(exports, module) {
|
|
8226
8192
|
"use strict";
|
|
8227
8193
|
module.exports = {
|
|
8228
8194
|
// Not supported by iconv, not sure why.
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8195
|
+
10029: "maccenteuro",
|
|
8196
|
+
maccenteuro: {
|
|
8197
|
+
type: "_sbcs",
|
|
8198
|
+
chars: "\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7"
|
|
8233
8199
|
},
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
8200
|
+
808: "cp808",
|
|
8201
|
+
ibm808: "cp808",
|
|
8202
|
+
cp808: {
|
|
8203
|
+
type: "_sbcs",
|
|
8204
|
+
chars: "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\u20AC\u25A0\xA0"
|
|
8239
8205
|
},
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8206
|
+
mik: {
|
|
8207
|
+
type: "_sbcs",
|
|
8208
|
+
chars: "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2514\u2534\u252C\u251C\u2500\u253C\u2563\u2551\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xA7\u2557\u255D\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
|
|
8243
8209
|
},
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8210
|
+
cp720: {
|
|
8211
|
+
type: "_sbcs",
|
|
8212
|
+
chars: "\x80\x81\xE9\xE2\x84\xE0\x86\xE7\xEA\xEB\xE8\xEF\xEE\x8D\x8E\x8F\x90\u0651\u0652\xF4\xA4\u0640\xFB\xF9\u0621\u0622\u0623\u0624\xA3\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0636\u0637\u0638\u0639\u063A\u0641\xB5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u2261\u064B\u064C\u064D\u064E\u064F\u0650\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
|
|
8247
8213
|
},
|
|
8248
8214
|
// Aliases of generated encodings.
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8215
|
+
ascii8bit: "ascii",
|
|
8216
|
+
usascii: "ascii",
|
|
8217
|
+
ansix34: "ascii",
|
|
8218
|
+
ansix341968: "ascii",
|
|
8219
|
+
ansix341986: "ascii",
|
|
8220
|
+
csascii: "ascii",
|
|
8221
|
+
cp367: "ascii",
|
|
8222
|
+
ibm367: "ascii",
|
|
8223
|
+
isoir6: "ascii",
|
|
8224
|
+
iso646us: "ascii",
|
|
8225
|
+
iso646irv: "ascii",
|
|
8226
|
+
us: "ascii",
|
|
8227
|
+
latin1: "iso88591",
|
|
8228
|
+
latin2: "iso88592",
|
|
8229
|
+
latin3: "iso88593",
|
|
8230
|
+
latin4: "iso88594",
|
|
8231
|
+
latin5: "iso88599",
|
|
8232
|
+
latin6: "iso885910",
|
|
8233
|
+
latin7: "iso885913",
|
|
8234
|
+
latin8: "iso885914",
|
|
8235
|
+
latin9: "iso885915",
|
|
8236
|
+
latin10: "iso885916",
|
|
8237
|
+
csisolatin1: "iso88591",
|
|
8238
|
+
csisolatin2: "iso88592",
|
|
8239
|
+
csisolatin3: "iso88593",
|
|
8240
|
+
csisolatin4: "iso88594",
|
|
8241
|
+
csisolatincyrillic: "iso88595",
|
|
8242
|
+
csisolatinarabic: "iso88596",
|
|
8243
|
+
csisolatingreek: "iso88597",
|
|
8244
|
+
csisolatinhebrew: "iso88598",
|
|
8245
|
+
csisolatin5: "iso88599",
|
|
8246
|
+
csisolatin6: "iso885910",
|
|
8247
|
+
l1: "iso88591",
|
|
8248
|
+
l2: "iso88592",
|
|
8249
|
+
l3: "iso88593",
|
|
8250
|
+
l4: "iso88594",
|
|
8251
|
+
l5: "iso88599",
|
|
8252
|
+
l6: "iso885910",
|
|
8253
|
+
l7: "iso885913",
|
|
8254
|
+
l8: "iso885914",
|
|
8255
|
+
l9: "iso885915",
|
|
8256
|
+
l10: "iso885916",
|
|
8257
|
+
isoir14: "iso646jp",
|
|
8258
|
+
isoir57: "iso646cn",
|
|
8259
|
+
isoir100: "iso88591",
|
|
8260
|
+
isoir101: "iso88592",
|
|
8261
|
+
isoir109: "iso88593",
|
|
8262
|
+
isoir110: "iso88594",
|
|
8263
|
+
isoir144: "iso88595",
|
|
8264
|
+
isoir127: "iso88596",
|
|
8265
|
+
isoir126: "iso88597",
|
|
8266
|
+
isoir138: "iso88598",
|
|
8267
|
+
isoir148: "iso88599",
|
|
8268
|
+
isoir157: "iso885910",
|
|
8269
|
+
isoir166: "tis620",
|
|
8270
|
+
isoir179: "iso885913",
|
|
8271
|
+
isoir199: "iso885914",
|
|
8272
|
+
isoir203: "iso885915",
|
|
8273
|
+
isoir226: "iso885916",
|
|
8274
|
+
cp819: "iso88591",
|
|
8275
|
+
ibm819: "iso88591",
|
|
8276
|
+
cyrillic: "iso88595",
|
|
8277
|
+
arabic: "iso88596",
|
|
8278
|
+
arabic8: "iso88596",
|
|
8279
|
+
ecma114: "iso88596",
|
|
8280
|
+
asmo708: "iso88596",
|
|
8281
|
+
greek: "iso88597",
|
|
8282
|
+
greek8: "iso88597",
|
|
8283
|
+
ecma118: "iso88597",
|
|
8284
|
+
elot928: "iso88597",
|
|
8285
|
+
hebrew: "iso88598",
|
|
8286
|
+
hebrew8: "iso88598",
|
|
8287
|
+
turkish: "iso88599",
|
|
8288
|
+
turkish8: "iso88599",
|
|
8289
|
+
thai: "iso885911",
|
|
8290
|
+
thai8: "iso885911",
|
|
8291
|
+
celtic: "iso885914",
|
|
8292
|
+
celtic8: "iso885914",
|
|
8293
|
+
isoceltic: "iso885914",
|
|
8294
|
+
tis6200: "tis620",
|
|
8295
|
+
tis62025291: "tis620",
|
|
8296
|
+
tis62025330: "tis620",
|
|
8297
|
+
1e4: "macroman",
|
|
8298
|
+
10006: "macgreek",
|
|
8299
|
+
10007: "maccyrillic",
|
|
8300
|
+
10079: "maciceland",
|
|
8301
|
+
10081: "macturkish",
|
|
8302
|
+
cspc8codepage437: "cp437",
|
|
8303
|
+
cspc775baltic: "cp775",
|
|
8304
|
+
cspc850multilingual: "cp850",
|
|
8305
|
+
cspcp852: "cp852",
|
|
8306
|
+
cspc862latinhebrew: "cp862",
|
|
8307
|
+
cpgr: "cp869",
|
|
8308
|
+
msee: "cp1250",
|
|
8309
|
+
mscyrl: "cp1251",
|
|
8310
|
+
msansi: "cp1252",
|
|
8311
|
+
msgreek: "cp1253",
|
|
8312
|
+
msturk: "cp1254",
|
|
8313
|
+
mshebr: "cp1255",
|
|
8314
|
+
msarab: "cp1256",
|
|
8315
|
+
winbaltrim: "cp1257",
|
|
8316
|
+
cp20866: "koi8r",
|
|
8317
|
+
20866: "koi8r",
|
|
8318
|
+
ibm878: "koi8r",
|
|
8319
|
+
cskoi8r: "koi8r",
|
|
8320
|
+
cp21866: "koi8u",
|
|
8321
|
+
21866: "koi8u",
|
|
8322
|
+
ibm1168: "koi8u",
|
|
8323
|
+
strk10482002: "rk1048",
|
|
8324
|
+
tcvn5712: "tcvn",
|
|
8325
|
+
tcvn57121: "tcvn",
|
|
8326
|
+
gb198880: "iso646cn",
|
|
8327
|
+
cn: "iso646cn",
|
|
8328
|
+
csiso14jisc6220ro: "iso646jp",
|
|
8329
|
+
jisc62201969ro: "iso646jp",
|
|
8330
|
+
jp: "iso646jp",
|
|
8331
|
+
cshproman8: "hproman8",
|
|
8332
|
+
r8: "hproman8",
|
|
8333
|
+
roman8: "hproman8",
|
|
8334
|
+
xroman8: "hproman8",
|
|
8335
|
+
ibm1051: "hproman8",
|
|
8336
|
+
mac: "macintosh",
|
|
8337
|
+
csmacintosh: "macintosh"
|
|
8372
8338
|
};
|
|
8373
8339
|
}
|
|
8374
8340
|
});
|
|
8375
8341
|
|
|
8376
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
8342
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/sbcs-data-generated.js
|
|
8377
8343
|
var require_sbcs_data_generated = __commonJS({
|
|
8378
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
8344
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports, module) {
|
|
8379
8345
|
"use strict";
|
|
8380
8346
|
module.exports = {
|
|
8381
8347
|
"437": "cp437",
|
|
@@ -8828,9 +8794,9 @@ var require_sbcs_data_generated = __commonJS({
|
|
|
8828
8794
|
}
|
|
8829
8795
|
});
|
|
8830
8796
|
|
|
8831
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
8797
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/dbcs-codec.js
|
|
8832
8798
|
var require_dbcs_codec = __commonJS({
|
|
8833
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
8799
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/dbcs-codec.js"(exports) {
|
|
8834
8800
|
"use strict";
|
|
8835
8801
|
var Buffer2 = require_safer().Buffer;
|
|
8836
8802
|
exports._dbcs = DBCSCodec;
|
|
@@ -8840,21 +8806,25 @@ var require_dbcs_codec = __commonJS({
|
|
|
8840
8806
|
var NODE_START = -1e3;
|
|
8841
8807
|
var UNASSIGNED_NODE = new Array(256);
|
|
8842
8808
|
var DEF_CHAR = -1;
|
|
8843
|
-
for (i2 = 0; i2 < 256; i2++)
|
|
8809
|
+
for (i2 = 0; i2 < 256; i2++) {
|
|
8844
8810
|
UNASSIGNED_NODE[i2] = UNASSIGNED;
|
|
8811
|
+
}
|
|
8845
8812
|
var i2;
|
|
8846
8813
|
function DBCSCodec(codecOptions, iconv2) {
|
|
8847
8814
|
this.encodingName = codecOptions.encodingName;
|
|
8848
|
-
if (!codecOptions)
|
|
8815
|
+
if (!codecOptions) {
|
|
8849
8816
|
throw new Error("DBCS codec is called without the data.");
|
|
8850
|
-
|
|
8817
|
+
}
|
|
8818
|
+
if (!codecOptions.table) {
|
|
8851
8819
|
throw new Error("Encoding '" + this.encodingName + "' has no data.");
|
|
8820
|
+
}
|
|
8852
8821
|
var mappingTable = codecOptions.table();
|
|
8853
8822
|
this.decodeTables = [];
|
|
8854
8823
|
this.decodeTables[0] = UNASSIGNED_NODE.slice(0);
|
|
8855
8824
|
this.decodeTableSeq = [];
|
|
8856
|
-
for (var i3 = 0; i3 < mappingTable.length; i3++)
|
|
8825
|
+
for (var i3 = 0; i3 < mappingTable.length; i3++) {
|
|
8857
8826
|
this._addDecodeChunk(mappingTable[i3]);
|
|
8827
|
+
}
|
|
8858
8828
|
if (typeof codecOptions.gb18030 === "function") {
|
|
8859
8829
|
this.gb18030 = codecOptions.gb18030();
|
|
8860
8830
|
var commonThirdByteNodeIdx = this.decodeTables.length;
|
|
@@ -8881,8 +8851,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
8881
8851
|
}
|
|
8882
8852
|
var fourthByteNode = this.decodeTables[NODE_START - thirdByteNode[k]];
|
|
8883
8853
|
for (var l2 = 48; l2 <= 57; l2++) {
|
|
8884
|
-
if (fourthByteNode[l2] === UNASSIGNED)
|
|
8854
|
+
if (fourthByteNode[l2] === UNASSIGNED) {
|
|
8885
8855
|
fourthByteNode[l2] = GB18030_CODE;
|
|
8856
|
+
}
|
|
8886
8857
|
}
|
|
8887
8858
|
}
|
|
8888
8859
|
}
|
|
@@ -8892,20 +8863,25 @@ var require_dbcs_codec = __commonJS({
|
|
|
8892
8863
|
this.encodeTable = [];
|
|
8893
8864
|
this.encodeTableSeq = [];
|
|
8894
8865
|
var skipEncodeChars = {};
|
|
8895
|
-
if (codecOptions.encodeSkipVals)
|
|
8866
|
+
if (codecOptions.encodeSkipVals) {
|
|
8896
8867
|
for (var i3 = 0; i3 < codecOptions.encodeSkipVals.length; i3++) {
|
|
8897
8868
|
var val = codecOptions.encodeSkipVals[i3];
|
|
8898
|
-
if (typeof val === "number")
|
|
8869
|
+
if (typeof val === "number") {
|
|
8899
8870
|
skipEncodeChars[val] = true;
|
|
8900
|
-
else
|
|
8901
|
-
for (var j = val.from; j <= val.to; j++)
|
|
8871
|
+
} else {
|
|
8872
|
+
for (var j = val.from; j <= val.to; j++) {
|
|
8902
8873
|
skipEncodeChars[j] = true;
|
|
8874
|
+
}
|
|
8875
|
+
}
|
|
8903
8876
|
}
|
|
8877
|
+
}
|
|
8904
8878
|
this._fillEncodeTable(0, 0, skipEncodeChars);
|
|
8905
8879
|
if (codecOptions.encodeAdd) {
|
|
8906
|
-
for (var uChar in codecOptions.encodeAdd)
|
|
8907
|
-
if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))
|
|
8880
|
+
for (var uChar in codecOptions.encodeAdd) {
|
|
8881
|
+
if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar)) {
|
|
8908
8882
|
this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);
|
|
8883
|
+
}
|
|
8884
|
+
}
|
|
8909
8885
|
}
|
|
8910
8886
|
this.defCharSB = this.encodeTable[0][iconv2.defaultCharSingleByte.charCodeAt(0)];
|
|
8911
8887
|
if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]["?"];
|
|
@@ -8915,10 +8891,12 @@ var require_dbcs_codec = __commonJS({
|
|
|
8915
8891
|
DBCSCodec.prototype.decoder = DBCSDecoder;
|
|
8916
8892
|
DBCSCodec.prototype._getDecodeTrieNode = function(addr) {
|
|
8917
8893
|
var bytes = [];
|
|
8918
|
-
for (; addr > 0; addr >>>= 8)
|
|
8894
|
+
for (; addr > 0; addr >>>= 8) {
|
|
8919
8895
|
bytes.push(addr & 255);
|
|
8920
|
-
|
|
8896
|
+
}
|
|
8897
|
+
if (bytes.length == 0) {
|
|
8921
8898
|
bytes.push(0);
|
|
8899
|
+
}
|
|
8922
8900
|
var node = this.decodeTables[0];
|
|
8923
8901
|
for (var i3 = bytes.length - 1; i3 > 0; i3--) {
|
|
8924
8902
|
var val = node[bytes[i3]];
|
|
@@ -8927,8 +8905,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
8927
8905
|
this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));
|
|
8928
8906
|
} else if (val <= NODE_START) {
|
|
8929
8907
|
node = this.decodeTables[NODE_START - val];
|
|
8930
|
-
} else
|
|
8908
|
+
} else {
|
|
8931
8909
|
throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16));
|
|
8910
|
+
}
|
|
8932
8911
|
}
|
|
8933
8912
|
return node;
|
|
8934
8913
|
};
|
|
@@ -8941,45 +8920,53 @@ var require_dbcs_codec = __commonJS({
|
|
|
8941
8920
|
if (typeof part === "string") {
|
|
8942
8921
|
for (var l2 = 0; l2 < part.length; ) {
|
|
8943
8922
|
var code = part.charCodeAt(l2++);
|
|
8944
|
-
if (
|
|
8923
|
+
if (code >= 55296 && code < 56320) {
|
|
8945
8924
|
var codeTrail = part.charCodeAt(l2++);
|
|
8946
|
-
if (
|
|
8925
|
+
if (codeTrail >= 56320 && codeTrail < 57344) {
|
|
8947
8926
|
writeTable[curAddr++] = 65536 + (code - 55296) * 1024 + (codeTrail - 56320);
|
|
8948
|
-
else
|
|
8927
|
+
} else {
|
|
8949
8928
|
throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]);
|
|
8950
|
-
|
|
8929
|
+
}
|
|
8930
|
+
} else if (code > 4080 && code <= 4095) {
|
|
8951
8931
|
var len = 4095 - code + 2;
|
|
8952
8932
|
var seq = [];
|
|
8953
|
-
for (var m = 0; m < len; m++)
|
|
8933
|
+
for (var m = 0; m < len; m++) {
|
|
8954
8934
|
seq.push(part.charCodeAt(l2++));
|
|
8935
|
+
}
|
|
8955
8936
|
writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length;
|
|
8956
8937
|
this.decodeTableSeq.push(seq);
|
|
8957
|
-
} else
|
|
8938
|
+
} else {
|
|
8958
8939
|
writeTable[curAddr++] = code;
|
|
8940
|
+
}
|
|
8959
8941
|
}
|
|
8960
8942
|
} else if (typeof part === "number") {
|
|
8961
8943
|
var charCode = writeTable[curAddr - 1] + 1;
|
|
8962
|
-
for (var l2 = 0; l2 < part; l2++)
|
|
8944
|
+
for (var l2 = 0; l2 < part; l2++) {
|
|
8963
8945
|
writeTable[curAddr++] = charCode++;
|
|
8964
|
-
|
|
8946
|
+
}
|
|
8947
|
+
} else {
|
|
8965
8948
|
throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]);
|
|
8949
|
+
}
|
|
8966
8950
|
}
|
|
8967
|
-
if (curAddr > 255)
|
|
8951
|
+
if (curAddr > 255) {
|
|
8968
8952
|
throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr);
|
|
8953
|
+
}
|
|
8969
8954
|
};
|
|
8970
8955
|
DBCSCodec.prototype._getEncodeBucket = function(uCode) {
|
|
8971
8956
|
var high = uCode >> 8;
|
|
8972
|
-
if (this.encodeTable[high] === void 0)
|
|
8957
|
+
if (this.encodeTable[high] === void 0) {
|
|
8973
8958
|
this.encodeTable[high] = UNASSIGNED_NODE.slice(0);
|
|
8959
|
+
}
|
|
8974
8960
|
return this.encodeTable[high];
|
|
8975
8961
|
};
|
|
8976
8962
|
DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {
|
|
8977
8963
|
var bucket = this._getEncodeBucket(uCode);
|
|
8978
8964
|
var low = uCode & 255;
|
|
8979
|
-
if (bucket[low] <= SEQ_START)
|
|
8965
|
+
if (bucket[low] <= SEQ_START) {
|
|
8980
8966
|
this.encodeTableSeq[SEQ_START - bucket[low]][DEF_CHAR] = dbcsCode;
|
|
8981
|
-
else if (bucket[low] == UNASSIGNED)
|
|
8967
|
+
} else if (bucket[low] == UNASSIGNED) {
|
|
8982
8968
|
bucket[low] = dbcsCode;
|
|
8969
|
+
}
|
|
8983
8970
|
};
|
|
8984
8971
|
DBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) {
|
|
8985
8972
|
var uCode = seq[0];
|
|
@@ -8996,12 +8983,13 @@ var require_dbcs_codec = __commonJS({
|
|
|
8996
8983
|
}
|
|
8997
8984
|
for (var j = 1; j < seq.length - 1; j++) {
|
|
8998
8985
|
var oldVal = node[uCode];
|
|
8999
|
-
if (typeof oldVal === "object")
|
|
8986
|
+
if (typeof oldVal === "object") {
|
|
9000
8987
|
node = oldVal;
|
|
9001
|
-
else {
|
|
8988
|
+
} else {
|
|
9002
8989
|
node = node[uCode] = {};
|
|
9003
|
-
if (oldVal !== void 0)
|
|
8990
|
+
if (oldVal !== void 0) {
|
|
9004
8991
|
node[DEF_CHAR] = oldVal;
|
|
8992
|
+
}
|
|
9005
8993
|
}
|
|
9006
8994
|
}
|
|
9007
8995
|
uCode = seq[seq.length - 1];
|
|
@@ -9014,8 +9002,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
9014
9002
|
for (var i3 = 0; i3 < 256; i3++) {
|
|
9015
9003
|
var uCode = node[i3];
|
|
9016
9004
|
var mbCode = prefix + i3;
|
|
9017
|
-
if (skipEncodeChars[mbCode])
|
|
9005
|
+
if (skipEncodeChars[mbCode]) {
|
|
9018
9006
|
continue;
|
|
9007
|
+
}
|
|
9019
9008
|
if (uCode >= 0) {
|
|
9020
9009
|
this._setEncodeChar(uCode, mbCode);
|
|
9021
9010
|
hasValues = true;
|
|
@@ -9023,10 +9012,11 @@ var require_dbcs_codec = __commonJS({
|
|
|
9023
9012
|
var subNodeIdx = NODE_START - uCode;
|
|
9024
9013
|
if (!subNodeEmpty[subNodeIdx]) {
|
|
9025
9014
|
var newPrefix = mbCode << 8 >>> 0;
|
|
9026
|
-
if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars))
|
|
9015
|
+
if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars)) {
|
|
9027
9016
|
hasValues = true;
|
|
9028
|
-
else
|
|
9017
|
+
} else {
|
|
9029
9018
|
subNodeEmpty[subNodeIdx] = true;
|
|
9019
|
+
}
|
|
9030
9020
|
}
|
|
9031
9021
|
} else if (uCode <= SEQ_START) {
|
|
9032
9022
|
this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode);
|
|
@@ -9044,7 +9034,12 @@ var require_dbcs_codec = __commonJS({
|
|
|
9044
9034
|
this.gb18030 = codec.gb18030;
|
|
9045
9035
|
}
|
|
9046
9036
|
DBCSEncoder.prototype.write = function(str) {
|
|
9047
|
-
var newBuf = Buffer2.alloc(str.length * (this.gb18030 ? 4 : 3))
|
|
9037
|
+
var newBuf = Buffer2.alloc(str.length * (this.gb18030 ? 4 : 3));
|
|
9038
|
+
var leadSurrogate = this.leadSurrogate;
|
|
9039
|
+
var seqObj = this.seqObj;
|
|
9040
|
+
var nextChar = -1;
|
|
9041
|
+
var i3 = 0;
|
|
9042
|
+
var j = 0;
|
|
9048
9043
|
while (true) {
|
|
9049
9044
|
if (nextChar === -1) {
|
|
9050
9045
|
if (i3 == str.length) break;
|
|
@@ -9053,7 +9048,7 @@ var require_dbcs_codec = __commonJS({
|
|
|
9053
9048
|
var uCode = nextChar;
|
|
9054
9049
|
nextChar = -1;
|
|
9055
9050
|
}
|
|
9056
|
-
if (
|
|
9051
|
+
if (uCode >= 55296 && uCode < 57344) {
|
|
9057
9052
|
if (uCode < 56320) {
|
|
9058
9053
|
if (leadSurrogate === -1) {
|
|
9059
9054
|
leadSurrogate = uCode;
|
|
@@ -9081,7 +9076,7 @@ var require_dbcs_codec = __commonJS({
|
|
|
9081
9076
|
if (typeof resCode === "object") {
|
|
9082
9077
|
seqObj = resCode;
|
|
9083
9078
|
continue;
|
|
9084
|
-
} else if (typeof resCode
|
|
9079
|
+
} else if (typeof resCode === "number") {
|
|
9085
9080
|
dbcsCode = resCode;
|
|
9086
9081
|
} else if (resCode == void 0) {
|
|
9087
9082
|
resCode = seqObj[DEF_CHAR];
|
|
@@ -9094,8 +9089,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
9094
9089
|
seqObj = void 0;
|
|
9095
9090
|
} else if (uCode >= 0) {
|
|
9096
9091
|
var subtable = this.encodeTable[uCode >> 8];
|
|
9097
|
-
if (subtable !== void 0)
|
|
9092
|
+
if (subtable !== void 0) {
|
|
9098
9093
|
dbcsCode = subtable[uCode & 255];
|
|
9094
|
+
}
|
|
9099
9095
|
if (dbcsCode <= SEQ_START) {
|
|
9100
9096
|
seqObj = this.encodeTableSeq[SEQ_START - dbcsCode];
|
|
9101
9097
|
continue;
|
|
@@ -9115,8 +9111,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
9115
9111
|
}
|
|
9116
9112
|
}
|
|
9117
9113
|
}
|
|
9118
|
-
if (dbcsCode === UNASSIGNED)
|
|
9114
|
+
if (dbcsCode === UNASSIGNED) {
|
|
9119
9115
|
dbcsCode = this.defaultCharSingleByte;
|
|
9116
|
+
}
|
|
9120
9117
|
if (dbcsCode < 256) {
|
|
9121
9118
|
newBuf[j++] = dbcsCode;
|
|
9122
9119
|
} else if (dbcsCode < 65536) {
|
|
@@ -9138,9 +9135,11 @@ var require_dbcs_codec = __commonJS({
|
|
|
9138
9135
|
return newBuf.slice(0, j);
|
|
9139
9136
|
};
|
|
9140
9137
|
DBCSEncoder.prototype.end = function() {
|
|
9141
|
-
if (this.leadSurrogate === -1 && this.seqObj === void 0)
|
|
9138
|
+
if (this.leadSurrogate === -1 && this.seqObj === void 0) {
|
|
9142
9139
|
return;
|
|
9143
|
-
|
|
9140
|
+
}
|
|
9141
|
+
var newBuf = Buffer2.alloc(10);
|
|
9142
|
+
var j = 0;
|
|
9144
9143
|
if (this.seqObj) {
|
|
9145
9144
|
var dbcsCode = this.seqObj[DEF_CHAR];
|
|
9146
9145
|
if (dbcsCode !== void 0) {
|
|
@@ -9170,7 +9169,12 @@ var require_dbcs_codec = __commonJS({
|
|
|
9170
9169
|
this.gb18030 = codec.gb18030;
|
|
9171
9170
|
}
|
|
9172
9171
|
DBCSDecoder.prototype.write = function(buf) {
|
|
9173
|
-
var newBuf = Buffer2.alloc(buf.length * 2)
|
|
9172
|
+
var newBuf = Buffer2.alloc(buf.length * 2);
|
|
9173
|
+
var nodeIdx = this.nodeIdx;
|
|
9174
|
+
var prevBytes = this.prevBytes;
|
|
9175
|
+
var prevOffset = this.prevBytes.length;
|
|
9176
|
+
var seqStart = -this.prevBytes.length;
|
|
9177
|
+
var uCode;
|
|
9174
9178
|
for (var i3 = 0, j = 0; i3 < buf.length; i3++) {
|
|
9175
9179
|
var curByte = i3 >= 0 ? buf[i3] : prevBytes[i3 + prevOffset];
|
|
9176
9180
|
var uCode = this.decodeTables[nodeIdx][curByte];
|
|
@@ -9197,8 +9201,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
9197
9201
|
newBuf[j++] = uCode >> 8;
|
|
9198
9202
|
}
|
|
9199
9203
|
uCode = seq[seq.length - 1];
|
|
9200
|
-
} else
|
|
9204
|
+
} else {
|
|
9201
9205
|
throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte);
|
|
9206
|
+
}
|
|
9202
9207
|
if (uCode >= 65536) {
|
|
9203
9208
|
uCode -= 65536;
|
|
9204
9209
|
var uCodeLead = 55296 | uCode >> 10;
|
|
@@ -9222,32 +9227,36 @@ var require_dbcs_codec = __commonJS({
|
|
|
9222
9227
|
var bytesArr = this.prevBytes.slice(1);
|
|
9223
9228
|
this.prevBytes = [];
|
|
9224
9229
|
this.nodeIdx = 0;
|
|
9225
|
-
if (bytesArr.length > 0)
|
|
9230
|
+
if (bytesArr.length > 0) {
|
|
9226
9231
|
ret += this.write(bytesArr);
|
|
9232
|
+
}
|
|
9227
9233
|
}
|
|
9228
9234
|
this.prevBytes = [];
|
|
9229
9235
|
this.nodeIdx = 0;
|
|
9230
9236
|
return ret;
|
|
9231
9237
|
};
|
|
9232
9238
|
function findIdx(table, val) {
|
|
9233
|
-
if (table[0] > val)
|
|
9239
|
+
if (table[0] > val) {
|
|
9234
9240
|
return -1;
|
|
9235
|
-
|
|
9241
|
+
}
|
|
9242
|
+
var l2 = 0;
|
|
9243
|
+
var r2 = table.length;
|
|
9236
9244
|
while (l2 < r2 - 1) {
|
|
9237
9245
|
var mid = l2 + (r2 - l2 + 1 >> 1);
|
|
9238
|
-
if (table[mid] <= val)
|
|
9246
|
+
if (table[mid] <= val) {
|
|
9239
9247
|
l2 = mid;
|
|
9240
|
-
else
|
|
9248
|
+
} else {
|
|
9241
9249
|
r2 = mid;
|
|
9250
|
+
}
|
|
9242
9251
|
}
|
|
9243
9252
|
return l2;
|
|
9244
9253
|
}
|
|
9245
9254
|
}
|
|
9246
9255
|
});
|
|
9247
9256
|
|
|
9248
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
9257
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/shiftjis.json
|
|
9249
9258
|
var require_shiftjis = __commonJS({
|
|
9250
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
9259
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports, module) {
|
|
9251
9260
|
module.exports = [
|
|
9252
9261
|
["0", "\0", 128],
|
|
9253
9262
|
["a1", "\uFF61", 62],
|
|
@@ -9376,9 +9385,9 @@ var require_shiftjis = __commonJS({
|
|
|
9376
9385
|
}
|
|
9377
9386
|
});
|
|
9378
9387
|
|
|
9379
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
9388
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/eucjp.json
|
|
9380
9389
|
var require_eucjp = __commonJS({
|
|
9381
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
9390
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/eucjp.json"(exports, module) {
|
|
9382
9391
|
module.exports = [
|
|
9383
9392
|
["0", "\0", 127],
|
|
9384
9393
|
["8ea1", "\uFF61", 62],
|
|
@@ -9564,9 +9573,9 @@ var require_eucjp = __commonJS({
|
|
|
9564
9573
|
}
|
|
9565
9574
|
});
|
|
9566
9575
|
|
|
9567
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
9576
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/cp936.json
|
|
9568
9577
|
var require_cp936 = __commonJS({
|
|
9569
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
9578
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/cp936.json"(exports, module) {
|
|
9570
9579
|
module.exports = [
|
|
9571
9580
|
["0", "\0", 127, "\u20AC"],
|
|
9572
9581
|
["8140", "\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A", 5, "\u4E72\u4E74", 9, "\u4E7F", 6, "\u4E87\u4E8A"],
|
|
@@ -9834,9 +9843,9 @@ var require_cp936 = __commonJS({
|
|
|
9834
9843
|
}
|
|
9835
9844
|
});
|
|
9836
9845
|
|
|
9837
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
9846
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/gbk-added.json
|
|
9838
9847
|
var require_gbk_added = __commonJS({
|
|
9839
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
9848
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports, module) {
|
|
9840
9849
|
module.exports = [
|
|
9841
9850
|
["a140", "\uE4C6", 62],
|
|
9842
9851
|
["a180", "\uE505", 32],
|
|
@@ -9896,16 +9905,16 @@ var require_gbk_added = __commonJS({
|
|
|
9896
9905
|
}
|
|
9897
9906
|
});
|
|
9898
9907
|
|
|
9899
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
9908
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
|
|
9900
9909
|
var require_gb18030_ranges = __commonJS({
|
|
9901
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
9910
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports, module) {
|
|
9902
9911
|
module.exports = { uChars: [128, 165, 169, 178, 184, 216, 226, 235, 238, 244, 248, 251, 253, 258, 276, 284, 300, 325, 329, 334, 364, 463, 465, 467, 469, 471, 473, 475, 477, 506, 594, 610, 712, 716, 730, 930, 938, 962, 970, 1026, 1104, 1106, 8209, 8215, 8218, 8222, 8231, 8241, 8244, 8246, 8252, 8365, 8452, 8454, 8458, 8471, 8482, 8556, 8570, 8596, 8602, 8713, 8720, 8722, 8726, 8731, 8737, 8740, 8742, 8748, 8751, 8760, 8766, 8777, 8781, 8787, 8802, 8808, 8816, 8854, 8858, 8870, 8896, 8979, 9322, 9372, 9548, 9588, 9616, 9622, 9634, 9652, 9662, 9672, 9676, 9680, 9702, 9735, 9738, 9793, 9795, 11906, 11909, 11913, 11917, 11928, 11944, 11947, 11951, 11956, 11960, 11964, 11979, 12284, 12292, 12312, 12319, 12330, 12351, 12436, 12447, 12535, 12543, 12586, 12842, 12850, 12964, 13200, 13215, 13218, 13253, 13263, 13267, 13270, 13384, 13428, 13727, 13839, 13851, 14617, 14703, 14801, 14816, 14964, 15183, 15471, 15585, 16471, 16736, 17208, 17325, 17330, 17374, 17623, 17997, 18018, 18212, 18218, 18301, 18318, 18760, 18811, 18814, 18820, 18823, 18844, 18848, 18872, 19576, 19620, 19738, 19887, 40870, 59244, 59336, 59367, 59413, 59417, 59423, 59431, 59437, 59443, 59452, 59460, 59478, 59493, 63789, 63866, 63894, 63976, 63986, 64016, 64018, 64021, 64025, 64034, 64037, 64042, 65074, 65093, 65107, 65112, 65127, 65132, 65375, 65510, 65536], gbChars: [0, 36, 38, 45, 50, 81, 89, 95, 96, 100, 103, 104, 105, 109, 126, 133, 148, 172, 175, 179, 208, 306, 307, 308, 309, 310, 311, 312, 313, 341, 428, 443, 544, 545, 558, 741, 742, 749, 750, 805, 819, 820, 7922, 7924, 7925, 7927, 7934, 7943, 7944, 7945, 7950, 8062, 8148, 8149, 8152, 8164, 8174, 8236, 8240, 8262, 8264, 8374, 8380, 8381, 8384, 8388, 8390, 8392, 8393, 8394, 8396, 8401, 8406, 8416, 8419, 8424, 8437, 8439, 8445, 8482, 8485, 8496, 8521, 8603, 8936, 8946, 9046, 9050, 9063, 9066, 9076, 9092, 9100, 9108, 9111, 9113, 9131, 9162, 9164, 9218, 9219, 11329, 11331, 11334, 11336, 11346, 11361, 11363, 11366, 11370, 11372, 11375, 11389, 11682, 11686, 11687, 11692, 11694, 11714, 11716, 11723, 11725, 11730, 11736, 11982, 11989, 12102, 12336, 12348, 12350, 12384, 12393, 12395, 12397, 12510, 12553, 12851, 12962, 12973, 13738, 13823, 13919, 13933, 14080, 14298, 14585, 14698, 15583, 15847, 16318, 16434, 16438, 16481, 16729, 17102, 17122, 17315, 17320, 17402, 17418, 17859, 17909, 17911, 17915, 17916, 17936, 17939, 17961, 18664, 18703, 18814, 18962, 19043, 33469, 33470, 33471, 33484, 33485, 33490, 33497, 33501, 33505, 33513, 33520, 33536, 33550, 37845, 37921, 37948, 38029, 38038, 38064, 38065, 38066, 38069, 38075, 38076, 38078, 39108, 39109, 39113, 39114, 39115, 39116, 39265, 39394, 189e3] };
|
|
9903
9912
|
}
|
|
9904
9913
|
});
|
|
9905
9914
|
|
|
9906
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
9915
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/cp949.json
|
|
9907
9916
|
var require_cp949 = __commonJS({
|
|
9908
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
9917
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/cp949.json"(exports, module) {
|
|
9909
9918
|
module.exports = [
|
|
9910
9919
|
["0", "\0", 127],
|
|
9911
9920
|
["8141", "\uAC02\uAC03\uAC05\uAC06\uAC0B", 4, "\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25", 6, "\uAC2E\uAC32\uAC33\uAC34"],
|
|
@@ -10182,9 +10191,9 @@ var require_cp949 = __commonJS({
|
|
|
10182
10191
|
}
|
|
10183
10192
|
});
|
|
10184
10193
|
|
|
10185
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
10194
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/cp950.json
|
|
10186
10195
|
var require_cp950 = __commonJS({
|
|
10187
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
10196
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/cp950.json"(exports, module) {
|
|
10188
10197
|
module.exports = [
|
|
10189
10198
|
["0", "\0", 127],
|
|
10190
10199
|
["a140", "\u3000\uFF0C\u3001\u3002\uFF0E\u2027\uFF1B\uFF1A\uFF1F\uFF01\uFE30\u2026\u2025\uFE50\uFE51\uFE52\xB7\uFE54\uFE55\uFE56\uFE57\uFF5C\u2013\uFE31\u2014\uFE33\u2574\uFE34\uFE4F\uFF08\uFF09\uFE35\uFE36\uFF5B\uFF5D\uFE37\uFE38\u3014\u3015\uFE39\uFE3A\u3010\u3011\uFE3B\uFE3C\u300A\u300B\uFE3D\uFE3E\u3008\u3009\uFE3F\uFE40\u300C\u300D\uFE41\uFE42\u300E\u300F\uFE43\uFE44\uFE59\uFE5A"],
|
|
@@ -10365,9 +10374,9 @@ var require_cp950 = __commonJS({
|
|
|
10365
10374
|
}
|
|
10366
10375
|
});
|
|
10367
10376
|
|
|
10368
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
10377
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/big5-added.json
|
|
10369
10378
|
var require_big5_added = __commonJS({
|
|
10370
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
10379
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/big5-added.json"(exports, module) {
|
|
10371
10380
|
module.exports = [
|
|
10372
10381
|
["8740", "\u43F0\u4C32\u4603\u45A6\u4578\u{27267}\u4D77\u45B3\u{27CB1}\u4CE2\u{27CC5}\u3B95\u4736\u4744\u4C47\u4C40\u{242BF}\u{23617}\u{27352}\u{26E8B}\u{270D2}\u4C57\u{2A351}\u474F\u45DA\u4C85\u{27C6C}\u4D07\u4AA4\u46A1\u{26B23}\u7225\u{25A54}\u{21A63}\u{23E06}\u{23F61}\u664D\u56FB"],
|
|
10373
10382
|
["8767", "\u7D95\u591D\u{28BB9}\u3DF4\u9734\u{27BEF}\u5BDB\u{21D5E}\u5AA4\u3625\u{29EB0}\u5AD1\u5BB7\u5CFC\u676E\u8593\u{29945}\u7461\u749D\u3875\u{21D53}\u{2369E}\u{26021}\u3EEC"],
|
|
@@ -10493,15 +10502,15 @@ var require_big5_added = __commonJS({
|
|
|
10493
10502
|
}
|
|
10494
10503
|
});
|
|
10495
10504
|
|
|
10496
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
10505
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/dbcs-data.js
|
|
10497
10506
|
var require_dbcs_data = __commonJS({
|
|
10498
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
10507
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/dbcs-data.js"(exports, module) {
|
|
10499
10508
|
"use strict";
|
|
10500
10509
|
module.exports = {
|
|
10501
10510
|
// == Japanese/ShiftJIS ====================================================
|
|
10502
10511
|
// All japanese encodings are based on JIS X set of standards:
|
|
10503
10512
|
// JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.
|
|
10504
|
-
// JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes.
|
|
10513
|
+
// JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes.
|
|
10505
10514
|
// Has several variations in 1978, 1983, 1990 and 1997.
|
|
10506
10515
|
// JIS X 0212 - Supplementary plane of 6067 chars in 94x94 plane. 1990. Effectively dead.
|
|
10507
10516
|
// JIS X 0213 - Extension and modern replacement of 0208 and 0212. Total chars: 11233.
|
|
@@ -10518,7 +10527,7 @@ var require_dbcs_data = __commonJS({
|
|
|
10518
10527
|
// 0x8F, (0xA1-0xFE)x2 - 0212 plane (94x94).
|
|
10519
10528
|
// * JIS X 208: 7-bit, direct encoding of 0208. Byte ranges: 0x21-0x7E (94 values). Uncommon.
|
|
10520
10529
|
// Used as-is in ISO2022 family.
|
|
10521
|
-
// * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII,
|
|
10530
|
+
// * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII,
|
|
10522
10531
|
// 0201-1976 Roman, 0208-1978, 0208-1983.
|
|
10523
10532
|
// * ISO2022-JP-1: Adds esc seq for 0212-1990.
|
|
10524
10533
|
// * ISO2022-JP-2: Adds esc seq for GB2313-1980, KSX1001-1992, ISO8859-1, ISO8859-7.
|
|
@@ -10528,7 +10537,7 @@ var require_dbcs_data = __commonJS({
|
|
|
10528
10537
|
// After JIS X 0213 appeared, Shift_JIS-2004, EUC-JISX0213 and ISO2022-JP-2004 followed, with just changing the planes.
|
|
10529
10538
|
//
|
|
10530
10539
|
// Overall, it seems that it's a mess :( http://www8.plala.or.jp/tkubota1/unicode-symbols-map2.html
|
|
10531
|
-
|
|
10540
|
+
shiftjis: {
|
|
10532
10541
|
type: "_dbcs",
|
|
10533
10542
|
table: function() {
|
|
10534
10543
|
return require_shiftjis();
|
|
@@ -10536,17 +10545,17 @@ var require_dbcs_data = __commonJS({
|
|
|
10536
10545
|
encodeAdd: { "\xA5": 92, "\u203E": 126 },
|
|
10537
10546
|
encodeSkipVals: [{ from: 60736, to: 63808 }]
|
|
10538
10547
|
},
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10548
|
+
csshiftjis: "shiftjis",
|
|
10549
|
+
mskanji: "shiftjis",
|
|
10550
|
+
sjis: "shiftjis",
|
|
10551
|
+
windows31j: "shiftjis",
|
|
10552
|
+
ms31j: "shiftjis",
|
|
10553
|
+
xsjis: "shiftjis",
|
|
10554
|
+
windows932: "shiftjis",
|
|
10555
|
+
ms932: "shiftjis",
|
|
10556
|
+
932: "shiftjis",
|
|
10557
|
+
cp932: "shiftjis",
|
|
10558
|
+
eucjp: {
|
|
10550
10559
|
type: "_dbcs",
|
|
10551
10560
|
table: function() {
|
|
10552
10561
|
return require_eucjp();
|
|
@@ -10560,37 +10569,37 @@ var require_dbcs_data = __commonJS({
|
|
|
10560
10569
|
// http://en.wikipedia.org/wiki/GBK
|
|
10561
10570
|
// We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder
|
|
10562
10571
|
// Oldest GB2312 (1981, ~7600 chars) is a subset of CP936
|
|
10563
|
-
|
|
10564
|
-
|
|
10565
|
-
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
|
|
10572
|
+
gb2312: "cp936",
|
|
10573
|
+
gb231280: "cp936",
|
|
10574
|
+
gb23121980: "cp936",
|
|
10575
|
+
csgb2312: "cp936",
|
|
10576
|
+
csiso58gb231280: "cp936",
|
|
10577
|
+
euccn: "cp936",
|
|
10569
10578
|
// Microsoft's CP936 is a subset and approximation of GBK.
|
|
10570
|
-
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
|
|
10579
|
+
windows936: "cp936",
|
|
10580
|
+
ms936: "cp936",
|
|
10581
|
+
936: "cp936",
|
|
10582
|
+
cp936: {
|
|
10574
10583
|
type: "_dbcs",
|
|
10575
10584
|
table: function() {
|
|
10576
10585
|
return require_cp936();
|
|
10577
10586
|
}
|
|
10578
10587
|
},
|
|
10579
10588
|
// GBK (~22000 chars) is an extension of CP936 that added user-mapped chars and some other.
|
|
10580
|
-
|
|
10589
|
+
gbk: {
|
|
10581
10590
|
type: "_dbcs",
|
|
10582
10591
|
table: function() {
|
|
10583
10592
|
return require_cp936().concat(require_gbk_added());
|
|
10584
10593
|
}
|
|
10585
10594
|
},
|
|
10586
|
-
|
|
10587
|
-
|
|
10595
|
+
xgbk: "gbk",
|
|
10596
|
+
isoir58: "gbk",
|
|
10588
10597
|
// GB18030 is an algorithmic extension of GBK.
|
|
10589
10598
|
// Main source: https://www.w3.org/TR/encoding/#gbk-encoder
|
|
10590
10599
|
// http://icu-project.org/docs/papers/gb18030.html
|
|
10591
10600
|
// http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml
|
|
10592
10601
|
// http://www.khngai.com/chinese/charmap/tblgbk.php?page=0
|
|
10593
|
-
|
|
10602
|
+
gb18030: {
|
|
10594
10603
|
type: "_dbcs",
|
|
10595
10604
|
table: function() {
|
|
10596
10605
|
return require_cp936().concat(require_gbk_added());
|
|
@@ -10601,26 +10610,26 @@ var require_dbcs_data = __commonJS({
|
|
|
10601
10610
|
encodeSkipVals: [128],
|
|
10602
10611
|
encodeAdd: { "\u20AC": 41699 }
|
|
10603
10612
|
},
|
|
10604
|
-
|
|
10613
|
+
chinese: "gb18030",
|
|
10605
10614
|
// == Korean ===============================================================
|
|
10606
10615
|
// EUC-KR, KS_C_5601 and KS X 1001 are exactly the same.
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
|
|
10616
|
+
windows949: "cp949",
|
|
10617
|
+
ms949: "cp949",
|
|
10618
|
+
949: "cp949",
|
|
10619
|
+
cp949: {
|
|
10611
10620
|
type: "_dbcs",
|
|
10612
10621
|
table: function() {
|
|
10613
10622
|
return require_cp949();
|
|
10614
10623
|
}
|
|
10615
10624
|
},
|
|
10616
|
-
|
|
10617
|
-
|
|
10618
|
-
|
|
10619
|
-
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
|
|
10623
|
-
|
|
10625
|
+
cseuckr: "cp949",
|
|
10626
|
+
csksc56011987: "cp949",
|
|
10627
|
+
euckr: "cp949",
|
|
10628
|
+
isoir149: "cp949",
|
|
10629
|
+
korean: "cp949",
|
|
10630
|
+
ksc56011987: "cp949",
|
|
10631
|
+
ksc56011989: "cp949",
|
|
10632
|
+
ksc5601: "cp949",
|
|
10624
10633
|
// == Big5/Taiwan/Hong Kong ================================================
|
|
10625
10634
|
// There are lots of tables for Big5 and cp950. Please see the following links for history:
|
|
10626
10635
|
// http://moztw.org/docs/big5/ http://www.haible.de/bruno/charsets/conversion-tables/Big5.html
|
|
@@ -10629,7 +10638,7 @@ var require_dbcs_data = __commonJS({
|
|
|
10629
10638
|
// * Windows CP 951: Microsoft variant of Big5-HKSCS-2001. Seems to be never public. http://me.abelcheung.org/articles/research/what-is-cp951/
|
|
10630
10639
|
// * Big5-2003 (Taiwan standard) almost superset of cp950.
|
|
10631
10640
|
// * Unicode-at-on (UAO) / Mozilla 1.8. Falling out of use on the Web. Not supported by other browsers.
|
|
10632
|
-
// * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard.
|
|
10641
|
+
// * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard.
|
|
10633
10642
|
// many unicode code points moved from PUA to Supplementary plane (U+2XXXX) over the years.
|
|
10634
10643
|
// Plus, it has 4 combining sequences.
|
|
10635
10644
|
// Seems that Mozilla refused to support it for 10 yrs. https://bugzilla.mozilla.org/show_bug.cgi?id=162431 https://bugzilla.mozilla.org/show_bug.cgi?id=310299
|
|
@@ -10640,21 +10649,21 @@ var require_dbcs_data = __commonJS({
|
|
|
10640
10649
|
// In the encoder, it might make sense to support encoding old PUA mappings to Big5 bytes seq-s.
|
|
10641
10650
|
// Official spec: http://www.ogcio.gov.hk/en/business/tech_promotion/ccli/terms/doc/2003cmp_2008.txt
|
|
10642
10651
|
// http://www.ogcio.gov.hk/tc/business/tech_promotion/ccli/terms/doc/hkscs-2008-big5-iso.txt
|
|
10643
|
-
//
|
|
10652
|
+
//
|
|
10644
10653
|
// Current understanding of how to deal with Big5(-HKSCS) is in the Encoding Standard, http://encoding.spec.whatwg.org/#big5-encoder
|
|
10645
10654
|
// Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong.
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10655
|
+
windows950: "cp950",
|
|
10656
|
+
ms950: "cp950",
|
|
10657
|
+
950: "cp950",
|
|
10658
|
+
cp950: {
|
|
10650
10659
|
type: "_dbcs",
|
|
10651
10660
|
table: function() {
|
|
10652
10661
|
return require_cp950();
|
|
10653
10662
|
}
|
|
10654
10663
|
},
|
|
10655
10664
|
// Big5 has many variations and is an extension of cp950. We use Encoding Standard's as a consensus.
|
|
10656
|
-
|
|
10657
|
-
|
|
10665
|
+
big5: "big5hkscs",
|
|
10666
|
+
big5hkscs: {
|
|
10658
10667
|
type: "_dbcs",
|
|
10659
10668
|
table: function() {
|
|
10660
10669
|
return require_cp950().concat(require_big5_added());
|
|
@@ -10733,17 +10742,18 @@ var require_dbcs_data = __commonJS({
|
|
|
10733
10742
|
41678
|
|
10734
10743
|
]
|
|
10735
10744
|
},
|
|
10736
|
-
|
|
10737
|
-
|
|
10738
|
-
|
|
10745
|
+
cnbig5: "big5hkscs",
|
|
10746
|
+
csbig5: "big5hkscs",
|
|
10747
|
+
xxbig5: "big5hkscs"
|
|
10739
10748
|
};
|
|
10740
10749
|
}
|
|
10741
10750
|
});
|
|
10742
10751
|
|
|
10743
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
10752
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/index.js
|
|
10744
10753
|
var require_encodings = __commonJS({
|
|
10745
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
10754
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/index.js"(exports, module) {
|
|
10746
10755
|
"use strict";
|
|
10756
|
+
var mergeModules = require_merge_exports();
|
|
10747
10757
|
var modules = [
|
|
10748
10758
|
require_internal(),
|
|
10749
10759
|
require_utf32(),
|
|
@@ -10757,23 +10767,20 @@ var require_encodings = __commonJS({
|
|
|
10757
10767
|
];
|
|
10758
10768
|
for (i2 = 0; i2 < modules.length; i2++) {
|
|
10759
10769
|
module = modules[i2];
|
|
10760
|
-
|
|
10761
|
-
if (Object.prototype.hasOwnProperty.call(module, enc))
|
|
10762
|
-
exports[enc] = module[enc];
|
|
10770
|
+
mergeModules(exports, module);
|
|
10763
10771
|
}
|
|
10764
10772
|
var module;
|
|
10765
|
-
var enc;
|
|
10766
10773
|
var i2;
|
|
10767
10774
|
}
|
|
10768
10775
|
});
|
|
10769
10776
|
|
|
10770
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
10777
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/streams.js
|
|
10771
10778
|
var require_streams = __commonJS({
|
|
10772
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
10779
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/streams.js"(exports, module) {
|
|
10773
10780
|
"use strict";
|
|
10774
10781
|
var Buffer2 = require_safer().Buffer;
|
|
10775
|
-
module.exports = function(
|
|
10776
|
-
var Transform =
|
|
10782
|
+
module.exports = function(streamModule) {
|
|
10783
|
+
var Transform = streamModule.Transform;
|
|
10777
10784
|
function IconvLiteEncoderStream(conv, options) {
|
|
10778
10785
|
this.conv = conv;
|
|
10779
10786
|
options = options || {};
|
|
@@ -10784,8 +10791,9 @@ var require_streams = __commonJS({
|
|
|
10784
10791
|
constructor: { value: IconvLiteEncoderStream }
|
|
10785
10792
|
});
|
|
10786
10793
|
IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) {
|
|
10787
|
-
if (typeof chunk
|
|
10794
|
+
if (typeof chunk !== "string") {
|
|
10788
10795
|
return done(new Error("Iconv encoding stream needs strings as its input."));
|
|
10796
|
+
}
|
|
10789
10797
|
try {
|
|
10790
10798
|
var res = this.conv.write(chunk);
|
|
10791
10799
|
if (res && res.length) this.push(res);
|
|
@@ -10824,8 +10832,9 @@ var require_streams = __commonJS({
|
|
|
10824
10832
|
constructor: { value: IconvLiteDecoderStream }
|
|
10825
10833
|
});
|
|
10826
10834
|
IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) {
|
|
10827
|
-
if (!Buffer2.isBuffer(chunk) && !(chunk instanceof Uint8Array))
|
|
10835
|
+
if (!Buffer2.isBuffer(chunk) && !(chunk instanceof Uint8Array)) {
|
|
10828
10836
|
return done(new Error("Iconv decoding stream needs buffers as its input."));
|
|
10837
|
+
}
|
|
10829
10838
|
try {
|
|
10830
10839
|
var res = this.conv.write(chunk);
|
|
10831
10840
|
if (res && res.length) this.push(res, this.encoding);
|
|
@@ -10862,12 +10871,13 @@ var require_streams = __commonJS({
|
|
|
10862
10871
|
}
|
|
10863
10872
|
});
|
|
10864
10873
|
|
|
10865
|
-
// ../../node_modules/.pnpm/iconv-lite@0.
|
|
10874
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/index.js
|
|
10866
10875
|
var require_lib3 = __commonJS({
|
|
10867
|
-
"../../node_modules/.pnpm/iconv-lite@0.
|
|
10876
|
+
"../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/index.js"(exports, module) {
|
|
10868
10877
|
"use strict";
|
|
10869
10878
|
var Buffer2 = require_safer().Buffer;
|
|
10870
10879
|
var bomHandling = require_bom_handling();
|
|
10880
|
+
var mergeModules = require_merge_exports();
|
|
10871
10881
|
var iconv2 = module.exports;
|
|
10872
10882
|
iconv2.encodings = null;
|
|
10873
10883
|
iconv2.defaultCharUnicode = "\uFFFD";
|
|
@@ -10902,31 +10912,38 @@ var require_lib3 = __commonJS({
|
|
|
10902
10912
|
};
|
|
10903
10913
|
iconv2.toEncoding = iconv2.encode;
|
|
10904
10914
|
iconv2.fromEncoding = iconv2.decode;
|
|
10905
|
-
iconv2._codecDataCache = {};
|
|
10915
|
+
iconv2._codecDataCache = { __proto__: null };
|
|
10906
10916
|
iconv2.getCodec = function getCodec(encoding) {
|
|
10907
|
-
if (!iconv2.encodings)
|
|
10908
|
-
|
|
10917
|
+
if (!iconv2.encodings) {
|
|
10918
|
+
var raw = require_encodings();
|
|
10919
|
+
iconv2.encodings = { __proto__: null };
|
|
10920
|
+
mergeModules(iconv2.encodings, raw);
|
|
10921
|
+
}
|
|
10909
10922
|
var enc = iconv2._canonicalizeEncoding(encoding);
|
|
10910
10923
|
var codecOptions = {};
|
|
10911
10924
|
while (true) {
|
|
10912
10925
|
var codec = iconv2._codecDataCache[enc];
|
|
10913
|
-
if (codec)
|
|
10926
|
+
if (codec) {
|
|
10914
10927
|
return codec;
|
|
10928
|
+
}
|
|
10915
10929
|
var codecDef = iconv2.encodings[enc];
|
|
10916
10930
|
switch (typeof codecDef) {
|
|
10917
10931
|
case "string":
|
|
10918
10932
|
enc = codecDef;
|
|
10919
10933
|
break;
|
|
10920
10934
|
case "object":
|
|
10921
|
-
for (var key in codecDef)
|
|
10935
|
+
for (var key in codecDef) {
|
|
10922
10936
|
codecOptions[key] = codecDef[key];
|
|
10923
|
-
|
|
10937
|
+
}
|
|
10938
|
+
if (!codecOptions.encodingName) {
|
|
10924
10939
|
codecOptions.encodingName = enc;
|
|
10940
|
+
}
|
|
10925
10941
|
enc = codecDef.type;
|
|
10926
10942
|
break;
|
|
10927
10943
|
case "function":
|
|
10928
|
-
if (!codecOptions.encodingName)
|
|
10944
|
+
if (!codecOptions.encodingName) {
|
|
10929
10945
|
codecOptions.encodingName = enc;
|
|
10946
|
+
}
|
|
10930
10947
|
codec = new codecDef(codecOptions, iconv2);
|
|
10931
10948
|
iconv2._codecDataCache[codecOptions.encodingName] = codec;
|
|
10932
10949
|
return codec;
|
|
@@ -10939,21 +10956,26 @@ var require_lib3 = __commonJS({
|
|
|
10939
10956
|
return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
|
|
10940
10957
|
};
|
|
10941
10958
|
iconv2.getEncoder = function getEncoder(encoding, options) {
|
|
10942
|
-
var codec = iconv2.getCodec(encoding)
|
|
10943
|
-
|
|
10959
|
+
var codec = iconv2.getCodec(encoding);
|
|
10960
|
+
var encoder = new codec.encoder(options, codec);
|
|
10961
|
+
if (codec.bomAware && options && options.addBOM) {
|
|
10944
10962
|
encoder = new bomHandling.PrependBOM(encoder, options);
|
|
10963
|
+
}
|
|
10945
10964
|
return encoder;
|
|
10946
10965
|
};
|
|
10947
10966
|
iconv2.getDecoder = function getDecoder(encoding, options) {
|
|
10948
|
-
var codec = iconv2.getCodec(encoding)
|
|
10949
|
-
|
|
10967
|
+
var codec = iconv2.getCodec(encoding);
|
|
10968
|
+
var decoder = new codec.decoder(options, codec);
|
|
10969
|
+
if (codec.bomAware && !(options && options.stripBOM === false)) {
|
|
10950
10970
|
decoder = new bomHandling.StripBOM(decoder, options);
|
|
10971
|
+
}
|
|
10951
10972
|
return decoder;
|
|
10952
10973
|
};
|
|
10953
|
-
iconv2.enableStreamingAPI = function enableStreamingAPI(
|
|
10954
|
-
if (iconv2.supportsStreams)
|
|
10974
|
+
iconv2.enableStreamingAPI = function enableStreamingAPI(streamModule2) {
|
|
10975
|
+
if (iconv2.supportsStreams) {
|
|
10955
10976
|
return;
|
|
10956
|
-
|
|
10977
|
+
}
|
|
10978
|
+
var streams = require_streams()(streamModule2);
|
|
10957
10979
|
iconv2.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;
|
|
10958
10980
|
iconv2.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;
|
|
10959
10981
|
iconv2.encodeStream = function encodeStream(encoding, options) {
|
|
@@ -10964,13 +10986,13 @@ var require_lib3 = __commonJS({
|
|
|
10964
10986
|
};
|
|
10965
10987
|
iconv2.supportsStreams = true;
|
|
10966
10988
|
};
|
|
10967
|
-
var
|
|
10989
|
+
var streamModule;
|
|
10968
10990
|
try {
|
|
10969
|
-
|
|
10991
|
+
streamModule = __require("stream");
|
|
10970
10992
|
} catch (e) {
|
|
10971
10993
|
}
|
|
10972
|
-
if (
|
|
10973
|
-
iconv2.enableStreamingAPI(
|
|
10994
|
+
if (streamModule && streamModule.Transform) {
|
|
10995
|
+
iconv2.enableStreamingAPI(streamModule);
|
|
10974
10996
|
} else {
|
|
10975
10997
|
iconv2.encodeStream = iconv2.decodeStream = function() {
|
|
10976
10998
|
throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.");
|
|
@@ -11003,8 +11025,8 @@ async function mergeDts({
|
|
|
11003
11025
|
filepath,
|
|
11004
11026
|
meta
|
|
11005
11027
|
}) {
|
|
11006
|
-
const previousAst =
|
|
11007
|
-
const currentAst =
|
|
11028
|
+
const previousAst = PNe(previousContent);
|
|
11029
|
+
const currentAst = PNe(fileContent);
|
|
11008
11030
|
for (const imp of previousAst.imports.$items) {
|
|
11009
11031
|
currentAst.imports[imp.local] = imp;
|
|
11010
11032
|
}
|
|
@@ -11021,7 +11043,7 @@ async function mergeDts({
|
|
|
11021
11043
|
currentAst.$ast.body.splice(index, 0, node);
|
|
11022
11044
|
}
|
|
11023
11045
|
}
|
|
11024
|
-
const res = await
|
|
11046
|
+
const res = await l_s(currentAst.generate().code, meta, {
|
|
11025
11047
|
filepath
|
|
11026
11048
|
});
|
|
11027
11049
|
return clearExports(res.code, meta);
|
|
@@ -11045,7 +11067,7 @@ async function executeOperationFile(op, {
|
|
|
11045
11067
|
}) {
|
|
11046
11068
|
const code = await readFile(op.sourceAbsolute, { encoding: "utf-8" });
|
|
11047
11069
|
const filepath = relative(op.source, op.sourceAbsolute);
|
|
11048
|
-
const result = await
|
|
11070
|
+
const result = await l_s(code, meta, {
|
|
11049
11071
|
filepath
|
|
11050
11072
|
});
|
|
11051
11073
|
let fileContent = result.code;
|
|
@@ -11129,7 +11151,7 @@ async function transformFileAfterExec(filepath, fileContent) {
|
|
|
11129
11151
|
case ".js":
|
|
11130
11152
|
case ".tsx":
|
|
11131
11153
|
case ".jsx":
|
|
11132
|
-
return
|
|
11154
|
+
return est(fileContent, {
|
|
11133
11155
|
filepath
|
|
11134
11156
|
});
|
|
11135
11157
|
case ".env":
|
|
@@ -11389,7 +11411,7 @@ Please report this issue to https://github.com/vikejs/bati`
|
|
|
11389
11411
|
}
|
|
11390
11412
|
}
|
|
11391
11413
|
|
|
11392
|
-
// ../features/dist/chunk-
|
|
11414
|
+
// ../features/dist/chunk-7EJMVIZU.js
|
|
11393
11415
|
var features = [
|
|
11394
11416
|
// Vike
|
|
11395
11417
|
{
|
|
@@ -11817,10 +11839,6 @@ var features = [
|
|
|
11817
11839
|
{
|
|
11818
11840
|
label: "Vike integration",
|
|
11819
11841
|
href: "https://vike.dev/cloudflare"
|
|
11820
|
-
},
|
|
11821
|
-
{
|
|
11822
|
-
label: "vike-cloudflare",
|
|
11823
|
-
href: "https://github.com/vikejs/vike-cloudflare"
|
|
11824
11842
|
}
|
|
11825
11843
|
]
|
|
11826
11844
|
},
|
|
@@ -11948,6 +11966,9 @@ var BatiSet = class extends Set {
|
|
|
11948
11966
|
get hasD1() {
|
|
11949
11967
|
return this.has("cloudflare") && (this.has("sqlite") || this.has("drizzle"));
|
|
11950
11968
|
}
|
|
11969
|
+
get hasPhoton() {
|
|
11970
|
+
return this.has("cloudflare") || this.has("vercel") || this.hasOneOf(this.#servers);
|
|
11971
|
+
}
|
|
11951
11972
|
};
|
|
11952
11973
|
|
|
11953
11974
|
// ../features/dist/rules.js
|
|
@@ -11988,7 +12009,7 @@ var rules_default = [
|
|
|
11988
12009
|
requires(3, "Data fetching", ["Server"]),
|
|
11989
12010
|
filter(4, (fts) => {
|
|
11990
12011
|
if (fts.has("cloudflare")) {
|
|
11991
|
-
if (fts.has("hono")) {
|
|
12012
|
+
if (fts.has("hono") || fts.has("h3")) {
|
|
11992
12013
|
return false;
|
|
11993
12014
|
}
|
|
11994
12015
|
return fts.has("Server");
|
|
@@ -12042,16 +12063,26 @@ function execRules(fts, rulesMessages2) {
|
|
|
12042
12063
|
return messages;
|
|
12043
12064
|
}
|
|
12044
12065
|
|
|
12045
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12046
|
-
var isUpKey = (key) =>
|
|
12047
|
-
|
|
12066
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
12067
|
+
var isUpKey = (key, keybindings = []) => (
|
|
12068
|
+
// The up key
|
|
12069
|
+
key.name === "up" || // Vim keybinding: hjkl keys map to left/down/up/right
|
|
12070
|
+
keybindings.includes("vim") && key.name === "k" || // Emacs keybinding: Ctrl+P means "previous" in Emacs navigation conventions
|
|
12071
|
+
keybindings.includes("emacs") && key.ctrl && key.name === "p"
|
|
12072
|
+
);
|
|
12073
|
+
var isDownKey = (key, keybindings = []) => (
|
|
12074
|
+
// The down key
|
|
12075
|
+
key.name === "down" || // Vim keybinding: hjkl keys map to left/down/up/right
|
|
12076
|
+
keybindings.includes("vim") && key.name === "j" || // Emacs keybinding: Ctrl+N means "next" in Emacs navigation conventions
|
|
12077
|
+
keybindings.includes("emacs") && key.ctrl && key.name === "n"
|
|
12078
|
+
);
|
|
12048
12079
|
var isSpaceKey = (key) => key.name === "space";
|
|
12049
12080
|
var isBackspaceKey = (key) => key.name === "backspace";
|
|
12050
12081
|
var isTabKey = (key) => key.name === "tab";
|
|
12051
12082
|
var isNumberKey = (key) => "1234567890".includes(key.name);
|
|
12052
12083
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
|
12053
12084
|
|
|
12054
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12085
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
12055
12086
|
var AbortPromptError = class extends Error {
|
|
12056
12087
|
name = "AbortPromptError";
|
|
12057
12088
|
message = "Prompt was aborted";
|
|
@@ -12074,10 +12105,10 @@ var ValidationError = class extends Error {
|
|
|
12074
12105
|
name = "ValidationError";
|
|
12075
12106
|
};
|
|
12076
12107
|
|
|
12077
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12108
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
12078
12109
|
import { AsyncResource as AsyncResource2 } from "async_hooks";
|
|
12079
12110
|
|
|
12080
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12111
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
12081
12112
|
import { AsyncLocalStorage, AsyncResource } from "async_hooks";
|
|
12082
12113
|
var hookStorage = new AsyncLocalStorage();
|
|
12083
12114
|
function createStore(rl) {
|
|
@@ -12183,7 +12214,7 @@ var effectScheduler = {
|
|
|
12183
12214
|
}
|
|
12184
12215
|
};
|
|
12185
12216
|
|
|
12186
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12217
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
12187
12218
|
function useState(defaultValue) {
|
|
12188
12219
|
return withPointer((pointer) => {
|
|
12189
12220
|
const setState = AsyncResource2.bind(function setState2(newValue) {
|
|
@@ -12201,7 +12232,7 @@ function useState(defaultValue) {
|
|
|
12201
12232
|
});
|
|
12202
12233
|
}
|
|
12203
12234
|
|
|
12204
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12235
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
12205
12236
|
function useEffect(cb, depArray) {
|
|
12206
12237
|
withPointer((pointer) => {
|
|
12207
12238
|
const oldDeps = pointer.get();
|
|
@@ -12213,10 +12244,10 @@ function useEffect(cb, depArray) {
|
|
|
12213
12244
|
});
|
|
12214
12245
|
}
|
|
12215
12246
|
|
|
12216
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12247
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
12217
12248
|
var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
|
|
12218
12249
|
|
|
12219
|
-
// ../../node_modules/.pnpm/@inquirer+figures@1.0.
|
|
12250
|
+
// ../../node_modules/.pnpm/@inquirer+figures@1.0.14/node_modules/@inquirer/figures/dist/esm/index.js
|
|
12220
12251
|
import process2 from "process";
|
|
12221
12252
|
function isUnicodeSupported() {
|
|
12222
12253
|
if (process2.platform !== "win32") {
|
|
@@ -12505,7 +12536,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
|
12505
12536
|
var esm_default = figures;
|
|
12506
12537
|
var replacements = Object.entries(specialMainSymbols);
|
|
12507
12538
|
|
|
12508
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12539
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
12509
12540
|
var defaultTheme = {
|
|
12510
12541
|
prefix: {
|
|
12511
12542
|
idle: import_yoctocolors_cjs.default.blue("?"),
|
|
@@ -12527,7 +12558,7 @@ var defaultTheme = {
|
|
|
12527
12558
|
}
|
|
12528
12559
|
};
|
|
12529
12560
|
|
|
12530
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12561
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
12531
12562
|
function isPlainObject(value) {
|
|
12532
12563
|
if (typeof value !== "object" || value === null)
|
|
12533
12564
|
return false;
|
|
@@ -12555,7 +12586,7 @@ function makeTheme(...themes) {
|
|
|
12555
12586
|
return deepMerge(...themesToMerge);
|
|
12556
12587
|
}
|
|
12557
12588
|
|
|
12558
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12589
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
12559
12590
|
function usePrefix({ status = "idle", theme }) {
|
|
12560
12591
|
const [showLoader, setShowLoader] = useState(false);
|
|
12561
12592
|
const [tick, setTick] = useState(0);
|
|
@@ -12586,7 +12617,7 @@ function usePrefix({ status = "idle", theme }) {
|
|
|
12586
12617
|
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
12587
12618
|
}
|
|
12588
12619
|
|
|
12589
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12620
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
|
12590
12621
|
function useMemo(fn, dependencies) {
|
|
12591
12622
|
return withPointer((pointer) => {
|
|
12592
12623
|
const prev = pointer.get();
|
|
@@ -12599,12 +12630,12 @@ function useMemo(fn, dependencies) {
|
|
|
12599
12630
|
});
|
|
12600
12631
|
}
|
|
12601
12632
|
|
|
12602
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12633
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
12603
12634
|
function useRef(val) {
|
|
12604
12635
|
return useState({ current: val })[0];
|
|
12605
12636
|
}
|
|
12606
12637
|
|
|
12607
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12638
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
12608
12639
|
function useKeypress(userHandler) {
|
|
12609
12640
|
const signal = useRef(userHandler);
|
|
12610
12641
|
signal.current = userHandler;
|
|
@@ -12623,7 +12654,7 @@ function useKeypress(userHandler) {
|
|
|
12623
12654
|
}, []);
|
|
12624
12655
|
}
|
|
12625
12656
|
|
|
12626
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12657
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
12627
12658
|
var import_cli_width = __toESM(require_cli_width(), 1);
|
|
12628
12659
|
var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
|
|
12629
12660
|
function breakLines(content, width) {
|
|
@@ -12633,7 +12664,7 @@ function readlineWidth() {
|
|
|
12633
12664
|
return (0, import_cli_width.default)({ defaultWidth: 80, output: readline().output });
|
|
12634
12665
|
}
|
|
12635
12666
|
|
|
12636
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12667
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
|
12637
12668
|
function usePointerPosition({ active, renderedItems, pageSize, loop }) {
|
|
12638
12669
|
const state = useRef({
|
|
12639
12670
|
lastPointer: active,
|
|
@@ -12722,7 +12753,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
|
12722
12753
|
return pageBuffer.filter((line) => typeof line === "string").join("\n");
|
|
12723
12754
|
}
|
|
12724
12755
|
|
|
12725
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12756
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
12726
12757
|
var import_mute_stream = __toESM(require_lib(), 1);
|
|
12727
12758
|
import * as readline2 from "readline";
|
|
12728
12759
|
import { AsyncResource as AsyncResource3 } from "async_hooks";
|
|
@@ -12978,14 +13009,28 @@ var {
|
|
|
12978
13009
|
unload
|
|
12979
13010
|
} = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback());
|
|
12980
13011
|
|
|
12981
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
12982
|
-
var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
|
13012
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
12983
13013
|
import { stripVTControlCharacters } from "util";
|
|
13014
|
+
|
|
13015
|
+
// ../../node_modules/.pnpm/@inquirer+ansi@1.0.1/node_modules/@inquirer/ansi/dist/esm/index.js
|
|
13016
|
+
var ESC = "\x1B[";
|
|
13017
|
+
var cursorLeft = ESC + "G";
|
|
13018
|
+
var cursorHide = ESC + "?25l";
|
|
13019
|
+
var cursorShow = ESC + "?25h";
|
|
13020
|
+
var cursorUp = (rows = 1) => rows > 0 ? `${ESC}${rows}A` : "";
|
|
13021
|
+
var cursorDown = (rows = 1) => rows > 0 ? `${ESC}${rows}B` : "";
|
|
13022
|
+
var cursorTo = (x, y2) => {
|
|
13023
|
+
if (typeof y2 === "number" && !Number.isNaN(y2)) {
|
|
13024
|
+
return `${ESC}${y2 + 1};${x + 1}H`;
|
|
13025
|
+
}
|
|
13026
|
+
return `${ESC}${x + 1}G`;
|
|
13027
|
+
};
|
|
13028
|
+
var eraseLine = ESC + "2K";
|
|
13029
|
+
var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
|
|
13030
|
+
|
|
13031
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
12984
13032
|
var height = (content) => content.split("\n").length;
|
|
12985
13033
|
var lastLine = (content) => content.split("\n").pop() ?? "";
|
|
12986
|
-
function cursorDown(n2) {
|
|
12987
|
-
return n2 > 0 ? import_ansi_escapes.default.cursorDown(n2) : "";
|
|
12988
|
-
}
|
|
12989
13034
|
var ScreenManager = class {
|
|
12990
13035
|
// These variables are keeping information to allow correct prompt re-rendering
|
|
12991
13036
|
height = 0;
|
|
@@ -13020,30 +13065,30 @@ var ScreenManager = class {
|
|
|
13020
13065
|
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
|
13021
13066
|
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
|
|
13022
13067
|
if (bottomContentHeight > 0)
|
|
13023
|
-
output +=
|
|
13024
|
-
output +=
|
|
13025
|
-
this.write(cursorDown(this.extraLinesUnderPrompt) +
|
|
13068
|
+
output += cursorUp(bottomContentHeight);
|
|
13069
|
+
output += cursorTo(this.cursorPos.cols);
|
|
13070
|
+
this.write(cursorDown(this.extraLinesUnderPrompt) + eraseLines(this.height) + output);
|
|
13026
13071
|
this.extraLinesUnderPrompt = bottomContentHeight;
|
|
13027
13072
|
this.height = height(output);
|
|
13028
13073
|
}
|
|
13029
13074
|
checkCursorPos() {
|
|
13030
13075
|
const cursorPos = this.rl.getCursorPos();
|
|
13031
13076
|
if (cursorPos.cols !== this.cursorPos.cols) {
|
|
13032
|
-
this.write(
|
|
13077
|
+
this.write(cursorTo(cursorPos.cols));
|
|
13033
13078
|
this.cursorPos = cursorPos;
|
|
13034
13079
|
}
|
|
13035
13080
|
}
|
|
13036
13081
|
done({ clearContent }) {
|
|
13037
13082
|
this.rl.setPrompt("");
|
|
13038
13083
|
let output = cursorDown(this.extraLinesUnderPrompt);
|
|
13039
|
-
output += clearContent ?
|
|
13040
|
-
output +=
|
|
13084
|
+
output += clearContent ? eraseLines(this.height) : "\n";
|
|
13085
|
+
output += cursorShow;
|
|
13041
13086
|
this.write(output);
|
|
13042
13087
|
this.rl.close();
|
|
13043
13088
|
}
|
|
13044
13089
|
};
|
|
13045
13090
|
|
|
13046
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
13091
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
13047
13092
|
var PromisePolyfill = class extends Promise {
|
|
13048
13093
|
// Available starting from Node 22
|
|
13049
13094
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers
|
|
@@ -13058,7 +13103,7 @@ var PromisePolyfill = class extends Promise {
|
|
|
13058
13103
|
}
|
|
13059
13104
|
};
|
|
13060
13105
|
|
|
13061
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
13106
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
13062
13107
|
function getCallSites() {
|
|
13063
13108
|
const _prepareStackTrace = Error.prepareStackTrace;
|
|
13064
13109
|
let result = [];
|
|
@@ -13145,7 +13190,7 @@ function createPrompt(view) {
|
|
|
13145
13190
|
return prompt;
|
|
13146
13191
|
}
|
|
13147
13192
|
|
|
13148
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.
|
|
13193
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@20.19.22/node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
|
13149
13194
|
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
|
13150
13195
|
var Separator = class {
|
|
13151
13196
|
separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
|
|
@@ -13160,9 +13205,8 @@ var Separator = class {
|
|
|
13160
13205
|
}
|
|
13161
13206
|
};
|
|
13162
13207
|
|
|
13163
|
-
// ../../node_modules/.pnpm/@inquirer+checkbox@4.
|
|
13208
|
+
// ../../node_modules/.pnpm/@inquirer+checkbox@4.3.0_@types+node@20.19.22/node_modules/@inquirer/checkbox/dist/esm/index.js
|
|
13164
13209
|
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
|
13165
|
-
var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
|
|
13166
13210
|
var checkboxTheme = {
|
|
13167
13211
|
icon: {
|
|
13168
13212
|
checked: import_yoctocolors_cjs3.default.green(esm_default.circleFilled),
|
|
@@ -13172,9 +13216,11 @@ var checkboxTheme = {
|
|
|
13172
13216
|
style: {
|
|
13173
13217
|
disabledChoice: (text) => import_yoctocolors_cjs3.default.dim(`- ${text}`),
|
|
13174
13218
|
renderSelectedChoices: (selectedChoices) => selectedChoices.map((choice) => choice.short).join(", "),
|
|
13175
|
-
description: (text) => import_yoctocolors_cjs3.default.cyan(text)
|
|
13219
|
+
description: (text) => import_yoctocolors_cjs3.default.cyan(text),
|
|
13220
|
+
keysHelpTip: (keys) => keys.map(([key, action]) => `${import_yoctocolors_cjs3.default.bold(key)} ${import_yoctocolors_cjs3.default.dim(action)}`).join(import_yoctocolors_cjs3.default.dim(" \u2022 "))
|
|
13176
13221
|
},
|
|
13177
|
-
helpMode: "
|
|
13222
|
+
helpMode: "always",
|
|
13223
|
+
keybindings: []
|
|
13178
13224
|
};
|
|
13179
13225
|
function isSelectable(item) {
|
|
13180
13226
|
return !Separator.isSeparator(item) && !item.disabled;
|
|
@@ -13199,6 +13245,7 @@ function normalizeChoices(choices2) {
|
|
|
13199
13245
|
value: choice,
|
|
13200
13246
|
name: choice,
|
|
13201
13247
|
short: choice,
|
|
13248
|
+
checkedName: choice,
|
|
13202
13249
|
disabled: false,
|
|
13203
13250
|
checked: false
|
|
13204
13251
|
};
|
|
@@ -13208,6 +13255,7 @@ function normalizeChoices(choices2) {
|
|
|
13208
13255
|
value: choice.value,
|
|
13209
13256
|
name,
|
|
13210
13257
|
short: choice.short ?? name,
|
|
13258
|
+
checkedName: choice.checkedName ?? name,
|
|
13211
13259
|
disabled: choice.disabled ?? false,
|
|
13212
13260
|
checked: choice.checked ?? false
|
|
13213
13261
|
};
|
|
@@ -13218,10 +13266,17 @@ function normalizeChoices(choices2) {
|
|
|
13218
13266
|
});
|
|
13219
13267
|
}
|
|
13220
13268
|
var esm_default2 = createPrompt((config, done) => {
|
|
13221
|
-
const {
|
|
13269
|
+
const {
|
|
13270
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
13271
|
+
instructions,
|
|
13272
|
+
pageSize = 7,
|
|
13273
|
+
loop = true,
|
|
13274
|
+
required,
|
|
13275
|
+
validate: validate2 = () => true
|
|
13276
|
+
} = config;
|
|
13222
13277
|
const shortcuts = { all: "a", invert: "i", ...config.shortcuts };
|
|
13223
13278
|
const theme = makeTheme(checkboxTheme, config.theme);
|
|
13224
|
-
const
|
|
13279
|
+
const { keybindings } = theme;
|
|
13225
13280
|
const [status, setStatus] = useState("idle");
|
|
13226
13281
|
const prefix = usePrefix({ status, theme });
|
|
13227
13282
|
const [items, setItems] = useState(normalizeChoices(config.choices));
|
|
@@ -13234,7 +13289,6 @@ var esm_default2 = createPrompt((config, done) => {
|
|
|
13234
13289
|
return { first, last };
|
|
13235
13290
|
}, [items]);
|
|
13236
13291
|
const [active, setActive] = useState(bounds.first);
|
|
13237
|
-
const [showHelpTip, setShowHelpTip] = useState(true);
|
|
13238
13292
|
const [errorMsg, setError] = useState();
|
|
13239
13293
|
useKeypress(async (key) => {
|
|
13240
13294
|
if (isEnterKey(key)) {
|
|
@@ -13248,9 +13302,9 @@ var esm_default2 = createPrompt((config, done) => {
|
|
|
13248
13302
|
} else {
|
|
13249
13303
|
setError(isValid || "You must select a valid value");
|
|
13250
13304
|
}
|
|
13251
|
-
} else if (isUpKey(key) || isDownKey(key)) {
|
|
13252
|
-
if (loop || isUpKey(key) && active !== bounds.first || isDownKey(key) && active !== bounds.last) {
|
|
13253
|
-
const offset = isUpKey(key) ? -1 : 1;
|
|
13305
|
+
} else if (isUpKey(key, keybindings) || isDownKey(key, keybindings)) {
|
|
13306
|
+
if (loop || isUpKey(key, keybindings) && active !== bounds.first || isDownKey(key, keybindings) && active !== bounds.last) {
|
|
13307
|
+
const offset = isUpKey(key, keybindings) ? -1 : 1;
|
|
13254
13308
|
let next = active;
|
|
13255
13309
|
do {
|
|
13256
13310
|
next = (next + offset + items.length) % items.length;
|
|
@@ -13259,7 +13313,6 @@ var esm_default2 = createPrompt((config, done) => {
|
|
|
13259
13313
|
}
|
|
13260
13314
|
} else if (isSpaceKey(key)) {
|
|
13261
13315
|
setError(void 0);
|
|
13262
|
-
setShowHelpTip(false);
|
|
13263
13316
|
setItems(items.map((choice, i2) => i2 === active ? toggle(choice) : choice));
|
|
13264
13317
|
} else if (key.name === shortcuts.all) {
|
|
13265
13318
|
const selectAll = items.some((choice) => isSelectable(choice) && !choice.checked);
|
|
@@ -13299,9 +13352,10 @@ var esm_default2 = createPrompt((config, done) => {
|
|
|
13299
13352
|
description = item.description;
|
|
13300
13353
|
}
|
|
13301
13354
|
const checkbox = item.checked ? theme.icon.checked : theme.icon.unchecked;
|
|
13355
|
+
const name = item.checked ? item.checkedName : item.name;
|
|
13302
13356
|
const color = isActive ? theme.style.highlight : (x) => x;
|
|
13303
13357
|
const cursor = isActive ? theme.icon.cursor : " ";
|
|
13304
|
-
return color(`${cursor}${checkbox} ${
|
|
13358
|
+
return color(`${cursor}${checkbox} ${name}`);
|
|
13305
13359
|
},
|
|
13306
13360
|
pageSize,
|
|
13307
13361
|
loop
|
|
@@ -13309,41 +13363,37 @@ var esm_default2 = createPrompt((config, done) => {
|
|
|
13309
13363
|
if (status === "done") {
|
|
13310
13364
|
const selection = items.filter(isChecked);
|
|
13311
13365
|
const answer = theme.style.answer(theme.style.renderSelectedChoices(selection, items));
|
|
13312
|
-
return
|
|
13366
|
+
return [prefix, message, answer].filter(Boolean).join(" ");
|
|
13313
13367
|
}
|
|
13314
|
-
let
|
|
13315
|
-
|
|
13316
|
-
if (theme.helpMode === "always" || theme.helpMode === "auto" && showHelpTip && (instructions === void 0 || instructions)) {
|
|
13368
|
+
let helpLine;
|
|
13369
|
+
if (theme.helpMode !== "never" && instructions !== false) {
|
|
13317
13370
|
if (typeof instructions === "string") {
|
|
13318
|
-
|
|
13371
|
+
helpLine = instructions;
|
|
13319
13372
|
} else {
|
|
13320
13373
|
const keys = [
|
|
13321
|
-
|
|
13322
|
-
|
|
13323
|
-
shortcuts.invert ? `${theme.style.key(shortcuts.invert)} to invert selection` : "",
|
|
13324
|
-
`and ${theme.style.key("enter")} to proceed`
|
|
13374
|
+
["\u2191\u2193", "navigate"],
|
|
13375
|
+
["space", "select"]
|
|
13325
13376
|
];
|
|
13326
|
-
|
|
13327
|
-
|
|
13328
|
-
|
|
13329
|
-
|
|
13330
|
-
|
|
13331
|
-
|
|
13332
|
-
|
|
13333
|
-
|
|
13334
|
-
|
|
13335
|
-
|
|
13336
|
-
|
|
13337
|
-
|
|
13338
|
-
|
|
13339
|
-
|
|
13340
|
-
|
|
13341
|
-
|
|
13342
|
-
return `${
|
|
13343
|
-
${page}${helpTipBottom}${choiceDescription}${error2}${import_ansi_escapes2.default.cursorHide}`;
|
|
13377
|
+
if (shortcuts.all)
|
|
13378
|
+
keys.push([shortcuts.all, "all"]);
|
|
13379
|
+
if (shortcuts.invert)
|
|
13380
|
+
keys.push([shortcuts.invert, "invert"]);
|
|
13381
|
+
keys.push(["\u23CE", "submit"]);
|
|
13382
|
+
helpLine = theme.style.keysHelpTip(keys);
|
|
13383
|
+
}
|
|
13384
|
+
}
|
|
13385
|
+
const lines = [
|
|
13386
|
+
[prefix, message].filter(Boolean).join(" "),
|
|
13387
|
+
page,
|
|
13388
|
+
" ",
|
|
13389
|
+
description ? theme.style.description(description) : "",
|
|
13390
|
+
errorMsg ? theme.style.error(errorMsg) : "",
|
|
13391
|
+
helpLine
|
|
13392
|
+
].filter(Boolean).join("\n").trimEnd();
|
|
13393
|
+
return `${lines}${cursorHide}`;
|
|
13344
13394
|
});
|
|
13345
13395
|
|
|
13346
|
-
// ../../node_modules/.pnpm/@inquirer+external-editor@1.0.
|
|
13396
|
+
// ../../node_modules/.pnpm/@inquirer+external-editor@1.0.2_@types+node@20.19.22/node_modules/@inquirer/external-editor/dist/esm/index.js
|
|
13347
13397
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
13348
13398
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
13349
13399
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -13352,7 +13402,7 @@ import path2 from "path";
|
|
|
13352
13402
|
import os from "os";
|
|
13353
13403
|
import { randomUUID } from "crypto";
|
|
13354
13404
|
|
|
13355
|
-
// ../../node_modules/.pnpm/@inquirer+external-editor@1.0.
|
|
13405
|
+
// ../../node_modules/.pnpm/@inquirer+external-editor@1.0.2_@types+node@20.19.22/node_modules/@inquirer/external-editor/dist/esm/errors/CreateFileError.js
|
|
13356
13406
|
var CreateFileError = class extends Error {
|
|
13357
13407
|
originalError;
|
|
13358
13408
|
constructor(originalError) {
|
|
@@ -13361,7 +13411,7 @@ var CreateFileError = class extends Error {
|
|
|
13361
13411
|
}
|
|
13362
13412
|
};
|
|
13363
13413
|
|
|
13364
|
-
// ../../node_modules/.pnpm/@inquirer+external-editor@1.0.
|
|
13414
|
+
// ../../node_modules/.pnpm/@inquirer+external-editor@1.0.2_@types+node@20.19.22/node_modules/@inquirer/external-editor/dist/esm/errors/LaunchEditorError.js
|
|
13365
13415
|
var LaunchEditorError = class extends Error {
|
|
13366
13416
|
originalError;
|
|
13367
13417
|
constructor(originalError) {
|
|
@@ -13370,7 +13420,7 @@ var LaunchEditorError = class extends Error {
|
|
|
13370
13420
|
}
|
|
13371
13421
|
};
|
|
13372
13422
|
|
|
13373
|
-
// ../../node_modules/.pnpm/@inquirer+external-editor@1.0.
|
|
13423
|
+
// ../../node_modules/.pnpm/@inquirer+external-editor@1.0.2_@types+node@20.19.22/node_modules/@inquirer/external-editor/dist/esm/errors/ReadFileError.js
|
|
13374
13424
|
var ReadFileError = class extends Error {
|
|
13375
13425
|
originalError;
|
|
13376
13426
|
constructor(originalError) {
|
|
@@ -13379,7 +13429,7 @@ var ReadFileError = class extends Error {
|
|
|
13379
13429
|
}
|
|
13380
13430
|
};
|
|
13381
13431
|
|
|
13382
|
-
// ../../node_modules/.pnpm/@inquirer+external-editor@1.0.
|
|
13432
|
+
// ../../node_modules/.pnpm/@inquirer+external-editor@1.0.2_@types+node@20.19.22/node_modules/@inquirer/external-editor/dist/esm/errors/RemoveFileError.js
|
|
13383
13433
|
var RemoveFileError = class extends Error {
|
|
13384
13434
|
originalError;
|
|
13385
13435
|
constructor(originalError) {
|
|
@@ -13388,7 +13438,7 @@ var RemoveFileError = class extends Error {
|
|
|
13388
13438
|
}
|
|
13389
13439
|
};
|
|
13390
13440
|
|
|
13391
|
-
// ../../node_modules/.pnpm/@inquirer+external-editor@1.0.
|
|
13441
|
+
// ../../node_modules/.pnpm/@inquirer+external-editor@1.0.2_@types+node@20.19.22/node_modules/@inquirer/external-editor/dist/esm/index.js
|
|
13392
13442
|
function editAsync(text = "", callback, fileOptions) {
|
|
13393
13443
|
const editor = new ExternalEditor(text, fileOptions);
|
|
13394
13444
|
editor.runAsync((err, result) => {
|
|
@@ -13542,7 +13592,7 @@ var ExternalEditor = class {
|
|
|
13542
13592
|
}
|
|
13543
13593
|
};
|
|
13544
13594
|
|
|
13545
|
-
// ../../node_modules/.pnpm/@inquirer+editor@4.2.
|
|
13595
|
+
// ../../node_modules/.pnpm/@inquirer+editor@4.2.21_@types+node@20.19.22/node_modules/@inquirer/editor/dist/esm/index.js
|
|
13546
13596
|
var editorTheme = {
|
|
13547
13597
|
validationFailureMode: "keep"
|
|
13548
13598
|
};
|
|
@@ -13611,7 +13661,7 @@ var esm_default3 = createPrompt((config, done) => {
|
|
|
13611
13661
|
return [[prefix, message, helpTip].filter(Boolean).join(" "), error2];
|
|
13612
13662
|
});
|
|
13613
13663
|
|
|
13614
|
-
// ../../node_modules/.pnpm/@inquirer+confirm@5.1.
|
|
13664
|
+
// ../../node_modules/.pnpm/@inquirer+confirm@5.1.19_@types+node@20.19.22/node_modules/@inquirer/confirm/dist/esm/index.js
|
|
13615
13665
|
function getBooleanValue(value, defaultValue) {
|
|
13616
13666
|
let answer = defaultValue !== false;
|
|
13617
13667
|
if (/^(y|yes)/i.test(value))
|
|
@@ -13657,7 +13707,7 @@ var esm_default4 = createPrompt((config, done) => {
|
|
|
13657
13707
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
|
13658
13708
|
});
|
|
13659
13709
|
|
|
13660
|
-
// ../../node_modules/.pnpm/@inquirer+input@4.2.
|
|
13710
|
+
// ../../node_modules/.pnpm/@inquirer+input@4.2.5_@types+node@20.19.22/node_modules/@inquirer/input/dist/esm/index.js
|
|
13661
13711
|
var inputTheme = {
|
|
13662
13712
|
validationFailureMode: "keep"
|
|
13663
13713
|
};
|
|
@@ -13729,7 +13779,7 @@ var esm_default5 = createPrompt((config, done) => {
|
|
|
13729
13779
|
];
|
|
13730
13780
|
});
|
|
13731
13781
|
|
|
13732
|
-
// ../../node_modules/.pnpm/@inquirer+number@3.0.
|
|
13782
|
+
// ../../node_modules/.pnpm/@inquirer+number@3.0.21_@types+node@20.19.22/node_modules/@inquirer/number/dist/esm/index.js
|
|
13733
13783
|
function isStepOf(value, step, min) {
|
|
13734
13784
|
const valuePow = value * Math.pow(10, 6);
|
|
13735
13785
|
const stepPow = step * Math.pow(10, 6);
|
|
@@ -13810,7 +13860,7 @@ var esm_default6 = createPrompt((config, done) => {
|
|
|
13810
13860
|
];
|
|
13811
13861
|
});
|
|
13812
13862
|
|
|
13813
|
-
// ../../node_modules/.pnpm/@inquirer+expand@4.0.
|
|
13863
|
+
// ../../node_modules/.pnpm/@inquirer+expand@4.0.21_@types+node@20.19.22/node_modules/@inquirer/expand/dist/esm/index.js
|
|
13814
13864
|
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
|
13815
13865
|
function normalizeChoices2(choices2) {
|
|
13816
13866
|
return choices2.map((choice) => {
|
|
@@ -13906,7 +13956,7 @@ var esm_default7 = createPrompt((config, done) => {
|
|
|
13906
13956
|
];
|
|
13907
13957
|
});
|
|
13908
13958
|
|
|
13909
|
-
// ../../node_modules/.pnpm/@inquirer+rawlist@4.1.
|
|
13959
|
+
// ../../node_modules/.pnpm/@inquirer+rawlist@4.1.9_@types+node@20.19.22/node_modules/@inquirer/rawlist/dist/esm/index.js
|
|
13910
13960
|
var import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
|
|
13911
13961
|
var numberRegex = /\d+/;
|
|
13912
13962
|
function isSelectableChoice(choice) {
|
|
@@ -13938,11 +13988,10 @@ function normalizeChoices3(choices2) {
|
|
|
13938
13988
|
function getSelectedChoice(input, choices2) {
|
|
13939
13989
|
let selectedChoice;
|
|
13940
13990
|
const selectableChoices = choices2.filter(isSelectableChoice);
|
|
13941
|
-
|
|
13991
|
+
selectedChoice = selectableChoices.find((choice) => choice.key === input);
|
|
13992
|
+
if (!selectedChoice && numberRegex.test(input)) {
|
|
13942
13993
|
const answer = Number.parseInt(input, 10) - 1;
|
|
13943
13994
|
selectedChoice = selectableChoices[answer];
|
|
13944
|
-
} else {
|
|
13945
|
-
selectedChoice = selectableChoices.find((choice) => choice.key === input);
|
|
13946
13995
|
}
|
|
13947
13996
|
return selectedChoice ? [selectedChoice, choices2.indexOf(selectedChoice)] : [void 0, void 0];
|
|
13948
13997
|
}
|
|
@@ -14017,8 +14066,7 @@ var esm_default8 = createPrompt((config, done) => {
|
|
|
14017
14066
|
];
|
|
14018
14067
|
});
|
|
14019
14068
|
|
|
14020
|
-
// ../../node_modules/.pnpm/@inquirer+password@4.0.
|
|
14021
|
-
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
|
14069
|
+
// ../../node_modules/.pnpm/@inquirer+password@4.0.21_@types+node@20.19.22/node_modules/@inquirer/password/dist/esm/index.js
|
|
14022
14070
|
var esm_default9 = createPrompt((config, done) => {
|
|
14023
14071
|
const { validate: validate2 = () => true } = config;
|
|
14024
14072
|
const theme = makeTheme(config.theme);
|
|
@@ -14055,7 +14103,7 @@ var esm_default9 = createPrompt((config, done) => {
|
|
|
14055
14103
|
const maskChar = typeof config.mask === "string" ? config.mask : "*";
|
|
14056
14104
|
formattedValue = maskChar.repeat(value.length);
|
|
14057
14105
|
} else if (status !== "done") {
|
|
14058
|
-
helpTip = `${theme.style.help("[input is masked]")}${
|
|
14106
|
+
helpTip = `${theme.style.help("[input is masked]")}${cursorHide}`;
|
|
14059
14107
|
}
|
|
14060
14108
|
if (status === "done") {
|
|
14061
14109
|
formattedValue = theme.style.answer(formattedValue);
|
|
@@ -14067,16 +14115,17 @@ var esm_default9 = createPrompt((config, done) => {
|
|
|
14067
14115
|
return [[prefix, message, config.mask ? formattedValue : helpTip].join(" "), error2];
|
|
14068
14116
|
});
|
|
14069
14117
|
|
|
14070
|
-
// ../../node_modules/.pnpm/@inquirer+search@3.
|
|
14118
|
+
// ../../node_modules/.pnpm/@inquirer+search@3.2.0_@types+node@20.19.22/node_modules/@inquirer/search/dist/esm/index.js
|
|
14071
14119
|
var import_yoctocolors_cjs6 = __toESM(require_yoctocolors_cjs(), 1);
|
|
14072
14120
|
var searchTheme = {
|
|
14073
14121
|
icon: { cursor: esm_default.pointer },
|
|
14074
14122
|
style: {
|
|
14075
14123
|
disabled: (text) => import_yoctocolors_cjs6.default.dim(`- ${text}`),
|
|
14076
14124
|
searchTerm: (text) => import_yoctocolors_cjs6.default.cyan(text),
|
|
14077
|
-
description: (text) => import_yoctocolors_cjs6.default.cyan(text)
|
|
14125
|
+
description: (text) => import_yoctocolors_cjs6.default.cyan(text),
|
|
14126
|
+
keysHelpTip: (keys) => keys.map(([key, action]) => `${import_yoctocolors_cjs6.default.bold(key)} ${import_yoctocolors_cjs6.default.dim(action)}`).join(import_yoctocolors_cjs6.default.dim(" \u2022 "))
|
|
14078
14127
|
},
|
|
14079
|
-
helpMode: "
|
|
14128
|
+
helpMode: "always"
|
|
14080
14129
|
};
|
|
14081
14130
|
function isSelectable2(item) {
|
|
14082
14131
|
return !Separator.isSeparator(item) && !item.disabled;
|
|
@@ -14109,7 +14158,6 @@ function normalizeChoices4(choices2) {
|
|
|
14109
14158
|
var esm_default10 = createPrompt((config, done) => {
|
|
14110
14159
|
const { pageSize = 7, validate: validate2 = () => true } = config;
|
|
14111
14160
|
const theme = makeTheme(searchTheme, config.theme);
|
|
14112
|
-
const firstRender = useRef(true);
|
|
14113
14161
|
const [status, setStatus] = useState("loading");
|
|
14114
14162
|
const [searchTerm, setSearchTerm] = useState("");
|
|
14115
14163
|
const [searchResults, setSearchResults] = useState([]);
|
|
@@ -14185,14 +14233,17 @@ var esm_default10 = createPrompt((config, done) => {
|
|
|
14185
14233
|
}
|
|
14186
14234
|
});
|
|
14187
14235
|
const message = theme.style.message(config.message, status);
|
|
14188
|
-
|
|
14189
|
-
|
|
14190
|
-
|
|
14191
|
-
|
|
14192
|
-
|
|
14193
|
-
|
|
14194
|
-
|
|
14195
|
-
|
|
14236
|
+
let helpLine;
|
|
14237
|
+
if (theme.helpMode !== "never") {
|
|
14238
|
+
if (config.instructions) {
|
|
14239
|
+
const { pager, navigation } = config.instructions;
|
|
14240
|
+
helpLine = theme.style.help(searchResults.length > pageSize ? pager : navigation);
|
|
14241
|
+
} else {
|
|
14242
|
+
helpLine = theme.style.keysHelpTip([
|
|
14243
|
+
["\u2191\u2193", "navigate"],
|
|
14244
|
+
["\u23CE", "select"]
|
|
14245
|
+
]);
|
|
14246
|
+
}
|
|
14196
14247
|
}
|
|
14197
14248
|
const page = usePagination({
|
|
14198
14249
|
items: searchResults,
|
|
@@ -14220,30 +14271,33 @@ ${theme.style.help(`(${config.instructions?.navigation ?? "Use arrow keys"})`)}`
|
|
|
14220
14271
|
}
|
|
14221
14272
|
let searchStr;
|
|
14222
14273
|
if (status === "done" && selectedChoice) {
|
|
14223
|
-
|
|
14224
|
-
return `${prefix} ${message} ${theme.style.answer(answer)}`;
|
|
14274
|
+
return [prefix, message, theme.style.answer(selectedChoice.short)].filter(Boolean).join(" ").trimEnd();
|
|
14225
14275
|
} else {
|
|
14226
14276
|
searchStr = theme.style.searchTerm(searchTerm);
|
|
14227
14277
|
}
|
|
14228
|
-
const
|
|
14229
|
-
|
|
14230
|
-
|
|
14231
|
-
|
|
14232
|
-
|
|
14233
|
-
|
|
14278
|
+
const description = selectedChoice?.description;
|
|
14279
|
+
const header = [prefix, message, searchStr].filter(Boolean).join(" ").trimEnd();
|
|
14280
|
+
const body = [
|
|
14281
|
+
error2 ?? page,
|
|
14282
|
+
" ",
|
|
14283
|
+
description ? theme.style.description(description) : "",
|
|
14284
|
+
helpLine
|
|
14285
|
+
].filter(Boolean).join("\n").trimEnd();
|
|
14286
|
+
return [header, body];
|
|
14234
14287
|
});
|
|
14235
14288
|
|
|
14236
|
-
// ../../node_modules/.pnpm/@inquirer+select@4.
|
|
14289
|
+
// ../../node_modules/.pnpm/@inquirer+select@4.4.0_@types+node@20.19.22/node_modules/@inquirer/select/dist/esm/index.js
|
|
14237
14290
|
var import_yoctocolors_cjs7 = __toESM(require_yoctocolors_cjs(), 1);
|
|
14238
|
-
var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
|
|
14239
14291
|
var selectTheme = {
|
|
14240
14292
|
icon: { cursor: esm_default.pointer },
|
|
14241
14293
|
style: {
|
|
14242
14294
|
disabled: (text) => import_yoctocolors_cjs7.default.dim(`- ${text}`),
|
|
14243
|
-
description: (text) => import_yoctocolors_cjs7.default.cyan(text)
|
|
14295
|
+
description: (text) => import_yoctocolors_cjs7.default.cyan(text),
|
|
14296
|
+
keysHelpTip: (keys) => keys.map(([key, action]) => `${import_yoctocolors_cjs7.default.bold(key)} ${import_yoctocolors_cjs7.default.dim(action)}`).join(import_yoctocolors_cjs7.default.dim(" \u2022 "))
|
|
14244
14297
|
},
|
|
14245
|
-
helpMode: "
|
|
14246
|
-
indexMode: "hidden"
|
|
14298
|
+
helpMode: "always",
|
|
14299
|
+
indexMode: "hidden",
|
|
14300
|
+
keybindings: []
|
|
14247
14301
|
};
|
|
14248
14302
|
function isSelectable3(item) {
|
|
14249
14303
|
return !Separator.isSeparator(item) && !item.disabled;
|
|
@@ -14275,11 +14329,12 @@ function normalizeChoices5(choices2) {
|
|
|
14275
14329
|
}
|
|
14276
14330
|
var esm_default11 = createPrompt((config, done) => {
|
|
14277
14331
|
const { loop = true, pageSize = 7 } = config;
|
|
14278
|
-
const firstRender = useRef(true);
|
|
14279
14332
|
const theme = makeTheme(selectTheme, config.theme);
|
|
14333
|
+
const { keybindings } = theme;
|
|
14280
14334
|
const [status, setStatus] = useState("idle");
|
|
14281
14335
|
const prefix = usePrefix({ status, theme });
|
|
14282
14336
|
const searchTimeoutRef = useRef();
|
|
14337
|
+
const searchEnabled = !keybindings.includes("vim");
|
|
14283
14338
|
const items = useMemo(() => normalizeChoices5(config.choices), [config.choices]);
|
|
14284
14339
|
const bounds = useMemo(() => {
|
|
14285
14340
|
const first = items.findIndex(isSelectable3);
|
|
@@ -14301,10 +14356,10 @@ var esm_default11 = createPrompt((config, done) => {
|
|
|
14301
14356
|
if (isEnterKey(key)) {
|
|
14302
14357
|
setStatus("done");
|
|
14303
14358
|
done(selectedChoice.value);
|
|
14304
|
-
} else if (isUpKey(key) || isDownKey(key)) {
|
|
14359
|
+
} else if (isUpKey(key, keybindings) || isDownKey(key, keybindings)) {
|
|
14305
14360
|
rl.clearLine(0);
|
|
14306
|
-
if (loop || isUpKey(key) && active !== bounds.first || isDownKey(key) && active !== bounds.last) {
|
|
14307
|
-
const offset = isUpKey(key) ? -1 : 1;
|
|
14361
|
+
if (loop || isUpKey(key, keybindings) && active !== bounds.first || isDownKey(key, keybindings) && active !== bounds.last) {
|
|
14362
|
+
const offset = isUpKey(key, keybindings) ? -1 : 1;
|
|
14308
14363
|
let next = active;
|
|
14309
14364
|
do {
|
|
14310
14365
|
next = (next + offset + items.length) % items.length;
|
|
@@ -14329,7 +14384,7 @@ var esm_default11 = createPrompt((config, done) => {
|
|
|
14329
14384
|
}, 700);
|
|
14330
14385
|
} else if (isBackspaceKey(key)) {
|
|
14331
14386
|
rl.clearLine(0);
|
|
14332
|
-
} else {
|
|
14387
|
+
} else if (searchEnabled) {
|
|
14333
14388
|
const searchTerm = rl.line.toLowerCase();
|
|
14334
14389
|
const matchIndex = items.findIndex((item) => {
|
|
14335
14390
|
if (Separator.isSeparator(item) || !isSelectable3(item))
|
|
@@ -14348,15 +14403,16 @@ var esm_default11 = createPrompt((config, done) => {
|
|
|
14348
14403
|
clearTimeout(searchTimeoutRef.current);
|
|
14349
14404
|
}, []);
|
|
14350
14405
|
const message = theme.style.message(config.message, status);
|
|
14351
|
-
let
|
|
14352
|
-
|
|
14353
|
-
|
|
14354
|
-
|
|
14355
|
-
|
|
14356
|
-
helpTipBottom = `
|
|
14357
|
-
${theme.style.help(`(${config.instructions?.pager ?? "Use arrow keys to reveal more choices"})`)}`;
|
|
14406
|
+
let helpLine;
|
|
14407
|
+
if (theme.helpMode !== "never") {
|
|
14408
|
+
if (config.instructions) {
|
|
14409
|
+
const { pager, navigation } = config.instructions;
|
|
14410
|
+
helpLine = theme.style.help(items.length > pageSize ? pager : navigation);
|
|
14358
14411
|
} else {
|
|
14359
|
-
|
|
14412
|
+
helpLine = theme.style.keysHelpTip([
|
|
14413
|
+
["\u2191\u2193", "navigate"],
|
|
14414
|
+
["\u23CE", "select"]
|
|
14415
|
+
]);
|
|
14360
14416
|
}
|
|
14361
14417
|
}
|
|
14362
14418
|
let separatorCount = 0;
|
|
@@ -14381,12 +14437,17 @@ ${theme.style.help(`(${config.instructions?.pager ?? "Use arrow keys to reveal m
|
|
|
14381
14437
|
loop
|
|
14382
14438
|
});
|
|
14383
14439
|
if (status === "done") {
|
|
14384
|
-
return
|
|
14385
|
-
}
|
|
14386
|
-
const
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
|
|
14440
|
+
return [prefix, message, theme.style.answer(selectedChoice.short)].filter(Boolean).join(" ");
|
|
14441
|
+
}
|
|
14442
|
+
const { description } = selectedChoice;
|
|
14443
|
+
const lines = [
|
|
14444
|
+
[prefix, message].filter(Boolean).join(" "),
|
|
14445
|
+
page,
|
|
14446
|
+
" ",
|
|
14447
|
+
description ? theme.style.description(description) : "",
|
|
14448
|
+
helpLine
|
|
14449
|
+
].filter(Boolean).join("\n").trimEnd();
|
|
14450
|
+
return `${lines}${cursorHide}`;
|
|
14390
14451
|
});
|
|
14391
14452
|
|
|
14392
14453
|
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/core.mjs
|
|
@@ -16842,7 +16903,7 @@ var createDefaultQueryTester = function(query, options) {
|
|
|
16842
16903
|
// package.json
|
|
16843
16904
|
var package_default = {
|
|
16844
16905
|
name: "@batijs/cli",
|
|
16845
|
-
version: "0.0.
|
|
16906
|
+
version: "0.0.478",
|
|
16846
16907
|
type: "module",
|
|
16847
16908
|
scripts: {
|
|
16848
16909
|
"check-types": "tsc --noEmit",
|
|
@@ -16857,18 +16918,18 @@ var package_default = {
|
|
|
16857
16918
|
devDependencies: {
|
|
16858
16919
|
"@batijs/build": "workspace:*",
|
|
16859
16920
|
"@batijs/compile": "workspace:*",
|
|
16860
|
-
"@inquirer/prompts": "^7.
|
|
16861
|
-
"@types/node": "^20.19.
|
|
16921
|
+
"@inquirer/prompts": "^7.9.0",
|
|
16922
|
+
"@types/node": "^20.19.21",
|
|
16862
16923
|
"@types/which": "^3.0.4",
|
|
16863
16924
|
citty: "^0.1.6",
|
|
16864
16925
|
colorette: "^2.0.20",
|
|
16865
|
-
esbuild: "^0.25.
|
|
16926
|
+
esbuild: "^0.25.11",
|
|
16866
16927
|
execa: "^9.6.0",
|
|
16867
16928
|
sift: "^17.1.3",
|
|
16868
16929
|
tsup: "^8.5.0",
|
|
16869
|
-
typescript: "^5.9.
|
|
16930
|
+
typescript: "^5.9.3",
|
|
16870
16931
|
"unplugin-purge-polyfills": "^0.1.0",
|
|
16871
|
-
vite: "^7.1.
|
|
16932
|
+
vite: "^7.1.10"
|
|
16872
16933
|
},
|
|
16873
16934
|
dependencies: {
|
|
16874
16935
|
"@batijs/core": "workspace:*",
|
|
@@ -16917,8 +16978,8 @@ var rulesMessages = {
|
|
|
16917
16978
|
`A ${inverse(bold("Server"))} is required when using ${inverse(bold("Data fetching"))}`
|
|
16918
16979
|
),
|
|
16919
16980
|
[RulesMessage.ERROR_CLOUDFLARE_R_COMPAT_SERVER]: error(
|
|
16920
|
-
`${inverse(bold("Cloudflare"))} is only compatible with ${inverse(bold("Hono"))}.
|
|
16921
|
-
Choose
|
|
16981
|
+
`${inverse(bold("Cloudflare"))} is only compatible with ${inverse(bold("Hono"))} or ${inverse(bold("H3"))}.
|
|
16982
|
+
Choose one of them or remove selected Server`
|
|
16922
16983
|
),
|
|
16923
16984
|
[RulesMessage.ERROR_AWS_R_COMPAT_SERVER]: error(
|
|
16924
16985
|
`${inverse(bold("AWS"))} deployment is only compatible with ${inverse(bold("Hono"))}`
|
|
@@ -16936,7 +16997,7 @@ Choose Hono or remove selected Server`
|
|
|
16936
16997
|
var __filename = fileURLToPath(import.meta.url);
|
|
16937
16998
|
var __dirname = dirname(__filename);
|
|
16938
16999
|
var isWin2 = process.platform === "win32";
|
|
16939
|
-
var pm =
|
|
17000
|
+
var pm = u_s();
|
|
16940
17001
|
function boilerplatesDir() {
|
|
16941
17002
|
if (existsSync2(join(__dirname, "boilerplates", "boilerplates.json"))) {
|
|
16942
17003
|
return join(__dirname, "boilerplates");
|
|
@@ -16970,10 +17031,10 @@ function findDescription(key) {
|
|
|
16970
17031
|
}
|
|
16971
17032
|
}
|
|
16972
17033
|
function printOK(dist, flags2) {
|
|
16973
|
-
const arrow0 =
|
|
16974
|
-
const book0 =
|
|
16975
|
-
const list3 =
|
|
16976
|
-
const cmd3 =
|
|
17034
|
+
const arrow0 = csr("\u2192", blueBright);
|
|
17035
|
+
const book0 = csr("\u{1F4DA}", blueBright);
|
|
17036
|
+
const list3 = csr("-", void 0, 3);
|
|
17037
|
+
const cmd3 = csr("$", gray, 3);
|
|
16977
17038
|
console.log(bold(`${green("\u2713")} Project created at ${cyan(dist)} with:`));
|
|
16978
17039
|
console.log(list3(green("Vike")));
|
|
16979
17040
|
for (const key of flags2) {
|