@voidzero-dev/vite-plus-core 0.1.1 → 0.1.3
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/rolldown/cli.mjs +11 -22
- package/dist/rolldown/config.d.mts +1 -2
- package/dist/rolldown/config.mjs +10 -11
- package/dist/rolldown/experimental-index.d.mts +20 -6
- package/dist/rolldown/experimental-index.mjs +24 -22
- package/dist/rolldown/filter-index.d.mts +1 -2
- package/dist/rolldown/filter-index.mjs +2 -8
- package/dist/rolldown/get-log-filter.mjs +1 -2
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +10 -13
- package/dist/rolldown/parallel-plugin-worker.mjs +7 -9
- package/dist/rolldown/parallel-plugin.d.mts +1 -2
- package/dist/rolldown/parallel-plugin.mjs +1 -2
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +4 -6
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +4 -6
- package/dist/rolldown/shared/{binding-C4ZlFAt6.d.mts → binding-BohGL_65.d.mts} +10 -5
- package/dist/rolldown/shared/{binding-Bd04_f8P.mjs → binding-COZdHtee.mjs} +7 -16
- package/dist/rolldown/shared/{bindingify-input-options-ffqkmT9z.mjs → bindingify-input-options-DdW_FOGG.mjs} +33 -56
- package/dist/rolldown/shared/{constructors-C5a55nbY.mjs → constructors-CQlws1EK.mjs} +2 -4
- package/dist/rolldown/shared/{constructors-cPsD1J5w.d.mts → constructors-ColrbLxz.d.mts} +2 -2
- package/dist/rolldown/shared/{define-config-DX_4SBzo.d.mts → define-config-BqZZMLjO.d.mts} +66 -30
- package/dist/rolldown/shared/{define-config-BMj_QknW.mjs → define-config-DJOr6Iwt.mjs} +1 -2
- package/dist/rolldown/shared/{error-BYPsvVEN.mjs → error-FTNambir.mjs} +3 -8
- package/dist/rolldown/shared/{load-config-Oj1-3DPg.mjs → load-config-DBRCgd9m.mjs} +2 -4
- package/dist/rolldown/shared/{logs-CCc_0vhs.mjs → logs-D80CXhvg.mjs} +5 -8
- package/dist/rolldown/shared/{misc-Xty885dB.mjs → misc-DJYbNKZX.mjs} +1 -2
- package/dist/rolldown/shared/{normalize-string-or-regex-DoNa0azR.mjs → normalize-string-or-regex-CJTjKt5t.mjs} +3 -6
- package/dist/rolldown/shared/{parse-Wj8OTS4w.mjs → parse-q7gzDQmi.mjs} +2 -5
- package/dist/rolldown/shared/{prompt-CmNr0AI-.mjs → prompt-DZIXsnf9.mjs} +1 -3
- package/dist/rolldown/shared/{rolldown-y9H0nYAD.mjs → rolldown-BJMdRJb1.mjs} +2 -4
- package/dist/rolldown/shared/{rolldown-build-DkOWV5Vu.mjs → rolldown-build-DKv2K096.mjs} +424 -473
- package/dist/rolldown/shared/{transform-DoG7c5_r.d.mts → transform-BoJxrM-e.d.mts} +1 -1
- package/dist/rolldown/shared/{transform-D55YcCvB.mjs → transform-CQppMqL8.mjs} +3 -6
- package/dist/rolldown/shared/{watch-Cn-znpX_.mjs → watch-BeMWbIuq.mjs} +71 -77
- package/dist/rolldown/utils-index.d.mts +2 -2
- package/dist/rolldown/utils-index.mjs +9 -18
- package/dist/tsdown/{build-BjQ7Rt90-tMPZTflz.js → build-TmLngPCw-CBoVPzkZ.js} +312 -324
- package/dist/tsdown/build-gOkJM1H9-D9ngUBpk.js +5 -0
- package/dist/tsdown/{chunk-CdeBBKNj.js → chunk-CSNpwdVU.js} +13 -23
- package/dist/tsdown/{debug-BUVkFfEZ-D3UMJnif.js → debug-tOJ_PtrM-C-Do1Twv.js} +4 -6
- package/dist/tsdown/{detect-CCATtVj7-DhvBg5EF.js → detect-DK-FDZQ9-CHuRhyUG.js} +2 -4
- package/dist/tsdown/{dist-CFTDWtv2.js → dist-Ba2DZx1w.js} +7 -7
- package/dist/tsdown/{dist-DNcnO8LL.js → dist-DCol2bGA.js} +503 -568
- package/dist/tsdown/{dist-kuoe97DJ.js → dist-_l70jCqI.js} +1 -2
- package/dist/tsdown/{filename-CPj0AKvV.js → filename-BDcjeHGl.js} +3 -5
- package/dist/tsdown/{index-node-ShM0x2b6-Bt7Chc0I.js → index-node-Djp92Gzb-B-AUHI4t.js} +2 -4
- package/dist/tsdown/index-types.d.ts +180 -29
- package/dist/tsdown/index.js +7 -9
- package/dist/tsdown/{main-B3qcLRNf.js → main-DYgM-9Cb.js} +71 -83
- package/dist/tsdown/{node-Ba_UB_xO.js → node-B3Gdtau1.js} +1 -4
- package/dist/tsdown/npm_cjs_chunk_chunk.cjs +6 -8
- package/dist/tsdown/npm_cjs_chunk_lt.cjs +28 -0
- package/dist/tsdown/npm_cjs_chunk_range.cjs +22 -49
- package/dist/tsdown/npm_cjs_chunk_semver.cjs +54 -66
- package/dist/tsdown/npm_entry_picomatch.cjs +18 -30
- package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +3 -7
- package/dist/tsdown/npm_entry_semver_functions_lt.cjs +5 -0
- package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +5 -7
- package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +5 -7
- package/dist/tsdown/npm_entry_tree-kill.cjs +2 -6
- package/dist/tsdown/{resolver-j7HY1N36-DHVsN9q6.js → resolver-CdD-yT15-3eaymYLw.js} +3 -5
- package/dist/tsdown/run.js +209 -74
- package/dist/tsdown/{tsc-CBjlgM2A.js → tsc-CberiTDq.js} +64 -71
- package/dist/tsdown/{tsc-context-D1h5oZB8.js → tsc-context-DiIjfXAG.js} +3 -5
- package/dist/vite/client/client.mjs +4 -19
- package/dist/vite/client/env.mjs +1 -2
- package/dist/vite/node/chunks/build.js +2 -3
- package/dist/vite/node/chunks/build2.js +91 -243
- package/dist/vite/node/chunks/chunk.js +7 -13
- package/dist/vite/node/chunks/config.js +2 -3
- package/dist/vite/node/chunks/dist.js +27 -61
- package/dist/vite/node/chunks/dist2.js +11 -95
- package/dist/vite/node/chunks/lib.js +1 -7
- package/dist/vite/node/chunks/logger.js +3 -8
- package/dist/vite/node/chunks/node.js +137 -428
- package/dist/vite/node/chunks/optimizer.js +2 -3
- package/dist/vite/node/chunks/postcss-import.js +1 -13
- package/dist/vite/node/chunks/preview.js +2 -3
- package/dist/vite/node/chunks/server.js +2 -3
- package/dist/vite/node/cli.js +1 -4
- package/dist/vite/node/index.d.ts +2 -2
- package/dist/vite/node/index.js +1 -2
- package/dist/vite/node/internal.js +1 -2
- package/dist/vite/node/module-runner.js +44 -3
- package/package.json +15 -11
- package/dist/rolldown/cli-setup.d.mts +0 -1
- package/dist/rolldown/cli-setup.mjs +0 -17
- package/dist/tsdown/build-2oRq4mfQ-YC_gzK3u.js +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __exportAll, r as __toESM, t as __commonJSMin } from "./chunk-
|
|
2
|
-
import { t as createDebug } from "./node-
|
|
3
|
-
import { a as RE_JSON, c as RE_TS, d as filename_js_to_dts, f as filename_to_dts, i as RE_JS, l as RE_VUE, m as resolveTemplateFn, n as RE_DTS, o as RE_NODE_MODULES, p as replaceTemplateName, r as RE_DTS_MAP, s as RE_ROLLDOWN_RUNTIME, t as RE_CSS, u as filename_dts_to } from "./filename-
|
|
4
|
-
import { n as globalContext, r as invalidateContextFile, t as createContext } from "./tsc-context-
|
|
1
|
+
import { n as __exportAll, r as __toESM, t as __commonJSMin } from "./chunk-CSNpwdVU.js";
|
|
2
|
+
import { t as createDebug } from "./node-B3Gdtau1.js";
|
|
3
|
+
import { a as RE_JSON, c as RE_TS, d as filename_js_to_dts, f as filename_to_dts, i as RE_JS, l as RE_VUE, m as resolveTemplateFn, n as RE_DTS, o as RE_NODE_MODULES, p as replaceTemplateName, r as RE_DTS_MAP, s as RE_ROLLDOWN_RUNTIME, t as RE_CSS, u as filename_dts_to } from "./filename-BDcjeHGl.js";
|
|
4
|
+
import { n as globalContext, r as invalidateContextFile, t as createContext } from "./tsc-context-DiIjfXAG.js";
|
|
5
5
|
import module$1, { createRequire } from "node:module";
|
|
6
6
|
import process$1 from "node:process";
|
|
7
7
|
import path, { dirname, extname } from "node:path";
|
|
@@ -10,8 +10,7 @@ import nativeFs from "fs";
|
|
|
10
10
|
import path$1 from "path";
|
|
11
11
|
import fs from "node:fs";
|
|
12
12
|
import { ResolverFactory, isolatedDeclarationSync } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
|
|
13
|
-
import
|
|
14
|
-
|
|
13
|
+
import Be from "os";
|
|
15
14
|
//#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
16
15
|
var comma = ",".charCodeAt(0);
|
|
17
16
|
var semicolon = ";".charCodeAt(0);
|
|
@@ -176,7 +175,6 @@ function encode(decoded) {
|
|
|
176
175
|
}
|
|
177
176
|
return writer.flush();
|
|
178
177
|
}
|
|
179
|
-
|
|
180
178
|
//#endregion
|
|
181
179
|
//#region ../../node_modules/.pnpm/@jridgewell+resolve-uri@3.1.2/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs
|
|
182
180
|
const schemeRegex = /^[\w+.-]+:\/\//;
|
|
@@ -341,7 +339,6 @@ function resolve$2(input, base) {
|
|
|
341
339
|
default: return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
|
|
342
340
|
}
|
|
343
341
|
}
|
|
344
|
-
|
|
345
342
|
//#endregion
|
|
346
343
|
//#region ../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs
|
|
347
344
|
function stripFilename(path) {
|
|
@@ -432,8 +429,6 @@ function parse$2(map) {
|
|
|
432
429
|
}
|
|
433
430
|
var LINE_GTR_ZERO = "`line` must be greater than 0 (lines start at line 1)";
|
|
434
431
|
var COL_GTR_EQ_ZERO = "`column` must be greater than or equal to 0 (columns start at column 0)";
|
|
435
|
-
var LEAST_UPPER_BOUND = -1;
|
|
436
|
-
var GREATEST_LOWER_BOUND = 1;
|
|
437
432
|
var TraceMap = class {
|
|
438
433
|
constructor(map, mapUrl) {
|
|
439
434
|
const isString = typeof map === "string";
|
|
@@ -478,7 +473,7 @@ function originalPositionFor(map, needle) {
|
|
|
478
473
|
const decoded = decodedMappings(map);
|
|
479
474
|
if (line >= decoded.length) return OMapping(null, null, null, null);
|
|
480
475
|
const segments = decoded[line];
|
|
481
|
-
const index = traceSegmentInternal(segments, cast$1(map)._decodedMemo, line, column, bias ||
|
|
476
|
+
const index = traceSegmentInternal(segments, cast$1(map)._decodedMemo, line, column, bias || 1);
|
|
482
477
|
if (index === -1) return OMapping(null, null, null, null);
|
|
483
478
|
const segment = segments[index];
|
|
484
479
|
if (segment.length === 1) return OMapping(null, null, null, null);
|
|
@@ -495,12 +490,11 @@ function OMapping(source, line, column, name) {
|
|
|
495
490
|
}
|
|
496
491
|
function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
497
492
|
let index = memoizedBinarySearch(segments, column, memo, line);
|
|
498
|
-
if (found) index = (bias ===
|
|
499
|
-
else if (bias ===
|
|
493
|
+
if (found) index = (bias === -1 ? upperBound : lowerBound)(segments, column, index);
|
|
494
|
+
else if (bias === -1) index++;
|
|
500
495
|
if (index === -1 || index === segments.length) return -1;
|
|
501
496
|
return index;
|
|
502
497
|
}
|
|
503
|
-
|
|
504
498
|
//#endregion
|
|
505
499
|
//#region ../../node_modules/.pnpm/@jridgewell+gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
|
|
506
500
|
var SetArray = class {
|
|
@@ -662,9 +656,8 @@ function addMappingInternal(skipable, map, mapping) {
|
|
|
662
656
|
assert$2(original);
|
|
663
657
|
return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
|
|
664
658
|
}
|
|
665
|
-
|
|
666
659
|
//#endregion
|
|
667
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@8.0.0-rc.
|
|
660
|
+
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@8.0.0-rc.2/node_modules/@babel/helper-validator-identifier/lib/index.js
|
|
668
661
|
let nonASCIIidentifierStartChars$1 = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
|
|
669
662
|
let nonASCIIidentifierChars$1 = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
|
|
670
663
|
const nonASCIIidentifierStart$1 = new RegExp("[" + nonASCIIidentifierStartChars$1 + "]");
|
|
@@ -1718,7 +1711,7 @@ const reservedWords$1 = {
|
|
|
1718
1711
|
};
|
|
1719
1712
|
const keywords$2 = new Set(reservedWords$1.keyword);
|
|
1720
1713
|
const reservedWordsStrictSet$1 = new Set(reservedWords$1.strict);
|
|
1721
|
-
|
|
1714
|
+
new Set(reservedWords$1.strictBind);
|
|
1722
1715
|
function isReservedWord$1(word, inModule) {
|
|
1723
1716
|
return inModule && word === "await" || word === "enum";
|
|
1724
1717
|
}
|
|
@@ -1728,9 +1721,8 @@ function isStrictReservedWord$1(word, inModule) {
|
|
|
1728
1721
|
function isKeyword$1(word) {
|
|
1729
1722
|
return keywords$2.has(word);
|
|
1730
1723
|
}
|
|
1731
|
-
|
|
1732
1724
|
//#endregion
|
|
1733
|
-
//#region ../../node_modules/.pnpm/@babel+helper-string-parser@8.0.0-rc.
|
|
1725
|
+
//#region ../../node_modules/.pnpm/@babel+helper-string-parser@8.0.0-rc.2/node_modules/@babel/helper-string-parser/lib/index.js
|
|
1734
1726
|
var _isDigit$1 = function isDigit(code) {
|
|
1735
1727
|
return code >= 48 && code <= 57;
|
|
1736
1728
|
};
|
|
@@ -1949,9 +1941,8 @@ function readCodePoint$1(input, pos, lineStart, curLine, throwOnInvalid, errors)
|
|
|
1949
1941
|
pos
|
|
1950
1942
|
};
|
|
1951
1943
|
}
|
|
1952
|
-
|
|
1953
1944
|
//#endregion
|
|
1954
|
-
//#region ../../node_modules/.pnpm/@babel+types@8.0.0-rc.
|
|
1945
|
+
//#region ../../node_modules/.pnpm/@babel+types@8.0.0-rc.2/node_modules/@babel/types/lib/index.js
|
|
1955
1946
|
var lib_exports = /* @__PURE__ */ __exportAll({
|
|
1956
1947
|
ACCESSOR_TYPES: () => ACCESSOR_TYPES,
|
|
1957
1948
|
ALIAS_KEYS: () => ALIAS_KEYS,
|
|
@@ -13615,10 +13606,9 @@ const react = {
|
|
|
13615
13606
|
isCompatTag,
|
|
13616
13607
|
buildChildren
|
|
13617
13608
|
};
|
|
13618
|
-
|
|
13619
13609
|
//#endregion
|
|
13620
|
-
//#region ../../node_modules/.pnpm
|
|
13621
|
-
var
|
|
13610
|
+
//#region ../../node_modules/.pnpm/@babel+generator@8.0.0-rc.2/node_modules/@babel/generator/lib/index.js
|
|
13611
|
+
var import_jsesc = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
13622
13612
|
const object = {};
|
|
13623
13613
|
const hasOwnProperty = object.hasOwnProperty;
|
|
13624
13614
|
const forOwn = (object, callback) => {
|
|
@@ -13818,11 +13808,7 @@ var require_jsesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
13818
13808
|
};
|
|
13819
13809
|
jsesc.version = "3.0.2";
|
|
13820
13810
|
module.exports = jsesc;
|
|
13821
|
-
}));
|
|
13822
|
-
|
|
13823
|
-
//#endregion
|
|
13824
|
-
//#region ../../node_modules/.pnpm/@babel+generator@8.0.0-rc.1/node_modules/@babel/generator/lib/index.js
|
|
13825
|
-
var import_jsesc = /* @__PURE__ */ __toESM(require_jsesc(), 1);
|
|
13811
|
+
})))(), 1);
|
|
13826
13812
|
var SourceMap = class {
|
|
13827
13813
|
_map;
|
|
13828
13814
|
_rawMappings;
|
|
@@ -13967,7 +13953,7 @@ var Buffer$1 = class {
|
|
|
13967
13953
|
_appendChar(char, repeat, useSourcePos) {
|
|
13968
13954
|
this._last = char;
|
|
13969
13955
|
if (char === -1) {
|
|
13970
|
-
const indent = repeat
|
|
13956
|
+
const indent = repeat >= 64 ? this._indentChar.repeat(repeat) : spaceIndents[repeat / 2];
|
|
13971
13957
|
this._str += indent;
|
|
13972
13958
|
} else this._str += repeat > 1 ? String.fromCharCode(char).repeat(repeat) : String.fromCharCode(char);
|
|
13973
13959
|
const isSpace = char === 32;
|
|
@@ -14414,6 +14400,13 @@ function ConditionalExpression(node) {
|
|
|
14414
14400
|
this.space();
|
|
14415
14401
|
this.print(node.alternate);
|
|
14416
14402
|
}
|
|
14403
|
+
function _printExpressionArguments(node) {
|
|
14404
|
+
this.tokenChar(40);
|
|
14405
|
+
const oldNoLineTerminatorAfterNode = this.enterDelimited();
|
|
14406
|
+
this.printList(node.arguments, this.shouldPrintTrailingComma(")"), void 0, void 0, void 0, true);
|
|
14407
|
+
this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode;
|
|
14408
|
+
this.rightParens(node);
|
|
14409
|
+
}
|
|
14417
14410
|
function NewExpression(node, parent) {
|
|
14418
14411
|
this.word("new");
|
|
14419
14412
|
this.space();
|
|
@@ -14421,11 +14414,7 @@ function NewExpression(node, parent) {
|
|
|
14421
14414
|
if (this.format.minified && node.arguments.length === 0 && !isCallExpression(parent, { callee: node }) && !isMemberExpression(parent) && !isNewExpression(parent)) return;
|
|
14422
14415
|
this.print(node.typeArguments);
|
|
14423
14416
|
if (node.arguments.length === 0 && this.tokenMap && !this.tokenMap.endMatches(node, ")")) return;
|
|
14424
|
-
|
|
14425
|
-
const oldNoLineTerminatorAfterNode = this.enterDelimited();
|
|
14426
|
-
this.printList(node.arguments, this.shouldPrintTrailingComma(")"), void 0, void 0, void 0, true);
|
|
14427
|
-
this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode;
|
|
14428
|
-
this.rightParens(node);
|
|
14417
|
+
_printExpressionArguments.call(this, node);
|
|
14429
14418
|
}
|
|
14430
14419
|
function SequenceExpression(node) {
|
|
14431
14420
|
this.printList(node.expressions);
|
|
@@ -14465,20 +14454,12 @@ function OptionalCallExpression(node) {
|
|
|
14465
14454
|
this.print(node.callee);
|
|
14466
14455
|
if (node.optional) this.token("?.");
|
|
14467
14456
|
this.print(node.typeArguments);
|
|
14468
|
-
|
|
14469
|
-
const oldNoLineTerminatorAfterNode = this.enterDelimited();
|
|
14470
|
-
this.printList(node.arguments, void 0, void 0, void 0, void 0, true);
|
|
14471
|
-
this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode;
|
|
14472
|
-
this.rightParens(node);
|
|
14457
|
+
_printExpressionArguments.call(this, node);
|
|
14473
14458
|
}
|
|
14474
14459
|
function CallExpression(node) {
|
|
14475
14460
|
this.print(node.callee);
|
|
14476
14461
|
this.print(node.typeArguments);
|
|
14477
|
-
|
|
14478
|
-
const oldNoLineTerminatorAfterNode = this.enterDelimited();
|
|
14479
|
-
this.printList(node.arguments, this.shouldPrintTrailingComma(")"), void 0, void 0, void 0, true);
|
|
14480
|
-
this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode;
|
|
14481
|
-
this.rightParens(node);
|
|
14462
|
+
_printExpressionArguments.call(this, node);
|
|
14482
14463
|
}
|
|
14483
14464
|
function Import() {
|
|
14484
14465
|
this.word("import");
|
|
@@ -17830,9 +17811,8 @@ function normalizeOptions(code, opts, ast) {
|
|
|
17830
17811
|
function generate(ast, opts = {}, code) {
|
|
17831
17812
|
return new Printer(normalizeOptions(code, opts, ast), opts.sourceMaps ? new SourceMap(opts, code) : null, ast.tokens, typeof code === "string" ? code : null).generate(ast);
|
|
17832
17813
|
}
|
|
17833
|
-
|
|
17834
17814
|
//#endregion
|
|
17835
|
-
//#region ../../node_modules/.pnpm/@babel+parser@8.0.0-rc.
|
|
17815
|
+
//#region ../../node_modules/.pnpm/@babel+parser@8.0.0-rc.2/node_modules/@babel/parser/lib/index.js
|
|
17836
17816
|
var Position = class {
|
|
17837
17817
|
line;
|
|
17838
17818
|
column;
|
|
@@ -18055,7 +18035,6 @@ const UnparenthesizedPipeBodyDescriptions = new Set([
|
|
|
18055
18035
|
"YieldExpression"
|
|
18056
18036
|
]);
|
|
18057
18037
|
var PipelineOperatorErrors = {
|
|
18058
|
-
PipeBodyIsTighter: "Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",
|
|
18059
18038
|
PipeTopicRequiresHackPipes: "Topic references are only supported when using the `\"proposal\": \"hack\"` version of the pipeline proposal.",
|
|
18060
18039
|
PipeTopicUnbound: "Topic reference is unbound; it must be inside a pipe body.",
|
|
18061
18040
|
PipeTopicUnconfiguredToken: ({ token }) => `Invalid topic token ${token}. In order to use ${token} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${token}" }.`,
|
|
@@ -18394,10 +18373,6 @@ var estree = (superClass) => class ESTreeParserMixin extends superClass {
|
|
|
18394
18373
|
else node.optional = false;
|
|
18395
18374
|
return node;
|
|
18396
18375
|
}
|
|
18397
|
-
toReferencedArguments(node) {
|
|
18398
|
-
if (node.type === "ImportExpression") return;
|
|
18399
|
-
super.toReferencedArguments(node);
|
|
18400
|
-
}
|
|
18401
18376
|
parseExport(unfinished, decorators) {
|
|
18402
18377
|
const exportStartLoc = this.state.lastTokStartLoc;
|
|
18403
18378
|
const node = super.parseExport(unfinished, decorators);
|
|
@@ -21118,7 +21093,7 @@ var flow = (superClass) => class FlowParserMixin extends superClass {
|
|
|
21118
21093
|
}
|
|
21119
21094
|
parseConditional(expr, startLoc, refExpressionErrors) {
|
|
21120
21095
|
if (!this.match(13)) return expr;
|
|
21121
|
-
if (
|
|
21096
|
+
if (refExpressionErrors != null) {
|
|
21122
21097
|
const nextCh = this.lookaheadCharCode();
|
|
21123
21098
|
if (nextCh === 44 || nextCh === 61 || nextCh === 58 || nextCh === 41) {
|
|
21124
21099
|
this.setOptionalParametersError(refExpressionErrors);
|
|
@@ -21306,12 +21281,10 @@ var flow = (superClass) => class FlowParserMixin extends superClass {
|
|
|
21306
21281
|
if (!isLHS && node.type === "AssignmentExpression" && node.left.type === "TypeCastExpression") node.left = this.typeCastToParameter(node.left);
|
|
21307
21282
|
super.toAssignable(node, isLHS);
|
|
21308
21283
|
}
|
|
21309
|
-
|
|
21310
|
-
|
|
21311
|
-
|
|
21312
|
-
|
|
21313
|
-
}
|
|
21314
|
-
super.toAssignableList(exprList, trailingCommaLoc, isLHS);
|
|
21284
|
+
toAssignableListItem(exprList, index, isLHS) {
|
|
21285
|
+
const node = exprList[index];
|
|
21286
|
+
if (node.type === "TypeCastExpression") exprList[index] = this.typeCastToParameter(node);
|
|
21287
|
+
super.toAssignableListItem(exprList, index, isLHS);
|
|
21315
21288
|
}
|
|
21316
21289
|
toReferencedList(exprList, isParenthesizedExpr) {
|
|
21317
21290
|
for (let i = 0; i < exprList.length; i++) {
|
|
@@ -21322,7 +21295,7 @@ var flow = (superClass) => class FlowParserMixin extends superClass {
|
|
|
21322
21295
|
}
|
|
21323
21296
|
parseArrayLike(close, refExpressionErrors) {
|
|
21324
21297
|
const node = super.parseArrayLike(close, refExpressionErrors);
|
|
21325
|
-
if (
|
|
21298
|
+
if (node.type === "ArrayExpression") this.toReferencedList(node.elements);
|
|
21326
21299
|
return node;
|
|
21327
21300
|
}
|
|
21328
21301
|
isValidLVal(type, disallowCallExpression, isParenthesized, binding) {
|
|
@@ -22881,7 +22854,7 @@ var CommentsParser = class extends BaseParser {
|
|
|
22881
22854
|
}
|
|
22882
22855
|
};
|
|
22883
22856
|
var State = class State {
|
|
22884
|
-
flags =
|
|
22857
|
+
flags = 512;
|
|
22885
22858
|
get strict() {
|
|
22886
22859
|
return (this.flags & 1) > 0;
|
|
22887
22860
|
}
|
|
@@ -22905,72 +22878,65 @@ var State = class State {
|
|
|
22905
22878
|
potentialArrowAt = -1;
|
|
22906
22879
|
noArrowAt = [];
|
|
22907
22880
|
noArrowParamsConversionAt = [];
|
|
22908
|
-
get
|
|
22881
|
+
get inType() {
|
|
22909
22882
|
return (this.flags & 2) > 0;
|
|
22910
22883
|
}
|
|
22911
|
-
set
|
|
22884
|
+
set inType(v) {
|
|
22912
22885
|
if (v) this.flags |= 2;
|
|
22913
22886
|
else this.flags &= -3;
|
|
22914
22887
|
}
|
|
22915
|
-
get
|
|
22888
|
+
get noAnonFunctionType() {
|
|
22916
22889
|
return (this.flags & 4) > 0;
|
|
22917
22890
|
}
|
|
22918
|
-
set
|
|
22891
|
+
set noAnonFunctionType(v) {
|
|
22919
22892
|
if (v) this.flags |= 4;
|
|
22920
22893
|
else this.flags &= -5;
|
|
22921
22894
|
}
|
|
22922
|
-
get
|
|
22895
|
+
get hasFlowComment() {
|
|
22923
22896
|
return (this.flags & 8) > 0;
|
|
22924
22897
|
}
|
|
22925
|
-
set
|
|
22898
|
+
set hasFlowComment(v) {
|
|
22926
22899
|
if (v) this.flags |= 8;
|
|
22927
22900
|
else this.flags &= -9;
|
|
22928
22901
|
}
|
|
22929
|
-
get
|
|
22902
|
+
get isAmbientContext() {
|
|
22930
22903
|
return (this.flags & 16) > 0;
|
|
22931
22904
|
}
|
|
22932
|
-
set
|
|
22905
|
+
set isAmbientContext(v) {
|
|
22933
22906
|
if (v) this.flags |= 16;
|
|
22934
22907
|
else this.flags &= -17;
|
|
22935
22908
|
}
|
|
22936
|
-
get
|
|
22909
|
+
get inAbstractClass() {
|
|
22937
22910
|
return (this.flags & 32) > 0;
|
|
22938
22911
|
}
|
|
22939
|
-
set
|
|
22912
|
+
set inAbstractClass(v) {
|
|
22940
22913
|
if (v) this.flags |= 32;
|
|
22941
22914
|
else this.flags &= -33;
|
|
22942
22915
|
}
|
|
22943
|
-
get
|
|
22916
|
+
get inDisallowConditionalTypesContext() {
|
|
22944
22917
|
return (this.flags & 64) > 0;
|
|
22945
22918
|
}
|
|
22946
|
-
set
|
|
22919
|
+
set inDisallowConditionalTypesContext(v) {
|
|
22947
22920
|
if (v) this.flags |= 64;
|
|
22948
22921
|
else this.flags &= -65;
|
|
22949
22922
|
}
|
|
22950
|
-
get inDisallowConditionalTypesContext() {
|
|
22951
|
-
return (this.flags & 128) > 0;
|
|
22952
|
-
}
|
|
22953
|
-
set inDisallowConditionalTypesContext(v) {
|
|
22954
|
-
if (v) this.flags |= 128;
|
|
22955
|
-
else this.flags &= -129;
|
|
22956
|
-
}
|
|
22957
22923
|
topicContext = {
|
|
22958
22924
|
maxNumOfResolvableTopics: 0,
|
|
22959
22925
|
maxTopicIndex: null
|
|
22960
22926
|
};
|
|
22961
22927
|
get soloAwait() {
|
|
22962
|
-
return (this.flags &
|
|
22928
|
+
return (this.flags & 128) > 0;
|
|
22963
22929
|
}
|
|
22964
22930
|
set soloAwait(v) {
|
|
22965
|
-
if (v) this.flags |=
|
|
22966
|
-
else this.flags &= -
|
|
22931
|
+
if (v) this.flags |= 128;
|
|
22932
|
+
else this.flags &= -129;
|
|
22967
22933
|
}
|
|
22968
22934
|
get inFSharpPipelineDirectBody() {
|
|
22969
|
-
return (this.flags &
|
|
22935
|
+
return (this.flags & 256) > 0;
|
|
22970
22936
|
}
|
|
22971
22937
|
set inFSharpPipelineDirectBody(v) {
|
|
22972
|
-
if (v) this.flags |=
|
|
22973
|
-
else this.flags &= -
|
|
22938
|
+
if (v) this.flags |= 256;
|
|
22939
|
+
else this.flags &= -257;
|
|
22974
22940
|
}
|
|
22975
22941
|
labels = [];
|
|
22976
22942
|
commentsLen = 0;
|
|
@@ -22984,26 +22950,26 @@ var State = class State {
|
|
|
22984
22950
|
lastTokStartLoc = null;
|
|
22985
22951
|
context = [types.brace];
|
|
22986
22952
|
get canStartJSXElement() {
|
|
22987
|
-
return (this.flags &
|
|
22953
|
+
return (this.flags & 512) > 0;
|
|
22988
22954
|
}
|
|
22989
22955
|
set canStartJSXElement(v) {
|
|
22990
|
-
if (v) this.flags |=
|
|
22991
|
-
else this.flags &= -
|
|
22956
|
+
if (v) this.flags |= 512;
|
|
22957
|
+
else this.flags &= -513;
|
|
22992
22958
|
}
|
|
22993
22959
|
get containsEsc() {
|
|
22994
|
-
return (this.flags &
|
|
22960
|
+
return (this.flags & 1024) > 0;
|
|
22995
22961
|
}
|
|
22996
22962
|
set containsEsc(v) {
|
|
22997
|
-
if (v) this.flags |=
|
|
22998
|
-
else this.flags &= -
|
|
22963
|
+
if (v) this.flags |= 1024;
|
|
22964
|
+
else this.flags &= -1025;
|
|
22999
22965
|
}
|
|
23000
22966
|
firstInvalidTemplateEscapePos = null;
|
|
23001
22967
|
get hasTopLevelAwait() {
|
|
23002
|
-
return (this.flags &
|
|
22968
|
+
return (this.flags & 2048) > 0;
|
|
23003
22969
|
}
|
|
23004
22970
|
set hasTopLevelAwait(v) {
|
|
23005
|
-
if (v) this.flags |=
|
|
23006
|
-
else this.flags &= -
|
|
22971
|
+
if (v) this.flags |= 2048;
|
|
22972
|
+
else this.flags &= -2049;
|
|
23007
22973
|
}
|
|
23008
22974
|
strictErrors = /* @__PURE__ */ new Map();
|
|
23009
22975
|
tokensLength = 0;
|
|
@@ -24578,10 +24544,6 @@ var LValParser = class extends NodeUtils {
|
|
|
24578
24544
|
toReferencedList(exprList, isParenthesizedExpr) {
|
|
24579
24545
|
return exprList;
|
|
24580
24546
|
}
|
|
24581
|
-
toReferencedListDeep(exprList, isParenthesizedExpr) {
|
|
24582
|
-
this.toReferencedList(exprList, isParenthesizedExpr);
|
|
24583
|
-
for (const expr of exprList) if (expr?.type === "ArrayExpression") this.toReferencedListDeep(expr.elements);
|
|
24584
|
-
}
|
|
24585
24547
|
parseSpread(refExpressionErrors) {
|
|
24586
24548
|
const node = this.startNode();
|
|
24587
24549
|
this.next();
|
|
@@ -25974,8 +25936,6 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
25974
25936
|
}
|
|
25975
25937
|
tsTryParseGenericAsyncArrowFunction(startLoc) {
|
|
25976
25938
|
if (!this.match(43)) return;
|
|
25977
|
-
const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
|
|
25978
|
-
this.state.maybeInArrowParameters = true;
|
|
25979
25939
|
const res = this.tsTryParseAndCatch(() => {
|
|
25980
25940
|
const node = this.startNodeAt(startLoc);
|
|
25981
25941
|
node.typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier);
|
|
@@ -25984,7 +25944,6 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
25984
25944
|
this.expect(15);
|
|
25985
25945
|
return node;
|
|
25986
25946
|
});
|
|
25987
|
-
this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
|
|
25988
25947
|
if (!res) return;
|
|
25989
25948
|
return super.parseArrowExpression(res, null, true);
|
|
25990
25949
|
}
|
|
@@ -26402,7 +26361,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
26402
26361
|
}
|
|
26403
26362
|
parseConditional(expr, startLoc, refExpressionErrors) {
|
|
26404
26363
|
if (!this.match(13)) return expr;
|
|
26405
|
-
if (
|
|
26364
|
+
if (refExpressionErrors != null) {
|
|
26406
26365
|
const nextCh = this.lookaheadCharCode();
|
|
26407
26366
|
if (nextCh === 44 || nextCh === 61 || nextCh === 58 || nextCh === 41) {
|
|
26408
26367
|
this.setOptionalParametersError(refExpressionErrors);
|
|
@@ -27600,9 +27559,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
27600
27559
|
return this.parseSubscripts(this.finishNode(node, "BindExpression"), startLoc, noCalls);
|
|
27601
27560
|
}
|
|
27602
27561
|
parseCoverCallAndAsyncArrowHead(base, startLoc, state, optional) {
|
|
27603
|
-
const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
|
|
27604
27562
|
let refExpressionErrors = null;
|
|
27605
|
-
this.state.maybeInArrowParameters = true;
|
|
27606
27563
|
this.next();
|
|
27607
27564
|
const node = this.startNodeAt(startLoc);
|
|
27608
27565
|
node.callee = base;
|
|
@@ -27626,14 +27583,10 @@ var ExpressionParser = class extends LValParser {
|
|
|
27626
27583
|
this.checkExpressionErrors(refExpressionErrors, true);
|
|
27627
27584
|
this.expressionScope.exit();
|
|
27628
27585
|
}
|
|
27629
|
-
this.
|
|
27586
|
+
this.toReferencedList(node.arguments);
|
|
27630
27587
|
}
|
|
27631
|
-
this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
|
|
27632
27588
|
return finishedNode;
|
|
27633
27589
|
}
|
|
27634
|
-
toReferencedArguments(node, isParenthesizedExpr) {
|
|
27635
|
-
this.toReferencedListDeep(node.arguments, isParenthesizedExpr);
|
|
27636
|
-
}
|
|
27637
27590
|
parseTaggedTemplateExpression(base, startLoc, state) {
|
|
27638
27591
|
const node = this.startNodeAt(startLoc);
|
|
27639
27592
|
node.tag = base;
|
|
@@ -27946,9 +27899,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
27946
27899
|
let val;
|
|
27947
27900
|
this.next();
|
|
27948
27901
|
this.expressionScope.enter(newArrowHeadScope());
|
|
27949
|
-
const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
|
|
27950
27902
|
const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
|
|
27951
|
-
this.state.maybeInArrowParameters = true;
|
|
27952
27903
|
this.state.inFSharpPipelineDirectBody = false;
|
|
27953
27904
|
const innerStartLoc = this.state.startLoc;
|
|
27954
27905
|
const exprList = [];
|
|
@@ -27974,7 +27925,6 @@ var ExpressionParser = class extends LValParser {
|
|
|
27974
27925
|
}
|
|
27975
27926
|
const innerEndLoc = this.state.lastTokEndLoc;
|
|
27976
27927
|
this.expect(7);
|
|
27977
|
-
this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
|
|
27978
27928
|
this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
|
|
27979
27929
|
let arrowNode = this.startNodeAt(startLoc);
|
|
27980
27930
|
if (canBeArrow && this.shouldParseArrow(exprList) && (arrowNode = this.parseArrow(arrowNode))) {
|
|
@@ -27989,7 +27939,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
27989
27939
|
if (optionalCommaStartLoc) this.unexpected(optionalCommaStartLoc);
|
|
27990
27940
|
if (spreadStartLoc) this.unexpected(spreadStartLoc);
|
|
27991
27941
|
this.checkExpressionErrors(refExpressionErrors, true);
|
|
27992
|
-
this.
|
|
27942
|
+
this.toReferencedList(exprList, true);
|
|
27993
27943
|
if (exprList.length > 1) {
|
|
27994
27944
|
val = this.startNodeAt(innerStartLoc);
|
|
27995
27945
|
val.expressions = exprList;
|
|
@@ -28283,16 +28233,10 @@ var ExpressionParser = class extends LValParser {
|
|
|
28283
28233
|
if (!this.match(2) && this.prodParam.hasIn) flags |= 8;
|
|
28284
28234
|
this.prodParam.enter(flags);
|
|
28285
28235
|
this.initFunction(node, isAsync);
|
|
28286
|
-
|
|
28287
|
-
if (params) {
|
|
28288
|
-
this.state.maybeInArrowParameters = true;
|
|
28289
|
-
this.setArrowFunctionParameters(node, params, trailingCommaLoc);
|
|
28290
|
-
}
|
|
28291
|
-
this.state.maybeInArrowParameters = false;
|
|
28236
|
+
if (params) this.setArrowFunctionParameters(node, params, trailingCommaLoc);
|
|
28292
28237
|
this.parseFunctionBody(node, true);
|
|
28293
28238
|
this.prodParam.exit();
|
|
28294
28239
|
this.scope.exit();
|
|
28295
|
-
this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
|
|
28296
28240
|
return this.finishNode(node, "ArrowFunctionExpression");
|
|
28297
28241
|
}
|
|
28298
28242
|
setArrowFunctionParameters(node, params, trailingCommaLoc) {
|
|
@@ -29216,8 +29160,6 @@ var StatementParser = class extends ExpressionParser {
|
|
|
29216
29160
|
node.generator = true;
|
|
29217
29161
|
}
|
|
29218
29162
|
if (isDeclaration) node.id = this.parseFunctionId(requireId);
|
|
29219
|
-
const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
|
|
29220
|
-
this.state.maybeInArrowParameters = false;
|
|
29221
29163
|
this.scope.enter(514);
|
|
29222
29164
|
this.prodParam.enter(functionFlags(isAsync, node.generator));
|
|
29223
29165
|
if (!isDeclaration) node.id = this.parseFunctionId();
|
|
@@ -29226,7 +29168,6 @@ var StatementParser = class extends ExpressionParser {
|
|
|
29226
29168
|
this.prodParam.exit();
|
|
29227
29169
|
this.scope.exit();
|
|
29228
29170
|
if (isDeclaration && !hangingDeclaration) this.registerFunctionStatementId(node);
|
|
29229
|
-
this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
|
|
29230
29171
|
return node;
|
|
29231
29172
|
}
|
|
29232
29173
|
parseFunctionId(requireId) {
|
|
@@ -29970,7 +29911,7 @@ function generateExportedTokenTypes(internalTokenTypes) {
|
|
|
29970
29911
|
for (const typeName of Object.keys(internalTokenTypes)) tokenTypes[typeName] = getExportedToken(internalTokenTypes[typeName]);
|
|
29971
29912
|
return tokenTypes;
|
|
29972
29913
|
}
|
|
29973
|
-
|
|
29914
|
+
generateExportedTokenTypes(tt);
|
|
29974
29915
|
function getParser(options, input) {
|
|
29975
29916
|
let cls = Parser;
|
|
29976
29917
|
const pluginsMap = /* @__PURE__ */ new Map();
|
|
@@ -29999,7 +29940,6 @@ function getParserClass(pluginsMap) {
|
|
|
29999
29940
|
}
|
|
30000
29941
|
return cls;
|
|
30001
29942
|
}
|
|
30002
|
-
|
|
30003
29943
|
//#endregion
|
|
30004
29944
|
//#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/walker.js
|
|
30005
29945
|
/**
|
|
@@ -30050,7 +29990,6 @@ var WalkerBase = class {
|
|
|
30050
29990
|
else delete parent[prop];
|
|
30051
29991
|
}
|
|
30052
29992
|
};
|
|
30053
|
-
|
|
30054
29993
|
//#endregion
|
|
30055
29994
|
//#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/sync.js
|
|
30056
29995
|
/**
|
|
@@ -30166,7 +30105,6 @@ var SyncWalker = class extends WalkerBase {
|
|
|
30166
30105
|
function isNode(value) {
|
|
30167
30106
|
return value !== null && typeof value === "object" && "type" in value && typeof value.type === "string";
|
|
30168
30107
|
}
|
|
30169
|
-
|
|
30170
30108
|
//#endregion
|
|
30171
30109
|
//#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/index.js
|
|
30172
30110
|
/**
|
|
@@ -30185,7 +30123,6 @@ function isNode(value) {
|
|
|
30185
30123
|
function walk(ast, { enter, leave }) {
|
|
30186
30124
|
return new SyncWalker(enter, leave).visit(ast, null);
|
|
30187
30125
|
}
|
|
30188
|
-
|
|
30189
30126
|
//#endregion
|
|
30190
30127
|
//#region ../../node_modules/.pnpm/ast-kit@3.0.0-beta.1/node_modules/ast-kit/dist/index.js
|
|
30191
30128
|
/**
|
|
@@ -30358,28 +30295,24 @@ function resolveTemplateLiteral(node) {
|
|
|
30358
30295
|
* @param {WalkHandlers<T, void>} hooks - The handlers to be applied during the walk.
|
|
30359
30296
|
* @returns {T | null} - The modified AST node or null if the node is removed.
|
|
30360
30297
|
*/
|
|
30361
|
-
const walkAST = walk
|
|
30362
|
-
|
|
30363
|
-
//#endregion
|
|
30364
|
-
//#region ../../node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.mjs
|
|
30365
|
-
const A = (r) => r !== null && typeof r == "object", a = (r, t) => Object.assign(/* @__PURE__ */ new Error(`[${r}]: ${t}`), { code: r }), _ = "ERR_INVALID_PACKAGE_CONFIG", E = "ERR_INVALID_PACKAGE_TARGET", I$1 = "ERR_PACKAGE_PATH_NOT_EXPORTED", P = "ERR_PACKAGE_IMPORT_NOT_DEFINED", R$1 = /^\d+$/, O = /^(\.{1,2}|node_modules)$/i, w = /\/|\\/;
|
|
30298
|
+
const walkAST = walk, A = (r) => r !== null && typeof r == "object", a = (r, t) => Object.assign(/* @__PURE__ */ new Error(`[${r}]: ${t}`), { code: r }), _ = "ERR_INVALID_PACKAGE_CONFIG", E$1 = "ERR_INVALID_PACKAGE_TARGET", I$1 = "ERR_PACKAGE_PATH_NOT_EXPORTED", R = /^\d+$/, O$1 = /^(\.{1,2}|node_modules)$/i, w = /\/|\\/;
|
|
30366
30299
|
var h$1 = ((r) => (r.Export = "exports", r.Import = "imports", r))(h$1 || {});
|
|
30367
30300
|
const f = (r, t, e, o, c) => {
|
|
30368
30301
|
if (t == null) return [];
|
|
30369
30302
|
if (typeof t == "string") {
|
|
30370
30303
|
const [n, ...i] = t.split(w);
|
|
30371
|
-
if (n === ".." || i.some((l) => O.test(l))) throw a(E, `Invalid "${r}" target "${t}" defined in the package config`);
|
|
30304
|
+
if (n === ".." || i.some((l) => O$1.test(l))) throw a(E$1, `Invalid "${r}" target "${t}" defined in the package config`);
|
|
30372
30305
|
return [c ? t.replace(/\*/g, c) : t];
|
|
30373
30306
|
}
|
|
30374
30307
|
if (Array.isArray(t)) return t.flatMap((n) => f(r, n, e, o, c));
|
|
30375
30308
|
if (A(t)) {
|
|
30376
30309
|
for (const n of Object.keys(t)) {
|
|
30377
|
-
if (R
|
|
30310
|
+
if (R.test(n)) throw a(_, "Cannot contain numeric property keys");
|
|
30378
30311
|
if (n === "default" || o.includes(n)) return f(r, t[n], e, o, c);
|
|
30379
30312
|
}
|
|
30380
30313
|
return [];
|
|
30381
30314
|
}
|
|
30382
|
-
throw a(E, `Invalid "${r}" target "${t}"`);
|
|
30315
|
+
throw a(E$1, `Invalid "${r}" target "${t}"`);
|
|
30383
30316
|
}, s = "*", m = (r, t) => {
|
|
30384
30317
|
const e = r.indexOf(s), o = t.indexOf(s);
|
|
30385
30318
|
return e === o ? t.length > r.length : o > e;
|
|
@@ -30405,84 +30338,78 @@ const p = (r) => Object.keys(r).reduce((t, e) => {
|
|
|
30405
30338
|
t = t === "" ? "." : `./${t}`, (typeof r == "string" || Array.isArray(r) || A(r) && p(r)) && (r = { ".": r });
|
|
30406
30339
|
const [o, c] = d(r, t), n = f(h$1.Export, r[o], t, e, c);
|
|
30407
30340
|
if (n.length === 0) throw a(I$1, t === "." ? "No \"exports\" main defined" : `Package subpath '${t}' is not defined by "exports"`);
|
|
30408
|
-
for (const i of n) if (!i.startsWith("./") && !u.test(i)) throw a(E, `Invalid "exports" target "${i}" defined in the package config`);
|
|
30409
|
-
return n;
|
|
30410
|
-
}, T = (r, t, e) => {
|
|
30411
|
-
if (!r) throw new Error("\"imports\" is required");
|
|
30412
|
-
const [o, c] = d(r, t), n = f(h$1.Import, r[o], t, e, c);
|
|
30413
|
-
if (n.length === 0) throw a(P, `Package import specifier "${t}" is not defined in package`);
|
|
30341
|
+
for (const i of n) if (!i.startsWith("./") && !u.test(i)) throw a(E$1, `Invalid "exports" target "${i}" defined in the package config`);
|
|
30414
30342
|
return n;
|
|
30415
30343
|
};
|
|
30416
|
-
|
|
30417
30344
|
//#endregion
|
|
30418
|
-
//#region ../../node_modules/.pnpm/get-tsconfig@4.13.
|
|
30419
|
-
var
|
|
30420
|
-
var
|
|
30345
|
+
//#region ../../node_modules/.pnpm/get-tsconfig@4.13.6/node_modules/get-tsconfig/dist/index.mjs
|
|
30346
|
+
var Le = Object.defineProperty;
|
|
30347
|
+
var i = (e, t) => Le(e, "name", {
|
|
30421
30348
|
value: t,
|
|
30422
30349
|
configurable: !0
|
|
30423
30350
|
});
|
|
30424
30351
|
function h(e) {
|
|
30425
30352
|
return e.startsWith("\\\\?\\") ? e : e.replace(/\\/g, "/");
|
|
30426
30353
|
}
|
|
30427
|
-
|
|
30428
|
-
const
|
|
30354
|
+
i(h, "slash");
|
|
30355
|
+
const Z = i((e) => {
|
|
30429
30356
|
const t = fs[e];
|
|
30430
30357
|
return (s, ...n) => {
|
|
30431
|
-
const
|
|
30432
|
-
let
|
|
30433
|
-
return
|
|
30358
|
+
const o = `${e}:${n.join(":")}`;
|
|
30359
|
+
let l = s == null ? void 0 : s.get(o);
|
|
30360
|
+
return l === void 0 && (l = Reflect.apply(t, fs, n), s?.set(o, l)), l;
|
|
30434
30361
|
};
|
|
30435
|
-
}, "cacheFs"),
|
|
30362
|
+
}, "cacheFs"), E = Z("existsSync"), $e = Z("readFileSync"), G = Z("statSync"), fe = i((e, t, s) => {
|
|
30436
30363
|
for (;;) {
|
|
30437
30364
|
const n = path.posix.join(e, t);
|
|
30438
|
-
if (
|
|
30439
|
-
const
|
|
30440
|
-
if (
|
|
30441
|
-
e =
|
|
30365
|
+
if (E(s, n)) return n;
|
|
30366
|
+
const o = path.dirname(e);
|
|
30367
|
+
if (o === e) return;
|
|
30368
|
+
e = o;
|
|
30442
30369
|
}
|
|
30443
|
-
}, "findUp"),
|
|
30370
|
+
}, "findUp"), q = /^\.{1,2}(\/.*)?$/, K = i((e) => {
|
|
30444
30371
|
const t = h(e);
|
|
30445
|
-
return
|
|
30372
|
+
return q.test(t) ? t : `./${t}`;
|
|
30446
30373
|
}, "normalizeRelativePath");
|
|
30447
|
-
function
|
|
30374
|
+
function Ue(e, t = !1) {
|
|
30448
30375
|
const s = e.length;
|
|
30449
|
-
let n = 0,
|
|
30376
|
+
let n = 0, o = "", l = 0, u = 16, a = 0, r = 0, g = 0, v = 0, d = 0;
|
|
30450
30377
|
function _(c, y) {
|
|
30451
30378
|
let A = 0, b = 0;
|
|
30452
30379
|
for (; A < c;) {
|
|
30453
|
-
let
|
|
30454
|
-
if (
|
|
30455
|
-
else if (
|
|
30456
|
-
else if (
|
|
30380
|
+
let k = e.charCodeAt(n);
|
|
30381
|
+
if (k >= 48 && k <= 57) b = b * 16 + k - 48;
|
|
30382
|
+
else if (k >= 65 && k <= 70) b = b * 16 + k - 65 + 10;
|
|
30383
|
+
else if (k >= 97 && k <= 102) b = b * 16 + k - 97 + 10;
|
|
30457
30384
|
else break;
|
|
30458
30385
|
n++, A++;
|
|
30459
30386
|
}
|
|
30460
30387
|
return A < c && (b = -1), b;
|
|
30461
30388
|
}
|
|
30462
|
-
|
|
30463
|
-
function
|
|
30464
|
-
n = c,
|
|
30389
|
+
i(_, "scanHexDigits");
|
|
30390
|
+
function p(c) {
|
|
30391
|
+
n = c, o = "", l = 0, u = 16, d = 0;
|
|
30465
30392
|
}
|
|
30466
|
-
|
|
30467
|
-
function
|
|
30393
|
+
i(p, "setPosition");
|
|
30394
|
+
function D() {
|
|
30468
30395
|
let c = n;
|
|
30469
30396
|
if (e.charCodeAt(n) === 48) n++;
|
|
30470
|
-
else for (n++; n < e.length &&
|
|
30471
|
-
if (n < e.length && e.charCodeAt(n) === 46) if (n++, n < e.length &&
|
|
30472
|
-
else return
|
|
30397
|
+
else for (n++; n < e.length && N(e.charCodeAt(n));) n++;
|
|
30398
|
+
if (n < e.length && e.charCodeAt(n) === 46) if (n++, n < e.length && N(e.charCodeAt(n))) for (n++; n < e.length && N(e.charCodeAt(n));) n++;
|
|
30399
|
+
else return d = 3, e.substring(c, n);
|
|
30473
30400
|
let y = n;
|
|
30474
|
-
if (n < e.length && (e.charCodeAt(n) === 69 || e.charCodeAt(n) === 101)) if (n++, (n < e.length && e.charCodeAt(n) === 43 || e.charCodeAt(n) === 45) && n++, n < e.length &&
|
|
30475
|
-
for (n++; n < e.length &&
|
|
30401
|
+
if (n < e.length && (e.charCodeAt(n) === 69 || e.charCodeAt(n) === 101)) if (n++, (n < e.length && e.charCodeAt(n) === 43 || e.charCodeAt(n) === 45) && n++, n < e.length && N(e.charCodeAt(n))) {
|
|
30402
|
+
for (n++; n < e.length && N(e.charCodeAt(n));) n++;
|
|
30476
30403
|
y = n;
|
|
30477
|
-
} else
|
|
30404
|
+
} else d = 3;
|
|
30478
30405
|
return e.substring(c, y);
|
|
30479
30406
|
}
|
|
30480
|
-
|
|
30481
|
-
function
|
|
30407
|
+
i(D, "scanNumber");
|
|
30408
|
+
function L() {
|
|
30482
30409
|
let c = "", y = n;
|
|
30483
30410
|
for (;;) {
|
|
30484
30411
|
if (n >= s) {
|
|
30485
|
-
c += e.substring(y, n),
|
|
30412
|
+
c += e.substring(y, n), d = 2;
|
|
30486
30413
|
break;
|
|
30487
30414
|
}
|
|
30488
30415
|
const A = e.charCodeAt(n);
|
|
@@ -30492,7 +30419,7 @@ function Le(e, t = !1) {
|
|
|
30492
30419
|
}
|
|
30493
30420
|
if (A === 92) {
|
|
30494
30421
|
if (c += e.substring(y, n), n++, n >= s) {
|
|
30495
|
-
|
|
30422
|
+
d = 2;
|
|
30496
30423
|
break;
|
|
30497
30424
|
}
|
|
30498
30425
|
switch (e.charCodeAt(n++)) {
|
|
@@ -30522,64 +30449,64 @@ function Le(e, t = !1) {
|
|
|
30522
30449
|
c += " ";
|
|
30523
30450
|
break;
|
|
30524
30451
|
case 117:
|
|
30525
|
-
const
|
|
30526
|
-
|
|
30452
|
+
const k = _(4);
|
|
30453
|
+
k >= 0 ? c += String.fromCharCode(k) : d = 4;
|
|
30527
30454
|
break;
|
|
30528
|
-
default:
|
|
30455
|
+
default: d = 5;
|
|
30529
30456
|
}
|
|
30530
30457
|
y = n;
|
|
30531
30458
|
continue;
|
|
30532
30459
|
}
|
|
30533
|
-
if (A >= 0 && A <= 31) if (
|
|
30534
|
-
c += e.substring(y, n),
|
|
30460
|
+
if (A >= 0 && A <= 31) if (J(A)) {
|
|
30461
|
+
c += e.substring(y, n), d = 2;
|
|
30535
30462
|
break;
|
|
30536
|
-
} else
|
|
30463
|
+
} else d = 6;
|
|
30537
30464
|
n++;
|
|
30538
30465
|
}
|
|
30539
30466
|
return c;
|
|
30540
30467
|
}
|
|
30541
|
-
|
|
30468
|
+
i(L, "scanString");
|
|
30542
30469
|
function T() {
|
|
30543
|
-
if (
|
|
30470
|
+
if (o = "", d = 0, l = n, r = a, v = g, n >= s) return l = s, u = 17;
|
|
30544
30471
|
let c = e.charCodeAt(n);
|
|
30545
|
-
if (
|
|
30472
|
+
if (O(c)) {
|
|
30546
30473
|
do
|
|
30547
|
-
n++,
|
|
30548
|
-
while (
|
|
30549
|
-
return
|
|
30474
|
+
n++, o += String.fromCharCode(c), c = e.charCodeAt(n);
|
|
30475
|
+
while (O(c));
|
|
30476
|
+
return u = 15;
|
|
30550
30477
|
}
|
|
30551
|
-
if (
|
|
30552
|
-
`),
|
|
30478
|
+
if (J(c)) return n++, o += String.fromCharCode(c), c === 13 && e.charCodeAt(n) === 10 && (n++, o += `
|
|
30479
|
+
`), a++, g = n, u = 14;
|
|
30553
30480
|
switch (c) {
|
|
30554
|
-
case 123: return n++,
|
|
30555
|
-
case 125: return n++,
|
|
30556
|
-
case 91: return n++,
|
|
30557
|
-
case 93: return n++,
|
|
30558
|
-
case 58: return n++,
|
|
30559
|
-
case 44: return n++,
|
|
30560
|
-
case 34: return n++,
|
|
30481
|
+
case 123: return n++, u = 1;
|
|
30482
|
+
case 125: return n++, u = 2;
|
|
30483
|
+
case 91: return n++, u = 3;
|
|
30484
|
+
case 93: return n++, u = 4;
|
|
30485
|
+
case 58: return n++, u = 6;
|
|
30486
|
+
case 44: return n++, u = 5;
|
|
30487
|
+
case 34: return n++, o = L(), u = 10;
|
|
30561
30488
|
case 47:
|
|
30562
30489
|
const y = n - 1;
|
|
30563
30490
|
if (e.charCodeAt(n + 1) === 47) {
|
|
30564
|
-
for (n += 2; n < s && !
|
|
30565
|
-
return
|
|
30491
|
+
for (n += 2; n < s && !J(e.charCodeAt(n));) n++;
|
|
30492
|
+
return o = e.substring(y, n), u = 12;
|
|
30566
30493
|
}
|
|
30567
30494
|
if (e.charCodeAt(n + 1) === 42) {
|
|
30568
30495
|
n += 2;
|
|
30569
30496
|
const A = s - 1;
|
|
30570
30497
|
let b = !1;
|
|
30571
30498
|
for (; n < A;) {
|
|
30572
|
-
const
|
|
30573
|
-
if (
|
|
30499
|
+
const k = e.charCodeAt(n);
|
|
30500
|
+
if (k === 42 && e.charCodeAt(n + 1) === 47) {
|
|
30574
30501
|
n += 2, b = !0;
|
|
30575
30502
|
break;
|
|
30576
30503
|
}
|
|
30577
|
-
n++,
|
|
30504
|
+
n++, J(k) && (k === 13 && e.charCodeAt(n) === 10 && n++, a++, g = n);
|
|
30578
30505
|
}
|
|
30579
|
-
return b || (n++,
|
|
30506
|
+
return b || (n++, d = 1), o = e.substring(y, n), u = 13;
|
|
30580
30507
|
}
|
|
30581
|
-
return
|
|
30582
|
-
case 45: if (
|
|
30508
|
+
return o += String.fromCharCode(c), n++, u = 16;
|
|
30509
|
+
case 45: if (o += String.fromCharCode(c), n++, n === s || !N(e.charCodeAt(n))) return u = 16;
|
|
30583
30510
|
case 48:
|
|
30584
30511
|
case 49:
|
|
30585
30512
|
case 50:
|
|
@@ -30589,23 +30516,23 @@ function Le(e, t = !1) {
|
|
|
30589
30516
|
case 54:
|
|
30590
30517
|
case 55:
|
|
30591
30518
|
case 56:
|
|
30592
|
-
case 57: return
|
|
30519
|
+
case 57: return o += D(), u = 11;
|
|
30593
30520
|
default:
|
|
30594
|
-
for (; n < s &&
|
|
30595
|
-
if (
|
|
30596
|
-
switch (
|
|
30597
|
-
case "true": return
|
|
30598
|
-
case "false": return
|
|
30599
|
-
case "null": return
|
|
30521
|
+
for (; n < s && F(c);) n++, c = e.charCodeAt(n);
|
|
30522
|
+
if (l !== n) {
|
|
30523
|
+
switch (o = e.substring(l, n), o) {
|
|
30524
|
+
case "true": return u = 8;
|
|
30525
|
+
case "false": return u = 9;
|
|
30526
|
+
case "null": return u = 7;
|
|
30600
30527
|
}
|
|
30601
|
-
return
|
|
30528
|
+
return u = 16;
|
|
30602
30529
|
}
|
|
30603
|
-
return
|
|
30530
|
+
return o += String.fromCharCode(c), n++, u = 16;
|
|
30604
30531
|
}
|
|
30605
30532
|
}
|
|
30606
|
-
|
|
30607
|
-
function
|
|
30608
|
-
if (
|
|
30533
|
+
i(T, "scanNext");
|
|
30534
|
+
function F(c) {
|
|
30535
|
+
if (O(c) || J(c)) return !1;
|
|
30609
30536
|
switch (c) {
|
|
30610
30537
|
case 125:
|
|
30611
30538
|
case 93:
|
|
@@ -30618,179 +30545,179 @@ function Le(e, t = !1) {
|
|
|
30618
30545
|
}
|
|
30619
30546
|
return !0;
|
|
30620
30547
|
}
|
|
30621
|
-
|
|
30622
|
-
function
|
|
30548
|
+
i(F, "isUnknownContentCharacter");
|
|
30549
|
+
function x() {
|
|
30623
30550
|
let c;
|
|
30624
30551
|
do
|
|
30625
30552
|
c = T();
|
|
30626
30553
|
while (c >= 12 && c <= 15);
|
|
30627
30554
|
return c;
|
|
30628
30555
|
}
|
|
30629
|
-
return
|
|
30630
|
-
setPosition:
|
|
30631
|
-
getPosition:
|
|
30632
|
-
scan: t ?
|
|
30633
|
-
getToken:
|
|
30634
|
-
getTokenValue:
|
|
30635
|
-
getTokenOffset:
|
|
30636
|
-
getTokenLength:
|
|
30637
|
-
getTokenStartLine:
|
|
30638
|
-
getTokenStartCharacter:
|
|
30639
|
-
getTokenError:
|
|
30640
|
-
};
|
|
30641
|
-
}
|
|
30642
|
-
|
|
30643
|
-
function
|
|
30556
|
+
return i(x, "scanNextNonTrivia"), {
|
|
30557
|
+
setPosition: p,
|
|
30558
|
+
getPosition: i(() => n, "getPosition"),
|
|
30559
|
+
scan: t ? x : T,
|
|
30560
|
+
getToken: i(() => u, "getToken"),
|
|
30561
|
+
getTokenValue: i(() => o, "getTokenValue"),
|
|
30562
|
+
getTokenOffset: i(() => l, "getTokenOffset"),
|
|
30563
|
+
getTokenLength: i(() => n - l, "getTokenLength"),
|
|
30564
|
+
getTokenStartLine: i(() => r, "getTokenStartLine"),
|
|
30565
|
+
getTokenStartCharacter: i(() => l - v, "getTokenStartCharacter"),
|
|
30566
|
+
getTokenError: i(() => d, "getTokenError")
|
|
30567
|
+
};
|
|
30568
|
+
}
|
|
30569
|
+
i(Ue, "createScanner");
|
|
30570
|
+
function O(e) {
|
|
30644
30571
|
return e === 32 || e === 9;
|
|
30645
30572
|
}
|
|
30646
|
-
|
|
30647
|
-
function
|
|
30573
|
+
i(O, "isWhiteSpace");
|
|
30574
|
+
function J(e) {
|
|
30648
30575
|
return e === 10 || e === 13;
|
|
30649
30576
|
}
|
|
30650
|
-
|
|
30651
|
-
function
|
|
30577
|
+
i(J, "isLineBreak");
|
|
30578
|
+
function N(e) {
|
|
30652
30579
|
return e >= 48 && e <= 57;
|
|
30653
30580
|
}
|
|
30654
|
-
|
|
30655
|
-
var
|
|
30581
|
+
i(N, "isDigit");
|
|
30582
|
+
var ae;
|
|
30656
30583
|
(function(e) {
|
|
30657
30584
|
e[e.lineFeed = 10] = "lineFeed", e[e.carriageReturn = 13] = "carriageReturn", e[e.space = 32] = "space", e[e._0 = 48] = "_0", e[e._1 = 49] = "_1", e[e._2 = 50] = "_2", e[e._3 = 51] = "_3", e[e._4 = 52] = "_4", e[e._5 = 53] = "_5", e[e._6 = 54] = "_6", e[e._7 = 55] = "_7", e[e._8 = 56] = "_8", e[e._9 = 57] = "_9", e[e.a = 97] = "a", e[e.b = 98] = "b", e[e.c = 99] = "c", e[e.d = 100] = "d", e[e.e = 101] = "e", e[e.f = 102] = "f", e[e.g = 103] = "g", e[e.h = 104] = "h", e[e.i = 105] = "i", e[e.j = 106] = "j", e[e.k = 107] = "k", e[e.l = 108] = "l", e[e.m = 109] = "m", e[e.n = 110] = "n", e[e.o = 111] = "o", e[e.p = 112] = "p", e[e.q = 113] = "q", e[e.r = 114] = "r", e[e.s = 115] = "s", e[e.t = 116] = "t", e[e.u = 117] = "u", e[e.v = 118] = "v", e[e.w = 119] = "w", e[e.x = 120] = "x", e[e.y = 121] = "y", e[e.z = 122] = "z", e[e.A = 65] = "A", e[e.B = 66] = "B", e[e.C = 67] = "C", e[e.D = 68] = "D", e[e.E = 69] = "E", e[e.F = 70] = "F", e[e.G = 71] = "G", e[e.H = 72] = "H", e[e.I = 73] = "I", e[e.J = 74] = "J", e[e.K = 75] = "K", e[e.L = 76] = "L", e[e.M = 77] = "M", e[e.N = 78] = "N", e[e.O = 79] = "O", e[e.P = 80] = "P", e[e.Q = 81] = "Q", e[e.R = 82] = "R", e[e.S = 83] = "S", e[e.T = 84] = "T", e[e.U = 85] = "U", e[e.V = 86] = "V", e[e.W = 87] = "W", e[e.X = 88] = "X", e[e.Y = 89] = "Y", e[e.Z = 90] = "Z", e[e.asterisk = 42] = "asterisk", e[e.backslash = 92] = "backslash", e[e.closeBrace = 125] = "closeBrace", e[e.closeBracket = 93] = "closeBracket", e[e.colon = 58] = "colon", e[e.comma = 44] = "comma", e[e.dot = 46] = "dot", e[e.doubleQuote = 34] = "doubleQuote", e[e.minus = 45] = "minus", e[e.openBrace = 123] = "openBrace", e[e.openBracket = 91] = "openBracket", e[e.plus = 43] = "plus", e[e.slash = 47] = "slash", e[e.formFeed = 12] = "formFeed", e[e.tab = 9] = "tab";
|
|
30658
|
-
})(
|
|
30659
|
-
const
|
|
30660
|
-
new Array(
|
|
30661
|
-
` + " ".repeat(t)), new Array(
|
|
30662
|
-
` + " ".repeat(t)), new Array(
|
|
30663
|
-
` + " ".repeat(t)), new Array(
|
|
30585
|
+
})(ae || (ae = {})), new Array(20).fill(0).map((e, t) => " ".repeat(t));
|
|
30586
|
+
const P = 200;
|
|
30587
|
+
new Array(P).fill(0).map((e, t) => `
|
|
30588
|
+
` + " ".repeat(t)), new Array(P).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(P).fill(0).map((e, t) => `\r
|
|
30589
|
+
` + " ".repeat(t)), new Array(P).fill(0).map((e, t) => `
|
|
30590
|
+
` + " ".repeat(t)), new Array(P).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(P).fill(0).map((e, t) => `\r
|
|
30664
30591
|
` + " ".repeat(t));
|
|
30665
|
-
var
|
|
30592
|
+
var Q;
|
|
30666
30593
|
(function(e) {
|
|
30667
30594
|
e.DEFAULT = { allowTrailingComma: !1 };
|
|
30668
|
-
})(
|
|
30669
|
-
function
|
|
30670
|
-
let n = null,
|
|
30671
|
-
const
|
|
30672
|
-
function r
|
|
30673
|
-
Array.isArray(
|
|
30674
|
-
}
|
|
30675
|
-
return
|
|
30676
|
-
onObjectBegin:
|
|
30677
|
-
const
|
|
30678
|
-
r
|
|
30595
|
+
})(Q || (Q = {}));
|
|
30596
|
+
function Ne(e, t = [], s = Q.DEFAULT) {
|
|
30597
|
+
let n = null, o = [];
|
|
30598
|
+
const l = [];
|
|
30599
|
+
function u(r) {
|
|
30600
|
+
Array.isArray(o) ? o.push(r) : n !== null && (o[n] = r);
|
|
30601
|
+
}
|
|
30602
|
+
return i(u, "onValue"), Pe(e, {
|
|
30603
|
+
onObjectBegin: i(() => {
|
|
30604
|
+
const r = {};
|
|
30605
|
+
u(r), l.push(o), o = r, n = null;
|
|
30679
30606
|
}, "onObjectBegin"),
|
|
30680
|
-
onObjectProperty:
|
|
30681
|
-
n =
|
|
30607
|
+
onObjectProperty: i((r) => {
|
|
30608
|
+
n = r;
|
|
30682
30609
|
}, "onObjectProperty"),
|
|
30683
|
-
onObjectEnd:
|
|
30684
|
-
|
|
30610
|
+
onObjectEnd: i(() => {
|
|
30611
|
+
o = l.pop();
|
|
30685
30612
|
}, "onObjectEnd"),
|
|
30686
|
-
onArrayBegin:
|
|
30687
|
-
const
|
|
30688
|
-
r
|
|
30613
|
+
onArrayBegin: i(() => {
|
|
30614
|
+
const r = [];
|
|
30615
|
+
u(r), l.push(o), o = r, n = null;
|
|
30689
30616
|
}, "onArrayBegin"),
|
|
30690
|
-
onArrayEnd:
|
|
30691
|
-
|
|
30617
|
+
onArrayEnd: i(() => {
|
|
30618
|
+
o = l.pop();
|
|
30692
30619
|
}, "onArrayEnd"),
|
|
30693
|
-
onLiteralValue:
|
|
30694
|
-
onError:
|
|
30620
|
+
onLiteralValue: u,
|
|
30621
|
+
onError: i((r, g, v) => {
|
|
30695
30622
|
t.push({
|
|
30696
|
-
error:
|
|
30623
|
+
error: r,
|
|
30697
30624
|
offset: g,
|
|
30698
30625
|
length: v
|
|
30699
30626
|
});
|
|
30700
30627
|
}, "onError")
|
|
30701
|
-
}, s),
|
|
30702
|
-
}
|
|
30703
|
-
|
|
30704
|
-
function
|
|
30705
|
-
const n =
|
|
30706
|
-
let
|
|
30707
|
-
function
|
|
30708
|
-
return
|
|
30709
|
-
}
|
|
30710
|
-
|
|
30711
|
-
function
|
|
30712
|
-
return
|
|
30713
|
-
}
|
|
30714
|
-
|
|
30715
|
-
function
|
|
30716
|
-
return
|
|
30717
|
-
}
|
|
30718
|
-
|
|
30719
|
-
function g(
|
|
30720
|
-
return
|
|
30721
|
-
|
|
30628
|
+
}, s), o[0];
|
|
30629
|
+
}
|
|
30630
|
+
i(Ne, "parse$1");
|
|
30631
|
+
function Pe(e, t, s = Q.DEFAULT) {
|
|
30632
|
+
const n = Ue(e, !1), o = [];
|
|
30633
|
+
let l = 0;
|
|
30634
|
+
function u(w) {
|
|
30635
|
+
return w ? () => l === 0 && w(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
|
|
30636
|
+
}
|
|
30637
|
+
i(u, "toNoArgVisit");
|
|
30638
|
+
function a(w) {
|
|
30639
|
+
return w ? (j) => l === 0 && w(j, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
|
|
30640
|
+
}
|
|
30641
|
+
i(a, "toOneArgVisit");
|
|
30642
|
+
function r(w) {
|
|
30643
|
+
return w ? (j) => l === 0 && w(j, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) : () => !0;
|
|
30644
|
+
}
|
|
30645
|
+
i(r, "toOneArgVisitWithPath");
|
|
30646
|
+
function g(w) {
|
|
30647
|
+
return w ? () => {
|
|
30648
|
+
l > 0 ? l++ : w(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) === !1 && (l = 1);
|
|
30722
30649
|
} : () => !0;
|
|
30723
30650
|
}
|
|
30724
|
-
|
|
30725
|
-
function v(
|
|
30726
|
-
return
|
|
30727
|
-
|
|
30651
|
+
i(g, "toBeginVisit");
|
|
30652
|
+
function v(w) {
|
|
30653
|
+
return w ? () => {
|
|
30654
|
+
l > 0 && l--, l === 0 && w(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter());
|
|
30728
30655
|
} : () => !0;
|
|
30729
30656
|
}
|
|
30730
|
-
|
|
30731
|
-
const
|
|
30657
|
+
i(v, "toEndVisit");
|
|
30658
|
+
const d = g(t.onObjectBegin), _ = r(t.onObjectProperty), p = v(t.onObjectEnd), D = g(t.onArrayBegin), L = v(t.onArrayEnd), T = r(t.onLiteralValue), F = a(t.onSeparator), x = u(t.onComment), c = a(t.onError), y = s && s.disallowComments, A = s && s.allowTrailingComma;
|
|
30732
30659
|
function b() {
|
|
30733
30660
|
for (;;) {
|
|
30734
|
-
const
|
|
30661
|
+
const w = n.scan();
|
|
30735
30662
|
switch (n.getTokenError()) {
|
|
30736
30663
|
case 4:
|
|
30737
|
-
|
|
30664
|
+
k(14);
|
|
30738
30665
|
break;
|
|
30739
30666
|
case 5:
|
|
30740
|
-
|
|
30667
|
+
k(15);
|
|
30741
30668
|
break;
|
|
30742
30669
|
case 3:
|
|
30743
|
-
|
|
30670
|
+
k(13);
|
|
30744
30671
|
break;
|
|
30745
30672
|
case 1:
|
|
30746
|
-
y ||
|
|
30673
|
+
y || k(11);
|
|
30747
30674
|
break;
|
|
30748
30675
|
case 2:
|
|
30749
|
-
|
|
30676
|
+
k(12);
|
|
30750
30677
|
break;
|
|
30751
30678
|
case 6:
|
|
30752
|
-
|
|
30679
|
+
k(16);
|
|
30753
30680
|
break;
|
|
30754
30681
|
}
|
|
30755
|
-
switch (
|
|
30682
|
+
switch (w) {
|
|
30756
30683
|
case 12:
|
|
30757
30684
|
case 13:
|
|
30758
|
-
y ?
|
|
30685
|
+
y ? k(10) : x();
|
|
30759
30686
|
break;
|
|
30760
30687
|
case 16:
|
|
30761
|
-
|
|
30688
|
+
k(1);
|
|
30762
30689
|
break;
|
|
30763
30690
|
case 15:
|
|
30764
30691
|
case 14: break;
|
|
30765
|
-
default: return
|
|
30692
|
+
default: return w;
|
|
30766
30693
|
}
|
|
30767
30694
|
}
|
|
30768
30695
|
}
|
|
30769
|
-
|
|
30770
|
-
function
|
|
30771
|
-
if (c(
|
|
30772
|
-
let
|
|
30773
|
-
for (;
|
|
30774
|
-
if (
|
|
30696
|
+
i(b, "scanNext");
|
|
30697
|
+
function k(w, j = [], S = []) {
|
|
30698
|
+
if (c(w), j.length + S.length > 0) {
|
|
30699
|
+
let $ = n.getToken();
|
|
30700
|
+
for (; $ !== 17;) {
|
|
30701
|
+
if (j.indexOf($) !== -1) {
|
|
30775
30702
|
b();
|
|
30776
30703
|
break;
|
|
30777
|
-
} else if (
|
|
30778
|
-
|
|
30704
|
+
} else if (S.indexOf($) !== -1) break;
|
|
30705
|
+
$ = b();
|
|
30779
30706
|
}
|
|
30780
30707
|
}
|
|
30781
30708
|
}
|
|
30782
|
-
|
|
30783
|
-
function
|
|
30784
|
-
const
|
|
30785
|
-
return
|
|
30709
|
+
i(k, "handleError");
|
|
30710
|
+
function R(w) {
|
|
30711
|
+
const j = n.getTokenValue();
|
|
30712
|
+
return w ? T(j) : (_(j), o.push(j)), b(), !0;
|
|
30786
30713
|
}
|
|
30787
|
-
|
|
30788
|
-
function
|
|
30714
|
+
i(R, "parseString");
|
|
30715
|
+
function W() {
|
|
30789
30716
|
switch (n.getToken()) {
|
|
30790
30717
|
case 11:
|
|
30791
|
-
const
|
|
30792
|
-
let
|
|
30793
|
-
isNaN(
|
|
30718
|
+
const w = n.getTokenValue();
|
|
30719
|
+
let j = Number(w);
|
|
30720
|
+
isNaN(j) && (k(2), j = 0), T(j);
|
|
30794
30721
|
break;
|
|
30795
30722
|
case 7:
|
|
30796
30723
|
T(null);
|
|
@@ -30805,220 +30732,220 @@ function xe(e, t, s = W.DEFAULT) {
|
|
|
30805
30732
|
}
|
|
30806
30733
|
return b(), !0;
|
|
30807
30734
|
}
|
|
30808
|
-
|
|
30809
|
-
function
|
|
30810
|
-
return n.getToken() !== 10 ? (
|
|
30735
|
+
i(W, "parseLiteral");
|
|
30736
|
+
function V() {
|
|
30737
|
+
return n.getToken() !== 10 ? (k(3, [], [2, 5]), !1) : (R(!1), n.getToken() === 6 ? (F(":"), b(), U() || k(4, [], [2, 5])) : k(5, [], [2, 5]), o.pop(), !0);
|
|
30811
30738
|
}
|
|
30812
|
-
|
|
30813
|
-
function
|
|
30814
|
-
|
|
30815
|
-
let
|
|
30739
|
+
i(V, "parseProperty");
|
|
30740
|
+
function M() {
|
|
30741
|
+
d(), b();
|
|
30742
|
+
let w = !1;
|
|
30816
30743
|
for (; n.getToken() !== 2 && n.getToken() !== 17;) {
|
|
30817
30744
|
if (n.getToken() === 5) {
|
|
30818
|
-
if (
|
|
30819
|
-
} else
|
|
30820
|
-
|
|
30745
|
+
if (w || k(4, [], []), F(","), b(), n.getToken() === 2 && A) break;
|
|
30746
|
+
} else w && k(6, [], []);
|
|
30747
|
+
V() || k(4, [], [2, 5]), w = !0;
|
|
30821
30748
|
}
|
|
30822
|
-
return
|
|
30749
|
+
return p(), n.getToken() !== 2 ? k(7, [2], []) : b(), !0;
|
|
30823
30750
|
}
|
|
30824
|
-
|
|
30825
|
-
function
|
|
30826
|
-
|
|
30827
|
-
let
|
|
30751
|
+
i(M, "parseObject");
|
|
30752
|
+
function z() {
|
|
30753
|
+
D(), b();
|
|
30754
|
+
let w = !0, j = !1;
|
|
30828
30755
|
for (; n.getToken() !== 4 && n.getToken() !== 17;) {
|
|
30829
30756
|
if (n.getToken() === 5) {
|
|
30830
|
-
if (
|
|
30831
|
-
} else
|
|
30832
|
-
|
|
30757
|
+
if (j || k(4, [], []), F(","), b(), n.getToken() === 4 && A) break;
|
|
30758
|
+
} else j && k(6, [], []);
|
|
30759
|
+
w ? (o.push(0), w = !1) : o[o.length - 1]++, U() || k(4, [], [4, 5]), j = !0;
|
|
30833
30760
|
}
|
|
30834
|
-
return
|
|
30761
|
+
return L(), w || o.pop(), n.getToken() !== 4 ? k(8, [4], []) : b(), !0;
|
|
30835
30762
|
}
|
|
30836
|
-
|
|
30837
|
-
function
|
|
30763
|
+
i(z, "parseArray");
|
|
30764
|
+
function U() {
|
|
30838
30765
|
switch (n.getToken()) {
|
|
30839
|
-
case 3: return
|
|
30840
|
-
case 1: return
|
|
30841
|
-
case 10: return
|
|
30842
|
-
default: return
|
|
30766
|
+
case 3: return z();
|
|
30767
|
+
case 1: return M();
|
|
30768
|
+
case 10: return R(!0);
|
|
30769
|
+
default: return W();
|
|
30843
30770
|
}
|
|
30844
30771
|
}
|
|
30845
|
-
return
|
|
30772
|
+
return i(U, "parseValue"), b(), n.getToken() === 17 ? s.allowEmptyContent ? !0 : (k(4, [], []), !1) : U() ? (n.getToken() !== 17 && k(9, [], []), !0) : (k(4, [], []), !1);
|
|
30846
30773
|
}
|
|
30847
|
-
|
|
30848
|
-
var
|
|
30774
|
+
i(Pe, "visit");
|
|
30775
|
+
var ce;
|
|
30849
30776
|
(function(e) {
|
|
30850
30777
|
e[e.None = 0] = "None", e[e.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 4] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 6] = "InvalidCharacter";
|
|
30851
|
-
})(
|
|
30852
|
-
var
|
|
30778
|
+
})(ce || (ce = {}));
|
|
30779
|
+
var ge;
|
|
30853
30780
|
(function(e) {
|
|
30854
30781
|
e[e.OpenBraceToken = 1] = "OpenBraceToken", e[e.CloseBraceToken = 2] = "CloseBraceToken", e[e.OpenBracketToken = 3] = "OpenBracketToken", e[e.CloseBracketToken = 4] = "CloseBracketToken", e[e.CommaToken = 5] = "CommaToken", e[e.ColonToken = 6] = "ColonToken", e[e.NullKeyword = 7] = "NullKeyword", e[e.TrueKeyword = 8] = "TrueKeyword", e[e.FalseKeyword = 9] = "FalseKeyword", e[e.StringLiteral = 10] = "StringLiteral", e[e.NumericLiteral = 11] = "NumericLiteral", e[e.LineCommentTrivia = 12] = "LineCommentTrivia", e[e.BlockCommentTrivia = 13] = "BlockCommentTrivia", e[e.LineBreakTrivia = 14] = "LineBreakTrivia", e[e.Trivia = 15] = "Trivia", e[e.Unknown = 16] = "Unknown", e[e.EOF = 17] = "EOF";
|
|
30855
|
-
})(
|
|
30856
|
-
const
|
|
30857
|
-
var
|
|
30782
|
+
})(ge || (ge = {}));
|
|
30783
|
+
const Re = Ne;
|
|
30784
|
+
var ke;
|
|
30858
30785
|
(function(e) {
|
|
30859
30786
|
e[e.InvalidSymbol = 1] = "InvalidSymbol", e[e.InvalidNumberFormat = 2] = "InvalidNumberFormat", e[e.PropertyNameExpected = 3] = "PropertyNameExpected", e[e.ValueExpected = 4] = "ValueExpected", e[e.ColonExpected = 5] = "ColonExpected", e[e.CommaExpected = 6] = "CommaExpected", e[e.CloseBraceExpected = 7] = "CloseBraceExpected", e[e.CloseBracketExpected = 8] = "CloseBracketExpected", e[e.EndOfFileExpected = 9] = "EndOfFileExpected", e[e.InvalidCommentToken = 10] = "InvalidCommentToken", e[e.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 14] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 16] = "InvalidCharacter";
|
|
30860
|
-
})(
|
|
30861
|
-
const
|
|
30787
|
+
})(ke || (ke = {}));
|
|
30788
|
+
const me = i((e, t) => Re($e(t, e, "utf8")), "readJsonc"), C = Symbol("implicitBaseUrl"), I = "${configDir}", Se = i(() => {
|
|
30862
30789
|
const { findPnpApi: e } = module$1;
|
|
30863
30790
|
return e && e(process.cwd());
|
|
30864
|
-
}, "getPnpApi"),
|
|
30865
|
-
const
|
|
30866
|
-
if (n != null && n.has(
|
|
30867
|
-
const
|
|
30868
|
-
if (!
|
|
30869
|
-
let
|
|
30870
|
-
if (!s &&
|
|
30871
|
-
const [
|
|
30872
|
-
|
|
30791
|
+
}, "getPnpApi"), ee = i((e, t, s, n) => {
|
|
30792
|
+
const o = `resolveFromPackageJsonPath:${e}:${t}:${s}`;
|
|
30793
|
+
if (n != null && n.has(o)) return n.get(o);
|
|
30794
|
+
const l = me(e, n);
|
|
30795
|
+
if (!l) return;
|
|
30796
|
+
let u = t || "tsconfig.json";
|
|
30797
|
+
if (!s && l.exports) try {
|
|
30798
|
+
const [a] = v(l.exports, t, ["require", "types"]);
|
|
30799
|
+
u = a;
|
|
30873
30800
|
} catch {
|
|
30874
30801
|
return !1;
|
|
30875
30802
|
}
|
|
30876
|
-
else !t &&
|
|
30877
|
-
return
|
|
30878
|
-
}, "resolveFromPackageJsonPath"),
|
|
30803
|
+
else !t && l.tsconfig && (u = l.tsconfig);
|
|
30804
|
+
return u = path.join(e, "..", u), n?.set(o, u), u;
|
|
30805
|
+
}, "resolveFromPackageJsonPath"), ne = "package.json", te = "tsconfig.json", Je = i((e, t, s) => {
|
|
30879
30806
|
let n = e;
|
|
30880
|
-
if (e === ".." && (n = path.join(n,
|
|
30881
|
-
if (
|
|
30882
|
-
if (
|
|
30807
|
+
if (e === ".." && (n = path.join(n, te)), e[0] === "." && (n = path.resolve(t, n)), path.isAbsolute(n)) {
|
|
30808
|
+
if (E(s, n)) {
|
|
30809
|
+
if (G(s, n).isFile()) return n;
|
|
30883
30810
|
} else if (!n.endsWith(".json")) {
|
|
30884
|
-
const
|
|
30885
|
-
if (
|
|
30811
|
+
const p = `${n}.json`;
|
|
30812
|
+
if (E(s, p)) return p;
|
|
30886
30813
|
}
|
|
30887
30814
|
return;
|
|
30888
30815
|
}
|
|
30889
|
-
const [
|
|
30890
|
-
if (
|
|
30891
|
-
const { resolveRequest:
|
|
30816
|
+
const [o, ...l] = e.split("/"), u = o[0] === "@" ? `${o}/${l.shift()}` : o, a = l.join("/"), r = Se();
|
|
30817
|
+
if (r) {
|
|
30818
|
+
const { resolveRequest: p } = r;
|
|
30892
30819
|
try {
|
|
30893
|
-
if (
|
|
30894
|
-
const
|
|
30895
|
-
if (
|
|
30896
|
-
const
|
|
30897
|
-
if (
|
|
30820
|
+
if (u === e) {
|
|
30821
|
+
const D = p(path.join(u, ne), t);
|
|
30822
|
+
if (D) {
|
|
30823
|
+
const L = ee(D, a, !1, s);
|
|
30824
|
+
if (L && E(s, L)) return L;
|
|
30898
30825
|
}
|
|
30899
30826
|
} else {
|
|
30900
|
-
let
|
|
30827
|
+
let D;
|
|
30901
30828
|
try {
|
|
30902
|
-
|
|
30829
|
+
D = p(e, t, { extensions: [".json"] });
|
|
30903
30830
|
} catch {
|
|
30904
|
-
|
|
30831
|
+
D = p(path.join(e, te), t);
|
|
30905
30832
|
}
|
|
30906
|
-
if (
|
|
30833
|
+
if (D) return D;
|
|
30907
30834
|
}
|
|
30908
30835
|
} catch {}
|
|
30909
30836
|
}
|
|
30910
|
-
const g =
|
|
30911
|
-
if (!g || !
|
|
30912
|
-
const v = path.join(g,
|
|
30913
|
-
if (
|
|
30914
|
-
const
|
|
30915
|
-
if (
|
|
30916
|
-
if (
|
|
30837
|
+
const g = fe(path.resolve(t), path.join("node_modules", u), s);
|
|
30838
|
+
if (!g || !G(s, g).isDirectory()) return;
|
|
30839
|
+
const v = path.join(g, ne);
|
|
30840
|
+
if (E(s, v)) {
|
|
30841
|
+
const p = ee(v, a, !1, s);
|
|
30842
|
+
if (p === !1) return;
|
|
30843
|
+
if (p && E(s, p) && G(s, p).isFile()) return p;
|
|
30917
30844
|
}
|
|
30918
|
-
const
|
|
30845
|
+
const d = path.join(g, a), _ = d.endsWith(".json");
|
|
30919
30846
|
if (!_) {
|
|
30920
|
-
const
|
|
30921
|
-
if (
|
|
30922
|
-
}
|
|
30923
|
-
if (
|
|
30924
|
-
if (
|
|
30925
|
-
const
|
|
30926
|
-
if (
|
|
30927
|
-
const
|
|
30928
|
-
if (
|
|
30847
|
+
const p = `${d}.json`;
|
|
30848
|
+
if (E(s, p)) return p;
|
|
30849
|
+
}
|
|
30850
|
+
if (E(s, d)) {
|
|
30851
|
+
if (G(s, d).isDirectory()) {
|
|
30852
|
+
const p = path.join(d, ne);
|
|
30853
|
+
if (E(s, p)) {
|
|
30854
|
+
const L = ee(p, "", !0, s);
|
|
30855
|
+
if (L && E(s, L)) return L;
|
|
30929
30856
|
}
|
|
30930
|
-
const
|
|
30931
|
-
if (
|
|
30932
|
-
} else if (_) return
|
|
30857
|
+
const D = path.join(d, te);
|
|
30858
|
+
if (E(s, D)) return D;
|
|
30859
|
+
} else if (_) return d;
|
|
30933
30860
|
}
|
|
30934
|
-
}, "resolveExtendsPath"),
|
|
30861
|
+
}, "resolveExtendsPath"), se = i((e, t) => K(path.relative(e, t)), "pathRelative"), we = [
|
|
30935
30862
|
"files",
|
|
30936
30863
|
"include",
|
|
30937
30864
|
"exclude"
|
|
30938
|
-
],
|
|
30865
|
+
], de = i((e, t, s) => {
|
|
30939
30866
|
const n = path.join(t, s);
|
|
30940
30867
|
return h(path.relative(e, n)) || "./";
|
|
30941
|
-
}, "resolveAndRelativize"),
|
|
30868
|
+
}, "resolveAndRelativize"), We = i((e, t, s) => {
|
|
30942
30869
|
const n = path.relative(e, t);
|
|
30943
30870
|
if (!n) return s;
|
|
30944
30871
|
return h(`${n}/${s.startsWith("./") ? s.slice(2) : s}`);
|
|
30945
|
-
}, "prefixPattern"),
|
|
30946
|
-
const
|
|
30947
|
-
if (!
|
|
30948
|
-
if (s.has(
|
|
30949
|
-
s.add(
|
|
30950
|
-
const
|
|
30951
|
-
delete
|
|
30952
|
-
const { compilerOptions:
|
|
30953
|
-
if (
|
|
30954
|
-
const { baseUrl:
|
|
30955
|
-
|
|
30956
|
-
const { outDir: g } =
|
|
30957
|
-
g && !g.startsWith(
|
|
30958
|
-
}
|
|
30959
|
-
for (const
|
|
30960
|
-
const g = r
|
|
30961
|
-
g && (r
|
|
30962
|
-
}
|
|
30963
|
-
return
|
|
30964
|
-
}, "resolveExtends"),
|
|
30872
|
+
}, "prefixPattern"), Ve = i((e, t, s, n) => {
|
|
30873
|
+
const o = Je(e, t, n);
|
|
30874
|
+
if (!o) throw new Error(`File '${e}' not found.`);
|
|
30875
|
+
if (s.has(o)) throw new Error(`Circularity detected while resolving configuration: ${o}`);
|
|
30876
|
+
s.add(o);
|
|
30877
|
+
const l = path.dirname(o), u = ve(o, n, s);
|
|
30878
|
+
delete u.references;
|
|
30879
|
+
const { compilerOptions: a } = u;
|
|
30880
|
+
if (a) {
|
|
30881
|
+
const { baseUrl: r } = a;
|
|
30882
|
+
r && !r.startsWith(I) && (a.baseUrl = de(t, l, r));
|
|
30883
|
+
const { outDir: g } = a;
|
|
30884
|
+
g && !g.startsWith(I) && (a.outDir = de(t, l, g));
|
|
30885
|
+
}
|
|
30886
|
+
for (const r of we) {
|
|
30887
|
+
const g = u[r];
|
|
30888
|
+
g && (u[r] = g.map((v) => v.startsWith(I) ? v : We(t, l, v)));
|
|
30889
|
+
}
|
|
30890
|
+
return u;
|
|
30891
|
+
}, "resolveExtends"), be = ["outDir", "declarationDir"], ve = i((e, t, s = /* @__PURE__ */ new Set()) => {
|
|
30965
30892
|
let n;
|
|
30966
30893
|
try {
|
|
30967
|
-
n =
|
|
30894
|
+
n = me(e, t) || {};
|
|
30968
30895
|
} catch {
|
|
30969
30896
|
throw new Error(`Cannot resolve tsconfig at path: ${e}`);
|
|
30970
30897
|
}
|
|
30971
30898
|
if (typeof n != "object") throw new SyntaxError(`Failed to parse tsconfig at: ${e}`);
|
|
30972
|
-
const
|
|
30899
|
+
const o = path.dirname(e);
|
|
30973
30900
|
if (n.compilerOptions) {
|
|
30974
|
-
const { compilerOptions:
|
|
30975
|
-
|
|
30901
|
+
const { compilerOptions: l } = n;
|
|
30902
|
+
l.paths && !l.baseUrl && (l[C] = o);
|
|
30976
30903
|
}
|
|
30977
30904
|
if (n.extends) {
|
|
30978
|
-
const
|
|
30905
|
+
const l = Array.isArray(n.extends) ? n.extends : [n.extends];
|
|
30979
30906
|
delete n.extends;
|
|
30980
|
-
for (const
|
|
30981
|
-
const
|
|
30982
|
-
...
|
|
30907
|
+
for (const u of l.reverse()) {
|
|
30908
|
+
const a = Ve(u, o, new Set(s), t), r = {
|
|
30909
|
+
...a,
|
|
30983
30910
|
...n,
|
|
30984
30911
|
compilerOptions: {
|
|
30985
|
-
...
|
|
30912
|
+
...a.compilerOptions,
|
|
30986
30913
|
...n.compilerOptions
|
|
30987
30914
|
}
|
|
30988
30915
|
};
|
|
30989
|
-
|
|
30990
|
-
...
|
|
30916
|
+
a.watchOptions && (r.watchOptions = {
|
|
30917
|
+
...a.watchOptions,
|
|
30991
30918
|
...n.watchOptions
|
|
30992
|
-
}), n =
|
|
30919
|
+
}), n = r;
|
|
30993
30920
|
}
|
|
30994
30921
|
}
|
|
30995
30922
|
if (n.compilerOptions) {
|
|
30996
|
-
const { compilerOptions:
|
|
30997
|
-
for (const
|
|
30998
|
-
const
|
|
30999
|
-
if (
|
|
30923
|
+
const { compilerOptions: l } = n;
|
|
30924
|
+
for (const a of ["baseUrl", "rootDir"]) {
|
|
30925
|
+
const r = l[a];
|
|
30926
|
+
if (r && !r.startsWith(I)) l[a] = se(o, path.resolve(o, r));
|
|
31000
30927
|
}
|
|
31001
|
-
for (const
|
|
31002
|
-
let
|
|
31003
|
-
|
|
30928
|
+
for (const a of be) {
|
|
30929
|
+
let r = l[a];
|
|
30930
|
+
r && (Array.isArray(n.exclude) || (n.exclude = be.map((g) => l[g]).filter(Boolean)), r.startsWith(I) || (r = K(r)), l[a] = r);
|
|
31004
30931
|
}
|
|
31005
30932
|
} else n.compilerOptions = {};
|
|
31006
|
-
if (n.include ? (n.include = n.include.map(h), n.files && delete n.files) : n.files && (n.files = n.files.map((
|
|
31007
|
-
const { watchOptions:
|
|
31008
|
-
|
|
30933
|
+
if (n.include ? (n.include = n.include.map(h), n.files && delete n.files) : n.files && (n.files = n.files.map((l) => l.startsWith(I) ? l : K(l))), n.watchOptions) {
|
|
30934
|
+
const { watchOptions: l } = n;
|
|
30935
|
+
l.excludeDirectories && (l.excludeDirectories = l.excludeDirectories.map((u) => h(path.resolve(o, u)))), l.excludeFiles && (l.excludeFiles = l.excludeFiles.map((u) => h(path.resolve(o, u)))), l.watchFile && (l.watchFile = l.watchFile.toLowerCase()), l.watchDirectory && (l.watchDirectory = l.watchDirectory.toLowerCase()), l.fallbackPolling && (l.fallbackPolling = l.fallbackPolling.toLowerCase());
|
|
31009
30936
|
}
|
|
31010
30937
|
return n;
|
|
31011
|
-
}, "_parseTsconfig"),
|
|
31012
|
-
if (e.startsWith(
|
|
31013
|
-
}, "interpolateConfigDir"),
|
|
30938
|
+
}, "_parseTsconfig"), H = i((e, t) => {
|
|
30939
|
+
if (e.startsWith(I)) return h(path.join(t, e.slice(12)));
|
|
30940
|
+
}, "interpolateConfigDir"), Me = [
|
|
31014
30941
|
"outDir",
|
|
31015
30942
|
"declarationDir",
|
|
31016
30943
|
"outFile",
|
|
31017
30944
|
"rootDir",
|
|
31018
30945
|
"baseUrl",
|
|
31019
30946
|
"tsBuildInfoFile"
|
|
31020
|
-
],
|
|
31021
|
-
if (e.strict) for (const
|
|
30947
|
+
], ze = i((e) => {
|
|
30948
|
+
if (e.strict) for (const B of [
|
|
31022
30949
|
"noImplicitAny",
|
|
31023
30950
|
"noImplicitThis",
|
|
31024
30951
|
"strictNullChecks",
|
|
@@ -31028,63 +30955,67 @@ const ce = o((e, t) => Ue(Be(t, e, "utf8")), "readJsonc"), X = Symbol("implicitB
|
|
|
31028
30955
|
"strictBuiltinIteratorReturn",
|
|
31029
30956
|
"alwaysStrict",
|
|
31030
30957
|
"useUnknownInCatchVariables"
|
|
31031
|
-
]) e[
|
|
31032
|
-
if (e.target) {
|
|
31033
|
-
let
|
|
31034
|
-
|
|
30958
|
+
]) e[B] === void 0 && (e[B] = !0);
|
|
30959
|
+
if (e.composite && (e.declaration ??= !0, e.incremental ??= !0), e.target) {
|
|
30960
|
+
let f = e.target.toLowerCase();
|
|
30961
|
+
f === "es2015" && (f = "es6"), e.target = f, f === "esnext" && (e.module ??= "es6", e.useDefineForClassFields ??= !0), (f === "es6" || f === "es2016" || f === "es2017" || f === "es2018" || f === "es2019" || f === "es2020" || f === "es2021" || f === "es2022" || f === "es2023" || f === "es2024") && (e.module ??= "es6"), (f === "es2022" || f === "es2023" || f === "es2024") && (e.useDefineForClassFields ??= !0);
|
|
31035
30962
|
}
|
|
31036
30963
|
if (e.module) {
|
|
31037
|
-
let
|
|
31038
|
-
|
|
30964
|
+
let f = e.module.toLowerCase();
|
|
30965
|
+
if (f === "es2015" && (f = "es6"), e.module = f, (f === "es6" || f === "es2020" || f === "es2022" || f === "esnext" || f === "none" || f === "system" || f === "umd" || f === "amd") && (e.moduleResolution ??= "classic"), f === "system" && (e.allowSyntheticDefaultImports ??= !0), (f === "node16" || f === "node18" || f === "node20" || f === "nodenext" || f === "preserve") && (e.esModuleInterop ??= !0, e.allowSyntheticDefaultImports ??= !0), (f === "node16" || f === "node18" || f === "node20" || f === "nodenext") && (e.moduleDetection ??= "force"), f === "node16" && (e.target ??= "es2022", e.moduleResolution ??= "node16"), f === "node18" && (e.target ??= "es2022", e.moduleResolution ??= "node16"), f === "node20" && (e.target ??= "es2023", e.moduleResolution ??= "node16", e.resolveJsonModule ??= !0), f === "nodenext" && (e.target ??= "esnext", e.moduleResolution ??= "nodenext", e.resolveJsonModule ??= !0), f === "node16" || f === "node18" || f === "node20" || f === "nodenext") {
|
|
30966
|
+
const B = e.target;
|
|
30967
|
+
(B === "es3" || B === "es2022" || B === "es2023" || B === "es2024" || B === "esnext") && (e.useDefineForClassFields ??= !0);
|
|
30968
|
+
}
|
|
30969
|
+
f === "preserve" && (e.moduleResolution ??= "bundler");
|
|
31039
30970
|
}
|
|
31040
30971
|
if (e.moduleResolution) {
|
|
31041
|
-
let
|
|
31042
|
-
|
|
31043
|
-
}
|
|
31044
|
-
e.esModuleInterop && (e.allowSyntheticDefaultImports ??= !0), e.verbatimModuleSyntax && (e.isolatedModules ??= !0, e.preserveConstEnums ??= !0), e.isolatedModules && (e.preserveConstEnums ??= !0), e.rewriteRelativeImportExtensions && (e.allowImportingTsExtensions ??= !0);
|
|
31045
|
-
}, "normalizeCompilerOptions"),
|
|
31046
|
-
const s = path.resolve(e), n =
|
|
31047
|
-
if (
|
|
31048
|
-
for (const
|
|
31049
|
-
const
|
|
31050
|
-
if (
|
|
31051
|
-
const g =
|
|
31052
|
-
|
|
30972
|
+
let f = e.moduleResolution.toLowerCase();
|
|
30973
|
+
f === "node" && (f = "node10"), e.moduleResolution = f, (f === "node16" || f === "nodenext" || f === "bundler") && (e.resolvePackageJsonExports ??= !0, e.resolvePackageJsonImports ??= !0), f === "bundler" && (e.allowSyntheticDefaultImports ??= !0, e.resolveJsonModule ??= !0);
|
|
30974
|
+
}
|
|
30975
|
+
e.jsx && (e.jsx = e.jsx.toLowerCase()), e.moduleDetection && (e.moduleDetection = e.moduleDetection.toLowerCase()), e.importsNotUsedAsValues && (e.importsNotUsedAsValues = e.importsNotUsedAsValues.toLowerCase()), e.newLine && (e.newLine = e.newLine.toLowerCase()), e.esModuleInterop && (e.allowSyntheticDefaultImports ??= !0), e.verbatimModuleSyntax && (e.isolatedModules ??= !0, e.preserveConstEnums ??= !0), e.isolatedModules && (e.preserveConstEnums ??= !0), e.rewriteRelativeImportExtensions && (e.allowImportingTsExtensions ??= !0), e.lib && (e.lib = e.lib.map((f) => f.toLowerCase())), e.checkJs && (e.allowJs ??= !0);
|
|
30976
|
+
}, "normalizeCompilerOptions"), pe = i((e, t = /* @__PURE__ */ new Map()) => {
|
|
30977
|
+
const s = path.resolve(e), n = ve(s, t), o = path.dirname(s), { compilerOptions: l } = n;
|
|
30978
|
+
if (l) {
|
|
30979
|
+
for (const a of Me) {
|
|
30980
|
+
const r = l[a];
|
|
30981
|
+
if (r) {
|
|
30982
|
+
const g = H(r, o);
|
|
30983
|
+
l[a] = g ? se(o, g) : r;
|
|
31053
30984
|
}
|
|
31054
30985
|
}
|
|
31055
|
-
for (const
|
|
31056
|
-
const
|
|
31057
|
-
|
|
31058
|
-
const v =
|
|
31059
|
-
return v ?
|
|
30986
|
+
for (const a of ["rootDirs", "typeRoots"]) {
|
|
30987
|
+
const r = l[a];
|
|
30988
|
+
r && (l[a] = r.map((g) => {
|
|
30989
|
+
const v = H(g, o);
|
|
30990
|
+
return v ? se(o, v) : g;
|
|
31060
30991
|
}));
|
|
31061
30992
|
}
|
|
31062
|
-
const { paths:
|
|
31063
|
-
if (
|
|
30993
|
+
const { paths: u } = l;
|
|
30994
|
+
if (u) for (const a of Object.keys(u)) u[a] = u[a].map((r) => {
|
|
31064
30995
|
var g;
|
|
31065
|
-
return (g =
|
|
30996
|
+
return (g = H(r, o)) != null ? g : r;
|
|
31066
30997
|
});
|
|
31067
|
-
|
|
30998
|
+
ze(l);
|
|
31068
30999
|
}
|
|
31069
|
-
for (const
|
|
31070
|
-
const
|
|
31071
|
-
|
|
31000
|
+
for (const u of we) {
|
|
31001
|
+
const a = n[u];
|
|
31002
|
+
a && (n[u] = a.map((r) => {
|
|
31072
31003
|
var g;
|
|
31073
|
-
return (g =
|
|
31004
|
+
return (g = H(r, o)) != null ? g : r;
|
|
31074
31005
|
}));
|
|
31075
31006
|
}
|
|
31076
31007
|
return n;
|
|
31077
|
-
}, "parseTsconfig"),
|
|
31078
|
-
const n =
|
|
31008
|
+
}, "parseTsconfig"), Ge = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map()) => {
|
|
31009
|
+
const n = fe(h(e), t, s);
|
|
31079
31010
|
if (!n) return null;
|
|
31080
31011
|
return {
|
|
31081
31012
|
path: n,
|
|
31082
|
-
config:
|
|
31013
|
+
config: pe(n, s)
|
|
31083
31014
|
};
|
|
31084
|
-
}, "getTsconfig"),
|
|
31085
|
-
const s = e.match(
|
|
31015
|
+
}, "getTsconfig"), Qe = /\*/g, Te = i((e, t) => {
|
|
31016
|
+
const s = e.match(Qe);
|
|
31086
31017
|
if (s && s.length > 1) throw new Error(t);
|
|
31087
|
-
}, "assertStarCount"),
|
|
31018
|
+
}, "assertStarCount"), He = i((e) => {
|
|
31088
31019
|
if (e.includes("*")) {
|
|
31089
31020
|
const [t, s] = e.split("*");
|
|
31090
31021
|
return {
|
|
@@ -31093,66 +31024,67 @@ const ce = o((e, t) => Ue(Be(t, e, "utf8")), "readJsonc"), X = Symbol("implicitB
|
|
|
31093
31024
|
};
|
|
31094
31025
|
}
|
|
31095
31026
|
return e;
|
|
31096
|
-
}, "parsePattern"),
|
|
31097
|
-
pattern:
|
|
31098
|
-
substitutions:
|
|
31099
|
-
if (
|
|
31100
|
-
return path.resolve(s,
|
|
31027
|
+
}, "parsePattern"), Xe = i(({ prefix: e, suffix: t }, s) => s.startsWith(e) && s.endsWith(t), "isPatternMatch"), Ye = i((e, t, s) => Object.entries(e).map(([n, o]) => (Te(n, `Pattern '${n}' can have at most one '*' character.`), {
|
|
31028
|
+
pattern: He(n),
|
|
31029
|
+
substitutions: o.map((l) => {
|
|
31030
|
+
if (Te(l, `Substitution '${l}' in pattern '${n}' can have at most one '*' character.`), !t && !q.test(l) && !path.isAbsolute(l)) throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");
|
|
31031
|
+
return path.resolve(s, l);
|
|
31101
31032
|
})
|
|
31102
|
-
})), "parsePaths")
|
|
31033
|
+
})), "parsePaths");
|
|
31034
|
+
i((e) => {
|
|
31103
31035
|
const { compilerOptions: t } = e.config;
|
|
31104
31036
|
if (!t) return null;
|
|
31105
31037
|
const { baseUrl: s, paths: n } = t;
|
|
31106
31038
|
if (!s && !n) return null;
|
|
31107
|
-
const
|
|
31108
|
-
return (
|
|
31109
|
-
if (
|
|
31110
|
-
const
|
|
31111
|
-
for (const _ of
|
|
31112
|
-
if (_.pattern ===
|
|
31113
|
-
typeof _.pattern != "string" &&
|
|
31039
|
+
const o = C in t && t[C], l = path.resolve(path.dirname(e.path), s || o || "."), u = n ? Ye(n, s, l) : [];
|
|
31040
|
+
return (a) => {
|
|
31041
|
+
if (q.test(a)) return [];
|
|
31042
|
+
const r = [];
|
|
31043
|
+
for (const _ of u) {
|
|
31044
|
+
if (_.pattern === a) return _.substitutions.map(h);
|
|
31045
|
+
typeof _.pattern != "string" && r.push(_);
|
|
31114
31046
|
}
|
|
31115
31047
|
let g, v = -1;
|
|
31116
|
-
for (const _ of
|
|
31117
|
-
if (!g) return s ? [h(path.join(
|
|
31118
|
-
const
|
|
31119
|
-
return g.substitutions.map((_) => h(_.replace("*",
|
|
31048
|
+
for (const _ of r) Xe(_.pattern, a) && _.pattern.prefix.length > v && (v = _.pattern.prefix.length, g = _);
|
|
31049
|
+
if (!g) return s ? [h(path.join(l, a))] : [];
|
|
31050
|
+
const d = a.slice(g.pattern.prefix.length, a.length - g.pattern.suffix.length);
|
|
31051
|
+
return g.substitutions.map((_) => h(_.replace("*", d)));
|
|
31120
31052
|
};
|
|
31121
31053
|
}, "createPathsMatcher");
|
|
31122
|
-
var
|
|
31054
|
+
var qe = Object.defineProperty, X = i((e, t) => qe(e, "name", {
|
|
31123
31055
|
value: t,
|
|
31124
31056
|
configurable: !0
|
|
31125
31057
|
}), "s");
|
|
31126
|
-
const
|
|
31058
|
+
const Ae = X((e) => {
|
|
31127
31059
|
let t = "";
|
|
31128
31060
|
for (let s = 0; s < e.length; s += 1) {
|
|
31129
|
-
const n = e[s],
|
|
31130
|
-
t += n ===
|
|
31061
|
+
const n = e[s], o = n.toUpperCase();
|
|
31062
|
+
t += n === o ? n.toLowerCase() : o;
|
|
31131
31063
|
}
|
|
31132
31064
|
return t;
|
|
31133
|
-
}, "invertCase"),
|
|
31065
|
+
}, "invertCase"), le = /* @__PURE__ */ new Map(), _e = X((e, t) => {
|
|
31134
31066
|
const s = path$1.join(e, `.is-fs-case-sensitive-test-${process.pid}`);
|
|
31135
31067
|
try {
|
|
31136
|
-
return t.writeFileSync(s, ""), !t.existsSync(
|
|
31068
|
+
return t.writeFileSync(s, ""), !t.existsSync(Ae(s));
|
|
31137
31069
|
} finally {
|
|
31138
31070
|
try {
|
|
31139
31071
|
t.unlinkSync(s);
|
|
31140
31072
|
} catch {}
|
|
31141
31073
|
}
|
|
31142
|
-
}, "checkDirectoryCaseWithWrite"),
|
|
31074
|
+
}, "checkDirectoryCaseWithWrite"), Ke = X((e, t, s) => {
|
|
31143
31075
|
try {
|
|
31144
|
-
return
|
|
31076
|
+
return _e(e, s);
|
|
31145
31077
|
} catch (n) {
|
|
31146
|
-
if (t === void 0) return
|
|
31078
|
+
if (t === void 0) return _e(Be.tmpdir(), s);
|
|
31147
31079
|
throw n;
|
|
31148
31080
|
}
|
|
31149
|
-
}, "checkDirectoryCaseWithFallback"),
|
|
31081
|
+
}, "checkDirectoryCaseWithFallback"), Oe = X((e, t = nativeFs, s = !0) => {
|
|
31150
31082
|
const n = e != null ? e : process.cwd();
|
|
31151
|
-
if (s &&
|
|
31152
|
-
let
|
|
31153
|
-
const
|
|
31154
|
-
return
|
|
31155
|
-
}, "isFsCaseSensitive"), { join:
|
|
31083
|
+
if (s && le.has(n)) return le.get(n);
|
|
31084
|
+
let o;
|
|
31085
|
+
const l = Ae(n);
|
|
31086
|
+
return l !== n && t.existsSync(n) ? o = !t.existsSync(l) : o = Ke(n, e, t), s && le.set(n, o), o;
|
|
31087
|
+
}, "isFsCaseSensitive"), { join: ye } = path.posix, oe = {
|
|
31156
31088
|
ts: [
|
|
31157
31089
|
".ts",
|
|
31158
31090
|
".tsx",
|
|
@@ -31160,48 +31092,48 @@ const we = M((e) => {
|
|
|
31160
31092
|
],
|
|
31161
31093
|
cts: [".cts", ".d.cts"],
|
|
31162
31094
|
mts: [".mts", ".d.mts"]
|
|
31163
|
-
},
|
|
31164
|
-
const t = [...
|
|
31095
|
+
}, Ce = i((e) => {
|
|
31096
|
+
const t = [...oe.ts], s = [...oe.cts], n = [...oe.mts];
|
|
31165
31097
|
return e != null && e.allowJs && (t.push(".js", ".jsx"), s.push(".cjs"), n.push(".mjs")), [
|
|
31166
31098
|
...t,
|
|
31167
31099
|
...s,
|
|
31168
31100
|
...n
|
|
31169
31101
|
];
|
|
31170
|
-
}, "getSupportedExtensions"),
|
|
31102
|
+
}, "getSupportedExtensions"), en = i((e) => {
|
|
31171
31103
|
const t = [];
|
|
31172
31104
|
if (!e) return t;
|
|
31173
31105
|
const { outDir: s, declarationDir: n } = e;
|
|
31174
31106
|
return s && t.push(s), n && t.push(n), t;
|
|
31175
|
-
}, "getDefaultExcludeSpec"),
|
|
31107
|
+
}, "getDefaultExcludeSpec"), je = i((e) => e.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`), "escapeForRegexp"), ie = `(?!(${[
|
|
31176
31108
|
"node_modules",
|
|
31177
31109
|
"bower_components",
|
|
31178
31110
|
"jspm_packages"
|
|
31179
|
-
].join("|")})(/|$))`,
|
|
31111
|
+
].join("|")})(/|$))`, tn = /(?:^|\/)[^.*?]+$/, Fe = "**/*", Y = "[^/]", ue = "[^./]", De = process.platform === "win32";
|
|
31112
|
+
i(({ config: e, path: t }, s = Oe()) => {
|
|
31180
31113
|
if ("extends" in e) throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");
|
|
31181
31114
|
if (!path.isAbsolute(t)) throw new Error("The tsconfig path must be absolute");
|
|
31182
|
-
|
|
31183
|
-
const n = path.dirname(t), { files:
|
|
31184
|
-
const
|
|
31185
|
-
return new RegExp(`^${
|
|
31186
|
-
}),
|
|
31187
|
-
let
|
|
31188
|
-
|
|
31189
|
-
const
|
|
31190
|
-
const A = `(${
|
|
31191
|
-
return y ? `/${
|
|
31115
|
+
De && (t = h(t));
|
|
31116
|
+
const n = path.dirname(t), { files: o, include: l, exclude: u, compilerOptions: a } = e, r = i((T) => path.isAbsolute(T) ? T : ye(n, T), "resolvePattern"), g = o == null ? void 0 : o.map(r), v = Ce(a), d = s ? "" : "i", p = (u || en(a)).map((T) => {
|
|
31117
|
+
const x = je(r(T)).replaceAll(String.raw`\*\*/`, "(.+/)?").replaceAll(String.raw`\*`, `${Y}*`).replaceAll(String.raw`\?`, Y);
|
|
31118
|
+
return new RegExp(`^${x}($|/)`, d);
|
|
31119
|
+
}), D = o || l ? l : [Fe], L = D ? D.map((T) => {
|
|
31120
|
+
let F = r(T);
|
|
31121
|
+
tn.test(F) && (F = ye(F, Fe));
|
|
31122
|
+
const x = je(F).replaceAll(String.raw`/\*\*`, `(/${ie}${ue}${Y}*)*?`).replaceAll(/(\/)?\\\*/g, (c, y) => {
|
|
31123
|
+
const A = `(${ue}|(\\.(?!min\\.js$))?)*`;
|
|
31124
|
+
return y ? `/${ie}${ue}${A}` : A;
|
|
31192
31125
|
}).replaceAll(/(\/)?\\\?/g, (c, y) => {
|
|
31193
|
-
const A =
|
|
31194
|
-
return y ? `/${
|
|
31126
|
+
const A = Y;
|
|
31127
|
+
return y ? `/${ie}${A}` : A;
|
|
31195
31128
|
});
|
|
31196
|
-
return new RegExp(`^${
|
|
31129
|
+
return new RegExp(`^${x}$`, d);
|
|
31197
31130
|
}) : void 0;
|
|
31198
31131
|
return (T) => {
|
|
31199
31132
|
if (!path.isAbsolute(T)) throw new Error("filePath must be absolute");
|
|
31200
|
-
if (
|
|
31201
|
-
if (!(!v.some((
|
|
31133
|
+
if (De && (T = h(T)), g != null && g.includes(T)) return e;
|
|
31134
|
+
if (!(!v.some((F) => T.endsWith(F)) || p.some((F) => F.test(T))) && L && L.some((F) => F.test(T))) return e;
|
|
31202
31135
|
};
|
|
31203
31136
|
}, "createFilesMatcher");
|
|
31204
|
-
|
|
31205
31137
|
//#endregion
|
|
31206
31138
|
//#region ../../node_modules/.pnpm/dts-resolver@2.1.3_oxc-resolver@11.14.0/node_modules/dts-resolver/dist/index.mjs
|
|
31207
31139
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
@@ -31314,9 +31246,8 @@ const ALLOW_EXTENSIONS = new Set([
|
|
|
31314
31246
|
function ensureValue(value) {
|
|
31315
31247
|
return value && ALLOW_EXTENSIONS.has(extname(value)) ? value.replaceAll("\\", "/") : null;
|
|
31316
31248
|
}
|
|
31317
|
-
|
|
31318
31249
|
//#endregion
|
|
31319
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.22.
|
|
31250
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.22.4_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_e2c498b62da30912fd0b48bf4746dbba/node_modules/rolldown-plugin-dts/dist/index.mjs
|
|
31320
31251
|
const { fork, spawn } = globalThis.process.getBuiltinModule("node:child_process");
|
|
31321
31252
|
const { existsSync: existsSync$1 } = globalThis.process.getBuiltinModule("node:fs");
|
|
31322
31253
|
const { mkdtemp, readFile, rm } = globalThis.process.getBuiltinModule("node:fs/promises");
|
|
@@ -31450,14 +31381,13 @@ function createFakeJsPlugin({ sourcemap, cjsDefault, sideEffects }) {
|
|
|
31450
31381
|
const deps = collectDependencies(decl, namespaceStmts, childrenSet, identifierMap);
|
|
31451
31382
|
const children = Array.from(childrenSet).filter((child) => bindings.every((b) => child !== b));
|
|
31452
31383
|
if (decl !== stmt) decl.leadingComments = stmt.leadingComments;
|
|
31453
|
-
const
|
|
31384
|
+
const declarationIdNode = numericLiteral(registerDeclaration({
|
|
31454
31385
|
decl,
|
|
31455
31386
|
deps,
|
|
31456
31387
|
bindings,
|
|
31457
31388
|
params,
|
|
31458
31389
|
children
|
|
31459
|
-
});
|
|
31460
|
-
const declarationIdNode = numericLiteral(declarationId);
|
|
31390
|
+
}));
|
|
31461
31391
|
const depsNode = arrowFunctionExpression(params.map(({ name }) => identifier(name)), arrayExpression(deps));
|
|
31462
31392
|
const childrenNode = arrayExpression(children.map((node) => ({
|
|
31463
31393
|
type: "StringLiteral",
|
|
@@ -31560,6 +31490,7 @@ function createFakeJsPlugin({ sourcemap, cjsDefault, sideEffects }) {
|
|
|
31560
31490
|
start: transformedDep.start,
|
|
31561
31491
|
end: transformedDep.end
|
|
31562
31492
|
};
|
|
31493
|
+
else if (isInfer(transformedDep)) transformedDep.name = "__Infer";
|
|
31563
31494
|
if (originalDep.replace) originalDep.replace(transformedDep);
|
|
31564
31495
|
else Object.assign(originalDep, transformedDep);
|
|
31565
31496
|
}
|
|
@@ -31694,8 +31625,7 @@ function createFakeJsPlugin({ sourcemap, cjsDefault, sideEffects }) {
|
|
|
31694
31625
|
}
|
|
31695
31626
|
function importNamespace(node, imported, source, namespaceStmts, identifierMap) {
|
|
31696
31627
|
const sourceText = source.value.replaceAll(/\W/g, "_");
|
|
31697
|
-
|
|
31698
|
-
let local = identifier(localName);
|
|
31628
|
+
let local = identifier(isIdentifierName(source.value) ? source.value : `${sourceText}${getIdentifierIndex(identifierMap, sourceText)}`);
|
|
31699
31629
|
if (namespaceStmts.has(source.value)) local = namespaceStmts.get(source.value).local;
|
|
31700
31630
|
else namespaceStmts.set(source.value, {
|
|
31701
31631
|
stmt: importDeclaration([importNamespaceSpecifier(local)], source),
|
|
@@ -31761,6 +31691,9 @@ function runtimeBindingArrayExpression(elements) {
|
|
|
31761
31691
|
function isThisExpression(node) {
|
|
31762
31692
|
return isIdentifierOf(node, "this") || node.type === "ThisExpression" || node.type === "MemberExpression" && isThisExpression(node.object);
|
|
31763
31693
|
}
|
|
31694
|
+
function isInfer(node) {
|
|
31695
|
+
return isIdentifierOf(node, "infer");
|
|
31696
|
+
}
|
|
31764
31697
|
function TSEntityNameToRuntime(node) {
|
|
31765
31698
|
if (node.type === "Identifier" || node.type === "ThisExpression") return node;
|
|
31766
31699
|
const left = TSEntityNameToRuntime(node.left);
|
|
@@ -31774,13 +31707,16 @@ function isReferenceId(node) {
|
|
|
31774
31707
|
return isTypeOf(node, ["Identifier", "MemberExpression"]);
|
|
31775
31708
|
}
|
|
31776
31709
|
function isHelperImport(node) {
|
|
31777
|
-
return node.type === "ImportDeclaration" && node.specifiers.
|
|
31710
|
+
return node.type === "ImportDeclaration" && node.specifiers.every((spec) => spec.type === "ImportSpecifier" && spec.imported.type === "Identifier" && ["__exportAll", "__reExport"].includes(spec.local.name));
|
|
31778
31711
|
}
|
|
31779
31712
|
/**
|
|
31780
31713
|
* patch `.d.ts` suffix in import source to `.js`
|
|
31781
31714
|
*/
|
|
31782
31715
|
function patchImportExport(node, typeOnlyIds, cjsDefault) {
|
|
31783
31716
|
if (node.type === "ExportNamedDeclaration" && !node.declaration && !node.source && !node.specifiers.length && !node.attributes?.length) return false;
|
|
31717
|
+
if (node.type === "ImportDeclaration" && node.specifiers.length) {
|
|
31718
|
+
for (const specifier of node.specifiers) if (isInfer(specifier.local)) specifier.local.name = "__Infer";
|
|
31719
|
+
}
|
|
31784
31720
|
if (isTypeOf(node, [
|
|
31785
31721
|
"ImportDeclaration",
|
|
31786
31722
|
"ExportAllDeclaration",
|
|
@@ -31997,12 +31933,12 @@ function createGeneratePlugin({ tsconfig, tsconfigRaw, build, incremental, cwd,
|
|
|
31997
31933
|
if (tsgo) tsgoDist = await runTsgo(rootDir, tsconfig, sourcemap, tsgo.path);
|
|
31998
31934
|
else if (!oxc) if (parallel) {
|
|
31999
31935
|
childProcess = fork(new URL(WORKER_URL, import.meta.url), { stdio: "inherit" });
|
|
32000
|
-
rpc = (await import("./dist-
|
|
31936
|
+
rpc = (await import("./dist-_l70jCqI.js")).createBirpc({}, {
|
|
32001
31937
|
post: (data) => childProcess.send(data),
|
|
32002
31938
|
on: (fn) => childProcess.on("message", fn)
|
|
32003
31939
|
});
|
|
32004
31940
|
} else {
|
|
32005
|
-
tscModule = await import("./tsc-
|
|
31941
|
+
tscModule = await import("./tsc-CberiTDq.js");
|
|
32006
31942
|
if (newContext) tscContext = createContext();
|
|
32007
31943
|
}
|
|
32008
31944
|
if (!Array.isArray(options.input)) for (const [name, id] of Object.entries(options.input)) {
|
|
@@ -32213,12 +32149,12 @@ function resolveOptions({ cwd = process$2.cwd(), dtsInput = false, emitDtsOnly =
|
|
|
32213
32149
|
else if (typeof tsgo === "object" && tsgo.enabled === false) tsgo = false;
|
|
32214
32150
|
let resolvedTsconfig;
|
|
32215
32151
|
if (tsconfig === true || tsconfig == null) {
|
|
32216
|
-
const { config, path } =
|
|
32152
|
+
const { config, path } = Ge(cwd) || {};
|
|
32217
32153
|
tsconfig = path;
|
|
32218
32154
|
resolvedTsconfig = config;
|
|
32219
32155
|
} else if (typeof tsconfig === "string") {
|
|
32220
32156
|
tsconfig = path$2.resolve(cwd || process$2.cwd(), tsconfig);
|
|
32221
|
-
resolvedTsconfig =
|
|
32157
|
+
resolvedTsconfig = pe(tsconfig);
|
|
32222
32158
|
} else tsconfig = void 0;
|
|
32223
32159
|
compilerOptions = {
|
|
32224
32160
|
...resolvedTsconfig?.compilerOptions,
|
|
@@ -32332,7 +32268,7 @@ function createDtsResolvePlugin({ cwd, tsconfig, tsconfigRaw, resolver, sideEffe
|
|
|
32332
32268
|
async function resolveDtsPath(id, importer, rolldownResolution) {
|
|
32333
32269
|
let dtsPath;
|
|
32334
32270
|
if (resolver === "tsc") {
|
|
32335
|
-
const { tscResolve } = await import("./resolver-
|
|
32271
|
+
const { tscResolve } = await import("./resolver-CdD-yT15-3eaymYLw.js");
|
|
32336
32272
|
dtsPath = tscResolve(id, importer, cwd, tsconfig, tsconfigRaw);
|
|
32337
32273
|
} else dtsPath = baseDtsResolver(id, importer);
|
|
32338
32274
|
debug$1("Using %s for dts import: %O -> %O", resolver, id, dtsPath);
|
|
@@ -32358,6 +32294,5 @@ function dts(options = {}) {
|
|
|
32358
32294
|
plugins.push(createDtsResolvePlugin(resolved), createFakeJsPlugin(resolved));
|
|
32359
32295
|
return plugins;
|
|
32360
32296
|
}
|
|
32361
|
-
|
|
32362
32297
|
//#endregion
|
|
32363
|
-
export { dts };
|
|
32298
|
+
export { dts };
|