@vitejs/devtools 0.0.0-alpha.20 → 0.0.0-alpha.21

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.
@@ -1,8 +1,8 @@
1
1
  import { createEventEmitter } from "@vitejs/devtools-kit/utils/events";
2
2
 
3
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.25/node_modules/@vue/shared/dist/shared.esm-bundler.js
3
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.26/node_modules/@vue/shared/dist/shared.esm-bundler.js
4
4
  /**
5
- * @vue/shared v3.5.25
5
+ * @vue/shared v3.5.26
6
6
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
7
7
  * @license MIT
8
8
  **/
@@ -24,7 +24,7 @@ const remove = (arr, el) => {
24
24
  if (i > -1) arr.splice(i, 1);
25
25
  };
26
26
  const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
27
- const hasOwn$1 = (val, key) => hasOwnProperty$1.call(val, key);
27
+ const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
28
28
  const isArray = Array.isArray;
29
29
  const isMap = (val) => toTypeString(val) === "[object Map]";
30
30
  const isSet = (val) => toTypeString(val) === "[object Set]";
@@ -157,9 +157,9 @@ const stringifySymbol = (v, i = "") => {
157
157
  };
158
158
 
159
159
  //#endregion
160
- //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.25/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
160
+ //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.26/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
161
161
  /**
162
- * @vue/reactivity v3.5.25
162
+ * @vue/reactivity v3.5.26
163
163
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
164
164
  * @license MIT
165
165
  **/
@@ -624,9 +624,9 @@ function addSub(link) {
624
624
  }
625
625
  }
626
626
  const targetMap = /* @__PURE__ */ new WeakMap();
627
- const ITERATE_KEY = Symbol(!!(process.env.NODE_ENV !== "production") ? "Object iterate" : "");
628
- const MAP_KEY_ITERATE_KEY = Symbol(!!(process.env.NODE_ENV !== "production") ? "Map keys iterate" : "");
629
- const ARRAY_ITERATE_KEY = Symbol(!!(process.env.NODE_ENV !== "production") ? "Array iterate" : "");
627
+ const ITERATE_KEY = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? "Object iterate" : "");
628
+ const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? "Map keys iterate" : "");
629
+ const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? "Array iterate" : "");
630
630
  function track(target, type, key) {
631
631
  if (shouldTrack && activeSub) {
632
632
  let depsMap = targetMap.get(target);
@@ -928,7 +928,7 @@ var MutableReactiveHandler = class extends BaseReactiveHandler {
928
928
  return true;
929
929
  }
930
930
  }
931
- const hadKey = isArrayWithIntegerKey ? Number(key) < target.length : hasOwn$1(target, key);
931
+ const hadKey = isArrayWithIntegerKey ? Number(key) < target.length : hasOwn(target, key);
932
932
  const result = Reflect.set(target, key, value, isRef(target) ? target : receiver);
933
933
  if (target === toRaw(receiver)) {
934
934
  if (!hadKey) trigger(target, "add", key, value);
@@ -937,7 +937,7 @@ var MutableReactiveHandler = class extends BaseReactiveHandler {
937
937
  return result;
938
938
  }
939
939
  deleteProperty(target, key) {
940
- const hadKey = hasOwn$1(target, key);
940
+ const hadKey = hasOwn(target, key);
941
941
  const oldValue = target[key];
942
942
  const result = Reflect.deleteProperty(target, key);
943
943
  if (result && hadKey) trigger(target, "delete", key, void 0, oldValue);
@@ -1118,7 +1118,7 @@ function createInstrumentationGetter(isReadonly2, shallow) {
1118
1118
  if (key === "__v_isReactive") return !isReadonly2;
1119
1119
  else if (key === "__v_isReadonly") return isReadonly2;
1120
1120
  else if (key === "__v_raw") return target;
1121
- return Reflect.get(hasOwn$1(instrumentations, key) && key in target ? instrumentations : target, key, receiver);
1121
+ return Reflect.get(hasOwn(instrumentations, key) && key in target ? instrumentations : target, key, receiver);
1122
1122
  };
1123
1123
  }
1124
1124
  const mutableCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(false, false) };
@@ -1195,7 +1195,7 @@ function toRaw(observed) {
1195
1195
  return raw ? toRaw(raw) : observed;
1196
1196
  }
1197
1197
  function markRaw(value) {
1198
- if (!hasOwn$1(value, "__v_skip") && Object.isExtensible(value)) def(value, "__v_skip", true);
1198
+ if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) def(value, "__v_skip", true);
1199
1199
  return value;
1200
1200
  }
1201
1201
  const toReactive = (value) => isObject$1(value) ? reactive(value) : value;
@@ -1204,12 +1204,12 @@ function isRef(r) {
1204
1204
  return r ? r["__v_isRef"] === true : false;
1205
1205
  }
1206
1206
  function ref(value) {
1207
- return createRef$1(value, false);
1207
+ return createRef(value, false);
1208
1208
  }
1209
1209
  function shallowRef(value) {
1210
- return createRef$1(value, true);
1210
+ return createRef(value, true);
1211
1211
  }
1212
- function createRef$1(rawValue, shallow) {
1212
+ function createRef(rawValue, shallow) {
1213
1213
  if (isRef(rawValue)) return rawValue;
1214
1214
  return new RefImpl(rawValue, shallow);
1215
1215
  }
@@ -1287,7 +1287,7 @@ var CustomRefImpl = class {
1287
1287
  function customRef(factory) {
1288
1288
  return new CustomRefImpl(factory);
1289
1289
  }
1290
- function toRefs$1(object) {
1290
+ function toRefs(object) {
1291
1291
  if (!!(process.env.NODE_ENV !== "production") && !isProxy(object)) warn$2(`toRefs() expects a reactive object but received a plain one.`);
1292
1292
  const ret = isArray(object) ? new Array(object.length) : {};
1293
1293
  for (const key in object) ret[key] = propertyToRef(object, key);
@@ -1447,7 +1447,7 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
1447
1447
  if (isShallow(source2) || deep === false || deep === 0) return traverse(source2, 1);
1448
1448
  return traverse(source2);
1449
1449
  };
1450
- let effect$1;
1450
+ let effect;
1451
1451
  let getter;
1452
1452
  let cleanup;
1453
1453
  let boundCleanup;
@@ -1479,7 +1479,7 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
1479
1479
  }
1480
1480
  }
1481
1481
  const currentEffect = activeWatcher;
1482
- activeWatcher = effect$1;
1482
+ activeWatcher = effect;
1483
1483
  try {
1484
1484
  return call ? call(source, 3, [boundCleanup]) : source(boundCleanup);
1485
1485
  } finally {
@@ -1497,8 +1497,8 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
1497
1497
  }
1498
1498
  const scope = getCurrentScope();
1499
1499
  const watchHandle = () => {
1500
- effect$1.stop();
1501
- if (scope && scope.active) remove(scope.effects, effect$1);
1500
+ effect.stop();
1501
+ if (scope && scope.active) remove(scope.effects, effect);
1502
1502
  };
1503
1503
  if (once && cb) {
1504
1504
  const _cb = cb;
@@ -1509,13 +1509,13 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
1509
1509
  }
1510
1510
  let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
1511
1511
  const job = (immediateFirstRun) => {
1512
- if (!(effect$1.flags & 1) || !effect$1.dirty && !immediateFirstRun) return;
1512
+ if (!(effect.flags & 1) || !effect.dirty && !immediateFirstRun) return;
1513
1513
  if (cb) {
1514
- const newValue = effect$1.run();
1514
+ const newValue = effect.run();
1515
1515
  if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) {
1516
1516
  if (cleanup) cleanup();
1517
1517
  const currentWatcher = activeWatcher;
1518
- activeWatcher = effect$1;
1518
+ activeWatcher = effect;
1519
1519
  try {
1520
1520
  const args = [
1521
1521
  newValue,
@@ -1528,30 +1528,30 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
1528
1528
  activeWatcher = currentWatcher;
1529
1529
  }
1530
1530
  }
1531
- } else effect$1.run();
1531
+ } else effect.run();
1532
1532
  };
