@vue/compat 3.3.3 → 3.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue.cjs.js +2 -2
- package/dist/vue.cjs.prod.js +2 -2
- package/dist/vue.esm-browser.js +2 -2
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.esm-bundler.js +392 -386
- package/dist/vue.global.js +2 -2
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +2 -2
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.esm-bundler.js +289 -284
- package/dist/vue.runtime.global.js +2 -2
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +2 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -7,8 +7,8 @@ function makeMap(str, expectsLowerCase) {
|
|
|
7
7
|
return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
const EMPTY_OBJ = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
11
|
-
const EMPTY_ARR = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
|
|
10
|
+
const EMPTY_OBJ = !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
|
11
|
+
const EMPTY_ARR = !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
|
12
12
|
const NOOP = () => {
|
|
13
13
|
};
|
|
14
14
|
const NO = () => false;
|
|
@@ -355,7 +355,7 @@ class EffectScope {
|
|
|
355
355
|
} finally {
|
|
356
356
|
activeEffectScope = currentEffectScope;
|
|
357
357
|
}
|
|
358
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
358
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
359
359
|
warn$1(`cannot run an inactive effect scope.`);
|
|
360
360
|
}
|
|
361
361
|
}
|
|
@@ -413,7 +413,7 @@ function getCurrentScope() {
|
|
|
413
413
|
function onScopeDispose(fn) {
|
|
414
414
|
if (activeEffectScope) {
|
|
415
415
|
activeEffectScope.cleanups.push(fn);
|
|
416
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
416
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
417
417
|
warn$1(
|
|
418
418
|
`onScopeDispose() is called when there is no active effect scope to be associated with.`
|
|
419
419
|
);
|
|
@@ -458,8 +458,8 @@ let effectTrackDepth = 0;
|
|
|
458
458
|
let trackOpBit = 1;
|
|
459
459
|
const maxMarkerBits = 30;
|
|
460
460
|
let activeEffect;
|
|
461
|
-
const ITERATE_KEY = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : "");
|
|
462
|
-
const MAP_KEY_ITERATE_KEY = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
|
|
461
|
+
const ITERATE_KEY = Symbol(!!(process.env.NODE_ENV !== "production") ? "iterate" : "");
|
|
462
|
+
const MAP_KEY_ITERATE_KEY = Symbol(!!(process.env.NODE_ENV !== "production") ? "Map key iterate" : "");
|
|
463
463
|
class ReactiveEffect {
|
|
464
464
|
constructor(fn, scheduler = null, scope) {
|
|
465
465
|
this.fn = fn;
|
|
@@ -566,7 +566,7 @@ function track(target, type, key) {
|
|
|
566
566
|
if (!dep) {
|
|
567
567
|
depsMap.set(key, dep = createDep());
|
|
568
568
|
}
|
|
569
|
-
const eventInfo = process.env.NODE_ENV !== "production" ? { effect: activeEffect, target, type, key } : void 0;
|
|
569
|
+
const eventInfo = !!(process.env.NODE_ENV !== "production") ? { effect: activeEffect, target, type, key } : void 0;
|
|
570
570
|
trackEffects(dep, eventInfo);
|
|
571
571
|
}
|
|
572
572
|
}
|
|
@@ -583,7 +583,7 @@ function trackEffects(dep, debuggerEventExtraInfo) {
|
|
|
583
583
|
if (shouldTrack2) {
|
|
584
584
|
dep.add(activeEffect);
|
|
585
585
|
activeEffect.deps.push(dep);
|
|
586
|
-
if (process.env.NODE_ENV !== "production" && activeEffect.onTrack) {
|
|
586
|
+
if (!!(process.env.NODE_ENV !== "production") && activeEffect.onTrack) {
|
|
587
587
|
activeEffect.onTrack(
|
|
588
588
|
extend(
|
|
589
589
|
{
|
|
@@ -640,10 +640,10 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
640
640
|
break;
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
|
-
const eventInfo = process.env.NODE_ENV !== "production" ? { target, type, key, newValue, oldValue, oldTarget } : void 0;
|
|
643
|
+
const eventInfo = !!(process.env.NODE_ENV !== "production") ? { target, type, key, newValue, oldValue, oldTarget } : void 0;
|
|
644
644
|
if (deps.length === 1) {
|
|
645
645
|
if (deps[0]) {
|
|
646
|
-
if (process.env.NODE_ENV !== "production") {
|
|
646
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
647
647
|
triggerEffects(deps[0], eventInfo);
|
|
648
648
|
} else {
|
|
649
649
|
triggerEffects(deps[0]);
|
|
@@ -656,7 +656,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
656
656
|
effects.push(...dep);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
if (process.env.NODE_ENV !== "production") {
|
|
659
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
660
660
|
triggerEffects(createDep(effects), eventInfo);
|
|
661
661
|
} else {
|
|
662
662
|
triggerEffects(createDep(effects));
|
|
@@ -678,7 +678,7 @@ function triggerEffects(dep, debuggerEventExtraInfo) {
|
|
|
678
678
|
}
|
|
679
679
|
function triggerEffect(effect2, debuggerEventExtraInfo) {
|
|
680
680
|
if (effect2 !== activeEffect || effect2.allowRecurse) {
|
|
681
|
-
if (process.env.NODE_ENV !== "production" && effect2.onTrigger) {
|
|
681
|
+
if (!!(process.env.NODE_ENV !== "production") && effect2.onTrigger) {
|
|
682
682
|
effect2.onTrigger(extend({ effect: effect2 }, debuggerEventExtraInfo));
|
|
683
683
|
}
|
|
684
684
|
if (effect2.scheduler) {
|
|
@@ -832,7 +832,7 @@ const mutableHandlers = {
|
|
|
832
832
|
const readonlyHandlers = {
|
|
833
833
|
get: readonlyGet,
|
|
834
834
|
set(target, key) {
|
|
835
|
-
if (process.env.NODE_ENV !== "production") {
|
|
835
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
836
836
|
warn$1(
|
|
837
837
|
`Set operation on key "${String(key)}" failed: target is readonly.`,
|
|
838
838
|
target
|
|
@@ -841,7 +841,7 @@ const readonlyHandlers = {
|
|
|
841
841
|
return true;
|
|
842
842
|
},
|
|
843
843
|
deleteProperty(target, key) {
|
|
844
|
-
if (process.env.NODE_ENV !== "production") {
|
|
844
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
845
845
|
warn$1(
|
|
846
846
|
`Delete operation on key "${String(key)}" failed: target is readonly.`,
|
|
847
847
|
target
|
|
@@ -924,7 +924,7 @@ function set(key, value) {
|
|
|
924
924
|
if (!hadKey) {
|
|
925
925
|
key = toRaw(key);
|
|
926
926
|
hadKey = has2.call(target, key);
|
|
927
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
927
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
928
928
|
checkIdentityKeys(target, has2, key);
|
|
929
929
|
}
|
|
930
930
|
const oldValue = get2.call(target, key);
|
|
@@ -943,7 +943,7 @@ function deleteEntry(key) {
|
|
|
943
943
|
if (!hadKey) {
|
|
944
944
|
key = toRaw(key);
|
|
945
945
|
hadKey = has2.call(target, key);
|
|
946
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
946
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
947
947
|
checkIdentityKeys(target, has2, key);
|
|
948
948
|
}
|
|
949
949
|
const oldValue = get2 ? get2.call(target, key) : void 0;
|
|
@@ -956,7 +956,7 @@ function deleteEntry(key) {
|
|
|
956
956
|
function clear() {
|
|
957
957
|
const target = toRaw(this);
|
|
958
958
|
const hadItems = target.size !== 0;
|
|
959
|
-
const oldTarget = process.env.NODE_ENV !== "production" ? isMap(target) ? new Map(target) : new Set(target) : void 0;
|
|
959
|
+
const oldTarget = !!(process.env.NODE_ENV !== "production") ? isMap(target) ? new Map(target) : new Set(target) : void 0;
|
|
960
960
|
const result = target.clear();
|
|
961
961
|
if (hadItems) {
|
|
962
962
|
trigger(target, "clear", void 0, void 0, oldTarget);
|
|
@@ -1007,7 +1007,7 @@ function createIterableMethod(method, isReadonly, isShallow) {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
function createReadonlyMethod(type) {
|
|
1009
1009
|
return function(...args) {
|
|
1010
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1010
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1011
1011
|
const key = args[0] ? `on key "${args[0]}" ` : ``;
|
|
1012
1012
|
console.warn(
|
|
1013
1013
|
`${capitalize(type)} operation ${key}failed: target is readonly.`,
|
|
@@ -1215,7 +1215,7 @@ function shallowReadonly(target) {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {
|
|
1217
1217
|
if (!isObject(target)) {
|
|
1218
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1218
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1219
1219
|
console.warn(`value cannot be made reactive: ${String(target)}`);
|
|
1220
1220
|
}
|
|
1221
1221
|
return target;
|
|
@@ -1267,7 +1267,7 @@ const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
|
1267
1267
|
function trackRefValue(ref2) {
|
|
1268
1268
|
if (shouldTrack && activeEffect) {
|
|
1269
1269
|
ref2 = toRaw(ref2);
|
|
1270
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1270
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1271
1271
|
trackEffects(ref2.dep || (ref2.dep = createDep()), {
|
|
1272
1272
|
target: ref2,
|
|
1273
1273
|
type: "get",
|
|
@@ -1282,7 +1282,7 @@ function triggerRefValue(ref2, newVal) {
|
|
|
1282
1282
|
ref2 = toRaw(ref2);
|
|
1283
1283
|
const dep = ref2.dep;
|
|
1284
1284
|
if (dep) {
|
|
1285
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1285
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1286
1286
|
triggerEffects(dep, {
|
|
1287
1287
|
target: ref2,
|
|
1288
1288
|
type: "set",
|
|
@@ -1332,7 +1332,7 @@ class RefImpl {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
}
|
|
1334
1334
|
function triggerRef(ref2) {
|
|
1335
|
-
triggerRefValue(ref2, process.env.NODE_ENV !== "production" ? ref2.value : void 0);
|
|
1335
|
+
triggerRefValue(ref2, !!(process.env.NODE_ENV !== "production") ? ref2.value : void 0);
|
|
1336
1336
|
}
|
|
1337
1337
|
function unref(ref2) {
|
|
1338
1338
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -1377,7 +1377,7 @@ function customRef(factory) {
|
|
|
1377
1377
|
return new CustomRefImpl(factory);
|
|
1378
1378
|
}
|
|
1379
1379
|
function toRefs(object) {
|
|
1380
|
-
if (process.env.NODE_ENV !== "production" && !isProxy(object)) {
|
|
1380
|
+
if (!!(process.env.NODE_ENV !== "production") && !isProxy(object)) {
|
|
1381
1381
|
console.warn(`toRefs() expects a reactive object but received a plain one.`);
|
|
1382
1382
|
}
|
|
1383
1383
|
const ret = isArray(object) ? new Array(object.length) : {};
|
|
@@ -1470,7 +1470,7 @@ function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
|
1470
1470
|
const onlyGetter = isFunction(getterOrOptions);
|
|
1471
1471
|
if (onlyGetter) {
|
|
1472
1472
|
getter = getterOrOptions;
|
|
1473
|
-
setter = process.env.NODE_ENV !== "production" ? () => {
|
|
1473
|
+
setter = !!(process.env.NODE_ENV !== "production") ? () => {
|
|
1474
1474
|
console.warn("Write operation failed: computed value is readonly");
|
|
1475
1475
|
} : NOOP;
|
|
1476
1476
|
} else {
|
|
@@ -1478,7 +1478,7 @@ function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
|
1478
1478
|
setter = getterOrOptions.set;
|
|
1479
1479
|
}
|
|
1480
1480
|
const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);
|
|
1481
|
-
if (process.env.NODE_ENV !== "production" && debugOptions && !isSSR) {
|
|
1481
|
+
if (!!(process.env.NODE_ENV !== "production") && debugOptions && !isSSR) {
|
|
1482
1482
|
cRef.effect.onTrack = debugOptions.onTrack;
|
|
1483
1483
|
cRef.effect.onTrigger = debugOptions.onTrigger;
|
|
1484
1484
|
}
|
|
@@ -1493,7 +1493,7 @@ function popWarningContext() {
|
|
|
1493
1493
|
stack.pop();
|
|
1494
1494
|
}
|
|
1495
1495
|
function warn(msg, ...args) {
|
|
1496
|
-
if (
|
|
1496
|
+
if (!!!(process.env.NODE_ENV !== "production"))
|
|
1497
1497
|
return;
|
|
1498
1498
|
pauseTracking();
|
|
1499
1499
|
const instance = stack.length ? stack[stack.length - 1].component : null;
|
|
@@ -1592,7 +1592,7 @@ function formatProp(key, value, raw) {
|
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
1594
|
function assertNumber(val, type) {
|
|
1595
|
-
if (
|
|
1595
|
+
if (!!!(process.env.NODE_ENV !== "production"))
|
|
1596
1596
|
return;
|
|
1597
1597
|
if (val === void 0) {
|
|
1598
1598
|
return;
|
|
@@ -1664,7 +1664,7 @@ function handleError(err, instance, type, throwInDev = true) {
|
|
|
1664
1664
|
if (instance) {
|
|
1665
1665
|
let cur = instance.parent;
|
|
1666
1666
|
const exposedInstance = instance.proxy;
|
|
1667
|
-
const errorInfo = process.env.NODE_ENV !== "production" ? ErrorTypeStrings[type] : type;
|
|
1667
|
+
const errorInfo = !!(process.env.NODE_ENV !== "production") ? ErrorTypeStrings[type] : type;
|
|
1668
1668
|
while (cur) {
|
|
1669
1669
|
const errorCapturedHooks = cur.ec;
|
|
1670
1670
|
if (errorCapturedHooks) {
|
|
@@ -1690,7 +1690,7 @@ function handleError(err, instance, type, throwInDev = true) {
|
|
|
1690
1690
|
logError(err, type, contextVNode, throwInDev);
|
|
1691
1691
|
}
|
|
1692
1692
|
function logError(err, type, contextVNode, throwInDev = true) {
|
|
1693
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1693
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1694
1694
|
const info = ErrorTypeStrings[type];
|
|
1695
1695
|
if (contextVNode) {
|
|
1696
1696
|
pushWarningContext(contextVNode);
|
|
@@ -1772,13 +1772,13 @@ function queuePostFlushCb(cb) {
|
|
|
1772
1772
|
queueFlush();
|
|
1773
1773
|
}
|
|
1774
1774
|
function flushPreFlushCbs(seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
1775
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1775
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1776
1776
|
seen = seen || /* @__PURE__ */ new Map();
|
|
1777
1777
|
}
|
|
1778
1778
|
for (; i < queue.length; i++) {
|
|
1779
1779
|
const cb = queue[i];
|
|
1780
1780
|
if (cb && cb.pre) {
|
|
1781
|
-
if (process.env.NODE_ENV !== "production" && checkRecursiveUpdates(seen, cb)) {
|
|
1781
|
+
if (!!(process.env.NODE_ENV !== "production") && checkRecursiveUpdates(seen, cb)) {
|
|
1782
1782
|
continue;
|
|
1783
1783
|
}
|
|
1784
1784
|
queue.splice(i, 1);
|
|
@@ -1796,12 +1796,12 @@ function flushPostFlushCbs(seen) {
|
|
|
1796
1796
|
return;
|
|
1797
1797
|
}
|
|
1798
1798
|
activePostFlushCbs = deduped;
|
|
1799
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1799
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1800
1800
|
seen = seen || /* @__PURE__ */ new Map();
|
|
1801
1801
|
}
|
|
1802
1802
|
activePostFlushCbs.sort((a, b) => getId(a) - getId(b));
|
|
1803
1803
|
for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
|
|
1804
|
-
if (process.env.NODE_ENV !== "production" && checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {
|
|
1804
|
+
if (!!(process.env.NODE_ENV !== "production") && checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {
|
|
1805
1805
|
continue;
|
|
1806
1806
|
}
|
|
1807
1807
|
activePostFlushCbs[postFlushIndex]();
|
|
@@ -1824,16 +1824,16 @@ const comparator = (a, b) => {
|
|
|
1824
1824
|
function flushJobs(seen) {
|
|
1825
1825
|
isFlushPending = false;
|
|
1826
1826
|
isFlushing = true;
|
|
1827
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1827
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1828
1828
|
seen = seen || /* @__PURE__ */ new Map();
|
|
1829
1829
|
}
|
|
1830
1830
|
queue.sort(comparator);
|
|
1831
|
-
const check = process.env.NODE_ENV !== "production" ? (job) => checkRecursiveUpdates(seen, job) : NOOP;
|
|
1831
|
+
const check = !!(process.env.NODE_ENV !== "production") ? (job) => checkRecursiveUpdates(seen, job) : NOOP;
|
|
1832
1832
|
try {
|
|
1833
1833
|
for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
|
|
1834
1834
|
const job = queue[flushIndex];
|
|
1835
1835
|
if (job && job.active !== false) {
|
|
1836
|
-
if (process.env.NODE_ENV !== "production" && check(job)) {
|
|
1836
|
+
if (!!(process.env.NODE_ENV !== "production") && check(job)) {
|
|
1837
1837
|
continue;
|
|
1838
1838
|
}
|
|
1839
1839
|
callWithErrorHandling(job, null, 14);
|
|
@@ -1870,7 +1870,7 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
1870
1870
|
|
|
1871
1871
|
let isHmrUpdating = false;
|
|
1872
1872
|
const hmrDirtyComponents = /* @__PURE__ */ new Set();
|
|
1873
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1873
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1874
1874
|
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
1875
1875
|
createRecord: tryWrap(createRecord),
|
|
1876
1876
|
rerender: tryWrap(rerender),
|
|
@@ -2283,7 +2283,7 @@ const deprecationData$1 = {
|
|
|
2283
2283
|
const instanceWarned = /* @__PURE__ */ Object.create(null);
|
|
2284
2284
|
const warnCount = /* @__PURE__ */ Object.create(null);
|
|
2285
2285
|
function warnDeprecation$1(key, instance, ...args) {
|
|
2286
|
-
if (
|
|
2286
|
+
if (!!!(process.env.NODE_ENV !== "production")) {
|
|
2287
2287
|
return;
|
|
2288
2288
|
}
|
|
2289
2289
|
instance = instance || getCurrentInstance();
|
|
@@ -2321,7 +2321,7 @@ const globalCompatConfig = {
|
|
|
2321
2321
|
MODE: 2
|
|
2322
2322
|
};
|
|
2323
2323
|
function configureCompat$1(config) {
|
|
2324
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2324
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2325
2325
|
validateCompatConfig(config);
|
|
2326
2326
|
}
|
|
2327
2327
|
extend(globalCompatConfig, config);
|
|
@@ -2377,19 +2377,19 @@ function isCompatEnabled$1(key, instance, enableForBuiltIn = false) {
|
|
|
2377
2377
|
function assertCompatEnabled(key, instance, ...args) {
|
|
2378
2378
|
if (!isCompatEnabled$1(key, instance)) {
|
|
2379
2379
|
throw new Error(`${key} compat has been disabled.`);
|
|
2380
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
2380
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
2381
2381
|
warnDeprecation$1(key, instance, ...args);
|
|
2382
2382
|
}
|
|
2383
2383
|
}
|
|
2384
2384
|
function softAssertCompatEnabled(key, instance, ...args) {
|
|
2385
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2385
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2386
2386
|
warnDeprecation$1(key, instance, ...args);
|
|
2387
2387
|
}
|
|
2388
2388
|
return isCompatEnabled$1(key, instance);
|
|
2389
2389
|
}
|
|
2390
2390
|
function checkCompatEnabled$1(key, instance, ...args) {
|
|
2391
2391
|
const enabled = isCompatEnabled$1(key, instance);
|
|
2392
|
-
if (process.env.NODE_ENV !== "production" && enabled) {
|
|
2392
|
+
if (!!(process.env.NODE_ENV !== "production") && enabled) {
|
|
2393
2393
|
warnDeprecation$1(key, instance, ...args);
|
|
2394
2394
|
}
|
|
2395
2395
|
return enabled;
|
|
@@ -2481,7 +2481,7 @@ function convertLegacyVModelProps(vnode) {
|
|
|
2481
2481
|
)) {
|
|
2482
2482
|
return;
|
|
2483
2483
|
}
|
|
2484
|
-
if (process.env.NODE_ENV !== "production" && !warnedTypes.has(comp)) {
|
|
2484
|
+
if (!!(process.env.NODE_ENV !== "production") && !warnedTypes.has(comp)) {
|
|
2485
2485
|
pushWarningContext(vnode);
|
|
2486
2486
|
warnDeprecation$1("COMPONENT_V_MODEL", { type }, comp);
|
|
2487
2487
|
popWarningContext();
|
|
@@ -2531,7 +2531,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
2531
2531
|
if (instance.isUnmounted)
|
|
2532
2532
|
return;
|
|
2533
2533
|
const props = instance.vnode.props || EMPTY_OBJ;
|
|
2534
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2534
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2535
2535
|
const {
|
|
2536
2536
|
emitsOptions,
|
|
2537
2537
|
propsOptions: [propsOptions]
|
|
@@ -2569,10 +2569,10 @@ function emit(instance, event, ...rawArgs) {
|
|
|
2569
2569
|
args = rawArgs.map(looseToNumber);
|
|
2570
2570
|
}
|
|
2571
2571
|
}
|
|
2572
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
2572
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
2573
2573
|
devtoolsComponentEmit(instance, event, args);
|
|
2574
2574
|
}
|
|
2575
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2575
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2576
2576
|
const lowerCaseEvent = event.toLowerCase();
|
|
2577
2577
|
if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) {
|
|
2578
2578
|
warn(
|
|
@@ -2709,7 +2709,7 @@ function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
|
|
|
2709
2709
|
setBlockTracking(1);
|
|
2710
2710
|
}
|
|
2711
2711
|
}
|
|
2712
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
2712
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
2713
2713
|
devtoolsComponentUpdated(ctx);
|
|
2714
2714
|
}
|
|
2715
2715
|
return res;
|
|
@@ -2748,7 +2748,7 @@ function renderComponentRoot(instance) {
|
|
|
2748
2748
|
let result;
|
|
2749
2749
|
let fallthroughAttrs;
|
|
2750
2750
|
const prev = setCurrentRenderingInstance(instance);
|
|
2751
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2751
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2752
2752
|
accessedAttrs = false;
|
|
2753
2753
|
}
|
|
2754
2754
|
try {
|
|
@@ -2768,13 +2768,13 @@ function renderComponentRoot(instance) {
|
|
|
2768
2768
|
fallthroughAttrs = attrs;
|
|
2769
2769
|
} else {
|
|
2770
2770
|
const render2 = Component;
|
|
2771
|
-
if (process.env.NODE_ENV !== "production" && attrs === props) {
|
|
2771
|
+
if (!!(process.env.NODE_ENV !== "production") && attrs === props) {
|
|
2772
2772
|
markAttrsAccessed();
|
|
2773
2773
|
}
|
|
2774
2774
|
result = normalizeVNode(
|
|
2775
2775
|
render2.length > 1 ? render2(
|
|
2776
2776
|
props,
|
|
2777
|
-
process.env.NODE_ENV !== "production" ? {
|
|
2777
|
+
!!(process.env.NODE_ENV !== "production") ? {
|
|
2778
2778
|
get attrs() {
|
|
2779
2779
|
markAttrsAccessed();
|
|
2780
2780
|
return attrs;
|
|
@@ -2797,7 +2797,7 @@ function renderComponentRoot(instance) {
|
|
|
2797
2797
|
}
|
|
2798
2798
|
let root = result;
|
|
2799
2799
|
let setRoot = void 0;
|
|
2800
|
-
if (process.env.NODE_ENV !== "production" && result.patchFlag > 0 && result.patchFlag & 2048) {
|
|
2800
|
+
if (!!(process.env.NODE_ENV !== "production") && result.patchFlag > 0 && result.patchFlag & 2048) {
|
|
2801
2801
|
[root, setRoot] = getChildRoot(result);
|
|
2802
2802
|
}
|
|
2803
2803
|
if (fallthroughAttrs && inheritAttrs !== false) {
|
|
@@ -2812,7 +2812,7 @@ function renderComponentRoot(instance) {
|
|
|
2812
2812
|
);
|
|
2813
2813
|
}
|
|
2814
2814
|
root = cloneVNode(root, fallthroughAttrs);
|
|
2815
|
-
} else if (process.env.NODE_ENV !== "production" && !accessedAttrs && root.type !== Comment) {
|
|
2815
|
+
} else if (!!(process.env.NODE_ENV !== "production") && !accessedAttrs && root.type !== Comment) {
|
|
2816
2816
|
const allAttrs = Object.keys(attrs);
|
|
2817
2817
|
const eventAttrs = [];
|
|
2818
2818
|
const extraAttrs = [];
|
|
@@ -2842,7 +2842,7 @@ function renderComponentRoot(instance) {
|
|
|
2842
2842
|
if (isCompatEnabled$1("INSTANCE_ATTRS_CLASS_STYLE", instance) && vnode.shapeFlag & 4 && root.shapeFlag & (1 | 6)) {
|
|
2843
2843
|
const { class: cls, style } = vnode.props || {};
|
|
2844
2844
|
if (cls || style) {
|
|
2845
|
-
if (process.env.NODE_ENV !== "production" && inheritAttrs === false) {
|
|
2845
|
+
if (!!(process.env.NODE_ENV !== "production") && inheritAttrs === false) {
|
|
2846
2846
|
warnDeprecation$1(
|
|
2847
2847
|
"INSTANCE_ATTRS_CLASS_STYLE",
|
|
2848
2848
|
instance,
|
|
@@ -2856,7 +2856,7 @@ function renderComponentRoot(instance) {
|
|
|
2856
2856
|
}
|
|
2857
2857
|
}
|
|
2858
2858
|
if (vnode.dirs) {
|
|
2859
|
-
if (process.env.NODE_ENV !== "production" && !isElementRoot(root)) {
|
|
2859
|
+
if (!!(process.env.NODE_ENV !== "production") && !isElementRoot(root)) {
|
|
2860
2860
|
warn(
|
|
2861
2861
|
`Runtime directive used on component with non-element root node. The directives will not function as intended.`
|
|
2862
2862
|
);
|
|
@@ -2865,14 +2865,14 @@ function renderComponentRoot(instance) {
|
|
|
2865
2865
|
root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
2866
2866
|
}
|
|
2867
2867
|
if (vnode.transition) {
|
|
2868
|
-
if (process.env.NODE_ENV !== "production" && !isElementRoot(root)) {
|
|
2868
|
+
if (!!(process.env.NODE_ENV !== "production") && !isElementRoot(root)) {
|
|
2869
2869
|
warn(
|
|
2870
2870
|
`Component inside <Transition> renders non-element root node that cannot be animated.`
|
|
2871
2871
|
);
|
|
2872
2872
|
}
|
|
2873
2873
|
root.transition = vnode.transition;
|
|
2874
2874
|
}
|
|
2875
|
-
if (process.env.NODE_ENV !== "production" && setRoot) {
|
|
2875
|
+
if (!!(process.env.NODE_ENV !== "production") && setRoot) {
|
|
2876
2876
|
setRoot(root);
|
|
2877
2877
|
} else {
|
|
2878
2878
|
result = root;
|
|
@@ -2944,7 +2944,7 @@ function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
|
|
|
2944
2944
|
const { props: prevProps, children: prevChildren, component } = prevVNode;
|
|
2945
2945
|
const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
|
|
2946
2946
|
const emits = component.emitsOptions;
|
|
2947
|
-
if (process.env.NODE_ENV !== "production" && (prevChildren || nextChildren) && isHmrUpdating) {
|
|
2947
|
+
if (!!(process.env.NODE_ENV !== "production") && (prevChildren || nextChildren) && isHmrUpdating) {
|
|
2948
2948
|
return true;
|
|
2949
2949
|
}
|
|
2950
2950
|
if (nextVNode.dirs || nextVNode.transition) {
|
|
@@ -3256,7 +3256,7 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotSc
|
|
|
3256
3256
|
}
|
|
3257
3257
|
let hasWarned = false;
|
|
3258
3258
|
function createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) {
|
|
3259
|
-
if (process.env.NODE_ENV !== "production" && true && !hasWarned) {
|
|
3259
|
+
if (!!(process.env.NODE_ENV !== "production") && true && !hasWarned) {
|
|
3260
3260
|
hasWarned = true;
|
|
3261
3261
|
console[console.info ? "info" : "log"](
|
|
3262
3262
|
`<Suspense> is an experimental feature and its API will likely change.`
|
|
@@ -3278,7 +3278,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3278
3278
|
}
|
|
3279
3279
|
}
|
|
3280
3280
|
const timeout = vnode.props ? toNumber(vnode.props.timeout) : void 0;
|
|
3281
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3281
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3282
3282
|
assertNumber(timeout, `Suspense timeout`);
|
|
3283
3283
|
}
|
|
3284
3284
|
const suspense = {
|
|
@@ -3299,7 +3299,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3299
3299
|
isUnmounted: false,
|
|
3300
3300
|
effects: [],
|
|
3301
3301
|
resolve(resume = false, sync = false) {
|
|
3302
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3302
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3303
3303
|
if (!resume && !suspense.pendingBranch) {
|
|
3304
3304
|
throw new Error(
|
|
3305
3305
|
`suspense.resolve() is called without a pending branch.`
|
|
@@ -3430,7 +3430,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3430
3430
|
}
|
|
3431
3431
|
instance.asyncResolved = true;
|
|
3432
3432
|
const { vnode: vnode2 } = instance;
|
|
3433
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3433
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3434
3434
|
pushWarningContext(vnode2);
|
|
3435
3435
|
}
|
|
3436
3436
|
handleSetupResult(instance, asyncSetupResult, false);
|
|
@@ -3456,7 +3456,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3456
3456
|
remove(placeholder);
|
|
3457
3457
|
}
|
|
3458
3458
|
updateHOCHostEl(instance, vnode2.el);
|
|
3459
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3459
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3460
3460
|
popWarningContext();
|
|
3461
3461
|
}
|
|
3462
3462
|
if (isInPendingSuspense && --suspense.deps === 0) {
|
|
@@ -3539,7 +3539,7 @@ function normalizeSuspenseSlot(s) {
|
|
|
3539
3539
|
}
|
|
3540
3540
|
if (isArray(s)) {
|
|
3541
3541
|
const singleChild = filterSingleRoot(s);
|
|
3542
|
-
if (process.env.NODE_ENV !== "production" && !singleChild) {
|
|
3542
|
+
if (!!(process.env.NODE_ENV !== "production") && !singleChild) {
|
|
3543
3543
|
warn(`<Suspense> slots expect a single root node.`);
|
|
3544
3544
|
}
|
|
3545
3545
|
s = singleChild;
|
|
@@ -3620,19 +3620,19 @@ function watchPostEffect(effect, options) {
|
|
|
3620
3620
|
return doWatch(
|
|
3621
3621
|
effect,
|
|
3622
3622
|
null,
|
|
3623
|
-
process.env.NODE_ENV !== "production" ? extend({}, options, { flush: "post" }) : { flush: "post" }
|
|
3623
|
+
!!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "post" }) : { flush: "post" }
|
|
3624
3624
|
);
|
|
3625
3625
|
}
|
|
3626
3626
|
function watchSyncEffect(effect, options) {
|
|
3627
3627
|
return doWatch(
|
|
3628
3628
|
effect,
|
|
3629
3629
|
null,
|
|
3630
|
-
process.env.NODE_ENV !== "production" ? extend({}, options, { flush: "sync" }) : { flush: "sync" }
|
|
3630
|
+
!!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "sync" }) : { flush: "sync" }
|
|
3631
3631
|
);
|
|
3632
3632
|
}
|
|
3633
3633
|
const INITIAL_WATCHER_VALUE = {};
|
|
3634
3634
|
function watch(source, cb, options) {
|
|
3635
|
-
if (process.env.NODE_ENV !== "production" && !isFunction(cb)) {
|
|
3635
|
+
if (!!(process.env.NODE_ENV !== "production") && !isFunction(cb)) {
|
|
3636
3636
|
warn(
|
|
3637
3637
|
`\`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.`
|
|
3638
3638
|
);
|
|
@@ -3641,7 +3641,7 @@ function watch(source, cb, options) {
|
|
|
3641
3641
|
}
|
|
3642
3642
|
function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ) {
|
|
3643
3643
|
var _a;
|
|
3644
|
-
if (process.env.NODE_ENV !== "production" && !cb) {
|
|
3644
|
+
if (!!(process.env.NODE_ENV !== "production") && !cb) {
|
|
3645
3645
|
if (immediate !== void 0) {
|
|
3646
3646
|
warn(
|
|
3647
3647
|
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
@@ -3681,7 +3681,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3681
3681
|
} else if (isFunction(s)) {
|
|
3682
3682
|
return callWithErrorHandling(s, instance, 2);
|
|
3683
3683
|
} else {
|
|
3684
|
-
process.env.NODE_ENV !== "production" && warnInvalidSource(s);
|
|
3684
|
+
!!(process.env.NODE_ENV !== "production") && warnInvalidSource(s);
|
|
3685
3685
|
}
|
|
3686
3686
|
});
|
|
3687
3687
|
} else if (isFunction(source)) {
|
|
@@ -3704,7 +3704,8 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3704
3704
|
};
|
|
3705
3705
|
}
|
|
3706
3706
|
} else {
|
|
3707
|
-
getter = NOOP
|
|
3707
|
+
getter = NOOP;
|
|
3708
|
+
!!(process.env.NODE_ENV !== "production") && warnInvalidSource(source);
|
|
3708
3709
|
}
|
|
3709
3710
|
if (cb && !deep) {
|
|
3710
3711
|
const baseGetter = getter;
|
|
@@ -3783,7 +3784,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3783
3784
|
scheduler = () => queueJob(job);
|
|
3784
3785
|
}
|
|
3785
3786
|
const effect = new ReactiveEffect(getter, scheduler);
|
|
3786
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3787
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3787
3788
|
effect.onTrack = onTrack;
|
|
3788
3789
|
effect.onTrigger = onTrigger;
|
|
3789
3790
|
}
|
|
@@ -3876,7 +3877,7 @@ function validateDirectiveName(name) {
|
|
|
3876
3877
|
function withDirectives(vnode, directives) {
|
|
3877
3878
|
const internalInstance = currentRenderingInstance;
|
|
3878
3879
|
if (internalInstance === null) {
|
|
3879
|
-
process.env.NODE_ENV !== "production" && warn(`withDirectives can only be used inside render functions.`);
|
|
3880
|
+
!!(process.env.NODE_ENV !== "production") && warn(`withDirectives can only be used inside render functions.`);
|
|
3880
3881
|
return vnode;
|
|
3881
3882
|
}
|
|
3882
3883
|
const instance = getExposeProxy(internalInstance) || internalInstance.proxy;
|
|
@@ -3983,7 +3984,7 @@ const BaseTransitionImpl = {
|
|
|
3983
3984
|
let hasFound = false;
|
|
3984
3985
|
for (const c of children) {
|
|
3985
3986
|
if (c.type !== Comment) {
|
|
3986
|
-
if (process.env.NODE_ENV !== "production" && hasFound) {
|
|
3987
|
+
if (!!(process.env.NODE_ENV !== "production") && hasFound) {
|
|
3987
3988
|
warn(
|
|
3988
3989
|
"<transition> can only be used on a single element or component. Use <transition-group> for lists."
|
|
3989
3990
|
);
|
|
@@ -3991,14 +3992,14 @@ const BaseTransitionImpl = {
|
|
|
3991
3992
|
}
|
|
3992
3993
|
child = c;
|
|
3993
3994
|
hasFound = true;
|
|
3994
|
-
if (
|
|
3995
|
+
if (!!!(process.env.NODE_ENV !== "production"))
|
|
3995
3996
|
break;
|
|
3996
3997
|
}
|
|
3997
3998
|
}
|
|
3998
3999
|
}
|
|
3999
4000
|
const rawProps = toRaw(props);
|
|
4000
4001
|
const { mode } = rawProps;
|
|
4001
|
-
if (process.env.NODE_ENV !== "production" && mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
|
|
4002
|
+
if (!!(process.env.NODE_ENV !== "production") && mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
|
|
4002
4003
|
warn(`invalid <transition> mode: ${mode}`);
|
|
4003
4004
|
}
|
|
4004
4005
|
if (state.isLeaving) {
|
|
@@ -4307,7 +4308,7 @@ function defineAsyncComponent(source) {
|
|
|
4307
4308
|
if (thisRequest !== pendingRequest && pendingRequest) {
|
|
4308
4309
|
return pendingRequest;
|
|
4309
4310
|
}
|
|
4310
|
-
if (process.env.NODE_ENV !== "production" && !comp) {
|
|
4311
|
+
if (!!(process.env.NODE_ENV !== "production") && !comp) {
|
|
4311
4312
|
warn(
|
|
4312
4313
|
`Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.`
|
|
4313
4314
|
);
|
|
@@ -4315,7 +4316,7 @@ function defineAsyncComponent(source) {
|
|
|
4315
4316
|
if (comp && (comp.__esModule || comp[Symbol.toStringTag] === "Module")) {
|
|
4316
4317
|
comp = comp.default;
|
|
4317
4318
|
}
|
|
4318
|
-
if (process.env.NODE_ENV !== "production" && comp && !isObject(comp) && !isFunction(comp)) {
|
|
4319
|
+
if (!!(process.env.NODE_ENV !== "production") && comp && !isObject(comp) && !isFunction(comp)) {
|
|
4319
4320
|
throw new Error(`Invalid async component load result: ${comp}`);
|
|
4320
4321
|
}
|
|
4321
4322
|
resolvedComp = comp;
|
|
@@ -4428,7 +4429,7 @@ const KeepAliveImpl = {
|
|
|
4428
4429
|
const cache = /* @__PURE__ */ new Map();
|
|
4429
4430
|
const keys = /* @__PURE__ */ new Set();
|
|
4430
4431
|
let current = null;
|
|
4431
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
4432
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
4432
4433
|
instance.__v_cache = cache;
|
|
4433
4434
|
}
|
|
4434
4435
|
const parentSuspense = instance.suspense;
|
|
@@ -4465,7 +4466,7 @@ const KeepAliveImpl = {
|
|
|
4465
4466
|
invokeVNodeHook(vnodeHook, instance2.parent, vnode);
|
|
4466
4467
|
}
|
|
4467
4468
|
}, parentSuspense);
|
|
4468
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
4469
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
4469
4470
|
devtoolsComponentAdded(instance2);
|
|
4470
4471
|
}
|
|
4471
4472
|
};
|
|
@@ -4482,7 +4483,7 @@ const KeepAliveImpl = {
|
|
|
4482
4483
|
}
|
|
4483
4484
|
instance2.isDeactivated = true;
|
|
4484
4485
|
}, parentSuspense);
|
|
4485
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
4486
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
4486
4487
|
devtoolsComponentAdded(instance2);
|
|
4487
4488
|
}
|
|
4488
4489
|
};
|
|
@@ -4546,7 +4547,7 @@ const KeepAliveImpl = {
|
|
|
4546
4547
|
const children = slots.default();
|
|
4547
4548
|
const rawVNode = children[0];
|
|
4548
4549
|
if (children.length > 1) {
|
|
4549
|
-
if (process.env.NODE_ENV !== "production") {
|
|
4550
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
4550
4551
|
warn(`KeepAlive should contain exactly one component child.`);
|
|
4551
4552
|
}
|
|
4552
4553
|
current = null;
|
|
@@ -4677,7 +4678,7 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
|
4677
4678
|
hooks.push(wrappedHook);
|
|
4678
4679
|
}
|
|
4679
4680
|
return wrappedHook;
|
|
4680
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
4681
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
4681
4682
|
const apiName = toHandlerKey(ErrorTypeStrings[type].replace(/ hook$/, ""));
|
|
4682
4683
|
warn(
|
|
4683
4684
|
`${apiName} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup().` + (` If you are using async setup(), make sure to register lifecycle hooks before the first await statement.` )
|
|
@@ -4783,13 +4784,13 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
4783
4784
|
if (!res && maybeSelfReference) {
|
|
4784
4785
|
return Component;
|
|
4785
4786
|
}
|
|
4786
|
-
if (process.env.NODE_ENV !== "production" && warnMissing && !res) {
|
|
4787
|
+
if (!!(process.env.NODE_ENV !== "production") && warnMissing && !res) {
|
|
4787
4788
|
const extra = type === COMPONENTS ? `
|
|
4788
4789
|
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
|
|
4789
4790
|
warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
4790
4791
|
}
|
|
4791
4792
|
return res;
|
|
4792
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
4793
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
4793
4794
|
warn(
|
|
4794
4795
|
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
4795
4796
|
);
|
|
@@ -5059,7 +5060,7 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5059
5060
|
ret[i] = renderItem(source[i], i, void 0, cached && cached[i]);
|
|
5060
5061
|
}
|
|
5061
5062
|
} else if (typeof source === "number") {
|
|
5062
|
-
if (process.env.NODE_ENV !== "production" && !Number.isInteger(source)) {
|
|
5063
|
+
if (!!(process.env.NODE_ENV !== "production") && !Number.isInteger(source)) {
|
|
5063
5064
|
warn(`The v-for range expect an integer value but got ${source}.`);
|
|
5064
5065
|
}
|
|
5065
5066
|
ret = new Array(source);
|
|
@@ -5115,7 +5116,7 @@ function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
|
5115
5116
|
return createVNode("slot", props, fallback && fallback());
|
|
5116
5117
|
}
|
|
5117
5118
|
let slot = slots[name];
|
|
5118
|
-
if (process.env.NODE_ENV !== "production" && slot && slot.length > 1) {
|
|
5119
|
+
if (!!(process.env.NODE_ENV !== "production") && slot && slot.length > 1) {
|
|
5119
5120
|
warn(
|
|
5120
5121
|
`SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.`
|
|
5121
5122
|
);
|
|
@@ -5158,7 +5159,7 @@ function ensureValidVNode(vnodes) {
|
|
|
5158
5159
|
|
|
5159
5160
|
function toHandlers(obj, preserveCaseIfNecessary) {
|
|
5160
5161
|
const ret = {};
|
|
5161
|
-
if (process.env.NODE_ENV !== "production" && !isObject(obj)) {
|
|
5162
|
+
if (!!(process.env.NODE_ENV !== "production") && !isObject(obj)) {
|
|
5162
5163
|
warn(`v-on with no argument expects an object value.`);
|
|
5163
5164
|
return ret;
|
|
5164
5165
|
}
|
|
@@ -5316,7 +5317,7 @@ function installCompatInstanceProperties(map) {
|
|
|
5316
5317
|
if (isCompatEnabled$1("RENDER_FUNCTION", i) && i.render && i.render._compatWrapped) {
|
|
5317
5318
|
return new Proxy(i.slots, legacySlotProxyHandlers);
|
|
5318
5319
|
}
|
|
5319
|
-
return process.env.NODE_ENV !== "production" ? shallowReadonly(i.slots) : i.slots;
|
|
5320
|
+
return !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.slots) : i.slots;
|
|
5320
5321
|
},
|
|
5321
5322
|
$scopedSlots: (i) => {
|
|
5322
5323
|
assertCompatEnabled("INSTANCE_SCOPED_SLOTS", i);
|
|
@@ -5391,10 +5392,10 @@ const publicPropertiesMap = (
|
|
|
5391
5392
|
$: (i) => i,
|
|
5392
5393
|
$el: (i) => i.vnode.el,
|
|
5393
5394
|
$data: (i) => i.data,
|
|
5394
|
-
$props: (i) => process.env.NODE_ENV !== "production" ? shallowReadonly(i.props) : i.props,
|
|
5395
|
-
$attrs: (i) => process.env.NODE_ENV !== "production" ? shallowReadonly(i.attrs) : i.attrs,
|
|
5396
|
-
$slots: (i) => process.env.NODE_ENV !== "production" ? shallowReadonly(i.slots) : i.slots,
|
|
5397
|
-
$refs: (i) => process.env.NODE_ENV !== "production" ? shallowReadonly(i.refs) : i.refs,
|
|
5395
|
+
$props: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.props) : i.props,
|
|
5396
|
+
$attrs: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.attrs) : i.attrs,
|
|
5397
|
+
$slots: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.slots) : i.slots,
|
|
5398
|
+
$refs: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.refs) : i.refs,
|
|
5398
5399
|
$parent: (i) => getPublicInstance(i.parent),
|
|
5399
5400
|
$root: (i) => getPublicInstance(i.root),
|
|
5400
5401
|
$emit: (i) => i.emit,
|
|
@@ -5412,7 +5413,7 @@ const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScript
|
|
|
5412
5413
|
const PublicInstanceProxyHandlers = {
|
|
5413
5414
|
get({ _: instance }, key) {
|
|
5414
5415
|
const { ctx, setupState, data, props, accessCache, type, appContext } = instance;
|
|
5415
|
-
if (process.env.NODE_ENV !== "production" && key === "__isVue") {
|
|
5416
|
+
if (!!(process.env.NODE_ENV !== "production") && key === "__isVue") {
|
|
5416
5417
|
return true;
|
|
5417
5418
|
}
|
|
5418
5419
|
let normalizedProps;
|
|
@@ -5453,8 +5454,9 @@ const PublicInstanceProxyHandlers = {
|
|
|
5453
5454
|
let cssModule, globalProperties;
|
|
5454
5455
|
if (publicGetter) {
|
|
5455
5456
|
if (key === "$attrs") {
|
|
5456
|
-
track(instance, "get", key)
|
|
5457
|
-
|
|
5457
|
+
track(instance, "get", key);
|
|
5458
|
+
!!(process.env.NODE_ENV !== "production") && markAttrsAccessed();
|
|
5459
|
+
} else if (!!(process.env.NODE_ENV !== "production") && key === "$slots") {
|
|
5458
5460
|
track(instance, "get", key);
|
|
5459
5461
|
}
|
|
5460
5462
|
return publicGetter(instance);
|
|
@@ -5479,7 +5481,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
5479
5481
|
return isFunction(val) ? Object.assign(val.bind(instance.proxy), val) : val;
|
|
5480
5482
|
}
|
|
5481
5483
|
}
|
|
5482
|
-
} else if (process.env.NODE_ENV !== "production" && currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading
|
|
5484
|
+
} else if (!!(process.env.NODE_ENV !== "production") && currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading
|
|
5483
5485
|
// to infinite warning loop
|
|
5484
5486
|
key.indexOf("__v") !== 0)) {
|
|
5485
5487
|
if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) {
|
|
@@ -5500,23 +5502,23 @@ const PublicInstanceProxyHandlers = {
|
|
|
5500
5502
|
if (hasSetupBinding(setupState, key)) {
|
|
5501
5503
|
setupState[key] = value;
|
|
5502
5504
|
return true;
|
|
5503
|
-
} else if (process.env.NODE_ENV !== "production" && setupState.__isScriptSetup && hasOwn(setupState, key)) {
|
|
5505
|
+
} else if (!!(process.env.NODE_ENV !== "production") && setupState.__isScriptSetup && hasOwn(setupState, key)) {
|
|
5504
5506
|
warn(`Cannot mutate <script setup> binding "${key}" from Options API.`);
|
|
5505
5507
|
return false;
|
|
5506
5508
|
} else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
|
|
5507
5509
|
data[key] = value;
|
|
5508
5510
|
return true;
|
|
5509
5511
|
} else if (hasOwn(instance.props, key)) {
|
|
5510
|
-
process.env.NODE_ENV !== "production" && warn(`Attempting to mutate prop "${key}". Props are readonly.`);
|
|
5512
|
+
!!(process.env.NODE_ENV !== "production") && warn(`Attempting to mutate prop "${key}". Props are readonly.`);
|
|
5511
5513
|
return false;
|
|
5512
5514
|
}
|
|
5513
5515
|
if (key[0] === "$" && key.slice(1) in instance) {
|
|
5514
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
5516
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
5515
5517
|
`Attempting to mutate public property "${key}". Properties starting with $ are reserved and readonly.`
|
|
5516
5518
|
);
|
|
5517
5519
|
return false;
|
|
5518
5520
|
} else {
|
|
5519
|
-
if (process.env.NODE_ENV !== "production" && key in instance.appContext.config.globalProperties) {
|
|
5521
|
+
if (!!(process.env.NODE_ENV !== "production") && key in instance.appContext.config.globalProperties) {
|
|
5520
5522
|
Object.defineProperty(ctx, key, {
|
|
5521
5523
|
enumerable: true,
|
|
5522
5524
|
configurable: true,
|
|
@@ -5543,7 +5545,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
5543
5545
|
return Reflect.defineProperty(target, key, descriptor);
|
|
5544
5546
|
}
|
|
5545
5547
|
};
|
|
5546
|
-
if (process.env.NODE_ENV !== "production" && true) {
|
|
5548
|
+
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
5547
5549
|
PublicInstanceProxyHandlers.ownKeys = (target) => {
|
|
5548
5550
|
warn(
|
|
5549
5551
|
`Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.`
|
|
@@ -5563,7 +5565,7 @@ const RuntimeCompiledPublicInstanceProxyHandlers = /* @__PURE__ */ extend(
|
|
|
5563
5565
|
},
|
|
5564
5566
|
has(_, key) {
|
|
5565
5567
|
const has = key[0] !== "_" && !isGloballyWhitelisted(key);
|
|
5566
|
-
if (process.env.NODE_ENV !== "production" && !has && PublicInstanceProxyHandlers.has(_, key)) {
|
|
5568
|
+
if (!!(process.env.NODE_ENV !== "production") && !has && PublicInstanceProxyHandlers.has(_, key)) {
|
|
5567
5569
|
warn(
|
|
5568
5570
|
`Property ${JSON.stringify(
|
|
5569
5571
|
key
|
|
@@ -5636,7 +5638,7 @@ function deepMergeData(to, from) {
|
|
|
5636
5638
|
const toVal = to[key];
|
|
5637
5639
|
const fromVal = from[key];
|
|
5638
5640
|
if (key in to && isPlainObject(toVal) && isPlainObject(fromVal)) {
|
|
5639
|
-
process.env.NODE_ENV !== "production" && warnDeprecation$1("OPTIONS_DATA_MERGE", null, key);
|
|
5641
|
+
!!(process.env.NODE_ENV !== "production") && warnDeprecation$1("OPTIONS_DATA_MERGE", null, key);
|
|
5640
5642
|
deepMergeData(toVal, fromVal);
|
|
5641
5643
|
} else {
|
|
5642
5644
|
to[key] = fromVal;
|
|
@@ -5649,40 +5651,40 @@ const warnRuntimeUsage = (method) => warn(
|
|
|
5649
5651
|
`${method}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`
|
|
5650
5652
|
);
|
|
5651
5653
|
function defineProps() {
|
|
5652
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5654
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5653
5655
|
warnRuntimeUsage(`defineProps`);
|
|
5654
5656
|
}
|
|
5655
5657
|
return null;
|
|
5656
5658
|
}
|
|
5657
5659
|
function defineEmits() {
|
|
5658
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5660
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5659
5661
|
warnRuntimeUsage(`defineEmits`);
|
|
5660
5662
|
}
|
|
5661
5663
|
return null;
|
|
5662
5664
|
}
|
|
5663
5665
|
function defineExpose(exposed) {
|
|
5664
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5666
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5665
5667
|
warnRuntimeUsage(`defineExpose`);
|
|
5666
5668
|
}
|
|
5667
5669
|
}
|
|
5668
5670
|
function defineOptions(options) {
|
|
5669
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5671
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5670
5672
|
warnRuntimeUsage(`defineOptions`);
|
|
5671
5673
|
}
|
|
5672
5674
|
}
|
|
5673
5675
|
function defineSlots() {
|
|
5674
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5676
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5675
5677
|
warnRuntimeUsage(`defineSlots`);
|
|
5676
5678
|
}
|
|
5677
5679
|
return null;
|
|
5678
5680
|
}
|
|
5679
5681
|
function defineModel() {
|
|
5680
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5682
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5681
5683
|
warnRuntimeUsage("defineModel");
|
|
5682
5684
|
}
|
|
5683
5685
|
}
|
|
5684
5686
|
function withDefaults(props, defaults) {
|
|
5685
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5687
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5686
5688
|
warnRuntimeUsage(`withDefaults`);
|
|
5687
5689
|
}
|
|
5688
5690
|
return null;
|
|
@@ -5695,11 +5697,11 @@ function useAttrs() {
|
|
|
5695
5697
|
}
|
|
5696
5698
|
function useModel(props, name, options) {
|
|
5697
5699
|
const i = getCurrentInstance();
|
|
5698
|
-
if (process.env.NODE_ENV !== "production" && !i) {
|
|
5700
|
+
if (!!(process.env.NODE_ENV !== "production") && !i) {
|
|
5699
5701
|
warn(`useModel() called without active instance.`);
|
|
5700
5702
|
return ref();
|
|
5701
5703
|
}
|
|
5702
|
-
if (process.env.NODE_ENV !== "production" && !i.propsOptions[0][name]) {
|
|
5704
|
+
if (!!(process.env.NODE_ENV !== "production") && !i.propsOptions[0][name]) {
|
|
5703
5705
|
warn(`useModel() called with prop "${name}" which is not declared.`);
|
|
5704
5706
|
return ref();
|
|
5705
5707
|
}
|
|
@@ -5729,7 +5731,7 @@ function useModel(props, name, options) {
|
|
|
5729
5731
|
}
|
|
5730
5732
|
function getContext() {
|
|
5731
5733
|
const i = getCurrentInstance();
|
|
5732
|
-
if (process.env.NODE_ENV !== "production" && !i) {
|
|
5734
|
+
if (!!(process.env.NODE_ENV !== "production") && !i) {
|
|
5733
5735
|
warn(`useContext() called without active instance.`);
|
|
5734
5736
|
}
|
|
5735
5737
|
return i.setupContext || (i.setupContext = createSetupContext(i));
|
|
@@ -5754,7 +5756,7 @@ function mergeDefaults(raw, defaults) {
|
|
|
5754
5756
|
}
|
|
5755
5757
|
} else if (opt === null) {
|
|
5756
5758
|
opt = props[key] = { default: defaults[key] };
|
|
5757
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
5759
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
5758
5760
|
warn(`props default key "${key}" has no corresponding declaration.`);
|
|
5759
5761
|
}
|
|
5760
5762
|
if (opt && defaults[`__skip_${key}`]) {
|
|
@@ -5784,7 +5786,7 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
5784
5786
|
}
|
|
5785
5787
|
function withAsyncContext(getAwaitable) {
|
|
5786
5788
|
const ctx = getCurrentInstance();
|
|
5787
|
-
if (process.env.NODE_ENV !== "production" && !ctx) {
|
|
5789
|
+
if (!!(process.env.NODE_ENV !== "production") && !ctx) {
|
|
5788
5790
|
warn(
|
|
5789
5791
|
`withAsyncContext called without active current instance. This is likely a bug.`
|
|
5790
5792
|
);
|
|
@@ -5852,8 +5854,8 @@ function applyOptions(instance) {
|
|
|
5852
5854
|
directives,
|
|
5853
5855
|
filters
|
|
5854
5856
|
} = options;
|
|
5855
|
-
const checkDuplicateProperties = process.env.NODE_ENV !== "production" ? createDuplicateChecker() : null;
|
|
5856
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5857
|
+
const checkDuplicateProperties = !!(process.env.NODE_ENV !== "production") ? createDuplicateChecker() : null;
|
|
5858
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5857
5859
|
const [propsOptions] = instance.propsOptions;
|
|
5858
5860
|
if (propsOptions) {
|
|
5859
5861
|
for (const key in propsOptions) {
|
|
@@ -5868,7 +5870,7 @@ function applyOptions(instance) {
|
|
|
5868
5870
|
for (const key in methods) {
|
|
5869
5871
|
const methodHandler = methods[key];
|
|
5870
5872
|
if (isFunction(methodHandler)) {
|
|
5871
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5873
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5872
5874
|
Object.defineProperty(ctx, key, {
|
|
5873
5875
|
value: methodHandler.bind(publicThis),
|
|
5874
5876
|
configurable: true,
|
|
@@ -5878,10 +5880,10 @@ function applyOptions(instance) {
|
|
|
5878
5880
|
} else {
|
|
5879
5881
|
ctx[key] = methodHandler.bind(publicThis);
|
|
5880
5882
|
}
|
|
5881
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5883
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5882
5884
|
checkDuplicateProperties("Methods" /* METHODS */, key);
|
|
5883
5885
|
}
|
|
5884
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
5886
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
5885
5887
|
warn(
|
|
5886
5888
|
`Method "${key}" has type "${typeof methodHandler}" in the component definition. Did you reference the function correctly?`
|
|
5887
5889
|
);
|
|
@@ -5889,22 +5891,22 @@ function applyOptions(instance) {
|
|
|
5889
5891
|
}
|
|
5890
5892
|
}
|
|
5891
5893
|
if (dataOptions) {
|
|
5892
|
-
if (process.env.NODE_ENV !== "production" && !isFunction(dataOptions)) {
|
|
5894
|
+
if (!!(process.env.NODE_ENV !== "production") && !isFunction(dataOptions)) {
|
|
5893
5895
|
warn(
|
|
5894
5896
|
`The data option must be a function. Plain object usage is no longer supported.`
|
|
5895
5897
|
);
|
|
5896
5898
|
}
|
|
5897
5899
|
const data = dataOptions.call(publicThis, publicThis);
|
|
5898
|
-
if (process.env.NODE_ENV !== "production" && isPromise(data)) {
|
|
5900
|
+
if (!!(process.env.NODE_ENV !== "production") && isPromise(data)) {
|
|
5899
5901
|
warn(
|
|
5900
5902
|
`data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>.`
|
|
5901
5903
|
);
|
|
5902
5904
|
}
|
|
5903
5905
|
if (!isObject(data)) {
|
|
5904
|
-
process.env.NODE_ENV !== "production" && warn(`data() should return an object.`);
|
|
5906
|
+
!!(process.env.NODE_ENV !== "production") && warn(`data() should return an object.`);
|
|
5905
5907
|
} else {
|
|
5906
5908
|
instance.data = reactive(data);
|
|
5907
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5909
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5908
5910
|
for (const key in data) {
|
|
5909
5911
|
checkDuplicateProperties("Data" /* DATA */, key);
|
|
5910
5912
|
if (!isReservedPrefix(key[0])) {
|
|
@@ -5924,10 +5926,10 @@ function applyOptions(instance) {
|
|
|
5924
5926
|
for (const key in computedOptions) {
|
|
5925
5927
|
const opt = computedOptions[key];
|
|
5926
5928
|
const get = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP;
|
|
5927
|
-
if (process.env.NODE_ENV !== "production" && get === NOOP) {
|
|
5929
|
+
if (!!(process.env.NODE_ENV !== "production") && get === NOOP) {
|
|
5928
5930
|
warn(`Computed property "${key}" has no getter.`);
|
|
5929
5931
|
}
|
|
5930
|
-
const set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : process.env.NODE_ENV !== "production" ? () => {
|
|
5932
|
+
const set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : !!(process.env.NODE_ENV !== "production") ? () => {
|
|
5931
5933
|
warn(
|
|
5932
5934
|
`Write operation failed: computed property "${key}" is readonly.`
|
|
5933
5935
|
);
|
|
@@ -5942,7 +5944,7 @@ function applyOptions(instance) {
|
|
|
5942
5944
|
get: () => c.value,
|
|
5943
5945
|
set: (v) => c.value = v
|
|
5944
5946
|
});
|
|
5945
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5947
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5946
5948
|
checkDuplicateProperties("Computed" /* COMPUTED */, key);
|
|
5947
5949
|
}
|
|
5948
5950
|
}
|
|
@@ -6046,7 +6048,7 @@ function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP)
|
|
|
6046
6048
|
} else {
|
|
6047
6049
|
ctx[key] = injected;
|
|
6048
6050
|
}
|
|
6049
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6051
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6050
6052
|
checkDuplicateProperties("Inject" /* INJECT */, key);
|
|
6051
6053
|
}
|
|
6052
6054
|
}
|
|
@@ -6064,7 +6066,7 @@ function createWatcher(raw, ctx, publicThis, key) {
|
|
|
6064
6066
|
const handler = ctx[raw];
|
|
6065
6067
|
if (isFunction(handler)) {
|
|
6066
6068
|
watch(getter, handler);
|
|
6067
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6069
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6068
6070
|
warn(`Invalid watch handler specified by key "${raw}"`, handler);
|
|
6069
6071
|
}
|
|
6070
6072
|
} else if (isFunction(raw)) {
|
|
@@ -6076,11 +6078,11 @@ function createWatcher(raw, ctx, publicThis, key) {
|
|
|
6076
6078
|
const handler = isFunction(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler];
|
|
6077
6079
|
if (isFunction(handler)) {
|
|
6078
6080
|
watch(getter, handler, raw);
|
|
6079
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6081
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6080
6082
|
warn(`Invalid watch handler specified by key "${raw.handler}"`, handler);
|
|
6081
6083
|
}
|
|
6082
6084
|
}
|
|
6083
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6085
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6084
6086
|
warn(`Invalid watch option: "${key}"`, raw);
|
|
6085
6087
|
}
|
|
6086
6088
|
}
|
|
@@ -6133,7 +6135,7 @@ function mergeOptions(to, from, strats, asMixin = false) {
|
|
|
6133
6135
|
}
|
|
6134
6136
|
for (const key in from) {
|
|
6135
6137
|
if (asMixin && key === "expose") {
|
|
6136
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
6138
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
6137
6139
|
`"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.`
|
|
6138
6140
|
);
|
|
6139
6141
|
} else {
|
|
@@ -6301,7 +6303,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6301
6303
|
return vm;
|
|
6302
6304
|
}
|
|
6303
6305
|
}
|
|
6304
|
-
Vue.version = `2.6.14-compat:${"3.3.
|
|
6306
|
+
Vue.version = `2.6.14-compat:${"3.3.4"}`;
|
|
6305
6307
|
Vue.config = singletonApp.config;
|
|
6306
6308
|
Vue.use = (p, ...options) => {
|
|
6307
6309
|
if (p && isFunction(p.install)) {
|
|
@@ -6402,7 +6404,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6402
6404
|
}
|
|
6403
6405
|
};
|
|
6404
6406
|
const util = {
|
|
6405
|
-
warn: process.env.NODE_ENV !== "production" ? warn : NOOP,
|
|
6407
|
+
warn: !!(process.env.NODE_ENV !== "production") ? warn : NOOP,
|
|
6406
6408
|
extend,
|
|
6407
6409
|
mergeOptions: (parent, child, vm) => mergeOptions(
|
|
6408
6410
|
parent,
|
|
@@ -6429,7 +6431,7 @@ function installAppCompatProperties(app, context, render) {
|
|
|
6429
6431
|
installCompatMount(app, context, render);
|
|
6430
6432
|
installLegacyAPIs(app);
|
|
6431
6433
|
applySingletonAppMutations(app);
|
|
6432
|
-
if (process.env.NODE_ENV !== "production")
|
|
6434
|
+
if (!!(process.env.NODE_ENV !== "production"))
|
|
6433
6435
|
installLegacyConfigWarnings(app.config);
|
|
6434
6436
|
}
|
|
6435
6437
|
function installFilterMethod(app, context) {
|
|
@@ -6439,7 +6441,7 @@ function installFilterMethod(app, context) {
|
|
|
6439
6441
|
if (!filter) {
|
|
6440
6442
|
return context.filters[name];
|
|
6441
6443
|
}
|
|
6442
|
-
if (process.env.NODE_ENV !== "production" && context.filters[name]) {
|
|
6444
|
+
if (!!(process.env.NODE_ENV !== "production") && context.filters[name]) {
|
|
6443
6445
|
warn(`Filter "${name}" has already been registered.`);
|
|
6444
6446
|
}
|
|
6445
6447
|
context.filters[name] = filter;
|
|
@@ -6451,7 +6453,7 @@ function installLegacyAPIs(app) {
|
|
|
6451
6453
|
// so that app.use() can work with legacy plugins that extend prototypes
|
|
6452
6454
|
prototype: {
|
|
6453
6455
|
get() {
|
|
6454
|
-
process.env.NODE_ENV !== "production" && warnDeprecation$1("GLOBAL_PROTOTYPE", null);
|
|
6456
|
+
!!(process.env.NODE_ENV !== "production") && warnDeprecation$1("GLOBAL_PROTOTYPE", null);
|
|
6455
6457
|
return app.config.globalProperties;
|
|
6456
6458
|
}
|
|
6457
6459
|
},
|
|
@@ -6509,7 +6511,7 @@ function applySingletonPrototype(app, Ctor) {
|
|
|
6509
6511
|
}
|
|
6510
6512
|
}
|
|
6511
6513
|
}
|
|
6512
|
-
if (process.env.NODE_ENV !== "production" && hasPrototypeAugmentations) {
|
|
6514
|
+
if (!!(process.env.NODE_ENV !== "production") && hasPrototypeAugmentations) {
|
|
6513
6515
|
warnDeprecation$1("GLOBAL_PROTOTYPE", null);
|
|
6514
6516
|
}
|
|
6515
6517
|
}
|
|
@@ -6531,14 +6533,14 @@ function installCompatMount(app, context, render) {
|
|
|
6531
6533
|
vnode.isCompatRoot = true;
|
|
6532
6534
|
instance.ctx._compat_mount = (selectorOrEl) => {
|
|
6533
6535
|
if (isMounted) {
|
|
6534
|
-
process.env.NODE_ENV !== "production" && warn(`Root instance is already mounted.`);
|
|
6536
|
+
!!(process.env.NODE_ENV !== "production") && warn(`Root instance is already mounted.`);
|
|
6535
6537
|
return;
|
|
6536
6538
|
}
|
|
6537
6539
|
let container;
|
|
6538
6540
|
if (typeof selectorOrEl === "string") {
|
|
6539
6541
|
const result = document.querySelector(selectorOrEl);
|
|
6540
6542
|
if (!result) {
|
|
6541
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
6543
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
6542
6544
|
`Failed to mount root instance: selector "${selectorOrEl}" returned null.`
|
|
6543
6545
|
);
|
|
6544
6546
|
return;
|
|
@@ -6548,7 +6550,7 @@ function installCompatMount(app, context, render) {
|
|
|
6548
6550
|
container = selectorOrEl || document.createElement("div");
|
|
6549
6551
|
}
|
|
6550
6552
|
const isSVG = container instanceof SVGElement;
|
|
6551
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6553
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6552
6554
|
context.reload = () => {
|
|
6553
6555
|
const cloned = cloneVNode(vnode);
|
|
6554
6556
|
cloned.component = null;
|
|
@@ -6556,7 +6558,7 @@ function installCompatMount(app, context, render) {
|
|
|
6556
6558
|
};
|
|
6557
6559
|
}
|
|
6558
6560
|
if (hasNoRender && instance.render === emptyRender) {
|
|
6559
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6561
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6560
6562
|
for (let i = 0; i < container.attributes.length; i++) {
|
|
6561
6563
|
const attr = container.attributes[i];
|
|
6562
6564
|
if (attr.name !== "v-cloak" && /^(v-|:|@)/.test(attr.name)) {
|
|
@@ -6583,7 +6585,7 @@ function installCompatMount(app, context, render) {
|
|
|
6583
6585
|
isMounted = true;
|
|
6584
6586
|
app._container = container;
|
|
6585
6587
|
container.__vue_app__ = app;
|
|
6586
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
6588
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
6587
6589
|
devtoolsInitApp(app, version);
|
|
6588
6590
|
}
|
|
6589
6591
|
return instance.proxy;
|
|
@@ -6591,7 +6593,7 @@ function installCompatMount(app, context, render) {
|
|
|
6591
6593
|
instance.ctx._compat_destroy = () => {
|
|
6592
6594
|
if (isMounted) {
|
|
6593
6595
|
render(null, app._container);
|
|
6594
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
6596
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
6595
6597
|
devtoolsUnmountApp(app);
|
|
6596
6598
|
}
|
|
6597
6599
|
delete app._container.__vue_app__;
|
|
@@ -6699,11 +6701,11 @@ function createAppAPI(render, hydrate) {
|
|
|
6699
6701
|
rootComponent = extend({}, rootComponent);
|
|
6700
6702
|
}
|
|
6701
6703
|
if (rootProps != null && !isObject(rootProps)) {
|
|
6702
|
-
process.env.NODE_ENV !== "production" && warn(`root props passed to app.mount() must be an object.`);
|
|
6704
|
+
!!(process.env.NODE_ENV !== "production") && warn(`root props passed to app.mount() must be an object.`);
|
|
6703
6705
|
rootProps = null;
|
|
6704
6706
|
}
|
|
6705
6707
|
const context = createAppContext();
|
|
6706
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6708
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6707
6709
|
Object.defineProperty(context.config, "unwrapInjectedRef", {
|
|
6708
6710
|
get() {
|
|
6709
6711
|
return true;
|
|
@@ -6729,7 +6731,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6729
6731
|
return context.config;
|
|
6730
6732
|
},
|
|
6731
6733
|
set config(v) {
|
|
6732
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6734
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6733
6735
|
warn(
|
|
6734
6736
|
`app.config cannot be replaced. Modify individual options instead.`
|
|
6735
6737
|
);
|
|
@@ -6737,14 +6739,14 @@ function createAppAPI(render, hydrate) {
|
|
|
6737
6739
|
},
|
|
6738
6740
|
use(plugin, ...options) {
|
|
6739
6741
|
if (installedPlugins.has(plugin)) {
|
|
6740
|
-
process.env.NODE_ENV !== "production" && warn(`Plugin has already been applied to target app.`);
|
|
6742
|
+
!!(process.env.NODE_ENV !== "production") && warn(`Plugin has already been applied to target app.`);
|
|
6741
6743
|
} else if (plugin && isFunction(plugin.install)) {
|
|
6742
6744
|
installedPlugins.add(plugin);
|
|
6743
6745
|
plugin.install(app, ...options);
|
|
6744
6746
|
} else if (isFunction(plugin)) {
|
|
6745
6747
|
installedPlugins.add(plugin);
|
|
6746
6748
|
plugin(app, ...options);
|
|
6747
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6749
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6748
6750
|
warn(
|
|
6749
6751
|
`A plugin must either be a function or an object with an "install" function.`
|
|
6750
6752
|
);
|
|
@@ -6755,37 +6757,37 @@ function createAppAPI(render, hydrate) {
|
|
|
6755
6757
|
if (__VUE_OPTIONS_API__) {
|
|
6756
6758
|
if (!context.mixins.includes(mixin)) {
|
|
6757
6759
|
context.mixins.push(mixin);
|
|
6758
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6760
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6759
6761
|
warn(
|
|
6760
6762
|
"Mixin has already been applied to target app" + (mixin.name ? `: ${mixin.name}` : "")
|
|
6761
6763
|
);
|
|
6762
6764
|
}
|
|
6763
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6765
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6764
6766
|
warn("Mixins are only available in builds supporting Options API");
|
|
6765
6767
|
}
|
|
6766
6768
|
return app;
|
|
6767
6769
|
},
|
|
6768
6770
|
component(name, component) {
|
|
6769
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6771
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6770
6772
|
validateComponentName(name, context.config);
|
|
6771
6773
|
}
|
|
6772
6774
|
if (!component) {
|
|
6773
6775
|
return context.components[name];
|
|
6774
6776
|
}
|
|
6775
|
-
if (process.env.NODE_ENV !== "production" && context.components[name]) {
|
|
6777
|
+
if (!!(process.env.NODE_ENV !== "production") && context.components[name]) {
|
|
6776
6778
|
warn(`Component "${name}" has already been registered in target app.`);
|
|
6777
6779
|
}
|
|
6778
6780
|
context.components[name] = component;
|
|
6779
6781
|
return app;
|
|
6780
6782
|
},
|
|
6781
6783
|
directive(name, directive) {
|
|
6782
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6784
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6783
6785
|
validateDirectiveName(name);
|
|
6784
6786
|
}
|
|
6785
6787
|
if (!directive) {
|
|
6786
6788
|
return context.directives[name];
|
|
6787
6789
|
}
|
|
6788
|
-
if (process.env.NODE_ENV !== "production" && context.directives[name]) {
|
|
6790
|
+
if (!!(process.env.NODE_ENV !== "production") && context.directives[name]) {
|
|
6789
6791
|
warn(`Directive "${name}" has already been registered in target app.`);
|
|
6790
6792
|
}
|
|
6791
6793
|
context.directives[name] = directive;
|
|
@@ -6793,7 +6795,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6793
6795
|
},
|
|
6794
6796
|
mount(rootContainer, isHydrate, isSVG) {
|
|
6795
6797
|
if (!isMounted) {
|
|
6796
|
-
if (process.env.NODE_ENV !== "production" && rootContainer.__vue_app__) {
|
|
6798
|
+
if (!!(process.env.NODE_ENV !== "production") && rootContainer.__vue_app__) {
|
|
6797
6799
|
warn(
|
|
6798
6800
|
`There is already an app instance mounted on the host container.
|
|
6799
6801
|
If you want to mount another app on the same host container, you need to unmount the previous app by calling \`app.unmount()\` first.`
|
|
@@ -6804,7 +6806,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6804
6806
|
rootProps
|
|
6805
6807
|
);
|
|
6806
6808
|
vnode.appContext = context;
|
|
6807
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6809
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6808
6810
|
context.reload = () => {
|
|
6809
6811
|
render(cloneVNode(vnode), rootContainer, isSVG);
|
|
6810
6812
|
};
|
|
@@ -6817,12 +6819,12 @@ function createAppAPI(render, hydrate) {
|
|
|
6817
6819
|
isMounted = true;
|
|
6818
6820
|
app._container = rootContainer;
|
|
6819
6821
|
rootContainer.__vue_app__ = app;
|
|
6820
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
6822
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
6821
6823
|
app._instance = vnode.component;
|
|
6822
6824
|
devtoolsInitApp(app, version);
|
|
6823
6825
|
}
|
|
6824
6826
|
return getExposeProxy(vnode.component) || vnode.component.proxy;
|
|
6825
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6827
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6826
6828
|
warn(
|
|
6827
6829
|
`App has already been mounted.
|
|
6828
6830
|
If you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. \`const createMyApp = () => createApp(App)\``
|
|
@@ -6832,17 +6834,17 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6832
6834
|
unmount() {
|
|
6833
6835
|
if (isMounted) {
|
|
6834
6836
|
render(null, app._container);
|
|
6835
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
6837
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
6836
6838
|
app._instance = null;
|
|
6837
6839
|
devtoolsUnmountApp(app);
|
|
6838
6840
|
}
|
|
6839
6841
|
delete app._container.__vue_app__;
|
|
6840
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6842
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6841
6843
|
warn(`Cannot unmount an app that is not mounted.`);
|
|
6842
6844
|
}
|
|
6843
6845
|
},
|
|
6844
6846
|
provide(key, value) {
|
|
6845
|
-
if (process.env.NODE_ENV !== "production" && key in context.provides) {
|
|
6847
|
+
if (!!(process.env.NODE_ENV !== "production") && key in context.provides) {
|
|
6846
6848
|
warn(
|
|
6847
6849
|
`App already provides property with key "${String(key)}". It will be overwritten with the new value.`
|
|
6848
6850
|
);
|
|
@@ -6869,7 +6871,7 @@ let currentApp = null;
|
|
|
6869
6871
|
|
|
6870
6872
|
function provide(key, value) {
|
|
6871
6873
|
if (!currentInstance) {
|
|
6872
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6874
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6873
6875
|
warn(`provide() can only be used inside setup().`);
|
|
6874
6876
|
}
|
|
6875
6877
|
} else {
|
|
@@ -6889,10 +6891,10 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
6889
6891
|
return provides[key];
|
|
6890
6892
|
} else if (arguments.length > 1) {
|
|
6891
6893
|
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
6892
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6894
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6893
6895
|
warn(`injection "${String(key)}" not found.`);
|
|
6894
6896
|
}
|
|
6895
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6897
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6896
6898
|
warn(`inject() can only be used inside setup() or functional components.`);
|
|
6897
6899
|
}
|
|
6898
6900
|
}
|
|
@@ -6905,7 +6907,7 @@ function createPropsDefaultThis(instance, rawProps, propKey) {
|
|
|
6905
6907
|
{},
|
|
6906
6908
|
{
|
|
6907
6909
|
get(_, key) {
|
|
6908
|
-
process.env.NODE_ENV !== "production" && warnDeprecation$1("PROPS_DEFAULT_THIS", null, propKey);
|
|
6910
|
+
!!(process.env.NODE_ENV !== "production") && warnDeprecation$1("PROPS_DEFAULT_THIS", null, propKey);
|
|
6909
6911
|
if (key === "$options") {
|
|
6910
6912
|
return resolveMergedOptions(instance);
|
|
6911
6913
|
}
|
|
@@ -6954,7 +6956,7 @@ function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
|
6954
6956
|
props[key] = void 0;
|
|
6955
6957
|
}
|
|
6956
6958
|
}
|
|
6957
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6959
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6958
6960
|
validateProps(rawProps || {}, props, instance);
|
|
6959
6961
|
}
|
|
6960
6962
|
if (isStateful) {
|
|
@@ -6988,7 +6990,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
|
6988
6990
|
// always force full diff in dev
|
|
6989
6991
|
// - #1942 if hmr is enabled with sfc component
|
|
6990
6992
|
// - vite#872 non-sfc component used by sfc component
|
|
6991
|
-
!(process.env.NODE_ENV !== "production" && isInHmrContext(instance)) && (optimized || patchFlag > 0) && !(patchFlag & 16)
|
|
6993
|
+
!(!!(process.env.NODE_ENV !== "production") && isInHmrContext(instance)) && (optimized || patchFlag > 0) && !(patchFlag & 16)
|
|
6992
6994
|
) {
|
|
6993
6995
|
if (patchFlag & 8) {
|
|
6994
6996
|
const propsToUpdate = instance.vnode.dynamicProps;
|
|
@@ -7072,7 +7074,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
|
7072
7074
|
if (hasAttrsChanged) {
|
|
7073
7075
|
trigger(instance, "set", "$attrs");
|
|
7074
7076
|
}
|
|
7075
|
-
if (process.env.NODE_ENV !== "production") {
|
|
7077
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
7076
7078
|
validateProps(rawProps || {}, props, instance);
|
|
7077
7079
|
}
|
|
7078
7080
|
}
|
|
@@ -7208,7 +7210,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
7208
7210
|
}
|
|
7209
7211
|
if (isArray(raw)) {
|
|
7210
7212
|
for (let i = 0; i < raw.length; i++) {
|
|
7211
|
-
if (process.env.NODE_ENV !== "production" && !isString(raw[i])) {
|
|
7213
|
+
if (!!(process.env.NODE_ENV !== "production") && !isString(raw[i])) {
|
|
7212
7214
|
warn(`props must be strings when using array syntax.`, raw[i]);
|
|
7213
7215
|
}
|
|
7214
7216
|
const normalizedKey = camelize(raw[i]);
|
|
@@ -7217,7 +7219,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
7217
7219
|
}
|
|
7218
7220
|
}
|
|
7219
7221
|
} else if (raw) {
|
|
7220
|
-
if (process.env.NODE_ENV !== "production" && !isObject(raw)) {
|
|
7222
|
+
if (!!(process.env.NODE_ENV !== "production") && !isObject(raw)) {
|
|
7221
7223
|
warn(`invalid props options`, raw);
|
|
7222
7224
|
}
|
|
7223
7225
|
for (const key in raw) {
|
|
@@ -7246,7 +7248,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
7246
7248
|
function validatePropName(key) {
|
|
7247
7249
|
if (key[0] !== "$") {
|
|
7248
7250
|
return true;
|
|
7249
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
7251
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7250
7252
|
warn(`Invalid prop name: "${key}" is a reserved property.`);
|
|
7251
7253
|
}
|
|
7252
7254
|
return false;
|
|
@@ -7373,7 +7375,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
|
|
|
7373
7375
|
return rawSlot;
|
|
7374
7376
|
}
|
|
7375
7377
|
const normalized = withCtx((...args) => {
|
|
7376
|
-
if (process.env.NODE_ENV !== "production" && currentInstance) {
|
|
7378
|
+
if (!!(process.env.NODE_ENV !== "production") && currentInstance) {
|
|
7377
7379
|
warn(
|
|
7378
7380
|
`Slot "${key}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
|
|
7379
7381
|
);
|
|
@@ -7392,7 +7394,7 @@ const normalizeObjectSlots = (rawSlots, slots, instance) => {
|
|
|
7392
7394
|
if (isFunction(value)) {
|
|
7393
7395
|
slots[key] = normalizeSlot(key, value, ctx);
|
|
7394
7396
|
} else if (value != null) {
|
|
7395
|
-
if (process.env.NODE_ENV !== "production" && !isCompatEnabled$1("RENDER_FUNCTION", instance)) {
|
|
7397
|
+
if (!!(process.env.NODE_ENV !== "production") && !isCompatEnabled$1("RENDER_FUNCTION", instance)) {
|
|
7396
7398
|
warn(
|
|
7397
7399
|
`Non-function value encountered for slot "${key}". Prefer function slots for better performance.`
|
|
7398
7400
|
);
|
|
@@ -7403,7 +7405,7 @@ const normalizeObjectSlots = (rawSlots, slots, instance) => {
|
|
|
7403
7405
|
}
|
|
7404
7406
|
};
|
|
7405
7407
|
const normalizeVNodeSlots = (instance, children) => {
|
|
7406
|
-
if (process.env.NODE_ENV !== "production" && !isKeepAlive(instance.vnode) && !isCompatEnabled$1("RENDER_FUNCTION", instance)) {
|
|
7408
|
+
if (!!(process.env.NODE_ENV !== "production") && !isKeepAlive(instance.vnode) && !isCompatEnabled$1("RENDER_FUNCTION", instance)) {
|
|
7407
7409
|
warn(
|
|
7408
7410
|
`Non-function value encountered for default slot. Prefer function slots for better performance.`
|
|
7409
7411
|
);
|
|
@@ -7439,7 +7441,7 @@ const updateSlots = (instance, children, optimized) => {
|
|
|
7439
7441
|
if (vnode.shapeFlag & 32) {
|
|
7440
7442
|
const type = children._;
|
|
7441
7443
|
if (type) {
|
|
7442
|
-
if (process.env.NODE_ENV !== "production" && isHmrUpdating) {
|
|
7444
|
+
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) {
|
|
7443
7445
|
extend(slots, children);
|
|
7444
7446
|
trigger(instance, "set", "$slots");
|
|
7445
7447
|
} else if (optimized && type === 1) {
|
|
@@ -7487,7 +7489,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7487
7489
|
const refValue = vnode.shapeFlag & 4 ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el;
|
|
7488
7490
|
const value = isUnmount ? null : refValue;
|
|
7489
7491
|
const { i: owner, r: ref } = rawRef;
|
|
7490
|
-
if (process.env.NODE_ENV !== "production" && !owner) {
|
|
7492
|
+
if (!!(process.env.NODE_ENV !== "production") && !owner) {
|
|
7491
7493
|
warn(
|
|
7492
7494
|
`Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.`
|
|
7493
7495
|
);
|
|
@@ -7542,7 +7544,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7542
7544
|
ref.value = value;
|
|
7543
7545
|
if (rawRef.k)
|
|
7544
7546
|
refs[rawRef.k] = value;
|
|
7545
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
7547
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7546
7548
|
warn("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7547
7549
|
}
|
|
7548
7550
|
};
|
|
@@ -7552,7 +7554,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7552
7554
|
} else {
|
|
7553
7555
|
doSet();
|
|
7554
7556
|
}
|
|
7555
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
7557
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7556
7558
|
warn("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7557
7559
|
}
|
|
7558
7560
|
}
|
|
@@ -7577,7 +7579,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7577
7579
|
} = rendererInternals;
|
|
7578
7580
|
const hydrate = (vnode, container) => {
|
|
7579
7581
|
if (!container.hasChildNodes()) {
|
|
7580
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
7582
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
7581
7583
|
`Attempting to hydrate existing markup but container is empty. Performing full mount instead.`
|
|
7582
7584
|
);
|
|
7583
7585
|
patch(null, vnode, container);
|
|
@@ -7622,7 +7624,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7622
7624
|
}
|
|
7623
7625
|
} else {
|
|
7624
7626
|
if (node.data !== vnode.children) {
|
|
7625
|
-
hasMismatch = true
|
|
7627
|
+
hasMismatch = true;
|
|
7628
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
7626
7629
|
`Hydration text mismatch:
|
|
7627
7630
|
- Client: ${JSON.stringify(node.data)}
|
|
7628
7631
|
- Server: ${JSON.stringify(vnode.children)}`
|
|
@@ -7742,7 +7745,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7742
7745
|
rendererInternals,
|
|
7743
7746
|
hydrateNode
|
|
7744
7747
|
);
|
|
7745
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
7748
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7746
7749
|
warn("Invalid HostVNode type:", type, `(${typeof type})`);
|
|
7747
7750
|
}
|
|
7748
7751
|
}
|
|
@@ -7755,7 +7758,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7755
7758
|
optimized = optimized || !!vnode.dynamicChildren;
|
|
7756
7759
|
const { type, props, patchFlag, shapeFlag, dirs } = vnode;
|
|
7757
7760
|
const forcePatchValue = type === "input" && dirs || type === "option";
|
|
7758
|
-
if (process.env.NODE_ENV !== "production" || forcePatchValue || patchFlag !== -1) {
|
|
7761
|
+
if (!!(process.env.NODE_ENV !== "production") || forcePatchValue || patchFlag !== -1) {
|
|
7759
7762
|
if (dirs) {
|
|
7760
7763
|
invokeDirectiveHook(vnode, null, parentComponent, "created");
|
|
7761
7764
|
}
|
|
@@ -7813,7 +7816,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7813
7816
|
let hasWarned = false;
|
|
7814
7817
|
while (next) {
|
|
7815
7818
|
hasMismatch = true;
|
|
7816
|
-
if (process.env.NODE_ENV !== "production" && !hasWarned) {
|
|
7819
|
+
if (!!(process.env.NODE_ENV !== "production") && !hasWarned) {
|
|
7817
7820
|
warn(
|
|
7818
7821
|
`Hydration children mismatch in <${vnode.type}>: server rendered element contains more child nodes than client vdom.`
|
|
7819
7822
|
);
|
|
@@ -7825,7 +7828,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7825
7828
|
}
|
|
7826
7829
|
} else if (shapeFlag & 8) {
|
|
7827
7830
|
if (el.textContent !== vnode.children) {
|
|
7828
|
-
hasMismatch = true
|
|
7831
|
+
hasMismatch = true;
|
|
7832
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
7829
7833
|
`Hydration text content mismatch in <${vnode.type}>:
|
|
7830
7834
|
- Client: ${el.textContent}
|
|
7831
7835
|
- Server: ${vnode.children}`
|
|
@@ -7856,7 +7860,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7856
7860
|
continue;
|
|
7857
7861
|
} else {
|
|
7858
7862
|
hasMismatch = true;
|
|
7859
|
-
if (process.env.NODE_ENV !== "production" && !hasWarned) {
|
|
7863
|
+
if (!!(process.env.NODE_ENV !== "production") && !hasWarned) {
|
|
7860
7864
|
warn(
|
|
7861
7865
|
`Hydration children mismatch in <${container.tagName.toLowerCase()}>: server rendered element contains fewer child nodes than client vdom.`
|
|
7862
7866
|
);
|
|
@@ -7900,7 +7904,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7900
7904
|
}
|
|
7901
7905
|
};
|
|
7902
7906
|
const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
|
|
7903
|
-
hasMismatch = true
|
|
7907
|
+
hasMismatch = true;
|
|
7908
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
7904
7909
|
`Hydration node mismatch:
|
|
7905
7910
|
- Client vnode:`,
|
|
7906
7911
|
vnode.type,
|
|
@@ -7963,7 +7968,7 @@ function startMeasure(instance, type) {
|
|
|
7963
7968
|
if (instance.appContext.config.performance && isSupported()) {
|
|
7964
7969
|
perf.mark(`vue-${type}-${instance.uid}`);
|
|
7965
7970
|
}
|
|
7966
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
7971
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
7967
7972
|
devtoolsPerfStart(instance, type, isSupported() ? perf.now() : Date.now());
|
|
7968
7973
|
}
|
|
7969
7974
|
}
|
|
@@ -7980,7 +7985,7 @@ function endMeasure(instance, type) {
|
|
|
7980
7985
|
perf.clearMarks(startTag);
|
|
7981
7986
|
perf.clearMarks(endTag);
|
|
7982
7987
|
}
|
|
7983
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
7988
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
7984
7989
|
devtoolsPerfEnd(instance, type, isSupported() ? perf.now() : Date.now());
|
|
7985
7990
|
}
|
|
7986
7991
|
}
|
|
@@ -8000,14 +8005,14 @@ function isSupported() {
|
|
|
8000
8005
|
function initFeatureFlags() {
|
|
8001
8006
|
const needWarn = [];
|
|
8002
8007
|
if (typeof __VUE_OPTIONS_API__ !== "boolean") {
|
|
8003
|
-
process.env.NODE_ENV !== "production" && needWarn.push(`__VUE_OPTIONS_API__`);
|
|
8008
|
+
!!(process.env.NODE_ENV !== "production") && needWarn.push(`__VUE_OPTIONS_API__`);
|
|
8004
8009
|
getGlobalThis().__VUE_OPTIONS_API__ = true;
|
|
8005
8010
|
}
|
|
8006
8011
|
if (typeof __VUE_PROD_DEVTOOLS__ !== "boolean") {
|
|
8007
|
-
process.env.NODE_ENV !== "production" && needWarn.push(`__VUE_PROD_DEVTOOLS__`);
|
|
8012
|
+
!!(process.env.NODE_ENV !== "production") && needWarn.push(`__VUE_PROD_DEVTOOLS__`);
|
|
8008
8013
|
getGlobalThis().__VUE_PROD_DEVTOOLS__ = false;
|
|
8009
8014
|
}
|
|
8010
|
-
if (process.env.NODE_ENV !== "production" && needWarn.length) {
|
|
8015
|
+
if (!!(process.env.NODE_ENV !== "production") && needWarn.length) {
|
|
8011
8016
|
const multi = needWarn.length > 1;
|
|
8012
8017
|
console.warn(
|
|
8013
8018
|
`Feature flag${multi ? `s` : ``} ${needWarn.join(", ")} ${multi ? `are` : `is`} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
@@ -8030,7 +8035,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8030
8035
|
}
|
|
8031
8036
|
const target = getGlobalThis();
|
|
8032
8037
|
target.__VUE__ = true;
|
|
8033
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
8038
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
8034
8039
|
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
|
|
8035
8040
|
}
|
|
8036
8041
|
const {
|
|
@@ -8047,7 +8052,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8047
8052
|
setScopeId: hostSetScopeId = NOOP,
|
|
8048
8053
|
insertStaticContent: hostInsertStaticContent
|
|
8049
8054
|
} = options;
|
|
8050
|
-
const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = process.env.NODE_ENV !== "production" && isHmrUpdating ? false : !!n2.dynamicChildren) => {
|
|
8055
|
+
const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = !!(process.env.NODE_ENV !== "production") && isHmrUpdating ? false : !!n2.dynamicChildren) => {
|
|
8051
8056
|
if (n1 === n2) {
|
|
8052
8057
|
return;
|
|
8053
8058
|
}
|
|
@@ -8071,7 +8076,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8071
8076
|
case Static:
|
|
8072
8077
|
if (n1 == null) {
|
|
8073
8078
|
mountStaticNode(n2, container, anchor, isSVG);
|
|
8074
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
8079
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
8075
8080
|
patchStaticNode(n1, n2, container, isSVG);
|
|
8076
8081
|
}
|
|
8077
8082
|
break;
|
|
@@ -8139,7 +8144,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8139
8144
|
optimized,
|
|
8140
8145
|
internals
|
|
8141
8146
|
);
|
|
8142
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
8147
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
8143
8148
|
warn("Invalid VNode type:", type, `(${typeof type})`);
|
|
8144
8149
|
}
|
|
8145
8150
|
}
|
|
@@ -8291,7 +8296,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8291
8296
|
invokeVNodeHook(vnodeHook, parentComponent, vnode);
|
|
8292
8297
|
}
|
|
8293
8298
|
}
|
|
8294
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
8299
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
8295
8300
|
Object.defineProperty(el, "__vnode", {
|
|
8296
8301
|
value: vnode,
|
|
8297
8302
|
enumerable: false
|
|
@@ -8328,7 +8333,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8328
8333
|
}
|
|
8329
8334
|
if (parentComponent) {
|
|
8330
8335
|
let subTree = parentComponent.subTree;
|
|
8331
|
-
if (process.env.NODE_ENV !== "production" && subTree.patchFlag > 0 && subTree.patchFlag & 2048) {
|
|
8336
|
+
if (!!(process.env.NODE_ENV !== "production") && subTree.patchFlag > 0 && subTree.patchFlag & 2048) {
|
|
8332
8337
|
subTree = filterSingleRoot(subTree.children) || subTree;
|
|
8333
8338
|
}
|
|
8334
8339
|
if (vnode === subTree) {
|
|
@@ -8374,7 +8379,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8374
8379
|
invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate");
|
|
8375
8380
|
}
|
|
8376
8381
|
parentComponent && toggleRecurse(parentComponent, true);
|
|
8377
|
-
if (process.env.NODE_ENV !== "production" && isHmrUpdating) {
|
|
8382
|
+
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) {
|
|
8378
8383
|
patchFlag = 0;
|
|
8379
8384
|
optimized = false;
|
|
8380
8385
|
dynamicChildren = null;
|
|
@@ -8390,7 +8395,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8390
8395
|
areChildrenSVG,
|
|
8391
8396
|
slotScopeIds
|
|
8392
8397
|
);
|
|
8393
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8398
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8394
8399
|
traverseStaticChildren(n1, n2);
|
|
8395
8400
|
}
|
|
8396
8401
|
} else if (!optimized) {
|
|
@@ -8549,7 +8554,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8549
8554
|
const fragmentStartAnchor = n2.el = n1 ? n1.el : hostCreateText("");
|
|
8550
8555
|
const fragmentEndAnchor = n2.anchor = n1 ? n1.anchor : hostCreateText("");
|
|
8551
8556
|
let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2;
|
|
8552
|
-
if (process.env.NODE_ENV !== "production" && // #5523 dev root fragment may inherit directives
|
|
8557
|
+
if (!!(process.env.NODE_ENV !== "production") && // #5523 dev root fragment may inherit directives
|
|
8553
8558
|
(isHmrUpdating || patchFlag & 2048)) {
|
|
8554
8559
|
patchFlag = 0;
|
|
8555
8560
|
optimized = false;
|
|
@@ -8584,7 +8589,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8584
8589
|
isSVG,
|
|
8585
8590
|
slotScopeIds
|
|
8586
8591
|
);
|
|
8587
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8592
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8588
8593
|
traverseStaticChildren(n1, n2);
|
|
8589
8594
|
} else if (
|
|
8590
8595
|
// #2080 if the stable fragment has a key, it's a <template v-for> that may
|
|
@@ -8648,10 +8653,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8648
8653
|
parentComponent,
|
|
8649
8654
|
parentSuspense
|
|
8650
8655
|
));
|
|
8651
|
-
if (process.env.NODE_ENV !== "production" && instance.type.__hmrId) {
|
|
8656
|
+
if (!!(process.env.NODE_ENV !== "production") && instance.type.__hmrId) {
|
|
8652
8657
|
registerHMR(instance);
|
|
8653
8658
|
}
|
|
8654
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8659
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8655
8660
|
pushWarningContext(initialVNode);
|
|
8656
8661
|
startMeasure(instance, `mount`);
|
|
8657
8662
|
}
|
|
@@ -8659,11 +8664,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8659
8664
|
instance.ctx.renderer = internals;
|
|
8660
8665
|
}
|
|
8661
8666
|
if (!compatMountInstance) {
|
|
8662
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8667
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8663
8668
|
startMeasure(instance, `init`);
|
|
8664
8669
|
}
|
|
8665
8670
|
setupComponent(instance);
|
|
8666
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8671
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8667
8672
|
endMeasure(instance, `init`);
|
|
8668
8673
|
}
|
|
8669
8674
|
}
|
|
@@ -8684,7 +8689,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8684
8689
|
isSVG,
|
|
8685
8690
|
optimized
|
|
8686
8691
|
);
|
|
8687
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8692
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8688
8693
|
popWarningContext();
|
|
8689
8694
|
endMeasure(instance, `mount`);
|
|
8690
8695
|
}
|
|
@@ -8693,11 +8698,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8693
8698
|
const instance = n2.component = n1.component;
|
|
8694
8699
|
if (shouldUpdateComponent(n1, n2, optimized)) {
|
|
8695
8700
|
if (instance.asyncDep && !instance.asyncResolved) {
|
|
8696
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8701
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8697
8702
|
pushWarningContext(n2);
|
|
8698
8703
|
}
|
|
8699
8704
|
updateComponentPreRender(instance, n2, optimized);
|
|
8700
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8705
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8701
8706
|
popWarningContext();
|
|
8702
8707
|
}
|
|
8703
8708
|
return;
|
|
@@ -8731,14 +8736,14 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8731
8736
|
toggleRecurse(instance, true);
|
|
8732
8737
|
if (el && hydrateNode) {
|
|
8733
8738
|
const hydrateSubTree = () => {
|
|
8734
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8739
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8735
8740
|
startMeasure(instance, `render`);
|
|
8736
8741
|
}
|
|
8737
8742
|
instance.subTree = renderComponentRoot(instance);
|
|
8738
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8743
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8739
8744
|
endMeasure(instance, `render`);
|
|
8740
8745
|
}
|
|
8741
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8746
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8742
8747
|
startMeasure(instance, `hydrate`);
|
|
8743
8748
|
}
|
|
8744
8749
|
hydrateNode(
|
|
@@ -8748,7 +8753,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8748
8753
|
parentSuspense,
|
|
8749
8754
|
null
|
|
8750
8755
|
);
|
|
8751
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8756
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8752
8757
|
endMeasure(instance, `hydrate`);
|
|
8753
8758
|
}
|
|
8754
8759
|
};
|
|
@@ -8764,14 +8769,14 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8764
8769
|
hydrateSubTree();
|
|
8765
8770
|
}
|
|
8766
8771
|
} else {
|
|
8767
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8772
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8768
8773
|
startMeasure(instance, `render`);
|
|
8769
8774
|
}
|
|
8770
8775
|
const subTree = instance.subTree = renderComponentRoot(instance);
|
|
8771
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8776
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8772
8777
|
endMeasure(instance, `render`);
|
|
8773
8778
|
}
|
|
8774
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8779
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8775
8780
|
startMeasure(instance, `patch`);
|
|
8776
8781
|
}
|
|
8777
8782
|
patch(
|
|
@@ -8783,7 +8788,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8783
8788
|
parentSuspense,
|
|
8784
8789
|
isSVG
|
|
8785
8790
|
);
|
|
8786
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8791
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8787
8792
|
endMeasure(instance, `patch`);
|
|
8788
8793
|
}
|
|
8789
8794
|
initialVNode.el = subTree.el;
|
|
@@ -8814,7 +8819,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8814
8819
|
}
|
|
8815
8820
|
}
|
|
8816
8821
|
instance.isMounted = true;
|
|
8817
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
8822
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
8818
8823
|
devtoolsComponentAdded(instance);
|
|
8819
8824
|
}
|
|
8820
8825
|
initialVNode = container = anchor = null;
|
|
@@ -8822,7 +8827,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8822
8827
|
let { next, bu, u, parent, vnode } = instance;
|
|
8823
8828
|
let originNext = next;
|
|
8824
8829
|
let vnodeHook;
|
|
8825
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8830
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8826
8831
|
pushWarningContext(next || instance.vnode);
|
|
8827
8832
|
}
|
|
8828
8833
|
toggleRecurse(instance, false);
|
|
@@ -8842,16 +8847,16 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8842
8847
|
instance.emit("hook:beforeUpdate");
|
|
8843
8848
|
}
|
|
8844
8849
|
toggleRecurse(instance, true);
|
|
8845
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8850
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8846
8851
|
startMeasure(instance, `render`);
|
|
8847
8852
|
}
|
|
8848
8853
|
const nextTree = renderComponentRoot(instance);
|
|
8849
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8854
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8850
8855
|
endMeasure(instance, `render`);
|
|
8851
8856
|
}
|
|
8852
8857
|
const prevTree = instance.subTree;
|
|
8853
8858
|
instance.subTree = nextTree;
|
|
8854
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8859
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8855
8860
|
startMeasure(instance, `patch`);
|
|
8856
8861
|
}
|
|
8857
8862
|
patch(
|
|
@@ -8865,7 +8870,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8865
8870
|
parentSuspense,
|
|
8866
8871
|
isSVG
|
|
8867
8872
|
);
|
|
8868
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8873
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8869
8874
|
endMeasure(instance, `patch`);
|
|
8870
8875
|
}
|
|
8871
8876
|
next.el = nextTree.el;
|
|
@@ -8887,10 +8892,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8887
8892
|
parentSuspense
|
|
8888
8893
|
);
|
|
8889
8894
|
}
|
|
8890
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
8895
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
8891
8896
|
devtoolsComponentUpdated(instance);
|
|
8892
8897
|
}
|
|
8893
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8898
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8894
8899
|
popWarningContext();
|
|
8895
8900
|
}
|
|
8896
8901
|
}
|
|
@@ -8904,7 +8909,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8904
8909
|
const update = instance.update = () => effect.run();
|
|
8905
8910
|
update.id = instance.uid;
|
|
8906
8911
|
toggleRecurse(instance, true);
|
|
8907
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8912
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8908
8913
|
effect.onTrack = instance.rtc ? (e) => invokeArrayFns(instance.rtc, e) : void 0;
|
|
8909
8914
|
effect.onTrigger = instance.rtg ? (e) => invokeArrayFns(instance.rtg, e) : void 0;
|
|
8910
8915
|
update.ownerInstance = instance;
|
|
@@ -9120,7 +9125,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9120
9125
|
for (i = s2; i <= e2; i++) {
|
|
9121
9126
|
const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]);
|
|
9122
9127
|
if (nextChild.key != null) {
|
|
9123
|
-
if (process.env.NODE_ENV !== "production" && keyToNewIndexMap.has(nextChild.key)) {
|
|
9128
|
+
if (!!(process.env.NODE_ENV !== "production") && keyToNewIndexMap.has(nextChild.key)) {
|
|
9124
9129
|
warn(
|
|
9125
9130
|
`Duplicate keys found during update:`,
|
|
9126
9131
|
JSON.stringify(nextChild.key),
|
|
@@ -9326,7 +9331,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9326
9331
|
const remove = (vnode) => {
|
|
9327
9332
|
const { type, el, anchor, transition } = vnode;
|
|
9328
9333
|
if (type === Fragment) {
|
|
9329
|
-
if (process.env.NODE_ENV !== "production" && vnode.patchFlag > 0 && vnode.patchFlag & 2048 && transition && !transition.persisted) {
|
|
9334
|
+
if (!!(process.env.NODE_ENV !== "production") && vnode.patchFlag > 0 && vnode.patchFlag & 2048 && transition && !transition.persisted) {
|
|
9330
9335
|
vnode.children.forEach((child) => {
|
|
9331
9336
|
if (child.type === Comment) {
|
|
9332
9337
|
hostRemove(child.el);
|
|
@@ -9371,7 +9376,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9371
9376
|
hostRemove(end);
|
|
9372
9377
|
};
|
|
9373
9378
|
const unmountComponent = (instance, parentSuspense, doRemove) => {
|
|
9374
|
-
if (process.env.NODE_ENV !== "production" && instance.type.__hmrId) {
|
|
9379
|
+
if (!!(process.env.NODE_ENV !== "production") && instance.type.__hmrId) {
|
|
9375
9380
|
unregisterHMR(instance);
|
|
9376
9381
|
}
|
|
9377
9382
|
const { bum, scope, update, subTree, um } = instance;
|
|
@@ -9404,7 +9409,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9404
9409
|
parentSuspense.resolve();
|
|
9405
9410
|
}
|
|
9406
9411
|
}
|
|
9407
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
9412
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
9408
9413
|
devtoolsComponentRemoved(instance);
|
|
9409
9414
|
}
|
|
9410
9415
|
};
|
|
@@ -9480,7 +9485,7 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
9480
9485
|
if (c2.type === Text) {
|
|
9481
9486
|
c2.el = c1.el;
|
|
9482
9487
|
}
|
|
9483
|
-
if (process.env.NODE_ENV !== "production" && c2.type === Comment && !c2.el) {
|
|
9488
|
+
if (!!(process.env.NODE_ENV !== "production") && c2.type === Comment && !c2.el) {
|
|
9484
9489
|
c2.el = c1.el;
|
|
9485
9490
|
}
|
|
9486
9491
|
}
|
|
@@ -9534,21 +9539,21 @@ const resolveTarget = (props, select) => {
|
|
|
9534
9539
|
const targetSelector = props && props.to;
|
|
9535
9540
|
if (isString(targetSelector)) {
|
|
9536
9541
|
if (!select) {
|
|
9537
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
9542
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
9538
9543
|
`Current renderer does not support string target for Teleports. (missing querySelector renderer option)`
|
|
9539
9544
|
);
|
|
9540
9545
|
return null;
|
|
9541
9546
|
} else {
|
|
9542
9547
|
const target = select(targetSelector);
|
|
9543
9548
|
if (!target) {
|
|
9544
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
9549
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
9545
9550
|
`Failed to locate Teleport target with selector "${targetSelector}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`
|
|
9546
9551
|
);
|
|
9547
9552
|
}
|
|
9548
9553
|
return target;
|
|
9549
9554
|
}
|
|
9550
9555
|
} else {
|
|
9551
|
-
if (process.env.NODE_ENV !== "production" && !targetSelector && !isTeleportDisabled(props)) {
|
|
9556
|
+
if (!!(process.env.NODE_ENV !== "production") && !targetSelector && !isTeleportDisabled(props)) {
|
|
9552
9557
|
warn(`Invalid Teleport target: ${targetSelector}`);
|
|
9553
9558
|
}
|
|
9554
9559
|
return targetSelector;
|
|
@@ -9565,13 +9570,13 @@ const TeleportImpl = {
|
|
|
9565
9570
|
} = internals;
|
|
9566
9571
|
const disabled = isTeleportDisabled(n2.props);
|
|
9567
9572
|
let { shapeFlag, children, dynamicChildren } = n2;
|
|
9568
|
-
if (process.env.NODE_ENV !== "production" && isHmrUpdating) {
|
|
9573
|
+
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) {
|
|
9569
9574
|
optimized = false;
|
|
9570
9575
|
dynamicChildren = null;
|
|
9571
9576
|
}
|
|
9572
9577
|
if (n1 == null) {
|
|
9573
|
-
const placeholder = n2.el = process.env.NODE_ENV !== "production" ? createComment("teleport start") : createText("");
|
|
9574
|
-
const mainAnchor = n2.anchor = process.env.NODE_ENV !== "production" ? createComment("teleport end") : createText("");
|
|
9578
|
+
const placeholder = n2.el = !!(process.env.NODE_ENV !== "production") ? createComment("teleport start") : createText("");
|
|
9579
|
+
const mainAnchor = n2.anchor = !!(process.env.NODE_ENV !== "production") ? createComment("teleport end") : createText("");
|
|
9575
9580
|
insert(placeholder, container, anchor);
|
|
9576
9581
|
insert(mainAnchor, container, anchor);
|
|
9577
9582
|
const target = n2.target = resolveTarget(n2.props, querySelector);
|
|
@@ -9579,7 +9584,7 @@ const TeleportImpl = {
|
|
|
9579
9584
|
if (target) {
|
|
9580
9585
|
insert(targetAnchor, target);
|
|
9581
9586
|
isSVG = isSVG || isTargetSVG(target);
|
|
9582
|
-
} else if (process.env.NODE_ENV !== "production" && !disabled) {
|
|
9587
|
+
} else if (!!(process.env.NODE_ENV !== "production") && !disabled) {
|
|
9583
9588
|
warn("Invalid Teleport target on mount:", target, `(${typeof target})`);
|
|
9584
9589
|
}
|
|
9585
9590
|
const mount = (container2, anchor2) => {
|
|
@@ -9658,7 +9663,7 @@ const TeleportImpl = {
|
|
|
9658
9663
|
internals,
|
|
9659
9664
|
0
|
|
9660
9665
|
);
|
|
9661
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
9666
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
9662
9667
|
warn(
|
|
9663
9668
|
"Invalid Teleport target on update:",
|
|
9664
9669
|
target,
|
|
@@ -9895,7 +9900,7 @@ function isVNode(value) {
|
|
|
9895
9900
|
return value ? value.__v_isVNode === true : false;
|
|
9896
9901
|
}
|
|
9897
9902
|
function isSameVNodeType(n1, n2) {
|
|
9898
|
-
if (process.env.NODE_ENV !== "production" && n2.shapeFlag & 6 && hmrDirtyComponents.has(n2.type)) {
|
|
9903
|
+
if (!!(process.env.NODE_ENV !== "production") && n2.shapeFlag & 6 && hmrDirtyComponents.has(n2.type)) {
|
|
9899
9904
|
n1.shapeFlag &= ~256;
|
|
9900
9905
|
n2.shapeFlag &= ~512;
|
|
9901
9906
|
return false;
|
|
@@ -9960,7 +9965,7 @@ function createBaseVNode(type, props = null, children = null, patchFlag = 0, dyn
|
|
|
9960
9965
|
} else if (children) {
|
|
9961
9966
|
vnode.shapeFlag |= isString(children) ? 8 : 16;
|
|
9962
9967
|
}
|
|
9963
|
-
if (process.env.NODE_ENV !== "production" && vnode.key !== vnode.key) {
|
|
9968
|
+
if (!!(process.env.NODE_ENV !== "production") && vnode.key !== vnode.key) {
|
|
9964
9969
|
warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
|
|
9965
9970
|
}
|
|
9966
9971
|
if (isBlockTreeEnabled > 0 && // avoid a block node from tracking itself
|
|
@@ -9980,10 +9985,10 @@ function createBaseVNode(type, props = null, children = null, patchFlag = 0, dyn
|
|
|
9980
9985
|
}
|
|
9981
9986
|
return vnode;
|
|
9982
9987
|
}
|
|
9983
|
-
const createVNode = process.env.NODE_ENV !== "production" ? createVNodeWithArgsTransform : _createVNode;
|
|
9988
|
+
const createVNode = !!(process.env.NODE_ENV !== "production") ? createVNodeWithArgsTransform : _createVNode;
|
|
9984
9989
|
function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
|
|
9985
9990
|
if (!type || type === NULL_DYNAMIC_COMPONENT) {
|
|
9986
|
-
if (process.env.NODE_ENV !== "production" && !type) {
|
|
9991
|
+
if (!!(process.env.NODE_ENV !== "production") && !type) {
|
|
9987
9992
|
warn(`Invalid vnode type when creating vnode: ${type}.`);
|
|
9988
9993
|
}
|
|
9989
9994
|
type = Comment;
|
|
@@ -10028,7 +10033,7 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
|
|
|
10028
10033
|
}
|
|
10029
10034
|
}
|
|
10030
10035
|
const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject(type) ? 4 : isFunction(type) ? 2 : 0;
|
|
10031
|
-
if (process.env.NODE_ENV !== "production" && shapeFlag & 4 && isProxy(type)) {
|
|
10036
|
+
if (!!(process.env.NODE_ENV !== "production") && shapeFlag & 4 && isProxy(type)) {
|
|
10032
10037
|
type = toRaw(type);
|
|
10033
10038
|
warn(
|
|
10034
10039
|
`Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with \`markRaw\` or using \`shallowRef\` instead of \`ref\`.`,
|
|
@@ -10070,7 +10075,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
10070
10075
|
) : ref,
|
|
10071
10076
|
scopeId: vnode.scopeId,
|
|
10072
10077
|
slotScopeIds: vnode.slotScopeIds,
|
|
10073
|
-
children: process.env.NODE_ENV !== "production" && patchFlag === -1 && isArray(children) ? children.map(deepCloneVNode) : children,
|
|
10078
|
+
children: !!(process.env.NODE_ENV !== "production") && patchFlag === -1 && isArray(children) ? children.map(deepCloneVNode) : children,
|
|
10074
10079
|
target: vnode.target,
|
|
10075
10080
|
targetAnchor: vnode.targetAnchor,
|
|
10076
10081
|
staticCount: vnode.staticCount,
|
|
@@ -10297,7 +10302,7 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
10297
10302
|
ec: null,
|
|
10298
10303
|
sp: null
|
|
10299
10304
|
};
|
|
10300
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10305
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10301
10306
|
instance.ctx = createDevRenderContext(instance);
|
|
10302
10307
|
} else {
|
|
10303
10308
|
instance.ctx = { _: instance };
|
|
@@ -10361,7 +10366,7 @@ function setupComponent(instance, isSSR = false) {
|
|
|
10361
10366
|
function setupStatefulComponent(instance, isSSR) {
|
|
10362
10367
|
var _a;
|
|
10363
10368
|
const Component = instance.type;
|
|
10364
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10369
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10365
10370
|
if (Component.name) {
|
|
10366
10371
|
validateComponentName(Component.name, instance.appContext.config);
|
|
10367
10372
|
}
|
|
@@ -10385,7 +10390,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10385
10390
|
}
|
|
10386
10391
|
instance.accessCache = /* @__PURE__ */ Object.create(null);
|
|
10387
10392
|
instance.proxy = markRaw(new Proxy(instance.ctx, PublicInstanceProxyHandlers));
|
|
10388
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10393
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10389
10394
|
exposePropsOnRenderContext(instance);
|
|
10390
10395
|
}
|
|
10391
10396
|
const { setup } = Component;
|
|
@@ -10397,7 +10402,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10397
10402
|
setup,
|
|
10398
10403
|
instance,
|
|
10399
10404
|
0,
|
|
10400
|
-
[process.env.NODE_ENV !== "production" ? shallowReadonly(instance.props) : instance.props, setupContext]
|
|
10405
|
+
[!!(process.env.NODE_ENV !== "production") ? shallowReadonly(instance.props) : instance.props, setupContext]
|
|
10401
10406
|
);
|
|
10402
10407
|
resetTracking();
|
|
10403
10408
|
unsetCurrentInstance();
|
|
@@ -10411,7 +10416,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10411
10416
|
});
|
|
10412
10417
|
} else {
|
|
10413
10418
|
instance.asyncDep = setupResult;
|
|
10414
|
-
if (process.env.NODE_ENV !== "production" && !instance.suspense) {
|
|
10419
|
+
if (!!(process.env.NODE_ENV !== "production") && !instance.suspense) {
|
|
10415
10420
|
const name = (_a = Component.name) != null ? _a : "Anonymous";
|
|
10416
10421
|
warn(
|
|
10417
10422
|
`Component <${name}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`
|
|
@@ -10433,19 +10438,19 @@ function handleSetupResult(instance, setupResult, isSSR) {
|
|
|
10433
10438
|
instance.render = setupResult;
|
|
10434
10439
|
}
|
|
10435
10440
|
} else if (isObject(setupResult)) {
|
|
10436
|
-
if (process.env.NODE_ENV !== "production" && isVNode(setupResult)) {
|
|
10441
|
+
if (!!(process.env.NODE_ENV !== "production") && isVNode(setupResult)) {
|
|
10437
10442
|
warn(
|
|
10438
10443
|
`setup() should not return VNodes directly - return a render function instead.`
|
|
10439
10444
|
);
|
|
10440
10445
|
}
|
|
10441
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
10446
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
10442
10447
|
instance.devtoolsRawSetupState = setupResult;
|
|
10443
10448
|
}
|
|
10444
10449
|
instance.setupState = proxyRefs(setupResult);
|
|
10445
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10450
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10446
10451
|
exposeSetupStateOnRenderContext(instance);
|
|
10447
10452
|
}
|
|
10448
|
-
} else if (process.env.NODE_ENV !== "production" && setupResult !== void 0) {
|
|
10453
|
+
} else if (!!(process.env.NODE_ENV !== "production") && setupResult !== void 0) {
|
|
10449
10454
|
warn(
|
|
10450
10455
|
`setup() should return an object. Received: ${setupResult === null ? "null" : typeof setupResult}`
|
|
10451
10456
|
);
|
|
@@ -10467,7 +10472,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
10467
10472
|
const Component = instance.type;
|
|
10468
10473
|
{
|
|
10469
10474
|
convertLegacyRenderFn(instance);
|
|
10470
|
-
if (process.env.NODE_ENV !== "production" && Component.compatConfig) {
|
|
10475
|
+
if (!!(process.env.NODE_ENV !== "production") && Component.compatConfig) {
|
|
10471
10476
|
validateCompatConfig(Component.compatConfig);
|
|
10472
10477
|
}
|
|
10473
10478
|
}
|
|
@@ -10475,7 +10480,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
10475
10480
|
if (!isSSR && compile$1 && !Component.render) {
|
|
10476
10481
|
const template = instance.vnode.props && instance.vnode.props["inline-template"] || Component.template || resolveMergedOptions(instance).template;
|
|
10477
10482
|
if (template) {
|
|
10478
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10483
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10479
10484
|
startMeasure(instance, `compile`);
|
|
10480
10485
|
}
|
|
10481
10486
|
const { isCustomElement, compilerOptions } = instance.appContext.config;
|
|
@@ -10497,7 +10502,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
10497
10502
|
}
|
|
10498
10503
|
}
|
|
10499
10504
|
Component.render = compile$1(template, finalCompilerOptions);
|
|
10500
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10505
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10501
10506
|
endMeasure(instance, `compile`);
|
|
10502
10507
|
}
|
|
10503
10508
|
}
|
|
@@ -10514,7 +10519,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
10514
10519
|
resetTracking();
|
|
10515
10520
|
unsetCurrentInstance();
|
|
10516
10521
|
}
|
|
10517
|
-
if (process.env.NODE_ENV !== "production" && !Component.render && instance.render === NOOP && !isSSR) {
|
|
10522
|
+
if (!!(process.env.NODE_ENV !== "production") && !Component.render && instance.render === NOOP && !isSSR) {
|
|
10518
10523
|
if (!compile$1 && Component.template) {
|
|
10519
10524
|
warn(
|
|
10520
10525
|
`Component provided template option but runtime compilation is not supported in this build of Vue.` + (` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".` )
|
|
@@ -10528,7 +10533,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
10528
10533
|
function getAttrsProxy(instance) {
|
|
10529
10534
|
return instance.attrsProxy || (instance.attrsProxy = new Proxy(
|
|
10530
10535
|
instance.attrs,
|
|
10531
|
-
process.env.NODE_ENV !== "production" ? {
|
|
10536
|
+
!!(process.env.NODE_ENV !== "production") ? {
|
|
10532
10537
|
get(target, key) {
|
|
10533
10538
|
markAttrsAccessed();
|
|
10534
10539
|
track(instance, "get", "$attrs");
|
|
@@ -10560,7 +10565,7 @@ function getSlotsProxy(instance) {
|
|
|
10560
10565
|
}
|
|
10561
10566
|
function createSetupContext(instance) {
|
|
10562
10567
|
const expose = (exposed) => {
|
|
10563
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10568
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10564
10569
|
if (instance.exposed) {
|
|
10565
10570
|
warn(`expose() should be called only once per setup().`);
|
|
10566
10571
|
}
|
|
@@ -10582,7 +10587,7 @@ function createSetupContext(instance) {
|
|
|
10582
10587
|
}
|
|
10583
10588
|
instance.exposed = exposed || {};
|
|
10584
10589
|
};
|
|
10585
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10590
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10586
10591
|
return Object.freeze({
|
|
10587
10592
|
get attrs() {
|
|
10588
10593
|
return getAttrsProxy(instance);
|
|
@@ -10683,7 +10688,7 @@ const useSSRContext = () => {
|
|
|
10683
10688
|
{
|
|
10684
10689
|
const ctx = inject(ssrContextKey);
|
|
10685
10690
|
if (!ctx) {
|
|
10686
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
10691
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
10687
10692
|
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
10688
10693
|
);
|
|
10689
10694
|
}
|
|
@@ -10692,7 +10697,7 @@ const useSSRContext = () => {
|
|
|
10692
10697
|
};
|
|
10693
10698
|
|
|
10694
10699
|
function initCustomFormatter() {
|
|
10695
|
-
if (
|
|
10700
|
+
if (!!!(process.env.NODE_ENV !== "production") || typeof window === "undefined") {
|
|
10696
10701
|
return;
|
|
10697
10702
|
}
|
|
10698
10703
|
const vueStyle = { style: "color:#3ba776" };
|
|
@@ -10892,7 +10897,7 @@ function isMemoSame(cached, memo) {
|
|
|
10892
10897
|
return true;
|
|
10893
10898
|
}
|
|
10894
10899
|
|
|
10895
|
-
const version = "3.3.
|
|
10900
|
+
const version = "3.3.4";
|
|
10896
10901
|
const _ssrUtils = {
|
|
10897
10902
|
createComponentInstance,
|
|
10898
10903
|
setupComponent,
|
|
@@ -11029,7 +11034,7 @@ function setStyle(style, name, val) {
|
|
|
11029
11034
|
} else {
|
|
11030
11035
|
if (val == null)
|
|
11031
11036
|
val = "";
|
|
11032
|
-
if (process.env.NODE_ENV !== "production") {
|
|
11037
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
11033
11038
|
if (semicolonRE.test(val)) {
|
|
11034
11039
|
warn(
|
|
11035
11040
|
`Unexpected semicolon at the end of '${name}' style value: '${val}'`
|
|
@@ -11159,7 +11164,7 @@ function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspe
|
|
|
11159
11164
|
)) {
|
|
11160
11165
|
const type = typeof el[key];
|
|
11161
11166
|
if (type === "string" || type === "number") {
|
|
11162
|
-
process.env.NODE_ENV !== "production" && compatUtils.warnDeprecation(
|
|
11167
|
+
!!(process.env.NODE_ENV !== "production") && compatUtils.warnDeprecation(
|
|
11163
11168
|
"ATTR_FALSE_VALUE",
|
|
11164
11169
|
parentComponent,
|
|
11165
11170
|
key
|
|
@@ -11172,7 +11177,7 @@ function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspe
|
|
|
11172
11177
|
try {
|
|
11173
11178
|
el[key] = value;
|
|
11174
11179
|
} catch (e) {
|
|
11175
|
-
if (process.env.NODE_ENV !== "production" && !needRemove) {
|
|
11180
|
+
if (!!(process.env.NODE_ENV !== "production") && !needRemove) {
|
|
11176
11181
|
warn(
|
|
11177
11182
|
`Failed setting prop "${key}" on <${tag.toLowerCase()}>: value ${value} is invalid.`,
|
|
11178
11183
|
e
|
|
@@ -11339,7 +11344,7 @@ class VueElement extends BaseClass {
|
|
|
11339
11344
|
if (this.shadowRoot && hydrate2) {
|
|
11340
11345
|
hydrate2(this._createVNode(), this.shadowRoot);
|
|
11341
11346
|
} else {
|
|
11342
|
-
if (process.env.NODE_ENV !== "production" && this.shadowRoot) {
|
|
11347
|
+
if (!!(process.env.NODE_ENV !== "production") && this.shadowRoot) {
|
|
11343
11348
|
warn(
|
|
11344
11349
|
`Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use \`defineSSRCustomElement\`.`
|
|
11345
11350
|
);
|
|
@@ -11472,7 +11477,7 @@ class VueElement extends BaseClass {
|
|
|
11472
11477
|
vnode.ce = (instance) => {
|
|
11473
11478
|
this._instance = instance;
|
|
11474
11479
|
instance.isCE = true;
|
|
11475
|
-
if (process.env.NODE_ENV !== "production") {
|
|
11480
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
11476
11481
|
instance.ceReload = (newStyles) => {
|
|
11477
11482
|
if (this._styles) {
|
|
11478
11483
|
this._styles.forEach((s) => this.shadowRoot.removeChild(s));
|
|
@@ -11514,7 +11519,7 @@ class VueElement extends BaseClass {
|
|
|
11514
11519
|
const s = document.createElement("style");
|
|
11515
11520
|
s.textContent = css;
|
|
11516
11521
|
this.shadowRoot.appendChild(s);
|
|
11517
|
-
if (process.env.NODE_ENV !== "production") {
|
|
11522
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
11518
11523
|
(this._styles || (this._styles = [])).push(s);
|
|
11519
11524
|
}
|
|
11520
11525
|
});
|
|
@@ -11526,17 +11531,17 @@ function useCssModule(name = "$style") {
|
|
|
11526
11531
|
{
|
|
11527
11532
|
const instance = getCurrentInstance();
|
|
11528
11533
|
if (!instance) {
|
|
11529
|
-
process.env.NODE_ENV !== "production" && warn(`useCssModule must be called inside setup()`);
|
|
11534
|
+
!!(process.env.NODE_ENV !== "production") && warn(`useCssModule must be called inside setup()`);
|
|
11530
11535
|
return EMPTY_OBJ;
|
|
11531
11536
|
}
|
|
11532
11537
|
const modules = instance.type.__cssModules;
|
|
11533
11538
|
if (!modules) {
|
|
11534
|
-
process.env.NODE_ENV !== "production" && warn(`Current instance does not have CSS modules injected.`);
|
|
11539
|
+
!!(process.env.NODE_ENV !== "production") && warn(`Current instance does not have CSS modules injected.`);
|
|
11535
11540
|
return EMPTY_OBJ;
|
|
11536
11541
|
}
|
|
11537
11542
|
const mod = modules[name];
|
|
11538
11543
|
if (!mod) {
|
|
11539
|
-
process.env.NODE_ENV !== "production" && warn(`Current instance does not have CSS module named "${name}".`);
|
|
11544
|
+
!!(process.env.NODE_ENV !== "production") && warn(`Current instance does not have CSS module named "${name}".`);
|
|
11540
11545
|
return EMPTY_OBJ;
|
|
11541
11546
|
}
|
|
11542
11547
|
return mod;
|
|
@@ -11546,7 +11551,7 @@ function useCssModule(name = "$style") {
|
|
|
11546
11551
|
function useCssVars(getter) {
|
|
11547
11552
|
const instance = getCurrentInstance();
|
|
11548
11553
|
if (!instance) {
|
|
11549
|
-
process.env.NODE_ENV !== "production" && warn(`useCssVars is called without current active component instance.`);
|
|
11554
|
+
!!(process.env.NODE_ENV !== "production") && warn(`useCssVars is called without current active component instance.`);
|
|
11550
11555
|
return;
|
|
11551
11556
|
}
|
|
11552
11557
|
const updateTeleports = instance.ut = (vars = getter(instance.proxy)) => {
|
|
@@ -11796,7 +11801,7 @@ function normalizeDuration(duration) {
|
|
|
11796
11801
|
}
|
|
11797
11802
|
function NumberOf(val) {
|
|
11798
11803
|
const res = toNumber(val);
|
|
11799
|
-
if (process.env.NODE_ENV !== "production") {
|
|
11804
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
11800
11805
|
assertNumber(res, "<transition> explicit duration");
|
|
11801
11806
|
}
|
|
11802
11807
|
return res;
|
|
@@ -11971,7 +11976,7 @@ const TransitionGroupImpl = {
|
|
|
11971
11976
|
child,
|
|
11972
11977
|
resolveTransitionHooks(child, cssTransitionProps, state, instance)
|
|
11973
11978
|
);
|
|
11974
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
11979
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
11975
11980
|
warn(`<TransitionGroup> children must be keyed.`);
|
|
11976
11981
|
}
|
|
11977
11982
|
}
|
|
@@ -12196,7 +12201,7 @@ const vModelSelect = {
|
|
|
12196
12201
|
function setSelected(el, value) {
|
|
12197
12202
|
const isMultiple = el.multiple;
|
|
12198
12203
|
if (isMultiple && !isArray(value) && !isSet(value)) {
|
|
12199
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
12204
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
12200
12205
|
`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(value).slice(8, -1)}.`
|
|
12201
12206
|
);
|
|
12202
12207
|
return;
|
|
@@ -12346,7 +12351,7 @@ const withKeys = (fn, modifiers) => {
|
|
|
12346
12351
|
globalKeyCodes = instance.appContext.config.keyCodes;
|
|
12347
12352
|
}
|
|
12348
12353
|
}
|
|
12349
|
-
if (process.env.NODE_ENV !== "production" && modifiers.some((m) => /^\d+$/.test(m))) {
|
|
12354
|
+
if (!!(process.env.NODE_ENV !== "production") && modifiers.some((m) => /^\d+$/.test(m))) {
|
|
12350
12355
|
compatUtils.warnDeprecation(
|
|
12351
12356
|
"V_ON_KEYCODE_MODIFIER",
|
|
12352
12357
|
instance
|
|
@@ -12449,7 +12454,7 @@ const hydrate = (...args) => {
|
|
|
12449
12454
|
};
|
|
12450
12455
|
const createApp = (...args) => {
|
|
12451
12456
|
const app = ensureRenderer().createApp(...args);
|
|
12452
|
-
if (process.env.NODE_ENV !== "production") {
|
|
12457
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
12453
12458
|
injectNativeTagCheck(app);
|
|
12454
12459
|
injectCompilerOptionsCheck(app);
|
|
12455
12460
|
}
|
|
@@ -12461,7 +12466,7 @@ const createApp = (...args) => {
|
|
|
12461
12466
|
const component = app._component;
|
|
12462
12467
|
if (!isFunction(component) && !component.render && !component.template) {
|
|
12463
12468
|
component.template = container.innerHTML;
|
|
12464
|
-
if (process.env.NODE_ENV !== "production") {
|
|
12469
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
12465
12470
|
for (let i = 0; i < container.attributes.length; i++) {
|
|
12466
12471
|
const attr = container.attributes[i];
|
|
12467
12472
|
if (attr.name !== "v-cloak" && /^(v-|:|@)/.test(attr.name)) {
|
|
@@ -12486,7 +12491,7 @@ const createApp = (...args) => {
|
|
|
12486
12491
|
};
|
|
12487
12492
|
const createSSRApp = (...args) => {
|
|
12488
12493
|
const app = ensureHydrationRenderer().createApp(...args);
|
|
12489
|
-
if (process.env.NODE_ENV !== "production") {
|
|
12494
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
12490
12495
|
injectNativeTagCheck(app);
|
|
12491
12496
|
injectCompilerOptionsCheck(app);
|
|
12492
12497
|
}
|
|
@@ -12537,14 +12542,14 @@ function injectCompilerOptionsCheck(app) {
|
|
|
12537
12542
|
function normalizeContainer(container) {
|
|
12538
12543
|
if (isString(container)) {
|
|
12539
12544
|
const res = document.querySelector(container);
|
|
12540
|
-
if (process.env.NODE_ENV !== "production" && !res) {
|
|
12545
|
+
if (!!(process.env.NODE_ENV !== "production") && !res) {
|
|
12541
12546
|
warn(
|
|
12542
12547
|
`Failed to mount app: mount target selector "${container}" returned null.`
|
|
12543
12548
|
);
|
|
12544
12549
|
}
|
|
12545
12550
|
return res;
|
|
12546
12551
|
}
|
|
12547
|
-
if (process.env.NODE_ENV !== "production" && window.ShadowRoot && container instanceof window.ShadowRoot && container.mode === "closed") {
|
|
12552
|
+
if (!!(process.env.NODE_ENV !== "production") && window.ShadowRoot && container instanceof window.ShadowRoot && container.mode === "closed") {
|
|
12548
12553
|
warn(
|
|
12549
12554
|
`mounting on a ShadowRoot with \`{mode: "closed"}\` may lead to unpredictable bugs`
|
|
12550
12555
|
);
|
|
@@ -12723,7 +12728,7 @@ function initDev() {
|
|
|
12723
12728
|
}
|
|
12724
12729
|
}
|
|
12725
12730
|
|
|
12726
|
-
if (process.env.NODE_ENV !== "production") {
|
|
12731
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
12727
12732
|
initDev();
|
|
12728
12733
|
}
|
|
12729
12734
|
function wrappedCreateApp(...args) {
|
|
@@ -12747,10 +12752,10 @@ function defaultOnError(error) {
|
|
|
12747
12752
|
throw error;
|
|
12748
12753
|
}
|
|
12749
12754
|
function defaultOnWarn(msg) {
|
|
12750
|
-
process.env.NODE_ENV !== "production" && console.warn(`[Vue warn] ${msg.message}`);
|
|
12755
|
+
!!(process.env.NODE_ENV !== "production") && console.warn(`[Vue warn] ${msg.message}`);
|
|
12751
12756
|
}
|
|
12752
12757
|
function createCompilerError(code, loc, messages, additionalMessage) {
|
|
12753
|
-
const msg = process.env.NODE_ENV !== "production" || false ? (messages || errorMessages)[code] + (additionalMessage || ``) : code;
|
|
12758
|
+
const msg = !!(process.env.NODE_ENV !== "production") || false ? (messages || errorMessages)[code] + (additionalMessage || ``) : code;
|
|
12754
12759
|
const error = new SyntaxError(String(msg));
|
|
12755
12760
|
error.code = code;
|
|
12756
12761
|
error.loc = loc;
|
|
@@ -12820,47 +12825,47 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
12820
12825
|
[53]: ``
|
|
12821
12826
|
};
|
|
12822
12827
|
|
|
12823
|
-
const FRAGMENT = Symbol(process.env.NODE_ENV !== "production" ? `Fragment` : ``);
|
|
12824
|
-
const TELEPORT = Symbol(process.env.NODE_ENV !== "production" ? `Teleport` : ``);
|
|
12825
|
-
const SUSPENSE = Symbol(process.env.NODE_ENV !== "production" ? `Suspense` : ``);
|
|
12826
|
-
const KEEP_ALIVE = Symbol(process.env.NODE_ENV !== "production" ? `KeepAlive` : ``);
|
|
12827
|
-
const BASE_TRANSITION = Symbol(process.env.NODE_ENV !== "production" ? `BaseTransition` : ``);
|
|
12828
|
-
const OPEN_BLOCK = Symbol(process.env.NODE_ENV !== "production" ? `openBlock` : ``);
|
|
12829
|
-
const CREATE_BLOCK = Symbol(process.env.NODE_ENV !== "production" ? `createBlock` : ``);
|
|
12830
|
-
const CREATE_ELEMENT_BLOCK = Symbol(process.env.NODE_ENV !== "production" ? `createElementBlock` : ``);
|
|
12831
|
-
const CREATE_VNODE = Symbol(process.env.NODE_ENV !== "production" ? `createVNode` : ``);
|
|
12832
|
-
const CREATE_ELEMENT_VNODE = Symbol(process.env.NODE_ENV !== "production" ? `createElementVNode` : ``);
|
|
12833
|
-
const CREATE_COMMENT = Symbol(process.env.NODE_ENV !== "production" ? `createCommentVNode` : ``);
|
|
12834
|
-
const CREATE_TEXT = Symbol(process.env.NODE_ENV !== "production" ? `createTextVNode` : ``);
|
|
12835
|
-
const CREATE_STATIC = Symbol(process.env.NODE_ENV !== "production" ? `createStaticVNode` : ``);
|
|
12836
|
-
const RESOLVE_COMPONENT = Symbol(process.env.NODE_ENV !== "production" ? `resolveComponent` : ``);
|
|
12828
|
+
const FRAGMENT = Symbol(!!(process.env.NODE_ENV !== "production") ? `Fragment` : ``);
|
|
12829
|
+
const TELEPORT = Symbol(!!(process.env.NODE_ENV !== "production") ? `Teleport` : ``);
|
|
12830
|
+
const SUSPENSE = Symbol(!!(process.env.NODE_ENV !== "production") ? `Suspense` : ``);
|
|
12831
|
+
const KEEP_ALIVE = Symbol(!!(process.env.NODE_ENV !== "production") ? `KeepAlive` : ``);
|
|
12832
|
+
const BASE_TRANSITION = Symbol(!!(process.env.NODE_ENV !== "production") ? `BaseTransition` : ``);
|
|
12833
|
+
const OPEN_BLOCK = Symbol(!!(process.env.NODE_ENV !== "production") ? `openBlock` : ``);
|
|
12834
|
+
const CREATE_BLOCK = Symbol(!!(process.env.NODE_ENV !== "production") ? `createBlock` : ``);
|
|
12835
|
+
const CREATE_ELEMENT_BLOCK = Symbol(!!(process.env.NODE_ENV !== "production") ? `createElementBlock` : ``);
|
|
12836
|
+
const CREATE_VNODE = Symbol(!!(process.env.NODE_ENV !== "production") ? `createVNode` : ``);
|
|
12837
|
+
const CREATE_ELEMENT_VNODE = Symbol(!!(process.env.NODE_ENV !== "production") ? `createElementVNode` : ``);
|
|
12838
|
+
const CREATE_COMMENT = Symbol(!!(process.env.NODE_ENV !== "production") ? `createCommentVNode` : ``);
|
|
12839
|
+
const CREATE_TEXT = Symbol(!!(process.env.NODE_ENV !== "production") ? `createTextVNode` : ``);
|
|
12840
|
+
const CREATE_STATIC = Symbol(!!(process.env.NODE_ENV !== "production") ? `createStaticVNode` : ``);
|
|
12841
|
+
const RESOLVE_COMPONENT = Symbol(!!(process.env.NODE_ENV !== "production") ? `resolveComponent` : ``);
|
|
12837
12842
|
const RESOLVE_DYNAMIC_COMPONENT = Symbol(
|
|
12838
|
-
process.env.NODE_ENV !== "production" ? `resolveDynamicComponent` : ``
|
|
12843
|
+
!!(process.env.NODE_ENV !== "production") ? `resolveDynamicComponent` : ``
|
|
12839
12844
|
);
|
|
12840
|
-
const RESOLVE_DIRECTIVE = Symbol(process.env.NODE_ENV !== "production" ? `resolveDirective` : ``);
|
|
12841
|
-
const RESOLVE_FILTER = Symbol(process.env.NODE_ENV !== "production" ? `resolveFilter` : ``);
|
|
12842
|
-
const WITH_DIRECTIVES = Symbol(process.env.NODE_ENV !== "production" ? `withDirectives` : ``);
|
|
12843
|
-
const RENDER_LIST = Symbol(process.env.NODE_ENV !== "production" ? `renderList` : ``);
|
|
12844
|
-
const RENDER_SLOT = Symbol(process.env.NODE_ENV !== "production" ? `renderSlot` : ``);
|
|
12845
|
-
const CREATE_SLOTS = Symbol(process.env.NODE_ENV !== "production" ? `createSlots` : ``);
|
|
12846
|
-
const TO_DISPLAY_STRING = Symbol(process.env.NODE_ENV !== "production" ? `toDisplayString` : ``);
|
|
12847
|
-
const MERGE_PROPS = Symbol(process.env.NODE_ENV !== "production" ? `mergeProps` : ``);
|
|
12848
|
-
const NORMALIZE_CLASS = Symbol(process.env.NODE_ENV !== "production" ? `normalizeClass` : ``);
|
|
12849
|
-
const NORMALIZE_STYLE = Symbol(process.env.NODE_ENV !== "production" ? `normalizeStyle` : ``);
|
|
12850
|
-
const NORMALIZE_PROPS = Symbol(process.env.NODE_ENV !== "production" ? `normalizeProps` : ``);
|
|
12851
|
-
const GUARD_REACTIVE_PROPS = Symbol(process.env.NODE_ENV !== "production" ? `guardReactiveProps` : ``);
|
|
12852
|
-
const TO_HANDLERS = Symbol(process.env.NODE_ENV !== "production" ? `toHandlers` : ``);
|
|
12853
|
-
const CAMELIZE = Symbol(process.env.NODE_ENV !== "production" ? `camelize` : ``);
|
|
12854
|
-
const CAPITALIZE = Symbol(process.env.NODE_ENV !== "production" ? `capitalize` : ``);
|
|
12855
|
-
const TO_HANDLER_KEY = Symbol(process.env.NODE_ENV !== "production" ? `toHandlerKey` : ``);
|
|
12856
|
-
const SET_BLOCK_TRACKING = Symbol(process.env.NODE_ENV !== "production" ? `setBlockTracking` : ``);
|
|
12857
|
-
const PUSH_SCOPE_ID = Symbol(process.env.NODE_ENV !== "production" ? `pushScopeId` : ``);
|
|
12858
|
-
const POP_SCOPE_ID = Symbol(process.env.NODE_ENV !== "production" ? `popScopeId` : ``);
|
|
12859
|
-
const WITH_CTX = Symbol(process.env.NODE_ENV !== "production" ? `withCtx` : ``);
|
|
12860
|
-
const UNREF = Symbol(process.env.NODE_ENV !== "production" ? `unref` : ``);
|
|
12861
|
-
const IS_REF = Symbol(process.env.NODE_ENV !== "production" ? `isRef` : ``);
|
|
12862
|
-
const WITH_MEMO = Symbol(process.env.NODE_ENV !== "production" ? `withMemo` : ``);
|
|
12863
|
-
const IS_MEMO_SAME = Symbol(process.env.NODE_ENV !== "production" ? `isMemoSame` : ``);
|
|
12845
|
+
const RESOLVE_DIRECTIVE = Symbol(!!(process.env.NODE_ENV !== "production") ? `resolveDirective` : ``);
|
|
12846
|
+
const RESOLVE_FILTER = Symbol(!!(process.env.NODE_ENV !== "production") ? `resolveFilter` : ``);
|
|
12847
|
+
const WITH_DIRECTIVES = Symbol(!!(process.env.NODE_ENV !== "production") ? `withDirectives` : ``);
|
|
12848
|
+
const RENDER_LIST = Symbol(!!(process.env.NODE_ENV !== "production") ? `renderList` : ``);
|
|
12849
|
+
const RENDER_SLOT = Symbol(!!(process.env.NODE_ENV !== "production") ? `renderSlot` : ``);
|
|
12850
|
+
const CREATE_SLOTS = Symbol(!!(process.env.NODE_ENV !== "production") ? `createSlots` : ``);
|
|
12851
|
+
const TO_DISPLAY_STRING = Symbol(!!(process.env.NODE_ENV !== "production") ? `toDisplayString` : ``);
|
|
12852
|
+
const MERGE_PROPS = Symbol(!!(process.env.NODE_ENV !== "production") ? `mergeProps` : ``);
|
|
12853
|
+
const NORMALIZE_CLASS = Symbol(!!(process.env.NODE_ENV !== "production") ? `normalizeClass` : ``);
|
|
12854
|
+
const NORMALIZE_STYLE = Symbol(!!(process.env.NODE_ENV !== "production") ? `normalizeStyle` : ``);
|
|
12855
|
+
const NORMALIZE_PROPS = Symbol(!!(process.env.NODE_ENV !== "production") ? `normalizeProps` : ``);
|
|
12856
|
+
const GUARD_REACTIVE_PROPS = Symbol(!!(process.env.NODE_ENV !== "production") ? `guardReactiveProps` : ``);
|
|
12857
|
+
const TO_HANDLERS = Symbol(!!(process.env.NODE_ENV !== "production") ? `toHandlers` : ``);
|
|
12858
|
+
const CAMELIZE = Symbol(!!(process.env.NODE_ENV !== "production") ? `camelize` : ``);
|
|
12859
|
+
const CAPITALIZE = Symbol(!!(process.env.NODE_ENV !== "production") ? `capitalize` : ``);
|
|
12860
|
+
const TO_HANDLER_KEY = Symbol(!!(process.env.NODE_ENV !== "production") ? `toHandlerKey` : ``);
|
|
12861
|
+
const SET_BLOCK_TRACKING = Symbol(!!(process.env.NODE_ENV !== "production") ? `setBlockTracking` : ``);
|
|
12862
|
+
const PUSH_SCOPE_ID = Symbol(!!(process.env.NODE_ENV !== "production") ? `pushScopeId` : ``);
|
|
12863
|
+
const POP_SCOPE_ID = Symbol(!!(process.env.NODE_ENV !== "production") ? `popScopeId` : ``);
|
|
12864
|
+
const WITH_CTX = Symbol(!!(process.env.NODE_ENV !== "production") ? `withCtx` : ``);
|
|
12865
|
+
const UNREF = Symbol(!!(process.env.NODE_ENV !== "production") ? `unref` : ``);
|
|
12866
|
+
const IS_REF = Symbol(!!(process.env.NODE_ENV !== "production") ? `isRef` : ``);
|
|
12867
|
+
const WITH_MEMO = Symbol(!!(process.env.NODE_ENV !== "production") ? `withMemo` : ``);
|
|
12868
|
+
const IS_MEMO_SAME = Symbol(!!(process.env.NODE_ENV !== "production") ? `isMemoSame` : ``);
|
|
12864
12869
|
const helperNameMap = {
|
|
12865
12870
|
[FRAGMENT]: `Fragment`,
|
|
12866
12871
|
[TELEPORT]: `Teleport`,
|
|
@@ -13365,7 +13370,7 @@ function isCompatEnabled(key, context) {
|
|
|
13365
13370
|
}
|
|
13366
13371
|
function checkCompatEnabled(key, context, loc, ...args) {
|
|
13367
13372
|
const enabled = isCompatEnabled(key, context);
|
|
13368
|
-
if (process.env.NODE_ENV !== "production" && enabled) {
|
|
13373
|
+
if (!!(process.env.NODE_ENV !== "production") && enabled) {
|
|
13369
13374
|
warnDeprecation(key, context, loc, ...args);
|
|
13370
13375
|
}
|
|
13371
13376
|
return enabled;
|
|
@@ -13403,7 +13408,7 @@ const defaultParserOptions = {
|
|
|
13403
13408
|
decodeEntities: (rawText) => rawText.replace(decodeRE, (_, p1) => decodeMap[p1]),
|
|
13404
13409
|
onError: defaultOnError,
|
|
13405
13410
|
onWarn: defaultOnWarn,
|
|
13406
|
-
comments: process.env.NODE_ENV !== "production"
|
|
13411
|
+
comments: !!(process.env.NODE_ENV !== "production")
|
|
13407
13412
|
};
|
|
13408
13413
|
function baseParse(content, options = {}) {
|
|
13409
13414
|
const context = createParserContext(content, options);
|
|
@@ -13487,7 +13492,7 @@ function parseChildren(context, mode, ancestors) {
|
|
|
13487
13492
|
) && node && node.tag === "template" && !node.props.some(
|
|
13488
13493
|
(p) => p.type === 7 && isSpecialTemplateDirective(p.name)
|
|
13489
13494
|
)) {
|
|
13490
|
-
process.env.NODE_ENV !== "production" && warnDeprecation(
|
|
13495
|
+
!!(process.env.NODE_ENV !== "production") && warnDeprecation(
|
|
13491
13496
|
"COMPILER_NATIVE_TEMPLATE",
|
|
13492
13497
|
context,
|
|
13493
13498
|
node.loc
|
|
@@ -13724,7 +13729,7 @@ function parseTag(context, type, parent) {
|
|
|
13724
13729
|
if (type === 1 /* End */) {
|
|
13725
13730
|
return;
|
|
13726
13731
|
}
|
|
13727
|
-
if (process.env.NODE_ENV !== "production" && isCompatEnabled(
|
|
13732
|
+
if (!!(process.env.NODE_ENV !== "production") && isCompatEnabled(
|
|
13728
13733
|
"COMPILER_V_IF_V_FOR_PRECEDENCE",
|
|
13729
13734
|
context
|
|
13730
13735
|
)) {
|
|
@@ -13942,7 +13947,7 @@ function parseAttribute(context, nameSet) {
|
|
|
13942
13947
|
dirName = "model";
|
|
13943
13948
|
modifiers.splice(modifiers.indexOf("sync"), 1);
|
|
13944
13949
|
}
|
|
13945
|
-
if (process.env.NODE_ENV !== "production" && modifiers.includes("prop")) {
|
|
13950
|
+
if (!!(process.env.NODE_ENV !== "production") && modifiers.includes("prop")) {
|
|
13946
13951
|
checkCompatEnabled(
|
|
13947
13952
|
"COMPILER_V_BIND_PROP",
|
|
13948
13953
|
context,
|
|
@@ -14185,7 +14190,7 @@ function walk(node, context, doNotHoistNode = false) {
|
|
|
14185
14190
|
const constantType = doNotHoistNode ? 0 : getConstantType(child, context);
|
|
14186
14191
|
if (constantType > 0) {
|
|
14187
14192
|
if (constantType >= 2) {
|
|
14188
|
-
child.codegenNode.patchFlag = -1 + (process.env.NODE_ENV !== "production" ? ` /* HOISTED */` : ``);
|
|
14193
|
+
child.codegenNode.patchFlag = -1 + (!!(process.env.NODE_ENV !== "production") ? ` /* HOISTED */` : ``);
|
|
14189
14194
|
child.codegenNode = context.hoist(child.codegenNode);
|
|
14190
14195
|
hoistedCount++;
|
|
14191
14196
|
continue;
|
|
@@ -14339,7 +14344,7 @@ function getConstantType(node, context) {
|
|
|
14339
14344
|
}
|
|
14340
14345
|
return returnType;
|
|
14341
14346
|
default:
|
|
14342
|
-
if (process.env.NODE_ENV !== "production") ;
|
|
14347
|
+
if (!!(process.env.NODE_ENV !== "production")) ;
|
|
14343
14348
|
return 0;
|
|
14344
14349
|
}
|
|
14345
14350
|
}
|
|
@@ -14492,7 +14497,7 @@ function createTransformContext(root, {
|
|
|
14492
14497
|
return `_${helperNameMap[context.helper(name)]}`;
|
|
14493
14498
|
},
|
|
14494
14499
|
replaceNode(node) {
|
|
14495
|
-
if (process.env.NODE_ENV !== "production") {
|
|
14500
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
14496
14501
|
if (!context.currentNode) {
|
|
14497
14502
|
throw new Error(`Node being replaced is already removed.`);
|
|
14498
14503
|
}
|
|
@@ -14503,12 +14508,12 @@ function createTransformContext(root, {
|
|
|
14503
14508
|
context.parent.children[context.childIndex] = context.currentNode = node;
|
|
14504
14509
|
},
|
|
14505
14510
|
removeNode(node) {
|
|
14506
|
-
if (process.env.NODE_ENV !== "production" && !context.parent) {
|
|
14511
|
+
if (!!(process.env.NODE_ENV !== "production") && !context.parent) {
|
|
14507
14512
|
throw new Error(`Cannot remove root node.`);
|
|
14508
14513
|
}
|
|
14509
14514
|
const list = context.parent.children;
|
|
14510
14515
|
const removalIndex = node ? list.indexOf(node) : context.currentNode ? context.childIndex : -1;
|
|
14511
|
-
if (process.env.NODE_ENV !== "production" && removalIndex < 0) {
|
|
14516
|
+
if (!!(process.env.NODE_ENV !== "production") && removalIndex < 0) {
|
|
14512
14517
|
throw new Error(`node being removed is not a child of current parent`);
|
|
14513
14518
|
}
|
|
14514
14519
|
if (!node || node === context.currentNode) {
|
|
@@ -14587,7 +14592,7 @@ function createRootCodegen(root, context) {
|
|
|
14587
14592
|
} else if (children.length > 1) {
|
|
14588
14593
|
let patchFlag = 64;
|
|
14589
14594
|
let patchFlagText = PatchFlagNames[64];
|
|
14590
|
-
if (process.env.NODE_ENV !== "production" && children.filter((c) => c.type !== 3).length === 1) {
|
|
14595
|
+
if (!!(process.env.NODE_ENV !== "production") && children.filter((c) => c.type !== 3).length === 1) {
|
|
14591
14596
|
patchFlag |= 2048;
|
|
14592
14597
|
patchFlagText += `, ${PatchFlagNames[2048]}`;
|
|
14593
14598
|
}
|
|
@@ -14596,7 +14601,7 @@ function createRootCodegen(root, context) {
|
|
|
14596
14601
|
helper(FRAGMENT),
|
|
14597
14602
|
void 0,
|
|
14598
14603
|
root.children,
|
|
14599
|
-
patchFlag + (process.env.NODE_ENV !== "production" ? ` /* ${patchFlagText} */` : ``),
|
|
14604
|
+
patchFlag + (!!(process.env.NODE_ENV !== "production") ? ` /* ${patchFlagText} */` : ``),
|
|
14600
14605
|
void 0,
|
|
14601
14606
|
void 0,
|
|
14602
14607
|
true,
|
|
@@ -14918,7 +14923,7 @@ function isText(n) {
|
|
|
14918
14923
|
return isString(n) || n.type === 4 || n.type === 2 || n.type === 5 || n.type === 8;
|
|
14919
14924
|
}
|
|
14920
14925
|
function genNodeListAsArray(nodes, context) {
|
|
14921
|
-
const multilines = nodes.length > 3 || process.env.NODE_ENV !== "production" && nodes.some((n) => isArray(n) || !isText(n));
|
|
14926
|
+
const multilines = nodes.length > 3 || !!(process.env.NODE_ENV !== "production") && nodes.some((n) => isArray(n) || !isText(n));
|
|
14922
14927
|
context.push(`[`);
|
|
14923
14928
|
multilines && context.indent();
|
|
14924
14929
|
genNodeList(nodes, context, multilines);
|
|
@@ -14959,7 +14964,7 @@ function genNode(node, context) {
|
|
|
14959
14964
|
case 1:
|
|
14960
14965
|
case 9:
|
|
14961
14966
|
case 11:
|
|
14962
|
-
process.env.NODE_ENV !== "production" && assert(
|
|
14967
|
+
!!(process.env.NODE_ENV !== "production") && assert(
|
|
14963
14968
|
node.codegenNode != null,
|
|
14964
14969
|
`Codegen node is missing for element/if/for node. Apply appropriate transforms first.`
|
|
14965
14970
|
);
|
|
@@ -15020,7 +15025,7 @@ function genNode(node, context) {
|
|
|
15020
15025
|
case 10:
|
|
15021
15026
|
break;
|
|
15022
15027
|
default:
|
|
15023
|
-
if (process.env.NODE_ENV !== "production") {
|
|
15028
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
15024
15029
|
assert(false, `unhandled codegen node type: ${node.type}`);
|
|
15025
15030
|
const exhaustiveCheck = node;
|
|
15026
15031
|
return exhaustiveCheck;
|
|
@@ -15135,7 +15140,7 @@ function genObjectExpression(node, context) {
|
|
|
15135
15140
|
push(`{}`, node);
|
|
15136
15141
|
return;
|
|
15137
15142
|
}
|
|
15138
|
-
const multilines = properties.length > 1 || process.env.NODE_ENV !== "production" && properties.some((p) => p.value.type !== 4);
|
|
15143
|
+
const multilines = properties.length > 1 || !!(process.env.NODE_ENV !== "production") && properties.some((p) => p.value.type !== 4);
|
|
15139
15144
|
push(multilines ? `{` : `{ `);
|
|
15140
15145
|
multilines && indent();
|
|
15141
15146
|
for (let i = 0; i < properties.length; i++) {
|
|
@@ -15309,7 +15314,7 @@ const transformExpression = (node, context) => {
|
|
|
15309
15314
|
};
|
|
15310
15315
|
function processExpression(node, context, asParams = false, asRawStatements = false, localVars = Object.create(context.identifiers)) {
|
|
15311
15316
|
{
|
|
15312
|
-
if (process.env.NODE_ENV !== "production") {
|
|
15317
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
15313
15318
|
validateBrowserExpression(node, context, asParams, asRawStatements);
|
|
15314
15319
|
}
|
|
15315
15320
|
return node;
|
|
@@ -15356,7 +15361,7 @@ function processIf(node, dir, context, processCodegen) {
|
|
|
15356
15361
|
);
|
|
15357
15362
|
dir.exp = createSimpleExpression(`true`, false, loc);
|
|
15358
15363
|
}
|
|
15359
|
-
if (process.env.NODE_ENV !== "production" && true && dir.exp) {
|
|
15364
|
+
if (!!(process.env.NODE_ENV !== "production") && true && dir.exp) {
|
|
15360
15365
|
validateBrowserExpression(dir.exp, context);
|
|
15361
15366
|
}
|
|
15362
15367
|
if (dir.name === "if") {
|
|
@@ -15377,7 +15382,8 @@ function processIf(node, dir, context, processCodegen) {
|
|
|
15377
15382
|
while (i-- >= -1) {
|
|
15378
15383
|
const sibling = siblings[i];
|
|
15379
15384
|
if (sibling && sibling.type === 3) {
|
|
15380
|
-
context.removeNode(sibling)
|
|
15385
|
+
context.removeNode(sibling);
|
|
15386
|
+
!!(process.env.NODE_ENV !== "production") && comments.unshift(sibling);
|
|
15381
15387
|
continue;
|
|
15382
15388
|
}
|
|
15383
15389
|
if (sibling && sibling.type === 2 && !sibling.content.trim().length) {
|
|
@@ -15392,11 +15398,11 @@ function processIf(node, dir, context, processCodegen) {
|
|
|
15392
15398
|
}
|
|
15393
15399
|
context.removeNode();
|
|
15394
15400
|
const branch = createIfBranch(node, dir);
|
|
15395
|
-
if (process.env.NODE_ENV !== "production" && comments.length && // #3619 ignore comments if the v-if is direct child of <transition>
|
|
15401
|
+
if (!!(process.env.NODE_ENV !== "production") && comments.length && // #3619 ignore comments if the v-if is direct child of <transition>
|
|
15396
15402
|
!(context.parent && context.parent.type === 1 && isBuiltInType(context.parent.tag, "transition"))) {
|
|
15397
15403
|
branch.children = [...comments, ...branch.children];
|
|
15398
15404
|
}
|
|
15399
|
-
if (process.env.NODE_ENV !== "production" || false) {
|
|
15405
|
+
if (!!(process.env.NODE_ENV !== "production") || false) {
|
|
15400
15406
|
const key = branch.userKey;
|
|
15401
15407
|
if (key) {
|
|
15402
15408
|
sibling.branches.forEach(({ userKey }) => {
|
|
@@ -15445,7 +15451,7 @@ function createCodegenNodeForBranch(branch, keyIndex, context) {
|
|
|
15445
15451
|
// make sure to pass in asBlock: true so that the comment node call
|
|
15446
15452
|
// closes the current block.
|
|
15447
15453
|
createCallExpression(context.helper(CREATE_COMMENT), [
|
|
15448
|
-
process.env.NODE_ENV !== "production" ? '"v-if"' : '""',
|
|
15454
|
+
!!(process.env.NODE_ENV !== "production") ? '"v-if"' : '""',
|
|
15449
15455
|
"true"
|
|
15450
15456
|
])
|
|
15451
15457
|
);
|
|
@@ -15475,7 +15481,7 @@ function createChildrenCodegenNode(branch, keyIndex, context) {
|
|
|
15475
15481
|
} else {
|
|
15476
15482
|
let patchFlag = 64;
|
|
15477
15483
|
let patchFlagText = PatchFlagNames[64];
|
|
15478
|
-
if (process.env.NODE_ENV !== "production" && !branch.isTemplateIf && children.filter((c) => c.type !== 3).length === 1) {
|
|
15484
|
+
if (!!(process.env.NODE_ENV !== "production") && !branch.isTemplateIf && children.filter((c) => c.type !== 3).length === 1) {
|
|
15479
15485
|
patchFlag |= 2048;
|
|
15480
15486
|
patchFlagText += `, ${PatchFlagNames[2048]}`;
|
|
15481
15487
|
}
|
|
@@ -15484,7 +15490,7 @@ function createChildrenCodegenNode(branch, keyIndex, context) {
|
|
|
15484
15490
|
helper(FRAGMENT),
|
|
15485
15491
|
createObjectExpression([keyProperty]),
|
|
15486
15492
|
children,
|
|
15487
|
-
patchFlag + (process.env.NODE_ENV !== "production" ? ` /* ${patchFlagText} */` : ``),
|
|
15493
|
+
patchFlag + (!!(process.env.NODE_ENV !== "production") ? ` /* ${patchFlagText} */` : ``),
|
|
15488
15494
|
void 0,
|
|
15489
15495
|
void 0,
|
|
15490
15496
|
true,
|
|
@@ -15557,7 +15563,7 @@ const transformFor = createStructuralDirectiveTransform(
|
|
|
15557
15563
|
helper(FRAGMENT),
|
|
15558
15564
|
void 0,
|
|
15559
15565
|
renderExp,
|
|
15560
|
-
fragmentFlag + (process.env.NODE_ENV !== "production" ? ` /* ${PatchFlagNames[fragmentFlag]} */` : ``),
|
|
15566
|
+
fragmentFlag + (!!(process.env.NODE_ENV !== "production") ? ` /* ${PatchFlagNames[fragmentFlag]} */` : ``),
|
|
15561
15567
|
void 0,
|
|
15562
15568
|
void 0,
|
|
15563
15569
|
true,
|
|
@@ -15568,7 +15574,7 @@ const transformFor = createStructuralDirectiveTransform(
|
|
|
15568
15574
|
return () => {
|
|
15569
15575
|
let childBlock;
|
|
15570
15576
|
const { children } = forNode;
|
|
15571
|
-
if ((process.env.NODE_ENV !== "production" || false) && isTemplate) {
|
|
15577
|
+
if ((!!(process.env.NODE_ENV !== "production") || false) && isTemplate) {
|
|
15572
15578
|
node.children.some((c) => {
|
|
15573
15579
|
if (c.type === 1) {
|
|
15574
15580
|
const key = findProp(c, "key");
|
|
@@ -15597,7 +15603,7 @@ const transformFor = createStructuralDirectiveTransform(
|
|
|
15597
15603
|
helper(FRAGMENT),
|
|
15598
15604
|
keyProperty ? createObjectExpression([keyProperty]) : void 0,
|
|
15599
15605
|
node.children,
|
|
15600
|
-
64 + (process.env.NODE_ENV !== "production" ? ` /* ${PatchFlagNames[64]} */` : ``),
|
|
15606
|
+
64 + (!!(process.env.NODE_ENV !== "production") ? ` /* ${PatchFlagNames[64]} */` : ``),
|
|
15601
15607
|
void 0,
|
|
15602
15608
|
void 0,
|
|
15603
15609
|
true,
|
|
@@ -15728,7 +15734,7 @@ function parseForExpression(input, context) {
|
|
|
15728
15734
|
key: void 0,
|
|
15729
15735
|
index: void 0
|
|
15730
15736
|
};
|
|
15731
|
-
if (process.env.NODE_ENV !== "production" && true) {
|
|
15737
|
+
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
15732
15738
|
validateBrowserExpression(result.source, context);
|
|
15733
15739
|
}
|
|
15734
15740
|
let valueContent = LHS.trim().replace(stripParensRE, "").trim();
|
|
@@ -15741,7 +15747,7 @@ function parseForExpression(input, context) {
|
|
|
15741
15747
|
if (keyContent) {
|
|
15742
15748
|
keyOffset = exp.indexOf(keyContent, trimmedOffset + valueContent.length);
|
|
15743
15749
|
result.key = createAliasExpression(loc, keyContent, keyOffset);
|
|
15744
|
-
if (process.env.NODE_ENV !== "production" && true) {
|
|
15750
|
+
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
15745
15751
|
validateBrowserExpression(
|
|
15746
15752
|
result.key,
|
|
15747
15753
|
context,
|
|
@@ -15760,7 +15766,7 @@ function parseForExpression(input, context) {
|
|
|
15760
15766
|
result.key ? keyOffset + keyContent.length : trimmedOffset + valueContent.length
|
|
15761
15767
|
)
|
|
15762
15768
|
);
|
|
15763
|
-
if (process.env.NODE_ENV !== "production" && true) {
|
|
15769
|
+
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
15764
15770
|
validateBrowserExpression(
|
|
15765
15771
|
result.index,
|
|
15766
15772
|
context,
|
|
@@ -15772,7 +15778,7 @@ function parseForExpression(input, context) {
|
|
|
15772
15778
|
}
|
|
15773
15779
|
if (valueContent) {
|
|
15774
15780
|
result.value = createAliasExpression(loc, valueContent, trimmedOffset);
|
|
15775
|
-
if (process.env.NODE_ENV !== "production" && true) {
|
|
15781
|
+
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
15776
15782
|
validateBrowserExpression(
|
|
15777
15783
|
result.value,
|
|
15778
15784
|
context,
|
|
@@ -15996,7 +16002,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
|
|
|
15996
16002
|
// 2 = compiled but dynamic = can skip normalization, but must run diff
|
|
15997
16003
|
// 1 = compiled and static = can skip normalization AND diff as optimized
|
|
15998
16004
|
createSimpleExpression(
|
|
15999
|
-
slotFlag + (process.env.NODE_ENV !== "production" ? ` /* ${slotFlagsText[slotFlag]} */` : ``),
|
|
16005
|
+
slotFlag + (!!(process.env.NODE_ENV !== "production") ? ` /* ${slotFlagsText[slotFlag]} */` : ``),
|
|
16000
16006
|
false
|
|
16001
16007
|
)
|
|
16002
16008
|
)
|
|
@@ -16103,7 +16109,7 @@ const transformElement = (node, context) => {
|
|
|
16103
16109
|
if (vnodeTag === KEEP_ALIVE) {
|
|
16104
16110
|
shouldUseBlock = true;
|
|
16105
16111
|
patchFlag |= 1024;
|
|
16106
|
-
if (process.env.NODE_ENV !== "production" && node.children.length > 1) {
|
|
16112
|
+
if (!!(process.env.NODE_ENV !== "production") && node.children.length > 1) {
|
|
16107
16113
|
context.onError(
|
|
16108
16114
|
createCompilerError(46, {
|
|
16109
16115
|
start: node.children[0].loc.start,
|
|
@@ -16139,7 +16145,7 @@ const transformElement = (node, context) => {
|
|
|
16139
16145
|
}
|
|
16140
16146
|
}
|
|
16141
16147
|
if (patchFlag !== 0) {
|
|
16142
|
-
if (process.env.NODE_ENV !== "production") {
|
|
16148
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
16143
16149
|
if (patchFlag < 0) {
|
|
16144
16150
|
vnodePatchFlag = patchFlag + ` /* ${PatchFlagNames[patchFlag]} */`;
|
|
16145
16151
|
} else {
|
|
@@ -16189,7 +16195,7 @@ function resolveComponentType(node, context, ssr = false) {
|
|
|
16189
16195
|
}
|
|
16190
16196
|
const isDir = !isExplicitDynamic && findDir(node, "is");
|
|
16191
16197
|
if (isDir && isDir.exp) {
|
|
16192
|
-
if (process.env.NODE_ENV !== "production") {
|
|
16198
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
16193
16199
|
context.onWarn(
|
|
16194
16200
|
createCompilerError(52, isDir.loc)
|
|
16195
16201
|
);
|
|
@@ -16348,7 +16354,7 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
|
|
16348
16354
|
if (isVBind) {
|
|
16349
16355
|
pushMergeArg();
|
|
16350
16356
|
{
|
|
16351
|
-
if (process.env.NODE_ENV !== "production") {
|
|
16357
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
16352
16358
|
const hasOverridableKeys = mergeArgs.some((arg2) => {
|
|
16353
16359
|
if (arg2.type === 15) {
|
|
16354
16360
|
return arg2.properties.some(({ key }) => {
|
|
@@ -16699,7 +16705,7 @@ const transformOn$1 = (dir, node, context, augmentor) => {
|
|
|
16699
16705
|
if (arg.type === 4) {
|
|
16700
16706
|
if (arg.isStatic) {
|
|
16701
16707
|
let rawName = arg.content;
|
|
16702
|
-
if (process.env.NODE_ENV !== "production" && rawName.startsWith("vnode")) {
|
|
16708
|
+
if (!!(process.env.NODE_ENV !== "production") && rawName.startsWith("vnode")) {
|
|
16703
16709
|
context.onWarn(
|
|
16704
16710
|
createCompilerError(51, arg.loc)
|
|
16705
16711
|
);
|
|
@@ -16738,7 +16744,7 @@ const transformOn$1 = (dir, node, context, augmentor) => {
|
|
|
16738
16744
|
const isMemberExp = isMemberExpression(exp.content);
|
|
16739
16745
|
const isInlineStatement = !(isMemberExp || fnExpRE.test(exp.content));
|
|
16740
16746
|
const hasMultipleStatements = exp.content.includes(`;`);
|
|
16741
|
-
if (process.env.NODE_ENV !== "production" && true) {
|
|
16747
|
+
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
16742
16748
|
validateBrowserExpression(
|
|
16743
16749
|
exp,
|
|
16744
16750
|
context,
|
|
@@ -16879,7 +16885,7 @@ const transformText = (node, context) => {
|
|
|
16879
16885
|
}
|
|
16880
16886
|
if (!context.ssr && getConstantType(child, context) === 0) {
|
|
16881
16887
|
callArgs.push(
|
|
16882
|
-
1 + (process.env.NODE_ENV !== "production" ? ` /* ${PatchFlagNames[1]} */` : ``)
|
|
16888
|
+
1 + (!!(process.env.NODE_ENV !== "production") ? ` /* ${PatchFlagNames[1]} */` : ``)
|
|
16883
16889
|
);
|
|
16884
16890
|
}
|
|
16885
16891
|
children[i] = {
|
|
@@ -17102,7 +17108,7 @@ function parseFilter(node, context) {
|
|
|
17102
17108
|
lastFilterIndex = i + 1;
|
|
17103
17109
|
}
|
|
17104
17110
|
if (filters.length) {
|
|
17105
|
-
process.env.NODE_ENV !== "production" && warnDeprecation(
|
|
17111
|
+
!!(process.env.NODE_ENV !== "production") && warnDeprecation(
|
|
17106
17112
|
"COMPILER_FILTER",
|
|
17107
17113
|
context,
|
|
17108
17114
|
node.loc
|
|
@@ -17160,7 +17166,7 @@ function getBaseTransformPreset(prefixIdentifiers) {
|
|
|
17160
17166
|
transformMemo,
|
|
17161
17167
|
transformFor,
|
|
17162
17168
|
...[transformFilter] ,
|
|
17163
|
-
|
|
17169
|
+
...!!(process.env.NODE_ENV !== "production") ? [transformExpression] : [],
|
|
17164
17170
|
transformSlotOutlet,
|
|
17165
17171
|
transformElement,
|
|
17166
17172
|
trackSlotScopes,
|
|
@@ -17219,16 +17225,16 @@ function baseCompile(template, options = {}) {
|
|
|
17219
17225
|
|
|
17220
17226
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
17221
17227
|
|
|
17222
|
-
const V_MODEL_RADIO = Symbol(process.env.NODE_ENV !== "production" ? `vModelRadio` : ``);
|
|
17223
|
-
const V_MODEL_CHECKBOX = Symbol(process.env.NODE_ENV !== "production" ? `vModelCheckbox` : ``);
|
|
17224
|
-
const V_MODEL_TEXT = Symbol(process.env.NODE_ENV !== "production" ? `vModelText` : ``);
|
|
17225
|
-
const V_MODEL_SELECT = Symbol(process.env.NODE_ENV !== "production" ? `vModelSelect` : ``);
|
|
17226
|
-
const V_MODEL_DYNAMIC = Symbol(process.env.NODE_ENV !== "production" ? `vModelDynamic` : ``);
|
|
17227
|
-
const V_ON_WITH_MODIFIERS = Symbol(process.env.NODE_ENV !== "production" ? `vOnModifiersGuard` : ``);
|
|
17228
|
-
const V_ON_WITH_KEYS = Symbol(process.env.NODE_ENV !== "production" ? `vOnKeysGuard` : ``);
|
|
17229
|
-
const V_SHOW = Symbol(process.env.NODE_ENV !== "production" ? `vShow` : ``);
|
|
17230
|
-
const TRANSITION = Symbol(process.env.NODE_ENV !== "production" ? `Transition` : ``);
|
|
17231
|
-
const TRANSITION_GROUP = Symbol(process.env.NODE_ENV !== "production" ? `TransitionGroup` : ``);
|
|
17228
|
+
const V_MODEL_RADIO = Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelRadio` : ``);
|
|
17229
|
+
const V_MODEL_CHECKBOX = Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelCheckbox` : ``);
|
|
17230
|
+
const V_MODEL_TEXT = Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelText` : ``);
|
|
17231
|
+
const V_MODEL_SELECT = Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelSelect` : ``);
|
|
17232
|
+
const V_MODEL_DYNAMIC = Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelDynamic` : ``);
|
|
17233
|
+
const V_ON_WITH_MODIFIERS = Symbol(!!(process.env.NODE_ENV !== "production") ? `vOnModifiersGuard` : ``);
|
|
17234
|
+
const V_ON_WITH_KEYS = Symbol(!!(process.env.NODE_ENV !== "production") ? `vOnKeysGuard` : ``);
|
|
17235
|
+
const V_SHOW = Symbol(!!(process.env.NODE_ENV !== "production") ? `vShow` : ``);
|
|
17236
|
+
const TRANSITION = Symbol(!!(process.env.NODE_ENV !== "production") ? `Transition` : ``);
|
|
17237
|
+
const TRANSITION_GROUP = Symbol(!!(process.env.NODE_ENV !== "production") ? `TransitionGroup` : ``);
|
|
17232
17238
|
registerRuntimeHelpers({
|
|
17233
17239
|
[V_MODEL_RADIO]: `vModelRadio`,
|
|
17234
17240
|
[V_MODEL_CHECKBOX]: `vModelCheckbox`,
|
|
@@ -17347,7 +17353,7 @@ function createDOMCompilerError(code, loc) {
|
|
|
17347
17353
|
return createCompilerError(
|
|
17348
17354
|
code,
|
|
17349
17355
|
loc,
|
|
17350
|
-
process.env.NODE_ENV !== "production" || false ? DOMErrorMessages : void 0
|
|
17356
|
+
!!(process.env.NODE_ENV !== "production") || false ? DOMErrorMessages : void 0
|
|
17351
17357
|
);
|
|
17352
17358
|
}
|
|
17353
17359
|
const DOMErrorMessages = {
|
|
@@ -17466,19 +17472,19 @@ const transformModel = (dir, node, context) => {
|
|
|
17466
17472
|
);
|
|
17467
17473
|
break;
|
|
17468
17474
|
default:
|
|
17469
|
-
process.env.NODE_ENV !== "production" && checkDuplicatedValue();
|
|
17475
|
+
!!(process.env.NODE_ENV !== "production") && checkDuplicatedValue();
|
|
17470
17476
|
break;
|
|
17471
17477
|
}
|
|
17472
17478
|
}
|
|
17473
17479
|
} else if (hasDynamicKeyVBind(node)) {
|
|
17474
17480
|
directiveToUse = V_MODEL_DYNAMIC;
|
|
17475
17481
|
} else {
|
|
17476
|
-
process.env.NODE_ENV !== "production" && checkDuplicatedValue();
|
|
17482
|
+
!!(process.env.NODE_ENV !== "production") && checkDuplicatedValue();
|
|
17477
17483
|
}
|
|
17478
17484
|
} else if (tag === "select") {
|
|
17479
17485
|
directiveToUse = V_MODEL_SELECT;
|
|
17480
17486
|
} else {
|
|
17481
|
-
process.env.NODE_ENV !== "production" && checkDuplicatedValue();
|
|
17487
|
+
!!(process.env.NODE_ENV !== "production") && checkDuplicatedValue();
|
|
17482
17488
|
}
|
|
17483
17489
|
if (!isInvalidType) {
|
|
17484
17490
|
baseResult.needRuntime = context.helper(directiveToUse);
|
|
@@ -17654,7 +17660,7 @@ function hasMultipleChildren(node) {
|
|
|
17654
17660
|
|
|
17655
17661
|
const ignoreSideEffectTags = (node, context) => {
|
|
17656
17662
|
if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
|
|
17657
|
-
process.env.NODE_ENV !== "production" && context.onError(
|
|
17663
|
+
!!(process.env.NODE_ENV !== "production") && context.onError(
|
|
17658
17664
|
createDOMCompilerError(
|
|
17659
17665
|
63,
|
|
17660
17666
|
node.loc
|
|
@@ -17666,7 +17672,7 @@ const ignoreSideEffectTags = (node, context) => {
|
|
|
17666
17672
|
|
|
17667
17673
|
const DOMNodeTransforms = [
|
|
17668
17674
|
transformStyle,
|
|
17669
|
-
|
|
17675
|
+
...!!(process.env.NODE_ENV !== "production") ? [transformTransition] : []
|
|
17670
17676
|
];
|
|
17671
17677
|
const DOMDirectiveTransforms = {
|
|
17672
17678
|
cloak: noopDirectiveTransform,
|
|
@@ -17706,7 +17712,7 @@ function compileToFunction(template, options) {
|
|
|
17706
17712
|
if (template.nodeType) {
|
|
17707
17713
|
template = template.innerHTML;
|
|
17708
17714
|
} else {
|
|
17709
|
-
process.env.NODE_ENV !== "production" && warn(`invalid template option: `, template);
|
|
17715
|
+
!!(process.env.NODE_ENV !== "production") && warn(`invalid template option: `, template);
|
|
17710
17716
|
return NOOP;
|
|
17711
17717
|
}
|
|
17712
17718
|
}
|
|
@@ -17717,12 +17723,12 @@ function compileToFunction(template, options) {
|
|
|
17717
17723
|
}
|
|
17718
17724
|
if (template[0] === "#") {
|
|
17719
17725
|
const el = document.querySelector(template);
|
|
17720
|
-
if (process.env.NODE_ENV !== "production" && !el) {
|
|
17726
|
+
if (!!(process.env.NODE_ENV !== "production") && !el) {
|
|
17721
17727
|
warn(`Template element not found or is empty: ${template}`);
|
|
17722
17728
|
}
|
|
17723
17729
|
template = el ? el.innerHTML : ``;
|
|
17724
17730
|
}
|
|
17725
|
-
if (process.env.NODE_ENV !== "production" && true && (!options || !options.whitespace)) {
|
|
17731
|
+
if (!!(process.env.NODE_ENV !== "production") && true && (!options || !options.whitespace)) {
|
|
17726
17732
|
warnDeprecation$1("CONFIG_WHITESPACE", null);
|
|
17727
17733
|
}
|
|
17728
17734
|
const { code } = compile(
|
|
@@ -17731,8 +17737,8 @@ function compileToFunction(template, options) {
|
|
|
17731
17737
|
{
|
|
17732
17738
|
hoistStatic: true,
|
|
17733
17739
|
whitespace: "preserve",
|
|
17734
|
-
onError: process.env.NODE_ENV !== "production" ? onError : void 0,
|
|
17735
|
-
onWarn: process.env.NODE_ENV !== "production" ? (e) => onError(e, true) : NOOP
|
|
17740
|
+
onError: !!(process.env.NODE_ENV !== "production") ? onError : void 0,
|
|
17741
|
+
onWarn: !!(process.env.NODE_ENV !== "production") ? (e) => onError(e, true) : NOOP
|
|
17736
17742
|
},
|
|
17737
17743
|
options
|
|
17738
17744
|
)
|