@vue/compat 3.6.0-alpha.6 → 3.6.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -38
- package/dist/vue.cjs.js +548 -457
- package/dist/vue.cjs.prod.js +419 -348
- package/dist/vue.esm-browser.js +541 -450
- package/dist/vue.esm-browser.prod.js +8 -8
- package/dist/vue.esm-bundler.js +532 -450
- package/dist/vue.global.js +454 -363
- package/dist/vue.global.prod.js +9 -9
- package/dist/vue.runtime.esm-browser.js +541 -450
- package/dist/vue.runtime.esm-browser.prod.js +8 -8
- package/dist/vue.runtime.esm-bundler.js +532 -450
- package/dist/vue.runtime.global.js +454 -363
- package/dist/vue.runtime.global.prod.js +9 -9
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-
|
|
2
|
+
* @vue/compat v3.6.0-beta.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -839,13 +839,13 @@ class Dep {
|
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
841
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
842
|
-
const ITERATE_KEY = Symbol(
|
|
842
|
+
const ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
843
843
|
!!(process.env.NODE_ENV !== "production") ? "Object iterate" : ""
|
|
844
844
|
);
|
|
845
|
-
const MAP_KEY_ITERATE_KEY = Symbol(
|
|
845
|
+
const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
846
846
|
!!(process.env.NODE_ENV !== "production") ? "Map keys iterate" : ""
|
|
847
847
|
);
|
|
848
|
-
const ARRAY_ITERATE_KEY = Symbol(
|
|
848
|
+
const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
849
849
|
!!(process.env.NODE_ENV !== "production") ? "Array iterate" : ""
|
|
850
850
|
);
|
|
851
851
|
function track(target, type, key) {
|
|
@@ -2085,6 +2085,16 @@ class EffectScope {
|
|
|
2085
2085
|
return;
|
|
2086
2086
|
}
|
|
2087
2087
|
this.flags = 1024;
|
|
2088
|
+
this.reset();
|
|
2089
|
+
const sub = this.subs;
|
|
2090
|
+
if (sub !== void 0) {
|
|
2091
|
+
unlink(sub);
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
/**
|
|
2095
|
+
* @internal
|
|
2096
|
+
*/
|
|
2097
|
+
reset() {
|
|
2088
2098
|
let dep = this.deps;
|
|
2089
2099
|
while (dep !== void 0) {
|
|
2090
2100
|
const node = dep.dep;
|
|
@@ -2095,10 +2105,6 @@ class EffectScope {
|
|
|
2095
2105
|
dep = unlink(dep, this);
|
|
2096
2106
|
}
|
|
2097
2107
|
}
|
|
2098
|
-
const sub = this.subs;
|
|
2099
|
-
if (sub !== void 0) {
|
|
2100
|
-
unlink(sub);
|
|
2101
|
-
}
|
|
2102
2108
|
cleanup(this);
|
|
2103
2109
|
}
|
|
2104
2110
|
}
|
|
@@ -2845,10 +2851,10 @@ function flushPostFlushCbs(seen) {
|
|
|
2845
2851
|
}
|
|
2846
2852
|
}
|
|
2847
2853
|
let isFlushing = false;
|
|
2848
|
-
function flushOnAppMount() {
|
|
2854
|
+
function flushOnAppMount(instance) {
|
|
2849
2855
|
if (!isFlushing) {
|
|
2850
2856
|
isFlushing = true;
|
|
2851
|
-
flushPreFlushCbs();
|
|
2857
|
+
flushPreFlushCbs(instance);
|
|
2852
2858
|
flushPostFlushCbs();
|
|
2853
2859
|
isFlushing = false;
|
|
2854
2860
|
}
|
|
@@ -2915,6 +2921,7 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
2915
2921
|
|
|
2916
2922
|
let isHmrUpdating = false;
|
|
2917
2923
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
|
2924
|
+
const hmrDirtyComponentsMode = /* @__PURE__ */ new Map();
|
|
2918
2925
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2919
2926
|
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
2920
2927
|
createRecord: tryWrap(createRecord),
|
|
@@ -2978,9 +2985,10 @@ function reload(id, newComp) {
|
|
|
2978
2985
|
const record = map.get(id);
|
|
2979
2986
|
if (!record) return;
|
|
2980
2987
|
newComp = normalizeClassComponent(newComp);
|
|
2988
|
+
const isVapor = record.initialDef.__vapor;
|
|
2981
2989
|
updateComponentDef(record.initialDef, newComp);
|
|
2982
2990
|
const instances = [...record.instances];
|
|
2983
|
-
if (newComp.__vapor && !instances.some((i) => i.ceReload)) {
|
|
2991
|
+
if (isVapor && newComp.__vapor && !instances.some((i) => i.ceReload)) {
|
|
2984
2992
|
for (const instance of instances) {
|
|
2985
2993
|
if (instance.root && instance.root.ce && instance !== instance.root) {
|
|
2986
2994
|
instance.root.ce._removeChildStyle(instance.type);
|
|
@@ -3000,6 +3008,7 @@ function reload(id, newComp) {
|
|
|
3000
3008
|
hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());
|
|
3001
3009
|
}
|
|
3002
3010
|
dirtyInstances.add(instance);
|
|
3011
|
+
hmrDirtyComponentsMode.set(oldComp, !!isVapor);
|
|
3003
3012
|
instance.appContext.propsCache.delete(instance.type);
|
|
3004
3013
|
instance.appContext.emitsCache.delete(instance.type);
|
|
3005
3014
|
instance.appContext.optionsCache.delete(instance.type);
|
|
@@ -3040,6 +3049,7 @@ function reload(id, newComp) {
|
|
|
3040
3049
|
}
|
|
3041
3050
|
queuePostFlushCb(() => {
|
|
3042
3051
|
hmrDirtyComponents.clear();
|
|
3052
|
+
hmrDirtyComponentsMode.clear();
|
|
3043
3053
|
});
|
|
3044
3054
|
}
|
|
3045
3055
|
function updateComponentDef(oldComp, newComp) {
|
|
@@ -3581,65 +3591,6 @@ function emit$1(instance, event, args) {
|
|
|
3581
3591
|
return instance.proxy;
|
|
3582
3592
|
}
|
|
3583
3593
|
|
|
3584
|
-
const compatModelEventPrefix = `onModelCompat:`;
|
|
3585
|
-
const warnedTypes = /* @__PURE__ */ new WeakSet();
|
|
3586
|
-
function convertLegacyVModelProps(vnode) {
|
|
3587
|
-
const { type, shapeFlag, props, dynamicProps } = vnode;
|
|
3588
|
-
const comp = type;
|
|
3589
|
-
if (shapeFlag & 6 && props && "modelValue" in props) {
|
|
3590
|
-
if (!isCompatEnabled$1(
|
|
3591
|
-
"COMPONENT_V_MODEL",
|
|
3592
|
-
// this is a special case where we want to use the vnode component's
|
|
3593
|
-
// compat config instead of the current rendering instance (which is the
|
|
3594
|
-
// parent of the component that exposes v-model)
|
|
3595
|
-
{ type }
|
|
3596
|
-
)) {
|
|
3597
|
-
return;
|
|
3598
|
-
}
|
|
3599
|
-
if (!!(process.env.NODE_ENV !== "production") && !warnedTypes.has(comp)) {
|
|
3600
|
-
pushWarningContext(vnode);
|
|
3601
|
-
warnDeprecation$1("COMPONENT_V_MODEL", { type }, comp);
|
|
3602
|
-
popWarningContext();
|
|
3603
|
-
warnedTypes.add(comp);
|
|
3604
|
-
}
|
|
3605
|
-
const model = comp.model || {};
|
|
3606
|
-
applyModelFromMixins(model, comp.mixins);
|
|
3607
|
-
const { prop = "value", event = "input" } = model;
|
|
3608
|
-
if (prop !== "modelValue") {
|
|
3609
|
-
props[prop] = props.modelValue;
|
|
3610
|
-
delete props.modelValue;
|
|
3611
|
-
}
|
|
3612
|
-
if (dynamicProps) {
|
|
3613
|
-
dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
|
|
3614
|
-
}
|
|
3615
|
-
props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
|
|
3616
|
-
delete props["onUpdate:modelValue"];
|
|
3617
|
-
}
|
|
3618
|
-
}
|
|
3619
|
-
function applyModelFromMixins(model, mixins) {
|
|
3620
|
-
if (mixins) {
|
|
3621
|
-
mixins.forEach((m) => {
|
|
3622
|
-
if (m.model) extend(model, m.model);
|
|
3623
|
-
if (m.mixins) applyModelFromMixins(model, m.mixins);
|
|
3624
|
-
});
|
|
3625
|
-
}
|
|
3626
|
-
}
|
|
3627
|
-
function compatModelEmit(instance, event, args) {
|
|
3628
|
-
if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
|
|
3629
|
-
return;
|
|
3630
|
-
}
|
|
3631
|
-
const props = instance.vnode.props;
|
|
3632
|
-
const modelHandler = props && props[compatModelEventPrefix + event];
|
|
3633
|
-
if (modelHandler) {
|
|
3634
|
-
callWithErrorHandling(
|
|
3635
|
-
modelHandler,
|
|
3636
|
-
instance,
|
|
3637
|
-
6,
|
|
3638
|
-
args
|
|
3639
|
-
);
|
|
3640
|
-
}
|
|
3641
|
-
}
|
|
3642
|
-
|
|
3643
3594
|
let currentRenderingInstance = null;
|
|
3644
3595
|
let currentScopeId = null;
|
|
3645
3596
|
function setCurrentRenderingInstance(instance) {
|
|
@@ -3790,7 +3741,203 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
|
3790
3741
|
}
|
|
3791
3742
|
}
|
|
3792
3743
|
|
|
3793
|
-
|
|
3744
|
+
function provide(key, value) {
|
|
3745
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3746
|
+
if (!currentInstance || currentInstance.isMounted && !isHmrUpdating) {
|
|
3747
|
+
warn$1(`provide() can only be used inside setup().`);
|
|
3748
|
+
}
|
|
3749
|
+
}
|
|
3750
|
+
if (currentInstance) {
|
|
3751
|
+
let provides = currentInstance.provides;
|
|
3752
|
+
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
3753
|
+
if (parentProvides === provides) {
|
|
3754
|
+
provides = currentInstance.provides = Object.create(parentProvides);
|
|
3755
|
+
}
|
|
3756
|
+
provides[key] = value;
|
|
3757
|
+
}
|
|
3758
|
+
}
|
|
3759
|
+
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
3760
|
+
const instance = getCurrentGenericInstance();
|
|
3761
|
+
if (instance || currentApp) {
|
|
3762
|
+
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
|
|
3763
|
+
if (provides && key in provides) {
|
|
3764
|
+
return provides[key];
|
|
3765
|
+
} else if (arguments.length > 1) {
|
|
3766
|
+
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
3767
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3768
|
+
warn$1(`injection "${String(key)}" not found.`);
|
|
3769
|
+
}
|
|
3770
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3771
|
+
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
3772
|
+
}
|
|
3773
|
+
}
|
|
3774
|
+
function hasInjectionContext() {
|
|
3775
|
+
return !!(getCurrentGenericInstance() || currentApp);
|
|
3776
|
+
}
|
|
3777
|
+
|
|
3778
|
+
const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
|
|
3779
|
+
const useSSRContext = () => {
|
|
3780
|
+
{
|
|
3781
|
+
const ctx = inject(ssrContextKey);
|
|
3782
|
+
if (!ctx) {
|
|
3783
|
+
!!(process.env.NODE_ENV !== "production") && warn$1(
|
|
3784
|
+
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
3785
|
+
);
|
|
3786
|
+
}
|
|
3787
|
+
return ctx;
|
|
3788
|
+
}
|
|
3789
|
+
};
|
|
3790
|
+
|
|
3791
|
+
function watchEffect(effect, options) {
|
|
3792
|
+
return doWatch(effect, null, options);
|
|
3793
|
+
}
|
|
3794
|
+
function watchPostEffect(effect, options) {
|
|
3795
|
+
return doWatch(
|
|
3796
|
+
effect,
|
|
3797
|
+
null,
|
|
3798
|
+
!!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "post" }) : { flush: "post" }
|
|
3799
|
+
);
|
|
3800
|
+
}
|
|
3801
|
+
function watchSyncEffect(effect, options) {
|
|
3802
|
+
return doWatch(
|
|
3803
|
+
effect,
|
|
3804
|
+
null,
|
|
3805
|
+
!!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "sync" }) : { flush: "sync" }
|
|
3806
|
+
);
|
|
3807
|
+
}
|
|
3808
|
+
function watch(source, cb, options) {
|
|
3809
|
+
if (!!(process.env.NODE_ENV !== "production") && !isFunction(cb)) {
|
|
3810
|
+
warn$1(
|
|
3811
|
+
`\`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.`
|
|
3812
|
+
);
|
|
3813
|
+
}
|
|
3814
|
+
return doWatch(source, cb, options);
|
|
3815
|
+
}
|
|
3816
|
+
class RenderWatcherEffect extends WatcherEffect {
|
|
3817
|
+
constructor(instance, source, cb, options, flush) {
|
|
3818
|
+
super(source, cb, options);
|
|
3819
|
+
this.flush = flush;
|
|
3820
|
+
const job = () => {
|
|
3821
|
+
if (this.dirty) {
|
|
3822
|
+
this.run();
|
|
3823
|
+
}
|
|
3824
|
+
};
|
|
3825
|
+
if (cb) {
|
|
3826
|
+
this.flags |= 128;
|
|
3827
|
+
job.flags |= 2;
|
|
3828
|
+
}
|
|
3829
|
+
if (instance) {
|
|
3830
|
+
job.i = instance;
|
|
3831
|
+
}
|
|
3832
|
+
this.job = job;
|
|
3833
|
+
}
|
|
3834
|
+
notify() {
|
|
3835
|
+
const flags = this.flags;
|
|
3836
|
+
if (!(flags & 256)) {
|
|
3837
|
+
const flush = this.flush;
|
|
3838
|
+
const job = this.job;
|
|
3839
|
+
if (flush === "post") {
|
|
3840
|
+
queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
|
|
3841
|
+
} else if (flush === "pre") {
|
|
3842
|
+
queueJob(job, job.i ? job.i.uid : void 0, true);
|
|
3843
|
+
} else {
|
|
3844
|
+
job();
|
|
3845
|
+
}
|
|
3846
|
+
}
|
|
3847
|
+
}
|
|
3848
|
+
}
|
|
3849
|
+
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
3850
|
+
const { immediate, deep, flush = "pre", once } = options;
|
|
3851
|
+
if (!!(process.env.NODE_ENV !== "production") && !cb) {
|
|
3852
|
+
if (immediate !== void 0) {
|
|
3853
|
+
warn$1(
|
|
3854
|
+
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3855
|
+
);
|
|
3856
|
+
}
|
|
3857
|
+
if (deep !== void 0) {
|
|
3858
|
+
warn$1(
|
|
3859
|
+
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3860
|
+
);
|
|
3861
|
+
}
|
|
3862
|
+
if (once !== void 0) {
|
|
3863
|
+
warn$1(
|
|
3864
|
+
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3865
|
+
);
|
|
3866
|
+
}
|
|
3867
|
+
}
|
|
3868
|
+
const baseWatchOptions = extend({}, options);
|
|
3869
|
+
if (!!(process.env.NODE_ENV !== "production")) baseWatchOptions.onWarn = warn$1;
|
|
3870
|
+
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
3871
|
+
let ssrCleanup;
|
|
3872
|
+
if (isInSSRComponentSetup) {
|
|
3873
|
+
if (flush === "sync") {
|
|
3874
|
+
const ctx = useSSRContext();
|
|
3875
|
+
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
3876
|
+
} else if (!runsImmediately) {
|
|
3877
|
+
const watchStopHandle = () => {
|
|
3878
|
+
};
|
|
3879
|
+
watchStopHandle.stop = NOOP;
|
|
3880
|
+
watchStopHandle.resume = NOOP;
|
|
3881
|
+
watchStopHandle.pause = NOOP;
|
|
3882
|
+
return watchStopHandle;
|
|
3883
|
+
}
|
|
3884
|
+
}
|
|
3885
|
+
const instance = currentInstance;
|
|
3886
|
+
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
3887
|
+
const effect = new RenderWatcherEffect(
|
|
3888
|
+
instance,
|
|
3889
|
+
source,
|
|
3890
|
+
cb,
|
|
3891
|
+
baseWatchOptions,
|
|
3892
|
+
flush
|
|
3893
|
+
);
|
|
3894
|
+
if (cb) {
|
|
3895
|
+
effect.run(true);
|
|
3896
|
+
} else if (flush === "post") {
|
|
3897
|
+
queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
|
|
3898
|
+
} else {
|
|
3899
|
+
effect.run(true);
|
|
3900
|
+
}
|
|
3901
|
+
const stop = effect.stop.bind(effect);
|
|
3902
|
+
stop.pause = effect.pause.bind(effect);
|
|
3903
|
+
stop.resume = effect.resume.bind(effect);
|
|
3904
|
+
stop.stop = stop;
|
|
3905
|
+
if (isInSSRComponentSetup) {
|
|
3906
|
+
if (ssrCleanup) {
|
|
3907
|
+
ssrCleanup.push(stop);
|
|
3908
|
+
} else if (runsImmediately) {
|
|
3909
|
+
stop();
|
|
3910
|
+
}
|
|
3911
|
+
}
|
|
3912
|
+
return stop;
|
|
3913
|
+
}
|
|
3914
|
+
function instanceWatch(source, value, options) {
|
|
3915
|
+
const publicThis = this.proxy;
|
|
3916
|
+
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
3917
|
+
let cb;
|
|
3918
|
+
if (isFunction(value)) {
|
|
3919
|
+
cb = value;
|
|
3920
|
+
} else {
|
|
3921
|
+
cb = value.handler;
|
|
3922
|
+
options = value;
|
|
3923
|
+
}
|
|
3924
|
+
const prev = setCurrentInstance(this);
|
|
3925
|
+
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
3926
|
+
setCurrentInstance(...prev);
|
|
3927
|
+
return res;
|
|
3928
|
+
}
|
|
3929
|
+
function createPathGetter(ctx, path) {
|
|
3930
|
+
const segments = path.split(".");
|
|
3931
|
+
return () => {
|
|
3932
|
+
let cur = ctx;
|
|
3933
|
+
for (let i = 0; i < segments.length && cur; i++) {
|
|
3934
|
+
cur = cur[segments[i]];
|
|
3935
|
+
}
|
|
3936
|
+
return cur;
|
|
3937
|
+
};
|
|
3938
|
+
}
|
|
3939
|
+
|
|
3940
|
+
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
3794
3941
|
const isTeleport = (type) => type.__isTeleport;
|
|
3795
3942
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
3796
3943
|
const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
|
|
@@ -4162,8 +4309,8 @@ function prepareAnchor(target, vnode, createText, insert) {
|
|
|
4162
4309
|
return targetAnchor;
|
|
4163
4310
|
}
|
|
4164
4311
|
|
|
4165
|
-
const leaveCbKey = Symbol("_leaveCb");
|
|
4166
|
-
const enterCbKey$1 = Symbol("_enterCb");
|
|
4312
|
+
const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
|
|
4313
|
+
const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
|
|
4167
4314
|
function useTransitionState() {
|
|
4168
4315
|
const state = {
|
|
4169
4316
|
isMounted: false,
|
|
@@ -4201,7 +4348,7 @@ const BaseTransitionPropsValidators = {
|
|
|
4201
4348
|
onAppearCancelled: TransitionHookValidator
|
|
4202
4349
|
};
|
|
4203
4350
|
const recursiveGetSubtree = (instance) => {
|
|
4204
|
-
const subTree = instance.type
|
|
4351
|
+
const subTree = isVaporComponent(instance.type) ? instance.block : instance.subTree;
|
|
4205
4352
|
return subTree.component ? recursiveGetSubtree(subTree.component) : subTree;
|
|
4206
4353
|
};
|
|
4207
4354
|
const BaseTransitionImpl = {
|
|
@@ -4512,7 +4659,7 @@ function getInnerChild$1(vnode) {
|
|
|
4512
4659
|
}
|
|
4513
4660
|
function setTransitionHooks(vnode, hooks) {
|
|
4514
4661
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
4515
|
-
if (vnode.type
|
|
4662
|
+
if (isVaporComponent(vnode.type)) {
|
|
4516
4663
|
getVaporInterface(vnode.component, vnode).setTransitionHooks(
|
|
4517
4664
|
vnode.component,
|
|
4518
4665
|
hooks
|
|
@@ -5803,7 +5950,9 @@ const KeepAliveImpl = {
|
|
|
5803
5950
|
}
|
|
5804
5951
|
function pruneCache(filter) {
|
|
5805
5952
|
cache.forEach((vnode, key) => {
|
|
5806
|
-
const name = getComponentName(
|
|
5953
|
+
const name = getComponentName(
|
|
5954
|
+
isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type
|
|
5955
|
+
);
|
|
5807
5956
|
if (name && !filter(name)) {
|
|
5808
5957
|
pruneCacheEntry(key);
|
|
5809
5958
|
}
|
|
@@ -6145,7 +6294,7 @@ const FILTERS = "filters";
|
|
|
6145
6294
|
function resolveComponent(name, maybeSelfReference) {
|
|
6146
6295
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
6147
6296
|
}
|
|
6148
|
-
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
6297
|
+
const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
6149
6298
|
function resolveDynamicComponent(component) {
|
|
6150
6299
|
if (isString(component)) {
|
|
6151
6300
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -6587,14 +6736,14 @@ function ensureVaporSlotFallback(vnodes, fallback) {
|
|
|
6587
6736
|
}
|
|
6588
6737
|
}
|
|
6589
6738
|
|
|
6590
|
-
function toHandlers(obj, preserveCaseIfNecessary) {
|
|
6739
|
+
function toHandlers(obj, preserveCaseIfNecessary, needWrap) {
|
|
6591
6740
|
const ret = {};
|
|
6592
6741
|
if (!!(process.env.NODE_ENV !== "production") && !isObject(obj)) {
|
|
6593
6742
|
warn$1(`v-on with no argument expects an object value.`);
|
|
6594
6743
|
return ret;
|
|
6595
6744
|
}
|
|
6596
6745
|
for (const key in obj) {
|
|
6597
|
-
ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];
|
|
6746
|
+
ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = needWrap ? () => obj[key] : obj[key];
|
|
6598
6747
|
}
|
|
6599
6748
|
return ret;
|
|
6600
6749
|
}
|
|
@@ -7737,7 +7886,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7737
7886
|
return vm;
|
|
7738
7887
|
}
|
|
7739
7888
|
}
|
|
7740
|
-
Vue.version = `2.6.14-compat:${"3.6.0-
|
|
7889
|
+
Vue.version = `2.6.14-compat:${"3.6.0-beta.1"}`;
|
|
7741
7890
|
Vue.config = singletonApp.config;
|
|
7742
7891
|
Vue.use = (plugin, ...options) => {
|
|
7743
7892
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -8240,263 +8389,133 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8240
8389
|
);
|
|
8241
8390
|
}
|
|
8242
8391
|
},
|
|
8243
|
-
onUnmount(cleanupFn) {
|
|
8244
|
-
if (!!(process.env.NODE_ENV !== "production") && typeof cleanupFn !== "function") {
|
|
8245
|
-
warn$1(
|
|
8246
|
-
`Expected function as first argument to app.onUnmount(), but got ${typeof cleanupFn}`
|
|
8247
|
-
);
|
|
8248
|
-
}
|
|
8249
|
-
pluginCleanupFns.push(cleanupFn);
|
|
8250
|
-
},
|
|
8251
|
-
unmount() {
|
|
8252
|
-
if (isMounted) {
|
|
8253
|
-
callWithAsyncErrorHandling(
|
|
8254
|
-
pluginCleanupFns,
|
|
8255
|
-
app._instance,
|
|
8256
|
-
16
|
|
8257
|
-
);
|
|
8258
|
-
unmount(app);
|
|
8259
|
-
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
8260
|
-
app._instance = null;
|
|
8261
|
-
devtoolsUnmountApp(app);
|
|
8262
|
-
}
|
|
8263
|
-
delete app._container.__vue_app__;
|
|
8264
|
-
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
8265
|
-
warn$1(`Cannot unmount an app that is not mounted.`);
|
|
8266
|
-
}
|
|
8267
|
-
},
|
|
8268
|
-
provide(key, value) {
|
|
8269
|
-
if (!!(process.env.NODE_ENV !== "production") && key in context.provides) {
|
|
8270
|
-
if (hasOwn(context.provides, key)) {
|
|
8271
|
-
warn$1(
|
|
8272
|
-
`App already provides property with key "${String(key)}". It will be overwritten with the new value.`
|
|
8273
|
-
);
|
|
8274
|
-
} else {
|
|
8275
|
-
warn$1(
|
|
8276
|
-
`App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`
|
|
8277
|
-
);
|
|
8278
|
-
}
|
|
8279
|
-
}
|
|
8280
|
-
context.provides[key] = value;
|
|
8281
|
-
return app;
|
|
8282
|
-
},
|
|
8283
|
-
runWithContext(fn) {
|
|
8284
|
-
const lastApp = currentApp;
|
|
8285
|
-
currentApp = app;
|
|
8286
|
-
try {
|
|
8287
|
-
return fn();
|
|
8288
|
-
} finally {
|
|
8289
|
-
currentApp = lastApp;
|
|
8290
|
-
}
|
|
8291
|
-
}
|
|
8292
|
-
};
|
|
8293
|
-
{
|
|
8294
|
-
installAppCompatProperties(
|
|
8295
|
-
app,
|
|
8296
|
-
context,
|
|
8297
|
-
// vapor doesn't have compat mode so this is always passed
|
|
8298
|
-
render
|
|
8299
|
-
);
|
|
8300
|
-
}
|
|
8301
|
-
return app;
|
|
8302
|
-
};
|
|
8303
|
-
}
|
|
8304
|
-
let currentApp = null;
|
|
8305
|
-
|
|
8306
|
-
function provide(key, value) {
|
|
8307
|
-
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8308
|
-
if (!currentInstance || currentInstance.isMounted) {
|
|
8309
|
-
warn$1(`provide() can only be used inside setup().`);
|
|
8310
|
-
}
|
|
8311
|
-
}
|
|
8312
|
-
if (currentInstance) {
|
|
8313
|
-
let provides = currentInstance.provides;
|
|
8314
|
-
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
8315
|
-
if (parentProvides === provides) {
|
|
8316
|
-
provides = currentInstance.provides = Object.create(parentProvides);
|
|
8317
|
-
}
|
|
8318
|
-
provides[key] = value;
|
|
8319
|
-
}
|
|
8320
|
-
}
|
|
8321
|
-
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
8322
|
-
const instance = getCurrentGenericInstance();
|
|
8323
|
-
if (instance || currentApp) {
|
|
8324
|
-
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
|
|
8325
|
-
if (provides && key in provides) {
|
|
8326
|
-
return provides[key];
|
|
8327
|
-
} else if (arguments.length > 1) {
|
|
8328
|
-
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
8329
|
-
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
8330
|
-
warn$1(`injection "${String(key)}" not found.`);
|
|
8331
|
-
}
|
|
8332
|
-
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
8333
|
-
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
8334
|
-
}
|
|
8335
|
-
}
|
|
8336
|
-
function hasInjectionContext() {
|
|
8337
|
-
return !!(getCurrentGenericInstance() || currentApp);
|
|
8338
|
-
}
|
|
8339
|
-
|
|
8340
|
-
const ssrContextKey = Symbol.for("v-scx");
|
|
8341
|
-
const useSSRContext = () => {
|
|
8342
|
-
{
|
|
8343
|
-
const ctx = inject(ssrContextKey);
|
|
8344
|
-
if (!ctx) {
|
|
8345
|
-
!!(process.env.NODE_ENV !== "production") && warn$1(
|
|
8346
|
-
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
8347
|
-
);
|
|
8348
|
-
}
|
|
8349
|
-
return ctx;
|
|
8350
|
-
}
|
|
8351
|
-
};
|
|
8352
|
-
|
|
8353
|
-
function watchEffect(effect, options) {
|
|
8354
|
-
return doWatch(effect, null, options);
|
|
8355
|
-
}
|
|
8356
|
-
function watchPostEffect(effect, options) {
|
|
8357
|
-
return doWatch(
|
|
8358
|
-
effect,
|
|
8359
|
-
null,
|
|
8360
|
-
!!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "post" }) : { flush: "post" }
|
|
8361
|
-
);
|
|
8362
|
-
}
|
|
8363
|
-
function watchSyncEffect(effect, options) {
|
|
8364
|
-
return doWatch(
|
|
8365
|
-
effect,
|
|
8366
|
-
null,
|
|
8367
|
-
!!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "sync" }) : { flush: "sync" }
|
|
8368
|
-
);
|
|
8369
|
-
}
|
|
8370
|
-
function watch(source, cb, options) {
|
|
8371
|
-
if (!!(process.env.NODE_ENV !== "production") && !isFunction(cb)) {
|
|
8372
|
-
warn$1(
|
|
8373
|
-
`\`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.`
|
|
8374
|
-
);
|
|
8375
|
-
}
|
|
8376
|
-
return doWatch(source, cb, options);
|
|
8377
|
-
}
|
|
8378
|
-
class RenderWatcherEffect extends WatcherEffect {
|
|
8379
|
-
constructor(instance, source, cb, options, flush) {
|
|
8380
|
-
super(source, cb, options);
|
|
8381
|
-
this.flush = flush;
|
|
8382
|
-
const job = () => {
|
|
8383
|
-
if (this.dirty) {
|
|
8384
|
-
this.run();
|
|
8392
|
+
onUnmount(cleanupFn) {
|
|
8393
|
+
if (!!(process.env.NODE_ENV !== "production") && typeof cleanupFn !== "function") {
|
|
8394
|
+
warn$1(
|
|
8395
|
+
`Expected function as first argument to app.onUnmount(), but got ${typeof cleanupFn}`
|
|
8396
|
+
);
|
|
8397
|
+
}
|
|
8398
|
+
pluginCleanupFns.push(cleanupFn);
|
|
8399
|
+
},
|
|
8400
|
+
unmount() {
|
|
8401
|
+
if (isMounted) {
|
|
8402
|
+
callWithAsyncErrorHandling(
|
|
8403
|
+
pluginCleanupFns,
|
|
8404
|
+
app._instance,
|
|
8405
|
+
16
|
|
8406
|
+
);
|
|
8407
|
+
unmount(app);
|
|
8408
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
8409
|
+
app._instance = null;
|
|
8410
|
+
devtoolsUnmountApp(app);
|
|
8411
|
+
}
|
|
8412
|
+
delete app._container.__vue_app__;
|
|
8413
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
8414
|
+
warn$1(`Cannot unmount an app that is not mounted.`);
|
|
8415
|
+
}
|
|
8416
|
+
},
|
|
8417
|
+
provide(key, value) {
|
|
8418
|
+
if (!!(process.env.NODE_ENV !== "production") && key in context.provides) {
|
|
8419
|
+
if (hasOwn(context.provides, key)) {
|
|
8420
|
+
warn$1(
|
|
8421
|
+
`App already provides property with key "${String(key)}". It will be overwritten with the new value.`
|
|
8422
|
+
);
|
|
8423
|
+
} else {
|
|
8424
|
+
warn$1(
|
|
8425
|
+
`App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`
|
|
8426
|
+
);
|
|
8427
|
+
}
|
|
8428
|
+
}
|
|
8429
|
+
context.provides[key] = value;
|
|
8430
|
+
return app;
|
|
8431
|
+
},
|
|
8432
|
+
runWithContext(fn) {
|
|
8433
|
+
const lastApp = currentApp;
|
|
8434
|
+
currentApp = app;
|
|
8435
|
+
try {
|
|
8436
|
+
return fn();
|
|
8437
|
+
} finally {
|
|
8438
|
+
currentApp = lastApp;
|
|
8439
|
+
}
|
|
8385
8440
|
}
|
|
8386
8441
|
};
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
}
|
|
8394
|
-
this.job = job;
|
|
8395
|
-
}
|
|
8396
|
-
notify() {
|
|
8397
|
-
const flags = this.flags;
|
|
8398
|
-
if (!(flags & 256)) {
|
|
8399
|
-
const flush = this.flush;
|
|
8400
|
-
const job = this.job;
|
|
8401
|
-
if (flush === "post") {
|
|
8402
|
-
queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
|
|
8403
|
-
} else if (flush === "pre") {
|
|
8404
|
-
queueJob(job, job.i ? job.i.uid : void 0, true);
|
|
8405
|
-
} else {
|
|
8406
|
-
job();
|
|
8407
|
-
}
|
|
8408
|
-
}
|
|
8409
|
-
}
|
|
8410
|
-
}
|
|
8411
|
-
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
8412
|
-
const { immediate, deep, flush = "pre", once } = options;
|
|
8413
|
-
if (!!(process.env.NODE_ENV !== "production") && !cb) {
|
|
8414
|
-
if (immediate !== void 0) {
|
|
8415
|
-
warn$1(
|
|
8416
|
-
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
8442
|
+
{
|
|
8443
|
+
installAppCompatProperties(
|
|
8444
|
+
app,
|
|
8445
|
+
context,
|
|
8446
|
+
// vapor doesn't have compat mode so this is always passed
|
|
8447
|
+
render
|
|
8417
8448
|
);
|
|
8418
8449
|
}
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8450
|
+
return app;
|
|
8451
|
+
};
|
|
8452
|
+
}
|
|
8453
|
+
let currentApp = null;
|
|
8454
|
+
|
|
8455
|
+
const compatModelEventPrefix = `onModelCompat:`;
|
|
8456
|
+
const warnedTypes = /* @__PURE__ */ new WeakSet();
|
|
8457
|
+
function convertLegacyVModelProps(vnode) {
|
|
8458
|
+
const { type, shapeFlag, props, dynamicProps } = vnode;
|
|
8459
|
+
const comp = type;
|
|
8460
|
+
if (shapeFlag & 6 && props && "modelValue" in props) {
|
|
8461
|
+
if (!isCompatEnabled$1(
|
|
8462
|
+
"COMPONENT_V_MODEL",
|
|
8463
|
+
// this is a special case where we want to use the vnode component's
|
|
8464
|
+
// compat config instead of the current rendering instance (which is the
|
|
8465
|
+
// parent of the component that exposes v-model)
|
|
8466
|
+
{ type }
|
|
8467
|
+
)) {
|
|
8468
|
+
return;
|
|
8423
8469
|
}
|
|
8424
|
-
if (
|
|
8425
|
-
|
|
8426
|
-
|
|
8470
|
+
if (!!(process.env.NODE_ENV !== "production") && !warnedTypes.has(comp)) {
|
|
8471
|
+
pushWarningContext(vnode);
|
|
8472
|
+
warnDeprecation$1(
|
|
8473
|
+
"COMPONENT_V_MODEL",
|
|
8474
|
+
{
|
|
8475
|
+
type,
|
|
8476
|
+
appContext: vnode.ctx && vnode.ctx.appContext || createAppContext()
|
|
8477
|
+
},
|
|
8478
|
+
comp
|
|
8427
8479
|
);
|
|
8480
|
+
popWarningContext();
|
|
8481
|
+
warnedTypes.add(comp);
|
|
8428
8482
|
}
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
if (flush === "sync") {
|
|
8436
|
-
const ctx = useSSRContext();
|
|
8437
|
-
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
8438
|
-
} else if (!runsImmediately) {
|
|
8439
|
-
const watchStopHandle = () => {
|
|
8440
|
-
};
|
|
8441
|
-
watchStopHandle.stop = NOOP;
|
|
8442
|
-
watchStopHandle.resume = NOOP;
|
|
8443
|
-
watchStopHandle.pause = NOOP;
|
|
8444
|
-
return watchStopHandle;
|
|
8483
|
+
const model = comp.model || {};
|
|
8484
|
+
applyModelFromMixins(model, comp.mixins);
|
|
8485
|
+
const { prop = "value", event = "input" } = model;
|
|
8486
|
+
if (prop !== "modelValue") {
|
|
8487
|
+
props[prop] = props.modelValue;
|
|
8488
|
+
delete props.modelValue;
|
|
8445
8489
|
}
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
8449
|
-
const effect = new RenderWatcherEffect(
|
|
8450
|
-
instance,
|
|
8451
|
-
source,
|
|
8452
|
-
cb,
|
|
8453
|
-
baseWatchOptions,
|
|
8454
|
-
flush
|
|
8455
|
-
);
|
|
8456
|
-
if (cb) {
|
|
8457
|
-
effect.run(true);
|
|
8458
|
-
} else if (flush === "post") {
|
|
8459
|
-
queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
|
|
8460
|
-
} else {
|
|
8461
|
-
effect.run(true);
|
|
8462
|
-
}
|
|
8463
|
-
const stop = effect.stop.bind(effect);
|
|
8464
|
-
stop.pause = effect.pause.bind(effect);
|
|
8465
|
-
stop.resume = effect.resume.bind(effect);
|
|
8466
|
-
stop.stop = stop;
|
|
8467
|
-
if (isInSSRComponentSetup) {
|
|
8468
|
-
if (ssrCleanup) {
|
|
8469
|
-
ssrCleanup.push(stop);
|
|
8470
|
-
} else if (runsImmediately) {
|
|
8471
|
-
stop();
|
|
8490
|
+
if (dynamicProps) {
|
|
8491
|
+
dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
|
|
8472
8492
|
}
|
|
8493
|
+
props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
|
|
8494
|
+
delete props["onUpdate:modelValue"];
|
|
8473
8495
|
}
|
|
8474
|
-
return stop;
|
|
8475
8496
|
}
|
|
8476
|
-
function
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
} else {
|
|
8483
|
-
cb = value.handler;
|
|
8484
|
-
options = value;
|
|
8497
|
+
function applyModelFromMixins(model, mixins) {
|
|
8498
|
+
if (mixins) {
|
|
8499
|
+
mixins.forEach((m) => {
|
|
8500
|
+
if (m.model) extend(model, m.model);
|
|
8501
|
+
if (m.mixins) applyModelFromMixins(model, m.mixins);
|
|
8502
|
+
});
|
|
8485
8503
|
}
|
|
8486
|
-
const prev = setCurrentInstance(this);
|
|
8487
|
-
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
8488
|
-
setCurrentInstance(...prev);
|
|
8489
|
-
return res;
|
|
8490
8504
|
}
|
|
8491
|
-
function
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8505
|
+
function compatModelEmit(instance, event, args) {
|
|
8506
|
+
if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
|
|
8507
|
+
return;
|
|
8508
|
+
}
|
|
8509
|
+
const props = instance.vnode.props;
|
|
8510
|
+
const modelHandler = props && props[compatModelEventPrefix + event];
|
|
8511
|
+
if (modelHandler) {
|
|
8512
|
+
callWithErrorHandling(
|
|
8513
|
+
modelHandler,
|
|
8514
|
+
instance,
|
|
8515
|
+
6,
|
|
8516
|
+
args
|
|
8517
|
+
);
|
|
8518
|
+
}
|
|
8500
8519
|
}
|
|
8501
8520
|
|
|
8502
8521
|
function useModel(props, name, options = EMPTY_OBJ) {
|
|
@@ -9795,7 +9814,13 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9795
9814
|
);
|
|
9796
9815
|
break;
|
|
9797
9816
|
case VaporSlot:
|
|
9798
|
-
getVaporInterface(parentComponent, n2).slot(
|
|
9817
|
+
getVaporInterface(parentComponent, n2).slot(
|
|
9818
|
+
n1,
|
|
9819
|
+
n2,
|
|
9820
|
+
container,
|
|
9821
|
+
anchor,
|
|
9822
|
+
parentComponent
|
|
9823
|
+
);
|
|
9799
9824
|
break;
|
|
9800
9825
|
default:
|
|
9801
9826
|
if (shapeFlag & 1) {
|
|
@@ -9868,7 +9893,15 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9868
9893
|
} else {
|
|
9869
9894
|
const el = n2.el = n1.el;
|
|
9870
9895
|
if (n2.children !== n1.children) {
|
|
9871
|
-
|
|
9896
|
+
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
|
|
9897
|
+
const childNodes = container.childNodes;
|
|
9898
|
+
const newChild = hostCreateText(n2.children);
|
|
9899
|
+
const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
|
|
9900
|
+
hostInsert(newChild, container, oldChild);
|
|
9901
|
+
hostRemove(oldChild);
|
|
9902
|
+
} else {
|
|
9903
|
+
hostSetText(el, n2.children);
|
|
9904
|
+
}
|
|
9872
9905
|
}
|
|
9873
9906
|
}
|
|
9874
9907
|
};
|
|
@@ -10252,7 +10285,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10252
10285
|
} else {
|
|
10253
10286
|
if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
|
|
10254
10287
|
// of renderSlot() with no valid children
|
|
10255
|
-
n1.dynamicChildren) {
|
|
10288
|
+
n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
|
|
10256
10289
|
patchBlockChildren(
|
|
10257
10290
|
n1.dynamicChildren,
|
|
10258
10291
|
dynamicChildren,
|
|
@@ -10981,8 +11014,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10981
11014
|
const nextChild = c2[nextIndex];
|
|
10982
11015
|
const anchorVNode = c2[nextIndex + 1];
|
|
10983
11016
|
const anchor = nextIndex + 1 < l2 ? (
|
|
10984
|
-
// #13559, fallback to el placeholder for unresolved async component
|
|
10985
|
-
anchorVNode.el || anchorVNode
|
|
11017
|
+
// #13559, #14173 fallback to el placeholder for unresolved async component
|
|
11018
|
+
anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
|
|
10986
11019
|
) : parentAnchor;
|
|
10987
11020
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
10988
11021
|
patch(
|
|
@@ -11015,7 +11048,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
11015
11048
|
const move = (vnode, container, anchor, moveType, parentComponent, parentSuspense = null) => {
|
|
11016
11049
|
const { el, type, transition, children, shapeFlag } = vnode;
|
|
11017
11050
|
if (shapeFlag & 6) {
|
|
11018
|
-
if (type
|
|
11051
|
+
if (isVaporComponent(type)) {
|
|
11019
11052
|
getVaporInterface(parentComponent, vnode).move(vnode, container, anchor);
|
|
11020
11053
|
} else {
|
|
11021
11054
|
move(
|
|
@@ -11125,7 +11158,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
11125
11158
|
parentComponent.renderCache[cacheIndex] = void 0;
|
|
11126
11159
|
}
|
|
11127
11160
|
if (shapeFlag & 256) {
|
|
11128
|
-
if (vnode.type
|
|
11161
|
+
if (isVaporComponent(vnode.type)) {
|
|
11129
11162
|
getVaporInterface(parentComponent, vnode).deactivate(
|
|
11130
11163
|
vnode,
|
|
11131
11164
|
parentComponent.ctx.getStorageContainer()
|
|
@@ -11142,7 +11175,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
11142
11175
|
invokeVNodeHook(vnodeHook, parentComponent, vnode);
|
|
11143
11176
|
}
|
|
11144
11177
|
if (shapeFlag & 6) {
|
|
11145
|
-
if (type
|
|
11178
|
+
if (isVaporComponent(type)) {
|
|
11146
11179
|
getVaporInterface(parentComponent, vnode).unmount(vnode, doRemove);
|
|
11147
11180
|
return;
|
|
11148
11181
|
} else {
|
|
@@ -11284,7 +11317,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
11284
11317
|
};
|
|
11285
11318
|
const getNextHostNode = (vnode) => {
|
|
11286
11319
|
if (vnode.shapeFlag & 6) {
|
|
11287
|
-
if (vnode.type
|
|
11320
|
+
if (isVaporComponent(vnode.type)) {
|
|
11288
11321
|
return hostNextSibling(vnode.anchor);
|
|
11289
11322
|
}
|
|
11290
11323
|
return getNextHostNode(vnode.component.subTree);
|
|
@@ -11297,9 +11330,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
11297
11330
|
return teleportEnd ? hostNextSibling(teleportEnd) : el;
|
|
11298
11331
|
};
|
|
11299
11332
|
const render = (vnode, container, namespace) => {
|
|
11333
|
+
let instance;
|
|
11300
11334
|
if (vnode == null) {
|
|
11301
11335
|
if (container._vnode) {
|
|
11302
11336
|
unmount(container._vnode, null, null, true);
|
|
11337
|
+
instance = container._vnode.component;
|
|
11303
11338
|
}
|
|
11304
11339
|
} else {
|
|
11305
11340
|
patch(
|
|
@@ -11313,7 +11348,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
11313
11348
|
);
|
|
11314
11349
|
}
|
|
11315
11350
|
container._vnode = vnode;
|
|
11316
|
-
flushOnAppMount();
|
|
11351
|
+
flushOnAppMount(instance);
|
|
11317
11352
|
};
|
|
11318
11353
|
const internals = {
|
|
11319
11354
|
p: patch,
|
|
@@ -11405,9 +11440,13 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
11405
11440
|
if (!shallow && c2.patchFlag !== -2)
|
|
11406
11441
|
traverseStaticChildren(c1, c2);
|
|
11407
11442
|
}
|
|
11408
|
-
if (c2.type === Text
|
|
11409
|
-
|
|
11410
|
-
|
|
11443
|
+
if (c2.type === Text) {
|
|
11444
|
+
if (c2.patchFlag !== -1) {
|
|
11445
|
+
c2.el = c1.el;
|
|
11446
|
+
} else {
|
|
11447
|
+
c2.__elIndex = i + // take fragment start anchor into account
|
|
11448
|
+
(n1.type === Fragment ? 1 : 0);
|
|
11449
|
+
}
|
|
11411
11450
|
}
|
|
11412
11451
|
if (c2.type === Comment && !c2.el) {
|
|
11413
11452
|
c2.el = c1.el;
|
|
@@ -11443,16 +11482,24 @@ function performTransitionEnter(el, transition, insert, parentSuspense, force =
|
|
|
11443
11482
|
insert();
|
|
11444
11483
|
}
|
|
11445
11484
|
}
|
|
11446
|
-
function performTransitionLeave(el, transition, remove, isElement = true) {
|
|
11485
|
+
function performTransitionLeave(el, transition, remove, isElement = true, force = false) {
|
|
11447
11486
|
const performRemove = () => {
|
|
11448
11487
|
remove();
|
|
11449
11488
|
if (transition && !transition.persisted && transition.afterLeave) {
|
|
11450
11489
|
transition.afterLeave();
|
|
11451
11490
|
}
|
|
11452
11491
|
};
|
|
11453
|
-
if (isElement && transition && !transition.persisted) {
|
|
11492
|
+
if (force || isElement && transition && !transition.persisted) {
|
|
11454
11493
|
const { leave, delayLeave } = transition;
|
|
11455
|
-
const performLeave = () =>
|
|
11494
|
+
const performLeave = () => {
|
|
11495
|
+
if (el._isLeaving && force) {
|
|
11496
|
+
el[leaveCbKey](
|
|
11497
|
+
true
|
|
11498
|
+
/* cancelled */
|
|
11499
|
+
);
|
|
11500
|
+
}
|
|
11501
|
+
leave(el, performRemove);
|
|
11502
|
+
};
|
|
11456
11503
|
if (delayLeave) {
|
|
11457
11504
|
delayLeave(el, performRemove, performLeave);
|
|
11458
11505
|
} else {
|
|
@@ -11476,6 +11523,12 @@ app.use(vaporInteropPlugin)
|
|
|
11476
11523
|
}
|
|
11477
11524
|
return res;
|
|
11478
11525
|
}
|
|
11526
|
+
function isVaporComponent(type) {
|
|
11527
|
+
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating && hmrDirtyComponentsMode.has(type)) {
|
|
11528
|
+
return hmrDirtyComponentsMode.get(type);
|
|
11529
|
+
}
|
|
11530
|
+
return type.__vapor;
|
|
11531
|
+
}
|
|
11479
11532
|
function getInheritedScopeIds(vnode, parentComponent) {
|
|
11480
11533
|
const inheritedScopeIds = [];
|
|
11481
11534
|
let currentParent = parentComponent;
|
|
@@ -11502,6 +11555,16 @@ function getInheritedScopeIds(vnode, parentComponent) {
|
|
|
11502
11555
|
}
|
|
11503
11556
|
return inheritedScopeIds;
|
|
11504
11557
|
}
|
|
11558
|
+
function resolveAsyncComponentPlaceholder(anchorVnode) {
|
|
11559
|
+
if (anchorVnode.placeholder) {
|
|
11560
|
+
return anchorVnode.placeholder;
|
|
11561
|
+
}
|
|
11562
|
+
const instance = anchorVnode.component;
|
|
11563
|
+
if (instance) {
|
|
11564
|
+
return resolveAsyncComponentPlaceholder(instance.subTree);
|
|
11565
|
+
}
|
|
11566
|
+
return null;
|
|
11567
|
+
}
|
|
11505
11568
|
|
|
11506
11569
|
const isSuspense = (type) => type.__isSuspense;
|
|
11507
11570
|
let suspenseId = 0;
|
|
@@ -12141,11 +12204,11 @@ function convertLegacyComponent(comp, instance) {
|
|
|
12141
12204
|
return comp;
|
|
12142
12205
|
}
|
|
12143
12206
|
|
|
12144
|
-
const Fragment = Symbol.for("v-fgt");
|
|
12145
|
-
const Text = Symbol.for("v-txt");
|
|
12146
|
-
const Comment = Symbol.for("v-cmt");
|
|
12147
|
-
const Static = Symbol.for("v-stc");
|
|
12148
|
-
const VaporSlot = Symbol.for("v-vps");
|
|
12207
|
+
const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
|
|
12208
|
+
const Text = /* @__PURE__ */ Symbol.for("v-txt");
|
|
12209
|
+
const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
12210
|
+
const Static = /* @__PURE__ */ Symbol.for("v-stc");
|
|
12211
|
+
const VaporSlot = /* @__PURE__ */ Symbol.for("v-vps");
|
|
12149
12212
|
const blockStack = [];
|
|
12150
12213
|
let currentBlock = null;
|
|
12151
12214
|
function openBlock(disableTracking = false) {
|
|
@@ -13240,7 +13303,7 @@ function isMemoSame(cached, memo) {
|
|
|
13240
13303
|
return true;
|
|
13241
13304
|
}
|
|
13242
13305
|
|
|
13243
|
-
const version = "3.6.0-
|
|
13306
|
+
const version = "3.6.0-beta.1";
|
|
13244
13307
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
13245
13308
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
13246
13309
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -13352,7 +13415,7 @@ const nodeOps = {
|
|
|
13352
13415
|
|
|
13353
13416
|
const TRANSITION$1 = "transition";
|
|
13354
13417
|
const ANIMATION = "animation";
|
|
13355
|
-
const vtcKey = Symbol("_vtc");
|
|
13418
|
+
const vtcKey = /* @__PURE__ */ Symbol("_vtc");
|
|
13356
13419
|
const DOMTransitionPropsValidators = {
|
|
13357
13420
|
name: String,
|
|
13358
13421
|
type: String,
|
|
@@ -13682,8 +13745,8 @@ function patchClass(el, value, isSVG) {
|
|
|
13682
13745
|
}
|
|
13683
13746
|
}
|
|
13684
13747
|
|
|
13685
|
-
const vShowOriginalDisplay = Symbol("_vod");
|
|
13686
|
-
const vShowHidden = Symbol("_vsh");
|
|
13748
|
+
const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
|
|
13749
|
+
const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
|
|
13687
13750
|
const vShow = {
|
|
13688
13751
|
// used for prop mismatch check during hydration
|
|
13689
13752
|
name: "show",
|
|
@@ -13732,7 +13795,7 @@ function initVShowForSSR() {
|
|
|
13732
13795
|
};
|
|
13733
13796
|
}
|
|
13734
13797
|
|
|
13735
|
-
const CSS_VAR_TEXT = Symbol(!!(process.env.NODE_ENV !== "production") ? "CSS_VAR_TEXT" : "");
|
|
13798
|
+
const CSS_VAR_TEXT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? "CSS_VAR_TEXT" : "");
|
|
13736
13799
|
function useCssVars(getter) {
|
|
13737
13800
|
const instance = getCurrentInstance();
|
|
13738
13801
|
const getVars = () => getter(instance.proxy);
|
|
@@ -13942,7 +14005,7 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
|
|
|
13942
14005
|
const isEnumeratedAttr = /* @__PURE__ */ makeMap("contenteditable,draggable,spellcheck") ;
|
|
13943
14006
|
function compatCoerceAttr(el, key, value, instance = null) {
|
|
13944
14007
|
if (isEnumeratedAttr(key)) {
|
|
13945
|
-
const v2CoercedValue = value ===
|
|
14008
|
+
const v2CoercedValue = value === void 0 ? null : value === null || value === false || value === "false" ? "false" : "true";
|
|
13946
14009
|
if (v2CoercedValue && compatUtils.softAssertCompatEnabled(
|
|
13947
14010
|
"ATTR_ENUMERATED_COERCION",
|
|
13948
14011
|
instance,
|
|
@@ -14037,7 +14100,7 @@ function addEventListener(el, event, handler, options) {
|
|
|
14037
14100
|
function removeEventListener(el, event, handler, options) {
|
|
14038
14101
|
el.removeEventListener(event, handler, options);
|
|
14039
14102
|
}
|
|
14040
|
-
const veiKey = Symbol("_vei");
|
|
14103
|
+
const veiKey = /* @__PURE__ */ Symbol("_vei");
|
|
14041
14104
|
function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
14042
14105
|
const invokers = el[veiKey] || (el[veiKey] = {});
|
|
14043
14106
|
const existingInvoker = invokers[rawName];
|
|
@@ -14699,8 +14762,8 @@ function useCssModule(name = "$style") {
|
|
|
14699
14762
|
|
|
14700
14763
|
const positionMap = /* @__PURE__ */ new WeakMap();
|
|
14701
14764
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
14702
|
-
const moveCbKey = Symbol("_moveCb");
|
|
14703
|
-
const enterCbKey = Symbol("_enterCb");
|
|
14765
|
+
const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
|
|
14766
|
+
const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
|
|
14704
14767
|
const decorate = (t) => {
|
|
14705
14768
|
delete t.props.mode;
|
|
14706
14769
|
{
|
|
@@ -14872,7 +14935,7 @@ function onCompositionEnd(e) {
|
|
|
14872
14935
|
target.dispatchEvent(new Event("input"));
|
|
14873
14936
|
}
|
|
14874
14937
|
}
|
|
14875
|
-
const assignKey = Symbol("_assign");
|
|
14938
|
+
const assignKey = /* @__PURE__ */ Symbol("_assign");
|
|
14876
14939
|
const vModelText = {
|
|
14877
14940
|
created(el, { modifiers: { lazy, trim, number } }, vnode) {
|
|
14878
14941
|
el[assignKey] = getModelAssigner(vnode);
|
|
@@ -15685,81 +15748,81 @@ function createCompatVue() {
|
|
|
15685
15748
|
return Vue;
|
|
15686
15749
|
}
|
|
15687
15750
|
|
|
15688
|
-
const FRAGMENT = Symbol(!!(process.env.NODE_ENV !== "production") ? `Fragment` : ``);
|
|
15689
|
-
const TELEPORT = Symbol(!!(process.env.NODE_ENV !== "production") ? `Teleport` : ``);
|
|
15690
|
-
const SUSPENSE = Symbol(!!(process.env.NODE_ENV !== "production") ? `Suspense` : ``);
|
|
15691
|
-
const KEEP_ALIVE = Symbol(!!(process.env.NODE_ENV !== "production") ? `KeepAlive` : ``);
|
|
15692
|
-
const BASE_TRANSITION = Symbol(
|
|
15751
|
+
const FRAGMENT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `Fragment` : ``);
|
|
15752
|
+
const TELEPORT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `Teleport` : ``);
|
|
15753
|
+
const SUSPENSE = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `Suspense` : ``);
|
|
15754
|
+
const KEEP_ALIVE = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `KeepAlive` : ``);
|
|
15755
|
+
const BASE_TRANSITION = /* @__PURE__ */ Symbol(
|
|
15693
15756
|
!!(process.env.NODE_ENV !== "production") ? `BaseTransition` : ``
|
|
15694
15757
|
);
|
|
15695
|
-
const OPEN_BLOCK = Symbol(!!(process.env.NODE_ENV !== "production") ? `openBlock` : ``);
|
|
15696
|
-
const CREATE_BLOCK = Symbol(!!(process.env.NODE_ENV !== "production") ? `createBlock` : ``);
|
|
15697
|
-
const CREATE_ELEMENT_BLOCK = Symbol(
|
|
15758
|
+
const OPEN_BLOCK = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `openBlock` : ``);
|
|
15759
|
+
const CREATE_BLOCK = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `createBlock` : ``);
|
|
15760
|
+
const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
|
|
15698
15761
|
!!(process.env.NODE_ENV !== "production") ? `createElementBlock` : ``
|
|
15699
15762
|
);
|
|
15700
|
-
const CREATE_VNODE = Symbol(!!(process.env.NODE_ENV !== "production") ? `createVNode` : ``);
|
|
15701
|
-
const CREATE_ELEMENT_VNODE = Symbol(
|
|
15763
|
+
const CREATE_VNODE = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `createVNode` : ``);
|
|
15764
|
+
const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
|
|
15702
15765
|
!!(process.env.NODE_ENV !== "production") ? `createElementVNode` : ``
|
|
15703
15766
|
);
|
|
15704
|
-
const CREATE_COMMENT = Symbol(
|
|
15767
|
+
const CREATE_COMMENT = /* @__PURE__ */ Symbol(
|
|
15705
15768
|
!!(process.env.NODE_ENV !== "production") ? `createCommentVNode` : ``
|
|
15706
15769
|
);
|
|
15707
|
-
const CREATE_TEXT = Symbol(
|
|
15770
|
+
const CREATE_TEXT = /* @__PURE__ */ Symbol(
|
|
15708
15771
|
!!(process.env.NODE_ENV !== "production") ? `createTextVNode` : ``
|
|
15709
15772
|
);
|
|
15710
|
-
const CREATE_STATIC = Symbol(
|
|
15773
|
+
const CREATE_STATIC = /* @__PURE__ */ Symbol(
|
|
15711
15774
|
!!(process.env.NODE_ENV !== "production") ? `createStaticVNode` : ``
|
|
15712
15775
|
);
|
|
15713
|
-
const RESOLVE_COMPONENT = Symbol(
|
|
15776
|
+
const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
|
|
15714
15777
|
!!(process.env.NODE_ENV !== "production") ? `resolveComponent` : ``
|
|
15715
15778
|
);
|
|
15716
|
-
const RESOLVE_DYNAMIC_COMPONENT = Symbol(
|
|
15779
|
+
const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
|
|
15717
15780
|
!!(process.env.NODE_ENV !== "production") ? `resolveDynamicComponent` : ``
|
|
15718
15781
|
);
|
|
15719
|
-
const RESOLVE_DIRECTIVE = Symbol(
|
|
15782
|
+
const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
|
|
15720
15783
|
!!(process.env.NODE_ENV !== "production") ? `resolveDirective` : ``
|
|
15721
15784
|
);
|
|
15722
|
-
const RESOLVE_FILTER = Symbol(
|
|
15785
|
+
const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
|
|
15723
15786
|
!!(process.env.NODE_ENV !== "production") ? `resolveFilter` : ``
|
|
15724
15787
|
);
|
|
15725
|
-
const WITH_DIRECTIVES = Symbol(
|
|
15788
|
+
const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
|
|
15726
15789
|
!!(process.env.NODE_ENV !== "production") ? `withDirectives` : ``
|
|
15727
15790
|
);
|
|
15728
|
-
const RENDER_LIST = Symbol(!!(process.env.NODE_ENV !== "production") ? `renderList` : ``);
|
|
15729
|
-
const RENDER_SLOT = Symbol(!!(process.env.NODE_ENV !== "production") ? `renderSlot` : ``);
|
|
15730
|
-
const CREATE_SLOTS = Symbol(!!(process.env.NODE_ENV !== "production") ? `createSlots` : ``);
|
|
15731
|
-
const TO_DISPLAY_STRING = Symbol(
|
|
15791
|
+
const RENDER_LIST = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `renderList` : ``);
|
|
15792
|
+
const RENDER_SLOT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `renderSlot` : ``);
|
|
15793
|
+
const CREATE_SLOTS = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `createSlots` : ``);
|
|
15794
|
+
const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
|
|
15732
15795
|
!!(process.env.NODE_ENV !== "production") ? `toDisplayString` : ``
|
|
15733
15796
|
);
|
|
15734
|
-
const MERGE_PROPS = Symbol(!!(process.env.NODE_ENV !== "production") ? `mergeProps` : ``);
|
|
15735
|
-
const NORMALIZE_CLASS = Symbol(
|
|
15797
|
+
const MERGE_PROPS = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `mergeProps` : ``);
|
|
15798
|
+
const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
|
|
15736
15799
|
!!(process.env.NODE_ENV !== "production") ? `normalizeClass` : ``
|
|
15737
15800
|
);
|
|
15738
|
-
const NORMALIZE_STYLE = Symbol(
|
|
15801
|
+
const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
|
|
15739
15802
|
!!(process.env.NODE_ENV !== "production") ? `normalizeStyle` : ``
|
|
15740
15803
|
);
|
|
15741
|
-
const NORMALIZE_PROPS = Symbol(
|
|
15804
|
+
const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
|
|
15742
15805
|
!!(process.env.NODE_ENV !== "production") ? `normalizeProps` : ``
|
|
15743
15806
|
);
|
|
15744
|
-
const GUARD_REACTIVE_PROPS = Symbol(
|
|
15807
|
+
const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
|
|
15745
15808
|
!!(process.env.NODE_ENV !== "production") ? `guardReactiveProps` : ``
|
|
15746
15809
|
);
|
|
15747
|
-
const TO_HANDLERS = Symbol(!!(process.env.NODE_ENV !== "production") ? `toHandlers` : ``);
|
|
15748
|
-
const CAMELIZE = Symbol(!!(process.env.NODE_ENV !== "production") ? `camelize` : ``);
|
|
15749
|
-
const CAPITALIZE = Symbol(!!(process.env.NODE_ENV !== "production") ? `capitalize` : ``);
|
|
15750
|
-
const TO_HANDLER_KEY = Symbol(
|
|
15810
|
+
const TO_HANDLERS = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `toHandlers` : ``);
|
|
15811
|
+
const CAMELIZE = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `camelize` : ``);
|
|
15812
|
+
const CAPITALIZE = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `capitalize` : ``);
|
|
15813
|
+
const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
|
|
15751
15814
|
!!(process.env.NODE_ENV !== "production") ? `toHandlerKey` : ``
|
|
15752
15815
|
);
|
|
15753
|
-
const SET_BLOCK_TRACKING = Symbol(
|
|
15816
|
+
const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
|
|
15754
15817
|
!!(process.env.NODE_ENV !== "production") ? `setBlockTracking` : ``
|
|
15755
15818
|
);
|
|
15756
|
-
const PUSH_SCOPE_ID = Symbol(!!(process.env.NODE_ENV !== "production") ? `pushScopeId` : ``);
|
|
15757
|
-
const POP_SCOPE_ID = Symbol(!!(process.env.NODE_ENV !== "production") ? `popScopeId` : ``);
|
|
15758
|
-
const WITH_CTX = Symbol(!!(process.env.NODE_ENV !== "production") ? `withCtx` : ``);
|
|
15759
|
-
const UNREF = Symbol(!!(process.env.NODE_ENV !== "production") ? `unref` : ``);
|
|
15760
|
-
const IS_REF = Symbol(!!(process.env.NODE_ENV !== "production") ? `isRef` : ``);
|
|
15761
|
-
const WITH_MEMO = Symbol(!!(process.env.NODE_ENV !== "production") ? `withMemo` : ``);
|
|
15762
|
-
const IS_MEMO_SAME = Symbol(!!(process.env.NODE_ENV !== "production") ? `isMemoSame` : ``);
|
|
15819
|
+
const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `pushScopeId` : ``);
|
|
15820
|
+
const POP_SCOPE_ID = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `popScopeId` : ``);
|
|
15821
|
+
const WITH_CTX = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `withCtx` : ``);
|
|
15822
|
+
const UNREF = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `unref` : ``);
|
|
15823
|
+
const IS_REF = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `isRef` : ``);
|
|
15824
|
+
const WITH_MEMO = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `withMemo` : ``);
|
|
15825
|
+
const IS_MEMO_SAME = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `isMemoSame` : ``);
|
|
15763
15826
|
const helperNameMap = {
|
|
15764
15827
|
[FRAGMENT]: `Fragment`,
|
|
15765
15828
|
[TELEPORT]: `Teleport`,
|
|
@@ -16054,14 +16117,28 @@ class Tokenizer {
|
|
|
16054
16117
|
getPos(index) {
|
|
16055
16118
|
let line = 1;
|
|
16056
16119
|
let column = index + 1;
|
|
16057
|
-
|
|
16058
|
-
|
|
16059
|
-
|
|
16060
|
-
|
|
16061
|
-
|
|
16062
|
-
|
|
16120
|
+
const length = this.newlines.length;
|
|
16121
|
+
let j = -1;
|
|
16122
|
+
if (length > 100) {
|
|
16123
|
+
let l = -1;
|
|
16124
|
+
let r = length;
|
|
16125
|
+
while (l + 1 < r) {
|
|
16126
|
+
const m = l + r >>> 1;
|
|
16127
|
+
this.newlines[m] < index ? l = m : r = m;
|
|
16128
|
+
}
|
|
16129
|
+
j = l;
|
|
16130
|
+
} else {
|
|
16131
|
+
for (let i = length - 1; i >= 0; i--) {
|
|
16132
|
+
if (index > this.newlines[i]) {
|
|
16133
|
+
j = i;
|
|
16134
|
+
break;
|
|
16135
|
+
}
|
|
16063
16136
|
}
|
|
16064
16137
|
}
|
|
16138
|
+
if (j >= 0) {
|
|
16139
|
+
line = j + 2;
|
|
16140
|
+
column = index - this.newlines[j];
|
|
16141
|
+
}
|
|
16065
16142
|
return {
|
|
16066
16143
|
column,
|
|
16067
16144
|
line,
|
|
@@ -16876,7 +16953,7 @@ const errorMessages = {
|
|
|
16876
16953
|
[32]: `v-for has invalid expression.`,
|
|
16877
16954
|
[33]: `<template v-for> key should be placed on the <template> tag.`,
|
|
16878
16955
|
[34]: `v-bind is missing expression.`,
|
|
16879
|
-
[
|
|
16956
|
+
[53]: `v-bind with same-name shorthand only allows static argument.`,
|
|
16880
16957
|
[35]: `v-on is missing expression.`,
|
|
16881
16958
|
[36]: `Unexpected custom directive on <slot> outlet.`,
|
|
16882
16959
|
[37]: `Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.`,
|
|
@@ -16888,16 +16965,17 @@ const errorMessages = {
|
|
|
16888
16965
|
[43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
|
|
16889
16966
|
[44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
|
|
16890
16967
|
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
|
|
16891
|
-
[45]: `
|
|
16892
|
-
[46]:
|
|
16893
|
-
[
|
|
16968
|
+
[45]: `v-model cannot be used on a const binding because it is not writable.`,
|
|
16969
|
+
[46]: `Error parsing JavaScript expression: `,
|
|
16970
|
+
[47]: `<KeepAlive> expects exactly one child component.`,
|
|
16971
|
+
[52]: `@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`,
|
|
16894
16972
|
// generic errors
|
|
16895
|
-
[
|
|
16896
|
-
[
|
|
16897
|
-
[
|
|
16898
|
-
[
|
|
16973
|
+
[48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
|
|
16974
|
+
[49]: `ES module mode is not supported in this build of compiler.`,
|
|
16975
|
+
[50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
|
|
16976
|
+
[51]: `"scopeId" option is only supported in module mode.`,
|
|
16899
16977
|
// just to fulfill types
|
|
16900
|
-
[
|
|
16978
|
+
[54]: ``
|
|
16901
16979
|
};
|
|
16902
16980
|
|
|
16903
16981
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
@@ -19090,7 +19168,7 @@ function validateBrowserExpression(node, context, asParams = false, asRawStateme
|
|
|
19090
19168
|
}
|
|
19091
19169
|
context.onError(
|
|
19092
19170
|
createCompilerError(
|
|
19093
|
-
|
|
19171
|
+
46,
|
|
19094
19172
|
node.loc,
|
|
19095
19173
|
void 0,
|
|
19096
19174
|
message
|
|
@@ -19856,7 +19934,7 @@ const transformElement = (node, context) => {
|
|
|
19856
19934
|
patchFlag |= 1024;
|
|
19857
19935
|
if (!!(process.env.NODE_ENV !== "production") && node.children.length > 1) {
|
|
19858
19936
|
context.onError(
|
|
19859
|
-
createCompilerError(
|
|
19937
|
+
createCompilerError(47, {
|
|
19860
19938
|
start: node.children[0].loc.start,
|
|
19861
19939
|
end: node.children[node.children.length - 1].loc.end,
|
|
19862
19940
|
source: ""
|
|
@@ -20443,7 +20521,7 @@ const transformOn$1 = (dir, node, context, augmentor) => {
|
|
|
20443
20521
|
if (arg.isStatic) {
|
|
20444
20522
|
let rawName = arg.content;
|
|
20445
20523
|
if (!!(process.env.NODE_ENV !== "production") && rawName.startsWith("vnode")) {
|
|
20446
|
-
context.onError(createCompilerError(
|
|
20524
|
+
context.onError(createCompilerError(52, arg.loc));
|
|
20447
20525
|
}
|
|
20448
20526
|
if (rawName.startsWith("vue:")) {
|
|
20449
20527
|
rawName = `vnode-${rawName.slice(4)}`;
|
|
@@ -20676,6 +20754,10 @@ const transformModel$1 = (dir, node, context) => {
|
|
|
20676
20754
|
context.onError(createCompilerError(44, exp.loc));
|
|
20677
20755
|
return createTransformProps();
|
|
20678
20756
|
}
|
|
20757
|
+
if (bindingType === "literal-const" || bindingType === "setup-const") {
|
|
20758
|
+
context.onError(createCompilerError(45, exp.loc));
|
|
20759
|
+
return createTransformProps();
|
|
20760
|
+
}
|
|
20679
20761
|
if (!expString.trim() || !isMemberExpression(exp) && true) {
|
|
20680
20762
|
context.onError(
|
|
20681
20763
|
createCompilerError(42, exp.loc)
|
|
@@ -20904,7 +20986,7 @@ const transformVBindShorthand = (node, context) => {
|
|
|
20904
20986
|
if (arg.type !== 4 || !arg.isStatic) {
|
|
20905
20987
|
context.onError(
|
|
20906
20988
|
createCompilerError(
|
|
20907
|
-
|
|
20989
|
+
53,
|
|
20908
20990
|
arg.loc
|
|
20909
20991
|
)
|
|
20910
20992
|
);
|
|
@@ -20948,17 +21030,17 @@ function baseCompile(source, options = {}) {
|
|
|
20948
21030
|
const isModuleMode = options.mode === "module";
|
|
20949
21031
|
{
|
|
20950
21032
|
if (options.prefixIdentifiers === true) {
|
|
20951
|
-
onError(createCompilerError(47));
|
|
20952
|
-
} else if (isModuleMode) {
|
|
20953
21033
|
onError(createCompilerError(48));
|
|
21034
|
+
} else if (isModuleMode) {
|
|
21035
|
+
onError(createCompilerError(49));
|
|
20954
21036
|
}
|
|
20955
21037
|
}
|
|
20956
21038
|
const prefixIdentifiers = false;
|
|
20957
21039
|
if (options.cacheHandlers) {
|
|
20958
|
-
onError(createCompilerError(
|
|
21040
|
+
onError(createCompilerError(50));
|
|
20959
21041
|
}
|
|
20960
21042
|
if (options.scopeId && !isModuleMode) {
|
|
20961
|
-
onError(createCompilerError(
|
|
21043
|
+
onError(createCompilerError(51));
|
|
20962
21044
|
}
|
|
20963
21045
|
const resolvedOptions = extend({}, options, {
|
|
20964
21046
|
prefixIdentifiers
|
|
@@ -20986,26 +21068,26 @@ function baseCompile(source, options = {}) {
|
|
|
20986
21068
|
|
|
20987
21069
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
20988
21070
|
|
|
20989
|
-
const V_MODEL_RADIO = Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelRadio` : ``);
|
|
20990
|
-
const V_MODEL_CHECKBOX = Symbol(
|
|
21071
|
+
const V_MODEL_RADIO = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelRadio` : ``);
|
|
21072
|
+
const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
|
|
20991
21073
|
!!(process.env.NODE_ENV !== "production") ? `vModelCheckbox` : ``
|
|
20992
21074
|
);
|
|
20993
|
-
const V_MODEL_TEXT = Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelText` : ``);
|
|
20994
|
-
const V_MODEL_SELECT = Symbol(
|
|
21075
|
+
const V_MODEL_TEXT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelText` : ``);
|
|
21076
|
+
const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
|
|
20995
21077
|
!!(process.env.NODE_ENV !== "production") ? `vModelSelect` : ``
|
|
20996
21078
|
);
|
|
20997
|
-
const V_MODEL_DYNAMIC = Symbol(
|
|
21079
|
+
const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
|
|
20998
21080
|
!!(process.env.NODE_ENV !== "production") ? `vModelDynamic` : ``
|
|
20999
21081
|
);
|
|
21000
|
-
const V_ON_WITH_MODIFIERS = Symbol(
|
|
21082
|
+
const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
|
|
21001
21083
|
!!(process.env.NODE_ENV !== "production") ? `vOnModifiersGuard` : ``
|
|
21002
21084
|
);
|
|
21003
|
-
const V_ON_WITH_KEYS = Symbol(
|
|
21085
|
+
const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
|
|
21004
21086
|
!!(process.env.NODE_ENV !== "production") ? `vOnKeysGuard` : ``
|
|
21005
21087
|
);
|
|
21006
|
-
const V_SHOW = Symbol(!!(process.env.NODE_ENV !== "production") ? `vShow` : ``);
|
|
21007
|
-
const TRANSITION = Symbol(!!(process.env.NODE_ENV !== "production") ? `Transition` : ``);
|
|
21008
|
-
const TRANSITION_GROUP = Symbol(
|
|
21088
|
+
const V_SHOW = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `vShow` : ``);
|
|
21089
|
+
const TRANSITION = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `Transition` : ``);
|
|
21090
|
+
const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
|
|
21009
21091
|
!!(process.env.NODE_ENV !== "production") ? `TransitionGroup` : ``
|
|
21010
21092
|
);
|
|
21011
21093
|
registerRuntimeHelpers({
|
|
@@ -21116,31 +21198,31 @@ function createDOMCompilerError(code, loc) {
|
|
|
21116
21198
|
);
|
|
21117
21199
|
}
|
|
21118
21200
|
const DOMErrorMessages = {
|
|
21119
|
-
[
|
|
21120
|
-
[
|
|
21121
|
-
[
|
|
21122
|
-
[
|
|
21123
|
-
[
|
|
21124
|
-
[
|
|
21125
|
-
[
|
|
21126
|
-
[
|
|
21127
|
-
[
|
|
21128
|
-
[
|
|
21129
|
-
[
|
|
21201
|
+
[54]: `v-html is missing expression.`,
|
|
21202
|
+
[55]: `v-html will override element children.`,
|
|
21203
|
+
[56]: `v-text is missing expression.`,
|
|
21204
|
+
[57]: `v-text will override element children.`,
|
|
21205
|
+
[58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
|
|
21206
|
+
[59]: `v-model argument is not supported on plain elements.`,
|
|
21207
|
+
[60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
|
|
21208
|
+
[61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
|
|
21209
|
+
[62]: `v-show is missing expression.`,
|
|
21210
|
+
[63]: `<Transition> expects exactly one child element or component.`,
|
|
21211
|
+
[64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
|
|
21130
21212
|
// just to fulfill types
|
|
21131
|
-
[
|
|
21213
|
+
[65]: ``
|
|
21132
21214
|
};
|
|
21133
21215
|
|
|
21134
21216
|
const transformVHtml = (dir, node, context) => {
|
|
21135
21217
|
const { exp, loc } = dir;
|
|
21136
21218
|
if (!exp) {
|
|
21137
21219
|
context.onError(
|
|
21138
|
-
createDOMCompilerError(
|
|
21220
|
+
createDOMCompilerError(54, loc)
|
|
21139
21221
|
);
|
|
21140
21222
|
}
|
|
21141
21223
|
if (node.children.length) {
|
|
21142
21224
|
context.onError(
|
|
21143
|
-
createDOMCompilerError(
|
|
21225
|
+
createDOMCompilerError(55, loc)
|
|
21144
21226
|
);
|
|
21145
21227
|
node.children.length = 0;
|
|
21146
21228
|
}
|
|
@@ -21158,12 +21240,12 @@ const transformVText = (dir, node, context) => {
|
|
|
21158
21240
|
const { exp, loc } = dir;
|
|
21159
21241
|
if (!exp) {
|
|
21160
21242
|
context.onError(
|
|
21161
|
-
createDOMCompilerError(
|
|
21243
|
+
createDOMCompilerError(56, loc)
|
|
21162
21244
|
);
|
|
21163
21245
|
}
|
|
21164
21246
|
if (node.children.length) {
|
|
21165
21247
|
context.onError(
|
|
21166
|
-
createDOMCompilerError(
|
|
21248
|
+
createDOMCompilerError(57, loc)
|
|
21167
21249
|
);
|
|
21168
21250
|
node.children.length = 0;
|
|
21169
21251
|
}
|
|
@@ -21189,7 +21271,7 @@ const transformModel = (dir, node, context) => {
|
|
|
21189
21271
|
if (dir.arg) {
|
|
21190
21272
|
context.onError(
|
|
21191
21273
|
createDOMCompilerError(
|
|
21192
|
-
|
|
21274
|
+
59,
|
|
21193
21275
|
dir.arg.loc
|
|
21194
21276
|
)
|
|
21195
21277
|
);
|
|
@@ -21199,7 +21281,7 @@ const transformModel = (dir, node, context) => {
|
|
|
21199
21281
|
if (value && isStaticArgOf(value.arg, "value")) {
|
|
21200
21282
|
context.onError(
|
|
21201
21283
|
createDOMCompilerError(
|
|
21202
|
-
|
|
21284
|
+
61,
|
|
21203
21285
|
value.loc
|
|
21204
21286
|
)
|
|
21205
21287
|
);
|
|
@@ -21227,7 +21309,7 @@ const transformModel = (dir, node, context) => {
|
|
|
21227
21309
|
isInvalidType = true;
|
|
21228
21310
|
context.onError(
|
|
21229
21311
|
createDOMCompilerError(
|
|
21230
|
-
|
|
21312
|
+
60,
|
|
21231
21313
|
dir.loc
|
|
21232
21314
|
)
|
|
21233
21315
|
);
|
|
@@ -21253,7 +21335,7 @@ const transformModel = (dir, node, context) => {
|
|
|
21253
21335
|
} else {
|
|
21254
21336
|
context.onError(
|
|
21255
21337
|
createDOMCompilerError(
|
|
21256
|
-
|
|
21338
|
+
58,
|
|
21257
21339
|
dir.loc
|
|
21258
21340
|
)
|
|
21259
21341
|
);
|
|
@@ -21364,7 +21446,7 @@ const transformShow = (dir, node, context) => {
|
|
|
21364
21446
|
const { exp, loc } = dir;
|
|
21365
21447
|
if (!exp) {
|
|
21366
21448
|
context.onError(
|
|
21367
|
-
createDOMCompilerError(
|
|
21449
|
+
createDOMCompilerError(62, loc)
|
|
21368
21450
|
);
|
|
21369
21451
|
}
|
|
21370
21452
|
return {
|
|
@@ -21388,7 +21470,7 @@ function postTransformTransition(node, onError, hasMultipleChildren = defaultHas
|
|
|
21388
21470
|
}
|
|
21389
21471
|
if (hasMultipleChildren(node)) {
|
|
21390
21472
|
onError(
|
|
21391
|
-
createDOMCompilerError(
|
|
21473
|
+
createDOMCompilerError(63, {
|
|
21392
21474
|
start: node.children[0].loc.start,
|
|
21393
21475
|
end: node.children[node.children.length - 1].loc.end,
|
|
21394
21476
|
source: ""
|
|
@@ -21423,7 +21505,7 @@ const ignoreSideEffectTags = (node, context) => {
|
|
|
21423
21505
|
if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
|
|
21424
21506
|
!!(process.env.NODE_ENV !== "production") && context.onError(
|
|
21425
21507
|
createDOMCompilerError(
|
|
21426
|
-
|
|
21508
|
+
64,
|
|
21427
21509
|
node.loc
|
|
21428
21510
|
)
|
|
21429
21511
|
);
|