1533
1533
  if (augmentJob) augmentJob(job);
1534
- effect$1 = new ReactiveEffect(getter);
1535
- effect$1.scheduler = scheduler ? () => scheduler(job, false) : job;
1536
- boundCleanup = (fn) => onWatcherCleanup(fn, false, effect$1);
1537
- cleanup = effect$1.onStop = () => {
1538
- const cleanups = cleanupMap.get(effect$1);
1534
+ effect = new ReactiveEffect(getter);
1535
+ effect.scheduler = scheduler ? () => scheduler(job, false) : job;
1536
+ boundCleanup = (fn) => onWatcherCleanup(fn, false, effect);
1537
+ cleanup = effect.onStop = () => {
1538
+ const cleanups = cleanupMap.get(effect);
1539
1539
  if (cleanups) {
1540
1540
  if (call) call(cleanups, 4);
1541
1541
  else for (const cleanup2 of cleanups) cleanup2();
1542
- cleanupMap.delete(effect$1);
1542
+ cleanupMap.delete(effect);
1543
1543
  }
1544
1544
  };
1545
1545
  if (!!(process.env.NODE_ENV !== "production")) {
1546
- effect$1.onTrack = options.onTrack;
1547
- effect$1.onTrigger = options.onTrigger;
1546
+ effect.onTrack = options.onTrack;
1547
+ effect.onTrigger = options.onTrigger;
1548
1548
  }
1549
1549
  if (cb) if (immediate) job(true);
1550
- else oldValue = effect$1.run();
1550
+ else oldValue = effect.run();
1551
1551
  else if (scheduler) scheduler(job.bind(null, true), true);
1552
- else effect$1.run();
1553
- watchHandle.pause = effect$1.pause.bind(effect$1);
1554
- watchHandle.resume = effect$1.resume.bind(effect$1);
1552
+ else effect.run();
1553
+ watchHandle.pause = effect.pause.bind(effect);
1554
+ watchHandle.resume = effect.resume.bind(effect);
1555
1555
  watchHandle.stop = watchHandle;
1556
1556
  return watchHandle;
1557
1557
  }
@@ -1574,9 +1574,9 @@ function traverse(value, depth = Infinity, seen) {
1574
1574
  }
1575
1575
 
1576
1576
  //#endregion
1577
- //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.25/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
1577
+ //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.26/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
1578
1578
  /**
1579
- * @vue/runtime-core v3.5.25
1579
+ * @vue/runtime-core v3.5.26
1580
1580
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
1581
1581
  * @license MIT
1582
1582
  **/
@@ -2130,9 +2130,122 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
2130
2130
  }
2131
2131
  }
2132
2132
  }
2133
- const TeleportEndKey = Symbol("_vte");
2133
+ function provide(key, value) {
2134
+ if (!!(process.env.NODE_ENV !== "production")) {
2135
+ if (!currentInstance || currentInstance.isMounted) warn$1(`provide() can only be used inside setup().`);
2136
+ }
2137
+ if (currentInstance) {
2138
+ let provides = currentInstance.provides;
2139
+ const parentProvides = currentInstance.parent && currentInstance.parent.provides;
2140
+ if (parentProvides === provides) provides = currentInstance.provides = Object.create(parentProvides);
2141
+ provides[key] = value;
2142
+ }
2143
+ }
2144
+ function inject(key, defaultValue, treatDefaultAsFactory = false) {
2145
+ const instance = getCurrentInstance();
2146
+ if (instance || currentApp) {
2147
+ let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
2148
+ if (provides && key in provides) return provides[key];
2149
+ else if (arguments.length > 1) return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
2150
+ else if (!!(process.env.NODE_ENV !== "production")) warn$1(`injection "${String(key)}" not found.`);
2151
+ } else if (!!(process.env.NODE_ENV !== "production")) warn$1(`inject() can only be used inside setup() or functional components.`);
2152
+ }
2153
+ function hasInjectionContext() {
2154
+ return !!(getCurrentInstance() || currentApp);
2155
+ }
2156
+ const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
2157
+ const useSSRContext = () => {
2158
+ {
2159
+ const ctx = inject(ssrContextKey);
2160
+ if (!ctx) process.env.NODE_ENV !== "production" && warn$1(`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`);
2161
+ return ctx;
2162
+ }
2163
+ };
2164
+ function watchEffect(effect, options) {
2165
+ return doWatch(effect, null, options);
2166
+ }
2167
+ function watch(source, cb, options) {
2168
+ if (!!(process.env.NODE_ENV !== "production") && !isFunction(cb)) warn$1(`\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`);
2169
+ return doWatch(source, cb, options);
2170
+ }
2171
+ function doWatch(source, cb, options = EMPTY_OBJ) {
2172
+ const { immediate, deep, flush, once } = options;
2173
+ if (!!(process.env.NODE_ENV !== "production") && !cb) {
2174
+ if (immediate !== void 0) warn$1(`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`);
2175
+ if (deep !== void 0) warn$1(`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`);
2176
+ if (once !== void 0) warn$1(`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`);
2177
+ }
2178
+ const baseWatchOptions = extend({}, options);
2179
+ if (!!(process.env.NODE_ENV !== "production")) baseWatchOptions.onWarn = warn$1;
2180
+ const runsImmediately = cb && immediate || !cb && flush !== "post";
2181
+ let ssrCleanup;
2182
+ if (isInSSRComponentSetup) {
2183
+ if (flush === "sync") {
2184
+ const ctx = useSSRContext();
2185
+ ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
2186
+ } else if (!runsImmediately) {
2187
+ const watchStopHandle = () => {};
2188
+ watchStopHandle.stop = NOOP;
2189
+ watchStopHandle.resume = NOOP;
2190
+ watchStopHandle.pause = NOOP;
2191
+ return watchStopHandle;
2192
+ }
2193
+ }
2194
+ const instance = currentInstance;
2195
+ baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
2196
+ let isPre = false;
2197
+ if (flush === "post") baseWatchOptions.scheduler = (job) => {
2198
+ queuePostRenderEffect(job, instance && instance.suspense);
2199
+ };
2200
+ else if (flush !== "sync") {
2201
+ isPre = true;
2202
+ baseWatchOptions.scheduler = (job, isFirstRun) => {
2203
+ if (isFirstRun) job();
2204
+ else queueJob(job);
2205
+ };
2206
+ }
2207
+ baseWatchOptions.augmentJob = (job) => {
2208
+ if (cb) job.flags |= 4;
2209
+ if (isPre) {
2210
+ job.flags |= 2;
2211
+ if (instance) {
2212
+ job.id = instance.uid;
2213
+ job.i = instance;
2214
+ }
2215
+ }
2216
+ };
2217
+ const watchHandle = watch$1(source, cb, baseWatchOptions);
2218
+ if (isInSSRComponentSetup) {
2219
+ if (ssrCleanup) ssrCleanup.push(watchHandle);
2220
+ else if (runsImmediately) watchHandle();
2221
+ }
2222
+ return watchHandle;
2223
+ }
2224
+ function instanceWatch(source, value, options) {
2225
+ const publicThis = this.proxy;
2226
+ const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
2227
+ let cb;
2228
+ if (isFunction(value)) cb = value;
2229
+ else {
2230
+ cb = value.handler;
2231
+ options = value;
2232
+ }
2233
+ const reset = setCurrentInstance(this);
2234
+ const res = doWatch(getter, cb.bind(publicThis), options);
2235
+ reset();
2236
+ return res;
2237
+ }
2238
+ function createPathGetter(ctx, path) {
2239
+ const segments = path.split(".");
2240
+ return () => {
2241
+ let cur = ctx;
2242
+ for (let i = 0; i < segments.length && cur; i++) cur = cur[segments[i]];
2243
+ return cur;
2244
+ };
2245
+ }
2246
+ const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
2134
2247
  const isTeleport = (type) => type.__isTeleport;
