@vue/compat 3.5.17 → 3.5.19
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/vue.cjs.js +138 -113
- package/dist/vue.cjs.prod.js +98 -96
- package/dist/vue.esm-browser.js +134 -112
- package/dist/vue.esm-browser.prod.js +8 -8
- package/dist/vue.esm-bundler.js +135 -113
- package/dist/vue.global.js +134 -112
- package/dist/vue.global.prod.js +8 -8
- package/dist/vue.runtime.esm-browser.js +121 -93
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +122 -94
- package/dist/vue.runtime.global.js +121 -93
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.19
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -56,10 +56,10 @@ const isBuiltInDirective = /* @__PURE__ */ makeMap(
|
|
|
56
56
|
);
|
|
57
57
|
const cacheStringFunction = (fn) => {
|
|
58
58
|
const cache = /* @__PURE__ */ Object.create(null);
|
|
59
|
-
return (str) => {
|
|
59
|
+
return ((str) => {
|
|
60
60
|
const hit = cache[str];
|
|
61
61
|
return hit || (cache[str] = fn(str));
|
|
62
|
-
};
|
|
62
|
+
});
|
|
63
63
|
};
|
|
64
64
|
const camelizeRE = /-(\w)/g;
|
|
65
65
|
const camelize = cacheStringFunction(
|
|
@@ -311,6 +311,24 @@ const stringifySymbol = (v, i = "") => {
|
|
|
311
311
|
);
|
|
312
312
|
};
|
|
313
313
|
|
|
314
|
+
function normalizeCssVarValue(value) {
|
|
315
|
+
if (value == null) {
|
|
316
|
+
return "initial";
|
|
317
|
+
}
|
|
318
|
+
if (typeof value === "string") {
|
|
319
|
+
return value === "" ? " " : value;
|
|
320
|
+
}
|
|
321
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
322
|
+
{
|
|
323
|
+
console.warn(
|
|
324
|
+
"[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:",
|
|
325
|
+
value
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
return String(value);
|
|
330
|
+
}
|
|
331
|
+
|
|
314
332
|
function warn$2(msg, ...args) {
|
|
315
333
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
316
334
|
}
|
|
@@ -1274,7 +1292,13 @@ class MutableReactiveHandler extends BaseReactiveHandler {
|
|
|
1274
1292
|
}
|
|
1275
1293
|
if (!isArray(target) && isRef(oldValue) && !isRef(value)) {
|
|
1276
1294
|
if (isOldValueReadonly) {
|
|
1277
|
-
|
|
1295
|
+
{
|
|
1296
|
+
warn$2(
|
|
1297
|
+
`Set operation on key "${String(key)}" failed: target is readonly.`,
|
|
1298
|
+
target[key]
|
|
1299
|
+
);
|
|
1300
|
+
}
|
|
1301
|
+
return true;
|
|
1278
1302
|
} else {
|
|
1279
1303
|
oldValue.value = value;
|
|
1280
1304
|
return true;
|
|
@@ -2641,7 +2665,9 @@ function rerender(id, newRender) {
|
|
|
2641
2665
|
}
|
|
2642
2666
|
instance.renderCache = [];
|
|
2643
2667
|
isHmrUpdating = true;
|
|
2644
|
-
instance.
|
|
2668
|
+
if (!(instance.job.flags & 8)) {
|
|
2669
|
+
instance.update();
|
|
2670
|
+
}
|
|
2645
2671
|
isHmrUpdating = false;
|
|
2646
2672
|
});
|
|
2647
2673
|
}
|
|
@@ -4233,7 +4259,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4233
4259
|
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
4234
4260
|
const setupState = owner.setupState;
|
|
4235
4261
|
const rawSetupState = toRaw(setupState);
|
|
4236
|
-
const canSetSetupRef = setupState === EMPTY_OBJ ?
|
|
4262
|
+
const canSetSetupRef = setupState === EMPTY_OBJ ? NO : (key) => {
|
|
4237
4263
|
{
|
|
4238
4264
|
if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) {
|
|
4239
4265
|
warn$1(
|
|
@@ -4246,6 +4272,9 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4246
4272
|
}
|
|
4247
4273
|
return hasOwn(rawSetupState, key);
|
|
4248
4274
|
};
|
|
4275
|
+
const canSetRef = (ref2) => {
|
|
4276
|
+
return !knownTemplateRefs.has(ref2);
|
|
4277
|
+
};
|
|
4249
4278
|
if (oldRef != null && oldRef !== ref) {
|
|
4250
4279
|
if (isString(oldRef)) {
|
|
4251
4280
|
refs[oldRef] = null;
|
|
@@ -4253,7 +4282,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4253
4282
|
setupState[oldRef] = null;
|
|
4254
4283
|
}
|
|
4255
4284
|
} else if (isRef(oldRef)) {
|
|
4256
|
-
oldRef
|
|
4285
|
+
if (canSetRef(oldRef)) {
|
|
4286
|
+
oldRef.value = null;
|
|
4287
|
+
}
|
|
4288
|
+
const oldRawRefAtom = oldRawRef;
|
|
4289
|
+
if (oldRawRefAtom.k) refs[oldRawRefAtom.k] = null;
|
|
4257
4290
|
}
|
|
4258
4291
|
}
|
|
4259
4292
|
if (isFunction(ref)) {
|
|
@@ -4264,7 +4297,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4264
4297
|
if (_isString || _isRef) {
|
|
4265
4298
|
const doSet = () => {
|
|
4266
4299
|
if (rawRef.f) {
|
|
4267
|
-
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
4300
|
+
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : canSetRef(ref) || !rawRef.k ? ref.value : refs[rawRef.k];
|
|
4268
4301
|
if (isUnmount) {
|
|
4269
4302
|
isArray(existing) && remove(existing, refValue);
|
|
4270
4303
|
} else {
|
|
@@ -4275,8 +4308,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4275
4308
|
setupState[ref] = refs[ref];
|
|
4276
4309
|
}
|
|
4277
4310
|
} else {
|
|
4278
|
-
|
|
4279
|
-
if (
|
|
4311
|
+
const newVal = [refValue];
|
|
4312
|
+
if (canSetRef(ref)) {
|
|
4313
|
+
ref.value = newVal;
|
|
4314
|
+
}
|
|
4315
|
+
if (rawRef.k) refs[rawRef.k] = newVal;
|
|
4280
4316
|
}
|
|
4281
4317
|
} else if (!existing.includes(refValue)) {
|
|
4282
4318
|
existing.push(refValue);
|
|
@@ -4288,7 +4324,9 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4288
4324
|
setupState[ref] = value;
|
|
4289
4325
|
}
|
|
4290
4326
|
} else if (_isRef) {
|
|
4291
|
-
ref
|
|
4327
|
+
if (canSetRef(ref)) {
|
|
4328
|
+
ref.value = value;
|
|
4329
|
+
}
|
|
4292
4330
|
if (rawRef.k) refs[rawRef.k] = value;
|
|
4293
4331
|
} else {
|
|
4294
4332
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
@@ -4909,10 +4947,8 @@ function resolveCssVars(instance, vnode, expectedMap) {
|
|
|
4909
4947
|
if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
|
|
4910
4948
|
const cssVars = instance.getCssVars();
|
|
4911
4949
|
for (const key in cssVars) {
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
String(cssVars[key])
|
|
4915
|
-
);
|
|
4950
|
+
const value = normalizeCssVarValue(cssVars[key]);
|
|
4951
|
+
expectedMap.set(`--${getEscapedCssVarName(key)}`, value);
|
|
4916
4952
|
}
|
|
4917
4953
|
}
|
|
4918
4954
|
if (vnode === root && instance.parent) {
|
|
@@ -5101,16 +5137,19 @@ function defineAsyncComponent(source) {
|
|
|
5101
5137
|
__asyncLoader: load,
|
|
5102
5138
|
__asyncHydrate(el, instance, hydrate) {
|
|
5103
5139
|
let patched = false;
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5140
|
+
(instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
5141
|
+
const performHydrate = () => {
|
|
5142
|
+
if (patched) {
|
|
5143
|
+
{
|
|
5107
5144
|
warn$1(
|
|
5108
|
-
`Skipping lazy hydration for component '${getComponentName(resolvedComp)}': it was updated before lazy hydration performed.`
|
|
5145
|
+
`Skipping lazy hydration for component '${getComponentName(resolvedComp) || resolvedComp.__file}': it was updated before lazy hydration performed.`
|
|
5109
5146
|
);
|
|
5110
|
-
return;
|
|
5111
5147
|
}
|
|
5112
|
-
|
|
5113
|
-
}
|
|
5148
|
+
return;
|
|
5149
|
+
}
|
|
5150
|
+
hydrate();
|
|
5151
|
+
};
|
|
5152
|
+
const doHydrate = hydrateStrategy ? () => {
|
|
5114
5153
|
const teardown = hydrateStrategy(
|
|
5115
5154
|
performHydrate,
|
|
5116
5155
|
(cb) => forEachElement(el, cb)
|
|
@@ -5118,8 +5157,7 @@ function defineAsyncComponent(source) {
|
|
|
5118
5157
|
if (teardown) {
|
|
5119
5158
|
(instance.bum || (instance.bum = [])).push(teardown);
|
|
5120
5159
|
}
|
|
5121
|
-
|
|
5122
|
-
} : hydrate;
|
|
5160
|
+
} : performHydrate;
|
|
5123
5161
|
if (resolvedComp) {
|
|
5124
5162
|
doHydrate();
|
|
5125
5163
|
} else {
|
|
@@ -6386,10 +6424,10 @@ const PublicInstanceProxyHandlers = {
|
|
|
6386
6424
|
return true;
|
|
6387
6425
|
},
|
|
6388
6426
|
has({
|
|
6389
|
-
_: { data, setupState, accessCache, ctx, appContext, propsOptions }
|
|
6427
|
+
_: { data, setupState, accessCache, ctx, appContext, propsOptions, type }
|
|
6390
6428
|
}, key) {
|
|
6391
|
-
let normalizedProps;
|
|
6392
|
-
return !!accessCache[key] || data !== EMPTY_OBJ && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key);
|
|
6429
|
+
let normalizedProps, cssModules;
|
|
6430
|
+
return !!(accessCache[key] || data !== EMPTY_OBJ && key[0] !== "$" && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key) || (cssModules = type.__cssModules) && cssModules[key]);
|
|
6393
6431
|
},
|
|
6394
6432
|
defineProperty(target, key, descriptor) {
|
|
6395
6433
|
if (descriptor.get != null) {
|
|
@@ -6541,15 +6579,15 @@ function withDefaults(props, defaults) {
|
|
|
6541
6579
|
return null;
|
|
6542
6580
|
}
|
|
6543
6581
|
function useSlots() {
|
|
6544
|
-
return getContext().slots;
|
|
6582
|
+
return getContext("useSlots").slots;
|
|
6545
6583
|
}
|
|
6546
6584
|
function useAttrs() {
|
|
6547
|
-
return getContext().attrs;
|
|
6585
|
+
return getContext("useAttrs").attrs;
|
|
6548
6586
|
}
|
|
6549
|
-
function getContext() {
|
|
6587
|
+
function getContext(calledFunctionName) {
|
|
6550
6588
|
const i = getCurrentInstance();
|
|
6551
6589
|
if (!i) {
|
|
6552
|
-
warn$1(
|
|
6590
|
+
warn$1(`${calledFunctionName}() called without active instance.`);
|
|
6553
6591
|
}
|
|
6554
6592
|
return i.setupContext || (i.setupContext = createSetupContext(i));
|
|
6555
6593
|
}
|
|
@@ -6808,7 +6846,8 @@ function applyOptions(instance) {
|
|
|
6808
6846
|
expose.forEach((key) => {
|
|
6809
6847
|
Object.defineProperty(exposed, key, {
|
|
6810
6848
|
get: () => publicThis[key],
|
|
6811
|
-
set: (val) => publicThis[key] = val
|
|
6849
|
+
set: (val) => publicThis[key] = val,
|
|
6850
|
+
enumerable: true
|
|
6812
6851
|
});
|
|
6813
6852
|
});
|
|
6814
6853
|
} else if (!instance.exposed) {
|
|
@@ -7133,7 +7172,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7133
7172
|
return vm;
|
|
7134
7173
|
}
|
|
7135
7174
|
}
|
|
7136
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7175
|
+
Vue.version = `2.6.14-compat:${"3.5.19"}`;
|
|
7137
7176
|
Vue.config = singletonApp.config;
|
|
7138
7177
|
Vue.use = (plugin, ...options) => {
|
|
7139
7178
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -7147,22 +7186,22 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7147
7186
|
singletonApp.mixin(m);
|
|
7148
7187
|
return Vue;
|
|
7149
7188
|
};
|
|
7150
|
-
Vue.component = (name, comp) => {
|
|
7189
|
+
Vue.component = ((name, comp) => {
|
|
7151
7190
|
if (comp) {
|
|
7152
7191
|
singletonApp.component(name, comp);
|
|
7153
7192
|
return Vue;
|
|
7154
7193
|
} else {
|
|
7155
7194
|
return singletonApp.component(name);
|
|
7156
7195
|
}
|
|
7157
|
-
};
|
|
7158
|
-
Vue.directive = (name, dir) => {
|
|
7196
|
+
});
|
|
7197
|
+
Vue.directive = ((name, dir) => {
|
|
7159
7198
|
if (dir) {
|
|
7160
7199
|
singletonApp.directive(name, dir);
|
|
7161
7200
|
return Vue;
|
|
7162
7201
|
} else {
|
|
7163
7202
|
return singletonApp.directive(name);
|
|
7164
7203
|
}
|
|
7165
|
-
};
|
|
7204
|
+
});
|
|
7166
7205
|
Vue.options = { _base: Vue };
|
|
7167
7206
|
let cid = 1;
|
|
7168
7207
|
Vue.cid = cid;
|
|
@@ -7225,14 +7264,14 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7225
7264
|
assertCompatEnabled("GLOBAL_OBSERVABLE", null);
|
|
7226
7265
|
return reactive(target);
|
|
7227
7266
|
};
|
|
7228
|
-
Vue.filter = (name, filter) => {
|
|
7267
|
+
Vue.filter = ((name, filter) => {
|
|
7229
7268
|
if (filter) {
|
|
7230
7269
|
singletonApp.filter(name, filter);
|
|
7231
7270
|
return Vue;
|
|
7232
7271
|
} else {
|
|
7233
7272
|
return singletonApp.filter(name);
|
|
7234
7273
|
}
|
|
7235
|
-
};
|
|
7274
|
+
});
|
|
7236
7275
|
const util = {
|
|
7237
7276
|
warn: warn$1 ,
|
|
7238
7277
|
extend,
|
|
@@ -7725,7 +7764,7 @@ function provide(key, value) {
|
|
|
7725
7764
|
}
|
|
7726
7765
|
}
|
|
7727
7766
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
7728
|
-
const instance =
|
|
7767
|
+
const instance = getCurrentInstance();
|
|
7729
7768
|
if (instance || currentApp) {
|
|
7730
7769
|
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
7731
7770
|
if (provides && key in provides) {
|
|
@@ -7740,7 +7779,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
7740
7779
|
}
|
|
7741
7780
|
}
|
|
7742
7781
|
function hasInjectionContext() {
|
|
7743
|
-
return !!(
|
|
7782
|
+
return !!(getCurrentInstance() || currentApp);
|
|
7744
7783
|
}
|
|
7745
7784
|
|
|
7746
7785
|
function createPropsDefaultThis(instance, rawProps, propKey) {
|
|
@@ -8226,7 +8265,7 @@ function isBoolean(...args) {
|
|
|
8226
8265
|
return args.some((elem) => elem.toLowerCase() === "boolean");
|
|
8227
8266
|
}
|
|
8228
8267
|
|
|
8229
|
-
const isInternalKey = (key) => key
|
|
8268
|
+
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
8230
8269
|
const normalizeSlotValue = (value) => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)];
|
|
8231
8270
|
const normalizeSlot = (key, rawSlot, ctx) => {
|
|
8232
8271
|
if (rawSlot._n) {
|
|
@@ -8280,8 +8319,6 @@ const assignSlots = (slots, children, optimized) => {
|
|
|
8280
8319
|
const initSlots = (instance, children, optimized) => {
|
|
8281
8320
|
const slots = instance.slots = createInternalObject();
|
|
8282
8321
|
if (instance.vnode.shapeFlag & 32) {
|
|
8283
|
-
const cacheIndexes = children.__;
|
|
8284
|
-
if (cacheIndexes) def(slots, "__", cacheIndexes, true);
|
|
8285
8322
|
const type = children._;
|
|
8286
8323
|
if (type) {
|
|
8287
8324
|
assignSlots(slots, children, optimized);
|
|
@@ -8342,12 +8379,10 @@ function endMeasure(instance, type) {
|
|
|
8342
8379
|
if (instance.appContext.config.performance && isSupported()) {
|
|
8343
8380
|
const startTag = `vue-${type}-${instance.uid}`;
|
|
8344
8381
|
const endTag = startTag + `:end`;
|
|
8382
|
+
const measureName = `<${formatComponentName(instance, instance.type)}> ${type}`;
|
|
8345
8383
|
perf.mark(endTag);
|
|
8346
|
-
perf.measure(
|
|
8347
|
-
|
|
8348
|
-
startTag,
|
|
8349
|
-
endTag
|
|
8350
|
-
);
|
|
8384
|
+
perf.measure(measureName, startTag, endTag);
|
|
8385
|
+
perf.clearMeasures(measureName);
|
|
8351
8386
|
perf.clearMarks(startTag);
|
|
8352
8387
|
perf.clearMarks(endTag);
|
|
8353
8388
|
}
|
|
@@ -8969,6 +9004,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8969
9004
|
if (!initialVNode.el) {
|
|
8970
9005
|
const placeholder = instance.subTree = createVNode(Comment);
|
|
8971
9006
|
processCommentNode(null, placeholder, container, anchor);
|
|
9007
|
+
initialVNode.placeholder = placeholder.el;
|
|
8972
9008
|
}
|
|
8973
9009
|
} else {
|
|
8974
9010
|
setupRenderEffect(
|
|
@@ -9494,7 +9530,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9494
9530
|
for (i = toBePatched - 1; i >= 0; i--) {
|
|
9495
9531
|
const nextIndex = s2 + i;
|
|
9496
9532
|
const nextChild = c2[nextIndex];
|
|
9497
|
-
const
|
|
9533
|
+
const anchorVNode = c2[nextIndex + 1];
|
|
9534
|
+
const anchor = nextIndex + 1 < l2 ? (
|
|
9535
|
+
// #13559, fallback to el placeholder for unresolved async component
|
|
9536
|
+
anchorVNode.el || anchorVNode.placeholder
|
|
9537
|
+
) : parentAnchor;
|
|
9498
9538
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
9499
9539
|
patch(
|
|
9500
9540
|
null,
|
|
@@ -9559,6 +9599,12 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9559
9599
|
}
|
|
9560
9600
|
};
|
|
9561
9601
|
const performLeave = () => {
|
|
9602
|
+
if (el._isLeaving) {
|
|
9603
|
+
el[leaveCbKey](
|
|
9604
|
+
true
|
|
9605
|
+
/* cancelled */
|
|
9606
|
+
);
|
|
9607
|
+
}
|
|
9562
9608
|
leave(el, () => {
|
|
9563
9609
|
remove2();
|
|
9564
9610
|
afterLeave && afterLeave();
|
|
@@ -9704,27 +9750,12 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9704
9750
|
if (instance.type.__hmrId) {
|
|
9705
9751
|
unregisterHMR(instance);
|
|
9706
9752
|
}
|
|
9707
|
-
const {
|
|
9708
|
-
bum,
|
|
9709
|
-
scope,
|
|
9710
|
-
job,
|
|
9711
|
-
subTree,
|
|
9712
|
-
um,
|
|
9713
|
-
m,
|
|
9714
|
-
a,
|
|
9715
|
-
parent,
|
|
9716
|
-
slots: { __: slotCacheKeys }
|
|
9717
|
-
} = instance;
|
|
9753
|
+
const { bum, scope, job, subTree, um, m, a } = instance;
|
|
9718
9754
|
invalidateMount(m);
|
|
9719
9755
|
invalidateMount(a);
|
|
9720
9756
|
if (bum) {
|
|
9721
9757
|
invokeArrayFns(bum);
|
|
9722
9758
|
}
|
|
9723
|
-
if (parent && isArray(slotCacheKeys)) {
|
|
9724
|
-
slotCacheKeys.forEach((v) => {
|
|
9725
|
-
parent.renderCache[v] = void 0;
|
|
9726
|
-
});
|
|
9727
|
-
}
|
|
9728
9759
|
if (isCompatEnabled("INSTANCE_EVENT_HOOKS", instance)) {
|
|
9729
9760
|
instance.emit("hook:beforeDestroy");
|
|
9730
9761
|
}
|
|
@@ -9745,12 +9776,6 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9745
9776
|
queuePostRenderEffect(() => {
|
|
9746
9777
|
instance.isUnmounted = true;
|
|
9747
9778
|
}, parentSuspense);
|
|
9748
|
-
if (parentSuspense && parentSuspense.pendingBranch && !parentSuspense.isUnmounted && instance.asyncDep && !instance.asyncResolved && instance.suspenseId === parentSuspense.pendingId) {
|
|
9749
|
-
parentSuspense.deps--;
|
|
9750
|
-
if (parentSuspense.deps === 0) {
|
|
9751
|
-
parentSuspense.resolve();
|
|
9752
|
-
}
|
|
9753
|
-
}
|
|
9754
9779
|
{
|
|
9755
9780
|
devtoolsComponentRemoved(instance);
|
|
9756
9781
|
}
|
|
@@ -9851,7 +9876,8 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
9851
9876
|
if (!shallow && c2.patchFlag !== -2)
|
|
9852
9877
|
traverseStaticChildren(c1, c2);
|
|
9853
9878
|
}
|
|
9854
|
-
if (c2.type === Text
|
|
9879
|
+
if (c2.type === Text && // avoid cached text nodes retaining detached dom nodes
|
|
9880
|
+
c2.patchFlag !== -1) {
|
|
9855
9881
|
c2.el = c1.el;
|
|
9856
9882
|
}
|
|
9857
9883
|
if (c2.type === Comment && !c2.el) {
|
|
@@ -11489,6 +11515,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
|
|
|
11489
11515
|
suspense: vnode.suspense,
|
|
11490
11516
|
ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
|
|
11491
11517
|
ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
|
|
11518
|
+
placeholder: vnode.placeholder,
|
|
11492
11519
|
el: vnode.el,
|
|
11493
11520
|
anchor: vnode.anchor,
|
|
11494
11521
|
ctx: vnode.ctx,
|
|
@@ -12295,7 +12322,7 @@ function isMemoSame(cached, memo) {
|
|
|
12295
12322
|
return true;
|
|
12296
12323
|
}
|
|
12297
12324
|
|
|
12298
|
-
const version = "3.5.
|
|
12325
|
+
const version = "3.5.19";
|
|
12299
12326
|
const warn = warn$1 ;
|
|
12300
12327
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12301
12328
|
const devtools = devtools$1 ;
|
|
@@ -12852,8 +12879,9 @@ function setVarsOnNode(el, vars) {
|
|
|
12852
12879
|
const style = el.style;
|
|
12853
12880
|
let cssText = "";
|
|
12854
12881
|
for (const key in vars) {
|
|
12855
|
-
|
|
12856
|
-
|
|
12882
|
+
const value = normalizeCssVarValue(vars[key]);
|
|
12883
|
+
style.setProperty(`--${key}`, value);
|
|
12884
|
+
cssText += `--${key}: ${value};`;
|
|
12857
12885
|
}
|
|
12858
12886
|
style[CSS_VAR_TEXT] = cssText;
|
|
12859
12887
|
}
|
|
@@ -13239,10 +13267,10 @@ function defineCustomElement(options, extraOptions, _createApp) {
|
|
|
13239
13267
|
VueCustomElement.def = Comp;
|
|
13240
13268
|
return VueCustomElement;
|
|
13241
13269
|
}
|
|
13242
|
-
|
|
13243
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
13270
|
+
|
|
13271
|
+
const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
13244
13272
|
return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
|
|
13245
|
-
};
|
|
13273
|
+
});
|
|
13246
13274
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
13247
13275
|
};
|
|
13248
13276
|
class VueElement extends BaseClass {
|
|
@@ -14112,13 +14140,13 @@ const modifierGuards = {
|
|
|
14112
14140
|
const withModifiers = (fn, modifiers) => {
|
|
14113
14141
|
const cache = fn._withMods || (fn._withMods = {});
|
|
14114
14142
|
const cacheKey = modifiers.join(".");
|
|
14115
|
-
return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
|
|
14143
|
+
return cache[cacheKey] || (cache[cacheKey] = ((event, ...args) => {
|
|
14116
14144
|
for (let i = 0; i < modifiers.length; i++) {
|
|
14117
14145
|
const guard = modifierGuards[modifiers[i]];
|
|
14118
14146
|
if (guard && guard(event, modifiers)) return;
|
|
14119
14147
|
}
|
|
14120
14148
|
return fn(event, ...args);
|
|
14121
|
-
});
|
|
14149
|
+
}));
|
|
14122
14150
|
};
|
|
14123
14151
|
const keyNames = {
|
|
14124
14152
|
esc: "escape",
|
|
@@ -14148,7 +14176,7 @@ const withKeys = (fn, modifiers) => {
|
|
|
14148
14176
|
}
|
|
14149
14177
|
const cache = fn._withKeys || (fn._withKeys = {});
|
|
14150
14178
|
const cacheKey = modifiers.join(".");
|
|
14151
|
-
return cache[cacheKey] || (cache[cacheKey] = (event) => {
|
|
14179
|
+
return cache[cacheKey] || (cache[cacheKey] = ((event) => {
|
|
14152
14180
|
if (!("key" in event)) {
|
|
14153
14181
|
return;
|
|
14154
14182
|
}
|
|
@@ -14178,7 +14206,7 @@ const withKeys = (fn, modifiers) => {
|
|
|
14178
14206
|
}
|
|
14179
14207
|
}
|
|
14180
14208
|
}
|
|
14181
|
-
});
|
|
14209
|
+
}));
|
|
14182
14210
|
};
|
|
14183
14211
|
|
|
14184
14212
|
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
|
@@ -14192,13 +14220,13 @@ function ensureHydrationRenderer() {
|
|
|
14192
14220
|
enabledHydration = true;
|
|
14193
14221
|
return renderer;
|
|
14194
14222
|
}
|
|
14195
|
-
const render = (...args) => {
|
|
14223
|
+
const render = ((...args) => {
|
|
14196
14224
|
ensureRenderer().render(...args);
|
|
14197
|
-
};
|
|
14198
|
-
const hydrate = (...args) => {
|
|
14225
|
+
});
|
|
14226
|
+
const hydrate = ((...args) => {
|
|
14199
14227
|
ensureHydrationRenderer().hydrate(...args);
|
|
14200
|
-
};
|
|
14201
|
-
const createApp = (...args) => {
|
|
14228
|
+
});
|
|
14229
|
+
const createApp = ((...args) => {
|
|
14202
14230
|
const app = ensureRenderer().createApp(...args);
|
|
14203
14231
|
{
|
|
14204
14232
|
injectNativeTagCheck(app);
|
|
@@ -14235,8 +14263,8 @@ const createApp = (...args) => {
|
|
|
14235
14263
|
return proxy;
|
|
14236
14264
|
};
|
|
14237
14265
|
return app;
|
|
14238
|
-
};
|
|
14239
|
-
const createSSRApp = (...args) => {
|
|
14266
|
+
});
|
|
14267
|
+
const createSSRApp = ((...args) => {
|
|
14240
14268
|
const app = ensureHydrationRenderer().createApp(...args);
|
|
14241
14269
|
{
|
|
14242
14270
|
injectNativeTagCheck(app);
|
|
@@ -14250,7 +14278,7 @@ const createSSRApp = (...args) => {
|
|
|
14250
14278
|
}
|
|
14251
14279
|
};
|
|
14252
14280
|
return app;
|
|
14253
|
-
};
|
|
14281
|
+
});
|
|
14254
14282
|
function resolveRootNamespace(container) {
|
|
14255
14283
|
if (container instanceof SVGElement) {
|
|
14256
14284
|
return "svg";
|
|
@@ -14525,13 +14553,13 @@ function createCompatVue() {
|
|
|
14525
14553
|
}
|
|
14526
14554
|
|
|
14527
14555
|
const Vue = createCompatVue();
|
|
14528
|
-
Vue.compile = () => {
|
|
14556
|
+
Vue.compile = (() => {
|
|
14529
14557
|
{
|
|
14530
14558
|
warn(
|
|
14531
14559
|
`Runtime compilation is not supported in this build of Vue.` + (` Use "vue.esm-browser.js" instead.` )
|
|
14532
14560
|
);
|
|
14533
14561
|
}
|
|
14534
|
-
};
|
|
14562
|
+
});
|
|
14535
14563
|
|
|
14536
14564
|
const configureCompat = Vue.configureCompat;
|
|
14537
14565
|
|