rolldown 0.12.1 → 0.12.2
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/cjs/cli.cjs +10 -23
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/parallel-plugin-worker.cjs +1 -1
- package/dist/esm/cli.mjs +10 -23
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/parallel-plugin-worker.mjs +1 -1
- package/dist/shared/{consola.36c0034f-p4CNcyTx.cjs → consola.36c0034f-N8xiTrv3.cjs} +14 -14
- package/dist/shared/{consola.36c0034f-QyAKDJpW.mjs → consola.36c0034f-jtHhMkSX.mjs} +14 -14
- package/dist/shared/{prompt-vP5sHLso.cjs → prompt-1K6oCkIU.cjs} +3 -3
- package/dist/shared/{prompt-LYk41n1z.mjs → prompt-pjyLzLci.mjs} +3 -3
- package/dist/shared/{rolldown-B7lvscUu.cjs → rolldown-SCF5NBN_.cjs} +1 -1
- package/dist/shared/rolldown-binding.wasi.cjs +1 -1
- package/dist/shared/{rolldown-PuG9roph.mjs → rolldown-kYz4BvAA.mjs} +1 -1
- package/dist/shared/{utils_index-iIthVLrB.mjs → utils_index-_DFpKlu1.mjs} +35 -20
- package/dist/shared/{utils_index-MBdc7y-u.cjs → utils_index-xb2NoRNm.cjs} +35 -20
- package/dist/types/binding.d.ts +3 -1
- package/dist/types/options/normalized-input-options.d.ts +1 -1
- package/dist/types/options/normalized-output-options.d.ts +2 -1
- package/dist/types/options/output-options.d.ts +6 -3
- package/dist/types/plugin/bindingify-output-hooks.d.ts +1 -0
- package/dist/types/plugin/index.d.ts +3 -3
- package/dist/types/utils/normalize-tree-shake.d.ts +1 -1
- package/package.json +19 -16
package/dist/cjs/cli.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const { __commonJSMin, __export, __toESM } = require("../shared/chunk-1xb6WR3y.cjs");
|
|
2
|
-
const { arraify } = require("../shared/utils_index-
|
|
3
|
-
const { rolldown } = require("../shared/rolldown-
|
|
4
|
-
const { colors, consola, createConsola } = require("../shared/consola.36c0034f-
|
|
2
|
+
const { arraify } = require("../shared/utils_index-xb2NoRNm.cjs");
|
|
3
|
+
const { rolldown } = require("../shared/rolldown-SCF5NBN_.cjs");
|
|
4
|
+
const { colors, consola, createConsola } = require("../shared/consola.36c0034f-N8xiTrv3.cjs");
|
|
5
5
|
const { pathToFileURL } = __toESM(require("node:url"));
|
|
6
6
|
const { default: nodePath } = __toESM(require("node:path"));
|
|
7
7
|
const { default: process$1, env } = __toESM(require("node:process"));
|
|
@@ -15,8 +15,8 @@ var require_lib_index = __commonJSMin((exports, module) => {
|
|
|
15
15
|
return any == null ? [] : Array.isArray(any) ? any : [any];
|
|
16
16
|
}
|
|
17
17
|
function toVal$1(out, key, val, opts) {
|
|
18
|
-
var x, old = out[key], nxt = !!~opts.string.indexOf(key) ? val == null || val === true ? '' : String(val) : typeof val === 'boolean' ? val : !!~opts.boolean.indexOf(key) ? val === 'false' ? false : val === 'true' || (out._.push((x = +val, x * 0 === 0) ? x : val), !!val) : (x = +val, x * 0 === 0) ? x : val;
|
|
19
|
-
out[key] = old == null ? nxt : Array.isArray(old) ? old.concat(nxt) : [old, nxt];
|
|
18
|
+
var x, old = out[key], nxt = (!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val)) : typeof val === 'boolean' ? val : !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val, x * 0 === 0) ? x : val), !!val)) : (x = +val, x * 0 === 0) ? x : val);
|
|
19
|
+
out[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);
|
|
20
20
|
}
|
|
21
21
|
module.exports = function(args, opts) {
|
|
22
22
|
args = args || [];
|
|
@@ -80,12 +80,12 @@ var require_lib_index = __commonJSMin((exports, module) => {
|
|
|
80
80
|
if (arg.charCodeAt(idx) === 61) break;
|
|
81
81
|
}
|
|
82
82
|
name = arg.substring(j, idx);
|
|
83
|
-
val = arg.substring(++idx) || i + 1 === len || ('' + args[i + 1]).charCodeAt(0) === 45 || args[++i];
|
|
84
|
-
arr = j === 2 ? [name] : name;
|
|
83
|
+
val = arg.substring(++idx) || (i + 1 === len || ('' + args[i + 1]).charCodeAt(0) === 45 || args[++i]);
|
|
84
|
+
arr = (j === 2 ? [name] : name);
|
|
85
85
|
for (idx = 0; idx < arr.length; idx++) {
|
|
86
86
|
name = arr[idx];
|
|
87
87
|
if (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);
|
|
88
|
-
toVal$1(out, name, idx + 1 < arr.length || val, opts);
|
|
88
|
+
toVal$1(out, name, (idx + 1 < arr.length) || val, opts);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -543,7 +543,7 @@ const isWindows = platform === 'win32';
|
|
|
543
543
|
const isDumbTerminal = env$1.TERM === 'dumb';
|
|
544
544
|
const isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env$1.TERM && !isDumbTerminal;
|
|
545
545
|
const isCI = 'CI'in env$1 && ('GITHUB_ACTIONS'in env$1 || 'GITLAB_CI'in env$1 || 'CIRCLECI'in env$1);
|
|
546
|
-
const isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
|
|
546
|
+
const isColorSupported = !isDisabled && (isForced || (isWindows && !isDumbTerminal) || isCompatibleTerminal || isCI);
|
|
547
547
|
const replaceClose = (index, string, close, replace, head = string.substring(0, index) + replace, tail = string.substring(index + close.length), next = tail.indexOf(close)) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
|
|
548
548
|
const clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
|
|
549
549
|
const filterEmpty = (open, close, replace = open, at = open.length + 1) => (string) => string || !(string === '' || string === undefined) ? clearBleed(('' + string).indexOf(close, at), string, open, close, replace) : '';
|
|
@@ -702,20 +702,8 @@ function withTrailingSlash(path) {
|
|
|
702
702
|
|
|
703
703
|
//#endregion
|
|
704
704
|
//#region package.json
|
|
705
|
-
const version = '0.12.
|
|
705
|
+
const version = '0.12.2';
|
|
706
706
|
const description = 'Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.';
|
|
707
|
-
const keywords = ['webpack', 'parcel', 'esbuild', 'rollup', 'bundler', 'rolldown'];
|
|
708
|
-
const files = ['bin', 'cli', 'dist', '!dist/*.node'];
|
|
709
|
-
const napi = {
|
|
710
|
-
'binaryName': 'rolldown-binding',
|
|
711
|
-
'packageName': '@rolldown/binding',
|
|
712
|
-
'targets': ['x86_64-apple-darwin', 'x86_64-pc-windows-msvc', 'x86_64-unknown-linux-gnu', 'x86_64-unknown-linux-musl', 'i686-pc-windows-msvc', 'armv7-unknown-linux-gnueabihf', 'aarch64-unknown-linux-gnu', 'aarch64-apple-darwin', 'aarch64-unknown-linux-musl', 'aarch64-pc-windows-msvc', 'wasm32-wasip1-threads'],
|
|
713
|
-
'wasm': {
|
|
714
|
-
'initialMemory': 16384,
|
|
715
|
-
'browser': {'fs': true}
|
|
716
|
-
},
|
|
717
|
-
'dtsHeader': 'type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\n'
|
|
718
|
-
};
|
|
719
707
|
|
|
720
708
|
//#endregion
|
|
721
709
|
//#region src/cli/constants.ts
|
|
@@ -751,7 +739,6 @@ const main = defineCommand({
|
|
|
751
739
|
}
|
|
752
740
|
await bundle(argConfig);
|
|
753
741
|
process$1.exit(0);
|
|
754
|
-
return;
|
|
755
742
|
}
|
|
756
743
|
showUsage(main);
|
|
757
744
|
}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __toESM } = require("../shared/chunk-1xb6WR3y.cjs");
|
|
4
|
-
const { BuiltinGlobImportPlugin, BuiltinWasmPlugin, require_binding } = require("../shared/utils_index-
|
|
5
|
-
const { experimental_scan, rolldown } = require("../shared/rolldown-
|
|
4
|
+
const { BuiltinGlobImportPlugin, BuiltinWasmPlugin, require_binding } = require("../shared/utils_index-xb2NoRNm.cjs");
|
|
5
|
+
const { experimental_scan, rolldown } = require("../shared/rolldown-SCF5NBN_.cjs");
|
|
6
6
|
const { pathToFileURL } = __toESM(require("node:url"));
|
|
7
7
|
|
|
8
8
|
//#region src/plugin/parallel-plugin.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __toESM } = require("../shared/chunk-1xb6WR3y.cjs");
|
|
4
|
-
const { bindingifyPlugin, require_binding } = require("../shared/utils_index-
|
|
4
|
+
const { bindingifyPlugin, require_binding } = require("../shared/utils_index-xb2NoRNm.cjs");
|
|
5
5
|
const { parentPort, workerData } = __toESM(require("node:worker_threads"));
|
|
6
6
|
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
package/dist/esm/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { __commonJSMin, __export, __toESM, arraify } from "../shared/utils_index-
|
|
4
|
-
import { rolldown } from "../shared/rolldown-
|
|
5
|
-
import { colors, consola, createConsola } from "../shared/consola.36c0034f-
|
|
3
|
+
import { __commonJSMin, __export, __toESM, arraify } from "../shared/utils_index-_DFpKlu1.mjs";
|
|
4
|
+
import { rolldown } from "../shared/rolldown-kYz4BvAA.mjs";
|
|
5
|
+
import { colors, consola, createConsola } from "../shared/consola.36c0034f-jtHhMkSX.mjs";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
7
7
|
import { default as nodePath } from "node:path";
|
|
8
8
|
import { default as process$1, env } from "node:process";
|
|
@@ -16,8 +16,8 @@ var require_lib_index = __commonJSMin((exports, module) => {
|
|
|
16
16
|
return any == null ? [] : Array.isArray(any) ? any : [any];
|
|
17
17
|
}
|
|
18
18
|
function toVal$1(out, key, val, opts) {
|
|
19
|
-
var x, old = out[key], nxt = !!~opts.string.indexOf(key) ? val == null || val === true ? '' : String(val) : typeof val === 'boolean' ? val : !!~opts.boolean.indexOf(key) ? val === 'false' ? false : val === 'true' || (out._.push((x = +val, x * 0 === 0) ? x : val), !!val) : (x = +val, x * 0 === 0) ? x : val;
|
|
20
|
-
out[key] = old == null ? nxt : Array.isArray(old) ? old.concat(nxt) : [old, nxt];
|
|
19
|
+
var x, old = out[key], nxt = (!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val)) : typeof val === 'boolean' ? val : !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val, x * 0 === 0) ? x : val), !!val)) : (x = +val, x * 0 === 0) ? x : val);
|
|
20
|
+
out[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);
|
|
21
21
|
}
|
|
22
22
|
module.exports = function(args, opts) {
|
|
23
23
|
args = args || [];
|
|
@@ -81,12 +81,12 @@ var require_lib_index = __commonJSMin((exports, module) => {
|
|
|
81
81
|
if (arg.charCodeAt(idx) === 61) break;
|
|
82
82
|
}
|
|
83
83
|
name = arg.substring(j, idx);
|
|
84
|
-
val = arg.substring(++idx) || i + 1 === len || ('' + args[i + 1]).charCodeAt(0) === 45 || args[++i];
|
|
85
|
-
arr = j === 2 ? [name] : name;
|
|
84
|
+
val = arg.substring(++idx) || (i + 1 === len || ('' + args[i + 1]).charCodeAt(0) === 45 || args[++i]);
|
|
85
|
+
arr = (j === 2 ? [name] : name);
|
|
86
86
|
for (idx = 0; idx < arr.length; idx++) {
|
|
87
87
|
name = arr[idx];
|
|
88
88
|
if (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);
|
|
89
|
-
toVal$1(out, name, idx + 1 < arr.length || val, opts);
|
|
89
|
+
toVal$1(out, name, (idx + 1 < arr.length) || val, opts);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -544,7 +544,7 @@ const isWindows = platform === 'win32';
|
|
|
544
544
|
const isDumbTerminal = env$1.TERM === 'dumb';
|
|
545
545
|
const isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env$1.TERM && !isDumbTerminal;
|
|
546
546
|
const isCI = 'CI'in env$1 && ('GITHUB_ACTIONS'in env$1 || 'GITLAB_CI'in env$1 || 'CIRCLECI'in env$1);
|
|
547
|
-
const isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
|
|
547
|
+
const isColorSupported = !isDisabled && (isForced || (isWindows && !isDumbTerminal) || isCompatibleTerminal || isCI);
|
|
548
548
|
const replaceClose = (index, string, close, replace, head = string.substring(0, index) + replace, tail = string.substring(index + close.length), next = tail.indexOf(close)) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
|
|
549
549
|
const clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
|
|
550
550
|
const filterEmpty = (open, close, replace = open, at = open.length + 1) => (string) => string || !(string === '' || string === undefined) ? clearBleed(('' + string).indexOf(close, at), string, open, close, replace) : '';
|
|
@@ -703,20 +703,8 @@ function withTrailingSlash(path) {
|
|
|
703
703
|
|
|
704
704
|
//#endregion
|
|
705
705
|
//#region package.json
|
|
706
|
-
const version = '0.12.
|
|
706
|
+
const version = '0.12.2';
|
|
707
707
|
const description = 'Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.';
|
|
708
|
-
const keywords = ['webpack', 'parcel', 'esbuild', 'rollup', 'bundler', 'rolldown'];
|
|
709
|
-
const files = ['bin', 'cli', 'dist', '!dist/*.node'];
|
|
710
|
-
const napi = {
|
|
711
|
-
'binaryName': 'rolldown-binding',
|
|
712
|
-
'packageName': '@rolldown/binding',
|
|
713
|
-
'targets': ['x86_64-apple-darwin', 'x86_64-pc-windows-msvc', 'x86_64-unknown-linux-gnu', 'x86_64-unknown-linux-musl', 'i686-pc-windows-msvc', 'armv7-unknown-linux-gnueabihf', 'aarch64-unknown-linux-gnu', 'aarch64-apple-darwin', 'aarch64-unknown-linux-musl', 'aarch64-pc-windows-msvc', 'wasm32-wasip1-threads'],
|
|
714
|
-
'wasm': {
|
|
715
|
-
'initialMemory': 16384,
|
|
716
|
-
'browser': {'fs': true}
|
|
717
|
-
},
|
|
718
|
-
'dtsHeader': 'type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\n'
|
|
719
|
-
};
|
|
720
708
|
|
|
721
709
|
//#endregion
|
|
722
710
|
//#region src/cli/constants.ts
|
|
@@ -752,7 +740,6 @@ const main = defineCommand({
|
|
|
752
740
|
}
|
|
753
741
|
await bundle(argConfig);
|
|
754
742
|
process$1.exit(0);
|
|
755
|
-
return;
|
|
756
743
|
}
|
|
757
744
|
showUsage(main);
|
|
758
745
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { BuiltinGlobImportPlugin, BuiltinWasmPlugin, __toESM, require_binding } from "../shared/utils_index-
|
|
4
|
-
import { experimental_scan, rolldown } from "../shared/rolldown-
|
|
3
|
+
import { BuiltinGlobImportPlugin, BuiltinWasmPlugin, __toESM, require_binding } from "../shared/utils_index-_DFpKlu1.mjs";
|
|
4
|
+
import { experimental_scan, rolldown } from "../shared/rolldown-kYz4BvAA.mjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
|
7
7
|
//#region src/plugin/parallel-plugin.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { __toESM, bindingifyPlugin, require_binding } from "../shared/utils_index-
|
|
3
|
+
import { __toESM, bindingifyPlugin, require_binding } from "../shared/utils_index-_DFpKlu1.mjs";
|
|
4
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
5
|
|
|
6
6
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -69,7 +69,7 @@ function _defu(baseObject, defaults, namespace = '.', merger) {
|
|
|
69
69
|
return object;
|
|
70
70
|
}
|
|
71
71
|
function createDefu(merger) {
|
|
72
|
-
return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, '', merger), {});
|
|
72
|
+
return (...arguments_) => (arguments_.reduce((p, c) => _defu(p, c, '', merger), {}));
|
|
73
73
|
}
|
|
74
74
|
const defu = createDefu();
|
|
75
75
|
function isPlainObject(obj) {
|
|
@@ -261,7 +261,7 @@ class Consola {
|
|
|
261
261
|
return false;
|
|
262
262
|
}
|
|
263
263
|
const logObj = {
|
|
264
|
-
date: new Date(),
|
|
264
|
+
date: /* @__PURE__ */ new Date(),
|
|
265
265
|
args: [],
|
|
266
266
|
...defaults,
|
|
267
267
|
level: _normalizeLogLevel(defaults.level, this.options.types)
|
|
@@ -658,27 +658,27 @@ var eastasianwidth = {exports: {}};
|
|
|
658
658
|
}
|
|
659
659
|
eaw.eastAsianWidth = function(character) {
|
|
660
660
|
var x = character.charCodeAt(0);
|
|
661
|
-
var y = character.length == 2 ? character.charCodeAt(1) : 0;
|
|
661
|
+
var y = (character.length == 2) ? character.charCodeAt(1) : 0;
|
|
662
662
|
var codePoint = x;
|
|
663
|
-
if (0xD800 <= x && x <= 0xDBFF && 0xDC00 <= y && y <= 0xDFFF) {
|
|
663
|
+
if ((0xD800 <= x && x <= 0xDBFF) && (0xDC00 <= y && y <= 0xDFFF)) {
|
|
664
664
|
x &= 0x3FF;
|
|
665
665
|
y &= 0x3FF;
|
|
666
|
-
codePoint = x << 10 | y;
|
|
666
|
+
codePoint = (x << 10) | y;
|
|
667
667
|
codePoint += 0x10000;
|
|
668
668
|
}
|
|
669
|
-
if (0x3000 == codePoint || 0xFF01 <= codePoint && codePoint <= 0xFF60 || 0xFFE0 <= codePoint && codePoint <= 0xFFE6) {
|
|
669
|
+
if ((0x3000 == codePoint) || (0xFF01 <= codePoint && codePoint <= 0xFF60) || (0xFFE0 <= codePoint && codePoint <= 0xFFE6)) {
|
|
670
670
|
return 'F';
|
|
671
671
|
}
|
|
672
|
-
if (0x20A9 == codePoint || 0xFF61 <= codePoint && codePoint <= 0xFFBE || 0xFFC2 <= codePoint && codePoint <= 0xFFC7 || 0xFFCA <= codePoint && codePoint <= 0xFFCF || 0xFFD2 <= codePoint && codePoint <= 0xFFD7 || 0xFFDA <= codePoint && codePoint <= 0xFFDC || 0xFFE8 <= codePoint && codePoint <= 0xFFEE) {
|
|
672
|
+
if ((0x20A9 == codePoint) || (0xFF61 <= codePoint && codePoint <= 0xFFBE) || (0xFFC2 <= codePoint && codePoint <= 0xFFC7) || (0xFFCA <= codePoint && codePoint <= 0xFFCF) || (0xFFD2 <= codePoint && codePoint <= 0xFFD7) || (0xFFDA <= codePoint && codePoint <= 0xFFDC) || (0xFFE8 <= codePoint && codePoint <= 0xFFEE)) {
|
|
673
673
|
return 'H';
|
|
674
674
|
}
|
|
675
|
-
if (0x1100 <= codePoint && codePoint <= 0x115F || 0x11A3 <= codePoint && codePoint <= 0x11A7 || 0x11FA <= codePoint && codePoint <= 0x11FF || 0x2329 <= codePoint && codePoint <= 0x232A || 0x2E80 <= codePoint && codePoint <= 0x2E99 || 0x2E9B <= codePoint && codePoint <= 0x2EF3 || 0x2F00 <= codePoint && codePoint <= 0x2FD5 || 0x2FF0 <= codePoint && codePoint <= 0x2FFB || 0x3001 <= codePoint && codePoint <= 0x303E || 0x3041 <= codePoint && codePoint <= 0x3096 || 0x3099 <= codePoint && codePoint <= 0x30FF || 0x3105 <= codePoint && codePoint <= 0x312D || 0x3131 <= codePoint && codePoint <= 0x318E || 0x3190 <= codePoint && codePoint <= 0x31BA || 0x31C0 <= codePoint && codePoint <= 0x31E3 || 0x31F0 <= codePoint && codePoint <= 0x321E || 0x3220 <= codePoint && codePoint <= 0x3247 || 0x3250 <= codePoint && codePoint <= 0x32FE || 0x3300 <= codePoint && codePoint <= 0x4DBF || 0x4E00 <= codePoint && codePoint <= 0xA48C || 0xA490 <= codePoint && codePoint <= 0xA4C6 || 0xA960 <= codePoint && codePoint <= 0xA97C || 0xAC00 <= codePoint && codePoint <= 0xD7A3 || 0xD7B0 <= codePoint && codePoint <= 0xD7C6 || 0xD7CB <= codePoint && codePoint <= 0xD7FB || 0xF900 <= codePoint && codePoint <= 0xFAFF || 0xFE10 <= codePoint && codePoint <= 0xFE19 || 0xFE30 <= codePoint && codePoint <= 0xFE52 || 0xFE54 <= codePoint && codePoint <= 0xFE66 || 0xFE68 <= codePoint && codePoint <= 0xFE6B || 0x1B000 <= codePoint && codePoint <= 0x1B001 || 0x1F200 <= codePoint && codePoint <= 0x1F202 || 0x1F210 <= codePoint && codePoint <= 0x1F23A || 0x1F240 <= codePoint && codePoint <= 0x1F248 || 0x1F250 <= codePoint && codePoint <= 0x1F251 || 0x20000 <= codePoint && codePoint <= 0x2F73F || 0x2B740 <= codePoint && codePoint <= 0x2FFFD || 0x30000 <= codePoint && codePoint <= 0x3FFFD) {
|
|
675
|
+
if ((0x1100 <= codePoint && codePoint <= 0x115F) || (0x11A3 <= codePoint && codePoint <= 0x11A7) || (0x11FA <= codePoint && codePoint <= 0x11FF) || (0x2329 <= codePoint && codePoint <= 0x232A) || (0x2E80 <= codePoint && codePoint <= 0x2E99) || (0x2E9B <= codePoint && codePoint <= 0x2EF3) || (0x2F00 <= codePoint && codePoint <= 0x2FD5) || (0x2FF0 <= codePoint && codePoint <= 0x2FFB) || (0x3001 <= codePoint && codePoint <= 0x303E) || (0x3041 <= codePoint && codePoint <= 0x3096) || (0x3099 <= codePoint && codePoint <= 0x30FF) || (0x3105 <= codePoint && codePoint <= 0x312D) || (0x3131 <= codePoint && codePoint <= 0x318E) || (0x3190 <= codePoint && codePoint <= 0x31BA) || (0x31C0 <= codePoint && codePoint <= 0x31E3) || (0x31F0 <= codePoint && codePoint <= 0x321E) || (0x3220 <= codePoint && codePoint <= 0x3247) || (0x3250 <= codePoint && codePoint <= 0x32FE) || (0x3300 <= codePoint && codePoint <= 0x4DBF) || (0x4E00 <= codePoint && codePoint <= 0xA48C) || (0xA490 <= codePoint && codePoint <= 0xA4C6) || (0xA960 <= codePoint && codePoint <= 0xA97C) || (0xAC00 <= codePoint && codePoint <= 0xD7A3) || (0xD7B0 <= codePoint && codePoint <= 0xD7C6) || (0xD7CB <= codePoint && codePoint <= 0xD7FB) || (0xF900 <= codePoint && codePoint <= 0xFAFF) || (0xFE10 <= codePoint && codePoint <= 0xFE19) || (0xFE30 <= codePoint && codePoint <= 0xFE52) || (0xFE54 <= codePoint && codePoint <= 0xFE66) || (0xFE68 <= codePoint && codePoint <= 0xFE6B) || (0x1B000 <= codePoint && codePoint <= 0x1B001) || (0x1F200 <= codePoint && codePoint <= 0x1F202) || (0x1F210 <= codePoint && codePoint <= 0x1F23A) || (0x1F240 <= codePoint && codePoint <= 0x1F248) || (0x1F250 <= codePoint && codePoint <= 0x1F251) || (0x20000 <= codePoint && codePoint <= 0x2F73F) || (0x2B740 <= codePoint && codePoint <= 0x2FFFD) || (0x30000 <= codePoint && codePoint <= 0x3FFFD)) {
|
|
676
676
|
return 'W';
|
|
677
677
|
}
|
|
678
|
-
if (0x0020 <= codePoint && codePoint <= 0x007E || 0x00A2 <= codePoint && codePoint <= 0x00A3 || 0x00A5 <= codePoint && codePoint <= 0x00A6 || 0x00AC == codePoint || 0x00AF == codePoint || 0x27E6 <= codePoint && codePoint <= 0x27ED || 0x2985 <= codePoint && codePoint <= 0x2986) {
|
|
678
|
+
if ((0x0020 <= codePoint && codePoint <= 0x007E) || (0x00A2 <= codePoint && codePoint <= 0x00A3) || (0x00A5 <= codePoint && codePoint <= 0x00A6) || (0x00AC == codePoint) || (0x00AF == codePoint) || (0x27E6 <= codePoint && codePoint <= 0x27ED) || (0x2985 <= codePoint && codePoint <= 0x2986)) {
|
|
679
679
|
return 'Na';
|
|
680
680
|
}
|
|
681
|
-
if (0x00A1 == codePoint || 0x00A4 == codePoint || 0x00A7 <= codePoint && codePoint <= 0x00A8 || 0x00AA == codePoint || 0x00AD <= codePoint && codePoint <= 0x00AE || 0x00B0 <= codePoint && codePoint <= 0x00B4 || 0x00B6 <= codePoint && codePoint <= 0x00BA || 0x00BC <= codePoint && codePoint <= 0x00BF || 0x00C6 == codePoint || 0x00D0 == codePoint || 0x00D7 <= codePoint && codePoint <= 0x00D8 || 0x00DE <= codePoint && codePoint <= 0x00E1 || 0x00E6 == codePoint || 0x00E8 <= codePoint && codePoint <= 0x00EA || 0x00EC <= codePoint && codePoint <= 0x00ED || 0x00F0 == codePoint || 0x00F2 <= codePoint && codePoint <= 0x00F3 || 0x00F7 <= codePoint && codePoint <= 0x00FA || 0x00FC == codePoint || 0x00FE == codePoint || 0x0101 == codePoint || 0x0111 == codePoint || 0x0113 == codePoint || 0x011B == codePoint || 0x0126 <= codePoint && codePoint <= 0x0127 || 0x012B == codePoint || 0x0131 <= codePoint && codePoint <= 0x0133 || 0x0138 == codePoint || 0x013F <= codePoint && codePoint <= 0x0142 || 0x0144 == codePoint || 0x0148 <= codePoint && codePoint <= 0x014B || 0x014D == codePoint || 0x0152 <= codePoint && codePoint <= 0x0153 || 0x0166 <= codePoint && codePoint <= 0x0167 || 0x016B == codePoint || 0x01CE == codePoint || 0x01D0 == codePoint || 0x01D2 == codePoint || 0x01D4 == codePoint || 0x01D6 == codePoint || 0x01D8 == codePoint || 0x01DA == codePoint || 0x01DC == codePoint || 0x0251 == codePoint || 0x0261 == codePoint || 0x02C4 == codePoint || 0x02C7 == codePoint || 0x02C9 <= codePoint && codePoint <= 0x02CB || 0x02CD == codePoint || 0x02D0 == codePoint || 0x02D8 <= codePoint && codePoint <= 0x02DB || 0x02DD == codePoint || 0x02DF == codePoint || 0x0300 <= codePoint && codePoint <= 0x036F || 0x0391 <= codePoint && codePoint <= 0x03A1 || 0x03A3 <= codePoint && codePoint <= 0x03A9 || 0x03B1 <= codePoint && codePoint <= 0x03C1 || 0x03C3 <= codePoint && codePoint <= 0x03C9 || 0x0401 == codePoint || 0x0410 <= codePoint && codePoint <= 0x044F || 0x0451 == codePoint || 0x2010 == codePoint || 0x2013 <= codePoint && codePoint <= 0x2016 || 0x2018 <= codePoint && codePoint <= 0x2019 || 0x201C <= codePoint && codePoint <= 0x201D || 0x2020 <= codePoint && codePoint <= 0x2022 || 0x2024 <= codePoint && codePoint <= 0x2027 || 0x2030 == codePoint || 0x2032 <= codePoint && codePoint <= 0x2033 || 0x2035 == codePoint || 0x203B == codePoint || 0x203E == codePoint || 0x2074 == codePoint || 0x207F == codePoint || 0x2081 <= codePoint && codePoint <= 0x2084 || 0x20AC == codePoint || 0x2103 == codePoint || 0x2105 == codePoint || 0x2109 == codePoint || 0x2113 == codePoint || 0x2116 == codePoint || 0x2121 <= codePoint && codePoint <= 0x2122 || 0x2126 == codePoint || 0x212B == codePoint || 0x2153 <= codePoint && codePoint <= 0x2154 || 0x215B <= codePoint && codePoint <= 0x215E || 0x2160 <= codePoint && codePoint <= 0x216B || 0x2170 <= codePoint && codePoint <= 0x2179 || 0x2189 == codePoint || 0x2190 <= codePoint && codePoint <= 0x2199 || 0x21B8 <= codePoint && codePoint <= 0x21B9 || 0x21D2 == codePoint || 0x21D4 == codePoint || 0x21E7 == codePoint || 0x2200 == codePoint || 0x2202 <= codePoint && codePoint <= 0x2203 || 0x2207 <= codePoint && codePoint <= 0x2208 || 0x220B == codePoint || 0x220F == codePoint || 0x2211 == codePoint || 0x2215 == codePoint || 0x221A == codePoint || 0x221D <= codePoint && codePoint <= 0x2220 || 0x2223 == codePoint || 0x2225 == codePoint || 0x2227 <= codePoint && codePoint <= 0x222C || 0x222E == codePoint || 0x2234 <= codePoint && codePoint <= 0x2237 || 0x223C <= codePoint && codePoint <= 0x223D || 0x2248 == codePoint || 0x224C == codePoint || 0x2252 == codePoint || 0x2260 <= codePoint && codePoint <= 0x2261 || 0x2264 <= codePoint && codePoint <= 0x2267 || 0x226A <= codePoint && codePoint <= 0x226B || 0x226E <= codePoint && codePoint <= 0x226F || 0x2282 <= codePoint && codePoint <= 0x2283 || 0x2286 <= codePoint && codePoint <= 0x2287 || 0x2295 == codePoint || 0x2299 == codePoint || 0x22A5 == codePoint || 0x22BF == codePoint || 0x2312 == codePoint || 0x2460 <= codePoint && codePoint <= 0x24E9 || 0x24EB <= codePoint && codePoint <= 0x254B || 0x2550 <= codePoint && codePoint <= 0x2573 || 0x2580 <= codePoint && codePoint <= 0x258F || 0x2592 <= codePoint && codePoint <= 0x2595 || 0x25A0 <= codePoint && codePoint <= 0x25A1 || 0x25A3 <= codePoint && codePoint <= 0x25A9 || 0x25B2 <= codePoint && codePoint <= 0x25B3 || 0x25B6 <= codePoint && codePoint <= 0x25B7 || 0x25BC <= codePoint && codePoint <= 0x25BD || 0x25C0 <= codePoint && codePoint <= 0x25C1 || 0x25C6 <= codePoint && codePoint <= 0x25C8 || 0x25CB == codePoint || 0x25CE <= codePoint && codePoint <= 0x25D1 || 0x25E2 <= codePoint && codePoint <= 0x25E5 || 0x25EF == codePoint || 0x2605 <= codePoint && codePoint <= 0x2606 || 0x2609 == codePoint || 0x260E <= codePoint && codePoint <= 0x260F || 0x2614 <= codePoint && codePoint <= 0x2615 || 0x261C == codePoint || 0x261E == codePoint || 0x2640 == codePoint || 0x2642 == codePoint || 0x2660 <= codePoint && codePoint <= 0x2661 || 0x2663 <= codePoint && codePoint <= 0x2665 || 0x2667 <= codePoint && codePoint <= 0x266A || 0x266C <= codePoint && codePoint <= 0x266D || 0x266F == codePoint || 0x269E <= codePoint && codePoint <= 0x269F || 0x26BE <= codePoint && codePoint <= 0x26BF || 0x26C4 <= codePoint && codePoint <= 0x26CD || 0x26CF <= codePoint && codePoint <= 0x26E1 || 0x26E3 == codePoint || 0x26E8 <= codePoint && codePoint <= 0x26FF || 0x273D == codePoint || 0x2757 == codePoint || 0x2776 <= codePoint && codePoint <= 0x277F || 0x2B55 <= codePoint && codePoint <= 0x2B59 || 0x3248 <= codePoint && codePoint <= 0x324F || 0xE000 <= codePoint && codePoint <= 0xF8FF || 0xFE00 <= codePoint && codePoint <= 0xFE0F || 0xFFFD == codePoint || 0x1F100 <= codePoint && codePoint <= 0x1F10A || 0x1F110 <= codePoint && codePoint <= 0x1F12D || 0x1F130 <= codePoint && codePoint <= 0x1F169 || 0x1F170 <= codePoint && codePoint <= 0x1F19A || 0xE0100 <= codePoint && codePoint <= 0xE01EF || 0xF0000 <= codePoint && codePoint <= 0xFFFFD || 0x100000 <= codePoint && codePoint <= 0x10FFFD) {
|
|
681
|
+
if ((0x00A1 == codePoint) || (0x00A4 == codePoint) || (0x00A7 <= codePoint && codePoint <= 0x00A8) || (0x00AA == codePoint) || (0x00AD <= codePoint && codePoint <= 0x00AE) || (0x00B0 <= codePoint && codePoint <= 0x00B4) || (0x00B6 <= codePoint && codePoint <= 0x00BA) || (0x00BC <= codePoint && codePoint <= 0x00BF) || (0x00C6 == codePoint) || (0x00D0 == codePoint) || (0x00D7 <= codePoint && codePoint <= 0x00D8) || (0x00DE <= codePoint && codePoint <= 0x00E1) || (0x00E6 == codePoint) || (0x00E8 <= codePoint && codePoint <= 0x00EA) || (0x00EC <= codePoint && codePoint <= 0x00ED) || (0x00F0 == codePoint) || (0x00F2 <= codePoint && codePoint <= 0x00F3) || (0x00F7 <= codePoint && codePoint <= 0x00FA) || (0x00FC == codePoint) || (0x00FE == codePoint) || (0x0101 == codePoint) || (0x0111 == codePoint) || (0x0113 == codePoint) || (0x011B == codePoint) || (0x0126 <= codePoint && codePoint <= 0x0127) || (0x012B == codePoint) || (0x0131 <= codePoint && codePoint <= 0x0133) || (0x0138 == codePoint) || (0x013F <= codePoint && codePoint <= 0x0142) || (0x0144 == codePoint) || (0x0148 <= codePoint && codePoint <= 0x014B) || (0x014D == codePoint) || (0x0152 <= codePoint && codePoint <= 0x0153) || (0x0166 <= codePoint && codePoint <= 0x0167) || (0x016B == codePoint) || (0x01CE == codePoint) || (0x01D0 == codePoint) || (0x01D2 == codePoint) || (0x01D4 == codePoint) || (0x01D6 == codePoint) || (0x01D8 == codePoint) || (0x01DA == codePoint) || (0x01DC == codePoint) || (0x0251 == codePoint) || (0x0261 == codePoint) || (0x02C4 == codePoint) || (0x02C7 == codePoint) || (0x02C9 <= codePoint && codePoint <= 0x02CB) || (0x02CD == codePoint) || (0x02D0 == codePoint) || (0x02D8 <= codePoint && codePoint <= 0x02DB) || (0x02DD == codePoint) || (0x02DF == codePoint) || (0x0300 <= codePoint && codePoint <= 0x036F) || (0x0391 <= codePoint && codePoint <= 0x03A1) || (0x03A3 <= codePoint && codePoint <= 0x03A9) || (0x03B1 <= codePoint && codePoint <= 0x03C1) || (0x03C3 <= codePoint && codePoint <= 0x03C9) || (0x0401 == codePoint) || (0x0410 <= codePoint && codePoint <= 0x044F) || (0x0451 == codePoint) || (0x2010 == codePoint) || (0x2013 <= codePoint && codePoint <= 0x2016) || (0x2018 <= codePoint && codePoint <= 0x2019) || (0x201C <= codePoint && codePoint <= 0x201D) || (0x2020 <= codePoint && codePoint <= 0x2022) || (0x2024 <= codePoint && codePoint <= 0x2027) || (0x2030 == codePoint) || (0x2032 <= codePoint && codePoint <= 0x2033) || (0x2035 == codePoint) || (0x203B == codePoint) || (0x203E == codePoint) || (0x2074 == codePoint) || (0x207F == codePoint) || (0x2081 <= codePoint && codePoint <= 0x2084) || (0x20AC == codePoint) || (0x2103 == codePoint) || (0x2105 == codePoint) || (0x2109 == codePoint) || (0x2113 == codePoint) || (0x2116 == codePoint) || (0x2121 <= codePoint && codePoint <= 0x2122) || (0x2126 == codePoint) || (0x212B == codePoint) || (0x2153 <= codePoint && codePoint <= 0x2154) || (0x215B <= codePoint && codePoint <= 0x215E) || (0x2160 <= codePoint && codePoint <= 0x216B) || (0x2170 <= codePoint && codePoint <= 0x2179) || (0x2189 == codePoint) || (0x2190 <= codePoint && codePoint <= 0x2199) || (0x21B8 <= codePoint && codePoint <= 0x21B9) || (0x21D2 == codePoint) || (0x21D4 == codePoint) || (0x21E7 == codePoint) || (0x2200 == codePoint) || (0x2202 <= codePoint && codePoint <= 0x2203) || (0x2207 <= codePoint && codePoint <= 0x2208) || (0x220B == codePoint) || (0x220F == codePoint) || (0x2211 == codePoint) || (0x2215 == codePoint) || (0x221A == codePoint) || (0x221D <= codePoint && codePoint <= 0x2220) || (0x2223 == codePoint) || (0x2225 == codePoint) || (0x2227 <= codePoint && codePoint <= 0x222C) || (0x222E == codePoint) || (0x2234 <= codePoint && codePoint <= 0x2237) || (0x223C <= codePoint && codePoint <= 0x223D) || (0x2248 == codePoint) || (0x224C == codePoint) || (0x2252 == codePoint) || (0x2260 <= codePoint && codePoint <= 0x2261) || (0x2264 <= codePoint && codePoint <= 0x2267) || (0x226A <= codePoint && codePoint <= 0x226B) || (0x226E <= codePoint && codePoint <= 0x226F) || (0x2282 <= codePoint && codePoint <= 0x2283) || (0x2286 <= codePoint && codePoint <= 0x2287) || (0x2295 == codePoint) || (0x2299 == codePoint) || (0x22A5 == codePoint) || (0x22BF == codePoint) || (0x2312 == codePoint) || (0x2460 <= codePoint && codePoint <= 0x24E9) || (0x24EB <= codePoint && codePoint <= 0x254B) || (0x2550 <= codePoint && codePoint <= 0x2573) || (0x2580 <= codePoint && codePoint <= 0x258F) || (0x2592 <= codePoint && codePoint <= 0x2595) || (0x25A0 <= codePoint && codePoint <= 0x25A1) || (0x25A3 <= codePoint && codePoint <= 0x25A9) || (0x25B2 <= codePoint && codePoint <= 0x25B3) || (0x25B6 <= codePoint && codePoint <= 0x25B7) || (0x25BC <= codePoint && codePoint <= 0x25BD) || (0x25C0 <= codePoint && codePoint <= 0x25C1) || (0x25C6 <= codePoint && codePoint <= 0x25C8) || (0x25CB == codePoint) || (0x25CE <= codePoint && codePoint <= 0x25D1) || (0x25E2 <= codePoint && codePoint <= 0x25E5) || (0x25EF == codePoint) || (0x2605 <= codePoint && codePoint <= 0x2606) || (0x2609 == codePoint) || (0x260E <= codePoint && codePoint <= 0x260F) || (0x2614 <= codePoint && codePoint <= 0x2615) || (0x261C == codePoint) || (0x261E == codePoint) || (0x2640 == codePoint) || (0x2642 == codePoint) || (0x2660 <= codePoint && codePoint <= 0x2661) || (0x2663 <= codePoint && codePoint <= 0x2665) || (0x2667 <= codePoint && codePoint <= 0x266A) || (0x266C <= codePoint && codePoint <= 0x266D) || (0x266F == codePoint) || (0x269E <= codePoint && codePoint <= 0x269F) || (0x26BE <= codePoint && codePoint <= 0x26BF) || (0x26C4 <= codePoint && codePoint <= 0x26CD) || (0x26CF <= codePoint && codePoint <= 0x26E1) || (0x26E3 == codePoint) || (0x26E8 <= codePoint && codePoint <= 0x26FF) || (0x273D == codePoint) || (0x2757 == codePoint) || (0x2776 <= codePoint && codePoint <= 0x277F) || (0x2B55 <= codePoint && codePoint <= 0x2B59) || (0x3248 <= codePoint && codePoint <= 0x324F) || (0xE000 <= codePoint && codePoint <= 0xF8FF) || (0xFE00 <= codePoint && codePoint <= 0xFE0F) || (0xFFFD == codePoint) || (0x1F100 <= codePoint && codePoint <= 0x1F10A) || (0x1F110 <= codePoint && codePoint <= 0x1F12D) || (0x1F130 <= codePoint && codePoint <= 0x1F169) || (0x1F170 <= codePoint && codePoint <= 0x1F19A) || (0xE0100 <= codePoint && codePoint <= 0xE01EF) || (0xF0000 <= codePoint && codePoint <= 0xFFFFD) || (0x100000 <= codePoint && codePoint <= 0x10FFFD)) {
|
|
682
682
|
return 'A';
|
|
683
683
|
}
|
|
684
684
|
return 'N';
|
|
@@ -729,9 +729,9 @@ var eastasianwidth = {exports: {}};
|
|
|
729
729
|
}
|
|
730
730
|
return result;
|
|
731
731
|
};
|
|
732
|
-
}
|
|
732
|
+
}(eastasianwidth));
|
|
733
733
|
var eastasianwidthExports = eastasianwidth.exports;
|
|
734
|
-
const eastAsianWidth = getDefaultExportFromCjs(eastasianwidthExports);
|
|
734
|
+
const eastAsianWidth = /*@__PURE__*/ getDefaultExportFromCjs(eastasianwidthExports);
|
|
735
735
|
const emojiRegex = () => {
|
|
736
736
|
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
737
737
|
};
|
|
@@ -754,7 +754,7 @@ function stringWidth$1(string, options) {
|
|
|
754
754
|
let width = 0;
|
|
755
755
|
for (const { segment: character } of new Intl.Segmenter().segment(string)) {
|
|
756
756
|
const codePoint = character.codePointAt(0);
|
|
757
|
-
if (codePoint <= 0x1F || codePoint >= 0x7F && codePoint <= 0x9F) {
|
|
757
|
+
if (codePoint <= 0x1F || (codePoint >= 0x7F && codePoint <= 0x9F)) {
|
|
758
758
|
continue;
|
|
759
759
|
}
|
|
760
760
|
if (codePoint >= 0x3_00 && codePoint <= 0x3_6F) {
|
|
@@ -877,7 +877,7 @@ function createConsola(options = {}) {
|
|
|
877
877
|
defaults: {level},
|
|
878
878
|
stdout: process.stdout,
|
|
879
879
|
stderr: process.stderr,
|
|
880
|
-
prompt: (...args) => import('./prompt-
|
|
880
|
+
prompt: (...args) => import('./prompt-1K6oCkIU.cjs').then((m) => m.prompt(...args)),
|
|
881
881
|
reporters: options.reporters || [options.fancy ?? !(isCI || isTest) ? new FancyReporter() : new BasicReporter()],
|
|
882
882
|
...options
|
|
883
883
|
});
|
|
@@ -68,7 +68,7 @@ function _defu(baseObject, defaults, namespace = '.', merger) {
|
|
|
68
68
|
return object;
|
|
69
69
|
}
|
|
70
70
|
function createDefu(merger) {
|
|
71
|
-
return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, '', merger), {});
|
|
71
|
+
return (...arguments_) => (arguments_.reduce((p, c) => _defu(p, c, '', merger), {}));
|
|
72
72
|
}
|
|
73
73
|
const defu = createDefu();
|
|
74
74
|
function isPlainObject(obj) {
|
|
@@ -260,7 +260,7 @@ class Consola {
|
|
|
260
260
|
return false;
|
|
261
261
|
}
|
|
262
262
|
const logObj = {
|
|
263
|
-
date: new Date(),
|
|
263
|
+
date: /* @__PURE__ */ new Date(),
|
|
264
264
|
args: [],
|
|
265
265
|
...defaults,
|
|
266
266
|
level: _normalizeLogLevel(defaults.level, this.options.types)
|
|
@@ -657,27 +657,27 @@ var eastasianwidth = {exports: {}};
|
|
|
657
657
|
}
|
|
658
658
|
eaw.eastAsianWidth = function(character) {
|
|
659
659
|
var x = character.charCodeAt(0);
|
|
660
|
-
var y = character.length == 2 ? character.charCodeAt(1) : 0;
|
|
660
|
+
var y = (character.length == 2) ? character.charCodeAt(1) : 0;
|
|
661
661
|
var codePoint = x;
|
|
662
|
-
if (0xD800 <= x && x <= 0xDBFF && 0xDC00 <= y && y <= 0xDFFF) {
|
|
662
|
+
if ((0xD800 <= x && x <= 0xDBFF) && (0xDC00 <= y && y <= 0xDFFF)) {
|
|
663
663
|
x &= 0x3FF;
|
|
664
664
|
y &= 0x3FF;
|
|
665
|
-
codePoint = x << 10 | y;
|
|
665
|
+
codePoint = (x << 10) | y;
|
|
666
666
|
codePoint += 0x10000;
|
|
667
667
|
}
|
|
668
|
-
if (0x3000 == codePoint || 0xFF01 <= codePoint && codePoint <= 0xFF60 || 0xFFE0 <= codePoint && codePoint <= 0xFFE6) {
|
|
668
|
+
if ((0x3000 == codePoint) || (0xFF01 <= codePoint && codePoint <= 0xFF60) || (0xFFE0 <= codePoint && codePoint <= 0xFFE6)) {
|
|
669
669
|
return 'F';
|
|
670
670
|
}
|
|
671
|
-
if (0x20A9 == codePoint || 0xFF61 <= codePoint && codePoint <= 0xFFBE || 0xFFC2 <= codePoint && codePoint <= 0xFFC7 || 0xFFCA <= codePoint && codePoint <= 0xFFCF || 0xFFD2 <= codePoint && codePoint <= 0xFFD7 || 0xFFDA <= codePoint && codePoint <= 0xFFDC || 0xFFE8 <= codePoint && codePoint <= 0xFFEE) {
|
|
671
|
+
if ((0x20A9 == codePoint) || (0xFF61 <= codePoint && codePoint <= 0xFFBE) || (0xFFC2 <= codePoint && codePoint <= 0xFFC7) || (0xFFCA <= codePoint && codePoint <= 0xFFCF) || (0xFFD2 <= codePoint && codePoint <= 0xFFD7) || (0xFFDA <= codePoint && codePoint <= 0xFFDC) || (0xFFE8 <= codePoint && codePoint <= 0xFFEE)) {
|
|
672
672
|
return 'H';
|
|
673
673
|
}
|
|
674
|
-
if (0x1100 <= codePoint && codePoint <= 0x115F || 0x11A3 <= codePoint && codePoint <= 0x11A7 || 0x11FA <= codePoint && codePoint <= 0x11FF || 0x2329 <= codePoint && codePoint <= 0x232A || 0x2E80 <= codePoint && codePoint <= 0x2E99 || 0x2E9B <= codePoint && codePoint <= 0x2EF3 || 0x2F00 <= codePoint && codePoint <= 0x2FD5 || 0x2FF0 <= codePoint && codePoint <= 0x2FFB || 0x3001 <= codePoint && codePoint <= 0x303E || 0x3041 <= codePoint && codePoint <= 0x3096 || 0x3099 <= codePoint && codePoint <= 0x30FF || 0x3105 <= codePoint && codePoint <= 0x312D || 0x3131 <= codePoint && codePoint <= 0x318E || 0x3190 <= codePoint && codePoint <= 0x31BA || 0x31C0 <= codePoint && codePoint <= 0x31E3 || 0x31F0 <= codePoint && codePoint <= 0x321E || 0x3220 <= codePoint && codePoint <= 0x3247 || 0x3250 <= codePoint && codePoint <= 0x32FE || 0x3300 <= codePoint && codePoint <= 0x4DBF || 0x4E00 <= codePoint && codePoint <= 0xA48C || 0xA490 <= codePoint && codePoint <= 0xA4C6 || 0xA960 <= codePoint && codePoint <= 0xA97C || 0xAC00 <= codePoint && codePoint <= 0xD7A3 || 0xD7B0 <= codePoint && codePoint <= 0xD7C6 || 0xD7CB <= codePoint && codePoint <= 0xD7FB || 0xF900 <= codePoint && codePoint <= 0xFAFF || 0xFE10 <= codePoint && codePoint <= 0xFE19 || 0xFE30 <= codePoint && codePoint <= 0xFE52 || 0xFE54 <= codePoint && codePoint <= 0xFE66 || 0xFE68 <= codePoint && codePoint <= 0xFE6B || 0x1B000 <= codePoint && codePoint <= 0x1B001 || 0x1F200 <= codePoint && codePoint <= 0x1F202 || 0x1F210 <= codePoint && codePoint <= 0x1F23A || 0x1F240 <= codePoint && codePoint <= 0x1F248 || 0x1F250 <= codePoint && codePoint <= 0x1F251 || 0x20000 <= codePoint && codePoint <= 0x2F73F || 0x2B740 <= codePoint && codePoint <= 0x2FFFD || 0x30000 <= codePoint && codePoint <= 0x3FFFD) {
|
|
674
|
+
if ((0x1100 <= codePoint && codePoint <= 0x115F) || (0x11A3 <= codePoint && codePoint <= 0x11A7) || (0x11FA <= codePoint && codePoint <= 0x11FF) || (0x2329 <= codePoint && codePoint <= 0x232A) || (0x2E80 <= codePoint && codePoint <= 0x2E99) || (0x2E9B <= codePoint && codePoint <= 0x2EF3) || (0x2F00 <= codePoint && codePoint <= 0x2FD5) || (0x2FF0 <= codePoint && codePoint <= 0x2FFB) || (0x3001 <= codePoint && codePoint <= 0x303E) || (0x3041 <= codePoint && codePoint <= 0x3096) || (0x3099 <= codePoint && codePoint <= 0x30FF) || (0x3105 <= codePoint && codePoint <= 0x312D) || (0x3131 <= codePoint && codePoint <= 0x318E) || (0x3190 <= codePoint && codePoint <= 0x31BA) || (0x31C0 <= codePoint && codePoint <= 0x31E3) || (0x31F0 <= codePoint && codePoint <= 0x321E) || (0x3220 <= codePoint && codePoint <= 0x3247) || (0x3250 <= codePoint && codePoint <= 0x32FE) || (0x3300 <= codePoint && codePoint <= 0x4DBF) || (0x4E00 <= codePoint && codePoint <= 0xA48C) || (0xA490 <= codePoint && codePoint <= 0xA4C6) || (0xA960 <= codePoint && codePoint <= 0xA97C) || (0xAC00 <= codePoint && codePoint <= 0xD7A3) || (0xD7B0 <= codePoint && codePoint <= 0xD7C6) || (0xD7CB <= codePoint && codePoint <= 0xD7FB) || (0xF900 <= codePoint && codePoint <= 0xFAFF) || (0xFE10 <= codePoint && codePoint <= 0xFE19) || (0xFE30 <= codePoint && codePoint <= 0xFE52) || (0xFE54 <= codePoint && codePoint <= 0xFE66) || (0xFE68 <= codePoint && codePoint <= 0xFE6B) || (0x1B000 <= codePoint && codePoint <= 0x1B001) || (0x1F200 <= codePoint && codePoint <= 0x1F202) || (0x1F210 <= codePoint && codePoint <= 0x1F23A) || (0x1F240 <= codePoint && codePoint <= 0x1F248) || (0x1F250 <= codePoint && codePoint <= 0x1F251) || (0x20000 <= codePoint && codePoint <= 0x2F73F) || (0x2B740 <= codePoint && codePoint <= 0x2FFFD) || (0x30000 <= codePoint && codePoint <= 0x3FFFD)) {
|
|
675
675
|
return 'W';
|
|
676
676
|
}
|
|
677
|
-
if (0x0020 <= codePoint && codePoint <= 0x007E || 0x00A2 <= codePoint && codePoint <= 0x00A3 || 0x00A5 <= codePoint && codePoint <= 0x00A6 || 0x00AC == codePoint || 0x00AF == codePoint || 0x27E6 <= codePoint && codePoint <= 0x27ED || 0x2985 <= codePoint && codePoint <= 0x2986) {
|
|
677
|
+
if ((0x0020 <= codePoint && codePoint <= 0x007E) || (0x00A2 <= codePoint && codePoint <= 0x00A3) || (0x00A5 <= codePoint && codePoint <= 0x00A6) || (0x00AC == codePoint) || (0x00AF == codePoint) || (0x27E6 <= codePoint && codePoint <= 0x27ED) || (0x2985 <= codePoint && codePoint <= 0x2986)) {
|
|
678
678
|
return 'Na';
|
|
679
679
|
}
|
|
680
|
-
if (0x00A1 == codePoint || 0x00A4 == codePoint || 0x00A7 <= codePoint && codePoint <= 0x00A8 || 0x00AA == codePoint || 0x00AD <= codePoint && codePoint <= 0x00AE || 0x00B0 <= codePoint && codePoint <= 0x00B4 || 0x00B6 <= codePoint && codePoint <= 0x00BA || 0x00BC <= codePoint && codePoint <= 0x00BF || 0x00C6 == codePoint || 0x00D0 == codePoint || 0x00D7 <= codePoint && codePoint <= 0x00D8 || 0x00DE <= codePoint && codePoint <= 0x00E1 || 0x00E6 == codePoint || 0x00E8 <= codePoint && codePoint <= 0x00EA || 0x00EC <= codePoint && codePoint <= 0x00ED || 0x00F0 == codePoint || 0x00F2 <= codePoint && codePoint <= 0x00F3 || 0x00F7 <= codePoint && codePoint <= 0x00FA || 0x00FC == codePoint || 0x00FE == codePoint || 0x0101 == codePoint || 0x0111 == codePoint || 0x0113 == codePoint || 0x011B == codePoint || 0x0126 <= codePoint && codePoint <= 0x0127 || 0x012B == codePoint || 0x0131 <= codePoint && codePoint <= 0x0133 || 0x0138 == codePoint || 0x013F <= codePoint && codePoint <= 0x0142 || 0x0144 == codePoint || 0x0148 <= codePoint && codePoint <= 0x014B || 0x014D == codePoint || 0x0152 <= codePoint && codePoint <= 0x0153 || 0x0166 <= codePoint && codePoint <= 0x0167 || 0x016B == codePoint || 0x01CE == codePoint || 0x01D0 == codePoint || 0x01D2 == codePoint || 0x01D4 == codePoint || 0x01D6 == codePoint || 0x01D8 == codePoint || 0x01DA == codePoint || 0x01DC == codePoint || 0x0251 == codePoint || 0x0261 == codePoint || 0x02C4 == codePoint || 0x02C7 == codePoint || 0x02C9 <= codePoint && codePoint <= 0x02CB || 0x02CD == codePoint || 0x02D0 == codePoint || 0x02D8 <= codePoint && codePoint <= 0x02DB || 0x02DD == codePoint || 0x02DF == codePoint || 0x0300 <= codePoint && codePoint <= 0x036F || 0x0391 <= codePoint && codePoint <= 0x03A1 || 0x03A3 <= codePoint && codePoint <= 0x03A9 || 0x03B1 <= codePoint && codePoint <= 0x03C1 || 0x03C3 <= codePoint && codePoint <= 0x03C9 || 0x0401 == codePoint || 0x0410 <= codePoint && codePoint <= 0x044F || 0x0451 == codePoint || 0x2010 == codePoint || 0x2013 <= codePoint && codePoint <= 0x2016 || 0x2018 <= codePoint && codePoint <= 0x2019 || 0x201C <= codePoint && codePoint <= 0x201D || 0x2020 <= codePoint && codePoint <= 0x2022 || 0x2024 <= codePoint && codePoint <= 0x2027 || 0x2030 == codePoint || 0x2032 <= codePoint && codePoint <= 0x2033 || 0x2035 == codePoint || 0x203B == codePoint || 0x203E == codePoint || 0x2074 == codePoint || 0x207F == codePoint || 0x2081 <= codePoint && codePoint <= 0x2084 || 0x20AC == codePoint || 0x2103 == codePoint || 0x2105 == codePoint || 0x2109 == codePoint || 0x2113 == codePoint || 0x2116 == codePoint || 0x2121 <= codePoint && codePoint <= 0x2122 || 0x2126 == codePoint || 0x212B == codePoint || 0x2153 <= codePoint && codePoint <= 0x2154 || 0x215B <= codePoint && codePoint <= 0x215E || 0x2160 <= codePoint && codePoint <= 0x216B || 0x2170 <= codePoint && codePoint <= 0x2179 || 0x2189 == codePoint || 0x2190 <= codePoint && codePoint <= 0x2199 || 0x21B8 <= codePoint && codePoint <= 0x21B9 || 0x21D2 == codePoint || 0x21D4 == codePoint || 0x21E7 == codePoint || 0x2200 == codePoint || 0x2202 <= codePoint && codePoint <= 0x2203 || 0x2207 <= codePoint && codePoint <= 0x2208 || 0x220B == codePoint || 0x220F == codePoint || 0x2211 == codePoint || 0x2215 == codePoint || 0x221A == codePoint || 0x221D <= codePoint && codePoint <= 0x2220 || 0x2223 == codePoint || 0x2225 == codePoint || 0x2227 <= codePoint && codePoint <= 0x222C || 0x222E == codePoint || 0x2234 <= codePoint && codePoint <= 0x2237 || 0x223C <= codePoint && codePoint <= 0x223D || 0x2248 == codePoint || 0x224C == codePoint || 0x2252 == codePoint || 0x2260 <= codePoint && codePoint <= 0x2261 || 0x2264 <= codePoint && codePoint <= 0x2267 || 0x226A <= codePoint && codePoint <= 0x226B || 0x226E <= codePoint && codePoint <= 0x226F || 0x2282 <= codePoint && codePoint <= 0x2283 || 0x2286 <= codePoint && codePoint <= 0x2287 || 0x2295 == codePoint || 0x2299 == codePoint || 0x22A5 == codePoint || 0x22BF == codePoint || 0x2312 == codePoint || 0x2460 <= codePoint && codePoint <= 0x24E9 || 0x24EB <= codePoint && codePoint <= 0x254B || 0x2550 <= codePoint && codePoint <= 0x2573 || 0x2580 <= codePoint && codePoint <= 0x258F || 0x2592 <= codePoint && codePoint <= 0x2595 || 0x25A0 <= codePoint && codePoint <= 0x25A1 || 0x25A3 <= codePoint && codePoint <= 0x25A9 || 0x25B2 <= codePoint && codePoint <= 0x25B3 || 0x25B6 <= codePoint && codePoint <= 0x25B7 || 0x25BC <= codePoint && codePoint <= 0x25BD || 0x25C0 <= codePoint && codePoint <= 0x25C1 || 0x25C6 <= codePoint && codePoint <= 0x25C8 || 0x25CB == codePoint || 0x25CE <= codePoint && codePoint <= 0x25D1 || 0x25E2 <= codePoint && codePoint <= 0x25E5 || 0x25EF == codePoint || 0x2605 <= codePoint && codePoint <= 0x2606 || 0x2609 == codePoint || 0x260E <= codePoint && codePoint <= 0x260F || 0x2614 <= codePoint && codePoint <= 0x2615 || 0x261C == codePoint || 0x261E == codePoint || 0x2640 == codePoint || 0x2642 == codePoint || 0x2660 <= codePoint && codePoint <= 0x2661 || 0x2663 <= codePoint && codePoint <= 0x2665 || 0x2667 <= codePoint && codePoint <= 0x266A || 0x266C <= codePoint && codePoint <= 0x266D || 0x266F == codePoint || 0x269E <= codePoint && codePoint <= 0x269F || 0x26BE <= codePoint && codePoint <= 0x26BF || 0x26C4 <= codePoint && codePoint <= 0x26CD || 0x26CF <= codePoint && codePoint <= 0x26E1 || 0x26E3 == codePoint || 0x26E8 <= codePoint && codePoint <= 0x26FF || 0x273D == codePoint || 0x2757 == codePoint || 0x2776 <= codePoint && codePoint <= 0x277F || 0x2B55 <= codePoint && codePoint <= 0x2B59 || 0x3248 <= codePoint && codePoint <= 0x324F || 0xE000 <= codePoint && codePoint <= 0xF8FF || 0xFE00 <= codePoint && codePoint <= 0xFE0F || 0xFFFD == codePoint || 0x1F100 <= codePoint && codePoint <= 0x1F10A || 0x1F110 <= codePoint && codePoint <= 0x1F12D || 0x1F130 <= codePoint && codePoint <= 0x1F169 || 0x1F170 <= codePoint && codePoint <= 0x1F19A || 0xE0100 <= codePoint && codePoint <= 0xE01EF || 0xF0000 <= codePoint && codePoint <= 0xFFFFD || 0x100000 <= codePoint && codePoint <= 0x10FFFD) {
|
|
680
|
+
if ((0x00A1 == codePoint) || (0x00A4 == codePoint) || (0x00A7 <= codePoint && codePoint <= 0x00A8) || (0x00AA == codePoint) || (0x00AD <= codePoint && codePoint <= 0x00AE) || (0x00B0 <= codePoint && codePoint <= 0x00B4) || (0x00B6 <= codePoint && codePoint <= 0x00BA) || (0x00BC <= codePoint && codePoint <= 0x00BF) || (0x00C6 == codePoint) || (0x00D0 == codePoint) || (0x00D7 <= codePoint && codePoint <= 0x00D8) || (0x00DE <= codePoint && codePoint <= 0x00E1) || (0x00E6 == codePoint) || (0x00E8 <= codePoint && codePoint <= 0x00EA) || (0x00EC <= codePoint && codePoint <= 0x00ED) || (0x00F0 == codePoint) || (0x00F2 <= codePoint && codePoint <= 0x00F3) || (0x00F7 <= codePoint && codePoint <= 0x00FA) || (0x00FC == codePoint) || (0x00FE == codePoint) || (0x0101 == codePoint) || (0x0111 == codePoint) || (0x0113 == codePoint) || (0x011B == codePoint) || (0x0126 <= codePoint && codePoint <= 0x0127) || (0x012B == codePoint) || (0x0131 <= codePoint && codePoint <= 0x0133) || (0x0138 == codePoint) || (0x013F <= codePoint && codePoint <= 0x0142) || (0x0144 == codePoint) || (0x0148 <= codePoint && codePoint <= 0x014B) || (0x014D == codePoint) || (0x0152 <= codePoint && codePoint <= 0x0153) || (0x0166 <= codePoint && codePoint <= 0x0167) || (0x016B == codePoint) || (0x01CE == codePoint) || (0x01D0 == codePoint) || (0x01D2 == codePoint) || (0x01D4 == codePoint) || (0x01D6 == codePoint) || (0x01D8 == codePoint) || (0x01DA == codePoint) || (0x01DC == codePoint) || (0x0251 == codePoint) || (0x0261 == codePoint) || (0x02C4 == codePoint) || (0x02C7 == codePoint) || (0x02C9 <= codePoint && codePoint <= 0x02CB) || (0x02CD == codePoint) || (0x02D0 == codePoint) || (0x02D8 <= codePoint && codePoint <= 0x02DB) || (0x02DD == codePoint) || (0x02DF == codePoint) || (0x0300 <= codePoint && codePoint <= 0x036F) || (0x0391 <= codePoint && codePoint <= 0x03A1) || (0x03A3 <= codePoint && codePoint <= 0x03A9) || (0x03B1 <= codePoint && codePoint <= 0x03C1) || (0x03C3 <= codePoint && codePoint <= 0x03C9) || (0x0401 == codePoint) || (0x0410 <= codePoint && codePoint <= 0x044F) || (0x0451 == codePoint) || (0x2010 == codePoint) || (0x2013 <= codePoint && codePoint <= 0x2016) || (0x2018 <= codePoint && codePoint <= 0x2019) || (0x201C <= codePoint && codePoint <= 0x201D) || (0x2020 <= codePoint && codePoint <= 0x2022) || (0x2024 <= codePoint && codePoint <= 0x2027) || (0x2030 == codePoint) || (0x2032 <= codePoint && codePoint <= 0x2033) || (0x2035 == codePoint) || (0x203B == codePoint) || (0x203E == codePoint) || (0x2074 == codePoint) || (0x207F == codePoint) || (0x2081 <= codePoint && codePoint <= 0x2084) || (0x20AC == codePoint) || (0x2103 == codePoint) || (0x2105 == codePoint) || (0x2109 == codePoint) || (0x2113 == codePoint) || (0x2116 == codePoint) || (0x2121 <= codePoint && codePoint <= 0x2122) || (0x2126 == codePoint) || (0x212B == codePoint) || (0x2153 <= codePoint && codePoint <= 0x2154) || (0x215B <= codePoint && codePoint <= 0x215E) || (0x2160 <= codePoint && codePoint <= 0x216B) || (0x2170 <= codePoint && codePoint <= 0x2179) || (0x2189 == codePoint) || (0x2190 <= codePoint && codePoint <= 0x2199) || (0x21B8 <= codePoint && codePoint <= 0x21B9) || (0x21D2 == codePoint) || (0x21D4 == codePoint) || (0x21E7 == codePoint) || (0x2200 == codePoint) || (0x2202 <= codePoint && codePoint <= 0x2203) || (0x2207 <= codePoint && codePoint <= 0x2208) || (0x220B == codePoint) || (0x220F == codePoint) || (0x2211 == codePoint) || (0x2215 == codePoint) || (0x221A == codePoint) || (0x221D <= codePoint && codePoint <= 0x2220) || (0x2223 == codePoint) || (0x2225 == codePoint) || (0x2227 <= codePoint && codePoint <= 0x222C) || (0x222E == codePoint) || (0x2234 <= codePoint && codePoint <= 0x2237) || (0x223C <= codePoint && codePoint <= 0x223D) || (0x2248 == codePoint) || (0x224C == codePoint) || (0x2252 == codePoint) || (0x2260 <= codePoint && codePoint <= 0x2261) || (0x2264 <= codePoint && codePoint <= 0x2267) || (0x226A <= codePoint && codePoint <= 0x226B) || (0x226E <= codePoint && codePoint <= 0x226F) || (0x2282 <= codePoint && codePoint <= 0x2283) || (0x2286 <= codePoint && codePoint <= 0x2287) || (0x2295 == codePoint) || (0x2299 == codePoint) || (0x22A5 == codePoint) || (0x22BF == codePoint) || (0x2312 == codePoint) || (0x2460 <= codePoint && codePoint <= 0x24E9) || (0x24EB <= codePoint && codePoint <= 0x254B) || (0x2550 <= codePoint && codePoint <= 0x2573) || (0x2580 <= codePoint && codePoint <= 0x258F) || (0x2592 <= codePoint && codePoint <= 0x2595) || (0x25A0 <= codePoint && codePoint <= 0x25A1) || (0x25A3 <= codePoint && codePoint <= 0x25A9) || (0x25B2 <= codePoint && codePoint <= 0x25B3) || (0x25B6 <= codePoint && codePoint <= 0x25B7) || (0x25BC <= codePoint && codePoint <= 0x25BD) || (0x25C0 <= codePoint && codePoint <= 0x25C1) || (0x25C6 <= codePoint && codePoint <= 0x25C8) || (0x25CB == codePoint) || (0x25CE <= codePoint && codePoint <= 0x25D1) || (0x25E2 <= codePoint && codePoint <= 0x25E5) || (0x25EF == codePoint) || (0x2605 <= codePoint && codePoint <= 0x2606) || (0x2609 == codePoint) || (0x260E <= codePoint && codePoint <= 0x260F) || (0x2614 <= codePoint && codePoint <= 0x2615) || (0x261C == codePoint) || (0x261E == codePoint) || (0x2640 == codePoint) || (0x2642 == codePoint) || (0x2660 <= codePoint && codePoint <= 0x2661) || (0x2663 <= codePoint && codePoint <= 0x2665) || (0x2667 <= codePoint && codePoint <= 0x266A) || (0x266C <= codePoint && codePoint <= 0x266D) || (0x266F == codePoint) || (0x269E <= codePoint && codePoint <= 0x269F) || (0x26BE <= codePoint && codePoint <= 0x26BF) || (0x26C4 <= codePoint && codePoint <= 0x26CD) || (0x26CF <= codePoint && codePoint <= 0x26E1) || (0x26E3 == codePoint) || (0x26E8 <= codePoint && codePoint <= 0x26FF) || (0x273D == codePoint) || (0x2757 == codePoint) || (0x2776 <= codePoint && codePoint <= 0x277F) || (0x2B55 <= codePoint && codePoint <= 0x2B59) || (0x3248 <= codePoint && codePoint <= 0x324F) || (0xE000 <= codePoint && codePoint <= 0xF8FF) || (0xFE00 <= codePoint && codePoint <= 0xFE0F) || (0xFFFD == codePoint) || (0x1F100 <= codePoint && codePoint <= 0x1F10A) || (0x1F110 <= codePoint && codePoint <= 0x1F12D) || (0x1F130 <= codePoint && codePoint <= 0x1F169) || (0x1F170 <= codePoint && codePoint <= 0x1F19A) || (0xE0100 <= codePoint && codePoint <= 0xE01EF) || (0xF0000 <= codePoint && codePoint <= 0xFFFFD) || (0x100000 <= codePoint && codePoint <= 0x10FFFD)) {
|
|
681
681
|
return 'A';
|
|
682
682
|
}
|
|
683
683
|
return 'N';
|
|
@@ -728,9 +728,9 @@ var eastasianwidth = {exports: {}};
|
|
|
728
728
|
}
|
|
729
729
|
return result;
|
|
730
730
|
};
|
|
731
|
-
}
|
|
731
|
+
}(eastasianwidth));
|
|
732
732
|
var eastasianwidthExports = eastasianwidth.exports;
|
|
733
|
-
const eastAsianWidth = getDefaultExportFromCjs(eastasianwidthExports);
|
|
733
|
+
const eastAsianWidth = /*@__PURE__*/ getDefaultExportFromCjs(eastasianwidthExports);
|
|
734
734
|
const emojiRegex = () => {
|
|
735
735
|
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
736
736
|
};
|
|
@@ -753,7 +753,7 @@ function stringWidth$1(string, options) {
|
|
|
753
753
|
let width = 0;
|
|
754
754
|
for (const { segment: character } of new Intl.Segmenter().segment(string)) {
|
|
755
755
|
const codePoint = character.codePointAt(0);
|
|
756
|
-
if (codePoint <= 0x1F || codePoint >= 0x7F && codePoint <= 0x9F) {
|
|
756
|
+
if (codePoint <= 0x1F || (codePoint >= 0x7F && codePoint <= 0x9F)) {
|
|
757
757
|
continue;
|
|
758
758
|
}
|
|
759
759
|
if (codePoint >= 0x3_00 && codePoint <= 0x3_6F) {
|
|
@@ -876,7 +876,7 @@ function createConsola(options = {}) {
|
|
|
876
876
|
defaults: {level},
|
|
877
877
|
stdout: process.stdout,
|
|
878
878
|
stderr: process.stderr,
|
|
879
|
-
prompt: (...args) => import('./prompt-
|
|
879
|
+
prompt: (...args) => import('./prompt-pjyLzLci.mjs').then((m) => m.prompt(...args)),
|
|
880
880
|
reporters: options.reporters || [options.fancy ?? !(isCI || isTest) ? new FancyReporter() : new BasicReporter()],
|
|
881
881
|
...options
|
|
882
882
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __toESM } = require("./chunk-1xb6WR3y.cjs");
|
|
4
|
-
const { colors, getDefaultExportFromCjs, isUnicodeSupported } = require("./consola.36c0034f-
|
|
4
|
+
const { colors, getDefaultExportFromCjs, isUnicodeSupported } = require("./consola.36c0034f-N8xiTrv3.cjs");
|
|
5
5
|
require("node:path");
|
|
6
6
|
const { stdin, stdout } = __toESM(require("node:process"));
|
|
7
7
|
require("node:util");
|
|
@@ -63,7 +63,7 @@ var src = {
|
|
|
63
63
|
};
|
|
64
64
|
var picocolors = {exports: {}};
|
|
65
65
|
let tty = require$$0;
|
|
66
|
-
let isColorSupported = !('NO_COLOR'in process.env || process.argv.includes('--no-color')) && ('FORCE_COLOR'in process.env || process.argv.includes('--color') || process.platform === 'win32' || tty.isatty(1) && process.env.TERM !== 'dumb' || 'CI'in process.env);
|
|
66
|
+
let isColorSupported = !('NO_COLOR'in process.env || process.argv.includes('--no-color')) && ('FORCE_COLOR'in process.env || process.argv.includes('--color') || process.platform === 'win32' || (tty.isatty(1) && process.env.TERM !== 'dumb') || 'CI'in process.env);
|
|
67
67
|
let formatter = (open, close, replace = open) => (input) => {
|
|
68
68
|
let string = '' + input;
|
|
69
69
|
let index = string.indexOf(close, open.length);
|
|
@@ -106,7 +106,7 @@ let createColors = (enabled = isColorSupported) => ({
|
|
|
106
106
|
picocolors.exports = createColors();
|
|
107
107
|
picocolors.exports.createColors = createColors;
|
|
108
108
|
var picocolorsExports = picocolors.exports;
|
|
109
|
-
const l = getDefaultExportFromCjs(picocolorsExports);
|
|
109
|
+
const l = /*@__PURE__*/ getDefaultExportFromCjs(picocolorsExports);
|
|
110
110
|
function z({ onlyFirst: t = !1 } = {}) {
|
|
111
111
|
const u = ['[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'].join('|');
|
|
112
112
|
return new RegExp(u, t ? void 0 : 'g');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { colors, getDefaultExportFromCjs, isUnicodeSupported } from "./consola.36c0034f-
|
|
3
|
+
import { colors, getDefaultExportFromCjs, isUnicodeSupported } from "./consola.36c0034f-jtHhMkSX.mjs";
|
|
4
4
|
import "node:path";
|
|
5
5
|
import { stdin, stdout } from "node:process";
|
|
6
6
|
import "node:util";
|
|
@@ -62,7 +62,7 @@ var src = {
|
|
|
62
62
|
};
|
|
63
63
|
var picocolors = {exports: {}};
|
|
64
64
|
let tty = require$$0;
|
|
65
|
-
let isColorSupported = !('NO_COLOR'in process.env || process.argv.includes('--no-color')) && ('FORCE_COLOR'in process.env || process.argv.includes('--color') || process.platform === 'win32' || tty.isatty(1) && process.env.TERM !== 'dumb' || 'CI'in process.env);
|
|
65
|
+
let isColorSupported = !('NO_COLOR'in process.env || process.argv.includes('--no-color')) && ('FORCE_COLOR'in process.env || process.argv.includes('--color') || process.platform === 'win32' || (tty.isatty(1) && process.env.TERM !== 'dumb') || 'CI'in process.env);
|
|
66
66
|
let formatter = (open, close, replace = open) => (input) => {
|
|
67
67
|
let string = '' + input;
|
|
68
68
|
let index = string.indexOf(close, open.length);
|
|
@@ -105,7 +105,7 @@ let createColors = (enabled = isColorSupported) => ({
|
|
|
105
105
|
picocolors.exports = createColors();
|
|
106
106
|
picocolors.exports.createColors = createColors;
|
|
107
107
|
var picocolorsExports = picocolors.exports;
|
|
108
|
-
const l = getDefaultExportFromCjs(picocolorsExports);
|
|
108
|
+
const l = /*@__PURE__*/ getDefaultExportFromCjs(picocolorsExports);
|
|
109
109
|
function z({ onlyFirst: t = !1 } = {}) {
|
|
110
110
|
const u = ['[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'].join('|');
|
|
111
111
|
return new RegExp(u, t ? void 0 : 'g');
|
|
@@ -136,7 +136,7 @@ function __napi_rs_initialize_modules(__napiInstance) {
|
|
|
136
136
|
__napiInstance.exports['__napi_register__BindingRenderedModule_struct_79']?.()
|
|
137
137
|
__napiInstance.exports['__napi_register__AliasItem_struct_80']?.()
|
|
138
138
|
__napiInstance.exports['__napi_register__BindingSourcemap_struct_81']?.()
|
|
139
|
-
__napiInstance.exports['
|
|
139
|
+
__napiInstance.exports['__napi_register__BindingJsonSourcemap_struct_82']?.()
|
|
140
140
|
}
|
|
141
141
|
module.exports.BindingLog = __napiModule.exports.BindingLog
|
|
142
142
|
module.exports.BindingModuleInfo = __napiModule.exports.BindingModuleInfo
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { createBundler, transformToRollupOutput } from "./utils_index-
|
|
3
|
+
import { createBundler, transformToRollupOutput } from "./utils_index-_DFpKlu1.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/rolldown-build.ts
|
|
6
6
|
class RolldownBuild {
|
|
@@ -434,7 +434,7 @@ var require_binding = __commonJSMin((exports, module) => {
|
|
|
434
434
|
nativeBinding = require('./rolldown-binding.wasi.cjs');
|
|
435
435
|
} catch (err) {
|
|
436
436
|
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
437
|
-
|
|
437
|
+
loadErrors.push(err);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
if (!nativeBinding) {
|
|
@@ -442,7 +442,7 @@ var require_binding = __commonJSMin((exports, module) => {
|
|
|
442
442
|
nativeBinding = require('@rolldown/binding-wasm32-wasi');
|
|
443
443
|
} catch (err) {
|
|
444
444
|
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
445
|
-
|
|
445
|
+
loadErrors.push(err);
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
}
|
|
@@ -931,7 +931,7 @@ function bindingifyLoad(plugin, options, pluginContextData) {
|
|
|
931
931
|
if (!ret.map) {
|
|
932
932
|
return {code: ret.code};
|
|
933
933
|
}
|
|
934
|
-
let map = typeof ret.map === 'object' ? ret.map : JSON.parse(ret.map);
|
|
934
|
+
let map = typeof ret.map === 'object' ? ret.map : (JSON.parse(ret.map));
|
|
935
935
|
if (!isEmptySourcemapFiled(map.sources)) {
|
|
936
936
|
const directory = path$1.dirname(id) || '.';
|
|
937
937
|
const sourceRoot = map.sourceRoot || '.';
|
|
@@ -1037,6 +1037,16 @@ function bindingifyWriteBundle(plugin, options, outputOptions, pluginContextData
|
|
|
1037
1037
|
handler.call(new PluginContext(options, ctx, plugin, pluginContextData), outputOptions, transformToOutputBundle(bundle));
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
|
+
function bindingifyBanner(plugin, options, pluginContextData) {
|
|
1041
|
+
const hook = plugin.banner;
|
|
1042
|
+
if (!hook) {
|
|
1043
|
+
return undefined;
|
|
1044
|
+
}
|
|
1045
|
+
const [handler, _optionsIgnoredSofar] = normalizeHook(hook);
|
|
1046
|
+
return async (ctx, chunk) => {
|
|
1047
|
+
return handler.call(new PluginContext(options, ctx, plugin, pluginContextData), chunk);
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1040
1050
|
|
|
1041
1051
|
//#endregion
|
|
1042
1052
|
//#region src/plugin/plugin-context-data.ts
|
|
@@ -1098,7 +1108,8 @@ function bindingifyPlugin(plugin, options, outputOptions) {
|
|
|
1098
1108
|
renderStart: bindingifyRenderStart(plugin, options, outputOptions, pluginContextData),
|
|
1099
1109
|
renderError: bindingifyRenderError(plugin, options, pluginContextData),
|
|
1100
1110
|
generateBundle: bindingifyGenerateBundle(plugin, options, outputOptions, pluginContextData),
|
|
1101
|
-
writeBundle: bindingifyWriteBundle(plugin, options, outputOptions, pluginContextData)
|
|
1111
|
+
writeBundle: bindingifyWriteBundle(plugin, options, outputOptions, pluginContextData),
|
|
1112
|
+
banner: bindingifyBanner(plugin, options, pluginContextData)
|
|
1102
1113
|
};
|
|
1103
1114
|
}
|
|
1104
1115
|
|
|
@@ -1146,7 +1157,7 @@ function bindingifyInputOptions(options, outputOptions) {
|
|
|
1146
1157
|
return bindingifyPlugin(plugin, options, outputOptions);
|
|
1147
1158
|
}),
|
|
1148
1159
|
cwd: options.cwd ?? process.cwd(),
|
|
1149
|
-
external: options.external ? function bindingifyExternal() {
|
|
1160
|
+
external: options.external ? (function bindingifyExternal() {
|
|
1150
1161
|
const external = options.external;
|
|
1151
1162
|
if (typeof external === 'function') {
|
|
1152
1163
|
return (id, importer, isResolved) => {
|
|
@@ -1163,8 +1174,8 @@ function bindingifyInputOptions(options, outputOptions) {
|
|
|
1163
1174
|
return id === pat;
|
|
1164
1175
|
});
|
|
1165
1176
|
};
|
|
1166
|
-
}() : undefined,
|
|
1167
|
-
resolve: options.resolve ? function bindingifyResolve() {
|
|
1177
|
+
})() : undefined,
|
|
1178
|
+
resolve: options.resolve ? (function bindingifyResolve() {
|
|
1168
1179
|
const { alias,...rest } = options.resolve;
|
|
1169
1180
|
return {
|
|
1170
1181
|
alias: alias ? Object.entries(alias).map(([name, replacement]) => ({
|
|
@@ -1173,7 +1184,7 @@ function bindingifyInputOptions(options, outputOptions) {
|
|
|
1173
1184
|
})) : undefined,
|
|
1174
1185
|
...rest
|
|
1175
1186
|
};
|
|
1176
|
-
}() : undefined,
|
|
1187
|
+
})() : undefined,
|
|
1177
1188
|
platform: options.platform,
|
|
1178
1189
|
shimMissingExports: options.shimMissingExports,
|
|
1179
1190
|
logLevel: bindingifyLogLevel(options.logLevel),
|
|
@@ -1450,7 +1461,7 @@ async function normalizeInputOptions(config) {
|
|
|
1450
1461
|
const onLog = getLogger(getObjectPlugins(plugins), getOnLog(config, logLevel), logLevel);
|
|
1451
1462
|
return {
|
|
1452
1463
|
...rest,
|
|
1453
|
-
input: input ? typeof input === 'string' ? [input] : input : [],
|
|
1464
|
+
input: input ? (typeof input === 'string' ? [input] : input) : [],
|
|
1454
1465
|
plugins,
|
|
1455
1466
|
logLevel,
|
|
1456
1467
|
onLog,
|
|
@@ -1461,11 +1472,11 @@ async function normalizeInputOptions(config) {
|
|
|
1461
1472
|
//#endregion
|
|
1462
1473
|
//#region src/utils/normalize-output-options.ts
|
|
1463
1474
|
function normalizeOutputOptions(opts) {
|
|
1464
|
-
const { dir, format, exports, sourcemap, sourcemapIgnoreList, sourcemapPathTransform, entryFileNames, chunkFileNames, assetFileNames } = opts;
|
|
1475
|
+
const { dir, format, exports, sourcemap, sourcemapIgnoreList, sourcemapPathTransform, entryFileNames, chunkFileNames, assetFileNames, name } = opts;
|
|
1465
1476
|
return {
|
|
1466
1477
|
dir: dir,
|
|
1467
1478
|
format: getFormat(format),
|
|
1468
|
-
exports: exports ?? '
|
|
1479
|
+
exports: exports ?? 'auto',
|
|
1469
1480
|
sourcemap: sourcemap ?? false,
|
|
1470
1481
|
sourcemapIgnoreList: typeof sourcemapIgnoreList === 'function' ? sourcemapIgnoreList : sourcemapIgnoreList === false ? () => false : (relativeSourcePath, sourcemapPath) => relativeSourcePath.includes('node_modules'),
|
|
1471
1482
|
sourcemapPathTransform,
|
|
@@ -1475,7 +1486,8 @@ function normalizeOutputOptions(opts) {
|
|
|
1475
1486
|
chunkFileNames: chunkFileNames ?? '[name]-[hash].js',
|
|
1476
1487
|
assetFileNames: assetFileNames ?? 'assets/[name]-[hash][extname]',
|
|
1477
1488
|
plugins: [],
|
|
1478
|
-
minify: opts.minify
|
|
1489
|
+
minify: opts.minify,
|
|
1490
|
+
name
|
|
1479
1491
|
};
|
|
1480
1492
|
}
|
|
1481
1493
|
function getFormat(format) {
|
|
@@ -1497,32 +1509,35 @@ function getFormat(format) {
|
|
|
1497
1509
|
}
|
|
1498
1510
|
}
|
|
1499
1511
|
const getAddon = (config, name) => {
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1512
|
+
return async (chunk) => {
|
|
1513
|
+
const configAddon = config[name];
|
|
1514
|
+
if (typeof configAddon === 'function') {
|
|
1515
|
+
return configAddon(chunk);
|
|
1516
|
+
}
|
|
1517
|
+
return configAddon || '';
|
|
1518
|
+
};
|
|
1505
1519
|
};
|
|
1506
1520
|
|
|
1507
1521
|
//#endregion
|
|
1508
1522
|
//#region src/options/bindingify-output-options.ts
|
|
1509
1523
|
function bindingifyOutputOptions(outputOptions) {
|
|
1510
|
-
const { dir, format, exports, sourcemap, sourcemapIgnoreList, sourcemapPathTransform, entryFileNames, chunkFileNames, assetFileNames, banner, footer } = outputOptions;
|
|
1524
|
+
const { dir, format, exports, sourcemap, sourcemapIgnoreList, sourcemapPathTransform, name, entryFileNames, chunkFileNames, assetFileNames, banner, footer } = outputOptions;
|
|
1511
1525
|
return {
|
|
1512
1526
|
dir,
|
|
1513
|
-
format: function() {
|
|
1527
|
+
format: (function() {
|
|
1514
1528
|
switch (format) {
|
|
1515
1529
|
case 'es': return 'es';
|
|
1516
1530
|
case 'cjs': return 'cjs';
|
|
1517
1531
|
case 'iife': return 'iife';
|
|
1518
1532
|
}
|
|
1519
|
-
}(),
|
|
1533
|
+
})(),
|
|
1520
1534
|
exports,
|
|
1521
1535
|
sourcemap: bindingifySourcemap(sourcemap),
|
|
1522
1536
|
sourcemapIgnoreList,
|
|
1523
1537
|
sourcemapPathTransform,
|
|
1524
1538
|
banner,
|
|
1525
1539
|
footer,
|
|
1540
|
+
name,
|
|
1526
1541
|
entryFileNames,
|
|
1527
1542
|
chunkFileNames,
|
|
1528
1543
|
assetFileNames,
|
|
@@ -403,7 +403,7 @@ var require_binding = __commonJSMin((exports, module) => {
|
|
|
403
403
|
nativeBinding = require('./rolldown-binding.wasi.cjs');
|
|
404
404
|
} catch (err) {
|
|
405
405
|
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
406
|
-
|
|
406
|
+
loadErrors.push(err);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
if (!nativeBinding) {
|
|
@@ -411,7 +411,7 @@ var require_binding = __commonJSMin((exports, module) => {
|
|
|
411
411
|
nativeBinding = require('@rolldown/binding-wasm32-wasi');
|
|
412
412
|
} catch (err) {
|
|
413
413
|
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
414
|
-
|
|
414
|
+
loadErrors.push(err);
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
}
|
|
@@ -900,7 +900,7 @@ function bindingifyLoad(plugin, options, pluginContextData) {
|
|
|
900
900
|
if (!ret.map) {
|
|
901
901
|
return {code: ret.code};
|
|
902
902
|
}
|
|
903
|
-
let map = typeof ret.map === 'object' ? ret.map : JSON.parse(ret.map);
|
|
903
|
+
let map = typeof ret.map === 'object' ? ret.map : (JSON.parse(ret.map));
|
|
904
904
|
if (!isEmptySourcemapFiled(map.sources)) {
|
|
905
905
|
const directory = path$1.dirname(id) || '.';
|
|
906
906
|
const sourceRoot = map.sourceRoot || '.';
|
|
@@ -1006,6 +1006,16 @@ function bindingifyWriteBundle(plugin, options, outputOptions, pluginContextData
|
|
|
1006
1006
|
handler.call(new PluginContext(options, ctx, plugin, pluginContextData), outputOptions, transformToOutputBundle(bundle));
|
|
1007
1007
|
};
|
|
1008
1008
|
}
|
|
1009
|
+
function bindingifyBanner(plugin, options, pluginContextData) {
|
|
1010
|
+
const hook = plugin.banner;
|
|
1011
|
+
if (!hook) {
|
|
1012
|
+
return undefined;
|
|
1013
|
+
}
|
|
1014
|
+
const [handler, _optionsIgnoredSofar] = normalizeHook(hook);
|
|
1015
|
+
return async (ctx, chunk) => {
|
|
1016
|
+
return handler.call(new PluginContext(options, ctx, plugin, pluginContextData), chunk);
|
|
1017
|
+
};
|
|
1018
|
+
}
|
|
1009
1019
|
|
|
1010
1020
|
//#endregion
|
|
1011
1021
|
//#region src/plugin/plugin-context-data.ts
|
|
@@ -1067,7 +1077,8 @@ function bindingifyPlugin(plugin, options, outputOptions) {
|
|
|
1067
1077
|
renderStart: bindingifyRenderStart(plugin, options, outputOptions, pluginContextData),
|
|
1068
1078
|
renderError: bindingifyRenderError(plugin, options, pluginContextData),
|
|
1069
1079
|
generateBundle: bindingifyGenerateBundle(plugin, options, outputOptions, pluginContextData),
|
|
1070
|
-
writeBundle: bindingifyWriteBundle(plugin, options, outputOptions, pluginContextData)
|
|
1080
|
+
writeBundle: bindingifyWriteBundle(plugin, options, outputOptions, pluginContextData),
|
|
1081
|
+
banner: bindingifyBanner(plugin, options, pluginContextData)
|
|
1071
1082
|
};
|
|
1072
1083
|
}
|
|
1073
1084
|
|
|
@@ -1115,7 +1126,7 @@ function bindingifyInputOptions(options, outputOptions) {
|
|
|
1115
1126
|
return bindingifyPlugin(plugin, options, outputOptions);
|
|
1116
1127
|
}),
|
|
1117
1128
|
cwd: options.cwd ?? process.cwd(),
|
|
1118
|
-
external: options.external ? function bindingifyExternal() {
|
|
1129
|
+
external: options.external ? (function bindingifyExternal() {
|
|
1119
1130
|
const external = options.external;
|
|
1120
1131
|
if (typeof external === 'function') {
|
|
1121
1132
|
return (id, importer, isResolved) => {
|
|
@@ -1132,8 +1143,8 @@ function bindingifyInputOptions(options, outputOptions) {
|
|
|
1132
1143
|
return id === pat;
|
|
1133
1144
|
});
|
|
1134
1145
|
};
|
|
1135
|
-
}() : undefined,
|
|
1136
|
-
resolve: options.resolve ? function bindingifyResolve() {
|
|
1146
|
+
})() : undefined,
|
|
1147
|
+
resolve: options.resolve ? (function bindingifyResolve() {
|
|
1137
1148
|
const { alias,...rest } = options.resolve;
|
|
1138
1149
|
return {
|
|
1139
1150
|
alias: alias ? Object.entries(alias).map(([name, replacement]) => ({
|
|
@@ -1142,7 +1153,7 @@ function bindingifyInputOptions(options, outputOptions) {
|
|
|
1142
1153
|
})) : undefined,
|
|
1143
1154
|
...rest
|
|
1144
1155
|
};
|
|
1145
|
-
}() : undefined,
|
|
1156
|
+
})() : undefined,
|
|
1146
1157
|
platform: options.platform,
|
|
1147
1158
|
shimMissingExports: options.shimMissingExports,
|
|
1148
1159
|
logLevel: bindingifyLogLevel(options.logLevel),
|
|
@@ -1419,7 +1430,7 @@ async function normalizeInputOptions(config) {
|
|
|
1419
1430
|
const onLog = getLogger(getObjectPlugins(plugins), getOnLog(config, logLevel), logLevel);
|
|
1420
1431
|
return {
|
|
1421
1432
|
...rest,
|
|
1422
|
-
input: input ? typeof input === 'string' ? [input] : input : [],
|
|
1433
|
+
input: input ? (typeof input === 'string' ? [input] : input) : [],
|
|
1423
1434
|
plugins,
|
|
1424
1435
|
logLevel,
|
|
1425
1436
|
onLog,
|
|
@@ -1430,11 +1441,11 @@ async function normalizeInputOptions(config) {
|
|
|
1430
1441
|
//#endregion
|
|
1431
1442
|
//#region src/utils/normalize-output-options.ts
|
|
1432
1443
|
function normalizeOutputOptions(opts) {
|
|
1433
|
-
const { dir, format, exports, sourcemap, sourcemapIgnoreList, sourcemapPathTransform, entryFileNames, chunkFileNames, assetFileNames } = opts;
|
|
1444
|
+
const { dir, format, exports, sourcemap, sourcemapIgnoreList, sourcemapPathTransform, entryFileNames, chunkFileNames, assetFileNames, name } = opts;
|
|
1434
1445
|
return {
|
|
1435
1446
|
dir: dir,
|
|
1436
1447
|
format: getFormat(format),
|
|
1437
|
-
exports: exports ?? '
|
|
1448
|
+
exports: exports ?? 'auto',
|
|
1438
1449
|
sourcemap: sourcemap ?? false,
|
|
1439
1450
|
sourcemapIgnoreList: typeof sourcemapIgnoreList === 'function' ? sourcemapIgnoreList : sourcemapIgnoreList === false ? () => false : (relativeSourcePath, sourcemapPath) => relativeSourcePath.includes('node_modules'),
|
|
1440
1451
|
sourcemapPathTransform,
|
|
@@ -1444,7 +1455,8 @@ function normalizeOutputOptions(opts) {
|
|
|
1444
1455
|
chunkFileNames: chunkFileNames ?? '[name]-[hash].js',
|
|
1445
1456
|
assetFileNames: assetFileNames ?? 'assets/[name]-[hash][extname]',
|
|
1446
1457
|
plugins: [],
|
|
1447
|
-
minify: opts.minify
|
|
1458
|
+
minify: opts.minify,
|
|
1459
|
+
name
|
|
1448
1460
|
};
|
|
1449
1461
|
}
|
|
1450
1462
|
function getFormat(format) {
|
|
@@ -1466,32 +1478,35 @@ function getFormat(format) {
|
|
|
1466
1478
|
}
|
|
1467
1479
|
}
|
|
1468
1480
|
const getAddon = (config, name) => {
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1481
|
+
return async (chunk) => {
|
|
1482
|
+
const configAddon = config[name];
|
|
1483
|
+
if (typeof configAddon === 'function') {
|
|
1484
|
+
return configAddon(chunk);
|
|
1485
|
+
}
|
|
1486
|
+
return configAddon || '';
|
|
1487
|
+
};
|
|
1474
1488
|
};
|
|
1475
1489
|
|
|
1476
1490
|
//#endregion
|
|
1477
1491
|
//#region src/options/bindingify-output-options.ts
|
|
1478
1492
|
function bindingifyOutputOptions(outputOptions) {
|
|
1479
|
-
const { dir, format, exports, sourcemap, sourcemapIgnoreList, sourcemapPathTransform, entryFileNames, chunkFileNames, assetFileNames, banner, footer } = outputOptions;
|
|
1493
|
+
const { dir, format, exports, sourcemap, sourcemapIgnoreList, sourcemapPathTransform, name, entryFileNames, chunkFileNames, assetFileNames, banner, footer } = outputOptions;
|
|
1480
1494
|
return {
|
|
1481
1495
|
dir,
|
|
1482
|
-
format: function() {
|
|
1496
|
+
format: (function() {
|
|
1483
1497
|
switch (format) {
|
|
1484
1498
|
case 'es': return 'es';
|
|
1485
1499
|
case 'cjs': return 'cjs';
|
|
1486
1500
|
case 'iife': return 'iife';
|
|
1487
1501
|
}
|
|
1488
|
-
}(),
|
|
1502
|
+
})(),
|
|
1489
1503
|
exports,
|
|
1490
1504
|
sourcemap: bindingifySourcemap(sourcemap),
|
|
1491
1505
|
sourcemapIgnoreList,
|
|
1492
1506
|
sourcemapPathTransform,
|
|
1493
1507
|
banner,
|
|
1494
1508
|
footer,
|
|
1509
|
+
name,
|
|
1495
1510
|
entryFileNames,
|
|
1496
1511
|
chunkFileNames,
|
|
1497
1512
|
assetFileNames,
|
package/dist/types/binding.d.ts
CHANGED
|
@@ -183,6 +183,7 @@ export declare enum BindingLogLevel {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
export interface BindingOutputOptions {
|
|
186
|
+
name?: string
|
|
186
187
|
entryFileNames?: string
|
|
187
188
|
chunkFileNames?: string
|
|
188
189
|
assetFileNames?: string
|
|
@@ -222,6 +223,7 @@ export interface BindingPluginOptions {
|
|
|
222
223
|
renderError?: (ctx: BindingPluginContext, error: string) => void
|
|
223
224
|
generateBundle?: (ctx: BindingPluginContext, bundle: BindingOutputs, isWrite: boolean) => MaybePromise<VoidNullable>
|
|
224
225
|
writeBundle?: (ctx: BindingPluginContext, bundle: BindingOutputs) => MaybePromise<VoidNullable>
|
|
226
|
+
banner?: (ctx: BindingPluginContext, chunk: RenderedChunk) => void
|
|
225
227
|
}
|
|
226
228
|
|
|
227
229
|
export interface BindingPluginWithIndex {
|
|
@@ -247,7 +249,7 @@ export interface BindingResolveOptions {
|
|
|
247
249
|
}
|
|
248
250
|
|
|
249
251
|
export interface BindingSourcemap {
|
|
250
|
-
inner: string |
|
|
252
|
+
inner: string | BindingJsonSourcemap
|
|
251
253
|
}
|
|
252
254
|
|
|
253
255
|
export interface BindingTreeshake {
|
|
@@ -2,7 +2,7 @@ import type { LogLevelOption, RollupLog, NormalizedInputOptions as RollupNormali
|
|
|
2
2
|
import type { InputOptions } from './input-options';
|
|
3
3
|
import type { RolldownPlugin } from '../plugin';
|
|
4
4
|
import type { LogLevel } from '../log/logging';
|
|
5
|
-
import { NormalizedTreeshakingOptions } from '
|
|
5
|
+
import { NormalizedTreeshakingOptions } from '../treeshake';
|
|
6
6
|
export interface NormalizedInputOptions extends Omit<InputOptions, 'treeshake'> {
|
|
7
7
|
input: RollupNormalizedInputOptions['input'];
|
|
8
8
|
plugins: RolldownPlugin[];
|
|
@@ -8,7 +8,7 @@ export interface NormalizedOutputOptions extends OutputOptions {
|
|
|
8
8
|
plugins: RolldownPlugin[];
|
|
9
9
|
dir: string | undefined;
|
|
10
10
|
format: InternalModuleFormat;
|
|
11
|
-
exports: 'named';
|
|
11
|
+
exports: 'auto' | 'named' | 'default' | 'none';
|
|
12
12
|
sourcemap: boolean | 'inline' | 'hidden';
|
|
13
13
|
sourcemapIgnoreList: SourcemapIgnoreListOption;
|
|
14
14
|
sourcemapPathTransform: SourcemapPathTransformOption | undefined;
|
|
@@ -17,5 +17,6 @@ export interface NormalizedOutputOptions extends OutputOptions {
|
|
|
17
17
|
entryFileNames: string;
|
|
18
18
|
chunkFileNames: string;
|
|
19
19
|
assetFileNames: string;
|
|
20
|
+
name: string | undefined;
|
|
20
21
|
}
|
|
21
22
|
export {};
|
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
declare const ModuleFormatSchema: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>>;
|
|
4
4
|
declare const outputOptionsSchema: z.ZodObject<{
|
|
5
5
|
dir: z.ZodOptional<z.ZodString>;
|
|
6
|
-
exports: z.ZodOptional<z.ZodLiteral<"named">>;
|
|
6
|
+
exports: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"named">]>, z.ZodLiteral<"default">]>, z.ZodLiteral<"none">]>>;
|
|
7
7
|
format: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>>;
|
|
8
8
|
sourcemap: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<"inline">]>, z.ZodLiteral<"hidden">]>>;
|
|
9
9
|
sourcemapIgnoreList: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodType<SourcemapIgnoreListOption, z.ZodTypeDef, SourcemapIgnoreListOption>]>>;
|
|
@@ -14,8 +14,10 @@ declare const outputOptionsSchema: z.ZodObject<{
|
|
|
14
14
|
chunkFileNames: z.ZodOptional<z.ZodString>;
|
|
15
15
|
assetFileNames: z.ZodOptional<z.ZodString>;
|
|
16
16
|
minify: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
name: z.ZodOptional<z.ZodString>;
|
|
17
18
|
}, "strict", z.ZodTypeAny, {
|
|
18
|
-
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
exports?: "auto" | "named" | "default" | "none" | undefined;
|
|
19
21
|
banner?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined;
|
|
20
22
|
footer?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined;
|
|
21
23
|
dir?: string | undefined;
|
|
@@ -28,7 +30,8 @@ declare const outputOptionsSchema: z.ZodObject<{
|
|
|
28
30
|
assetFileNames?: string | undefined;
|
|
29
31
|
minify?: boolean | undefined;
|
|
30
32
|
}, {
|
|
31
|
-
|
|
33
|
+
name?: string | undefined;
|
|
34
|
+
exports?: "auto" | "named" | "default" | "none" | undefined;
|
|
32
35
|
banner?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined;
|
|
33
36
|
footer?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined;
|
|
34
37
|
dir?: string | undefined;
|
|
@@ -9,3 +9,4 @@ export declare function bindingifyAugmentChunkHash(plugin: Plugin, options: Norm
|
|
|
9
9
|
export declare function bindingifyRenderError(plugin: Plugin, options: NormalizedInputOptions, pluginContextData: PluginContextData): BindingPluginOptions['renderError'];
|
|
10
10
|
export declare function bindingifyGenerateBundle(plugin: Plugin, options: NormalizedInputOptions, outputOptions: NormalizedOutputOptions, pluginContextData: PluginContextData): BindingPluginOptions['generateBundle'];
|
|
11
11
|
export declare function bindingifyWriteBundle(plugin: Plugin, options: NormalizedInputOptions, outputOptions: NormalizedOutputOptions, pluginContextData: PluginContextData): BindingPluginOptions['writeBundle'];
|
|
12
|
+
export declare function bindingifyBanner(plugin: Plugin, options: NormalizedInputOptions, pluginContextData: PluginContextData): BindingPluginOptions['banner'];
|
|
@@ -4,7 +4,7 @@ import type { NullValue, MaybePromise, PartialNull, MakeAsync } from '../types/u
|
|
|
4
4
|
import type { SourceMapInput } from '../types/sourcemap';
|
|
5
5
|
import type { ModuleInfo } from '../types/module-info';
|
|
6
6
|
import type { OutputBundle } from '../types/output-bundle';
|
|
7
|
-
import
|
|
7
|
+
import { PluginContext } from './plugin-context';
|
|
8
8
|
import type { TransformPluginContext } from './transfrom-plugin-context';
|
|
9
9
|
import type { NormalizedOutputOptions } from '../options/normalized-output-options';
|
|
10
10
|
import type { LogLevel } from '../log/logging';
|
|
@@ -69,14 +69,14 @@ export type SyncPluginHooks = 'augmentChunkHash' | 'onLog' | 'outputOptions';
|
|
|
69
69
|
export type AsyncPluginHooks = Exclude<keyof FunctionPluginHooks, SyncPluginHooks>;
|
|
70
70
|
export type FirstPluginHooks = 'load' | 'renderDynamicImport' | 'resolveDynamicImport' | 'resolveId';
|
|
71
71
|
export type SequentialPluginHooks = 'augmentChunkHash' | 'generateBundle' | 'onLog' | 'options' | 'outputOptions' | 'renderChunk' | 'transform';
|
|
72
|
-
export type AddonHooks = '';
|
|
72
|
+
export type AddonHooks = 'banner';
|
|
73
73
|
export type OutputPluginHooks = 'augmentChunkHash' | 'generateBundle' | 'outputOptions' | 'renderChunk' | 'renderError' | 'renderStart' | 'writeBundle';
|
|
74
74
|
export type ParallelPluginHooks = Exclude<keyof FunctionPluginHooks | AddonHooks, FirstPluginHooks | SequentialPluginHooks>;
|
|
75
75
|
export type PluginHooks = {
|
|
76
76
|
[K in keyof FunctionPluginHooks]: ObjectHook<K extends AsyncPluginHooks ? MakeAsync<FunctionPluginHooks[K]> : FunctionPluginHooks[K]>;
|
|
77
77
|
};
|
|
78
78
|
export type AddonHookFunction = (this: PluginContext, chunk: RenderedChunk) => string | Promise<string>;
|
|
79
|
-
export type AddonHook =
|
|
79
|
+
export type AddonHook = AddonHookFunction;
|
|
80
80
|
export interface OutputPlugin extends Partial<{
|
|
81
81
|
[K in OutputPluginHooks]: PluginHooks[K];
|
|
82
82
|
}>, Partial<{
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { InputOptions } from '../options/input-options';
|
|
2
|
-
import { NormalizedTreeshakingOptions } from '
|
|
2
|
+
import { NormalizedTreeshakingOptions } from '../treeshake';
|
|
3
3
|
export declare function normalizeTreeshakeOptions(config: InputOptions['treeshake']): NormalizedTreeshakingOptions | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"x86_64-pc-windows-msvc",
|
|
56
56
|
"x86_64-unknown-linux-gnu",
|
|
57
57
|
"x86_64-unknown-linux-musl",
|
|
58
|
+
"x86_64-unknown-freebsd",
|
|
58
59
|
"i686-pc-windows-msvc",
|
|
59
60
|
"armv7-unknown-linux-gnueabihf",
|
|
60
61
|
"aarch64-unknown-linux-gnu",
|
|
@@ -75,7 +76,7 @@
|
|
|
75
76
|
"zod": "^3.23.8"
|
|
76
77
|
},
|
|
77
78
|
"devDependencies": {
|
|
78
|
-
"@napi-rs/cli": "^3.0.0-alpha.
|
|
79
|
+
"@napi-rs/cli": "^3.0.0-alpha.60",
|
|
79
80
|
"@napi-rs/wasm-runtime": "^0.2.4",
|
|
80
81
|
"citty": "^0.1.6",
|
|
81
82
|
"colorette": "^2.0.20",
|
|
@@ -94,20 +95,21 @@
|
|
|
94
95
|
"vitest": "^1.6.0",
|
|
95
96
|
"why-is-node-running": "^2.2.2",
|
|
96
97
|
"@rolldown/testing": "0.0.1",
|
|
97
|
-
"rolldown": "0.12.
|
|
98
|
+
"rolldown": "0.12.2"
|
|
98
99
|
},
|
|
99
100
|
"optionalDependencies": {
|
|
100
|
-
"@rolldown/binding-darwin-x64": "0.12.
|
|
101
|
-
"@rolldown/binding-
|
|
102
|
-
"@rolldown/binding-linux-arm-gnueabihf": "0.12.
|
|
103
|
-
"@rolldown/binding-
|
|
104
|
-
"@rolldown/binding-linux-arm64-
|
|
105
|
-
"@rolldown/binding-linux-
|
|
106
|
-
"@rolldown/binding-linux-x64-
|
|
107
|
-
"@rolldown/binding-
|
|
108
|
-
"@rolldown/binding-
|
|
109
|
-
"@rolldown/binding-win32-
|
|
110
|
-
"@rolldown/binding-win32-
|
|
101
|
+
"@rolldown/binding-darwin-x64": "0.12.2",
|
|
102
|
+
"@rolldown/binding-freebsd-x64": "0.12.2",
|
|
103
|
+
"@rolldown/binding-linux-arm-gnueabihf": "0.12.2",
|
|
104
|
+
"@rolldown/binding-darwin-arm64": "0.12.2",
|
|
105
|
+
"@rolldown/binding-linux-arm64-gnu": "0.12.2",
|
|
106
|
+
"@rolldown/binding-linux-arm64-musl": "0.12.2",
|
|
107
|
+
"@rolldown/binding-linux-x64-gnu": "0.12.2",
|
|
108
|
+
"@rolldown/binding-linux-x64-musl": "0.12.2",
|
|
109
|
+
"@rolldown/binding-wasm32-wasi": "0.12.2",
|
|
110
|
+
"@rolldown/binding-win32-arm64-msvc": "0.12.2",
|
|
111
|
+
"@rolldown/binding-win32-ia32-msvc": "0.12.2",
|
|
112
|
+
"@rolldown/binding-win32-x64-msvc": "0.12.2"
|
|
111
113
|
},
|
|
112
114
|
"scripts": {
|
|
113
115
|
"# Scrips for binding #": "_",
|
|
@@ -120,8 +122,9 @@
|
|
|
120
122
|
"bak_build-node": "unbuild",
|
|
121
123
|
"build-node": "node ../../node_modules/npm-rolldown/bin/cli.js -c ./rolldown.config.mjs",
|
|
122
124
|
"build-types": "tsc -p ./tsconfig.dts.json",
|
|
123
|
-
"build-
|
|
124
|
-
"build-native:
|
|
125
|
+
"build-types-check": "tsc -p ./tsconfig.check.json",
|
|
126
|
+
"build-native:debug": "run-s build-binding build-types build-node build-types-check",
|
|
127
|
+
"build-native:release": "run-s build-binding:release build-types build-node build-types-check",
|
|
125
128
|
"build-wasi:debug": "run-s build-binding:wasi build-node",
|
|
126
129
|
"build-wasi:release": "run-s build-binding:wasi:release build-node",
|
|
127
130
|
"# Scrips for checking #": "_",
|