2135
- const leaveCbKey = Symbol("_leaveCb");
2248
+ const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
2136
2249
  function setTransitionHooks(vnode, hooks) {
2137
2250
  if (vnode.shapeFlag & 6 && vnode.component) {
2138
2251
  vnode.transition = hooks;
@@ -2194,10 +2307,10 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
2194
2307
  const rawSetupState = toRaw(setupState);
2195
2308
  const canSetSetupRef = setupState === EMPTY_OBJ ? NO : (key) => {
2196
2309
  if (!!(process.env.NODE_ENV !== "production")) {
2197
- if (hasOwn$1(rawSetupState, key) && !isRef(rawSetupState[key])) warn$1(`Template ref "${key}" used on a non-ref value. It will not work in the production build.`);
2310
+ if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) warn$1(`Template ref "${key}" used on a non-ref value. It will not work in the production build.`);
2198
2311
  if (knownTemplateRefs.has(rawSetupState[key])) return false;
2199
2312
  }
2200
- return hasOwn$1(rawSetupState, key);
2313
+ return hasOwn(rawSetupState, key);
2201
2314
  };
2202
2315
  const canSetRef = (ref2) => {
2203
2316
  return !!!(process.env.NODE_ENV !== "production") || !knownTemplateRefs.has(ref2);
@@ -2326,7 +2439,7 @@ const onRenderTracked = createHook("rtc");
2326
2439
  function onErrorCaptured(hook, target = currentInstance) {
2327
2440
  injectHook("ec", hook, target);
2328
2441
  }
2329
- const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
2442
+ const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
2330
2443
  function renderList(source, renderItem, cache, index) {
2331
2444
  let ret;
2332
2445
  const cached = cache && cache[index];
@@ -2412,7 +2525,7 @@ const publicPropertiesMap = /* @__PURE__ */ extend(/* @__PURE__ */ Object.create
2412
2525
  $watch: (i) => __VUE_OPTIONS_API__ ? instanceWatch.bind(i) : NOOP
2413
2526
  });
2414
2527
  const isReservedPrefix = (key) => key === "_" || key === "$";
2415
- const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn$1(state, key);
2528
+ const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key);
2416
2529
  const PublicInstanceProxyHandlers = {
2417
2530
  get({ _: instance }, key) {
2418
2531
  if (key === "__v_skip") return true;
@@ -2429,13 +2542,13 @@ const PublicInstanceProxyHandlers = {
2429
2542
  else if (hasSetupBinding(setupState, key)) {
2430
2543
  accessCache[key] = 1;
2431
2544
  return setupState[key];
2432
- } else if (__VUE_OPTIONS_API__ && data !== EMPTY_OBJ && hasOwn$1(data, key)) {
2545
+ } else if (__VUE_OPTIONS_API__ && data !== EMPTY_OBJ && hasOwn(data, key)) {
2433
2546
  accessCache[key] = 2;
2434
2547
  return data[key];
2435
- } else if (hasOwn$1(props, key)) {
2548
+ } else if (hasOwn(props, key)) {
2436
2549
  accessCache[key] = 3;
2437
2550
  return props[key];
2438
- } else if (ctx !== EMPTY_OBJ && hasOwn$1(ctx, key)) {
2551
+ } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {
2439
2552
  accessCache[key] = 4;
2440
2553
  return ctx[key];
2441
2554
  } else if (!__VUE_OPTIONS_API__ || shouldCacheAccess) accessCache[key] = 0;
@@ -2449,12 +2562,12 @@ const PublicInstanceProxyHandlers = {
2449
2562
  } else if (!!(process.env.NODE_ENV !== "production") && key === "$slots") track(instance, "get", key);
2450
2563
  return publicGetter(instance);
2451
2564
  } else if ((cssModule = type.__cssModules) && (cssModule = cssModule[key])) return cssModule;
2452
- else if (ctx !== EMPTY_OBJ && hasOwn$1(ctx, key)) {
2565
+ else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {
2453
2566
  accessCache[key] = 4;
2454
2567
  return ctx[key];
2455
- } else if (globalProperties = appContext.config.globalProperties, hasOwn$1(globalProperties, key)) return globalProperties[key];
2568
+ } else if (globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key)) return globalProperties[key];
2456
2569
  else if (!!(process.env.NODE_ENV !== "production") && currentRenderingInstance && (!isString(key) || key.indexOf("__v") !== 0)) {
2457
- if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn$1(data, key)) warn$1(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`);
2570
+ if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) warn$1(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`);
2458
2571
  else if (instance === currentRenderingInstance) warn$1(`Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.`);
2459
2572
  }
2460
2573
  },
