@vue/compat 3.5.25 → 3.5.26
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 -40
- package/dist/vue.cjs.js +404 -352
- package/dist/vue.cjs.prod.js +345 -306
- package/dist/vue.esm-browser.js +398 -346
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +398 -346
- package/dist/vue.global.js +371 -319
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +285 -252
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +285 -252
- package/dist/vue.runtime.global.js +258 -225
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +2 -2
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.26
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1002,13 +1002,13 @@ function addSub(link) {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
1005
|
-
const ITERATE_KEY = Symbol(
|
|
1005
|
+
const ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
1006
1006
|
"Object iterate"
|
|
1007
1007
|
);
|
|
1008
|
-
const MAP_KEY_ITERATE_KEY = Symbol(
|
|
1008
|
+
const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
1009
1009
|
"Map keys iterate"
|
|
1010
1010
|
);
|
|
1011
|
-
const ARRAY_ITERATE_KEY = Symbol(
|
|
1011
|
+
const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
1012
1012
|
"Array iterate"
|
|
1013
1013
|
);
|
|
1014
1014
|
function track(target, type, key) {
|
|
@@ -3376,65 +3376,6 @@ function emit$1(instance, event, args) {
|
|
|
3376
3376
|
return instance.proxy;
|
|
3377
3377
|
}
|
|
3378
3378
|
|
|
3379
|
-
const compatModelEventPrefix = `onModelCompat:`;
|
|
3380
|
-
const warnedTypes = /* @__PURE__ */ new WeakSet();
|
|
3381
|
-
function convertLegacyVModelProps(vnode) {
|
|
3382
|
-
const { type, shapeFlag, props, dynamicProps } = vnode;
|
|
3383
|
-
const comp = type;
|
|
3384
|
-
if (shapeFlag & 6 && props && "modelValue" in props) {
|
|
3385
|
-
if (!isCompatEnabled$1(
|
|
3386
|
-
"COMPONENT_V_MODEL",
|
|
3387
|
-
// this is a special case where we want to use the vnode component's
|
|
3388
|
-
// compat config instead of the current rendering instance (which is the
|
|
3389
|
-
// parent of the component that exposes v-model)
|
|
3390
|
-
{ type }
|
|
3391
|
-
)) {
|
|
3392
|
-
return;
|
|
3393
|
-
}
|
|
3394
|
-
if (!warnedTypes.has(comp)) {
|
|
3395
|
-
pushWarningContext(vnode);
|
|
3396
|
-
warnDeprecation$1("COMPONENT_V_MODEL", { type }, comp);
|
|
3397
|
-
popWarningContext();
|
|
3398
|
-
warnedTypes.add(comp);
|
|
3399
|
-
}
|
|
3400
|
-
const model = comp.model || {};
|
|
3401
|
-
applyModelFromMixins(model, comp.mixins);
|
|
3402
|
-
const { prop = "value", event = "input" } = model;
|
|
3403
|
-
if (prop !== "modelValue") {
|
|
3404
|
-
props[prop] = props.modelValue;
|
|
3405
|
-
delete props.modelValue;
|
|
3406
|
-
}
|
|
3407
|
-
if (dynamicProps) {
|
|
3408
|
-
dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
|
|
3409
|
-
}
|
|
3410
|
-
props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
|
|
3411
|
-
delete props["onUpdate:modelValue"];
|
|
3412
|
-
}
|
|
3413
|
-
}
|
|
3414
|
-
function applyModelFromMixins(model, mixins) {
|
|
3415
|
-
if (mixins) {
|
|
3416
|
-
mixins.forEach((m) => {
|
|
3417
|
-
if (m.model) extend(model, m.model);
|
|
3418
|
-
if (m.mixins) applyModelFromMixins(model, m.mixins);
|
|
3419
|
-
});
|
|
3420
|
-
}
|
|
3421
|
-
}
|
|
3422
|
-
function compatModelEmit(instance, event, args) {
|
|
3423
|
-
if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
|
|
3424
|
-
return;
|
|
3425
|
-
}
|
|
3426
|
-
const props = instance.vnode.props;
|
|
3427
|
-
const modelHandler = props && props[compatModelEventPrefix + event];
|
|
3428
|
-
if (modelHandler) {
|
|
3429
|
-
callWithErrorHandling(
|
|
3430
|
-
modelHandler,
|
|
3431
|
-
instance,
|
|
3432
|
-
6,
|
|
3433
|
-
args
|
|
3434
|
-
);
|
|
3435
|
-
}
|
|
3436
|
-
}
|
|
3437
|
-
|
|
3438
3379
|
let currentRenderingInstance = null;
|
|
3439
3380
|
let currentScopeId = null;
|
|
3440
3381
|
function setCurrentRenderingInstance(instance) {
|
|
@@ -3585,7 +3526,180 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
|
3585
3526
|
}
|
|
3586
3527
|
}
|
|
3587
3528
|
|
|
3588
|
-
|
|
3529
|
+
function provide(key, value) {
|
|
3530
|
+
{
|
|
3531
|
+
if (!currentInstance || currentInstance.isMounted) {
|
|
3532
|
+
warn$1(`provide() can only be used inside setup().`);
|
|
3533
|
+
}
|
|
3534
|
+
}
|
|
3535
|
+
if (currentInstance) {
|
|
3536
|
+
let provides = currentInstance.provides;
|
|
3537
|
+
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
3538
|
+
if (parentProvides === provides) {
|
|
3539
|
+
provides = currentInstance.provides = Object.create(parentProvides);
|
|
3540
|
+
}
|
|
3541
|
+
provides[key] = value;
|
|
3542
|
+
}
|
|
3543
|
+
}
|
|
3544
|
+
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
3545
|
+
const instance = getCurrentInstance();
|
|
3546
|
+
if (instance || currentApp) {
|
|
3547
|
+
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
3548
|
+
if (provides && key in provides) {
|
|
3549
|
+
return provides[key];
|
|
3550
|
+
} else if (arguments.length > 1) {
|
|
3551
|
+
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
3552
|
+
} else {
|
|
3553
|
+
warn$1(`injection "${String(key)}" not found.`);
|
|
3554
|
+
}
|
|
3555
|
+
} else {
|
|
3556
|
+
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
3557
|
+
}
|
|
3558
|
+
}
|
|
3559
|
+
function hasInjectionContext() {
|
|
3560
|
+
return !!(getCurrentInstance() || currentApp);
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3563
|
+
const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
|
|
3564
|
+
const useSSRContext = () => {
|
|
3565
|
+
{
|
|
3566
|
+
const ctx = inject(ssrContextKey);
|
|
3567
|
+
if (!ctx) {
|
|
3568
|
+
warn$1(
|
|
3569
|
+
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
3570
|
+
);
|
|
3571
|
+
}
|
|
3572
|
+
return ctx;
|
|
3573
|
+
}
|
|
3574
|
+
};
|
|
3575
|
+
|
|
3576
|
+
function watchEffect(effect, options) {
|
|
3577
|
+
return doWatch(effect, null, options);
|
|
3578
|
+
}
|
|
3579
|
+
function watchPostEffect(effect, options) {
|
|
3580
|
+
return doWatch(
|
|
3581
|
+
effect,
|
|
3582
|
+
null,
|
|
3583
|
+
extend({}, options, { flush: "post" })
|
|
3584
|
+
);
|
|
3585
|
+
}
|
|
3586
|
+
function watchSyncEffect(effect, options) {
|
|
3587
|
+
return doWatch(
|
|
3588
|
+
effect,
|
|
3589
|
+
null,
|
|
3590
|
+
extend({}, options, { flush: "sync" })
|
|
3591
|
+
);
|
|
3592
|
+
}
|
|
3593
|
+
function watch(source, cb, options) {
|
|
3594
|
+
if (!isFunction(cb)) {
|
|
3595
|
+
warn$1(
|
|
3596
|
+
`\`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.`
|
|
3597
|
+
);
|
|
3598
|
+
}
|
|
3599
|
+
return doWatch(source, cb, options);
|
|
3600
|
+
}
|
|
3601
|
+
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
3602
|
+
const { immediate, deep, flush, once } = options;
|
|
3603
|
+
if (!cb) {
|
|
3604
|
+
if (immediate !== void 0) {
|
|
3605
|
+
warn$1(
|
|
3606
|
+
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3607
|
+
);
|
|
3608
|
+
}
|
|
3609
|
+
if (deep !== void 0) {
|
|
3610
|
+
warn$1(
|
|
3611
|
+
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3612
|
+
);
|
|
3613
|
+
}
|
|
3614
|
+
if (once !== void 0) {
|
|
3615
|
+
warn$1(
|
|
3616
|
+
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3617
|
+
);
|
|
3618
|
+
}
|
|
3619
|
+
}
|
|
3620
|
+
const baseWatchOptions = extend({}, options);
|
|
3621
|
+
baseWatchOptions.onWarn = warn$1;
|
|
3622
|
+
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
3623
|
+
let ssrCleanup;
|
|
3624
|
+
if (isInSSRComponentSetup) {
|
|
3625
|
+
if (flush === "sync") {
|
|
3626
|
+
const ctx = useSSRContext();
|
|
3627
|
+
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
3628
|
+
} else if (!runsImmediately) {
|
|
3629
|
+
const watchStopHandle = () => {
|
|
3630
|
+
};
|
|
3631
|
+
watchStopHandle.stop = NOOP;
|
|
3632
|
+
watchStopHandle.resume = NOOP;
|
|
3633
|
+
watchStopHandle.pause = NOOP;
|
|
3634
|
+
return watchStopHandle;
|
|
3635
|
+
}
|
|
3636
|
+
}
|
|
3637
|
+
const instance = currentInstance;
|
|
3638
|
+
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
3639
|
+
let isPre = false;
|
|
3640
|
+
if (flush === "post") {
|
|
3641
|
+
baseWatchOptions.scheduler = (job) => {
|
|
3642
|
+
queuePostRenderEffect(job, instance && instance.suspense);
|
|
3643
|
+
};
|
|
3644
|
+
} else if (flush !== "sync") {
|
|
3645
|
+
isPre = true;
|
|
3646
|
+
baseWatchOptions.scheduler = (job, isFirstRun) => {
|
|
3647
|
+
if (isFirstRun) {
|
|
3648
|
+
job();
|
|
3649
|
+
} else {
|
|
3650
|
+
queueJob(job);
|
|
3651
|
+
}
|
|
3652
|
+
};
|
|
3653
|
+
}
|
|
3654
|
+
baseWatchOptions.augmentJob = (job) => {
|
|
3655
|
+
if (cb) {
|
|
3656
|
+
job.flags |= 4;
|
|
3657
|
+
}
|
|
3658
|
+
if (isPre) {
|
|
3659
|
+
job.flags |= 2;
|
|
3660
|
+
if (instance) {
|
|
3661
|
+
job.id = instance.uid;
|
|
3662
|
+
job.i = instance;
|
|
3663
|
+
}
|
|
3664
|
+
}
|
|
3665
|
+
};
|
|
3666
|
+
const watchHandle = watch$1(source, cb, baseWatchOptions);
|
|
3667
|
+
if (isInSSRComponentSetup) {
|
|
3668
|
+
if (ssrCleanup) {
|
|
3669
|
+
ssrCleanup.push(watchHandle);
|
|
3670
|
+
} else if (runsImmediately) {
|
|
3671
|
+
watchHandle();
|
|
3672
|
+
}
|
|
3673
|
+
}
|
|
3674
|
+
return watchHandle;
|
|
3675
|
+
}
|
|
3676
|
+
function instanceWatch(source, value, options) {
|
|
3677
|
+
const publicThis = this.proxy;
|
|
3678
|
+
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
3679
|
+
let cb;
|
|
3680
|
+
if (isFunction(value)) {
|
|
3681
|
+
cb = value;
|
|
3682
|
+
} else {
|
|
3683
|
+
cb = value.handler;
|
|
3684
|
+
options = value;
|
|
3685
|
+
}
|
|
3686
|
+
const reset = setCurrentInstance(this);
|
|
3687
|
+
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
3688
|
+
reset();
|
|
3689
|
+
return res;
|
|
3690
|
+
}
|
|
3691
|
+
function createPathGetter(ctx, path) {
|
|
3692
|
+
const segments = path.split(".");
|
|
3693
|
+
return () => {
|
|
3694
|
+
let cur = ctx;
|
|
3695
|
+
for (let i = 0; i < segments.length && cur; i++) {
|
|
3696
|
+
cur = cur[segments[i]];
|
|
3697
|
+
}
|
|
3698
|
+
return cur;
|
|
3699
|
+
};
|
|
3700
|
+
}
|
|
3701
|
+
|
|
3702
|
+
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
3589
3703
|
const isTeleport = (type) => type.__isTeleport;
|
|
3590
3704
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
3591
3705
|
const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
|
|
@@ -3945,8 +4059,8 @@ function prepareAnchor(target, vnode, createText, insert) {
|
|
|
3945
4059
|
return targetAnchor;
|
|
3946
4060
|
}
|
|
3947
4061
|
|
|
3948
|
-
const leaveCbKey = Symbol("_leaveCb");
|
|
3949
|
-
const enterCbKey$1 = Symbol("_enterCb");
|
|
4062
|
+
const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
|
|
4063
|
+
const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
|
|
3950
4064
|
function useTransitionState() {
|
|
3951
4065
|
const state = {
|
|
3952
4066
|
isMounted: false,
|
|
@@ -5486,7 +5600,9 @@ const KeepAliveImpl = {
|
|
|
5486
5600
|
}
|
|
5487
5601
|
function pruneCache(filter) {
|
|
5488
5602
|
cache.forEach((vnode, key) => {
|
|
5489
|
-
const name = getComponentName(
|
|
5603
|
+
const name = getComponentName(
|
|
5604
|
+
isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type
|
|
5605
|
+
);
|
|
5490
5606
|
if (name && !filter(name)) {
|
|
5491
5607
|
pruneCacheEntry(key);
|
|
5492
5608
|
}
|
|
@@ -5753,7 +5869,7 @@ const FILTERS = "filters";
|
|
|
5753
5869
|
function resolveComponent(name, maybeSelfReference) {
|
|
5754
5870
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
5755
5871
|
}
|
|
5756
|
-
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
5872
|
+
const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
5757
5873
|
function resolveDynamicComponent(component) {
|
|
5758
5874
|
if (isString(component)) {
|
|
5759
5875
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -7318,7 +7434,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7318
7434
|
return vm;
|
|
7319
7435
|
}
|
|
7320
7436
|
}
|
|
7321
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7437
|
+
Vue.version = `2.6.14-compat:${"3.5.26"}`;
|
|
7322
7438
|
Vue.config = singletonApp.config;
|
|
7323
7439
|
Vue.use = (plugin, ...options) => {
|
|
7324
7440
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -7895,177 +8011,70 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7895
8011
|
}
|
|
7896
8012
|
let currentApp = null;
|
|
7897
8013
|
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
8014
|
+
const compatModelEventPrefix = `onModelCompat:`;
|
|
8015
|
+
const warnedTypes = /* @__PURE__ */ new WeakSet();
|
|
8016
|
+
function convertLegacyVModelProps(vnode) {
|
|
8017
|
+
const { type, shapeFlag, props, dynamicProps } = vnode;
|
|
8018
|
+
const comp = type;
|
|
8019
|
+
if (shapeFlag & 6 && props && "modelValue" in props) {
|
|
8020
|
+
if (!isCompatEnabled$1(
|
|
8021
|
+
"COMPONENT_V_MODEL",
|
|
8022
|
+
// this is a special case where we want to use the vnode component's
|
|
8023
|
+
// compat config instead of the current rendering instance (which is the
|
|
8024
|
+
// parent of the component that exposes v-model)
|
|
8025
|
+
{ type }
|
|
8026
|
+
)) {
|
|
8027
|
+
return;
|
|
7902
8028
|
}
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
8029
|
+
if (!warnedTypes.has(comp)) {
|
|
8030
|
+
pushWarningContext(vnode);
|
|
8031
|
+
warnDeprecation$1(
|
|
8032
|
+
"COMPONENT_V_MODEL",
|
|
8033
|
+
{
|
|
8034
|
+
type,
|
|
8035
|
+
appContext: vnode.ctx && vnode.ctx.appContext || createAppContext()
|
|
8036
|
+
},
|
|
8037
|
+
comp
|
|
8038
|
+
);
|
|
8039
|
+
popWarningContext();
|
|
8040
|
+
warnedTypes.add(comp);
|
|
7909
8041
|
}
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
}
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
7917
|
-
if (provides && key in provides) {
|
|
7918
|
-
return provides[key];
|
|
7919
|
-
} else if (arguments.length > 1) {
|
|
7920
|
-
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
7921
|
-
} else {
|
|
7922
|
-
warn$1(`injection "${String(key)}" not found.`);
|
|
8042
|
+
const model = comp.model || {};
|
|
8043
|
+
applyModelFromMixins(model, comp.mixins);
|
|
8044
|
+
const { prop = "value", event = "input" } = model;
|
|
8045
|
+
if (prop !== "modelValue") {
|
|
8046
|
+
props[prop] = props.modelValue;
|
|
8047
|
+
delete props.modelValue;
|
|
7923
8048
|
}
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
}
|
|
7927
|
-
}
|
|
7928
|
-
function hasInjectionContext() {
|
|
7929
|
-
return !!(getCurrentInstance() || currentApp);
|
|
7930
|
-
}
|
|
7931
|
-
|
|
7932
|
-
const ssrContextKey = Symbol.for("v-scx");
|
|
7933
|
-
const useSSRContext = () => {
|
|
7934
|
-
{
|
|
7935
|
-
const ctx = inject(ssrContextKey);
|
|
7936
|
-
if (!ctx) {
|
|
7937
|
-
warn$1(
|
|
7938
|
-
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
7939
|
-
);
|
|
8049
|
+
if (dynamicProps) {
|
|
8050
|
+
dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
|
|
7940
8051
|
}
|
|
7941
|
-
|
|
8052
|
+
props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
|
|
8053
|
+
delete props["onUpdate:modelValue"];
|
|
7942
8054
|
}
|
|
7943
|
-
};
|
|
7944
|
-
|
|
7945
|
-
function watchEffect(effect, options) {
|
|
7946
|
-
return doWatch(effect, null, options);
|
|
7947
|
-
}
|
|
7948
|
-
function watchPostEffect(effect, options) {
|
|
7949
|
-
return doWatch(
|
|
7950
|
-
effect,
|
|
7951
|
-
null,
|
|
7952
|
-
extend({}, options, { flush: "post" })
|
|
7953
|
-
);
|
|
7954
8055
|
}
|
|
7955
|
-
function
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
}
|
|
7962
|
-
function watch(source, cb, options) {
|
|
7963
|
-
if (!isFunction(cb)) {
|
|
7964
|
-
warn$1(
|
|
7965
|
-
`\`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.`
|
|
7966
|
-
);
|
|
8056
|
+
function applyModelFromMixins(model, mixins) {
|
|
8057
|
+
if (mixins) {
|
|
8058
|
+
mixins.forEach((m) => {
|
|
8059
|
+
if (m.model) extend(model, m.model);
|
|
8060
|
+
if (m.mixins) applyModelFromMixins(model, m.mixins);
|
|
8061
|
+
});
|
|
7967
8062
|
}
|
|
7968
|
-
return doWatch(source, cb, options);
|
|
7969
8063
|
}
|
|
7970
|
-
function
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
if (immediate !== void 0) {
|
|
7974
|
-
warn$1(
|
|
7975
|
-
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
7976
|
-
);
|
|
7977
|
-
}
|
|
7978
|
-
if (deep !== void 0) {
|
|
7979
|
-
warn$1(
|
|
7980
|
-
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
7981
|
-
);
|
|
7982
|
-
}
|
|
7983
|
-
if (once !== void 0) {
|
|
7984
|
-
warn$1(
|
|
7985
|
-
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
7986
|
-
);
|
|
7987
|
-
}
|
|
7988
|
-
}
|
|
7989
|
-
const baseWatchOptions = extend({}, options);
|
|
7990
|
-
baseWatchOptions.onWarn = warn$1;
|
|
7991
|
-
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
7992
|
-
let ssrCleanup;
|
|
7993
|
-
if (isInSSRComponentSetup) {
|
|
7994
|
-
if (flush === "sync") {
|
|
7995
|
-
const ctx = useSSRContext();
|
|
7996
|
-
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
7997
|
-
} else if (!runsImmediately) {
|
|
7998
|
-
const watchStopHandle = () => {
|
|
7999
|
-
};
|
|
8000
|
-
watchStopHandle.stop = NOOP;
|
|
8001
|
-
watchStopHandle.resume = NOOP;
|
|
8002
|
-
watchStopHandle.pause = NOOP;
|
|
8003
|
-
return watchStopHandle;
|
|
8004
|
-
}
|
|
8005
|
-
}
|
|
8006
|
-
const instance = currentInstance;
|
|
8007
|
-
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
8008
|
-
let isPre = false;
|
|
8009
|
-
if (flush === "post") {
|
|
8010
|
-
baseWatchOptions.scheduler = (job) => {
|
|
8011
|
-
queuePostRenderEffect(job, instance && instance.suspense);
|
|
8012
|
-
};
|
|
8013
|
-
} else if (flush !== "sync") {
|
|
8014
|
-
isPre = true;
|
|
8015
|
-
baseWatchOptions.scheduler = (job, isFirstRun) => {
|
|
8016
|
-
if (isFirstRun) {
|
|
8017
|
-
job();
|
|
8018
|
-
} else {
|
|
8019
|
-
queueJob(job);
|
|
8020
|
-
}
|
|
8021
|
-
};
|
|
8022
|
-
}
|
|
8023
|
-
baseWatchOptions.augmentJob = (job) => {
|
|
8024
|
-
if (cb) {
|
|
8025
|
-
job.flags |= 4;
|
|
8026
|
-
}
|
|
8027
|
-
if (isPre) {
|
|
8028
|
-
job.flags |= 2;
|
|
8029
|
-
if (instance) {
|
|
8030
|
-
job.id = instance.uid;
|
|
8031
|
-
job.i = instance;
|
|
8032
|
-
}
|
|
8033
|
-
}
|
|
8034
|
-
};
|
|
8035
|
-
const watchHandle = watch$1(source, cb, baseWatchOptions);
|
|
8036
|
-
if (isInSSRComponentSetup) {
|
|
8037
|
-
if (ssrCleanup) {
|
|
8038
|
-
ssrCleanup.push(watchHandle);
|
|
8039
|
-
} else if (runsImmediately) {
|
|
8040
|
-
watchHandle();
|
|
8041
|
-
}
|
|
8064
|
+
function compatModelEmit(instance, event, args) {
|
|
8065
|
+
if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
|
|
8066
|
+
return;
|
|
8042
8067
|
}
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
cb = value.handler;
|
|
8053
|
-
options = value;
|
|
8068
|
+
const props = instance.vnode.props;
|
|
8069
|
+
const modelHandler = props && props[compatModelEventPrefix + event];
|
|
8070
|
+
if (modelHandler) {
|
|
8071
|
+
callWithErrorHandling(
|
|
8072
|
+
modelHandler,
|
|
8073
|
+
instance,
|
|
8074
|
+
6,
|
|
8075
|
+
args
|
|
8076
|
+
);
|
|
8054
8077
|
}
|
|
8055
|
-
const reset = setCurrentInstance(this);
|
|
8056
|
-
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
8057
|
-
reset();
|
|
8058
|
-
return res;
|
|
8059
|
-
}
|
|
8060
|
-
function createPathGetter(ctx, path) {
|
|
8061
|
-
const segments = path.split(".");
|
|
8062
|
-
return () => {
|
|
8063
|
-
let cur = ctx;
|
|
8064
|
-
for (let i = 0; i < segments.length && cur; i++) {
|
|
8065
|
-
cur = cur[segments[i]];
|
|
8066
|
-
}
|
|
8067
|
-
return cur;
|
|
8068
|
-
};
|
|
8069
8078
|
}
|
|
8070
8079
|
|
|
8071
8080
|
function useModel(props, name, options = EMPTY_OBJ) {
|
|
@@ -9351,7 +9360,15 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9351
9360
|
} else {
|
|
9352
9361
|
const el = n2.el = n1.el;
|
|
9353
9362
|
if (n2.children !== n1.children) {
|
|
9354
|
-
|
|
9363
|
+
if (isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
|
|
9364
|
+
const childNodes = container.childNodes;
|
|
9365
|
+
const newChild = hostCreateText(n2.children);
|
|
9366
|
+
const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
|
|
9367
|
+
hostInsert(newChild, container, oldChild);
|
|
9368
|
+
hostRemove(oldChild);
|
|
9369
|
+
} else {
|
|
9370
|
+
hostSetText(el, n2.children);
|
|
9371
|
+
}
|
|
9355
9372
|
}
|
|
9356
9373
|
}
|
|
9357
9374
|
};
|
|
@@ -9737,7 +9754,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9737
9754
|
} else {
|
|
9738
9755
|
if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
|
|
9739
9756
|
// of renderSlot() with no valid children
|
|
9740
|
-
n1.dynamicChildren) {
|
|
9757
|
+
n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
|
|
9741
9758
|
patchBlockChildren(
|
|
9742
9759
|
n1.dynamicChildren,
|
|
9743
9760
|
dynamicChildren,
|
|
@@ -10351,8 +10368,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10351
10368
|
const nextChild = c2[nextIndex];
|
|
10352
10369
|
const anchorVNode = c2[nextIndex + 1];
|
|
10353
10370
|
const anchor = nextIndex + 1 < l2 ? (
|
|
10354
|
-
// #13559, fallback to el placeholder for unresolved async component
|
|
10355
|
-
anchorVNode.el || anchorVNode
|
|
10371
|
+
// #13559, #14173 fallback to el placeholder for unresolved async component
|
|
10372
|
+
anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
|
|
10356
10373
|
) : parentAnchor;
|
|
10357
10374
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
10358
10375
|
patch(
|
|
@@ -10617,9 +10634,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10617
10634
|
};
|
|
10618
10635
|
let isFlushing = false;
|
|
10619
10636
|
const render = (vnode, container, namespace) => {
|
|
10637
|
+
let instance;
|
|
10620
10638
|
if (vnode == null) {
|
|
10621
10639
|
if (container._vnode) {
|
|
10622
10640
|
unmount(container._vnode, null, null, true);
|
|
10641
|
+
instance = container._vnode.component;
|
|
10623
10642
|
}
|
|
10624
10643
|
} else {
|
|
10625
10644
|
patch(
|
|
@@ -10635,7 +10654,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10635
10654
|
container._vnode = vnode;
|
|
10636
10655
|
if (!isFlushing) {
|
|
10637
10656
|
isFlushing = true;
|
|
10638
|
-
flushPreFlushCbs();
|
|
10657
|
+
flushPreFlushCbs(instance);
|
|
10639
10658
|
flushPostFlushCbs();
|
|
10640
10659
|
isFlushing = false;
|
|
10641
10660
|
}
|
|
@@ -10695,9 +10714,13 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
10695
10714
|
if (!shallow && c2.patchFlag !== -2)
|
|
10696
10715
|
traverseStaticChildren(c1, c2);
|
|
10697
10716
|
}
|
|
10698
|
-
if (c2.type === Text
|
|
10699
|
-
|
|
10700
|
-
|
|
10717
|
+
if (c2.type === Text) {
|
|
10718
|
+
if (c2.patchFlag !== -1) {
|
|
10719
|
+
c2.el = c1.el;
|
|
10720
|
+
} else {
|
|
10721
|
+
c2.__elIndex = i + // take fragment start anchor into account
|
|
10722
|
+
(n1.type === Fragment ? 1 : 0);
|
|
10723
|
+
}
|
|
10701
10724
|
}
|
|
10702
10725
|
if (c2.type === Comment && !c2.el) {
|
|
10703
10726
|
c2.el = c1.el;
|
|
@@ -10764,6 +10787,16 @@ function invalidateMount(hooks) {
|
|
|
10764
10787
|
hooks[i].flags |= 8;
|
|
10765
10788
|
}
|
|
10766
10789
|
}
|
|
10790
|
+
function resolveAsyncComponentPlaceholder(anchorVnode) {
|
|
10791
|
+
if (anchorVnode.placeholder) {
|
|
10792
|
+
return anchorVnode.placeholder;
|
|
10793
|
+
}
|
|
10794
|
+
const instance = anchorVnode.component;
|
|
10795
|
+
if (instance) {
|
|
10796
|
+
return resolveAsyncComponentPlaceholder(instance.subTree);
|
|
10797
|
+
}
|
|
10798
|
+
return null;
|
|
10799
|
+
}
|
|
10767
10800
|
|
|
10768
10801
|
const isSuspense = (type) => type.__isSuspense;
|
|
10769
10802
|
let suspenseId = 0;
|
|
@@ -11423,10 +11456,10 @@ function convertLegacyComponent(comp, instance) {
|
|
|
11423
11456
|
return comp;
|
|
11424
11457
|
}
|
|
11425
11458
|
|
|
11426
|
-
const Fragment = Symbol.for("v-fgt");
|
|
11427
|
-
const Text = Symbol.for("v-txt");
|
|
11428
|
-
const Comment = Symbol.for("v-cmt");
|
|
11429
|
-
const Static = Symbol.for("v-stc");
|
|
11459
|
+
const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
|
|
11460
|
+
const Text = /* @__PURE__ */ Symbol.for("v-txt");
|
|
11461
|
+
const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
11462
|
+
const Static = /* @__PURE__ */ Symbol.for("v-stc");
|
|
11430
11463
|
const blockStack = [];
|
|
11431
11464
|
let currentBlock = null;
|
|
11432
11465
|
function openBlock(disableTracking = false) {
|
|
@@ -12492,7 +12525,7 @@ function isMemoSame(cached, memo) {
|
|
|
12492
12525
|
return true;
|
|
12493
12526
|
}
|
|
12494
12527
|
|
|
12495
|
-
const version = "3.5.
|
|
12528
|
+
const version = "3.5.26";
|
|
12496
12529
|
const warn = warn$1 ;
|
|
12497
12530
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12498
12531
|
const devtools = devtools$1 ;
|
|
@@ -12604,7 +12637,7 @@ const nodeOps = {
|
|
|
12604
12637
|
|
|
12605
12638
|
const TRANSITION$1 = "transition";
|
|
12606
12639
|
const ANIMATION = "animation";
|
|
12607
|
-
const vtcKey = Symbol("_vtc");
|
|
12640
|
+
const vtcKey = /* @__PURE__ */ Symbol("_vtc");
|
|
12608
12641
|
const DOMTransitionPropsValidators = {
|
|
12609
12642
|
name: String,
|
|
12610
12643
|
type: String,
|
|
@@ -12934,8 +12967,8 @@ function patchClass(el, value, isSVG) {
|
|
|
12934
12967
|
}
|
|
12935
12968
|
}
|
|
12936
12969
|
|
|
12937
|
-
const vShowOriginalDisplay = Symbol("_vod");
|
|
12938
|
-
const vShowHidden = Symbol("_vsh");
|
|
12970
|
+
const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
|
|
12971
|
+
const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
|
|
12939
12972
|
const vShow = {
|
|
12940
12973
|
// used for prop mismatch check during hydration
|
|
12941
12974
|
name: "show",
|
|
@@ -12984,7 +13017,7 @@ function initVShowForSSR() {
|
|
|
12984
13017
|
};
|
|
12985
13018
|
}
|
|
12986
13019
|
|
|
12987
|
-
const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT" );
|
|
13020
|
+
const CSS_VAR_TEXT = /* @__PURE__ */ Symbol("CSS_VAR_TEXT" );
|
|
12988
13021
|
function useCssVars(getter) {
|
|
12989
13022
|
const instance = getCurrentInstance();
|
|
12990
13023
|
if (!instance) {
|
|
@@ -13182,7 +13215,7 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
|
|
|
13182
13215
|
const isEnumeratedAttr = /* @__PURE__ */ makeMap("contenteditable,draggable,spellcheck") ;
|
|
13183
13216
|
function compatCoerceAttr(el, key, value, instance = null) {
|
|
13184
13217
|
if (isEnumeratedAttr(key)) {
|
|
13185
|
-
const v2CoercedValue = value ===
|
|
13218
|
+
const v2CoercedValue = value === void 0 ? null : value === null || value === false || value === "false" ? "false" : "true";
|
|
13186
13219
|
if (v2CoercedValue && compatUtils.softAssertCompatEnabled(
|
|
13187
13220
|
"ATTR_ENUMERATED_COERCION",
|
|
13188
13221
|
instance,
|
|
@@ -13278,7 +13311,7 @@ function addEventListener(el, event, handler, options) {
|
|
|
13278
13311
|
function removeEventListener(el, event, handler, options) {
|
|
13279
13312
|
el.removeEventListener(event, handler, options);
|
|
13280
13313
|
}
|
|
13281
|
-
const veiKey = Symbol("_vei");
|
|
13314
|
+
const veiKey = /* @__PURE__ */ Symbol("_vei");
|
|
13282
13315
|
function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
13283
13316
|
const invokers = el[veiKey] || (el[veiKey] = {});
|
|
13284
13317
|
const existingInvoker = invokers[rawName];
|
|
@@ -13916,8 +13949,8 @@ function useCssModule(name = "$style") {
|
|
|
13916
13949
|
|
|
13917
13950
|
const positionMap = /* @__PURE__ */ new WeakMap();
|
|
13918
13951
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
13919
|
-
const moveCbKey = Symbol("_moveCb");
|
|
13920
|
-
const enterCbKey = Symbol("_enterCb");
|
|
13952
|
+
const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
|
|
13953
|
+
const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
|
|
13921
13954
|
const decorate = (t) => {
|
|
13922
13955
|
delete t.props.mode;
|
|
13923
13956
|
{
|
|
@@ -14079,7 +14112,7 @@ function onCompositionEnd(e) {
|
|
|
14079
14112
|
target.dispatchEvent(new Event("input"));
|
|
14080
14113
|
}
|
|
14081
14114
|
}
|
|
14082
|
-
const assignKey = Symbol("_assign");
|
|
14115
|
+
const assignKey = /* @__PURE__ */ Symbol("_assign");
|
|
14083
14116
|
function castValue(value, trim, number) {
|
|
14084
14117
|
if (trim) value = value.trim();
|
|
14085
14118
|
if (number) value = looseToNumber(value);
|
|
@@ -14774,81 +14807,81 @@ function createCompatVue() {
|
|
|
14774
14807
|
return Vue;
|
|
14775
14808
|
}
|
|
14776
14809
|
|
|
14777
|
-
const FRAGMENT = Symbol(`Fragment` );
|
|
14778
|
-
const TELEPORT = Symbol(`Teleport` );
|
|
14779
|
-
const SUSPENSE = Symbol(`Suspense` );
|
|
14780
|
-
const KEEP_ALIVE = Symbol(`KeepAlive` );
|
|
14781
|
-
const BASE_TRANSITION = Symbol(
|
|
14810
|
+
const FRAGMENT = /* @__PURE__ */ Symbol(`Fragment` );
|
|
14811
|
+
const TELEPORT = /* @__PURE__ */ Symbol(`Teleport` );
|
|
14812
|
+
const SUSPENSE = /* @__PURE__ */ Symbol(`Suspense` );
|
|
14813
|
+
const KEEP_ALIVE = /* @__PURE__ */ Symbol(`KeepAlive` );
|
|
14814
|
+
const BASE_TRANSITION = /* @__PURE__ */ Symbol(
|
|
14782
14815
|
`BaseTransition`
|
|
14783
14816
|
);
|
|
14784
|
-
const OPEN_BLOCK = Symbol(`openBlock` );
|
|
14785
|
-
const CREATE_BLOCK = Symbol(`createBlock` );
|
|
14786
|
-
const CREATE_ELEMENT_BLOCK = Symbol(
|
|
14817
|
+
const OPEN_BLOCK = /* @__PURE__ */ Symbol(`openBlock` );
|
|
14818
|
+
const CREATE_BLOCK = /* @__PURE__ */ Symbol(`createBlock` );
|
|
14819
|
+
const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
|
|
14787
14820
|
`createElementBlock`
|
|
14788
14821
|
);
|
|
14789
|
-
const CREATE_VNODE = Symbol(`createVNode` );
|
|
14790
|
-
const CREATE_ELEMENT_VNODE = Symbol(
|
|
14822
|
+
const CREATE_VNODE = /* @__PURE__ */ Symbol(`createVNode` );
|
|
14823
|
+
const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
|
|
14791
14824
|
`createElementVNode`
|
|
14792
14825
|
);
|
|
14793
|
-
const CREATE_COMMENT = Symbol(
|
|
14826
|
+
const CREATE_COMMENT = /* @__PURE__ */ Symbol(
|
|
14794
14827
|
`createCommentVNode`
|
|
14795
14828
|
);
|
|
14796
|
-
const CREATE_TEXT = Symbol(
|
|
14829
|
+
const CREATE_TEXT = /* @__PURE__ */ Symbol(
|
|
14797
14830
|
`createTextVNode`
|
|
14798
14831
|
);
|
|
14799
|
-
const CREATE_STATIC = Symbol(
|
|
14832
|
+
const CREATE_STATIC = /* @__PURE__ */ Symbol(
|
|
14800
14833
|
`createStaticVNode`
|
|
14801
14834
|
);
|
|
14802
|
-
const RESOLVE_COMPONENT = Symbol(
|
|
14835
|
+
const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
|
|
14803
14836
|
`resolveComponent`
|
|
14804
14837
|
);
|
|
14805
|
-
const RESOLVE_DYNAMIC_COMPONENT = Symbol(
|
|
14838
|
+
const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
|
|
14806
14839
|
`resolveDynamicComponent`
|
|
14807
14840
|
);
|
|
14808
|
-
const RESOLVE_DIRECTIVE = Symbol(
|
|
14841
|
+
const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
|
|
14809
14842
|
`resolveDirective`
|
|
14810
14843
|
);
|
|
14811
|
-
const RESOLVE_FILTER = Symbol(
|
|
14844
|
+
const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
|
|
14812
14845
|
`resolveFilter`
|
|
14813
14846
|
);
|
|
14814
|
-
const WITH_DIRECTIVES = Symbol(
|
|
14847
|
+
const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
|
|
14815
14848
|
`withDirectives`
|
|
14816
14849
|
);
|
|
14817
|
-
const RENDER_LIST = Symbol(`renderList` );
|
|
14818
|
-
const RENDER_SLOT = Symbol(`renderSlot` );
|
|
14819
|
-
const CREATE_SLOTS = Symbol(`createSlots` );
|
|
14820
|
-
const TO_DISPLAY_STRING = Symbol(
|
|
14850
|
+
const RENDER_LIST = /* @__PURE__ */ Symbol(`renderList` );
|
|
14851
|
+
const RENDER_SLOT = /* @__PURE__ */ Symbol(`renderSlot` );
|
|
14852
|
+
const CREATE_SLOTS = /* @__PURE__ */ Symbol(`createSlots` );
|
|
14853
|
+
const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
|
|
14821
14854
|
`toDisplayString`
|
|
14822
14855
|
);
|
|
14823
|
-
const MERGE_PROPS = Symbol(`mergeProps` );
|
|
14824
|
-
const NORMALIZE_CLASS = Symbol(
|
|
14856
|
+
const MERGE_PROPS = /* @__PURE__ */ Symbol(`mergeProps` );
|
|
14857
|
+
const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
|
|
14825
14858
|
`normalizeClass`
|
|
14826
14859
|
);
|
|
14827
|
-
const NORMALIZE_STYLE = Symbol(
|
|
14860
|
+
const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
|
|
14828
14861
|
`normalizeStyle`
|
|
14829
14862
|
);
|
|
14830
|
-
const NORMALIZE_PROPS = Symbol(
|
|
14863
|
+
const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
|
|
14831
14864
|
`normalizeProps`
|
|
14832
14865
|
);
|
|
14833
|
-
const GUARD_REACTIVE_PROPS = Symbol(
|
|
14866
|
+
const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
|
|
14834
14867
|
`guardReactiveProps`
|
|
14835
14868
|
);
|
|
14836
|
-
const TO_HANDLERS = Symbol(`toHandlers` );
|
|
14837
|
-
const CAMELIZE = Symbol(`camelize` );
|
|
14838
|
-
const CAPITALIZE = Symbol(`capitalize` );
|
|
14839
|
-
const TO_HANDLER_KEY = Symbol(
|
|
14869
|
+
const TO_HANDLERS = /* @__PURE__ */ Symbol(`toHandlers` );
|
|
14870
|
+
const CAMELIZE = /* @__PURE__ */ Symbol(`camelize` );
|
|
14871
|
+
const CAPITALIZE = /* @__PURE__ */ Symbol(`capitalize` );
|
|
14872
|
+
const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
|
|
14840
14873
|
`toHandlerKey`
|
|
14841
14874
|
);
|
|
14842
|
-
const SET_BLOCK_TRACKING = Symbol(
|
|
14875
|
+
const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
|
|
14843
14876
|
`setBlockTracking`
|
|
14844
14877
|
);
|
|
14845
|
-
const PUSH_SCOPE_ID = Symbol(`pushScopeId` );
|
|
14846
|
-
const POP_SCOPE_ID = Symbol(`popScopeId` );
|
|
14847
|
-
const WITH_CTX = Symbol(`withCtx` );
|
|
14848
|
-
const UNREF = Symbol(`unref` );
|
|
14849
|
-
const IS_REF = Symbol(`isRef` );
|
|
14850
|
-
const WITH_MEMO = Symbol(`withMemo` );
|
|
14851
|
-
const IS_MEMO_SAME = Symbol(`isMemoSame` );
|
|
14878
|
+
const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(`pushScopeId` );
|
|
14879
|
+
const POP_SCOPE_ID = /* @__PURE__ */ Symbol(`popScopeId` );
|
|
14880
|
+
const WITH_CTX = /* @__PURE__ */ Symbol(`withCtx` );
|
|
14881
|
+
const UNREF = /* @__PURE__ */ Symbol(`unref` );
|
|
14882
|
+
const IS_REF = /* @__PURE__ */ Symbol(`isRef` );
|
|
14883
|
+
const WITH_MEMO = /* @__PURE__ */ Symbol(`withMemo` );
|
|
14884
|
+
const IS_MEMO_SAME = /* @__PURE__ */ Symbol(`isMemoSame` );
|
|
14852
14885
|
const helperNameMap = {
|
|
14853
14886
|
[FRAGMENT]: `Fragment`,
|
|
14854
14887
|
[TELEPORT]: `Teleport`,
|
|
@@ -15143,14 +15176,28 @@ class Tokenizer {
|
|
|
15143
15176
|
getPos(index) {
|
|
15144
15177
|
let line = 1;
|
|
15145
15178
|
let column = index + 1;
|
|
15146
|
-
|
|
15147
|
-
|
|
15148
|
-
|
|
15149
|
-
|
|
15150
|
-
|
|
15151
|
-
|
|
15179
|
+
const length = this.newlines.length;
|
|
15180
|
+
let j = -1;
|
|
15181
|
+
if (length > 100) {
|
|
15182
|
+
let l = -1;
|
|
15183
|
+
let r = length;
|
|
15184
|
+
while (l + 1 < r) {
|
|
15185
|
+
const m = l + r >>> 1;
|
|
15186
|
+
this.newlines[m] < index ? l = m : r = m;
|
|
15187
|
+
}
|
|
15188
|
+
j = l;
|
|
15189
|
+
} else {
|
|
15190
|
+
for (let i = length - 1; i >= 0; i--) {
|
|
15191
|
+
if (index > this.newlines[i]) {
|
|
15192
|
+
j = i;
|
|
15193
|
+
break;
|
|
15194
|
+
}
|
|
15152
15195
|
}
|
|
15153
15196
|
}
|
|
15197
|
+
if (j >= 0) {
|
|
15198
|
+
line = j + 2;
|
|
15199
|
+
column = index - this.newlines[j];
|
|
15200
|
+
}
|
|
15154
15201
|
return {
|
|
15155
15202
|
column,
|
|
15156
15203
|
line,
|
|
@@ -15965,7 +16012,7 @@ const errorMessages = {
|
|
|
15965
16012
|
[32]: `v-for has invalid expression.`,
|
|
15966
16013
|
[33]: `<template v-for> key should be placed on the <template> tag.`,
|
|
15967
16014
|
[34]: `v-bind is missing expression.`,
|
|
15968
|
-
[
|
|
16015
|
+
[53]: `v-bind with same-name shorthand only allows static argument.`,
|
|
15969
16016
|
[35]: `v-on is missing expression.`,
|
|
15970
16017
|
[36]: `Unexpected custom directive on <slot> outlet.`,
|
|
15971
16018
|
[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.`,
|
|
@@ -15977,16 +16024,17 @@ const errorMessages = {
|
|
|
15977
16024
|
[43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
|
|
15978
16025
|
[44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
|
|
15979
16026
|
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
|
|
15980
|
-
[45]: `
|
|
15981
|
-
[46]:
|
|
15982
|
-
[
|
|
16027
|
+
[45]: `v-model cannot be used on a const binding because it is not writable.`,
|
|
16028
|
+
[46]: `Error parsing JavaScript expression: `,
|
|
16029
|
+
[47]: `<KeepAlive> expects exactly one child component.`,
|
|
16030
|
+
[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.`,
|
|
15983
16031
|
// generic errors
|
|
15984
|
-
[
|
|
15985
|
-
[
|
|
15986
|
-
[
|
|
15987
|
-
[
|
|
16032
|
+
[48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
|
|
16033
|
+
[49]: `ES module mode is not supported in this build of compiler.`,
|
|
16034
|
+
[50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
|
|
16035
|
+
[51]: `"scopeId" option is only supported in module mode.`,
|
|
15988
16036
|
// just to fulfill types
|
|
15989
|
-
[
|
|
16037
|
+
[54]: ``
|
|
15990
16038
|
};
|
|
15991
16039
|
|
|
15992
16040
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
@@ -18172,7 +18220,7 @@ function validateBrowserExpression(node, context, asParams = false, asRawStateme
|
|
|
18172
18220
|
}
|
|
18173
18221
|
context.onError(
|
|
18174
18222
|
createCompilerError(
|
|
18175
|
-
|
|
18223
|
+
46,
|
|
18176
18224
|
node.loc,
|
|
18177
18225
|
void 0,
|
|
18178
18226
|
message
|
|
@@ -18938,7 +18986,7 @@ const transformElement = (node, context) => {
|
|
|
18938
18986
|
patchFlag |= 1024;
|
|
18939
18987
|
if (node.children.length > 1) {
|
|
18940
18988
|
context.onError(
|
|
18941
|
-
createCompilerError(
|
|
18989
|
+
createCompilerError(47, {
|
|
18942
18990
|
start: node.children[0].loc.start,
|
|
18943
18991
|
end: node.children[node.children.length - 1].loc.end,
|
|
18944
18992
|
source: ""
|
|
@@ -19525,7 +19573,7 @@ const transformOn$1 = (dir, node, context, augmentor) => {
|
|
|
19525
19573
|
if (arg.isStatic) {
|
|
19526
19574
|
let rawName = arg.content;
|
|
19527
19575
|
if (rawName.startsWith("vnode")) {
|
|
19528
|
-
context.onError(createCompilerError(
|
|
19576
|
+
context.onError(createCompilerError(52, arg.loc));
|
|
19529
19577
|
}
|
|
19530
19578
|
if (rawName.startsWith("vue:")) {
|
|
19531
19579
|
rawName = `vnode-${rawName.slice(4)}`;
|
|
@@ -19758,6 +19806,10 @@ const transformModel$1 = (dir, node, context) => {
|
|
|
19758
19806
|
context.onError(createCompilerError(44, exp.loc));
|
|
19759
19807
|
return createTransformProps();
|
|
19760
19808
|
}
|
|
19809
|
+
if (bindingType === "literal-const" || bindingType === "setup-const") {
|
|
19810
|
+
context.onError(createCompilerError(45, exp.loc));
|
|
19811
|
+
return createTransformProps();
|
|
19812
|
+
}
|
|
19761
19813
|
if (!expString.trim() || !isMemberExpression(exp) && true) {
|
|
19762
19814
|
context.onError(
|
|
19763
19815
|
createCompilerError(42, exp.loc)
|
|
@@ -19986,7 +20038,7 @@ const transformVBindShorthand = (node, context) => {
|
|
|
19986
20038
|
if (arg.type !== 4 || !arg.isStatic) {
|
|
19987
20039
|
context.onError(
|
|
19988
20040
|
createCompilerError(
|
|
19989
|
-
|
|
20041
|
+
53,
|
|
19990
20042
|
arg.loc
|
|
19991
20043
|
)
|
|
19992
20044
|
);
|
|
@@ -20030,17 +20082,17 @@ function baseCompile(source, options = {}) {
|
|
|
20030
20082
|
const isModuleMode = options.mode === "module";
|
|
20031
20083
|
{
|
|
20032
20084
|
if (options.prefixIdentifiers === true) {
|
|
20033
|
-
onError(createCompilerError(47));
|
|
20034
|
-
} else if (isModuleMode) {
|
|
20035
20085
|
onError(createCompilerError(48));
|
|
20086
|
+
} else if (isModuleMode) {
|
|
20087
|
+
onError(createCompilerError(49));
|
|
20036
20088
|
}
|
|
20037
20089
|
}
|
|
20038
20090
|
const prefixIdentifiers = false;
|
|
20039
20091
|
if (options.cacheHandlers) {
|
|
20040
|
-
onError(createCompilerError(
|
|
20092
|
+
onError(createCompilerError(50));
|
|
20041
20093
|
}
|
|
20042
20094
|
if (options.scopeId && !isModuleMode) {
|
|
20043
|
-
onError(createCompilerError(
|
|
20095
|
+
onError(createCompilerError(51));
|
|
20044
20096
|
}
|
|
20045
20097
|
const resolvedOptions = extend({}, options, {
|
|
20046
20098
|
prefixIdentifiers
|
|
@@ -20068,26 +20120,26 @@ function baseCompile(source, options = {}) {
|
|
|
20068
20120
|
|
|
20069
20121
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
20070
20122
|
|
|
20071
|
-
const V_MODEL_RADIO = Symbol(`vModelRadio` );
|
|
20072
|
-
const V_MODEL_CHECKBOX = Symbol(
|
|
20123
|
+
const V_MODEL_RADIO = /* @__PURE__ */ Symbol(`vModelRadio` );
|
|
20124
|
+
const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
|
|
20073
20125
|
`vModelCheckbox`
|
|
20074
20126
|
);
|
|
20075
|
-
const V_MODEL_TEXT = Symbol(`vModelText` );
|
|
20076
|
-
const V_MODEL_SELECT = Symbol(
|
|
20127
|
+
const V_MODEL_TEXT = /* @__PURE__ */ Symbol(`vModelText` );
|
|
20128
|
+
const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
|
|
20077
20129
|
`vModelSelect`
|
|
20078
20130
|
);
|
|
20079
|
-
const V_MODEL_DYNAMIC = Symbol(
|
|
20131
|
+
const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
|
|
20080
20132
|
`vModelDynamic`
|
|
20081
20133
|
);
|
|
20082
|
-
const V_ON_WITH_MODIFIERS = Symbol(
|
|
20134
|
+
const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
|
|
20083
20135
|
`vOnModifiersGuard`
|
|
20084
20136
|
);
|
|
20085
|
-
const V_ON_WITH_KEYS = Symbol(
|
|
20137
|
+
const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
|
|
20086
20138
|
`vOnKeysGuard`
|
|
20087
20139
|
);
|
|
20088
|
-
const V_SHOW = Symbol(`vShow` );
|
|
20089
|
-
const TRANSITION = Symbol(`Transition` );
|
|
20090
|
-
const TRANSITION_GROUP = Symbol(
|
|
20140
|
+
const V_SHOW = /* @__PURE__ */ Symbol(`vShow` );
|
|
20141
|
+
const TRANSITION = /* @__PURE__ */ Symbol(`Transition` );
|
|
20142
|
+
const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
|
|
20091
20143
|
`TransitionGroup`
|
|
20092
20144
|
);
|
|
20093
20145
|
registerRuntimeHelpers({
|
|
@@ -20198,29 +20250,29 @@ function createDOMCompilerError(code, loc) {
|
|
|
20198
20250
|
);
|
|
20199
20251
|
}
|
|
20200
20252
|
const DOMErrorMessages = {
|
|
20201
|
-
[
|
|
20202
|
-
[
|
|
20203
|
-
[
|
|
20204
|
-
[
|
|
20205
|
-
[
|
|
20206
|
-
[
|
|
20207
|
-
[
|
|
20208
|
-
[
|
|
20209
|
-
[
|
|
20210
|
-
[
|
|
20211
|
-
[
|
|
20253
|
+
[54]: `v-html is missing expression.`,
|
|
20254
|
+
[55]: `v-html will override element children.`,
|
|
20255
|
+
[56]: `v-text is missing expression.`,
|
|
20256
|
+
[57]: `v-text will override element children.`,
|
|
20257
|
+
[58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
|
|
20258
|
+
[59]: `v-model argument is not supported on plain elements.`,
|
|
20259
|
+
[60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
|
|
20260
|
+
[61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
|
|
20261
|
+
[62]: `v-show is missing expression.`,
|
|
20262
|
+
[63]: `<Transition> expects exactly one child element or component.`,
|
|
20263
|
+
[64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
|
|
20212
20264
|
};
|
|
20213
20265
|
|
|
20214
20266
|
const transformVHtml = (dir, node, context) => {
|
|
20215
20267
|
const { exp, loc } = dir;
|
|
20216
20268
|
if (!exp) {
|
|
20217
20269
|
context.onError(
|
|
20218
|
-
createDOMCompilerError(
|
|
20270
|
+
createDOMCompilerError(54, loc)
|
|
20219
20271
|
);
|
|
20220
20272
|
}
|
|
20221
20273
|
if (node.children.length) {
|
|
20222
20274
|
context.onError(
|
|
20223
|
-
createDOMCompilerError(
|
|
20275
|
+
createDOMCompilerError(55, loc)
|
|
20224
20276
|
);
|
|
20225
20277
|
node.children.length = 0;
|
|
20226
20278
|
}
|
|
@@ -20238,12 +20290,12 @@ const transformVText = (dir, node, context) => {
|
|
|
20238
20290
|
const { exp, loc } = dir;
|
|
20239
20291
|
if (!exp) {
|
|
20240
20292
|
context.onError(
|
|
20241
|
-
createDOMCompilerError(
|
|
20293
|
+
createDOMCompilerError(56, loc)
|
|
20242
20294
|
);
|
|
20243
20295
|
}
|
|
20244
20296
|
if (node.children.length) {
|
|
20245
20297
|
context.onError(
|
|
20246
|
-
createDOMCompilerError(
|
|
20298
|
+
createDOMCompilerError(57, loc)
|
|
20247
20299
|
);
|
|
20248
20300
|
node.children.length = 0;
|
|
20249
20301
|
}
|
|
@@ -20269,7 +20321,7 @@ const transformModel = (dir, node, context) => {
|
|
|
20269
20321
|
if (dir.arg) {
|
|
20270
20322
|
context.onError(
|
|
20271
20323
|
createDOMCompilerError(
|
|
20272
|
-
|
|
20324
|
+
59,
|
|
20273
20325
|
dir.arg.loc
|
|
20274
20326
|
)
|
|
20275
20327
|
);
|
|
@@ -20279,7 +20331,7 @@ const transformModel = (dir, node, context) => {
|
|
|
20279
20331
|
if (value && isStaticArgOf(value.arg, "value")) {
|
|
20280
20332
|
context.onError(
|
|
20281
20333
|
createDOMCompilerError(
|
|
20282
|
-
|
|
20334
|
+
61,
|
|
20283
20335
|
value.loc
|
|
20284
20336
|
)
|
|
20285
20337
|
);
|
|
@@ -20307,7 +20359,7 @@ const transformModel = (dir, node, context) => {
|
|
|
20307
20359
|
isInvalidType = true;
|
|
20308
20360
|
context.onError(
|
|
20309
20361
|
createDOMCompilerError(
|
|
20310
|
-
|
|
20362
|
+
60,
|
|
20311
20363
|
dir.loc
|
|
20312
20364
|
)
|
|
20313
20365
|
);
|
|
@@ -20333,7 +20385,7 @@ const transformModel = (dir, node, context) => {
|
|
|
20333
20385
|
} else {
|
|
20334
20386
|
context.onError(
|
|
20335
20387
|
createDOMCompilerError(
|
|
20336
|
-
|
|
20388
|
+
58,
|
|
20337
20389
|
dir.loc
|
|
20338
20390
|
)
|
|
20339
20391
|
);
|
|
@@ -20441,7 +20493,7 @@ const transformShow = (dir, node, context) => {
|
|
|
20441
20493
|
const { exp, loc } = dir;
|
|
20442
20494
|
if (!exp) {
|
|
20443
20495
|
context.onError(
|
|
20444
|
-
createDOMCompilerError(
|
|
20496
|
+
createDOMCompilerError(62, loc)
|
|
20445
20497
|
);
|
|
20446
20498
|
}
|
|
20447
20499
|
return {
|
|
@@ -20461,7 +20513,7 @@ const transformTransition = (node, context) => {
|
|
|
20461
20513
|
if (hasMultipleChildren(node)) {
|
|
20462
20514
|
context.onError(
|
|
20463
20515
|
createDOMCompilerError(
|
|
20464
|
-
|
|
20516
|
+
63,
|
|
20465
20517
|
{
|
|
20466
20518
|
start: node.children[0].loc.start,
|
|
20467
20519
|
end: node.children[node.children.length - 1].loc.end,
|
|
@@ -20500,7 +20552,7 @@ const ignoreSideEffectTags = (node, context) => {
|
|
|
20500
20552
|
if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
|
|
20501
20553
|
context.onError(
|
|
20502
20554
|
createDOMCompilerError(
|
|
20503
|
-
|
|
20555
|
+
64,
|
|
20504
20556
|
node.loc
|
|
20505
20557
|
)
|
|
20506
20558
|
);
|