@forsakringskassan/vite-lib-config 4.2.3 → 4.3.0

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.
@@ -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
  }
@@ -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;
@@ -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.js
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/index.js
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,18 +2870,30 @@ function escapeRegex(str) {
2870
2870
  return str.replace(escapeRegexRE, "\\$&");
2871
2871
  }
2872
2872
  function makeIdFiltersToMatchWithQuery(input) {
2873
- if (!Array.isArray(input)) return makeIdFilterToMatchWithQuery(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") return `${input}{?*,}`;
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(input.source.replace(/(?<!\\)\$/g, "(?:\\?.*)?$"), input.flags);
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.js
2896
+ // node_modules/@vitejs/plugin-vue/dist/index.mjs
2885
2897
  import path from "node:path";
2886
2898
  import crypto from "node:crypto";
2887
2899
  var __create2 = Object.create;
@@ -2908,7 +2920,7 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__
2908
2920
  enumerable: true
2909
2921
  }) : target, mod));
2910
2922
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
2911
- var version = "6.0.1";
2923
+ var version = "6.0.2";
2912
2924
  function resolveCompiler(root) {
2913
2925
  const compiler = tryResolveCompiler(root) || tryResolveCompiler();
2914
2926
  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 +3018,7 @@ function getHash(text) {
3006
3018
  return crypto.hash("sha256", text, "hex").substring(0, 8);
3007
3019
  }
3008
3020
  function slash(path$1) {
3009
- const isExtendedLengthPath = path$1.startsWith("\\\\?\\");
3010
- if (isExtendedLengthPath) return path$1;
3021
+ if (path$1.startsWith("\\\\?\\")) return path$1;
3011
3022
  return path$1.replace(/\\/g, "/");
3012
3023
  }
3013
3024
  function createRollupError(id, error) {
@@ -3184,23 +3195,22 @@ function canInlineMain(descriptor, options) {
3184
3195
  if (lang === "ts" && options.devServer) return true;
3185
3196
  return false;
3186
3197
  }
3187
- var comma = ",".charCodeAt(0);
3188
- var semicolon = ";".charCodeAt(0);
3189
- var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
3190
- var intToChar = new Uint8Array(64);
3191
- var charToInt = new Uint8Array(128);
3192
- for (let i = 0; i < 64; i++) {
3193
- const c = chars.charCodeAt(i);
3194
- intToChar[i] = c;
3195
- charToInt[c] = i;
3198
+ var comma$1 = ",".charCodeAt(0);
3199
+ var semicolon$1 = ";".charCodeAt(0);
3200
+ var chars$1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
3201
+ var intToChar$1 = new Uint8Array(64);
3202
+ var charToInt$1 = new Uint8Array(128);
3203
+ for (let i = 0; i < chars$1.length; i++) {
3204
+ const c = chars$1.charCodeAt(i);
3205
+ intToChar$1[i] = c;
3206
+ charToInt$1[c] = i;
3196
3207
  }
3197
3208
  function decodeInteger(reader, relative) {
3198
3209
  let value = 0;
3199
3210
  let shift = 0;
3200
3211
  let integer = 0;
3201
3212
  do {
3202
- const c = reader.next();
3203
- integer = charToInt[c];
3213
+ integer = charToInt$1[reader.next()];
3204
3214
  value |= (integer & 31) << shift;
3205
3215
  shift += 5;
3206
3216
  } while (integer & 32);
@@ -3209,49 +3219,11 @@ function decodeInteger(reader, relative) {
3209
3219
  if (shouldNegate) value = -2147483648 | -value;
3210
3220
  return relative + value;
3211
3221
  }
3212
- function encodeInteger(builder, num, relative) {
3213
- let delta = num - relative;
3214
- delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
3215
- do {
3216
- let clamped = delta & 31;
3217
- delta >>>= 5;
3218
- if (delta > 0) clamped |= 32;
3219
- builder.write(intToChar[clamped]);
3220
- } while (delta > 0);
3221
- return num;
3222
- }
3223
3222
  function hasMoreVlq(reader, max) {
3224
3223
  if (reader.pos >= max) return false;
3225
- return reader.peek() !== comma;
3224
+ return reader.peek() !== comma$1;
3226
3225
  }
3227
- var bufLength = 1024 * 16;
3228
- var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
3229
- const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
3230
- return out.toString();
3231
- } } : { decode(buf) {
3232
- let out = "";
3233
- for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
3234
- return out;
3235
- } };
3236
- var StringWriter = class {
3237
- constructor() {
3238
- this.pos = 0;
3239
- this.out = "";
3240
- this.buffer = new Uint8Array(bufLength);
3241
- }
3242
- write(v) {
3243
- const { buffer } = this;
3244
- buffer[this.pos++] = v;
3245
- if (this.pos === bufLength) {
3246
- this.out += td.decode(buffer);
3247
- this.pos = 0;
3248
- }
3249
- }
3250
- flush() {
3251
- const { buffer, out, pos } = this;
3252
- return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
3253
- }
3254
- };
3226
+ var bufLength$1 = 1024 * 16;
3255
3227
  var StringReader = class {
3256
3228
  constructor(buffer) {
3257
3229
  this.pos = 0;
@@ -3324,31 +3296,6 @@ function sort(line) {
3324
3296
  function sortComparator$1(a, b) {
3325
3297
  return a[0] - b[0];
3326
3298
  }
3327
- function encode(decoded) {
3328
- const writer = new StringWriter();
3329
- let sourcesIndex = 0;
3330
- let sourceLine = 0;
3331
- let sourceColumn = 0;
3332
- let namesIndex = 0;
3333
- for (let i = 0; i < decoded.length; i++) {
3334
- const line = decoded[i];
3335
- if (i > 0) writer.write(semicolon);
3336
- if (line.length === 0) continue;
3337
- let genColumn = 0;
3338
- for (let j = 0; j < line.length; j++) {
3339
- const segment = line[j];
3340
- if (j > 0) writer.write(comma);
3341
- genColumn = encodeInteger(writer, segment[0], genColumn);
3342
- if (segment.length === 1) continue;
3343
- sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
3344
- sourceLine = encodeInteger(writer, segment[2], sourceLine);
3345
- sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
3346
- if (segment.length === 4) continue;
3347
- namesIndex = encodeInteger(writer, segment[4], namesIndex);
3348
- }
3349
- }
3350
- return writer.flush();
3351
- }
3352
3299
  var schemeRegex = /^[\w+.-]+:\/\//;
3353
3300
  var urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
3354
3301
  var fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
@@ -3601,6 +3548,79 @@ function eachMapping(map, cb) {
3601
3548
  }
3602
3549
  }
3603
3550
  }
3551
+ var comma = ",".charCodeAt(0);
3552
+ var semicolon = ";".charCodeAt(0);
3553
+ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
3554
+ var intToChar = new Uint8Array(64);
3555
+ var charToInt = new Uint8Array(128);
3556
+ for (let i = 0; i < 64; i++) {
3557
+ const c = chars.charCodeAt(i);
3558
+ intToChar[i] = c;
3559
+ charToInt[c] = i;
3560
+ }
3561
+ function encodeInteger(builder, num, relative) {
3562
+ let delta = num - relative;
3563
+ delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
3564
+ do {
3565
+ let clamped = delta & 31;
3566
+ delta >>>= 5;
3567
+ if (delta > 0) clamped |= 32;
3568
+ builder.write(intToChar[clamped]);
3569
+ } while (delta > 0);
3570
+ return num;
3571
+ }
3572
+ var bufLength = 1024 * 16;
3573
+ var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
3574
+ return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString();
3575
+ } } : { decode(buf) {
3576
+ let out = "";
3577
+ for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
3578
+ return out;
3579
+ } };
3580
+ var StringWriter = class {
3581
+ constructor() {
3582
+ this.pos = 0;
3583
+ this.out = "";
3584
+ this.buffer = new Uint8Array(bufLength);
3585
+ }
3586
+ write(v) {
3587
+ const { buffer } = this;
3588
+ buffer[this.pos++] = v;
3589
+ if (this.pos === bufLength) {
3590
+ this.out += td.decode(buffer);
3591
+ this.pos = 0;
3592
+ }
3593
+ }
3594
+ flush() {
3595
+ const { buffer, out, pos } = this;
3596
+ return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
3597
+ }
3598
+ };
3599
+ function encode(decoded) {
3600
+ const writer = new StringWriter();
3601
+ let sourcesIndex = 0;
3602
+ let sourceLine = 0;
3603
+ let sourceColumn = 0;
3604
+ let namesIndex = 0;
3605
+ for (let i = 0; i < decoded.length; i++) {
3606
+ const line = decoded[i];
3607
+ if (i > 0) writer.write(semicolon);
3608
+ if (line.length === 0) continue;
3609
+ let genColumn = 0;
3610
+ for (let j = 0; j < line.length; j++) {
3611
+ const segment = line[j];
3612
+ if (j > 0) writer.write(comma);
3613
+ genColumn = encodeInteger(writer, segment[0], genColumn);
3614
+ if (segment.length === 1) continue;
3615
+ sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
3616
+ sourceLine = encodeInteger(writer, segment[2], sourceLine);
3617
+ sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
3618
+ if (segment.length === 4) continue;
3619
+ namesIndex = encodeInteger(writer, segment[4], namesIndex);
3620
+ }
3621
+ }
3622
+ return writer.flush();
3623
+ }
3604
3624
  var SetArray = class {
3605
3625
  constructor() {
3606
3626
  this._indexes = { __proto__: null };
@@ -3617,8 +3637,7 @@ function put(setarr, key) {
3617
3637
  const index = get(setarr, key);
3618
3638
  if (index !== void 0) return index;
3619
3639
  const { array, _indexes: indexes } = cast(setarr);
3620
- const length = array.push(key);
3621
- return indexes[key] = length - 1;
3640
+ return indexes[key] = array.push(key) - 1;
3622
3641
  }
3623
3642
  var COLUMN = 0;
3624
3643
  var SOURCES_INDEX = 1;
@@ -3709,10 +3728,7 @@ function getIndex(arr, index) {
3709
3728
  }
3710
3729
  function getColumnIndex(line, genColumn) {
3711
3730
  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
- }
3731
+ for (let i = index - 1; i >= 0; index = i--) if (genColumn >= line[i][COLUMN]) break;
3716
3732
  return index;
3717
3733
  }
3718
3734
  function insert(array, index, value) {
@@ -3730,8 +3746,7 @@ function putAll(setarr, array) {
3730
3746
  }
3731
3747
  function skipSourceless(line, index) {
3732
3748
  if (index === 0) return true;
3733
- const prev = line[index - 1];
3734
- return prev.length === 1;
3749
+ return line[index - 1].length === 1;
3735
3750
  }
3736
3751
  function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex) {
3737
3752
  if (index === 0) return false;
@@ -3745,7 +3760,7 @@ function addMappingInternal(skipable, map, mapping2) {
3745
3760
  assert(original);
3746
3761
  return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
3747
3762
  }
3748
- var require_ms = __commonJS2({ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module) {
3763
+ var require_ms = /* @__PURE__ */ __commonJS2({ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js": ((exports, module) => {
3749
3764
  var s = 1e3;
3750
3765
  var m = s * 60;
3751
3766
  var h = m * 60;
@@ -3765,8 +3780,7 @@ var require_ms = __commonJS2({ "../../node_modules/.pnpm/ms@2.1.3/node_modules/m
3765
3780
  var match2 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
3766
3781
  if (!match2) return;
3767
3782
  var n = parseFloat(match2[1]);
3768
- var type = (match2[2] || "ms").toLowerCase();
3769
- switch (type) {
3783
+ switch ((match2[2] || "ms").toLowerCase()) {
3770
3784
  case "years":
3771
3785
  case "year":
3772
3786
  case "yrs":
@@ -3806,7 +3820,7 @@ var require_ms = __commonJS2({ "../../node_modules/.pnpm/ms@2.1.3/node_modules/m
3806
3820
  case "ms":
3807
3821
  return n;
3808
3822
  default:
3809
- return void 0;
3823
+ return;
3810
3824
  }
3811
3825
  }
3812
3826
  function fmtShort(ms) {
@@ -3829,8 +3843,8 @@ var require_ms = __commonJS2({ "../../node_modules/.pnpm/ms@2.1.3/node_modules/m
3829
3843
  var isPlural = msAbs >= n * 1.5;
3830
3844
  return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
3831
3845
  }
3832
- } });
3833
- var require_common = __commonJS2({ "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js"(exports, module) {
3846
+ }) });
3847
+ var require_common = /* @__PURE__ */ __commonJS2({ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js": ((exports, module) => {
3834
3848
  function setup(env) {
3835
3849
  createDebug.debug = createDebug;
3836
3850
  createDebug.default = createDebug;
@@ -3864,8 +3878,7 @@ var require_common = __commonJS2({ "../../node_modules/.pnpm/debug@4.4.1/node_mo
3864
3878
  if (!debug$1.enabled) return;
3865
3879
  const self = debug$1;
3866
3880
  const curr = Number(/* @__PURE__ */ new Date());
3867
- const ms = curr - (prevTime || curr);
3868
- self.diff = ms;
3881
+ self.diff = curr - (prevTime || curr);
3869
3882
  self.prev = prevTime;
3870
3883
  self.curr = curr;
3871
3884
  prevTime = curr;
@@ -3885,8 +3898,7 @@ var require_common = __commonJS2({ "../../node_modules/.pnpm/debug@4.4.1/node_mo
3885
3898
  return match2;
3886
3899
  });
3887
3900
  createDebug.formatArgs.call(self, args);
3888
- const logFn = self.log || createDebug.log;
3889
- logFn.apply(self, args);
3901
+ (self.log || createDebug.log).apply(self, args);
3890
3902
  }
3891
3903
  debug$1.namespace = namespace;
3892
3904
  debug$1.useColors = createDebug.useColors();
@@ -3967,8 +3979,8 @@ var require_common = __commonJS2({ "../../node_modules/.pnpm/debug@4.4.1/node_mo
3967
3979
  return createDebug;
3968
3980
  }
3969
3981
  module.exports = setup;
3970
- } });
3971
- var require_node = __commonJS2({ "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js"(exports, module) {
3982
+ }) });
3983
+ var require_node = /* @__PURE__ */ __commonJS2({ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js": ((exports, module) => {
3972
3984
  const tty = __require("tty");
3973
3985
  const util = __require("util");
3974
3986
  exports.init = init;
@@ -4125,22 +4137,22 @@ var require_node = __commonJS2({ "../../node_modules/.pnpm/debug@4.4.1/node_modu
4125
4137
  this.inspectOpts.colors = this.useColors;
4126
4138
  return util.inspect(v, this.inspectOpts);
4127
4139
  };
4128
- } });
4129
- var import_node = __toESM2(require_node(), 1);
4140
+ }) });
4141
+ var import_node = /* @__PURE__ */ __toESM2(require_node(), 1);
4130
4142
  var debug = (0, import_node.default)("vite:hmr");
4131
- var directRequestRE = /(?:\?|&)direct\b/;
4132
4143
  async function handleHotUpdate({ file, modules, read }, options, customElement, typeDepModules) {
4133
4144
  const prevDescriptor = getDescriptor(file, options, false, true);
4134
4145
  if (!prevDescriptor) return;
4135
- const content = await read();
4136
- const { descriptor } = createDescriptor(file, content, options, true);
4146
+ const { descriptor } = createDescriptor(file, await read(), options, true);
4137
4147
  let needRerender = false;
4138
- const affectedModules = new Set(modules.filter((mod) => mod.type !== "js"));
4139
- const mainModule = getMainModule(modules);
4140
- const templateModule = modules.find((m$1) => /type=template/.test(m$1.url));
4148
+ const nonJsModules = modules.filter((m$1) => m$1.type !== "js");
4149
+ const jsModules = modules.filter((m$1) => m$1.type === "js");
4150
+ const affectedModules = new Set(nonJsModules);
4151
+ const mainModule = getMainModule(jsModules);
4152
+ const templateModule = jsModules.find((m$1) => /type=template/.test(m$1.url));
4141
4153
  resolveScript(descriptor, options, false, customElement);
4142
4154
  const scriptChanged = hasScriptChanged(prevDescriptor, descriptor);
4143
- if (scriptChanged) affectedModules.add(getScriptModule(modules) || mainModule);
4155
+ if (scriptChanged) affectedModules.add(getScriptModule(jsModules) || mainModule);
4144
4156
  if (!isEqualBlock(descriptor.template, prevDescriptor.template)) {
4145
4157
  if (!scriptChanged) setResolvedScript(descriptor, getResolvedScript(prevDescriptor, false), false);
4146
4158
  affectedModules.add(templateModule);
@@ -4159,7 +4171,7 @@ async function handleHotUpdate({ file, modules, read }, options, customElement,
4159
4171
  const next = nextStyles[i];
4160
4172
  if (!prev || !isEqualBlock(prev, next)) {
4161
4173
  didUpdateStyle = true;
4162
- const mod = modules.find((m$1) => m$1.url.includes(`type=style&index=${i}`) && m$1.url.endsWith(`.${next.lang || "css"}`) && !directRequestRE.test(m$1.url));
4174
+ const mod = jsModules.find((m$1) => m$1.url.includes(`type=style&index=${i}`) && m$1.url.endsWith(`.${next.lang || "css"}`));
4163
4175
  if (mod) {
4164
4176
  affectedModules.add(mod);
4165
4177
  if (mod.url.includes("&inline")) affectedModules.add(mainModule);
@@ -4174,7 +4186,7 @@ async function handleHotUpdate({ file, modules, read }, options, customElement,
4174
4186
  const prev = prevCustoms[i];
4175
4187
  const next = nextCustoms[i];
4176
4188
  if (!prev || !isEqualBlock(prev, next)) {
4177
- const mod = modules.find((m$1) => m$1.url.includes(`type=${prev.type}&index=${i}`));
4189
+ const mod = jsModules.find((m$1) => m$1.url.includes(`type=${prev.type}&index=${i}`));
4178
4190
  if (mod) affectedModules.add(mod);
4179
4191
  else affectedModules.add(mainModule);
4180
4192
  }
@@ -4183,10 +4195,7 @@ async function handleHotUpdate({ file, modules, read }, options, customElement,
4183
4195
  if (needRerender) {
4184
4196
  updateType.push(`template`);
4185
4197
  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
- }
4198
+ else if (mainModule && !affectedModules.has(mainModule)) [...mainModule.importers].filter((m$1) => isCSSRequest(m$1.url)).forEach((m$1) => affectedModules.add(m$1));
4190
4199
  }
4191
4200
  if (didUpdateStyle) updateType.push(`style`);
4192
4201
  if (updateType.length) {
@@ -4247,18 +4256,17 @@ function hasScriptChanged(prev, next) {
4247
4256
  const nextScript = getResolvedScript(next, false);
4248
4257
  if (!isEqualBlock(prev.script, next.script) && !isEqualAst(prevScript?.scriptAst, nextScript?.scriptAst)) return true;
4249
4258
  if (!isEqualBlock(prev.scriptSetup, next.scriptSetup) && !isEqualAst(prevScript?.scriptSetupAst, nextScript?.scriptSetupAst)) return true;
4250
- const prevResolvedScript = getResolvedScript(prev, false);
4251
- const prevImports = prevResolvedScript?.imports;
4259
+ const prevImports = getResolvedScript(prev, false)?.imports;
4252
4260
  if (prevImports) return !next.template || next.shouldForceReload(prevImports);
4253
4261
  return false;
4254
4262
  }
4255
- function getMainModule(modules) {
4256
- return modules.filter((m$1) => !/type=/.test(m$1.url) || /type=script/.test(m$1.url)).sort((m1, m2) => {
4263
+ function getMainModule(jsModules) {
4264
+ return jsModules.filter((m$1) => !/type=/.test(m$1.url) || /type=script/.test(m$1.url)).sort((m1, m2) => {
4257
4265
  return m1.url.length - m2.url.length;
4258
4266
  })[0];
4259
4267
  }
4260
- function getScriptModule(modules) {
4261
- return modules.find((m$1) => /type=script.*&lang\.\w+$/.test(m$1.url));
4268
+ function getScriptModule(jsModules) {
4269
+ return jsModules.find((m$1) => /type=script.*&lang\.\w+$/.test(m$1.url));
4262
4270
  }
4263
4271
  function handleTypeDepChange(affectedComponents, { modules, server: { moduleGraph } }) {
4264
4272
  const affected = /* @__PURE__ */ new Set();
@@ -4323,7 +4331,7 @@ async function transformMain(code, filename, options, pluginContext, ssr, custom
4323
4331
  }
4324
4332
  let resolvedMap = void 0;
4325
4333
  if (options.sourceMap) if (templateMap) {
4326
- const from = scriptMap ?? {
4334
+ const gen = fromMap(scriptMap ?? {
4327
4335
  file: filename,
4328
4336
  sourceRoot: "",
4329
4337
  version: 3,
@@ -4331,8 +4339,7 @@ async function transformMain(code, filename, options, pluginContext, ssr, custom
4331
4339
  sourcesContent: [],
4332
4340
  names: [],
4333
4341
  mappings: ""
4334
- };
4335
- const gen = fromMap(from);
4342
+ });
4336
4343
  const tracer = new TraceMap(templateMap);
4337
4344
  const offset = (scriptCode.match(/\r?\n/g)?.length ?? 0) + 1;
4338
4345
  eachMapping(tracer, (m$1) => {
@@ -4391,10 +4398,7 @@ async function genTemplateCode(descriptor, options, pluginContext, ssr, customEl
4391
4398
  else {
4392
4399
  if (template.src) await linkSrcToDescriptor(template.src, descriptor, pluginContext, hasScoped);
4393
4400
  const src = template.src || descriptor.filename;
4394
- const srcQuery = template.src ? hasScoped ? `&src=${descriptor.id}` : "&src=true" : "";
4395
- const scopedQuery = hasScoped ? `&scoped=${descriptor.id}` : ``;
4396
- const attrsQuery = attrsToQuery(template.attrs, "js", true);
4397
- const query = `?vue&type=template${srcQuery}${scopedQuery}${attrsQuery}`;
4401
+ const query = `?vue&type=template${template.src ? hasScoped ? `&src=${descriptor.id}` : "&src=true" : ""}${hasScoped ? `&scoped=${descriptor.id}` : ``}${attrsToQuery(template.attrs, "js", true)}`;
4398
4402
  const request = JSON.stringify(src + query);
4399
4403
  const renderFnName = ssr ? "ssrRender" : "render";
4400
4404
  return {
@@ -4404,8 +4408,7 @@ async function genTemplateCode(descriptor, options, pluginContext, ssr, customEl
4404
4408
  }
4405
4409
  }
4406
4410
  async function genScriptCode(descriptor, options, pluginContext, ssr, customElement) {
4407
- const vaporFlag = descriptor.vapor ? "__vapor: true" : "";
4408
- let scriptCode = `const ${scriptIdentifier} = { ${vaporFlag} }`;
4411
+ let scriptCode = `const ${scriptIdentifier} = { ${descriptor.vapor ? "__vapor: true" : ""} }`;
4409
4412
  let map;
4410
4413
  const script = resolveScript(descriptor, options, ssr, customElement);
4411
4414
  if (script) if (canInlineMain(descriptor, options)) {
@@ -4420,8 +4423,7 @@ async function genScriptCode(descriptor, options, pluginContext, ssr, customElem
4420
4423
  const src = script.src || descriptor.filename;
4421
4424
  const langFallback = script.src && path.extname(src).slice(1) || "js";
4422
4425
  const attrsQuery = attrsToQuery(script.attrs, langFallback);
4423
- const srcQuery = script.src ? `&src=true` : ``;
4424
- const query = `?vue&type=script${srcQuery}${attrsQuery}`;
4426
+ const query = `?vue&type=script${script.src ? `&src=true` : ``}${attrsQuery}`;
4425
4427
  const request = JSON.stringify(src + query);
4426
4428
  scriptCode = `import _sfc_main from ${request}
4427
4429
  export * from ${request}`;
@@ -4443,8 +4445,7 @@ async function genStyleCode(descriptor, pluginContext, customElement, attachedPr
4443
4445
  const srcQuery = style.src ? style.scoped ? `&src=${descriptor.id}` : "&src=true" : "";
4444
4446
  const directQuery = customElement ? `&inline` : ``;
4445
4447
  const scopedQuery = style.scoped ? `&scoped=${descriptor.id}` : ``;
4446
- const query = `?vue&type=style&index=${i}${srcQuery}${directQuery}${scopedQuery}`;
4447
- const styleRequest = src + query + attrsQuery;
4448
+ const styleRequest = src + `?vue&type=style&index=${i}${srcQuery}${directQuery}${scopedQuery}` + attrsQuery;
4448
4449
  if (style.module) {
4449
4450
  if (customElement) throw new Error(`<style module> is not supported in custom elements mode.`);
4450
4451
  const [importCode, nameMap] = genCSSModulesCode(i, styleRequest, style.module);
@@ -4491,8 +4492,7 @@ async function genCustomBlockCode(descriptor, pluginContext) {
4491
4492
  return code;
4492
4493
  }
4493
4494
  async function linkSrcToDescriptor(src, descriptor, pluginContext, scoped) {
4494
- const srcFile = (await pluginContext.resolve(src, descriptor.filename))?.id || src;
4495
- setSrcDescriptor(srcFile.replace(/\?.*$/, ""), descriptor, scoped);
4495
+ setSrcDescriptor(((await pluginContext.resolve(src, descriptor.filename))?.id || src).replace(/\?.*$/, ""), descriptor, scoped);
4496
4496
  }
4497
4497
  var ignoreList = [
4498
4498
  "id",
@@ -4635,8 +4635,7 @@ function vuePlugin(rawOptions = {}) {
4635
4635
  };
4636
4636
  const _warn = config.logger.warn;
4637
4637
  config.logger.warn = (...args) => {
4638
- const msg = args[0];
4639
- if (msg.match(/\[lightningcss\] '(deep|slotted|global)' is not recognized as a valid pseudo-/)) return;
4638
+ if (args[0].match(/\[lightningcss\] '(deep|slotted|global)' is not recognized as a valid pseudo-/)) return;
4640
4639
  _warn(...args);
4641
4640
  };
4642
4641
  transformCachedModule = config.command === "build" && options.value.sourceMap && config.build.watch != null;
@@ -5051,8 +5050,11 @@ var parseClass = (glob2, position) => {
5051
5050
  };
5052
5051
 
5053
5052
  // node_modules/glob/node_modules/minimatch/dist/esm/unescape.js
5054
- var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
5055
- return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
5053
+ var unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
5054
+ if (magicalBraces) {
5055
+ return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
5056
+ }
5057
+ return windowsPathsNoEscape ? s.replace(/\[([^\/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
5056
5058
  };
5057
5059
 
5058
5060
  // node_modules/glob/node_modules/minimatch/dist/esm/ast.js
@@ -5406,7 +5408,7 @@ var AST = class _AST {
5406
5408
  if (this.#root === this)
5407
5409
  this.#fillNegs();
5408
5410
  if (!this.type) {
5409
- const noEmpty = this.isStart() && this.isEnd();
5411
+ const noEmpty = this.isStart() && this.isEnd() && !this.#parts.some((s) => typeof s !== "string");
5410
5412
  const src = this.#parts.map((p) => {
5411
5413
  const [re, _, hasMagic2, uflag] = typeof p === "string" ? _AST.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
5412
5414
  this.#hasMagic = this.#hasMagic || hasMagic2;
@@ -5516,10 +5518,7 @@ var AST = class _AST {
5516
5518
  }
5517
5519
  }
5518
5520
  if (c === "*") {
5519
- if (noEmpty && glob2 === "*")
5520
- re += starNoEmpty;
5521
- else
5522
- re += star;
5521
+ re += noEmpty && glob2 === "*" ? starNoEmpty : star;
5523
5522
  hasMagic2 = true;
5524
5523
  continue;
5525
5524
  }
@@ -5535,7 +5534,10 @@ var AST = class _AST {
5535
5534
  };
5536
5535
 
5537
5536
  // node_modules/glob/node_modules/minimatch/dist/esm/escape.js
5538
- var escape = (s, { windowsPathsNoEscape = false } = {}) => {
5537
+ var escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
5538
+ if (magicalBraces) {
5539
+ return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
5540
+ }
5539
5541
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
5540
5542
  };
5541
5543
 
@@ -5604,7 +5606,7 @@ var path2 = {
5604
5606
  };
5605
5607
  var sep = defaultPlatform === "win32" ? path2.win32.sep : path2.posix.sep;
5606
5608
  minimatch.sep = sep;
5607
- var GLOBSTAR = Symbol("globstar **");
5609
+ var GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
5608
5610
  minimatch.GLOBSTAR = GLOBSTAR;
5609
5611
  var qmark2 = "[^/]";
5610
5612
  var star2 = qmark2 + "*?";
@@ -6176,16 +6178,27 @@ var Minimatch = class {
6176
6178
  pp[i] = twoStar;
6177
6179
  }
6178
6180
  } else if (next === void 0) {
6179
- pp[i - 1] = prev + "(?:\\/|" + twoStar + ")?";
6181
+ pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
6180
6182
  } else if (next !== GLOBSTAR) {
6181
6183
  pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
6182
6184
  pp[i + 1] = GLOBSTAR;
6183
6185
  }
6184
6186
  });
6185
- return pp.filter((p) => p !== GLOBSTAR).join("/");
6187
+ const filtered = pp.filter((p) => p !== GLOBSTAR);
6188
+ if (this.partial && filtered.length >= 1) {
6189
+ const prefixes = [];
6190
+ for (let i = 1; i <= filtered.length; i++) {
6191
+ prefixes.push(filtered.slice(0, i).join("/"));
6192
+ }
6193
+ return "(?:" + prefixes.join("|") + ")";
6194
+ }
6195
+ return filtered.join("/");
6186
6196
  }).join("|");
6187
6197
  const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
6188
6198
  re = "^" + open + re + close + "$";
6199
+ if (this.partial) {
6200
+ re = "^(?:\\/|" + open + re.slice(1, -1) + close + ")$";
6201
+ }
6189
6202
  if (this.negate)
6190
6203
  re = "^(?!" + re + ").+$";
6191
6204
  try {
@@ -6304,7 +6317,6 @@ if (typeof AC === "undefined") {
6304
6317
  };
6305
6318
  }
6306
6319
  var shouldWarn = (code) => !warned.has(code);
6307
- var TYPE = Symbol("type");
6308
6320
  var isPosInt = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
6309
6321
  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
6322
  var ZeroArray = class extends Array {
@@ -7666,37 +7678,37 @@ var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass ||
7666
7678
  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
7679
  s.pipe !== Stream.Writable.prototype.pipe;
7668
7680
  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");
7681
+ var EOF = /* @__PURE__ */ Symbol("EOF");
7682
+ var MAYBE_EMIT_END = /* @__PURE__ */ Symbol("maybeEmitEnd");
7683
+ var EMITTED_END = /* @__PURE__ */ Symbol("emittedEnd");
7684
+ var EMITTING_END = /* @__PURE__ */ Symbol("emittingEnd");
7685
+ var EMITTED_ERROR = /* @__PURE__ */ Symbol("emittedError");
7686
+ var CLOSED = /* @__PURE__ */ Symbol("closed");
7687
+ var READ = /* @__PURE__ */ Symbol("read");
7688
+ var FLUSH = /* @__PURE__ */ Symbol("flush");
7689
+ var FLUSHCHUNK = /* @__PURE__ */ Symbol("flushChunk");
7690
+ var ENCODING = /* @__PURE__ */ Symbol("encoding");
7691
+ var DECODER = /* @__PURE__ */ Symbol("decoder");
7692
+ var FLOWING = /* @__PURE__ */ Symbol("flowing");
7693
+ var PAUSED = /* @__PURE__ */ Symbol("paused");
7694
+ var RESUME = /* @__PURE__ */ Symbol("resume");
7695
+ var BUFFER = /* @__PURE__ */ Symbol("buffer");
7696
+ var PIPES = /* @__PURE__ */ Symbol("pipes");
7697
+ var BUFFERLENGTH = /* @__PURE__ */ Symbol("bufferLength");
7698
+ var BUFFERPUSH = /* @__PURE__ */ Symbol("bufferPush");
7699
+ var BUFFERSHIFT = /* @__PURE__ */ Symbol("bufferShift");
7700
+ var OBJECTMODE = /* @__PURE__ */ Symbol("objectMode");
7701
+ var DESTROYED = /* @__PURE__ */ Symbol("destroyed");
7702
+ var ERROR = /* @__PURE__ */ Symbol("error");
7703
+ var EMITDATA = /* @__PURE__ */ Symbol("emitData");
7704
+ var EMITEND = /* @__PURE__ */ Symbol("emitEnd");
7705
+ var EMITEND2 = /* @__PURE__ */ Symbol("emitEnd2");
7706
+ var ASYNC = /* @__PURE__ */ Symbol("async");
7707
+ var ABORT = /* @__PURE__ */ Symbol("abort");
7708
+ var ABORTED = /* @__PURE__ */ Symbol("aborted");
7709
+ var SIGNAL = /* @__PURE__ */ Symbol("signal");
7710
+ var DATALISTENERS = /* @__PURE__ */ Symbol("dataListeners");
7711
+ var DISCARDED = /* @__PURE__ */ Symbol("discarded");
7700
7712
  var defer = (fn) => Promise.resolve().then(fn);
7701
7713
  var nodefer = (fn) => fn();
7702
7714
  var isEndish = (ev) => ev === "end" || ev === "finish" || ev === "prefinish";
@@ -8609,7 +8621,7 @@ var ChildrenCache = class extends LRUCache {
8609
8621
  });
8610
8622
  }
8611
8623
  };
8612
- var setAsCwd = Symbol("PathScurry setAsCwd");
8624
+ var setAsCwd = /* @__PURE__ */ Symbol("PathScurry setAsCwd");
8613
8625
  var PathBase = class {
8614
8626
  /**
8615
8627
  * the basename of this path