@@ -2463,13 +2576,13 @@ const PublicInstanceProxyHandlers = {
2463
2576
  if (hasSetupBinding(setupState, key)) {
2464
2577
  setupState[key] = value;
2465
2578
  return true;
2466
- } else if (!!(process.env.NODE_ENV !== "production") && setupState.__isScriptSetup && hasOwn$1(setupState, key)) {
2579
+ } else if (!!(process.env.NODE_ENV !== "production") && setupState.__isScriptSetup && hasOwn(setupState, key)) {
2467
2580
  warn$1(`Cannot mutate <script setup> binding "${key}" from Options API.`);
2468
2581
  return false;
2469
- } else if (__VUE_OPTIONS_API__ && data !== EMPTY_OBJ && hasOwn$1(data, key)) {
2582
+ } else if (__VUE_OPTIONS_API__ && data !== EMPTY_OBJ && hasOwn(data, key)) {
2470
2583
  data[key] = value;
2471
2584
  return true;
2472
- } else if (hasOwn$1(instance.props, key)) {
2585
+ } else if (hasOwn(instance.props, key)) {
2473
2586
  process.env.NODE_ENV !== "production" && warn$1(`Attempting to mutate prop "${key}". Props are readonly.`);
2474
2587
  return false;
2475
2588
  }
@@ -2486,11 +2599,11 @@ const PublicInstanceProxyHandlers = {
2486
2599
  },
2487
2600
  has({ _: { data, setupState, accessCache, ctx, appContext, props, type } }, key) {
2488
2601
  let cssModules;
2489
- return !!(accessCache[key] || __VUE_OPTIONS_API__ && data !== EMPTY_OBJ && key[0] !== "$" && hasOwn$1(data, key) || hasSetupBinding(setupState, key) || hasOwn$1(props, key) || hasOwn$1(ctx, key) || hasOwn$1(publicPropertiesMap, key) || hasOwn$1(appContext.config.globalProperties, key) || (cssModules = type.__cssModules) && cssModules[key]);
2602
+ return !!(accessCache[key] || __VUE_OPTIONS_API__ && data !== EMPTY_OBJ && key[0] !== "$" && hasOwn(data, key) || hasSetupBinding(setupState, key) || hasOwn(props, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key) || (cssModules = type.__cssModules) && cssModules[key]);
2490
2603
  },
2491
2604
  defineProperty(target, key, descriptor) {
2492
2605
  if (descriptor.get != null) target._.accessCache[key] = 0;
2493
- else if (hasOwn$1(descriptor, "value")) this.set(target, key, descriptor.value, null);
2606
+ else if (hasOwn(descriptor, "value")) this.set(target, key, descriptor.value, null);
2494
2607
  return Reflect.defineProperty(target, key, descriptor);
2495
2608
  }
2496
2609
  };
@@ -2678,7 +2791,7 @@ function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP)
2678
2791
  }
2679
2792
  }
2680
2793
  function callHook(hook, instance, type) {
2681
- callWithAsyncErrorHandling(isArray(hook) ? hook.map((h$1) => h$1.bind(instance.proxy)) : hook.bind(instance.proxy), instance, type);
2794
+ callWithAsyncErrorHandling(isArray(hook) ? hook.map((h) => h.bind(instance.proxy)) : hook.bind(instance.proxy), instance, type);
2682
2795
  }
2683
2796
  function createWatcher(raw, ctx, publicThis, key) {
2684
2797
  let getter = key.includes(".") ? createPathGetter(publicThis, key) : () => publicThis[key];
@@ -2906,7 +3019,7 @@ If you want to remount the same app, move your app creation logic into a factory
2906
3019
  } else if (!!(process.env.NODE_ENV !== "production")) warn$1(`Cannot unmount an app that is not mounted.`);
2907
3020
  },
2908
3021
  provide(key, value) {
2909
- if (!!(process.env.NODE_ENV !== "production") && key in context.provides) if (hasOwn$1(context.provides, key)) warn$1(`App already provides property with key "${String(key)}". It will be overwritten with the new value.`);
3022
+ if (!!(process.env.NODE_ENV !== "production") && key in context.provides) if (hasOwn(context.provides, key)) warn$1(`App already provides property with key "${String(key)}". It will be overwritten with the new value.`);
2910
3023
  else warn$1(`App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`);
2911
3024
  context.provides[key] = value;
2912
3025
  return app;
@@ -2925,119 +3038,6 @@ If you want to remount the same app, move your app creation logic into a factory
2925
3038
  };
2926
3039
  }
2927
3040
  let currentApp = null;
