@forsakringskassan/vite-lib-config 4.2.4 → 4.3.1
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/api-extractor.js +59 -46
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/vite.config.cjs +405 -552
- package/dist/vite.config.mjs +405 -552
- package/package.json +2 -2
package/dist/vite.config.mjs
CHANGED
|
@@ -7,7 +7,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
7
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
9
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __commonJS = (cb, mod) => function
|
|
10
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
11
11
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
@@ -761,7 +761,7 @@ var require_cjs = __commonJS({
|
|
|
761
761
|
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
762
762
|
}
|
|
763
763
|
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
764
|
-
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
764
|
+
var REACT_ELEMENT_TYPE = canUseSymbol ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
|
|
765
765
|
function isReactElement(value) {
|
|
766
766
|
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
767
767
|
}
|
|
@@ -869,10 +869,10 @@ var require_picocolors = __commonJS({
|
|
|
869
869
|
} while (~index);
|
|
870
870
|
return result + string.substring(cursor);
|
|
871
871
|
};
|
|
872
|
-
var createColors = (
|
|
873
|
-
let f =
|
|
872
|
+
var createColors = (enabled2 = isColorSupported) => {
|
|
873
|
+
let f = enabled2 ? formatter : () => String;
|
|
874
874
|
return {
|
|
875
|
-
isColorSupported:
|
|
875
|
+
isColorSupported: enabled2,
|
|
876
876
|
reset: f("\x1B[0m", "\x1B[0m"),
|
|
877
877
|
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
878
878
|
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
@@ -1379,7 +1379,7 @@ var require_parse = __commonJS({
|
|
|
1379
1379
|
"node_modules/semver/functions/parse.js"(exports, module) {
|
|
1380
1380
|
"use strict";
|
|
1381
1381
|
var SemVer = require_semver();
|
|
1382
|
-
var
|
|
1382
|
+
var parse2 = (version3, options, throwErrors = false) => {
|
|
1383
1383
|
if (version3 instanceof SemVer) {
|
|
1384
1384
|
return version3;
|
|
1385
1385
|
}
|
|
@@ -1392,7 +1392,7 @@ var require_parse = __commonJS({
|
|
|
1392
1392
|
throw er;
|
|
1393
1393
|
}
|
|
1394
1394
|
};
|
|
1395
|
-
module.exports =
|
|
1395
|
+
module.exports = parse2;
|
|
1396
1396
|
}
|
|
1397
1397
|
});
|
|
1398
1398
|
|
|
@@ -1400,9 +1400,9 @@ var require_parse = __commonJS({
|
|
|
1400
1400
|
var require_valid = __commonJS({
|
|
1401
1401
|
"node_modules/semver/functions/valid.js"(exports, module) {
|
|
1402
1402
|
"use strict";
|
|
1403
|
-
var
|
|
1403
|
+
var parse2 = require_parse();
|
|
1404
1404
|
var valid = (version3, options) => {
|
|
1405
|
-
const v =
|
|
1405
|
+
const v = parse2(version3, options);
|
|
1406
1406
|
return v ? v.version : null;
|
|
1407
1407
|
};
|
|
1408
1408
|
module.exports = valid;
|
|
@@ -1413,9 +1413,9 @@ var require_valid = __commonJS({
|
|
|
1413
1413
|
var require_clean = __commonJS({
|
|
1414
1414
|
"node_modules/semver/functions/clean.js"(exports, module) {
|
|
1415
1415
|
"use strict";
|
|
1416
|
-
var
|
|
1416
|
+
var parse2 = require_parse();
|
|
1417
1417
|
var clean = (version3, options) => {
|
|
1418
|
-
const s =
|
|
1418
|
+
const s = parse2(version3.trim().replace(/^[=v]+/, ""), options);
|
|
1419
1419
|
return s ? s.version : null;
|
|
1420
1420
|
};
|
|
1421
1421
|
module.exports = clean;
|
|
@@ -1450,10 +1450,10 @@ var require_inc = __commonJS({
|
|
|
1450
1450
|
var require_diff = __commonJS({
|
|
1451
1451
|
"node_modules/semver/functions/diff.js"(exports, module) {
|
|
1452
1452
|
"use strict";
|
|
1453
|
-
var
|
|
1453
|
+
var parse2 = require_parse();
|
|
1454
1454
|
var diff = (version1, version22) => {
|
|
1455
|
-
const v1 =
|
|
1456
|
-
const v2 =
|
|
1455
|
+
const v1 = parse2(version1, null, true);
|
|
1456
|
+
const v2 = parse2(version22, null, true);
|
|
1457
1457
|
const comparison = v1.compare(v2);
|
|
1458
1458
|
if (comparison === 0) {
|
|
1459
1459
|
return null;
|
|
@@ -1524,9 +1524,9 @@ var require_patch = __commonJS({
|
|
|
1524
1524
|
var require_prerelease = __commonJS({
|
|
1525
1525
|
"node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
1526
1526
|
"use strict";
|
|
1527
|
-
var
|
|
1527
|
+
var parse2 = require_parse();
|
|
1528
1528
|
var prerelease = (version3, options) => {
|
|
1529
|
-
const parsed =
|
|
1529
|
+
const parsed = parse2(version3, options);
|
|
1530
1530
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
1531
1531
|
};
|
|
1532
1532
|
module.exports = prerelease;
|
|
@@ -1712,9 +1712,9 @@ var require_coerce = __commonJS({
|
|
|
1712
1712
|
"node_modules/semver/functions/coerce.js"(exports, module) {
|
|
1713
1713
|
"use strict";
|
|
1714
1714
|
var SemVer = require_semver();
|
|
1715
|
-
var
|
|
1715
|
+
var parse2 = require_parse();
|
|
1716
1716
|
var { safeRe: re, t } = require_re();
|
|
1717
|
-
var
|
|
1717
|
+
var coerce2 = (version3, options) => {
|
|
1718
1718
|
if (version3 instanceof SemVer) {
|
|
1719
1719
|
return version3;
|
|
1720
1720
|
}
|
|
@@ -1747,9 +1747,9 @@ var require_coerce = __commonJS({
|
|
|
1747
1747
|
const patch = match2[4] || "0";
|
|
1748
1748
|
const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "";
|
|
1749
1749
|
const build = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
|
|
1750
|
-
return
|
|
1750
|
+
return parse2(`${major2}.${minor}.${patch}${prerelease}${build}`, options);
|
|
1751
1751
|
};
|
|
1752
|
-
module.exports =
|
|
1752
|
+
module.exports = coerce2;
|
|
1753
1753
|
}
|
|
1754
1754
|
});
|
|
1755
1755
|
|
|
@@ -2172,7 +2172,7 @@ var require_range = __commonJS({
|
|
|
2172
2172
|
var require_comparator = __commonJS({
|
|
2173
2173
|
"node_modules/semver/classes/comparator.js"(exports, module) {
|
|
2174
2174
|
"use strict";
|
|
2175
|
-
var ANY = Symbol("SemVer ANY");
|
|
2175
|
+
var ANY = /* @__PURE__ */ Symbol("SemVer ANY");
|
|
2176
2176
|
var Comparator = class _Comparator {
|
|
2177
2177
|
static get ANY() {
|
|
2178
2178
|
return ANY;
|
|
@@ -2764,7 +2764,7 @@ var require_semver2 = __commonJS({
|
|
|
2764
2764
|
var constants = require_constants();
|
|
2765
2765
|
var SemVer = require_semver();
|
|
2766
2766
|
var identifiers = require_identifiers();
|
|
2767
|
-
var
|
|
2767
|
+
var parse2 = require_parse();
|
|
2768
2768
|
var valid = require_valid();
|
|
2769
2769
|
var clean = require_clean();
|
|
2770
2770
|
var inc = require_inc();
|
|
@@ -2786,7 +2786,7 @@ var require_semver2 = __commonJS({
|
|
|
2786
2786
|
var gte2 = require_gte();
|
|
2787
2787
|
var lte2 = require_lte();
|
|
2788
2788
|
var cmp = require_cmp();
|
|
2789
|
-
var
|
|
2789
|
+
var coerce2 = require_coerce();
|
|
2790
2790
|
var Comparator = require_comparator();
|
|
2791
2791
|
var Range = require_range();
|
|
2792
2792
|
var satisfies = require_satisfies();
|
|
@@ -2802,7 +2802,7 @@ var require_semver2 = __commonJS({
|
|
|
2802
2802
|
var simplifyRange = require_simplify();
|
|
2803
2803
|
var subset = require_subset();
|
|
2804
2804
|
module.exports = {
|
|
2805
|
-
parse,
|
|
2805
|
+
parse: parse2,
|
|
2806
2806
|
valid,
|
|
2807
2807
|
clean,
|
|
2808
2808
|
inc,
|
|
@@ -2824,7 +2824,7 @@ var require_semver2 = __commonJS({
|
|
|
2824
2824
|
gte: gte2,
|
|
2825
2825
|
lte: lte2,
|
|
2826
2826
|
cmp,
|
|
2827
|
-
coerce,
|
|
2827
|
+
coerce: coerce2,
|
|
2828
2828
|
Comparator,
|
|
2829
2829
|
Range,
|
|
2830
2830
|
satisfies,
|
|
@@ -2855,13 +2855,13 @@ var require_semver2 = __commonJS({
|
|
|
2855
2855
|
var import_ufuzzy = __toESM(require_uFuzzy());
|
|
2856
2856
|
import { vitePlugin as apimockPlugin } from "@forsakringskassan/apimock-express";
|
|
2857
2857
|
|
|
2858
|
-
// node_modules/@vitejs/plugin-vue/dist/index.
|
|
2858
|
+
// node_modules/@vitejs/plugin-vue/dist/index.mjs
|
|
2859
2859
|
import { createRequire } from "node:module";
|
|
2860
2860
|
import fs from "node:fs";
|
|
2861
2861
|
import { createFilter, formatPostcssSourceMap, isCSSRequest, normalizePath, transformWithEsbuild } from "vite";
|
|
2862
2862
|
import { computed, shallowRef } from "vue";
|
|
2863
2863
|
|
|
2864
|
-
// node_modules/@rolldown/pluginutils/dist/
|
|
2864
|
+
// node_modules/@rolldown/pluginutils/dist/simple-filters.js
|
|
2865
2865
|
function exactRegex(str, flags) {
|
|
2866
2866
|
return new RegExp(`^${escapeRegex(str)}$`, flags);
|
|
2867
2867
|
}
|
|
@@ -2870,45 +2870,35 @@ function escapeRegex(str) {
|
|
|
2870
2870
|
return str.replace(escapeRegexRE, "\\$&");
|
|
2871
2871
|
}
|
|
2872
2872
|
function makeIdFiltersToMatchWithQuery(input) {
|
|
2873
|
-
if (!Array.isArray(input))
|
|
2873
|
+
if (!Array.isArray(input)) {
|
|
2874
|
+
return makeIdFilterToMatchWithQuery(
|
|
2875
|
+
// Array.isArray cannot narrow the type
|
|
2876
|
+
// https://github.com/microsoft/TypeScript/issues/17002
|
|
2877
|
+
input
|
|
2878
|
+
);
|
|
2879
|
+
}
|
|
2874
2880
|
return input.map((i) => makeIdFilterToMatchWithQuery(i));
|
|
2875
2881
|
}
|
|
2876
2882
|
function makeIdFilterToMatchWithQuery(input) {
|
|
2877
|
-
if (typeof input === "string")
|
|
2883
|
+
if (typeof input === "string") {
|
|
2884
|
+
return `${input}{?*,}`;
|
|
2885
|
+
}
|
|
2878
2886
|
return makeRegexIdFilterToMatchWithQuery(input);
|
|
2879
2887
|
}
|
|
2880
2888
|
function makeRegexIdFilterToMatchWithQuery(input) {
|
|
2881
|
-
return new RegExp(
|
|
2889
|
+
return new RegExp(
|
|
2890
|
+
// replace `$` with `(?:\?.*)?$` (ignore `\$`)
|
|
2891
|
+
input.source.replace(/(?<!\\)\$/g, "(?:\\?.*)?$"),
|
|
2892
|
+
input.flags
|
|
2893
|
+
);
|
|
2882
2894
|
}
|
|
2883
2895
|
|
|
2884
|
-
// node_modules/@vitejs/plugin-vue/dist/index.
|
|
2896
|
+
// node_modules/@vitejs/plugin-vue/dist/index.mjs
|
|
2885
2897
|
import path from "node:path";
|
|
2886
2898
|
import crypto from "node:crypto";
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
var
|
|
2890
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
2891
|
-
var __getProtoOf2 = Object.getPrototypeOf;
|
|
2892
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
2893
|
-
var __commonJS2 = (cb, mod) => function() {
|
|
2894
|
-
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
2895
|
-
};
|
|
2896
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
2897
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames2(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
2898
|
-
key = keys[i];
|
|
2899
|
-
if (!__hasOwnProp2.call(to, key) && key !== except) __defProp2(to, key, {
|
|
2900
|
-
get: ((k) => from[k]).bind(null, key),
|
|
2901
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2902
|
-
});
|
|
2903
|
-
}
|
|
2904
|
-
return to;
|
|
2905
|
-
};
|
|
2906
|
-
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
2907
|
-
value: mod,
|
|
2908
|
-
enumerable: true
|
|
2909
|
-
}) : target, mod));
|
|
2910
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
2911
|
-
var version = "6.0.1";
|
|
2899
|
+
import { isatty } from "node:tty";
|
|
2900
|
+
import { formatWithOptions, inspect } from "node:util";
|
|
2901
|
+
var version = "6.0.3";
|
|
2912
2902
|
function resolveCompiler(root) {
|
|
2913
2903
|
const compiler = tryResolveCompiler(root) || tryResolveCompiler();
|
|
2914
2904
|
if (!compiler) throw new Error("Failed to resolve vue/compiler-sfc.\n@vitejs/plugin-vue requires vue (>=3.2.25) to be present in the dependency tree.");
|
|
@@ -3006,8 +2996,7 @@ function getHash(text) {
|
|
|
3006
2996
|
return crypto.hash("sha256", text, "hex").substring(0, 8);
|
|
3007
2997
|
}
|
|
3008
2998
|
function slash(path$1) {
|
|
3009
|
-
|
|
3010
|
-
if (isExtendedLengthPath) return path$1;
|
|
2999
|
+
if (path$1.startsWith("\\\\?\\")) return path$1;
|
|
3011
3000
|
return path$1.replace(/\\/g, "/");
|
|
3012
3001
|
}
|
|
3013
3002
|
function createRollupError(id, error) {
|
|
@@ -3065,7 +3054,7 @@ function resolveTemplateCompilerOptions(descriptor, options, filename, ssr) {
|
|
|
3065
3054
|
const block = descriptor.template;
|
|
3066
3055
|
if (!block) return;
|
|
3067
3056
|
const resolvedScript = getResolvedScript(descriptor, ssr);
|
|
3068
|
-
const hasScoped = descriptor.styles.some((s
|
|
3057
|
+
const hasScoped = descriptor.styles.some((s) => s.scoped);
|
|
3069
3058
|
const { id, cssVars } = descriptor;
|
|
3070
3059
|
let transformAssetUrls = options.template?.transformAssetUrls;
|
|
3071
3060
|
let assetUrlOptions;
|
|
@@ -3189,7 +3178,7 @@ var semicolon = ";".charCodeAt(0);
|
|
|
3189
3178
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
3190
3179
|
var intToChar = new Uint8Array(64);
|
|
3191
3180
|
var charToInt = new Uint8Array(128);
|
|
3192
|
-
for (let i = 0; i <
|
|
3181
|
+
for (let i = 0; i < chars.length; i++) {
|
|
3193
3182
|
const c = chars.charCodeAt(i);
|
|
3194
3183
|
intToChar[i] = c;
|
|
3195
3184
|
charToInt[c] = i;
|
|
@@ -3199,8 +3188,7 @@ function decodeInteger(reader, relative) {
|
|
|
3199
3188
|
let shift = 0;
|
|
3200
3189
|
let integer = 0;
|
|
3201
3190
|
do {
|
|
3202
|
-
|
|
3203
|
-
integer = charToInt[c];
|
|
3191
|
+
integer = charToInt[reader.next()];
|
|
3204
3192
|
value |= (integer & 31) << shift;
|
|
3205
3193
|
shift += 5;
|
|
3206
3194
|
} while (integer & 32);
|
|
@@ -3226,8 +3214,7 @@ function hasMoreVlq(reader, max) {
|
|
|
3226
3214
|
}
|
|
3227
3215
|
var bufLength = 1024 * 16;
|
|
3228
3216
|
var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
|
|
3229
|
-
|
|
3230
|
-
return out.toString();
|
|
3217
|
+
return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString();
|
|
3231
3218
|
} } : { decode(buf) {
|
|
3232
3219
|
let out = "";
|
|
3233
3220
|
for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
|
|
@@ -3532,18 +3519,18 @@ function memoizedState() {
|
|
|
3532
3519
|
lastIndex: -1
|
|
3533
3520
|
};
|
|
3534
3521
|
}
|
|
3535
|
-
function parse
|
|
3522
|
+
function parse(map) {
|
|
3536
3523
|
return typeof map === "string" ? JSON.parse(map) : map;
|
|
3537
3524
|
}
|
|
3538
3525
|
var TraceMap = class {
|
|
3539
3526
|
constructor(map, mapUrl) {
|
|
3540
3527
|
const isString = typeof map === "string";
|
|
3541
3528
|
if (!isString && map._decodedMemo) return map;
|
|
3542
|
-
const parsed = parse
|
|
3543
|
-
const { version: version$1, file, names, sourceRoot, sources, sourcesContent } = parsed;
|
|
3529
|
+
const parsed = parse(map);
|
|
3530
|
+
const { version: version$1, file, names: names$1, sourceRoot, sources, sourcesContent } = parsed;
|
|
3544
3531
|
this.version = version$1;
|
|
3545
3532
|
this.file = file;
|
|
3546
|
-
this.names = names || [];
|
|
3533
|
+
this.names = names$1 || [];
|
|
3547
3534
|
this.sourceRoot = sourceRoot;
|
|
3548
3535
|
this.sources = sources;
|
|
3549
3536
|
this.sourcesContent = sourcesContent;
|
|
@@ -3573,7 +3560,7 @@ function decodedMappings(map) {
|
|
|
3573
3560
|
}
|
|
3574
3561
|
function eachMapping(map, cb) {
|
|
3575
3562
|
const decoded = decodedMappings(map);
|
|
3576
|
-
const { names, resolvedSources } = map;
|
|
3563
|
+
const { names: names$1, resolvedSources } = map;
|
|
3577
3564
|
for (let i = 0; i < decoded.length; i++) {
|
|
3578
3565
|
const line = decoded[i];
|
|
3579
3566
|
for (let j = 0; j < line.length; j++) {
|
|
@@ -3589,7 +3576,7 @@ function eachMapping(map, cb) {
|
|
|
3589
3576
|
originalLine = seg[2] + 1;
|
|
3590
3577
|
originalColumn = seg[3];
|
|
3591
3578
|
}
|
|
3592
|
-
if (seg.length === 5) name = names[seg[4]];
|
|
3579
|
+
if (seg.length === 5) name = names$1[seg[4]];
|
|
3593
3580
|
cb({
|
|
3594
3581
|
generatedLine,
|
|
3595
3582
|
generatedColumn,
|
|
@@ -3617,8 +3604,7 @@ function put(setarr, key) {
|
|
|
3617
3604
|
const index = get(setarr, key);
|
|
3618
3605
|
if (index !== void 0) return index;
|
|
3619
3606
|
const { array, _indexes: indexes } = cast(setarr);
|
|
3620
|
-
|
|
3621
|
-
return indexes[key] = length - 1;
|
|
3607
|
+
return indexes[key] = array.push(key) - 1;
|
|
3622
3608
|
}
|
|
3623
3609
|
var COLUMN = 0;
|
|
3624
3610
|
var SOURCES_INDEX = 1;
|
|
@@ -3644,12 +3630,12 @@ function addMapping(map, mapping2) {
|
|
|
3644
3630
|
return addMappingInternal(false, map, mapping2);
|
|
3645
3631
|
}
|
|
3646
3632
|
function toDecodedMap(map) {
|
|
3647
|
-
const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, _ignoreList: ignoreList$1 } = cast2(map);
|
|
3633
|
+
const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names$1, _ignoreList: ignoreList$1 } = cast2(map);
|
|
3648
3634
|
removeEmptyFinalLines(mappings);
|
|
3649
3635
|
return {
|
|
3650
3636
|
version: 3,
|
|
3651
3637
|
file: map.file || void 0,
|
|
3652
|
-
names: names.array,
|
|
3638
|
+
names: names$1.array,
|
|
3653
3639
|
sourceRoot: map.sourceRoot || void 0,
|
|
3654
3640
|
sources: sources.array,
|
|
3655
3641
|
sourcesContent,
|
|
@@ -3675,7 +3661,7 @@ function fromMap(input) {
|
|
|
3675
3661
|
return gen;
|
|
3676
3662
|
}
|
|
3677
3663
|
function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
|
|
3678
|
-
const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names } = cast2(map);
|
|
3664
|
+
const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names$1 } = cast2(map);
|
|
3679
3665
|
const line = getIndex(mappings, genLine);
|
|
3680
3666
|
const index = getColumnIndex(line, genColumn);
|
|
3681
3667
|
if (!source) {
|
|
@@ -3685,7 +3671,7 @@ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLin
|
|
|
3685
3671
|
assert(sourceLine);
|
|
3686
3672
|
assert(sourceColumn);
|
|
3687
3673
|
const sourcesIndex = put(sources, source);
|
|
3688
|
-
const namesIndex = name ? put(names, name) : NO_NAME;
|
|
3674
|
+
const namesIndex = name ? put(names$1, name) : NO_NAME;
|
|
3689
3675
|
if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content != null ? content : null;
|
|
3690
3676
|
if (skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)) return;
|
|
3691
3677
|
return insert(line, index, name ? [
|
|
@@ -3709,10 +3695,7 @@ function getIndex(arr, index) {
|
|
|
3709
3695
|
}
|
|
3710
3696
|
function getColumnIndex(line, genColumn) {
|
|
3711
3697
|
let index = line.length;
|
|
3712
|
-
for (let i = index - 1; i >= 0; index = i--)
|
|
3713
|
-
const current = line[i];
|
|
3714
|
-
if (genColumn >= current[COLUMN]) break;
|
|
3715
|
-
}
|
|
3698
|
+
for (let i = index - 1; i >= 0; index = i--) if (genColumn >= line[i][COLUMN]) break;
|
|
3716
3699
|
return index;
|
|
3717
3700
|
}
|
|
3718
3701
|
function insert(array, index, value) {
|
|
@@ -3730,8 +3713,7 @@ function putAll(setarr, array) {
|
|
|
3730
3713
|
}
|
|
3731
3714
|
function skipSourceless(line, index) {
|
|
3732
3715
|
if (index === 0) return true;
|
|
3733
|
-
|
|
3734
|
-
return prev.length === 1;
|
|
3716
|
+
return line[index - 1].length === 1;
|
|
3735
3717
|
}
|
|
3736
3718
|
function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex) {
|
|
3737
3719
|
if (index === 0) return false;
|
|
@@ -3745,402 +3727,272 @@ function addMappingInternal(skipable, map, mapping2) {
|
|
|
3745
3727
|
assert(original);
|
|
3746
3728
|
return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
|
|
3747
3729
|
}
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
}
|
|
3811
|
-
}
|
|
3812
|
-
function fmtShort(ms) {
|
|
3813
|
-
var msAbs = Math.abs(ms);
|
|
3814
|
-
if (msAbs >= d) return Math.round(ms / d) + "d";
|
|
3815
|
-
if (msAbs >= h) return Math.round(ms / h) + "h";
|
|
3816
|
-
if (msAbs >= m) return Math.round(ms / m) + "m";
|
|
3817
|
-
if (msAbs >= s) return Math.round(ms / s) + "s";
|
|
3818
|
-
return ms + "ms";
|
|
3819
|
-
}
|
|
3820
|
-
function fmtLong(ms) {
|
|
3821
|
-
var msAbs = Math.abs(ms);
|
|
3822
|
-
if (msAbs >= d) return plural(ms, msAbs, d, "day");
|
|
3823
|
-
if (msAbs >= h) return plural(ms, msAbs, h, "hour");
|
|
3824
|
-
if (msAbs >= m) return plural(ms, msAbs, m, "minute");
|
|
3825
|
-
if (msAbs >= s) return plural(ms, msAbs, s, "second");
|
|
3826
|
-
return ms + " ms";
|
|
3827
|
-
}
|
|
3828
|
-
function plural(ms, msAbs, n, name) {
|
|
3829
|
-
var isPlural = msAbs >= n * 1.5;
|
|
3830
|
-
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
3831
|
-
}
|
|
3832
|
-
} });
|
|
3833
|
-
var require_common = __commonJS2({ "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js"(exports, module) {
|
|
3834
|
-
function setup(env) {
|
|
3835
|
-
createDebug.debug = createDebug;
|
|
3836
|
-
createDebug.default = createDebug;
|
|
3837
|
-
createDebug.coerce = coerce;
|
|
3838
|
-
createDebug.disable = disable;
|
|
3839
|
-
createDebug.enable = enable;
|
|
3840
|
-
createDebug.enabled = enabled;
|
|
3841
|
-
createDebug.humanize = require_ms();
|
|
3842
|
-
createDebug.destroy = destroy;
|
|
3843
|
-
Object.keys(env).forEach((key) => {
|
|
3844
|
-
createDebug[key] = env[key];
|
|
3845
|
-
});
|
|
3846
|
-
createDebug.names = [];
|
|
3847
|
-
createDebug.skips = [];
|
|
3848
|
-
createDebug.formatters = {};
|
|
3849
|
-
function selectColor(namespace) {
|
|
3850
|
-
let hash = 0;
|
|
3851
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
3852
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
3853
|
-
hash |= 0;
|
|
3854
|
-
}
|
|
3855
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
3856
|
-
}
|
|
3857
|
-
createDebug.selectColor = selectColor;
|
|
3858
|
-
function createDebug(namespace) {
|
|
3859
|
-
let prevTime;
|
|
3860
|
-
let enableOverride = null;
|
|
3861
|
-
let namespacesCache;
|
|
3862
|
-
let enabledCache;
|
|
3863
|
-
function debug$1(...args) {
|
|
3864
|
-
if (!debug$1.enabled) return;
|
|
3865
|
-
const self = debug$1;
|
|
3866
|
-
const curr = Number(/* @__PURE__ */ new Date());
|
|
3867
|
-
const ms = curr - (prevTime || curr);
|
|
3868
|
-
self.diff = ms;
|
|
3869
|
-
self.prev = prevTime;
|
|
3870
|
-
self.curr = curr;
|
|
3871
|
-
prevTime = curr;
|
|
3872
|
-
args[0] = createDebug.coerce(args[0]);
|
|
3873
|
-
if (typeof args[0] !== "string") args.unshift("%O");
|
|
3874
|
-
let index = 0;
|
|
3875
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format) => {
|
|
3876
|
-
if (match2 === "%%") return "%";
|
|
3877
|
-
index++;
|
|
3878
|
-
const formatter = createDebug.formatters[format];
|
|
3879
|
-
if (typeof formatter === "function") {
|
|
3880
|
-
const val = args[index];
|
|
3881
|
-
match2 = formatter.call(self, val);
|
|
3882
|
-
args.splice(index, 1);
|
|
3883
|
-
index--;
|
|
3884
|
-
}
|
|
3885
|
-
return match2;
|
|
3886
|
-
});
|
|
3887
|
-
createDebug.formatArgs.call(self, args);
|
|
3888
|
-
const logFn = self.log || createDebug.log;
|
|
3889
|
-
logFn.apply(self, args);
|
|
3890
|
-
}
|
|
3891
|
-
debug$1.namespace = namespace;
|
|
3892
|
-
debug$1.useColors = createDebug.useColors();
|
|
3893
|
-
debug$1.color = createDebug.selectColor(namespace);
|
|
3894
|
-
debug$1.extend = extend;
|
|
3895
|
-
debug$1.destroy = createDebug.destroy;
|
|
3896
|
-
Object.defineProperty(debug$1, "enabled", {
|
|
3897
|
-
enumerable: true,
|
|
3898
|
-
configurable: false,
|
|
3899
|
-
get: () => {
|
|
3900
|
-
if (enableOverride !== null) return enableOverride;
|
|
3901
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
3902
|
-
namespacesCache = createDebug.namespaces;
|
|
3903
|
-
enabledCache = createDebug.enabled(namespace);
|
|
3904
|
-
}
|
|
3905
|
-
return enabledCache;
|
|
3906
|
-
},
|
|
3907
|
-
set: (v) => {
|
|
3908
|
-
enableOverride = v;
|
|
3909
|
-
}
|
|
3910
|
-
});
|
|
3911
|
-
if (typeof createDebug.init === "function") createDebug.init(debug$1);
|
|
3912
|
-
return debug$1;
|
|
3913
|
-
}
|
|
3914
|
-
function extend(namespace, delimiter) {
|
|
3915
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
3916
|
-
newDebug.log = this.log;
|
|
3917
|
-
return newDebug;
|
|
3918
|
-
}
|
|
3919
|
-
function enable(namespaces) {
|
|
3920
|
-
createDebug.save(namespaces);
|
|
3921
|
-
createDebug.namespaces = namespaces;
|
|
3922
|
-
createDebug.names = [];
|
|
3923
|
-
createDebug.skips = [];
|
|
3924
|
-
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
3925
|
-
for (const ns of split) if (ns[0] === "-") createDebug.skips.push(ns.slice(1));
|
|
3926
|
-
else createDebug.names.push(ns);
|
|
3927
|
-
}
|
|
3928
|
-
function matchesTemplate(search, template) {
|
|
3929
|
-
let searchIndex = 0;
|
|
3930
|
-
let templateIndex = 0;
|
|
3931
|
-
let starIndex = -1;
|
|
3932
|
-
let matchIndex = 0;
|
|
3933
|
-
while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
|
|
3934
|
-
starIndex = templateIndex;
|
|
3935
|
-
matchIndex = searchIndex;
|
|
3936
|
-
templateIndex++;
|
|
3937
|
-
} else {
|
|
3938
|
-
searchIndex++;
|
|
3939
|
-
templateIndex++;
|
|
3940
|
-
}
|
|
3941
|
-
else if (starIndex !== -1) {
|
|
3942
|
-
templateIndex = starIndex + 1;
|
|
3943
|
-
matchIndex++;
|
|
3944
|
-
searchIndex = matchIndex;
|
|
3945
|
-
} else return false;
|
|
3946
|
-
while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
|
|
3947
|
-
return templateIndex === template.length;
|
|
3948
|
-
}
|
|
3949
|
-
function disable() {
|
|
3950
|
-
const namespaces = [...createDebug.names, ...createDebug.skips.map((namespace) => "-" + namespace)].join(",");
|
|
3951
|
-
createDebug.enable("");
|
|
3952
|
-
return namespaces;
|
|
3953
|
-
}
|
|
3954
|
-
function enabled(name) {
|
|
3955
|
-
for (const skip of createDebug.skips) if (matchesTemplate(name, skip)) return false;
|
|
3956
|
-
for (const ns of createDebug.names) if (matchesTemplate(name, ns)) return true;
|
|
3957
|
-
return false;
|
|
3958
|
-
}
|
|
3959
|
-
function coerce(val) {
|
|
3960
|
-
if (val instanceof Error) return val.stack || val.message;
|
|
3961
|
-
return val;
|
|
3962
|
-
}
|
|
3963
|
-
function destroy() {
|
|
3964
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
3965
|
-
}
|
|
3966
|
-
createDebug.enable(createDebug.load());
|
|
3967
|
-
return createDebug;
|
|
3968
|
-
}
|
|
3969
|
-
module.exports = setup;
|
|
3970
|
-
} });
|
|
3971
|
-
var require_node = __commonJS2({ "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js"(exports, module) {
|
|
3972
|
-
const tty = __require("tty");
|
|
3973
|
-
const util = __require("util");
|
|
3974
|
-
exports.init = init;
|
|
3975
|
-
exports.log = log;
|
|
3976
|
-
exports.formatArgs = formatArgs;
|
|
3977
|
-
exports.save = save;
|
|
3978
|
-
exports.load = load;
|
|
3979
|
-
exports.useColors = useColors;
|
|
3980
|
-
exports.destroy = util.deprecate(() => {
|
|
3981
|
-
}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
3982
|
-
exports.colors = [
|
|
3983
|
-
6,
|
|
3984
|
-
2,
|
|
3985
|
-
3,
|
|
3986
|
-
4,
|
|
3987
|
-
5,
|
|
3988
|
-
1
|
|
3989
|
-
];
|
|
3990
|
-
try {
|
|
3991
|
-
const supportsColor = __require("supports-color");
|
|
3992
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports.colors = [
|
|
3993
|
-
20,
|
|
3994
|
-
21,
|
|
3995
|
-
26,
|
|
3996
|
-
27,
|
|
3997
|
-
32,
|
|
3998
|
-
33,
|
|
3999
|
-
38,
|
|
4000
|
-
39,
|
|
4001
|
-
40,
|
|
4002
|
-
41,
|
|
4003
|
-
42,
|
|
4004
|
-
43,
|
|
4005
|
-
44,
|
|
4006
|
-
45,
|
|
4007
|
-
56,
|
|
4008
|
-
57,
|
|
4009
|
-
62,
|
|
4010
|
-
63,
|
|
4011
|
-
68,
|
|
4012
|
-
69,
|
|
4013
|
-
74,
|
|
4014
|
-
75,
|
|
4015
|
-
76,
|
|
4016
|
-
77,
|
|
4017
|
-
78,
|
|
4018
|
-
79,
|
|
4019
|
-
80,
|
|
4020
|
-
81,
|
|
4021
|
-
92,
|
|
4022
|
-
93,
|
|
4023
|
-
98,
|
|
4024
|
-
99,
|
|
4025
|
-
112,
|
|
4026
|
-
113,
|
|
4027
|
-
128,
|
|
4028
|
-
129,
|
|
4029
|
-
134,
|
|
4030
|
-
135,
|
|
4031
|
-
148,
|
|
4032
|
-
149,
|
|
4033
|
-
160,
|
|
4034
|
-
161,
|
|
4035
|
-
162,
|
|
4036
|
-
163,
|
|
4037
|
-
164,
|
|
4038
|
-
165,
|
|
4039
|
-
166,
|
|
4040
|
-
167,
|
|
4041
|
-
168,
|
|
4042
|
-
169,
|
|
4043
|
-
170,
|
|
4044
|
-
171,
|
|
4045
|
-
172,
|
|
4046
|
-
173,
|
|
4047
|
-
178,
|
|
4048
|
-
179,
|
|
4049
|
-
184,
|
|
4050
|
-
185,
|
|
4051
|
-
196,
|
|
4052
|
-
197,
|
|
4053
|
-
198,
|
|
4054
|
-
199,
|
|
4055
|
-
200,
|
|
4056
|
-
201,
|
|
4057
|
-
202,
|
|
4058
|
-
203,
|
|
4059
|
-
204,
|
|
4060
|
-
205,
|
|
4061
|
-
206,
|
|
4062
|
-
207,
|
|
4063
|
-
208,
|
|
4064
|
-
209,
|
|
4065
|
-
214,
|
|
4066
|
-
215,
|
|
4067
|
-
220,
|
|
4068
|
-
221
|
|
4069
|
-
];
|
|
4070
|
-
} catch (error) {
|
|
4071
|
-
}
|
|
4072
|
-
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
4073
|
-
return /^debug_/i.test(key);
|
|
4074
|
-
}).reduce((obj, key) => {
|
|
4075
|
-
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
4076
|
-
return k.toUpperCase();
|
|
3730
|
+
function coerce(value) {
|
|
3731
|
+
if (value instanceof Error) return value.stack || value.message;
|
|
3732
|
+
return value;
|
|
3733
|
+
}
|
|
3734
|
+
function selectColor(colors$1, namespace) {
|
|
3735
|
+
let hash = 0;
|
|
3736
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
3737
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
3738
|
+
hash |= 0;
|
|
3739
|
+
}
|
|
3740
|
+
return colors$1[Math.abs(hash) % colors$1.length];
|
|
3741
|
+
}
|
|
3742
|
+
function matchesTemplate(search, template) {
|
|
3743
|
+
let searchIndex = 0;
|
|
3744
|
+
let templateIndex = 0;
|
|
3745
|
+
let starIndex = -1;
|
|
3746
|
+
let matchIndex = 0;
|
|
3747
|
+
while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
|
|
3748
|
+
starIndex = templateIndex;
|
|
3749
|
+
matchIndex = searchIndex;
|
|
3750
|
+
templateIndex++;
|
|
3751
|
+
} else {
|
|
3752
|
+
searchIndex++;
|
|
3753
|
+
templateIndex++;
|
|
3754
|
+
}
|
|
3755
|
+
else if (starIndex !== -1) {
|
|
3756
|
+
templateIndex = starIndex + 1;
|
|
3757
|
+
matchIndex++;
|
|
3758
|
+
searchIndex = matchIndex;
|
|
3759
|
+
} else return false;
|
|
3760
|
+
while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
|
|
3761
|
+
return templateIndex === template.length;
|
|
3762
|
+
}
|
|
3763
|
+
function humanize(value) {
|
|
3764
|
+
if (value >= 1e3) return `${(value / 1e3).toFixed(1)}s`;
|
|
3765
|
+
return `${value}ms`;
|
|
3766
|
+
}
|
|
3767
|
+
var globalNamespaces = "";
|
|
3768
|
+
function createDebug$1(namespace, options) {
|
|
3769
|
+
let prevTime;
|
|
3770
|
+
let enableOverride;
|
|
3771
|
+
let namespacesCache;
|
|
3772
|
+
let enabledCache;
|
|
3773
|
+
const debug$1 = (...args) => {
|
|
3774
|
+
if (!debug$1.enabled) return;
|
|
3775
|
+
const curr = Date.now();
|
|
3776
|
+
const diff = curr - (prevTime || curr);
|
|
3777
|
+
prevTime = curr;
|
|
3778
|
+
args[0] = coerce(args[0]);
|
|
3779
|
+
if (typeof args[0] !== "string") args.unshift("%O");
|
|
3780
|
+
let index = 0;
|
|
3781
|
+
args[0] = args[0].replace(/%([a-z%])/gi, (match2, format) => {
|
|
3782
|
+
if (match2 === "%%") return "%";
|
|
3783
|
+
index++;
|
|
3784
|
+
const formatter = options.formatters[format];
|
|
3785
|
+
if (typeof formatter === "function") {
|
|
3786
|
+
const value = args[index];
|
|
3787
|
+
match2 = formatter.call(debug$1, value);
|
|
3788
|
+
args.splice(index, 1);
|
|
3789
|
+
index--;
|
|
3790
|
+
}
|
|
3791
|
+
return match2;
|
|
4077
3792
|
});
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
|
|
4081
|
-
else if (val === "null") val = null;
|
|
4082
|
-
else val = Number(val);
|
|
4083
|
-
obj[prop] = val;
|
|
4084
|
-
return obj;
|
|
4085
|
-
}, {});
|
|
4086
|
-
function useColors() {
|
|
4087
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
4088
|
-
}
|
|
4089
|
-
function formatArgs(args) {
|
|
4090
|
-
const { namespace: name, useColors: useColors$1 } = this;
|
|
4091
|
-
if (useColors$1) {
|
|
4092
|
-
const c = this.color;
|
|
4093
|
-
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
4094
|
-
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
4095
|
-
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
4096
|
-
args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
|
|
4097
|
-
} else args[0] = getDate() + name + " " + args[0];
|
|
4098
|
-
}
|
|
4099
|
-
function getDate() {
|
|
4100
|
-
if (exports.inspectOpts.hideDate) return "";
|
|
4101
|
-
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
4102
|
-
}
|
|
4103
|
-
function log(...args) {
|
|
4104
|
-
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
4105
|
-
}
|
|
4106
|
-
function save(namespaces) {
|
|
4107
|
-
if (namespaces) process.env.DEBUG = namespaces;
|
|
4108
|
-
else delete process.env.DEBUG;
|
|
4109
|
-
}
|
|
4110
|
-
function load() {
|
|
4111
|
-
return process.env.DEBUG;
|
|
4112
|
-
}
|
|
4113
|
-
function init(debug$1) {
|
|
4114
|
-
debug$1.inspectOpts = {};
|
|
4115
|
-
const keys = Object.keys(exports.inspectOpts);
|
|
4116
|
-
for (let i = 0; i < keys.length; i++) debug$1.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
4117
|
-
}
|
|
4118
|
-
module.exports = require_common()(exports);
|
|
4119
|
-
const { formatters } = module.exports;
|
|
4120
|
-
formatters.o = function(v) {
|
|
4121
|
-
this.inspectOpts.colors = this.useColors;
|
|
4122
|
-
return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
3793
|
+
options.formatArgs.call(debug$1, diff, args);
|
|
3794
|
+
debug$1.log(...args);
|
|
4123
3795
|
};
|
|
4124
|
-
|
|
4125
|
-
this.
|
|
4126
|
-
|
|
3796
|
+
debug$1.extend = function(namespace$1, delimiter = ":") {
|
|
3797
|
+
return createDebug$1(this.namespace + delimiter + namespace$1, {
|
|
3798
|
+
useColors: this.useColors,
|
|
3799
|
+
color: this.color,
|
|
3800
|
+
formatArgs: this.formatArgs,
|
|
3801
|
+
formatters: this.formatters,
|
|
3802
|
+
inspectOpts: this.inspectOpts,
|
|
3803
|
+
log: this.log,
|
|
3804
|
+
humanize: this.humanize
|
|
3805
|
+
});
|
|
4127
3806
|
};
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
3807
|
+
Object.assign(debug$1, options);
|
|
3808
|
+
debug$1.namespace = namespace;
|
|
3809
|
+
Object.defineProperty(debug$1, "enabled", {
|
|
3810
|
+
enumerable: true,
|
|
3811
|
+
configurable: false,
|
|
3812
|
+
get: () => {
|
|
3813
|
+
if (enableOverride != null) return enableOverride;
|
|
3814
|
+
if (namespacesCache !== globalNamespaces) {
|
|
3815
|
+
namespacesCache = globalNamespaces;
|
|
3816
|
+
enabledCache = enabled(namespace);
|
|
3817
|
+
}
|
|
3818
|
+
return enabledCache;
|
|
3819
|
+
},
|
|
3820
|
+
set: (v) => {
|
|
3821
|
+
enableOverride = v;
|
|
3822
|
+
}
|
|
3823
|
+
});
|
|
3824
|
+
return debug$1;
|
|
3825
|
+
}
|
|
3826
|
+
var names = [];
|
|
3827
|
+
var skips = [];
|
|
3828
|
+
function enable(namespaces$1) {
|
|
3829
|
+
globalNamespaces = namespaces$1;
|
|
3830
|
+
names = [];
|
|
3831
|
+
skips = [];
|
|
3832
|
+
const split = globalNamespaces.trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
3833
|
+
for (const ns of split) if (ns[0] === "-") skips.push(ns.slice(1));
|
|
3834
|
+
else names.push(ns);
|
|
3835
|
+
}
|
|
3836
|
+
function enabled(name) {
|
|
3837
|
+
for (const skip of skips) if (matchesTemplate(name, skip)) return false;
|
|
3838
|
+
for (const ns of names) if (matchesTemplate(name, ns)) return true;
|
|
3839
|
+
return false;
|
|
3840
|
+
}
|
|
3841
|
+
var colors = process.stderr.getColorDepth && process.stderr.getColorDepth() > 2 ? [
|
|
3842
|
+
20,
|
|
3843
|
+
21,
|
|
3844
|
+
26,
|
|
3845
|
+
27,
|
|
3846
|
+
32,
|
|
3847
|
+
33,
|
|
3848
|
+
38,
|
|
3849
|
+
39,
|
|
3850
|
+
40,
|
|
3851
|
+
41,
|
|
3852
|
+
42,
|
|
3853
|
+
43,
|
|
3854
|
+
44,
|
|
3855
|
+
45,
|
|
3856
|
+
56,
|
|
3857
|
+
57,
|
|
3858
|
+
62,
|
|
3859
|
+
63,
|
|
3860
|
+
68,
|
|
3861
|
+
69,
|
|
3862
|
+
74,
|
|
3863
|
+
75,
|
|
3864
|
+
76,
|
|
3865
|
+
77,
|
|
3866
|
+
78,
|
|
3867
|
+
79,
|
|
3868
|
+
80,
|
|
3869
|
+
81,
|
|
3870
|
+
92,
|
|
3871
|
+
93,
|
|
3872
|
+
98,
|
|
3873
|
+
99,
|
|
3874
|
+
112,
|
|
3875
|
+
113,
|
|
3876
|
+
128,
|
|
3877
|
+
129,
|
|
3878
|
+
134,
|
|
3879
|
+
135,
|
|
3880
|
+
148,
|
|
3881
|
+
149,
|
|
3882
|
+
160,
|
|
3883
|
+
161,
|
|
3884
|
+
162,
|
|
3885
|
+
163,
|
|
3886
|
+
164,
|
|
3887
|
+
165,
|
|
3888
|
+
166,
|
|
3889
|
+
167,
|
|
3890
|
+
168,
|
|
3891
|
+
169,
|
|
3892
|
+
170,
|
|
3893
|
+
171,
|
|
3894
|
+
172,
|
|
3895
|
+
173,
|
|
3896
|
+
178,
|
|
3897
|
+
179,
|
|
3898
|
+
184,
|
|
3899
|
+
185,
|
|
3900
|
+
196,
|
|
3901
|
+
197,
|
|
3902
|
+
198,
|
|
3903
|
+
199,
|
|
3904
|
+
200,
|
|
3905
|
+
201,
|
|
3906
|
+
202,
|
|
3907
|
+
203,
|
|
3908
|
+
204,
|
|
3909
|
+
205,
|
|
3910
|
+
206,
|
|
3911
|
+
207,
|
|
3912
|
+
208,
|
|
3913
|
+
209,
|
|
3914
|
+
214,
|
|
3915
|
+
215,
|
|
3916
|
+
220,
|
|
3917
|
+
221
|
|
3918
|
+
] : [
|
|
3919
|
+
6,
|
|
3920
|
+
2,
|
|
3921
|
+
3,
|
|
3922
|
+
4,
|
|
3923
|
+
5,
|
|
3924
|
+
1
|
|
3925
|
+
];
|
|
3926
|
+
var inspectOpts = Object.keys(process.env).filter((key) => /^debug_/i.test(key)).reduce((obj, key) => {
|
|
3927
|
+
const prop = key.slice(6).toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase());
|
|
3928
|
+
let value = process.env[key];
|
|
3929
|
+
const lowerCase = typeof value === "string" && value.toLowerCase();
|
|
3930
|
+
if (value === "null") value = null;
|
|
3931
|
+
else if (lowerCase === "yes" || lowerCase === "on" || lowerCase === "true" || lowerCase === "enabled") value = true;
|
|
3932
|
+
else if (lowerCase === "no" || lowerCase === "off" || lowerCase === "false" || lowerCase === "disabled") value = false;
|
|
3933
|
+
else value = Number(value);
|
|
3934
|
+
obj[prop] = value;
|
|
3935
|
+
return obj;
|
|
3936
|
+
}, {});
|
|
3937
|
+
function useColors() {
|
|
3938
|
+
return "colors" in inspectOpts ? Boolean(inspectOpts.colors) : isatty(process.stderr.fd);
|
|
3939
|
+
}
|
|
3940
|
+
function getDate() {
|
|
3941
|
+
if (inspectOpts.hideDate) return "";
|
|
3942
|
+
return `${(/* @__PURE__ */ new Date()).toISOString()} `;
|
|
3943
|
+
}
|
|
3944
|
+
function formatArgs(diff, args) {
|
|
3945
|
+
const { namespace: name, useColors: useColors$1 } = this;
|
|
3946
|
+
if (useColors$1) {
|
|
3947
|
+
const c = this.color;
|
|
3948
|
+
const colorCode = `\x1B[3${c < 8 ? c : `8;5;${c}`}`;
|
|
3949
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
3950
|
+
args[0] = prefix + args[0].split("\n").join(`
|
|
3951
|
+
${prefix}`);
|
|
3952
|
+
args.push(`${colorCode}m+${this.humanize(diff)}\x1B[0m`);
|
|
3953
|
+
} else args[0] = `${getDate()}${name} ${args[0]}`;
|
|
3954
|
+
}
|
|
3955
|
+
function log(...args) {
|
|
3956
|
+
process.stderr.write(`${formatWithOptions(this.inspectOpts, ...args)}
|
|
3957
|
+
`);
|
|
3958
|
+
}
|
|
3959
|
+
var defaultOptions = {
|
|
3960
|
+
useColors: useColors(),
|
|
3961
|
+
formatArgs,
|
|
3962
|
+
formatters: {
|
|
3963
|
+
o(v) {
|
|
3964
|
+
this.inspectOpts.colors = this.useColors;
|
|
3965
|
+
return inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
3966
|
+
},
|
|
3967
|
+
O(v) {
|
|
3968
|
+
this.inspectOpts.colors = this.useColors;
|
|
3969
|
+
return inspect(v, this.inspectOpts);
|
|
3970
|
+
}
|
|
3971
|
+
},
|
|
3972
|
+
inspectOpts,
|
|
3973
|
+
log,
|
|
3974
|
+
humanize
|
|
3975
|
+
};
|
|
3976
|
+
function createDebug(namespace, options) {
|
|
3977
|
+
var _ref;
|
|
3978
|
+
const color = (_ref = options && options.color) !== null && _ref !== void 0 ? _ref : selectColor(colors, namespace);
|
|
3979
|
+
return createDebug$1(namespace, Object.assign(defaultOptions, { color }, options));
|
|
3980
|
+
}
|
|
3981
|
+
enable(process.env.DEBUG || "");
|
|
3982
|
+
var debug = createDebug("vite:hmr");
|
|
4132
3983
|
async function handleHotUpdate({ file, modules, read }, options, customElement, typeDepModules) {
|
|
4133
3984
|
const prevDescriptor = getDescriptor(file, options, false, true);
|
|
4134
3985
|
if (!prevDescriptor) return;
|
|
4135
|
-
const
|
|
4136
|
-
const { descriptor } = createDescriptor(file, content, options, true);
|
|
3986
|
+
const { descriptor } = createDescriptor(file, await read(), options, true);
|
|
4137
3987
|
let needRerender = false;
|
|
4138
|
-
const
|
|
4139
|
-
const
|
|
4140
|
-
const
|
|
3988
|
+
const nonJsModules = modules.filter((m) => m.type !== "js");
|
|
3989
|
+
const jsModules = modules.filter((m) => m.type === "js");
|
|
3990
|
+
const affectedModules = new Set(nonJsModules);
|
|
3991
|
+
const mainModule = getMainModule(jsModules);
|
|
3992
|
+
const templateModule = jsModules.find((m) => /type=template/.test(m.url));
|
|
4141
3993
|
resolveScript(descriptor, options, false, customElement);
|
|
4142
3994
|
const scriptChanged = hasScriptChanged(prevDescriptor, descriptor);
|
|
4143
|
-
if (scriptChanged) affectedModules.add(getScriptModule(
|
|
3995
|
+
if (scriptChanged) affectedModules.add(getScriptModule(jsModules) || mainModule);
|
|
4144
3996
|
if (!isEqualBlock(descriptor.template, prevDescriptor.template)) {
|
|
4145
3997
|
if (!scriptChanged) setResolvedScript(descriptor, getResolvedScript(prevDescriptor, false), false);
|
|
4146
3998
|
affectedModules.add(templateModule);
|
|
@@ -4150,7 +4002,7 @@ async function handleHotUpdate({ file, modules, read }, options, customElement,
|
|
|
4150
4002
|
const prevStyles = prevDescriptor.styles || [];
|
|
4151
4003
|
const nextStyles = descriptor.styles || [];
|
|
4152
4004
|
if (prevDescriptor.cssVars.join("") !== descriptor.cssVars.join("")) affectedModules.add(mainModule);
|
|
4153
|
-
if (prevStyles.some((s
|
|
4005
|
+
if (prevStyles.some((s) => s.scoped) !== nextStyles.some((s) => s.scoped)) {
|
|
4154
4006
|
affectedModules.add(templateModule);
|
|
4155
4007
|
affectedModules.add(mainModule);
|
|
4156
4008
|
}
|
|
@@ -4159,7 +4011,7 @@ async function handleHotUpdate({ file, modules, read }, options, customElement,
|
|
|
4159
4011
|
const next = nextStyles[i];
|
|
4160
4012
|
if (!prev || !isEqualBlock(prev, next)) {
|
|
4161
4013
|
didUpdateStyle = true;
|
|
4162
|
-
const mod =
|
|
4014
|
+
const mod = jsModules.find((m) => m.url.includes(`type=style&index=${i}`) && m.url.endsWith(`.${next.lang || "css"}`));
|
|
4163
4015
|
if (mod) {
|
|
4164
4016
|
affectedModules.add(mod);
|
|
4165
4017
|
if (mod.url.includes("&inline")) affectedModules.add(mainModule);
|
|
@@ -4174,7 +4026,7 @@ async function handleHotUpdate({ file, modules, read }, options, customElement,
|
|
|
4174
4026
|
const prev = prevCustoms[i];
|
|
4175
4027
|
const next = nextCustoms[i];
|
|
4176
4028
|
if (!prev || !isEqualBlock(prev, next)) {
|
|
4177
|
-
const mod =
|
|
4029
|
+
const mod = jsModules.find((m) => m.url.includes(`type=${prev.type}&index=${i}`));
|
|
4178
4030
|
if (mod) affectedModules.add(mod);
|
|
4179
4031
|
else affectedModules.add(mainModule);
|
|
4180
4032
|
}
|
|
@@ -4183,10 +4035,7 @@ async function handleHotUpdate({ file, modules, read }, options, customElement,
|
|
|
4183
4035
|
if (needRerender) {
|
|
4184
4036
|
updateType.push(`template`);
|
|
4185
4037
|
if (!templateModule) affectedModules.add(mainModule);
|
|
4186
|
-
else if (mainModule && !affectedModules.has(mainModule))
|
|
4187
|
-
const styleImporters = [...mainModule.importers].filter((m$1) => isCSSRequest(m$1.url));
|
|
4188
|
-
styleImporters.forEach((m$1) => affectedModules.add(m$1));
|
|
4189
|
-
}
|
|
4038
|
+
else if (mainModule && !affectedModules.has(mainModule)) [...mainModule.importers].filter((m) => isCSSRequest(m.url)).forEach((m) => affectedModules.add(m));
|
|
4190
4039
|
}
|
|
4191
4040
|
if (didUpdateStyle) updateType.push(`style`);
|
|
4192
4041
|
if (updateType.length) {
|
|
@@ -4207,7 +4056,7 @@ function isEqualBlock(a, b) {
|
|
|
4207
4056
|
return keysA.every((key) => a.attrs[key] === b.attrs[key]);
|
|
4208
4057
|
}
|
|
4209
4058
|
function isOnlyTemplateChanged(prev, next) {
|
|
4210
|
-
return !hasScriptChanged(prev, next) && prev.styles.length === next.styles.length && prev.styles.every((s
|
|
4059
|
+
return !hasScriptChanged(prev, next) && prev.styles.length === next.styles.length && prev.styles.every((s, i) => isEqualBlock(s, next.styles[i])) && prev.customBlocks.length === next.customBlocks.length && prev.customBlocks.every((s, i) => isEqualBlock(s, next.customBlocks[i]));
|
|
4211
4060
|
}
|
|
4212
4061
|
function deepEqual(obj1, obj2, excludeProps = [], deepParentsOfObj1 = []) {
|
|
4213
4062
|
if (typeof obj1 !== typeof obj2) return false;
|
|
@@ -4243,22 +4092,22 @@ function isEqualAst(prev, next) {
|
|
|
4243
4092
|
return true;
|
|
4244
4093
|
}
|
|
4245
4094
|
function hasScriptChanged(prev, next) {
|
|
4095
|
+
if (prev.vapor !== next.vapor) return true;
|
|
4246
4096
|
const prevScript = getResolvedScript(prev, false);
|
|
4247
4097
|
const nextScript = getResolvedScript(next, false);
|
|
4248
4098
|
if (!isEqualBlock(prev.script, next.script) && !isEqualAst(prevScript?.scriptAst, nextScript?.scriptAst)) return true;
|
|
4249
4099
|
if (!isEqualBlock(prev.scriptSetup, next.scriptSetup) && !isEqualAst(prevScript?.scriptSetupAst, nextScript?.scriptSetupAst)) return true;
|
|
4250
|
-
const
|
|
4251
|
-
const prevImports = prevResolvedScript?.imports;
|
|
4100
|
+
const prevImports = getResolvedScript(prev, false)?.imports;
|
|
4252
4101
|
if (prevImports) return !next.template || next.shouldForceReload(prevImports);
|
|
4253
4102
|
return false;
|
|
4254
4103
|
}
|
|
4255
|
-
function getMainModule(
|
|
4256
|
-
return
|
|
4104
|
+
function getMainModule(jsModules) {
|
|
4105
|
+
return jsModules.filter((m) => !/type=/.test(m.url) || /type=script/.test(m.url)).sort((m1, m2) => {
|
|
4257
4106
|
return m1.url.length - m2.url.length;
|
|
4258
4107
|
})[0];
|
|
4259
4108
|
}
|
|
4260
|
-
function getScriptModule(
|
|
4261
|
-
return
|
|
4109
|
+
function getScriptModule(jsModules) {
|
|
4110
|
+
return jsModules.find((m) => /type=script.*&lang\.\w+$/.test(m.url));
|
|
4262
4111
|
}
|
|
4263
4112
|
function handleTypeDepChange(affectedComponents, { modules, server: { moduleGraph } }) {
|
|
4264
4113
|
const affected = /* @__PURE__ */ new Set();
|
|
@@ -4292,7 +4141,7 @@ async function transformMain(code, filename, options, pluginContext, ssr, custom
|
|
|
4292
4141
|
return null;
|
|
4293
4142
|
}
|
|
4294
4143
|
const attachedProps = [];
|
|
4295
|
-
const hasScoped = descriptor.styles.some((s
|
|
4144
|
+
const hasScoped = descriptor.styles.some((s) => s.scoped);
|
|
4296
4145
|
const { code: scriptCode, map: scriptMap } = await genScriptCode(descriptor, options, pluginContext, ssr, customElement);
|
|
4297
4146
|
const hasTemplateImport = descriptor.template && !isUseInlineTemplate(descriptor, options);
|
|
4298
4147
|
let templateCode = "";
|
|
@@ -4323,7 +4172,7 @@ async function transformMain(code, filename, options, pluginContext, ssr, custom
|
|
|
4323
4172
|
}
|
|
4324
4173
|
let resolvedMap = void 0;
|
|
4325
4174
|
if (options.sourceMap) if (templateMap) {
|
|
4326
|
-
const
|
|
4175
|
+
const gen = fromMap(scriptMap ?? {
|
|
4327
4176
|
file: filename,
|
|
4328
4177
|
sourceRoot: "",
|
|
4329
4178
|
version: 3,
|
|
@@ -4331,21 +4180,20 @@ async function transformMain(code, filename, options, pluginContext, ssr, custom
|
|
|
4331
4180
|
sourcesContent: [],
|
|
4332
4181
|
names: [],
|
|
4333
4182
|
mappings: ""
|
|
4334
|
-
};
|
|
4335
|
-
const gen = fromMap(from);
|
|
4183
|
+
});
|
|
4336
4184
|
const tracer = new TraceMap(templateMap);
|
|
4337
4185
|
const offset = (scriptCode.match(/\r?\n/g)?.length ?? 0) + 1;
|
|
4338
|
-
eachMapping(tracer, (m
|
|
4339
|
-
if (m
|
|
4186
|
+
eachMapping(tracer, (m) => {
|
|
4187
|
+
if (m.source == null) return;
|
|
4340
4188
|
addMapping(gen, {
|
|
4341
|
-
source: m
|
|
4189
|
+
source: m.source,
|
|
4342
4190
|
original: {
|
|
4343
|
-
line: m
|
|
4344
|
-
column: m
|
|
4191
|
+
line: m.originalLine,
|
|
4192
|
+
column: m.originalColumn
|
|
4345
4193
|
},
|
|
4346
4194
|
generated: {
|
|
4347
|
-
line: m
|
|
4348
|
-
column: m
|
|
4195
|
+
line: m.generatedLine + offset,
|
|
4196
|
+
column: m.generatedColumn
|
|
4349
4197
|
}
|
|
4350
4198
|
});
|
|
4351
4199
|
});
|
|
@@ -4391,10 +4239,7 @@ async function genTemplateCode(descriptor, options, pluginContext, ssr, customEl
|
|
|
4391
4239
|
else {
|
|
4392
4240
|
if (template.src) await linkSrcToDescriptor(template.src, descriptor, pluginContext, hasScoped);
|
|
4393
4241
|
const src = template.src || descriptor.filename;
|
|
4394
|
-
const
|
|
4395
|
-
const scopedQuery = hasScoped ? `&scoped=${descriptor.id}` : ``;
|
|
4396
|
-
const attrsQuery = attrsToQuery(template.attrs, "js", true);
|
|
4397
|
-
const query = `?vue&type=template${srcQuery}${scopedQuery}${attrsQuery}`;
|
|
4242
|
+
const query = `?vue&type=template${template.src ? hasScoped ? `&src=${descriptor.id}` : "&src=true" : ""}${hasScoped ? `&scoped=${descriptor.id}` : ``}${attrsToQuery(template.attrs, "js", true)}`;
|
|
4398
4243
|
const request = JSON.stringify(src + query);
|
|
4399
4244
|
const renderFnName = ssr ? "ssrRender" : "render";
|
|
4400
4245
|
return {
|
|
@@ -4404,8 +4249,7 @@ async function genTemplateCode(descriptor, options, pluginContext, ssr, customEl
|
|
|
4404
4249
|
}
|
|
4405
4250
|
}
|
|
4406
4251
|
async function genScriptCode(descriptor, options, pluginContext, ssr, customElement) {
|
|
4407
|
-
const
|
|
4408
|
-
let scriptCode = `const ${scriptIdentifier} = { ${vaporFlag} }`;
|
|
4252
|
+
let scriptCode = `const ${scriptIdentifier} = { ${descriptor.vapor ? "__vapor: true" : ""} }`;
|
|
4409
4253
|
let map;
|
|
4410
4254
|
const script = resolveScript(descriptor, options, ssr, customElement);
|
|
4411
4255
|
if (script) if (canInlineMain(descriptor, options)) {
|
|
@@ -4420,8 +4264,7 @@ async function genScriptCode(descriptor, options, pluginContext, ssr, customElem
|
|
|
4420
4264
|
const src = script.src || descriptor.filename;
|
|
4421
4265
|
const langFallback = script.src && path.extname(src).slice(1) || "js";
|
|
4422
4266
|
const attrsQuery = attrsToQuery(script.attrs, langFallback);
|
|
4423
|
-
const
|
|
4424
|
-
const query = `?vue&type=script${srcQuery}${attrsQuery}`;
|
|
4267
|
+
const query = `?vue&type=script${script.src ? `&src=true` : ``}${attrsQuery}`;
|
|
4425
4268
|
const request = JSON.stringify(src + query);
|
|
4426
4269
|
scriptCode = `import _sfc_main from ${request}
|
|
4427
4270
|
export * from ${request}`;
|
|
@@ -4443,8 +4286,7 @@ async function genStyleCode(descriptor, pluginContext, customElement, attachedPr
|
|
|
4443
4286
|
const srcQuery = style.src ? style.scoped ? `&src=${descriptor.id}` : "&src=true" : "";
|
|
4444
4287
|
const directQuery = customElement ? `&inline` : ``;
|
|
4445
4288
|
const scopedQuery = style.scoped ? `&scoped=${descriptor.id}` : ``;
|
|
4446
|
-
const
|
|
4447
|
-
const styleRequest = src + query + attrsQuery;
|
|
4289
|
+
const styleRequest = src + `?vue&type=style&index=${i}${srcQuery}${directQuery}${scopedQuery}` + attrsQuery;
|
|
4448
4290
|
if (style.module) {
|
|
4449
4291
|
if (customElement) throw new Error(`<style module> is not supported in custom elements mode.`);
|
|
4450
4292
|
const [importCode, nameMap] = genCSSModulesCode(i, styleRequest, style.module);
|
|
@@ -4491,8 +4333,7 @@ async function genCustomBlockCode(descriptor, pluginContext) {
|
|
|
4491
4333
|
return code;
|
|
4492
4334
|
}
|
|
4493
4335
|
async function linkSrcToDescriptor(src, descriptor, pluginContext, scoped) {
|
|
4494
|
-
|
|
4495
|
-
setSrcDescriptor(srcFile.replace(/\?.*$/, ""), descriptor, scoped);
|
|
4336
|
+
setSrcDescriptor(((await pluginContext.resolve(src, descriptor.filename))?.id || src).replace(/\?.*$/, ""), descriptor, scoped);
|
|
4496
4337
|
}
|
|
4497
4338
|
var ignoreList = [
|
|
4498
4339
|
"id",
|
|
@@ -4635,8 +4476,7 @@ function vuePlugin(rawOptions = {}) {
|
|
|
4635
4476
|
};
|
|
4636
4477
|
const _warn = config.logger.warn;
|
|
4637
4478
|
config.logger.warn = (...args) => {
|
|
4638
|
-
|
|
4639
|
-
if (msg.match(/\[lightningcss\] '(deep|slotted|global)' is not recognized as a valid pseudo-/)) return;
|
|
4479
|
+
if (args[0].match(/\[lightningcss\] '(deep|slotted|global)' is not recognized as a valid pseudo-/)) return;
|
|
4640
4480
|
_warn(...args);
|
|
4641
4481
|
};
|
|
4642
4482
|
transformCachedModule = config.command === "build" && options.value.sourceMap && config.build.watch != null;
|
|
@@ -5051,8 +4891,11 @@ var parseClass = (glob2, position) => {
|
|
|
5051
4891
|
};
|
|
5052
4892
|
|
|
5053
4893
|
// node_modules/glob/node_modules/minimatch/dist/esm/unescape.js
|
|
5054
|
-
var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
5055
|
-
|
|
4894
|
+
var unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
|
|
4895
|
+
if (magicalBraces) {
|
|
4896
|
+
return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
4897
|
+
}
|
|
4898
|
+
return windowsPathsNoEscape ? s.replace(/\[([^\/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
|
|
5056
4899
|
};
|
|
5057
4900
|
|
|
5058
4901
|
// node_modules/glob/node_modules/minimatch/dist/esm/ast.js
|
|
@@ -5406,7 +5249,7 @@ var AST = class _AST {
|
|
|
5406
5249
|
if (this.#root === this)
|
|
5407
5250
|
this.#fillNegs();
|
|
5408
5251
|
if (!this.type) {
|
|
5409
|
-
const noEmpty = this.isStart() && this.isEnd();
|
|
5252
|
+
const noEmpty = this.isStart() && this.isEnd() && !this.#parts.some((s) => typeof s !== "string");
|
|
5410
5253
|
const src = this.#parts.map((p) => {
|
|
5411
5254
|
const [re, _, hasMagic2, uflag] = typeof p === "string" ? _AST.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
|
|
5412
5255
|
this.#hasMagic = this.#hasMagic || hasMagic2;
|
|
@@ -5516,10 +5359,7 @@ var AST = class _AST {
|
|
|
5516
5359
|
}
|
|
5517
5360
|
}
|
|
5518
5361
|
if (c === "*") {
|
|
5519
|
-
|
|
5520
|
-
re += starNoEmpty;
|
|
5521
|
-
else
|
|
5522
|
-
re += star;
|
|
5362
|
+
re += noEmpty && glob2 === "*" ? starNoEmpty : star;
|
|
5523
5363
|
hasMagic2 = true;
|
|
5524
5364
|
continue;
|
|
5525
5365
|
}
|
|
@@ -5535,7 +5375,10 @@ var AST = class _AST {
|
|
|
5535
5375
|
};
|
|
5536
5376
|
|
|
5537
5377
|
// node_modules/glob/node_modules/minimatch/dist/esm/escape.js
|
|
5538
|
-
var escape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
5378
|
+
var escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
|
|
5379
|
+
if (magicalBraces) {
|
|
5380
|
+
return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
|
|
5381
|
+
}
|
|
5539
5382
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
5540
5383
|
};
|
|
5541
5384
|
|
|
@@ -5604,7 +5447,7 @@ var path2 = {
|
|
|
5604
5447
|
};
|
|
5605
5448
|
var sep = defaultPlatform === "win32" ? path2.win32.sep : path2.posix.sep;
|
|
5606
5449
|
minimatch.sep = sep;
|
|
5607
|
-
var GLOBSTAR = Symbol("globstar **");
|
|
5450
|
+
var GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
|
|
5608
5451
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
5609
5452
|
var qmark2 = "[^/]";
|
|
5610
5453
|
var star2 = qmark2 + "*?";
|
|
@@ -6176,16 +6019,27 @@ var Minimatch = class {
|
|
|
6176
6019
|
pp[i] = twoStar;
|
|
6177
6020
|
}
|
|
6178
6021
|
} else if (next === void 0) {
|
|
6179
|
-
pp[i - 1] = prev + "(
|
|
6022
|
+
pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
|
|
6180
6023
|
} else if (next !== GLOBSTAR) {
|
|
6181
6024
|
pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
|
|
6182
6025
|
pp[i + 1] = GLOBSTAR;
|
|
6183
6026
|
}
|
|
6184
6027
|
});
|
|
6185
|
-
|
|
6028
|
+
const filtered = pp.filter((p) => p !== GLOBSTAR);
|
|
6029
|
+
if (this.partial && filtered.length >= 1) {
|
|
6030
|
+
const prefixes = [];
|
|
6031
|
+
for (let i = 1; i <= filtered.length; i++) {
|
|
6032
|
+
prefixes.push(filtered.slice(0, i).join("/"));
|
|
6033
|
+
}
|
|
6034
|
+
return "(?:" + prefixes.join("|") + ")";
|
|
6035
|
+
}
|
|
6036
|
+
return filtered.join("/");
|
|
6186
6037
|
}).join("|");
|
|
6187
6038
|
const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
6188
6039
|
re = "^" + open + re + close + "$";
|
|
6040
|
+
if (this.partial) {
|
|
6041
|
+
re = "^(?:\\/|" + open + re.slice(1, -1) + close + ")$";
|
|
6042
|
+
}
|
|
6189
6043
|
if (this.negate)
|
|
6190
6044
|
re = "^(?!" + re + ").+$";
|
|
6191
6045
|
try {
|
|
@@ -6304,7 +6158,6 @@ if (typeof AC === "undefined") {
|
|
|
6304
6158
|
};
|
|
6305
6159
|
}
|
|
6306
6160
|
var shouldWarn = (code) => !warned.has(code);
|
|
6307
|
-
var TYPE = Symbol("type");
|
|
6308
6161
|
var isPosInt = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
|
|
6309
6162
|
var getUintArray = (max) => !isPosInt(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray : null;
|
|
6310
6163
|
var ZeroArray = class extends Array {
|
|
@@ -7666,37 +7519,37 @@ var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass ||
|
|
|
7666
7519
|
var isReadable = (s) => !!s && typeof s === "object" && s instanceof EventEmitter && typeof s.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
|
|
7667
7520
|
s.pipe !== Stream.Writable.prototype.pipe;
|
|
7668
7521
|
var isWritable = (s) => !!s && typeof s === "object" && s instanceof EventEmitter && typeof s.write === "function" && typeof s.end === "function";
|
|
7669
|
-
var EOF = Symbol("EOF");
|
|
7670
|
-
var MAYBE_EMIT_END = Symbol("maybeEmitEnd");
|
|
7671
|
-
var EMITTED_END = Symbol("emittedEnd");
|
|
7672
|
-
var EMITTING_END = Symbol("emittingEnd");
|
|
7673
|
-
var EMITTED_ERROR = Symbol("emittedError");
|
|
7674
|
-
var CLOSED = Symbol("closed");
|
|
7675
|
-
var READ = Symbol("read");
|
|
7676
|
-
var FLUSH = Symbol("flush");
|
|
7677
|
-
var FLUSHCHUNK = Symbol("flushChunk");
|
|
7678
|
-
var ENCODING = Symbol("encoding");
|
|
7679
|
-
var DECODER = Symbol("decoder");
|
|
7680
|
-
var FLOWING = Symbol("flowing");
|
|
7681
|
-
var PAUSED = Symbol("paused");
|
|
7682
|
-
var RESUME = Symbol("resume");
|
|
7683
|
-
var BUFFER = Symbol("buffer");
|
|
7684
|
-
var PIPES = Symbol("pipes");
|
|
7685
|
-
var BUFFERLENGTH = Symbol("bufferLength");
|
|
7686
|
-
var BUFFERPUSH = Symbol("bufferPush");
|
|
7687
|
-
var BUFFERSHIFT = Symbol("bufferShift");
|
|
7688
|
-
var OBJECTMODE = Symbol("objectMode");
|
|
7689
|
-
var DESTROYED = Symbol("destroyed");
|
|
7690
|
-
var ERROR = Symbol("error");
|
|
7691
|
-
var EMITDATA = Symbol("emitData");
|
|
7692
|
-
var EMITEND = Symbol("emitEnd");
|
|
7693
|
-
var EMITEND2 = Symbol("emitEnd2");
|
|
7694
|
-
var ASYNC = Symbol("async");
|
|
7695
|
-
var ABORT = Symbol("abort");
|
|
7696
|
-
var ABORTED = Symbol("aborted");
|
|
7697
|
-
var SIGNAL = Symbol("signal");
|
|
7698
|
-
var DATALISTENERS = Symbol("dataListeners");
|
|
7699
|
-
var DISCARDED = Symbol("discarded");
|
|
7522
|
+
var EOF = /* @__PURE__ */ Symbol("EOF");
|
|
7523
|
+
var MAYBE_EMIT_END = /* @__PURE__ */ Symbol("maybeEmitEnd");
|
|
7524
|
+
var EMITTED_END = /* @__PURE__ */ Symbol("emittedEnd");
|
|
7525
|
+
var EMITTING_END = /* @__PURE__ */ Symbol("emittingEnd");
|
|
7526
|
+
var EMITTED_ERROR = /* @__PURE__ */ Symbol("emittedError");
|
|
7527
|
+
var CLOSED = /* @__PURE__ */ Symbol("closed");
|
|
7528
|
+
var READ = /* @__PURE__ */ Symbol("read");
|
|
7529
|
+
var FLUSH = /* @__PURE__ */ Symbol("flush");
|
|
7530
|
+
var FLUSHCHUNK = /* @__PURE__ */ Symbol("flushChunk");
|
|
7531
|
+
var ENCODING = /* @__PURE__ */ Symbol("encoding");
|
|
7532
|
+
var DECODER = /* @__PURE__ */ Symbol("decoder");
|
|
7533
|
+
var FLOWING = /* @__PURE__ */ Symbol("flowing");
|
|
7534
|
+
var PAUSED = /* @__PURE__ */ Symbol("paused");
|
|
7535
|
+
var RESUME = /* @__PURE__ */ Symbol("resume");
|
|
7536
|
+
var BUFFER = /* @__PURE__ */ Symbol("buffer");
|
|
7537
|
+
var PIPES = /* @__PURE__ */ Symbol("pipes");
|
|
7538
|
+
var BUFFERLENGTH = /* @__PURE__ */ Symbol("bufferLength");
|
|
7539
|
+
var BUFFERPUSH = /* @__PURE__ */ Symbol("bufferPush");
|
|
7540
|
+
var BUFFERSHIFT = /* @__PURE__ */ Symbol("bufferShift");
|
|
7541
|
+
var OBJECTMODE = /* @__PURE__ */ Symbol("objectMode");
|
|
7542
|
+
var DESTROYED = /* @__PURE__ */ Symbol("destroyed");
|
|
7543
|
+
var ERROR = /* @__PURE__ */ Symbol("error");
|
|
7544
|
+
var EMITDATA = /* @__PURE__ */ Symbol("emitData");
|
|
7545
|
+
var EMITEND = /* @__PURE__ */ Symbol("emitEnd");
|
|
7546
|
+
var EMITEND2 = /* @__PURE__ */ Symbol("emitEnd2");
|
|
7547
|
+
var ASYNC = /* @__PURE__ */ Symbol("async");
|
|
7548
|
+
var ABORT = /* @__PURE__ */ Symbol("abort");
|
|
7549
|
+
var ABORTED = /* @__PURE__ */ Symbol("aborted");
|
|
7550
|
+
var SIGNAL = /* @__PURE__ */ Symbol("signal");
|
|
7551
|
+
var DATALISTENERS = /* @__PURE__ */ Symbol("dataListeners");
|
|
7552
|
+
var DISCARDED = /* @__PURE__ */ Symbol("discarded");
|
|
7700
7553
|
var defer = (fn) => Promise.resolve().then(fn);
|
|
7701
7554
|
var nodefer = (fn) => fn();
|
|
7702
7555
|
var isEndish = (ev) => ev === "end" || ev === "finish" || ev === "prefinish";
|
|
@@ -8609,7 +8462,7 @@ var ChildrenCache = class extends LRUCache {
|
|
|
8609
8462
|
});
|
|
8610
8463
|
}
|
|
8611
8464
|
};
|
|
8612
|
-
var setAsCwd = Symbol("PathScurry setAsCwd");
|
|
8465
|
+
var setAsCwd = /* @__PURE__ */ Symbol("PathScurry setAsCwd");
|
|
8613
8466
|
var PathBase = class {
|
|
8614
8467
|
/**
|
|
8615
8468
|
* the basename of this path
|