2928
- function provide(key, value) {
2929
- if (!!(process.env.NODE_ENV !== "production")) {
2930
- if (!currentInstance || currentInstance.isMounted) warn$1(`provide() can only be used inside setup().`);
2931
- }
2932
- if (currentInstance) {
2933
- let provides = currentInstance.provides;
2934
- const parentProvides = currentInstance.parent && currentInstance.parent.provides;
2935
- if (parentProvides === provides) provides = currentInstance.provides = Object.create(parentProvides);
2936
- provides[key] = value;
2937
- }
2938
- }
2939
- function inject(key, defaultValue, treatDefaultAsFactory = false) {
2940
- const instance = getCurrentInstance();
2941
- if (instance || currentApp) {
2942
- let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
2943
- if (provides && key in provides) return provides[key];
2944
- else if (arguments.length > 1) return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
2945
- else if (!!(process.env.NODE_ENV !== "production")) warn$1(`injection "${String(key)}" not found.`);
2946
- } else if (!!(process.env.NODE_ENV !== "production")) warn$1(`inject() can only be used inside setup() or functional components.`);
2947
- }
2948
- function hasInjectionContext() {
2949
- return !!(getCurrentInstance() || currentApp);
2950
- }
2951
- const ssrContextKey = Symbol.for("v-scx");
2952
- const useSSRContext = () => {
2953
- {
2954
- const ctx = inject(ssrContextKey);
2955
- if (!ctx) process.env.NODE_ENV !== "production" && warn$1(`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`);
2956
- return ctx;
2957
- }
2958
- };
2959
- function watchEffect(effect$1, options) {
2960
- return doWatch(effect$1, null, options);
2961
- }
2962
- function watch(source, cb, options) {
2963
- if (!!(process.env.NODE_ENV !== "production") && !isFunction(cb)) warn$1(`\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`);
2964
- return doWatch(source, cb, options);
2965
- }
2966
- function doWatch(source, cb, options = EMPTY_OBJ) {
2967
- const { immediate, deep, flush, once } = options;
2968
- if (!!(process.env.NODE_ENV !== "production") && !cb) {
2969
- if (immediate !== void 0) warn$1(`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`);
2970
- if (deep !== void 0) warn$1(`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`);
2971
- if (once !== void 0) warn$1(`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`);
2972
- }
2973
- const baseWatchOptions = extend({}, options);
2974
- if (!!(process.env.NODE_ENV !== "production")) baseWatchOptions.onWarn = warn$1;
2975
- const runsImmediately = cb && immediate || !cb && flush !== "post";
2976
- let ssrCleanup;
2977
- if (isInSSRComponentSetup) {
2978
- if (flush === "sync") {
2979
- const ctx = useSSRContext();
2980
- ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
2981
- } else if (!runsImmediately) {
2982
- const watchStopHandle = () => {};
2983
- watchStopHandle.stop = NOOP;
2984
- watchStopHandle.resume = NOOP;
2985
- watchStopHandle.pause = NOOP;
2986
- return watchStopHandle;
2987
- }
2988
- }
2989
- const instance = currentInstance;
2990
- baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
2991
- let isPre = false;
2992
- if (flush === "post") baseWatchOptions.scheduler = (job) => {
2993
- queuePostRenderEffect(job, instance && instance.suspense);
2994
- };
2995
- else if (flush !== "sync") {
2996
- isPre = true;
2997
- baseWatchOptions.scheduler = (job, isFirstRun) => {
2998
- if (isFirstRun) job();
2999
- else queueJob(job);
3000
- };
3001
- }
3002
- baseWatchOptions.augmentJob = (job) => {
3003
- if (cb) job.flags |= 4;
3004
- if (isPre) {
3005
- job.flags |= 2;
3006
- if (instance) {
3007
- job.id = instance.uid;
3008
- job.i = instance;
3009
- }
3010
- }
3011
- };
3012
- const watchHandle = watch$1(source, cb, baseWatchOptions);
3013
- if (isInSSRComponentSetup) {
3014
- if (ssrCleanup) ssrCleanup.push(watchHandle);
3015
- else if (runsImmediately) watchHandle();
3016
- }
3017
- return watchHandle;
3018
- }
3019
- function instanceWatch(source, value, options) {
3020
- const publicThis = this.proxy;
3021
- const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
3022
- let cb;
3023
- if (isFunction(value)) cb = value;
3024
- else {
3025
- cb = value.handler;
3026
- options = value;
3027
- }
3028
- const reset = setCurrentInstance(this);
3029
- const res = doWatch(getter, cb.bind(publicThis), options);
3030
- reset();
3031
- return res;
3032
- }
3033
- function createPathGetter(ctx, path) {
3034
- const segments = path.split(".");
3035
- return () => {
3036
- let cur = ctx;
3037
- for (let i = 0; i < segments.length && cur; i++) cur = cur[segments[i]];
3038
- return cur;
3039
- };
3040
- }
3041
3041
  const getModelModifiers = (props, modelName) => {
3042
3042
  return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize$1(modelName)}Modifiers`] || props[`${hyphenate$1(modelName)}Modifiers`];
3043
3043
  };
@@ -3111,7 +3111,7 @@ function normalizeEmitsOptions(comp, appContext, asMixin = false) {
3111
3111
  function isEmitListener(options, key) {
3112
3112
  if (!options || !isOn(key)) return false;
3113
3113
  key = key.slice(2).replace(/Once$/, "");
3114
- return hasOwn$1(options, key[0].toLowerCase() + key.slice(1)) || hasOwn$1(options, hyphenate$1(key)) || hasOwn$1(options, key);
3114
+ return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate$1(key)) || hasOwn(options, key);
3115
3115
  }
3116
3116
  let accessedAttrs = false;
3117
3117
  function markAttrsAccessed() {
@@ -3318,7 +3318,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
3318
3318
  let key = propsToUpdate[i];
3319
3319
  if (isEmitListener(instance.emitsOptions, key)) continue;
3320
3320
  const value = rawProps[key];
3321
- if (options) if (hasOwn$1(attrs, key)) {
3321
+ if (options) if (hasOwn(attrs, key)) {
3322
3322
  if (value !== attrs[key]) {
3323
3323
  attrs[key] = value;
3324
3324
  hasAttrsChanged = true;
@@ -3336,11 +3336,11 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
3336
3336
  } else {
3337
3337
  if (setFullProps(instance, rawProps, props, attrs)) hasAttrsChanged = true;
3338
3338
  let kebabKey;
3339
- for (const key in rawCurrentProps) if (!rawProps || !hasOwn$1(rawProps, key) && ((kebabKey = hyphenate$1(key)) === key || !hasOwn$1(rawProps, kebabKey))) if (options) {
3339
+ for (const key in rawCurrentProps) if (!rawProps || !hasOwn(rawProps, key) && ((kebabKey = hyphenate$1(key)) === key || !hasOwn(rawProps, kebabKey))) if (options) {
3340
3340
  if (rawPrevProps && (rawPrevProps[key] !== void 0 || rawPrevProps[kebabKey] !== void 0)) props[key] = resolvePropValue(options, rawCurrentProps, key, void 0, instance, true);
3341
3341
  } else delete props[key];
3342
3342
  if (attrs !== rawCurrentProps) {
3343
- for (const key in attrs) if (!rawProps || !hasOwn$1(rawProps, key) && true) {
3343
+ for (const key in attrs) if (!rawProps || !hasOwn(rawProps, key) && true) {
3344
3344
  delete attrs[key];
3345
3345
  hasAttrsChanged = true;
3346
3346
  }
@@ -3357,7 +3357,7 @@ function setFullProps(instance, rawProps, props, attrs) {
3357
3357
  if (isReservedProp(key)) continue;
3358
3358
  const value = rawProps[key];
3359
3359
  let camelKey;
3360
- if (options && hasOwn$1(options, camelKey = camelize$1(key))) if (!needCastKeys || !needCastKeys.includes(camelKey)) props[camelKey] = value;
3360
+ if (options && hasOwn(options, camelKey = camelize$1(key))) if (!needCastKeys || !needCastKeys.includes(camelKey)) props[camelKey] = value;
3361
3361
  else (rawCastValues || (rawCastValues = {}))[camelKey] = value;
3362
3362
  else if (!isEmitListener(instance.emitsOptions, key)) {
3363
3363
  if (!(key in attrs) || value !== attrs[key]) {
@@ -3371,7 +3371,7 @@ function setFullProps(instance, rawProps, props, attrs) {
3371
3371
  const castValues = rawCastValues || EMPTY_OBJ;
3372
3372
  for (let i = 0; i < needCastKeys.length; i++) {
3373
3373
  const key = needCastKeys[i];
3374
- props[key] = resolvePropValue(options, rawCurrentProps, key, castValues[key], instance, !hasOwn$1(castValues, key));
3374
+ props[key] = resolvePropValue(options, rawCurrentProps, key, castValues[key], instance, !hasOwn(castValues, key));
3375
3375
  }
3376
3376
  }
3377
3377
  return hasAttrsChanged;
@@ -3379,7 +3379,7 @@ function setFullProps(instance, rawProps, props, attrs) {
3379
3379
  function resolvePropValue(options, props, key, value, instance, isAbsent) {
3380
3380
  const opt = options[key];
3381
3381
  if (opt != null) {
3382
- const hasDefault = hasOwn$1(opt, "default");
3382
+ const hasDefault = hasOwn(opt, "default");
3383
3383
  if (hasDefault && value === void 0) {
3384
3384
  const defaultValue = opt.default;
3385
3385
  if (opt.type !== Function && !opt.skipFactory && isFunction(defaultValue)) {
@@ -3450,7 +3450,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
3450
3450
  else shouldCast = isFunction(propType) && propType.name === "Boolean";
3451
3451
  prop[0] = shouldCast;
3452
3452
  prop[1] = shouldCastTrue;
3453
- if (shouldCast || hasOwn$1(prop, "default")) needCastKeys.push(normalizedKey);
3453
+ if (shouldCast || hasOwn(prop, "default")) needCastKeys.push(normalizedKey);
3454
3454
  }
3455
3455
  }
3456
3456
  }
@@ -3709,7 +3709,13 @@ function baseCreateRenderer(options, createHydrationFns) {
3709
3709
  if (n1 == null) hostInsert(n2.el = hostCreateText(n2.children), container, anchor);
3710
3710
  else {
3711
3711
  const el = n2.el = n1.el;
3712
- if (n2.children !== n1.children) hostSetText(el, n2.children);
3712
+ if (n2.children !== n1.children) if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
3713
+ const childNodes = container.childNodes;
3714
+ const newChild = hostCreateText(n2.children);
3715
+ const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
3716
+ hostInsert(newChild, container, oldChild);
3717
+ hostRemove(oldChild);
3718
+ } else hostSetText(el, n2.children);
3713
3719
  }
3714
3720
  };
3715
3721
  const processCommentNode = (n1, n2, container, anchor) => {
@@ -3887,7 +3893,7 @@ function baseCreateRenderer(options, createHydrationFns) {
3887
3893
  hostInsert(fragmentStartAnchor, container, anchor);
3888
3894
  hostInsert(fragmentEndAnchor, container, anchor);
3889
3895
  mountChildren(n2.children || [], container, fragmentEndAnchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
3890
- } else if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && n1.dynamicChildren) {
3896
+ } else if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
3891
3897
  patchBlockChildren(n1.dynamicChildren, dynamicChildren, container, parentComponent, parentSuspense, namespace, slotScopeIds);
3892
3898
  if (!!(process.env.NODE_ENV !== "production")) traverseStaticChildren(n1, n2);
3893
3899
  else if (n2.key != null || parentComponent && n2 === parentComponent.subTree) traverseStaticChildren(n1, n2, true);
@@ -4024,17 +4030,17 @@ function baseCreateRenderer(options, createHydrationFns) {
4024
4030
  }
4025
4031
  };
4026
4032
  instance.scope.on();
4027
- const effect$1 = instance.effect = new ReactiveEffect(componentUpdateFn);
4033
+ const effect = instance.effect = new ReactiveEffect(componentUpdateFn);
4028
4034
  instance.scope.off();
4029
- const update = instance.update = effect$1.run.bind(effect$1);
4030
- const job = instance.job = effect$1.runIfDirty.bind(effect$1);
4035
+ const update = instance.update = effect.run.bind(effect);
4036
+ const job = instance.job = effect.runIfDirty.bind(effect);
4031
4037
  job.i = instance;
4032
4038
  job.id = instance.uid;
4033
- effect$1.scheduler = () => queueJob(job);
4039
+ effect.scheduler = () => queueJob(job);
4034
4040
  toggleRecurse(instance, true);
4035
4041
  if (!!(process.env.NODE_ENV !== "production")) {
4036
- effect$1.onTrack = instance.rtc ? (e) => invokeArrayFns(instance.rtc, e) : void 0;
4037
- effect$1.onTrigger = instance.rtg ? (e) => invokeArrayFns(instance.rtg, e) : void 0;
4042
+ effect.onTrack = instance.rtc ? (e) => invokeArrayFns(instance.rtc, e) : void 0;
4043
+ effect.onTrigger = instance.rtg ? (e) => invokeArrayFns(instance.rtg, e) : void 0;
4038
4044
  }
4039
4045
  update();
4040
4046
  };
@@ -4165,7 +4171,7 @@ function baseCreateRenderer(options, createHydrationFns) {
4165
4171
  const nextIndex = s2 + i;
4166
4172
  const nextChild = c2[nextIndex];
4167
4173
  const anchorVNode = c2[nextIndex + 1];
4168
- const anchor = nextIndex + 1 < l2 ? anchorVNode.el || anchorVNode.placeholder : parentAnchor;
4174
+ const anchor = nextIndex + 1 < l2 ? anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode) : parentAnchor;
4169
4175
  if (newIndexToOldIndexMap[i] === 0) patch(null, nextChild, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
4170
4176
  else if (moved) if (j < 0 || i !== increasingNewIndexSequence[j]) move(nextChild, container, anchor, 2);
4171
4177
  else j--;
@@ -4315,13 +4321,17 @@ function baseCreateRenderer(options, createHydrationFns) {
4315
4321
  };
4316
4322
  let isFlushing = false;
4317
4323
  const render$1 = (vnode, container, namespace) => {
4324
+ let instance;
4318
4325
  if (vnode == null) {
4319
- if (container._vnode) unmount(container._vnode, null, null, true);
4326
+ if (container._vnode) {
4327
+ unmount(container._vnode, null, null, true);
4328
+ instance = container._vnode.component;
4329
+ }
4320
4330
  } else patch(container._vnode || null, vnode, container, null, null, null, namespace);
4321
4331
  container._vnode = vnode;
4322
4332
  if (!isFlushing) {
4323
4333
  isFlushing = true;
4324
- flushPreFlushCbs();
4334
+ flushPreFlushCbs(instance);
4325
4335
  flushPostFlushCbs();
4326
4336
  isFlushing = false;
4327
4337
  }
@@ -4350,12 +4360,12 @@ function baseCreateRenderer(options, createHydrationFns) {
4350
4360
  function resolveChildrenNamespace({ type, props }, currentNamespace) {
4351
4361
  return currentNamespace === "svg" && type === "foreignObject" || currentNamespace === "mathml" && type === "annotation-xml" && props && props.encoding && props.encoding.includes("html") ? void 0 : currentNamespace;
4352
4362
  }
4353
- function toggleRecurse({ effect: effect$1, job }, allowed) {
4363
+ function toggleRecurse({ effect, job }, allowed) {
4354
4364
  if (allowed) {
4355
- effect$1.flags |= 32;
4365
+ effect.flags |= 32;
4356
4366
  job.flags |= 4;
4357
4367
  } else {
4358
- effect$1.flags &= -33;
4368
+ effect.flags &= -33;
4359
4369
  job.flags &= -5;
4360
4370
  }
4361
4371
  }
@@ -4375,7 +4385,8 @@ function traverseStaticChildren(n1, n2, shallow = false) {
4375
4385
  }
4376
4386
  if (!shallow && c2.patchFlag !== -2) traverseStaticChildren(c1, c2);
4377
4387
  }
4378
- if (c2.type === Text && c2.patchFlag !== -1) c2.el = c1.el;
4388
+ if (c2.type === Text) if (c2.patchFlag !== -1) c2.el = c1.el;
4389
+ else c2.__elIndex = i + (n1.type === Fragment ? 1 : 0);
4379
4390
  if (c2.type === Comment && !c2.el) c2.el = c1.el;
4380
4391
  if (!!(process.env.NODE_ENV !== "production")) c2.el && (c2.el.__vnode = c2);
4381
4392
  }
@@ -4423,16 +4434,22 @@ function locateNonHydratedAsyncRoot(instance) {
4423
4434
  function invalidateMount(hooks) {
4424
4435
  if (hooks) for (let i = 0; i < hooks.length; i++) hooks[i].flags |= 8;
4425
4436
  }
4437
+ function resolveAsyncComponentPlaceholder(anchorVnode) {
4438
+ if (anchorVnode.placeholder) return anchorVnode.placeholder;
4439
+ const instance = anchorVnode.component;
4440
+ if (instance) return resolveAsyncComponentPlaceholder(instance.subTree);
4441
+ return null;
4442
+ }
4426
4443
  const isSuspense = (type) => type.__isSuspense;
4427
4444
  function queueEffectWithSuspense(fn, suspense) {
4428
4445
  if (suspense && suspense.pendingBranch) if (isArray(fn)) suspense.effects.push(...fn);
4429
4446
  else suspense.effects.push(fn);
4430
4447
  else queuePostFlushCb(fn);
4431
4448
  }
4432
- const Fragment = Symbol.for("v-fgt");
4433
- const Text = Symbol.for("v-txt");
4434
- const Comment = Symbol.for("v-cmt");
4435
- const Static = Symbol.for("v-stc");
4449
+ const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
4450
+ const Text = /* @__PURE__ */ Symbol.for("v-txt");
4451
+ const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
4452
+ const Static = /* @__PURE__ */ Symbol.for("v-stc");
4436
4453
  const blockStack = [];
4437
4454
  let currentBlock = null;
4438
4455
  function openBlock(disableTracking = false) {
@@ -5158,15 +5175,15 @@ function initCustomFormatter() {
5158
5175
  if (window.devtoolsFormatters) window.devtoolsFormatters.push(formatter);
5159
5176
  else window.devtoolsFormatters = [formatter];
5160
5177
  }
5161
- const version = "3.5.25";
5178
+ const version = "3.5.26";
5162
5179
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
5163
5180
  const devtools = (process.env.NODE_ENV, devtools$1);
5164
5181
  const setDevtoolsHook = (process.env.NODE_ENV, setDevtoolsHook$1);
5165
5182
 
5166
5183
  //#endregion
5167
- //#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.25/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
5184
+ //#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.26/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
5168
5185
  /**
5169
- * @vue/runtime-dom v3.5.25
5186
+ * @vue/runtime-dom v3.5.26
5170
5187
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
5171
5188
  * @license MIT
5172
5189
  **/
@@ -5228,7 +5245,7 @@ const nodeOps = {
5228
5245
  return [before ? before.nextSibling : parent.firstChild, anchor ? anchor.previousSibling : parent.lastChild];
5229
5246
  }
5230
5247
  };
5231
- const vtcKey = Symbol("_vtc");
5248
+ const vtcKey = /* @__PURE__ */ Symbol("_vtc");
5232
5249
  function patchClass(el, value, isSVG) {
5233
5250
  const transitionClasses = el[vtcKey];
5234
5251
  if (transitionClasses) value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(" ");
@@ -5236,8 +5253,8 @@ function patchClass(el, value, isSVG) {
5236
5253
  else if (isSVG) el.setAttribute("class", value);
5237
5254
  else el.className = value;
5238
5255
  }
5239
- const vShowOriginalDisplay = Symbol("_vod");
5240
- const vShowHidden = Symbol("_vsh");
5256
+ const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
5257
+ const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
5241
5258
  const vShow = {
5242
5259
  name: "show",
5243
5260
  beforeMount(el, { value }, { transition }) {
@@ -5267,7 +5284,7 @@ function setDisplay(el, value) {
5267
5284
  el.style.display = value ? el[vShowOriginalDisplay] : "none";
5268
5285
  el[vShowHidden] = !value;
5269
5286
  }
5270
- const CSS_VAR_TEXT = Symbol(!!(process.env.NODE_ENV !== "production") ? "CSS_VAR_TEXT" : "");
5287
+ const CSS_VAR_TEXT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? "CSS_VAR_TEXT" : "");
5271
5288
  const displayRE = /(?:^|;)\s*display\s*:/;
5272
5289
  function patchStyle(el, prev, next) {
5273
5290
  const style = el.style;
@@ -5378,7 +5395,7 @@ function addEventListener(el, event, handler, options) {
5378
5395
  function removeEventListener(el, event, handler, options) {
5379
5396
  el.removeEventListener(event, handler, options);
5380
5397
  }
5381
- const veiKey = Symbol("_vei");
5398
+ const veiKey = /* @__PURE__ */ Symbol("_vei");
5382
5399
  function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
5383
5400
  const invokers = el[veiKey] || (el[veiKey] = {});
5384
5401
  const existingInvoker = invokers[rawName];
@@ -5606,7 +5623,7 @@ var VueElement = class VueElement extends BaseClass {
5606
5623
  this._app.mount(this._root);
5607
5624
  const exposed = this._instance && this._instance.exposed;
5608
5625
  if (!exposed) return;
5609
- for (const key in exposed) if (!hasOwn$1(this, key)) Object.defineProperty(this, key, { get: () => unref(exposed[key]) });
5626
+ for (const key in exposed) if (!hasOwn(this, key)) Object.defineProperty(this, key, { get: () => unref(exposed[key]) });
5610
5627
  else if (!!(process.env.NODE_ENV !== "production")) warn(`Exposed property "${key}" already exists on custom element.`);
5611
5628
  }
5612
5629
  _resolveProps(def$1) {
@@ -5910,9 +5927,9 @@ function normalizeContainer(container) {
5910
5927
  }
5911
5928
 
5912
5929
  //#endregion
5913
- //#region ../../node_modules/.pnpm/vue@3.5.25_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
5930
+ //#region ../../node_modules/.pnpm/vue@3.5.26_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
5914
5931
  /**
5915
- * vue v3.5.25
5932
+ * vue v3.5.26
5916
5933
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
5917
5934
  * @license MIT
5918
5935
  **/
@@ -5922,7 +5939,7 @@ function initDev() {
5922
5939
  if (!!(process.env.NODE_ENV !== "production")) initDev();
5923
5940
 
5924
5941
  //#endregion
5925
- //#region ../../node_modules/.pnpm/@vueuse+shared@14.1.0_vue@3.5.25_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
5942
+ //#region ../../node_modules/.pnpm/@vueuse+shared@14.1.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
5926
5943
  /**
5927
5944
  * Call onScopeDispose() if it's inside an effect scope lifecycle, if not, do nothing
5928
5945
  *
@@ -6137,7 +6154,7 @@ function watchImmediate(source, cb, options) {
6137
6154
  }
6138
6155
 
6139
6156
  //#endregion
6140
- //#region ../../node_modules/.pnpm/@vueuse+core@14.1.0_vue@3.5.25_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js
6157
+ //#region ../../node_modules/.pnpm/@vueuse+core@14.1.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js
6141
6158
  const defaultWindow = isClient ? window : void 0;
6142
6159
  const defaultDocument = isClient ? window.document : void 0;
6143
6160
  const defaultNavigator = isClient ? window.navigator : void 0;
@@ -6236,14 +6253,14 @@ function useMutationObserver(target, callback, options = {}) {
6236
6253
  const takeRecords = () => {
6237
6254
  return observer === null || observer === void 0 ? void 0 : observer.takeRecords();
6238
6255
  };
6239
- const stop$1 = () => {
6256
+ const stop = () => {
6240
6257
  stopWatch();
6241
6258
  cleanup();
6242
6259
  };
6243
- tryOnScopeDispose(stop$1);
6260
+ tryOnScopeDispose(stop);
6244
6261
  return {
6245
6262
  isSupported: isSupported$1,
6246
- stop: stop$1,
6263
+ stop,
6247
6264
  takeRecords
6248
6265
  };
6249
6266
  }
@@ -6523,14 +6540,14 @@ function useResizeObserver(target, callback, options = {}) {
6523
6540
  immediate: true,
6524
6541
  flush: "post"
6525
6542
  });
6526
- const stop$1 = () => {
6543
+ const stop = () => {
6527
6544
  cleanup();
6528
6545
  stopWatch();
6529
6546
  };
6530
- tryOnScopeDispose(stop$1);
6547
+ tryOnScopeDispose(stop);
6531
6548
  return {
6532
6549
  isSupported: isSupported$1,
6533
- stop: stop$1
6550
+ stop
6534
6551
  };
6535
6552
  }
6536
6553
  /**
@@ -6733,6 +6750,16 @@ function useWindowSize(options = {}) {
6733
6750
  };
6734
6751
  }
6735
6752
 
6753
+ //#endregion
6754
+ //#region src/client/webcomponents/constants.ts
6755
+ const BUILTIN_ENTRY_CLIENT_AUTH_NOTICE = Object.freeze({
6756
+ type: "~builtin",
6757
+ id: "~client-auth-notice",
6758
+ title: "Unauthorized",
6759
+ icon: "i-fluent-emoji-flat-warning"
6760
+ });
6761
+ const BUILTIN_ENTRIES = Object.freeze([BUILTIN_ENTRY_CLIENT_AUTH_NOTICE]);
6762
+
6736
6763
  //#endregion
6737
6764
  //#region src/client/webcomponents/state/docks.ts
6738
6765
  function DEFAULT_DOCK_PANEL_STORE() {
@@ -6757,14 +6784,14 @@ function createDockEntryState(entry, selected) {
6757
6784
  events: markRaw(events)
6758
6785
  });
6759
6786
  watch(() => selected.value?.id, (newSelectedId) => {
6760
- if (newSelectedId === entry.id) events.emitOnce("entry:activated");
6761
- else events.emitOnce("entry:deactivated");
6787
+ if (newSelectedId === entry.id) events.emit("entry:activated");
6788
+ else events.emit("entry:deactivated");
6762
6789
  }, { immediate: true });
6763
6790
  watch(() => state.domElements.iframe, (newIframe) => {
6764
- if (newIframe) events.emitOnce("dom:iframe:mounted", newIframe);
6791
+ if (newIframe) events.emit("dom:iframe:mounted", newIframe);
6765
6792
  }, { immediate: true });
6766
6793
  watch(() => state.domElements.panel, (newPanel) => {
6767
- if (newPanel) events.emitOnce("dom:panel:mounted", newPanel);
6794
+ if (newPanel) events.emit("dom:panel:mounted", newPanel);
6768
6795
  }, { immediate: true });
6769
6796
  return state;
6770
6797
  }
@@ -6773,9 +6800,16 @@ async function useDocksEntries(rpc) {
6773
6800
  if (_docksEntriesRef) return _docksEntriesRef;
6774
6801
  const dockEntries = _docksEntriesRef = shallowRef([]);
6775
6802
  async function updateDocksEntries() {
6803
+ if (!rpc.isTrusted) {
6804
+ console.warn("[VITE DEVTOOLS] Untrusted client, skipping docks entries update");
6805
+ return;
6806
+ }
6776
6807
  dockEntries.value = (await rpc.call("vite:internal:docks:list")).map((entry) => Object.freeze(entry));
6777
6808
  console.log("[VITE DEVTOOLS] Docks Entries Updated", [...dockEntries.value]);
6778
6809
  }
6810
+ rpc.events.on("rpc:is-trusted:updated", (isTrusted) => {
6811
+ if (isTrusted) updateDocksEntries();
6812
+ });
6779
6813
  rpc.client.register({
6780
6814
  name: "vite:internal:docks:updated",
6781
6815
  type: "action",
@@ -6786,4 +6820,4 @@ async function useDocksEntries(rpc) {
6786
6820
  }
6787
6821
 
6788
6822
  //#endregion
6789
- export { watchEffect as A, normalizeStyle as B, onMounted as C, renderSlot as D, renderList as E, ref as F, shallowRef as I, toRefs$1 as L, withDirectives as M, markRaw as N, useTemplateRef as O, reactive as P, unref as R, nextTick as S, openBlock as T, toDisplayString as V, createCommentVNode as _, useEventListener as a, createVNode as b, useWindowSize as c, vShow as d, withModifiers as f, createBlock as g, createBaseVNode as h, useElementBounding as i, withCtx as j, watch as k, watchImmediate as l, computed as m, createDockEntryState as n, useLocalStorage as o, Fragment as p, useDocksEntries as r, useScreenSafeArea as s, DEFAULT_DOCK_PANEL_STORE as t, defineCustomElement as u, createElementBlock as v, onUnmounted as w, defineComponent as x, createStaticVNode as y, normalizeClass as z };
6823
+ export { useTemplateRef as A, unref as B, defineComponent as C, openBlock as D, onUnmounted as E, markRaw as F, normalizeStyle as H, reactive as I, ref as L, watchEffect as M, withCtx as N, renderList as O, withDirectives as P, shallowRef as R, createVNode as S, onMounted as T, toDisplayString as U, normalizeClass as V, createBaseVNode as _, BUILTIN_ENTRY_CLIENT_AUTH_NOTICE as a, createElementBlock as b, useLocalStorage as c, watchImmediate as d, defineCustomElement as f, computed as g, Fragment as h, BUILTIN_ENTRIES as i, watch as j, renderSlot as k, useScreenSafeArea as l, withModifiers as m, createDockEntryState as n, useElementBounding as o, vShow as p, useDocksEntries as r, useEventListener as s, DEFAULT_DOCK_PANEL_STORE as t, useWindowSize as u, createBlock as v, nextTick as w, createStaticVNode as x, createCommentVNode as y, toRefs as z };