@vue/compat 3.3.2 → 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 +3 -3
- package/dist/vue.cjs.prod.js +3 -3
- package/dist/vue.esm-browser.js +3 -3
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.esm-bundler.js +387 -387
- package/dist/vue.global.js +3 -3
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +3 -3
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.esm-bundler.js +285 -285
- package/dist/vue.runtime.global.js +3 -3
- 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;
|
|
@@ -184,7 +184,7 @@ function normalizeStyle(value) {
|
|
|
184
184
|
}
|
|
185
185
|
const listDelimiterRE = /;(?![^(]*\))/g;
|
|
186
186
|
const propertyDelimiterRE = /:([^]+)/;
|
|
187
|
-
const styleCommentRE =
|
|
187
|
+
const styleCommentRE = /\/\*[^]*?\*\//g;
|
|
188
188
|
function parseStringStyle(cssText) {
|
|
189
189
|
const ret = {};
|
|
190
190
|
cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => {
|
|
@@ -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)) {
|
|
@@ -3705,7 +3705,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3705
3705
|
}
|
|
3706
3706
|
} else {
|
|
3707
3707
|
getter = NOOP;
|
|
3708
|
-
process.env.NODE_ENV !== "production" && warnInvalidSource(source);
|
|
3708
|
+
!!(process.env.NODE_ENV !== "production") && warnInvalidSource(source);
|
|
3709
3709
|
}
|
|
3710
3710
|
if (cb && !deep) {
|
|
3711
3711
|
const baseGetter = getter;
|
|
@@ -3784,7 +3784,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3784
3784
|
scheduler = () => queueJob(job);
|
|
3785
3785
|
}
|
|
3786
3786
|
const effect = new ReactiveEffect(getter, scheduler);
|
|
3787
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3787
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3788
3788
|
effect.onTrack = onTrack;
|
|
3789
3789
|
effect.onTrigger = onTrigger;
|
|
3790
3790
|
}
|
|
@@ -3877,7 +3877,7 @@ function validateDirectiveName(name) {
|
|
|
3877
3877
|
function withDirectives(vnode, directives) {
|
|
3878
3878
|
const internalInstance = currentRenderingInstance;
|
|
3879
3879
|
if (internalInstance === null) {
|
|
3880
|
-
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.`);
|
|
3881
3881
|
return vnode;
|
|
3882
3882
|
}
|
|
3883
3883
|
const instance = getExposeProxy(internalInstance) || internalInstance.proxy;
|
|
@@ -3984,7 +3984,7 @@ const BaseTransitionImpl = {
|
|
|
3984
3984
|
let hasFound = false;
|
|
3985
3985
|
for (const c of children) {
|
|
3986
3986
|
if (c.type !== Comment) {
|
|
3987
|
-
if (process.env.NODE_ENV !== "production" && hasFound) {
|
|
3987
|
+
if (!!(process.env.NODE_ENV !== "production") && hasFound) {
|
|
3988
3988
|
warn(
|
|
3989
3989
|
"<transition> can only be used on a single element or component. Use <transition-group> for lists."
|
|
3990
3990
|
);
|
|
@@ -3992,14 +3992,14 @@ const BaseTransitionImpl = {
|
|
|
3992
3992
|
}
|
|
3993
3993
|
child = c;
|
|
3994
3994
|
hasFound = true;
|
|
3995
|
-
if (
|
|
3995
|
+
if (!!!(process.env.NODE_ENV !== "production"))
|
|
3996
3996
|
break;
|
|
3997
3997
|
}
|
|
3998
3998
|
}
|
|
3999
3999
|
}
|
|
4000
4000
|
const rawProps = toRaw(props);
|
|
4001
4001
|
const { mode } = rawProps;
|
|
4002
|
-
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") {
|
|
4003
4003
|
warn(`invalid <transition> mode: ${mode}`);
|
|
4004
4004
|
}
|
|
4005
4005
|
if (state.isLeaving) {
|
|
@@ -4308,7 +4308,7 @@ function defineAsyncComponent(source) {
|
|
|
4308
4308
|
if (thisRequest !== pendingRequest && pendingRequest) {
|
|
4309
4309
|
return pendingRequest;
|
|
4310
4310
|
}
|
|
4311
|
-
if (process.env.NODE_ENV !== "production" && !comp) {
|
|
4311
|
+
if (!!(process.env.NODE_ENV !== "production") && !comp) {
|
|
4312
4312
|
warn(
|
|
4313
4313
|
`Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.`
|
|
4314
4314
|
);
|
|
@@ -4316,7 +4316,7 @@ function defineAsyncComponent(source) {
|
|
|
4316
4316
|
if (comp && (comp.__esModule || comp[Symbol.toStringTag] === "Module")) {
|
|
4317
4317
|
comp = comp.default;
|
|
4318
4318
|
}
|
|
4319
|
-
if (process.env.NODE_ENV !== "production" && comp && !isObject(comp) && !isFunction(comp)) {
|
|
4319
|
+
if (!!(process.env.NODE_ENV !== "production") && comp && !isObject(comp) && !isFunction(comp)) {
|
|
4320
4320
|
throw new Error(`Invalid async component load result: ${comp}`);
|
|
4321
4321
|
}
|
|
4322
4322
|
resolvedComp = comp;
|
|
@@ -4429,7 +4429,7 @@ const KeepAliveImpl = {
|
|
|
4429
4429
|
const cache = /* @__PURE__ */ new Map();
|
|
4430
4430
|
const keys = /* @__PURE__ */ new Set();
|
|
4431
4431
|
let current = null;
|
|
4432
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
4432
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
4433
4433
|
instance.__v_cache = cache;
|
|
4434
4434
|
}
|
|
4435
4435
|
const parentSuspense = instance.suspense;
|
|
@@ -4466,7 +4466,7 @@ const KeepAliveImpl = {
|
|
|
4466
4466
|
invokeVNodeHook(vnodeHook, instance2.parent, vnode);
|
|
4467
4467
|
}
|
|
4468
4468
|
}, parentSuspense);
|
|
4469
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
4469
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
4470
4470
|
devtoolsComponentAdded(instance2);
|
|
4471
4471
|
}
|
|
4472
4472
|
};
|
|
@@ -4483,7 +4483,7 @@ const KeepAliveImpl = {
|
|
|
4483
4483
|
}
|
|
4484
4484
|
instance2.isDeactivated = true;
|
|
4485
4485
|
}, parentSuspense);
|
|
4486
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
4486
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
4487
4487
|
devtoolsComponentAdded(instance2);
|
|
4488
4488
|
}
|
|
4489
4489
|
};
|
|
@@ -4547,7 +4547,7 @@ const KeepAliveImpl = {
|
|
|
4547
4547
|
const children = slots.default();
|
|
4548
4548
|
const rawVNode = children[0];
|
|
4549
4549
|
if (children.length > 1) {
|
|
4550
|
-
if (process.env.NODE_ENV !== "production") {
|
|
4550
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
4551
4551
|
warn(`KeepAlive should contain exactly one component child.`);
|
|
4552
4552
|
}
|
|
4553
4553
|
current = null;
|
|
@@ -4678,7 +4678,7 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
|
4678
4678
|
hooks.push(wrappedHook);
|
|
4679
4679
|
}
|
|
4680
4680
|
return wrappedHook;
|
|
4681
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
4681
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
4682
4682
|
const apiName = toHandlerKey(ErrorTypeStrings[type].replace(/ hook$/, ""));
|
|
4683
4683
|
warn(
|
|
4684
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.` )
|
|
@@ -4784,13 +4784,13 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
4784
4784
|
if (!res && maybeSelfReference) {
|
|
4785
4785
|
return Component;
|
|
4786
4786
|
}
|
|
4787
|
-
if (process.env.NODE_ENV !== "production" && warnMissing && !res) {
|
|
4787
|
+
if (!!(process.env.NODE_ENV !== "production") && warnMissing && !res) {
|
|
4788
4788
|
const extra = type === COMPONENTS ? `
|
|
4789
4789
|
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
|
|
4790
4790
|
warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
4791
4791
|
}
|
|
4792
4792
|
return res;
|
|
4793
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
4793
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
4794
4794
|
warn(
|
|
4795
4795
|
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
4796
4796
|
);
|
|
@@ -5060,7 +5060,7 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5060
5060
|
ret[i] = renderItem(source[i], i, void 0, cached && cached[i]);
|
|
5061
5061
|
}
|
|
5062
5062
|
} else if (typeof source === "number") {
|
|
5063
|
-
if (process.env.NODE_ENV !== "production" && !Number.isInteger(source)) {
|
|
5063
|
+
if (!!(process.env.NODE_ENV !== "production") && !Number.isInteger(source)) {
|
|
5064
5064
|
warn(`The v-for range expect an integer value but got ${source}.`);
|
|
5065
5065
|
}
|
|
5066
5066
|
ret = new Array(source);
|
|
@@ -5116,7 +5116,7 @@ function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
|
5116
5116
|
return createVNode("slot", props, fallback && fallback());
|
|
5117
5117
|
}
|
|
5118
5118
|
let slot = slots[name];
|
|
5119
|
-
if (process.env.NODE_ENV !== "production" && slot && slot.length > 1) {
|
|
5119
|
+
if (!!(process.env.NODE_ENV !== "production") && slot && slot.length > 1) {
|
|
5120
5120
|
warn(
|
|
5121
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.`
|
|
5122
5122
|
);
|
|
@@ -5159,7 +5159,7 @@ function ensureValidVNode(vnodes) {
|
|
|
5159
5159
|
|
|
5160
5160
|
function toHandlers(obj, preserveCaseIfNecessary) {
|
|
5161
5161
|
const ret = {};
|
|
5162
|
-
if (process.env.NODE_ENV !== "production" && !isObject(obj)) {
|
|
5162
|
+
if (!!(process.env.NODE_ENV !== "production") && !isObject(obj)) {
|
|
5163
5163
|
warn(`v-on with no argument expects an object value.`);
|
|
5164
5164
|
return ret;
|
|
5165
5165
|
}
|
|
@@ -5317,7 +5317,7 @@ function installCompatInstanceProperties(map) {
|
|
|
5317
5317
|
if (isCompatEnabled$1("RENDER_FUNCTION", i) && i.render && i.render._compatWrapped) {
|
|
5318
5318
|
return new Proxy(i.slots, legacySlotProxyHandlers);
|
|
5319
5319
|
}
|
|
5320
|
-
return process.env.NODE_ENV !== "production" ? shallowReadonly(i.slots) : i.slots;
|
|
5320
|
+
return !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.slots) : i.slots;
|
|
5321
5321
|
},
|
|
5322
5322
|
$scopedSlots: (i) => {
|
|
5323
5323
|
assertCompatEnabled("INSTANCE_SCOPED_SLOTS", i);
|
|
@@ -5392,10 +5392,10 @@ const publicPropertiesMap = (
|
|
|
5392
5392
|
$: (i) => i,
|
|
5393
5393
|
$el: (i) => i.vnode.el,
|
|
5394
5394
|
$data: (i) => i.data,
|
|
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,
|
|
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,
|
|
5399
5399
|
$parent: (i) => getPublicInstance(i.parent),
|
|
5400
5400
|
$root: (i) => getPublicInstance(i.root),
|
|
5401
5401
|
$emit: (i) => i.emit,
|
|
@@ -5413,7 +5413,7 @@ const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScript
|
|
|
5413
5413
|
const PublicInstanceProxyHandlers = {
|
|
5414
5414
|
get({ _: instance }, key) {
|
|
5415
5415
|
const { ctx, setupState, data, props, accessCache, type, appContext } = instance;
|
|
5416
|
-
if (process.env.NODE_ENV !== "production" && key === "__isVue") {
|
|
5416
|
+
if (!!(process.env.NODE_ENV !== "production") && key === "__isVue") {
|
|
5417
5417
|
return true;
|
|
5418
5418
|
}
|
|
5419
5419
|
let normalizedProps;
|
|
@@ -5455,8 +5455,8 @@ const PublicInstanceProxyHandlers = {
|
|
|
5455
5455
|
if (publicGetter) {
|
|
5456
5456
|
if (key === "$attrs") {
|
|
5457
5457
|
track(instance, "get", key);
|
|
5458
|
-
process.env.NODE_ENV !== "production" && markAttrsAccessed();
|
|
5459
|
-
} else if (process.env.NODE_ENV !== "production" && key === "$slots") {
|
|
5458
|
+
!!(process.env.NODE_ENV !== "production") && markAttrsAccessed();
|
|
5459
|
+
} else if (!!(process.env.NODE_ENV !== "production") && key === "$slots") {
|
|
5460
5460
|
track(instance, "get", key);
|
|
5461
5461
|
}
|
|
5462
5462
|
return publicGetter(instance);
|
|
@@ -5481,7 +5481,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
5481
5481
|
return isFunction(val) ? Object.assign(val.bind(instance.proxy), val) : val;
|
|
5482
5482
|
}
|
|
5483
5483
|
}
|
|
5484
|
-
} 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
|
|
5485
5485
|
// to infinite warning loop
|
|
5486
5486
|
key.indexOf("__v") !== 0)) {
|
|
5487
5487
|
if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) {
|
|
@@ -5502,23 +5502,23 @@ const PublicInstanceProxyHandlers = {
|
|
|
5502
5502
|
if (hasSetupBinding(setupState, key)) {
|
|
5503
5503
|
setupState[key] = value;
|
|
5504
5504
|
return true;
|
|
5505
|
-
} 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)) {
|
|
5506
5506
|
warn(`Cannot mutate <script setup> binding "${key}" from Options API.`);
|
|
5507
5507
|
return false;
|
|
5508
5508
|
} else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
|
|
5509
5509
|
data[key] = value;
|
|
5510
5510
|
return true;
|
|
5511
5511
|
} else if (hasOwn(instance.props, key)) {
|
|
5512
|
-
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.`);
|
|
5513
5513
|
return false;
|
|
5514
5514
|
}
|
|
5515
5515
|
if (key[0] === "$" && key.slice(1) in instance) {
|
|
5516
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
5516
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
5517
5517
|
`Attempting to mutate public property "${key}". Properties starting with $ are reserved and readonly.`
|
|
5518
5518
|
);
|
|
5519
5519
|
return false;
|
|
5520
5520
|
} else {
|
|
5521
|
-
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) {
|
|
5522
5522
|
Object.defineProperty(ctx, key, {
|
|
5523
5523
|
enumerable: true,
|
|
5524
5524
|
configurable: true,
|
|
@@ -5545,7 +5545,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
5545
5545
|
return Reflect.defineProperty(target, key, descriptor);
|
|
5546
5546
|
}
|
|
5547
5547
|
};
|
|
5548
|
-
if (process.env.NODE_ENV !== "production" && true) {
|
|
5548
|
+
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
5549
5549
|
PublicInstanceProxyHandlers.ownKeys = (target) => {
|
|
5550
5550
|
warn(
|
|
5551
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.`
|
|
@@ -5565,7 +5565,7 @@ const RuntimeCompiledPublicInstanceProxyHandlers = /* @__PURE__ */ extend(
|
|
|
5565
5565
|
},
|
|
5566
5566
|
has(_, key) {
|
|
5567
5567
|
const has = key[0] !== "_" && !isGloballyWhitelisted(key);
|
|
5568
|
-
if (process.env.NODE_ENV !== "production" && !has && PublicInstanceProxyHandlers.has(_, key)) {
|
|
5568
|
+
if (!!(process.env.NODE_ENV !== "production") && !has && PublicInstanceProxyHandlers.has(_, key)) {
|
|
5569
5569
|
warn(
|
|
5570
5570
|
`Property ${JSON.stringify(
|
|
5571
5571
|
key
|
|
@@ -5638,7 +5638,7 @@ function deepMergeData(to, from) {
|
|
|
5638
5638
|
const toVal = to[key];
|
|
5639
5639
|
const fromVal = from[key];
|
|
5640
5640
|
if (key in to && isPlainObject(toVal) && isPlainObject(fromVal)) {
|
|
5641
|
-
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);
|
|
5642
5642
|
deepMergeData(toVal, fromVal);
|
|
5643
5643
|
} else {
|
|
5644
5644
|
to[key] = fromVal;
|
|
@@ -5651,40 +5651,40 @@ const warnRuntimeUsage = (method) => warn(
|
|
|
5651
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.`
|
|
5652
5652
|
);
|
|
5653
5653
|
function defineProps() {
|
|
5654
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5654
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5655
5655
|
warnRuntimeUsage(`defineProps`);
|
|
5656
5656
|
}
|
|
5657
5657
|
return null;
|
|
5658
5658
|
}
|
|
5659
5659
|
function defineEmits() {
|
|
5660
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5660
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5661
5661
|
warnRuntimeUsage(`defineEmits`);
|
|
5662
5662
|
}
|
|
5663
5663
|
return null;
|
|
5664
5664
|
}
|
|
5665
5665
|
function defineExpose(exposed) {
|
|
5666
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5666
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5667
5667
|
warnRuntimeUsage(`defineExpose`);
|
|
5668
5668
|
}
|
|
5669
5669
|
}
|
|
5670
5670
|
function defineOptions(options) {
|
|
5671
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5671
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5672
5672
|
warnRuntimeUsage(`defineOptions`);
|
|
5673
5673
|
}
|
|
5674
5674
|
}
|
|
5675
5675
|
function defineSlots() {
|
|
5676
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5676
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5677
5677
|
warnRuntimeUsage(`defineSlots`);
|
|
5678
5678
|
}
|
|
5679
5679
|
return null;
|
|
5680
5680
|
}
|
|
5681
5681
|
function defineModel() {
|
|
5682
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5682
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5683
5683
|
warnRuntimeUsage("defineModel");
|
|
5684
5684
|
}
|
|
5685
5685
|
}
|
|
5686
5686
|
function withDefaults(props, defaults) {
|
|
5687
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5687
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5688
5688
|
warnRuntimeUsage(`withDefaults`);
|
|
5689
5689
|
}
|
|
5690
5690
|
return null;
|
|
@@ -5697,11 +5697,11 @@ function useAttrs() {
|
|
|
5697
5697
|
}
|
|
5698
5698
|
function useModel(props, name, options) {
|
|
5699
5699
|
const i = getCurrentInstance();
|
|
5700
|
-
if (process.env.NODE_ENV !== "production" && !i) {
|
|
5700
|
+
if (!!(process.env.NODE_ENV !== "production") && !i) {
|
|
5701
5701
|
warn(`useModel() called without active instance.`);
|
|
5702
5702
|
return ref();
|
|
5703
5703
|
}
|
|
5704
|
-
if (process.env.NODE_ENV !== "production" && !i.propsOptions[0][name]) {
|
|
5704
|
+
if (!!(process.env.NODE_ENV !== "production") && !i.propsOptions[0][name]) {
|
|
5705
5705
|
warn(`useModel() called with prop "${name}" which is not declared.`);
|
|
5706
5706
|
return ref();
|
|
5707
5707
|
}
|
|
@@ -5731,7 +5731,7 @@ function useModel(props, name, options) {
|
|
|
5731
5731
|
}
|
|
5732
5732
|
function getContext() {
|
|
5733
5733
|
const i = getCurrentInstance();
|
|
5734
|
-
if (process.env.NODE_ENV !== "production" && !i) {
|
|
5734
|
+
if (!!(process.env.NODE_ENV !== "production") && !i) {
|
|
5735
5735
|
warn(`useContext() called without active instance.`);
|
|
5736
5736
|
}
|
|
5737
5737
|
return i.setupContext || (i.setupContext = createSetupContext(i));
|
|
@@ -5756,7 +5756,7 @@ function mergeDefaults(raw, defaults) {
|
|
|
5756
5756
|
}
|
|
5757
5757
|
} else if (opt === null) {
|
|
5758
5758
|
opt = props[key] = { default: defaults[key] };
|
|
5759
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
5759
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
5760
5760
|
warn(`props default key "${key}" has no corresponding declaration.`);
|
|
5761
5761
|
}
|
|
5762
5762
|
if (opt && defaults[`__skip_${key}`]) {
|
|
@@ -5786,7 +5786,7 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
5786
5786
|
}
|
|
5787
5787
|
function withAsyncContext(getAwaitable) {
|
|
5788
5788
|
const ctx = getCurrentInstance();
|
|
5789
|
-
if (process.env.NODE_ENV !== "production" && !ctx) {
|
|
5789
|
+
if (!!(process.env.NODE_ENV !== "production") && !ctx) {
|
|
5790
5790
|
warn(
|
|
5791
5791
|
`withAsyncContext called without active current instance. This is likely a bug.`
|
|
5792
5792
|
);
|
|
@@ -5854,8 +5854,8 @@ function applyOptions(instance) {
|
|
|
5854
5854
|
directives,
|
|
5855
5855
|
filters
|
|
5856
5856
|
} = options;
|
|
5857
|
-
const checkDuplicateProperties = process.env.NODE_ENV !== "production" ? createDuplicateChecker() : null;
|
|
5858
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5857
|
+
const checkDuplicateProperties = !!(process.env.NODE_ENV !== "production") ? createDuplicateChecker() : null;
|
|
5858
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5859
5859
|
const [propsOptions] = instance.propsOptions;
|
|
5860
5860
|
if (propsOptions) {
|
|
5861
5861
|
for (const key in propsOptions) {
|
|
@@ -5870,7 +5870,7 @@ function applyOptions(instance) {
|
|
|
5870
5870
|
for (const key in methods) {
|
|
5871
5871
|
const methodHandler = methods[key];
|
|
5872
5872
|
if (isFunction(methodHandler)) {
|
|
5873
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5873
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5874
5874
|
Object.defineProperty(ctx, key, {
|
|
5875
5875
|
value: methodHandler.bind(publicThis),
|
|
5876
5876
|
configurable: true,
|
|
@@ -5880,10 +5880,10 @@ function applyOptions(instance) {
|
|
|
5880
5880
|
} else {
|
|
5881
5881
|
ctx[key] = methodHandler.bind(publicThis);
|
|
5882
5882
|
}
|
|
5883
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5883
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5884
5884
|
checkDuplicateProperties("Methods" /* METHODS */, key);
|
|
5885
5885
|
}
|
|
5886
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
5886
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
5887
5887
|
warn(
|
|
5888
5888
|
`Method "${key}" has type "${typeof methodHandler}" in the component definition. Did you reference the function correctly?`
|
|
5889
5889
|
);
|
|
@@ -5891,22 +5891,22 @@ function applyOptions(instance) {
|
|
|
5891
5891
|
}
|
|
5892
5892
|
}
|
|
5893
5893
|
if (dataOptions) {
|
|
5894
|
-
if (process.env.NODE_ENV !== "production" && !isFunction(dataOptions)) {
|
|
5894
|
+
if (!!(process.env.NODE_ENV !== "production") && !isFunction(dataOptions)) {
|
|
5895
5895
|
warn(
|
|
5896
5896
|
`The data option must be a function. Plain object usage is no longer supported.`
|
|
5897
5897
|
);
|
|
5898
5898
|
}
|
|
5899
5899
|
const data = dataOptions.call(publicThis, publicThis);
|
|
5900
|
-
if (process.env.NODE_ENV !== "production" && isPromise(data)) {
|
|
5900
|
+
if (!!(process.env.NODE_ENV !== "production") && isPromise(data)) {
|
|
5901
5901
|
warn(
|
|
5902
5902
|
`data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>.`
|
|
5903
5903
|
);
|
|
5904
5904
|
}
|
|
5905
5905
|
if (!isObject(data)) {
|
|
5906
|
-
process.env.NODE_ENV !== "production" && warn(`data() should return an object.`);
|
|
5906
|
+
!!(process.env.NODE_ENV !== "production") && warn(`data() should return an object.`);
|
|
5907
5907
|
} else {
|
|
5908
5908
|
instance.data = reactive(data);
|
|
5909
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5909
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5910
5910
|
for (const key in data) {
|
|
5911
5911
|
checkDuplicateProperties("Data" /* DATA */, key);
|
|
5912
5912
|
if (!isReservedPrefix(key[0])) {
|
|
@@ -5926,10 +5926,10 @@ function applyOptions(instance) {
|
|
|
5926
5926
|
for (const key in computedOptions) {
|
|
5927
5927
|
const opt = computedOptions[key];
|
|
5928
5928
|
const get = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP;
|
|
5929
|
-
if (process.env.NODE_ENV !== "production" && get === NOOP) {
|
|
5929
|
+
if (!!(process.env.NODE_ENV !== "production") && get === NOOP) {
|
|
5930
5930
|
warn(`Computed property "${key}" has no getter.`);
|
|
5931
5931
|
}
|
|
5932
|
-
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") ? () => {
|
|
5933
5933
|
warn(
|
|
5934
5934
|
`Write operation failed: computed property "${key}" is readonly.`
|
|
5935
5935
|
);
|
|
@@ -5944,7 +5944,7 @@ function applyOptions(instance) {
|
|
|
5944
5944
|
get: () => c.value,
|
|
5945
5945
|
set: (v) => c.value = v
|
|
5946
5946
|
});
|
|
5947
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5947
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5948
5948
|
checkDuplicateProperties("Computed" /* COMPUTED */, key);
|
|
5949
5949
|
}
|
|
5950
5950
|
}
|
|
@@ -6048,7 +6048,7 @@ function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP)
|
|
|
6048
6048
|
} else {
|
|
6049
6049
|
ctx[key] = injected;
|
|
6050
6050
|
}
|
|
6051
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6051
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6052
6052
|
checkDuplicateProperties("Inject" /* INJECT */, key);
|
|
6053
6053
|
}
|
|
6054
6054
|
}
|
|
@@ -6066,7 +6066,7 @@ function createWatcher(raw, ctx, publicThis, key) {
|
|
|
6066
6066
|
const handler = ctx[raw];
|
|
6067
6067
|
if (isFunction(handler)) {
|
|
6068
6068
|
watch(getter, handler);
|
|
6069
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6069
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6070
6070
|
warn(`Invalid watch handler specified by key "${raw}"`, handler);
|
|
6071
6071
|
}
|
|
6072
6072
|
} else if (isFunction(raw)) {
|
|
@@ -6078,11 +6078,11 @@ function createWatcher(raw, ctx, publicThis, key) {
|
|
|
6078
6078
|
const handler = isFunction(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler];
|
|
6079
6079
|
if (isFunction(handler)) {
|
|
6080
6080
|
watch(getter, handler, raw);
|
|
6081
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6081
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6082
6082
|
warn(`Invalid watch handler specified by key "${raw.handler}"`, handler);
|
|
6083
6083
|
}
|
|
6084
6084
|
}
|
|
6085
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6085
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6086
6086
|
warn(`Invalid watch option: "${key}"`, raw);
|
|
6087
6087
|
}
|
|
6088
6088
|
}
|
|
@@ -6135,7 +6135,7 @@ function mergeOptions(to, from, strats, asMixin = false) {
|
|
|
6135
6135
|
}
|
|
6136
6136
|
for (const key in from) {
|
|
6137
6137
|
if (asMixin && key === "expose") {
|
|
6138
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
6138
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
6139
6139
|
`"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.`
|
|
6140
6140
|
);
|
|
6141
6141
|
} else {
|
|
@@ -6303,7 +6303,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6303
6303
|
return vm;
|
|
6304
6304
|
}
|
|
6305
6305
|
}
|
|
6306
|
-
Vue.version = `2.6.14-compat:${"3.3.
|
|
6306
|
+
Vue.version = `2.6.14-compat:${"3.3.4"}`;
|
|
6307
6307
|
Vue.config = singletonApp.config;
|
|
6308
6308
|
Vue.use = (p, ...options) => {
|
|
6309
6309
|
if (p && isFunction(p.install)) {
|
|
@@ -6404,7 +6404,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6404
6404
|
}
|
|
6405
6405
|
};
|
|
6406
6406
|
const util = {
|
|
6407
|
-
warn: process.env.NODE_ENV !== "production" ? warn : NOOP,
|
|
6407
|
+
warn: !!(process.env.NODE_ENV !== "production") ? warn : NOOP,
|
|
6408
6408
|
extend,
|
|
6409
6409
|
mergeOptions: (parent, child, vm) => mergeOptions(
|
|
6410
6410
|
parent,
|
|
@@ -6431,7 +6431,7 @@ function installAppCompatProperties(app, context, render) {
|
|
|
6431
6431
|
installCompatMount(app, context, render);
|
|
6432
6432
|
installLegacyAPIs(app);
|
|
6433
6433
|
applySingletonAppMutations(app);
|
|
6434
|
-
if (process.env.NODE_ENV !== "production")
|
|
6434
|
+
if (!!(process.env.NODE_ENV !== "production"))
|
|
6435
6435
|
installLegacyConfigWarnings(app.config);
|
|
6436
6436
|
}
|
|
6437
6437
|
function installFilterMethod(app, context) {
|
|
@@ -6441,7 +6441,7 @@ function installFilterMethod(app, context) {
|
|
|
6441
6441
|
if (!filter) {
|
|
6442
6442
|
return context.filters[name];
|
|
6443
6443
|
}
|
|
6444
|
-
if (process.env.NODE_ENV !== "production" && context.filters[name]) {
|
|
6444
|
+
if (!!(process.env.NODE_ENV !== "production") && context.filters[name]) {
|
|
6445
6445
|
warn(`Filter "${name}" has already been registered.`);
|
|
6446
6446
|
}
|
|
6447
6447
|
context.filters[name] = filter;
|
|
@@ -6453,7 +6453,7 @@ function installLegacyAPIs(app) {
|
|
|
6453
6453
|
// so that app.use() can work with legacy plugins that extend prototypes
|
|
6454
6454
|
prototype: {
|
|
6455
6455
|
get() {
|
|
6456
|
-
process.env.NODE_ENV !== "production" && warnDeprecation$1("GLOBAL_PROTOTYPE", null);
|
|
6456
|
+
!!(process.env.NODE_ENV !== "production") && warnDeprecation$1("GLOBAL_PROTOTYPE", null);
|
|
6457
6457
|
return app.config.globalProperties;
|
|
6458
6458
|
}
|
|
6459
6459
|
},
|
|
@@ -6511,7 +6511,7 @@ function applySingletonPrototype(app, Ctor) {
|
|
|
6511
6511
|
}
|
|
6512
6512
|
}
|
|
6513
6513
|
}
|
|
6514
|
-
if (process.env.NODE_ENV !== "production" && hasPrototypeAugmentations) {
|
|
6514
|
+
if (!!(process.env.NODE_ENV !== "production") && hasPrototypeAugmentations) {
|
|
6515
6515
|
warnDeprecation$1("GLOBAL_PROTOTYPE", null);
|
|
6516
6516
|
}
|
|
6517
6517
|
}
|
|
@@ -6533,14 +6533,14 @@ function installCompatMount(app, context, render) {
|
|
|
6533
6533
|
vnode.isCompatRoot = true;
|
|
6534
6534
|
instance.ctx._compat_mount = (selectorOrEl) => {
|
|
6535
6535
|
if (isMounted) {
|
|
6536
|
-
process.env.NODE_ENV !== "production" && warn(`Root instance is already mounted.`);
|
|
6536
|
+
!!(process.env.NODE_ENV !== "production") && warn(`Root instance is already mounted.`);
|
|
6537
6537
|
return;
|
|
6538
6538
|
}
|
|
6539
6539
|
let container;
|
|
6540
6540
|
if (typeof selectorOrEl === "string") {
|
|
6541
6541
|
const result = document.querySelector(selectorOrEl);
|
|
6542
6542
|
if (!result) {
|
|
6543
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
6543
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
6544
6544
|
`Failed to mount root instance: selector "${selectorOrEl}" returned null.`
|
|
6545
6545
|
);
|
|
6546
6546
|
return;
|
|
@@ -6550,7 +6550,7 @@ function installCompatMount(app, context, render) {
|
|
|
6550
6550
|
container = selectorOrEl || document.createElement("div");
|
|
6551
6551
|
}
|
|
6552
6552
|
const isSVG = container instanceof SVGElement;
|
|
6553
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6553
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6554
6554
|
context.reload = () => {
|
|
6555
6555
|
const cloned = cloneVNode(vnode);
|
|
6556
6556
|
cloned.component = null;
|
|
@@ -6558,7 +6558,7 @@ function installCompatMount(app, context, render) {
|
|
|
6558
6558
|
};
|
|
6559
6559
|
}
|
|
6560
6560
|
if (hasNoRender && instance.render === emptyRender) {
|
|
6561
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6561
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6562
6562
|
for (let i = 0; i < container.attributes.length; i++) {
|
|
6563
6563
|
const attr = container.attributes[i];
|
|
6564
6564
|
if (attr.name !== "v-cloak" && /^(v-|:|@)/.test(attr.name)) {
|
|
@@ -6585,7 +6585,7 @@ function installCompatMount(app, context, render) {
|
|
|
6585
6585
|
isMounted = true;
|
|
6586
6586
|
app._container = container;
|
|
6587
6587
|
container.__vue_app__ = app;
|
|
6588
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
6588
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
6589
6589
|
devtoolsInitApp(app, version);
|
|
6590
6590
|
}
|
|
6591
6591
|
return instance.proxy;
|
|
@@ -6593,7 +6593,7 @@ function installCompatMount(app, context, render) {
|
|
|
6593
6593
|
instance.ctx._compat_destroy = () => {
|
|
6594
6594
|
if (isMounted) {
|
|
6595
6595
|
render(null, app._container);
|
|
6596
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
6596
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
6597
6597
|
devtoolsUnmountApp(app);
|
|
6598
6598
|
}
|
|
6599
6599
|
delete app._container.__vue_app__;
|
|
@@ -6701,11 +6701,11 @@ function createAppAPI(render, hydrate) {
|
|
|
6701
6701
|
rootComponent = extend({}, rootComponent);
|
|
6702
6702
|
}
|
|
6703
6703
|
if (rootProps != null && !isObject(rootProps)) {
|
|
6704
|
-
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.`);
|
|
6705
6705
|
rootProps = null;
|
|
6706
6706
|
}
|
|
6707
6707
|
const context = createAppContext();
|
|
6708
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6708
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6709
6709
|
Object.defineProperty(context.config, "unwrapInjectedRef", {
|
|
6710
6710
|
get() {
|
|
6711
6711
|
return true;
|
|
@@ -6731,7 +6731,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6731
6731
|
return context.config;
|
|
6732
6732
|
},
|
|
6733
6733
|
set config(v) {
|
|
6734
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6734
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6735
6735
|
warn(
|
|
6736
6736
|
`app.config cannot be replaced. Modify individual options instead.`
|
|
6737
6737
|
);
|
|
@@ -6739,14 +6739,14 @@ function createAppAPI(render, hydrate) {
|
|
|
6739
6739
|
},
|
|
6740
6740
|
use(plugin, ...options) {
|
|
6741
6741
|
if (installedPlugins.has(plugin)) {
|
|
6742
|
-
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.`);
|
|
6743
6743
|
} else if (plugin && isFunction(plugin.install)) {
|
|
6744
6744
|
installedPlugins.add(plugin);
|
|
6745
6745
|
plugin.install(app, ...options);
|
|
6746
6746
|
} else if (isFunction(plugin)) {
|
|
6747
6747
|
installedPlugins.add(plugin);
|
|
6748
6748
|
plugin(app, ...options);
|
|
6749
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6749
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6750
6750
|
warn(
|
|
6751
6751
|
`A plugin must either be a function or an object with an "install" function.`
|
|
6752
6752
|
);
|
|
@@ -6757,37 +6757,37 @@ function createAppAPI(render, hydrate) {
|
|
|
6757
6757
|
if (__VUE_OPTIONS_API__) {
|
|
6758
6758
|
if (!context.mixins.includes(mixin)) {
|
|
6759
6759
|
context.mixins.push(mixin);
|
|
6760
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6760
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6761
6761
|
warn(
|
|
6762
6762
|
"Mixin has already been applied to target app" + (mixin.name ? `: ${mixin.name}` : "")
|
|
6763
6763
|
);
|
|
6764
6764
|
}
|
|
6765
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6765
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6766
6766
|
warn("Mixins are only available in builds supporting Options API");
|
|
6767
6767
|
}
|
|
6768
6768
|
return app;
|
|
6769
6769
|
},
|
|
6770
6770
|
component(name, component) {
|
|
6771
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6771
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6772
6772
|
validateComponentName(name, context.config);
|
|
6773
6773
|
}
|
|
6774
6774
|
if (!component) {
|
|
6775
6775
|
return context.components[name];
|
|
6776
6776
|
}
|
|
6777
|
-
if (process.env.NODE_ENV !== "production" && context.components[name]) {
|
|
6777
|
+
if (!!(process.env.NODE_ENV !== "production") && context.components[name]) {
|
|
6778
6778
|
warn(`Component "${name}" has already been registered in target app.`);
|
|
6779
6779
|
}
|
|
6780
6780
|
context.components[name] = component;
|
|
6781
6781
|
return app;
|
|
6782
6782
|
},
|
|
6783
6783
|
directive(name, directive) {
|
|
6784
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6784
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6785
6785
|
validateDirectiveName(name);
|
|
6786
6786
|
}
|
|
6787
6787
|
if (!directive) {
|
|
6788
6788
|
return context.directives[name];
|
|
6789
6789
|
}
|
|
6790
|
-
if (process.env.NODE_ENV !== "production" && context.directives[name]) {
|
|
6790
|
+
if (!!(process.env.NODE_ENV !== "production") && context.directives[name]) {
|
|
6791
6791
|
warn(`Directive "${name}" has already been registered in target app.`);
|
|
6792
6792
|
}
|
|
6793
6793
|
context.directives[name] = directive;
|
|
@@ -6795,7 +6795,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6795
6795
|
},
|
|
6796
6796
|
mount(rootContainer, isHydrate, isSVG) {
|
|
6797
6797
|
if (!isMounted) {
|
|
6798
|
-
if (process.env.NODE_ENV !== "production" && rootContainer.__vue_app__) {
|
|
6798
|
+
if (!!(process.env.NODE_ENV !== "production") && rootContainer.__vue_app__) {
|
|
6799
6799
|
warn(
|
|
6800
6800
|
`There is already an app instance mounted on the host container.
|
|
6801
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.`
|
|
@@ -6806,7 +6806,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6806
6806
|
rootProps
|
|
6807
6807
|
);
|
|
6808
6808
|
vnode.appContext = context;
|
|
6809
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6809
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6810
6810
|
context.reload = () => {
|
|
6811
6811
|
render(cloneVNode(vnode), rootContainer, isSVG);
|
|
6812
6812
|
};
|
|
@@ -6819,12 +6819,12 @@ function createAppAPI(render, hydrate) {
|
|
|
6819
6819
|
isMounted = true;
|
|
6820
6820
|
app._container = rootContainer;
|
|
6821
6821
|
rootContainer.__vue_app__ = app;
|
|
6822
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
6822
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
6823
6823
|
app._instance = vnode.component;
|
|
6824
6824
|
devtoolsInitApp(app, version);
|
|
6825
6825
|
}
|
|
6826
6826
|
return getExposeProxy(vnode.component) || vnode.component.proxy;
|
|
6827
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6827
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6828
6828
|
warn(
|
|
6829
6829
|
`App has already been mounted.
|
|
6830
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)\``
|
|
@@ -6834,17 +6834,17 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6834
6834
|
unmount() {
|
|
6835
6835
|
if (isMounted) {
|
|
6836
6836
|
render(null, app._container);
|
|
6837
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
6837
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
6838
6838
|
app._instance = null;
|
|
6839
6839
|
devtoolsUnmountApp(app);
|
|
6840
6840
|
}
|
|
6841
6841
|
delete app._container.__vue_app__;
|
|
6842
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6842
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6843
6843
|
warn(`Cannot unmount an app that is not mounted.`);
|
|
6844
6844
|
}
|
|
6845
6845
|
},
|
|
6846
6846
|
provide(key, value) {
|
|
6847
|
-
if (process.env.NODE_ENV !== "production" && key in context.provides) {
|
|
6847
|
+
if (!!(process.env.NODE_ENV !== "production") && key in context.provides) {
|
|
6848
6848
|
warn(
|
|
6849
6849
|
`App already provides property with key "${String(key)}". It will be overwritten with the new value.`
|
|
6850
6850
|
);
|
|
@@ -6871,7 +6871,7 @@ let currentApp = null;
|
|
|
6871
6871
|
|
|
6872
6872
|
function provide(key, value) {
|
|
6873
6873
|
if (!currentInstance) {
|
|
6874
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6874
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6875
6875
|
warn(`provide() can only be used inside setup().`);
|
|
6876
6876
|
}
|
|
6877
6877
|
} else {
|
|
@@ -6891,10 +6891,10 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
6891
6891
|
return provides[key];
|
|
6892
6892
|
} else if (arguments.length > 1) {
|
|
6893
6893
|
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
6894
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6894
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6895
6895
|
warn(`injection "${String(key)}" not found.`);
|
|
6896
6896
|
}
|
|
6897
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
6897
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6898
6898
|
warn(`inject() can only be used inside setup() or functional components.`);
|
|
6899
6899
|
}
|
|
6900
6900
|
}
|
|
@@ -6907,7 +6907,7 @@ function createPropsDefaultThis(instance, rawProps, propKey) {
|
|
|
6907
6907
|
{},
|
|
6908
6908
|
{
|
|
6909
6909
|
get(_, key) {
|
|
6910
|
-
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);
|
|
6911
6911
|
if (key === "$options") {
|
|
6912
6912
|
return resolveMergedOptions(instance);
|
|
6913
6913
|
}
|
|
@@ -6956,7 +6956,7 @@ function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
|
6956
6956
|
props[key] = void 0;
|
|
6957
6957
|
}
|
|
6958
6958
|
}
|
|
6959
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6959
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6960
6960
|
validateProps(rawProps || {}, props, instance);
|
|
6961
6961
|
}
|
|
6962
6962
|
if (isStateful) {
|
|
@@ -6990,7 +6990,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
|
6990
6990
|
// always force full diff in dev
|
|
6991
6991
|
// - #1942 if hmr is enabled with sfc component
|
|
6992
6992
|
// - vite#872 non-sfc component used by sfc component
|
|
6993
|
-
!(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)
|
|
6994
6994
|
) {
|
|
6995
6995
|
if (patchFlag & 8) {
|
|
6996
6996
|
const propsToUpdate = instance.vnode.dynamicProps;
|
|
@@ -7074,7 +7074,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
|
7074
7074
|
if (hasAttrsChanged) {
|
|
7075
7075
|
trigger(instance, "set", "$attrs");
|
|
7076
7076
|
}
|
|
7077
|
-
if (process.env.NODE_ENV !== "production") {
|
|
7077
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
7078
7078
|
validateProps(rawProps || {}, props, instance);
|
|
7079
7079
|
}
|
|
7080
7080
|
}
|
|
@@ -7210,7 +7210,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
7210
7210
|
}
|
|
7211
7211
|
if (isArray(raw)) {
|
|
7212
7212
|
for (let i = 0; i < raw.length; i++) {
|
|
7213
|
-
if (process.env.NODE_ENV !== "production" && !isString(raw[i])) {
|
|
7213
|
+
if (!!(process.env.NODE_ENV !== "production") && !isString(raw[i])) {
|
|
7214
7214
|
warn(`props must be strings when using array syntax.`, raw[i]);
|
|
7215
7215
|
}
|
|
7216
7216
|
const normalizedKey = camelize(raw[i]);
|
|
@@ -7219,7 +7219,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
7219
7219
|
}
|
|
7220
7220
|
}
|
|
7221
7221
|
} else if (raw) {
|
|
7222
|
-
if (process.env.NODE_ENV !== "production" && !isObject(raw)) {
|
|
7222
|
+
if (!!(process.env.NODE_ENV !== "production") && !isObject(raw)) {
|
|
7223
7223
|
warn(`invalid props options`, raw);
|
|
7224
7224
|
}
|
|
7225
7225
|
for (const key in raw) {
|
|
@@ -7248,7 +7248,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
7248
7248
|
function validatePropName(key) {
|
|
7249
7249
|
if (key[0] !== "$") {
|
|
7250
7250
|
return true;
|
|
7251
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
7251
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7252
7252
|
warn(`Invalid prop name: "${key}" is a reserved property.`);
|
|
7253
7253
|
}
|
|
7254
7254
|
return false;
|
|
@@ -7375,7 +7375,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
|
|
|
7375
7375
|
return rawSlot;
|
|
7376
7376
|
}
|
|
7377
7377
|
const normalized = withCtx((...args) => {
|
|
7378
|
-
if (process.env.NODE_ENV !== "production" && currentInstance) {
|
|
7378
|
+
if (!!(process.env.NODE_ENV !== "production") && currentInstance) {
|
|
7379
7379
|
warn(
|
|
7380
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.`
|
|
7381
7381
|
);
|
|
@@ -7394,7 +7394,7 @@ const normalizeObjectSlots = (rawSlots, slots, instance) => {
|
|
|
7394
7394
|
if (isFunction(value)) {
|
|
7395
7395
|
slots[key] = normalizeSlot(key, value, ctx);
|
|
7396
7396
|
} else if (value != null) {
|
|
7397
|
-
if (process.env.NODE_ENV !== "production" && !isCompatEnabled$1("RENDER_FUNCTION", instance)) {
|
|
7397
|
+
if (!!(process.env.NODE_ENV !== "production") && !isCompatEnabled$1("RENDER_FUNCTION", instance)) {
|
|
7398
7398
|
warn(
|
|
7399
7399
|
`Non-function value encountered for slot "${key}". Prefer function slots for better performance.`
|
|
7400
7400
|
);
|
|
@@ -7405,7 +7405,7 @@ const normalizeObjectSlots = (rawSlots, slots, instance) => {
|
|
|
7405
7405
|
}
|
|
7406
7406
|
};
|
|
7407
7407
|
const normalizeVNodeSlots = (instance, children) => {
|
|
7408
|
-
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)) {
|
|
7409
7409
|
warn(
|
|
7410
7410
|
`Non-function value encountered for default slot. Prefer function slots for better performance.`
|
|
7411
7411
|
);
|
|
@@ -7441,7 +7441,7 @@ const updateSlots = (instance, children, optimized) => {
|
|
|
7441
7441
|
if (vnode.shapeFlag & 32) {
|
|
7442
7442
|
const type = children._;
|
|
7443
7443
|
if (type) {
|
|
7444
|
-
if (process.env.NODE_ENV !== "production" && isHmrUpdating) {
|
|
7444
|
+
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) {
|
|
7445
7445
|
extend(slots, children);
|
|
7446
7446
|
trigger(instance, "set", "$slots");
|
|
7447
7447
|
} else if (optimized && type === 1) {
|
|
@@ -7489,7 +7489,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7489
7489
|
const refValue = vnode.shapeFlag & 4 ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el;
|
|
7490
7490
|
const value = isUnmount ? null : refValue;
|
|
7491
7491
|
const { i: owner, r: ref } = rawRef;
|
|
7492
|
-
if (process.env.NODE_ENV !== "production" && !owner) {
|
|
7492
|
+
if (!!(process.env.NODE_ENV !== "production") && !owner) {
|
|
7493
7493
|
warn(
|
|
7494
7494
|
`Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.`
|
|
7495
7495
|
);
|
|
@@ -7544,7 +7544,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7544
7544
|
ref.value = value;
|
|
7545
7545
|
if (rawRef.k)
|
|
7546
7546
|
refs[rawRef.k] = value;
|
|
7547
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
7547
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7548
7548
|
warn("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7549
7549
|
}
|
|
7550
7550
|
};
|
|
@@ -7554,7 +7554,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7554
7554
|
} else {
|
|
7555
7555
|
doSet();
|
|
7556
7556
|
}
|
|
7557
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
7557
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7558
7558
|
warn("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7559
7559
|
}
|
|
7560
7560
|
}
|
|
@@ -7579,7 +7579,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7579
7579
|
} = rendererInternals;
|
|
7580
7580
|
const hydrate = (vnode, container) => {
|
|
7581
7581
|
if (!container.hasChildNodes()) {
|
|
7582
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
7582
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
7583
7583
|
`Attempting to hydrate existing markup but container is empty. Performing full mount instead.`
|
|
7584
7584
|
);
|
|
7585
7585
|
patch(null, vnode, container);
|
|
@@ -7625,7 +7625,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7625
7625
|
} else {
|
|
7626
7626
|
if (node.data !== vnode.children) {
|
|
7627
7627
|
hasMismatch = true;
|
|
7628
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
7628
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
7629
7629
|
`Hydration text mismatch:
|
|
7630
7630
|
- Client: ${JSON.stringify(node.data)}
|
|
7631
7631
|
- Server: ${JSON.stringify(vnode.children)}`
|
|
@@ -7745,7 +7745,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7745
7745
|
rendererInternals,
|
|
7746
7746
|
hydrateNode
|
|
7747
7747
|
);
|
|
7748
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
7748
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7749
7749
|
warn("Invalid HostVNode type:", type, `(${typeof type})`);
|
|
7750
7750
|
}
|
|
7751
7751
|
}
|
|
@@ -7758,7 +7758,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7758
7758
|
optimized = optimized || !!vnode.dynamicChildren;
|
|
7759
7759
|
const { type, props, patchFlag, shapeFlag, dirs } = vnode;
|
|
7760
7760
|
const forcePatchValue = type === "input" && dirs || type === "option";
|
|
7761
|
-
if (process.env.NODE_ENV !== "production" || forcePatchValue || patchFlag !== -1) {
|
|
7761
|
+
if (!!(process.env.NODE_ENV !== "production") || forcePatchValue || patchFlag !== -1) {
|
|
7762
7762
|
if (dirs) {
|
|
7763
7763
|
invokeDirectiveHook(vnode, null, parentComponent, "created");
|
|
7764
7764
|
}
|
|
@@ -7816,7 +7816,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7816
7816
|
let hasWarned = false;
|
|
7817
7817
|
while (next) {
|
|
7818
7818
|
hasMismatch = true;
|
|
7819
|
-
if (process.env.NODE_ENV !== "production" && !hasWarned) {
|
|
7819
|
+
if (!!(process.env.NODE_ENV !== "production") && !hasWarned) {
|
|
7820
7820
|
warn(
|
|
7821
7821
|
`Hydration children mismatch in <${vnode.type}>: server rendered element contains more child nodes than client vdom.`
|
|
7822
7822
|
);
|
|
@@ -7829,7 +7829,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7829
7829
|
} else if (shapeFlag & 8) {
|
|
7830
7830
|
if (el.textContent !== vnode.children) {
|
|
7831
7831
|
hasMismatch = true;
|
|
7832
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
7832
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
7833
7833
|
`Hydration text content mismatch in <${vnode.type}>:
|
|
7834
7834
|
- Client: ${el.textContent}
|
|
7835
7835
|
- Server: ${vnode.children}`
|
|
@@ -7860,7 +7860,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7860
7860
|
continue;
|
|
7861
7861
|
} else {
|
|
7862
7862
|
hasMismatch = true;
|
|
7863
|
-
if (process.env.NODE_ENV !== "production" && !hasWarned) {
|
|
7863
|
+
if (!!(process.env.NODE_ENV !== "production") && !hasWarned) {
|
|
7864
7864
|
warn(
|
|
7865
7865
|
`Hydration children mismatch in <${container.tagName.toLowerCase()}>: server rendered element contains fewer child nodes than client vdom.`
|
|
7866
7866
|
);
|
|
@@ -7905,7 +7905,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7905
7905
|
};
|
|
7906
7906
|
const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
|
|
7907
7907
|
hasMismatch = true;
|
|
7908
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
7908
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
7909
7909
|
`Hydration node mismatch:
|
|
7910
7910
|
- Client vnode:`,
|
|
7911
7911
|
vnode.type,
|
|
@@ -7968,7 +7968,7 @@ function startMeasure(instance, type) {
|
|
|
7968
7968
|
if (instance.appContext.config.performance && isSupported()) {
|
|
7969
7969
|
perf.mark(`vue-${type}-${instance.uid}`);
|
|
7970
7970
|
}
|
|
7971
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
7971
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
7972
7972
|
devtoolsPerfStart(instance, type, isSupported() ? perf.now() : Date.now());
|
|
7973
7973
|
}
|
|
7974
7974
|
}
|
|
@@ -7985,7 +7985,7 @@ function endMeasure(instance, type) {
|
|
|
7985
7985
|
perf.clearMarks(startTag);
|
|
7986
7986
|
perf.clearMarks(endTag);
|
|
7987
7987
|
}
|
|
7988
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
7988
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
7989
7989
|
devtoolsPerfEnd(instance, type, isSupported() ? perf.now() : Date.now());
|
|
7990
7990
|
}
|
|
7991
7991
|
}
|
|
@@ -8005,14 +8005,14 @@ function isSupported() {
|
|
|
8005
8005
|
function initFeatureFlags() {
|
|
8006
8006
|
const needWarn = [];
|
|
8007
8007
|
if (typeof __VUE_OPTIONS_API__ !== "boolean") {
|
|
8008
|
-
process.env.NODE_ENV !== "production" && needWarn.push(`__VUE_OPTIONS_API__`);
|
|
8008
|
+
!!(process.env.NODE_ENV !== "production") && needWarn.push(`__VUE_OPTIONS_API__`);
|
|
8009
8009
|
getGlobalThis().__VUE_OPTIONS_API__ = true;
|
|
8010
8010
|
}
|
|
8011
8011
|
if (typeof __VUE_PROD_DEVTOOLS__ !== "boolean") {
|
|
8012
|
-
process.env.NODE_ENV !== "production" && needWarn.push(`__VUE_PROD_DEVTOOLS__`);
|
|
8012
|
+
!!(process.env.NODE_ENV !== "production") && needWarn.push(`__VUE_PROD_DEVTOOLS__`);
|
|
8013
8013
|
getGlobalThis().__VUE_PROD_DEVTOOLS__ = false;
|
|
8014
8014
|
}
|
|
8015
|
-
if (process.env.NODE_ENV !== "production" && needWarn.length) {
|
|
8015
|
+
if (!!(process.env.NODE_ENV !== "production") && needWarn.length) {
|
|
8016
8016
|
const multi = needWarn.length > 1;
|
|
8017
8017
|
console.warn(
|
|
8018
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.
|
|
@@ -8035,7 +8035,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8035
8035
|
}
|
|
8036
8036
|
const target = getGlobalThis();
|
|
8037
8037
|
target.__VUE__ = true;
|
|
8038
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
8038
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
8039
8039
|
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
|
|
8040
8040
|
}
|
|
8041
8041
|
const {
|
|
@@ -8052,7 +8052,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8052
8052
|
setScopeId: hostSetScopeId = NOOP,
|
|
8053
8053
|
insertStaticContent: hostInsertStaticContent
|
|
8054
8054
|
} = options;
|
|
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) => {
|
|
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) => {
|
|
8056
8056
|
if (n1 === n2) {
|
|
8057
8057
|
return;
|
|
8058
8058
|
}
|
|
@@ -8076,7 +8076,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8076
8076
|
case Static:
|
|
8077
8077
|
if (n1 == null) {
|
|
8078
8078
|
mountStaticNode(n2, container, anchor, isSVG);
|
|
8079
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
8079
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
8080
8080
|
patchStaticNode(n1, n2, container, isSVG);
|
|
8081
8081
|
}
|
|
8082
8082
|
break;
|
|
@@ -8144,7 +8144,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8144
8144
|
optimized,
|
|
8145
8145
|
internals
|
|
8146
8146
|
);
|
|
8147
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
8147
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
8148
8148
|
warn("Invalid VNode type:", type, `(${typeof type})`);
|
|
8149
8149
|
}
|
|
8150
8150
|
}
|
|
@@ -8296,7 +8296,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8296
8296
|
invokeVNodeHook(vnodeHook, parentComponent, vnode);
|
|
8297
8297
|
}
|
|
8298
8298
|
}
|
|
8299
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
8299
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
8300
8300
|
Object.defineProperty(el, "__vnode", {
|
|
8301
8301
|
value: vnode,
|
|
8302
8302
|
enumerable: false
|
|
@@ -8333,7 +8333,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8333
8333
|
}
|
|
8334
8334
|
if (parentComponent) {
|
|
8335
8335
|
let subTree = parentComponent.subTree;
|
|
8336
|
-
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) {
|
|
8337
8337
|
subTree = filterSingleRoot(subTree.children) || subTree;
|
|
8338
8338
|
}
|
|
8339
8339
|
if (vnode === subTree) {
|
|
@@ -8379,7 +8379,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8379
8379
|
invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate");
|
|
8380
8380
|
}
|
|
8381
8381
|
parentComponent && toggleRecurse(parentComponent, true);
|
|
8382
|
-
if (process.env.NODE_ENV !== "production" && isHmrUpdating) {
|
|
8382
|
+
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) {
|
|
8383
8383
|
patchFlag = 0;
|
|
8384
8384
|
optimized = false;
|
|
8385
8385
|
dynamicChildren = null;
|
|
@@ -8395,7 +8395,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8395
8395
|
areChildrenSVG,
|
|
8396
8396
|
slotScopeIds
|
|
8397
8397
|
);
|
|
8398
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8398
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8399
8399
|
traverseStaticChildren(n1, n2);
|
|
8400
8400
|
}
|
|
8401
8401
|
} else if (!optimized) {
|
|
@@ -8554,7 +8554,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8554
8554
|
const fragmentStartAnchor = n2.el = n1 ? n1.el : hostCreateText("");
|
|
8555
8555
|
const fragmentEndAnchor = n2.anchor = n1 ? n1.anchor : hostCreateText("");
|
|
8556
8556
|
let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2;
|
|
8557
|
-
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
|
|
8558
8558
|
(isHmrUpdating || patchFlag & 2048)) {
|
|
8559
8559
|
patchFlag = 0;
|
|
8560
8560
|
optimized = false;
|
|
@@ -8589,7 +8589,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8589
8589
|
isSVG,
|
|
8590
8590
|
slotScopeIds
|
|
8591
8591
|
);
|
|
8592
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8592
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8593
8593
|
traverseStaticChildren(n1, n2);
|
|
8594
8594
|
} else if (
|
|
8595
8595
|
// #2080 if the stable fragment has a key, it's a <template v-for> that may
|
|
@@ -8653,10 +8653,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8653
8653
|
parentComponent,
|
|
8654
8654
|
parentSuspense
|
|
8655
8655
|
));
|
|
8656
|
-
if (process.env.NODE_ENV !== "production" && instance.type.__hmrId) {
|
|
8656
|
+
if (!!(process.env.NODE_ENV !== "production") && instance.type.__hmrId) {
|
|
8657
8657
|
registerHMR(instance);
|
|
8658
8658
|
}
|
|
8659
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8659
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8660
8660
|
pushWarningContext(initialVNode);
|
|
8661
8661
|
startMeasure(instance, `mount`);
|
|
8662
8662
|
}
|
|
@@ -8664,11 +8664,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8664
8664
|
instance.ctx.renderer = internals;
|
|
8665
8665
|
}
|
|
8666
8666
|
if (!compatMountInstance) {
|
|
8667
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8667
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8668
8668
|
startMeasure(instance, `init`);
|
|
8669
8669
|
}
|
|
8670
8670
|
setupComponent(instance);
|
|
8671
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8671
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8672
8672
|
endMeasure(instance, `init`);
|
|
8673
8673
|
}
|
|
8674
8674
|
}
|
|
@@ -8689,7 +8689,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8689
8689
|
isSVG,
|
|
8690
8690
|
optimized
|
|
8691
8691
|
);
|
|
8692
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8692
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8693
8693
|
popWarningContext();
|
|
8694
8694
|
endMeasure(instance, `mount`);
|
|
8695
8695
|
}
|
|
@@ -8698,11 +8698,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8698
8698
|
const instance = n2.component = n1.component;
|
|
8699
8699
|
if (shouldUpdateComponent(n1, n2, optimized)) {
|
|
8700
8700
|
if (instance.asyncDep && !instance.asyncResolved) {
|
|
8701
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8701
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8702
8702
|
pushWarningContext(n2);
|
|
8703
8703
|
}
|
|
8704
8704
|
updateComponentPreRender(instance, n2, optimized);
|
|
8705
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8705
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8706
8706
|
popWarningContext();
|
|
8707
8707
|
}
|
|
8708
8708
|
return;
|
|
@@ -8736,14 +8736,14 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8736
8736
|
toggleRecurse(instance, true);
|
|
8737
8737
|
if (el && hydrateNode) {
|
|
8738
8738
|
const hydrateSubTree = () => {
|
|
8739
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8739
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8740
8740
|
startMeasure(instance, `render`);
|
|
8741
8741
|
}
|
|
8742
8742
|
instance.subTree = renderComponentRoot(instance);
|
|
8743
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8743
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8744
8744
|
endMeasure(instance, `render`);
|
|
8745
8745
|
}
|
|
8746
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8746
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8747
8747
|
startMeasure(instance, `hydrate`);
|
|
8748
8748
|
}
|
|
8749
8749
|
hydrateNode(
|
|
@@ -8753,7 +8753,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8753
8753
|
parentSuspense,
|
|
8754
8754
|
null
|
|
8755
8755
|
);
|
|
8756
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8756
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8757
8757
|
endMeasure(instance, `hydrate`);
|
|
8758
8758
|
}
|
|
8759
8759
|
};
|
|
@@ -8769,14 +8769,14 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8769
8769
|
hydrateSubTree();
|
|
8770
8770
|
}
|
|
8771
8771
|
} else {
|
|
8772
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8772
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8773
8773
|
startMeasure(instance, `render`);
|
|
8774
8774
|
}
|
|
8775
8775
|
const subTree = instance.subTree = renderComponentRoot(instance);
|
|
8776
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8776
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8777
8777
|
endMeasure(instance, `render`);
|
|
8778
8778
|
}
|
|
8779
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8779
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8780
8780
|
startMeasure(instance, `patch`);
|
|
8781
8781
|
}
|
|
8782
8782
|
patch(
|
|
@@ -8788,7 +8788,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8788
8788
|
parentSuspense,
|
|
8789
8789
|
isSVG
|
|
8790
8790
|
);
|
|
8791
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8791
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8792
8792
|
endMeasure(instance, `patch`);
|
|
8793
8793
|
}
|
|
8794
8794
|
initialVNode.el = subTree.el;
|
|
@@ -8819,7 +8819,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8819
8819
|
}
|
|
8820
8820
|
}
|
|
8821
8821
|
instance.isMounted = true;
|
|
8822
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
8822
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
8823
8823
|
devtoolsComponentAdded(instance);
|
|
8824
8824
|
}
|
|
8825
8825
|
initialVNode = container = anchor = null;
|
|
@@ -8827,7 +8827,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8827
8827
|
let { next, bu, u, parent, vnode } = instance;
|
|
8828
8828
|
let originNext = next;
|
|
8829
8829
|
let vnodeHook;
|
|
8830
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8830
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8831
8831
|
pushWarningContext(next || instance.vnode);
|
|
8832
8832
|
}
|
|
8833
8833
|
toggleRecurse(instance, false);
|
|
@@ -8847,16 +8847,16 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8847
8847
|
instance.emit("hook:beforeUpdate");
|
|
8848
8848
|
}
|
|
8849
8849
|
toggleRecurse(instance, true);
|
|
8850
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8850
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8851
8851
|
startMeasure(instance, `render`);
|
|
8852
8852
|
}
|
|
8853
8853
|
const nextTree = renderComponentRoot(instance);
|
|
8854
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8854
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8855
8855
|
endMeasure(instance, `render`);
|
|
8856
8856
|
}
|
|
8857
8857
|
const prevTree = instance.subTree;
|
|
8858
8858
|
instance.subTree = nextTree;
|
|
8859
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8859
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8860
8860
|
startMeasure(instance, `patch`);
|
|
8861
8861
|
}
|
|
8862
8862
|
patch(
|
|
@@ -8870,7 +8870,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8870
8870
|
parentSuspense,
|
|
8871
8871
|
isSVG
|
|
8872
8872
|
);
|
|
8873
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8873
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8874
8874
|
endMeasure(instance, `patch`);
|
|
8875
8875
|
}
|
|
8876
8876
|
next.el = nextTree.el;
|
|
@@ -8892,10 +8892,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8892
8892
|
parentSuspense
|
|
8893
8893
|
);
|
|
8894
8894
|
}
|
|
8895
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
8895
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
8896
8896
|
devtoolsComponentUpdated(instance);
|
|
8897
8897
|
}
|
|
8898
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8898
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8899
8899
|
popWarningContext();
|
|
8900
8900
|
}
|
|
8901
8901
|
}
|
|
@@ -8909,7 +8909,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8909
8909
|
const update = instance.update = () => effect.run();
|
|
8910
8910
|
update.id = instance.uid;
|
|
8911
8911
|
toggleRecurse(instance, true);
|
|
8912
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8912
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8913
8913
|
effect.onTrack = instance.rtc ? (e) => invokeArrayFns(instance.rtc, e) : void 0;
|
|
8914
8914
|
effect.onTrigger = instance.rtg ? (e) => invokeArrayFns(instance.rtg, e) : void 0;
|
|
8915
8915
|
update.ownerInstance = instance;
|
|
@@ -9125,7 +9125,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9125
9125
|
for (i = s2; i <= e2; i++) {
|
|
9126
9126
|
const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]);
|
|
9127
9127
|
if (nextChild.key != null) {
|
|
9128
|
-
if (process.env.NODE_ENV !== "production" && keyToNewIndexMap.has(nextChild.key)) {
|
|
9128
|
+
if (!!(process.env.NODE_ENV !== "production") && keyToNewIndexMap.has(nextChild.key)) {
|
|
9129
9129
|
warn(
|
|
9130
9130
|
`Duplicate keys found during update:`,
|
|
9131
9131
|
JSON.stringify(nextChild.key),
|
|
@@ -9331,7 +9331,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9331
9331
|
const remove = (vnode) => {
|
|
9332
9332
|
const { type, el, anchor, transition } = vnode;
|
|
9333
9333
|
if (type === Fragment) {
|
|
9334
|
-
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) {
|
|
9335
9335
|
vnode.children.forEach((child) => {
|
|
9336
9336
|
if (child.type === Comment) {
|
|
9337
9337
|
hostRemove(child.el);
|
|
@@ -9376,7 +9376,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9376
9376
|
hostRemove(end);
|
|
9377
9377
|
};
|
|
9378
9378
|
const unmountComponent = (instance, parentSuspense, doRemove) => {
|
|
9379
|
-
if (process.env.NODE_ENV !== "production" && instance.type.__hmrId) {
|
|
9379
|
+
if (!!(process.env.NODE_ENV !== "production") && instance.type.__hmrId) {
|
|
9380
9380
|
unregisterHMR(instance);
|
|
9381
9381
|
}
|
|
9382
9382
|
const { bum, scope, update, subTree, um } = instance;
|
|
@@ -9409,7 +9409,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9409
9409
|
parentSuspense.resolve();
|
|
9410
9410
|
}
|
|
9411
9411
|
}
|
|
9412
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
9412
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
9413
9413
|
devtoolsComponentRemoved(instance);
|
|
9414
9414
|
}
|
|
9415
9415
|
};
|
|
@@ -9485,7 +9485,7 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
9485
9485
|
if (c2.type === Text) {
|
|
9486
9486
|
c2.el = c1.el;
|
|
9487
9487
|
}
|
|
9488
|
-
if (process.env.NODE_ENV !== "production" && c2.type === Comment && !c2.el) {
|
|
9488
|
+
if (!!(process.env.NODE_ENV !== "production") && c2.type === Comment && !c2.el) {
|
|
9489
9489
|
c2.el = c1.el;
|
|
9490
9490
|
}
|
|
9491
9491
|
}
|
|
@@ -9539,21 +9539,21 @@ const resolveTarget = (props, select) => {
|
|
|
9539
9539
|
const targetSelector = props && props.to;
|
|
9540
9540
|
if (isString(targetSelector)) {
|
|
9541
9541
|
if (!select) {
|
|
9542
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
9542
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
9543
9543
|
`Current renderer does not support string target for Teleports. (missing querySelector renderer option)`
|
|
9544
9544
|
);
|
|
9545
9545
|
return null;
|
|
9546
9546
|
} else {
|
|
9547
9547
|
const target = select(targetSelector);
|
|
9548
9548
|
if (!target) {
|
|
9549
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
9549
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
9550
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.`
|
|
9551
9551
|
);
|
|
9552
9552
|
}
|
|
9553
9553
|
return target;
|
|
9554
9554
|
}
|
|
9555
9555
|
} else {
|
|
9556
|
-
if (process.env.NODE_ENV !== "production" && !targetSelector && !isTeleportDisabled(props)) {
|
|
9556
|
+
if (!!(process.env.NODE_ENV !== "production") && !targetSelector && !isTeleportDisabled(props)) {
|
|
9557
9557
|
warn(`Invalid Teleport target: ${targetSelector}`);
|
|
9558
9558
|
}
|
|
9559
9559
|
return targetSelector;
|
|
@@ -9570,13 +9570,13 @@ const TeleportImpl = {
|
|
|
9570
9570
|
} = internals;
|
|
9571
9571
|
const disabled = isTeleportDisabled(n2.props);
|
|
9572
9572
|
let { shapeFlag, children, dynamicChildren } = n2;
|
|
9573
|
-
if (process.env.NODE_ENV !== "production" && isHmrUpdating) {
|
|
9573
|
+
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) {
|
|
9574
9574
|
optimized = false;
|
|
9575
9575
|
dynamicChildren = null;
|
|
9576
9576
|
}
|
|
9577
9577
|
if (n1 == null) {
|
|
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("");
|
|
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("");
|
|
9580
9580
|
insert(placeholder, container, anchor);
|
|
9581
9581
|
insert(mainAnchor, container, anchor);
|
|
9582
9582
|
const target = n2.target = resolveTarget(n2.props, querySelector);
|
|
@@ -9584,7 +9584,7 @@ const TeleportImpl = {
|
|
|
9584
9584
|
if (target) {
|
|
9585
9585
|
insert(targetAnchor, target);
|
|
9586
9586
|
isSVG = isSVG || isTargetSVG(target);
|
|
9587
|
-
} else if (process.env.NODE_ENV !== "production" && !disabled) {
|
|
9587
|
+
} else if (!!(process.env.NODE_ENV !== "production") && !disabled) {
|
|
9588
9588
|
warn("Invalid Teleport target on mount:", target, `(${typeof target})`);
|
|
9589
9589
|
}
|
|
9590
9590
|
const mount = (container2, anchor2) => {
|
|
@@ -9663,7 +9663,7 @@ const TeleportImpl = {
|
|
|
9663
9663
|
internals,
|
|
9664
9664
|
0
|
|
9665
9665
|
);
|
|
9666
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
9666
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
9667
9667
|
warn(
|
|
9668
9668
|
"Invalid Teleport target on update:",
|
|
9669
9669
|
target,
|
|
@@ -9900,7 +9900,7 @@ function isVNode(value) {
|
|
|
9900
9900
|
return value ? value.__v_isVNode === true : false;
|
|
9901
9901
|
}
|
|
9902
9902
|
function isSameVNodeType(n1, n2) {
|
|
9903
|
-
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)) {
|
|
9904
9904
|
n1.shapeFlag &= ~256;
|
|
9905
9905
|
n2.shapeFlag &= ~512;
|
|
9906
9906
|
return false;
|
|
@@ -9965,7 +9965,7 @@ function createBaseVNode(type, props = null, children = null, patchFlag = 0, dyn
|
|
|
9965
9965
|
} else if (children) {
|
|
9966
9966
|
vnode.shapeFlag |= isString(children) ? 8 : 16;
|
|
9967
9967
|
}
|
|
9968
|
-
if (process.env.NODE_ENV !== "production" && vnode.key !== vnode.key) {
|
|
9968
|
+
if (!!(process.env.NODE_ENV !== "production") && vnode.key !== vnode.key) {
|
|
9969
9969
|
warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
|
|
9970
9970
|
}
|
|
9971
9971
|
if (isBlockTreeEnabled > 0 && // avoid a block node from tracking itself
|
|
@@ -9985,10 +9985,10 @@ function createBaseVNode(type, props = null, children = null, patchFlag = 0, dyn
|
|
|
9985
9985
|
}
|
|
9986
9986
|
return vnode;
|
|
9987
9987
|
}
|
|
9988
|
-
const createVNode = process.env.NODE_ENV !== "production" ? createVNodeWithArgsTransform : _createVNode;
|
|
9988
|
+
const createVNode = !!(process.env.NODE_ENV !== "production") ? createVNodeWithArgsTransform : _createVNode;
|
|
9989
9989
|
function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
|
|
9990
9990
|
if (!type || type === NULL_DYNAMIC_COMPONENT) {
|
|
9991
|
-
if (process.env.NODE_ENV !== "production" && !type) {
|
|
9991
|
+
if (!!(process.env.NODE_ENV !== "production") && !type) {
|
|
9992
9992
|
warn(`Invalid vnode type when creating vnode: ${type}.`);
|
|
9993
9993
|
}
|
|
9994
9994
|
type = Comment;
|
|
@@ -10033,7 +10033,7 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
|
|
|
10033
10033
|
}
|
|
10034
10034
|
}
|
|
10035
10035
|
const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject(type) ? 4 : isFunction(type) ? 2 : 0;
|
|
10036
|
-
if (process.env.NODE_ENV !== "production" && shapeFlag & 4 && isProxy(type)) {
|
|
10036
|
+
if (!!(process.env.NODE_ENV !== "production") && shapeFlag & 4 && isProxy(type)) {
|
|
10037
10037
|
type = toRaw(type);
|
|
10038
10038
|
warn(
|
|
10039
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\`.`,
|
|
@@ -10075,7 +10075,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
10075
10075
|
) : ref,
|
|
10076
10076
|
scopeId: vnode.scopeId,
|
|
10077
10077
|
slotScopeIds: vnode.slotScopeIds,
|
|
10078
|
-
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,
|
|
10079
10079
|
target: vnode.target,
|
|
10080
10080
|
targetAnchor: vnode.targetAnchor,
|
|
10081
10081
|
staticCount: vnode.staticCount,
|
|
@@ -10302,7 +10302,7 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
10302
10302
|
ec: null,
|
|
10303
10303
|
sp: null
|
|
10304
10304
|
};
|
|
10305
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10305
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10306
10306
|
instance.ctx = createDevRenderContext(instance);
|
|
10307
10307
|
} else {
|
|
10308
10308
|
instance.ctx = { _: instance };
|
|
@@ -10366,7 +10366,7 @@ function setupComponent(instance, isSSR = false) {
|
|
|
10366
10366
|
function setupStatefulComponent(instance, isSSR) {
|
|
10367
10367
|
var _a;
|
|
10368
10368
|
const Component = instance.type;
|
|
10369
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10369
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10370
10370
|
if (Component.name) {
|
|
10371
10371
|
validateComponentName(Component.name, instance.appContext.config);
|
|
10372
10372
|
}
|
|
@@ -10390,7 +10390,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10390
10390
|
}
|
|
10391
10391
|
instance.accessCache = /* @__PURE__ */ Object.create(null);
|
|
10392
10392
|
instance.proxy = markRaw(new Proxy(instance.ctx, PublicInstanceProxyHandlers));
|
|
10393
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10393
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10394
10394
|
exposePropsOnRenderContext(instance);
|
|
10395
10395
|
}
|
|
10396
10396
|
const { setup } = Component;
|
|
@@ -10402,7 +10402,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10402
10402
|
setup,
|
|
10403
10403
|
instance,
|
|
10404
10404
|
0,
|
|
10405
|
-
[process.env.NODE_ENV !== "production" ? shallowReadonly(instance.props) : instance.props, setupContext]
|
|
10405
|
+
[!!(process.env.NODE_ENV !== "production") ? shallowReadonly(instance.props) : instance.props, setupContext]
|
|
10406
10406
|
);
|
|
10407
10407
|
resetTracking();
|
|
10408
10408
|
unsetCurrentInstance();
|
|
@@ -10416,7 +10416,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10416
10416
|
});
|
|
10417
10417
|
} else {
|
|
10418
10418
|
instance.asyncDep = setupResult;
|
|
10419
|
-
if (process.env.NODE_ENV !== "production" && !instance.suspense) {
|
|
10419
|
+
if (!!(process.env.NODE_ENV !== "production") && !instance.suspense) {
|
|
10420
10420
|
const name = (_a = Component.name) != null ? _a : "Anonymous";
|
|
10421
10421
|
warn(
|
|
10422
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.`
|
|
@@ -10438,19 +10438,19 @@ function handleSetupResult(instance, setupResult, isSSR) {
|
|
|
10438
10438
|
instance.render = setupResult;
|
|
10439
10439
|
}
|
|
10440
10440
|
} else if (isObject(setupResult)) {
|
|
10441
|
-
if (process.env.NODE_ENV !== "production" && isVNode(setupResult)) {
|
|
10441
|
+
if (!!(process.env.NODE_ENV !== "production") && isVNode(setupResult)) {
|
|
10442
10442
|
warn(
|
|
10443
10443
|
`setup() should not return VNodes directly - return a render function instead.`
|
|
10444
10444
|
);
|
|
10445
10445
|
}
|
|
10446
|
-
if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
10446
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
10447
10447
|
instance.devtoolsRawSetupState = setupResult;
|
|
10448
10448
|
}
|
|
10449
10449
|
instance.setupState = proxyRefs(setupResult);
|
|
10450
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10450
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10451
10451
|
exposeSetupStateOnRenderContext(instance);
|
|
10452
10452
|
}
|
|
10453
|
-
} else if (process.env.NODE_ENV !== "production" && setupResult !== void 0) {
|
|
10453
|
+
} else if (!!(process.env.NODE_ENV !== "production") && setupResult !== void 0) {
|
|
10454
10454
|
warn(
|
|
10455
10455
|
`setup() should return an object. Received: ${setupResult === null ? "null" : typeof setupResult}`
|
|
10456
10456
|
);
|
|
@@ -10472,7 +10472,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
10472
10472
|
const Component = instance.type;
|
|
10473
10473
|
{
|
|
10474
10474
|
convertLegacyRenderFn(instance);
|
|
10475
|
-
if (process.env.NODE_ENV !== "production" && Component.compatConfig) {
|
|
10475
|
+
if (!!(process.env.NODE_ENV !== "production") && Component.compatConfig) {
|
|
10476
10476
|
validateCompatConfig(Component.compatConfig);
|
|
10477
10477
|
}
|
|
10478
10478
|
}
|
|
@@ -10480,7 +10480,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
10480
10480
|
if (!isSSR && compile$1 && !Component.render) {
|
|
10481
10481
|
const template = instance.vnode.props && instance.vnode.props["inline-template"] || Component.template || resolveMergedOptions(instance).template;
|
|
10482
10482
|
if (template) {
|
|
10483
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10483
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10484
10484
|
startMeasure(instance, `compile`);
|
|
10485
10485
|
}
|
|
10486
10486
|
const { isCustomElement, compilerOptions } = instance.appContext.config;
|
|
@@ -10502,7 +10502,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
10502
10502
|
}
|
|
10503
10503
|
}
|
|
10504
10504
|
Component.render = compile$1(template, finalCompilerOptions);
|
|
10505
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10505
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10506
10506
|
endMeasure(instance, `compile`);
|
|
10507
10507
|
}
|
|
10508
10508
|
}
|
|
@@ -10519,7 +10519,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
10519
10519
|
resetTracking();
|
|
10520
10520
|
unsetCurrentInstance();
|
|
10521
10521
|
}
|
|
10522
|
-
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) {
|
|
10523
10523
|
if (!compile$1 && Component.template) {
|
|
10524
10524
|
warn(
|
|
10525
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".` )
|
|
@@ -10533,7 +10533,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
10533
10533
|
function getAttrsProxy(instance) {
|
|
10534
10534
|
return instance.attrsProxy || (instance.attrsProxy = new Proxy(
|
|
10535
10535
|
instance.attrs,
|
|
10536
|
-
process.env.NODE_ENV !== "production" ? {
|
|
10536
|
+
!!(process.env.NODE_ENV !== "production") ? {
|
|
10537
10537
|
get(target, key) {
|
|
10538
10538
|
markAttrsAccessed();
|
|
10539
10539
|
track(instance, "get", "$attrs");
|
|
@@ -10565,7 +10565,7 @@ function getSlotsProxy(instance) {
|
|
|
10565
10565
|
}
|
|
10566
10566
|
function createSetupContext(instance) {
|
|
10567
10567
|
const expose = (exposed) => {
|
|
10568
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10568
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10569
10569
|
if (instance.exposed) {
|
|
10570
10570
|
warn(`expose() should be called only once per setup().`);
|
|
10571
10571
|
}
|
|
@@ -10587,7 +10587,7 @@ function createSetupContext(instance) {
|
|
|
10587
10587
|
}
|
|
10588
10588
|
instance.exposed = exposed || {};
|
|
10589
10589
|
};
|
|
10590
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10590
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10591
10591
|
return Object.freeze({
|
|
10592
10592
|
get attrs() {
|
|
10593
10593
|
return getAttrsProxy(instance);
|
|
@@ -10688,7 +10688,7 @@ const useSSRContext = () => {
|
|
|
10688
10688
|
{
|
|
10689
10689
|
const ctx = inject(ssrContextKey);
|
|
10690
10690
|
if (!ctx) {
|
|
10691
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
10691
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
10692
10692
|
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
10693
10693
|
);
|
|
10694
10694
|
}
|
|
@@ -10697,7 +10697,7 @@ const useSSRContext = () => {
|
|
|
10697
10697
|
};
|
|
10698
10698
|
|
|
10699
10699
|
function initCustomFormatter() {
|
|
10700
|
-
if (
|
|
10700
|
+
if (!!!(process.env.NODE_ENV !== "production") || typeof window === "undefined") {
|
|
10701
10701
|
return;
|
|
10702
10702
|
}
|
|
10703
10703
|
const vueStyle = { style: "color:#3ba776" };
|
|
@@ -10897,7 +10897,7 @@ function isMemoSame(cached, memo) {
|
|
|
10897
10897
|
return true;
|
|
10898
10898
|
}
|
|
10899
10899
|
|
|
10900
|
-
const version = "3.3.
|
|
10900
|
+
const version = "3.3.4";
|
|
10901
10901
|
const _ssrUtils = {
|
|
10902
10902
|
createComponentInstance,
|
|
10903
10903
|
setupComponent,
|
|
@@ -11034,7 +11034,7 @@ function setStyle(style, name, val) {
|
|
|
11034
11034
|
} else {
|
|
11035
11035
|
if (val == null)
|
|
11036
11036
|
val = "";
|
|
11037
|
-
if (process.env.NODE_ENV !== "production") {
|
|
11037
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
11038
11038
|
if (semicolonRE.test(val)) {
|
|
11039
11039
|
warn(
|
|
11040
11040
|
`Unexpected semicolon at the end of '${name}' style value: '${val}'`
|
|
@@ -11164,7 +11164,7 @@ function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspe
|
|
|
11164
11164
|
)) {
|
|
11165
11165
|
const type = typeof el[key];
|
|
11166
11166
|
if (type === "string" || type === "number") {
|
|
11167
|
-
process.env.NODE_ENV !== "production" && compatUtils.warnDeprecation(
|
|
11167
|
+
!!(process.env.NODE_ENV !== "production") && compatUtils.warnDeprecation(
|
|
11168
11168
|
"ATTR_FALSE_VALUE",
|
|
11169
11169
|
parentComponent,
|
|
11170
11170
|
key
|
|
@@ -11177,7 +11177,7 @@ function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspe
|
|
|
11177
11177
|
try {
|
|
11178
11178
|
el[key] = value;
|
|
11179
11179
|
} catch (e) {
|
|
11180
|
-
if (process.env.NODE_ENV !== "production" && !needRemove) {
|
|
11180
|
+
if (!!(process.env.NODE_ENV !== "production") && !needRemove) {
|
|
11181
11181
|
warn(
|
|
11182
11182
|
`Failed setting prop "${key}" on <${tag.toLowerCase()}>: value ${value} is invalid.`,
|
|
11183
11183
|
e
|
|
@@ -11344,7 +11344,7 @@ class VueElement extends BaseClass {
|
|
|
11344
11344
|
if (this.shadowRoot && hydrate2) {
|
|
11345
11345
|
hydrate2(this._createVNode(), this.shadowRoot);
|
|
11346
11346
|
} else {
|
|
11347
|
-
if (process.env.NODE_ENV !== "production" && this.shadowRoot) {
|
|
11347
|
+
if (!!(process.env.NODE_ENV !== "production") && this.shadowRoot) {
|
|
11348
11348
|
warn(
|
|
11349
11349
|
`Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use \`defineSSRCustomElement\`.`
|
|
11350
11350
|
);
|
|
@@ -11477,7 +11477,7 @@ class VueElement extends BaseClass {
|
|
|
11477
11477
|
vnode.ce = (instance) => {
|
|
11478
11478
|
this._instance = instance;
|
|
11479
11479
|
instance.isCE = true;
|
|
11480
|
-
if (process.env.NODE_ENV !== "production") {
|
|
11480
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
11481
11481
|
instance.ceReload = (newStyles) => {
|
|
11482
11482
|
if (this._styles) {
|
|
11483
11483
|
this._styles.forEach((s) => this.shadowRoot.removeChild(s));
|
|
@@ -11519,7 +11519,7 @@ class VueElement extends BaseClass {
|
|
|
11519
11519
|
const s = document.createElement("style");
|
|
11520
11520
|
s.textContent = css;
|
|
11521
11521
|
this.shadowRoot.appendChild(s);
|
|
11522
|
-
if (process.env.NODE_ENV !== "production") {
|
|
11522
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
11523
11523
|
(this._styles || (this._styles = [])).push(s);
|
|
11524
11524
|
}
|
|
11525
11525
|
});
|
|
@@ -11531,17 +11531,17 @@ function useCssModule(name = "$style") {
|
|
|
11531
11531
|
{
|
|
11532
11532
|
const instance = getCurrentInstance();
|
|
11533
11533
|
if (!instance) {
|
|
11534
|
-
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()`);
|
|
11535
11535
|
return EMPTY_OBJ;
|
|
11536
11536
|
}
|
|
11537
11537
|
const modules = instance.type.__cssModules;
|
|
11538
11538
|
if (!modules) {
|
|
11539
|
-
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.`);
|
|
11540
11540
|
return EMPTY_OBJ;
|
|
11541
11541
|
}
|
|
11542
11542
|
const mod = modules[name];
|
|
11543
11543
|
if (!mod) {
|
|
11544
|
-
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}".`);
|
|
11545
11545
|
return EMPTY_OBJ;
|
|
11546
11546
|
}
|
|
11547
11547
|
return mod;
|
|
@@ -11551,7 +11551,7 @@ function useCssModule(name = "$style") {
|
|
|
11551
11551
|
function useCssVars(getter) {
|
|
11552
11552
|
const instance = getCurrentInstance();
|
|
11553
11553
|
if (!instance) {
|
|
11554
|
-
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.`);
|
|
11555
11555
|
return;
|
|
11556
11556
|
}
|
|
11557
11557
|
const updateTeleports = instance.ut = (vars = getter(instance.proxy)) => {
|
|
@@ -11801,7 +11801,7 @@ function normalizeDuration(duration) {
|
|
|
11801
11801
|
}
|
|
11802
11802
|
function NumberOf(val) {
|
|
11803
11803
|
const res = toNumber(val);
|
|
11804
|
-
if (process.env.NODE_ENV !== "production") {
|
|
11804
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
11805
11805
|
assertNumber(res, "<transition> explicit duration");
|
|
11806
11806
|
}
|
|
11807
11807
|
return res;
|
|
@@ -11976,7 +11976,7 @@ const TransitionGroupImpl = {
|
|
|
11976
11976
|
child,
|
|
11977
11977
|
resolveTransitionHooks(child, cssTransitionProps, state, instance)
|
|
11978
11978
|
);
|
|
11979
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
11979
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
11980
11980
|
warn(`<TransitionGroup> children must be keyed.`);
|
|
11981
11981
|
}
|
|
11982
11982
|
}
|
|
@@ -12201,7 +12201,7 @@ const vModelSelect = {
|
|
|
12201
12201
|
function setSelected(el, value) {
|
|
12202
12202
|
const isMultiple = el.multiple;
|
|
12203
12203
|
if (isMultiple && !isArray(value) && !isSet(value)) {
|
|
12204
|
-
process.env.NODE_ENV !== "production" && warn(
|
|
12204
|
+
!!(process.env.NODE_ENV !== "production") && warn(
|
|
12205
12205
|
`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(value).slice(8, -1)}.`
|
|
12206
12206
|
);
|
|
12207
12207
|
return;
|
|
@@ -12351,7 +12351,7 @@ const withKeys = (fn, modifiers) => {
|
|
|
12351
12351
|
globalKeyCodes = instance.appContext.config.keyCodes;
|
|
12352
12352
|
}
|
|
12353
12353
|
}
|
|
12354
|
-
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))) {
|
|
12355
12355
|
compatUtils.warnDeprecation(
|
|
12356
12356
|
"V_ON_KEYCODE_MODIFIER",
|
|
12357
12357
|
instance
|
|
@@ -12454,7 +12454,7 @@ const hydrate = (...args) => {
|
|
|
12454
12454
|
};
|
|
12455
12455
|
const createApp = (...args) => {
|
|
12456
12456
|
const app = ensureRenderer().createApp(...args);
|
|
12457
|
-
if (process.env.NODE_ENV !== "production") {
|
|
12457
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
12458
12458
|
injectNativeTagCheck(app);
|
|
12459
12459
|
injectCompilerOptionsCheck(app);
|
|
12460
12460
|
}
|
|
@@ -12466,7 +12466,7 @@ const createApp = (...args) => {
|
|
|
12466
12466
|
const component = app._component;
|
|
12467
12467
|
if (!isFunction(component) && !component.render && !component.template) {
|
|
12468
12468
|
component.template = container.innerHTML;
|
|
12469
|
-
if (process.env.NODE_ENV !== "production") {
|
|
12469
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
12470
12470
|
for (let i = 0; i < container.attributes.length; i++) {
|
|
12471
12471
|
const attr = container.attributes[i];
|
|
12472
12472
|
if (attr.name !== "v-cloak" && /^(v-|:|@)/.test(attr.name)) {
|
|
@@ -12491,7 +12491,7 @@ const createApp = (...args) => {
|
|
|
12491
12491
|
};
|
|
12492
12492
|
const createSSRApp = (...args) => {
|
|
12493
12493
|
const app = ensureHydrationRenderer().createApp(...args);
|
|
12494
|
-
if (process.env.NODE_ENV !== "production") {
|
|
12494
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
12495
12495
|
injectNativeTagCheck(app);
|
|
12496
12496
|
injectCompilerOptionsCheck(app);
|
|
12497
12497
|
}
|
|
@@ -12542,14 +12542,14 @@ function injectCompilerOptionsCheck(app) {
|
|
|
12542
12542
|
function normalizeContainer(container) {
|
|
12543
12543
|
if (isString(container)) {
|
|
12544
12544
|
const res = document.querySelector(container);
|
|
12545
|
-
if (process.env.NODE_ENV !== "production" && !res) {
|
|
12545
|
+
if (!!(process.env.NODE_ENV !== "production") && !res) {
|
|
12546
12546
|
warn(
|
|
12547
12547
|
`Failed to mount app: mount target selector "${container}" returned null.`
|
|
12548
12548
|
);
|
|
12549
12549
|
}
|
|
12550
12550
|
return res;
|
|
12551
12551
|
}
|
|
12552
|
-
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") {
|
|
12553
12553
|
warn(
|
|
12554
12554
|
`mounting on a ShadowRoot with \`{mode: "closed"}\` may lead to unpredictable bugs`
|
|
12555
12555
|
);
|
|
@@ -12728,7 +12728,7 @@ function initDev() {
|
|
|
12728
12728
|
}
|
|
12729
12729
|
}
|
|
12730
12730
|
|
|
12731
|
-
if (process.env.NODE_ENV !== "production") {
|
|
12731
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
12732
12732
|
initDev();
|
|
12733
12733
|
}
|
|
12734
12734
|
function wrappedCreateApp(...args) {
|
|
@@ -12752,10 +12752,10 @@ function defaultOnError(error) {
|
|
|
12752
12752
|
throw error;
|
|
12753
12753
|
}
|
|
12754
12754
|
function defaultOnWarn(msg) {
|
|
12755
|
-
process.env.NODE_ENV !== "production" && console.warn(`[Vue warn] ${msg.message}`);
|
|
12755
|
+
!!(process.env.NODE_ENV !== "production") && console.warn(`[Vue warn] ${msg.message}`);
|
|
12756
12756
|
}
|
|
12757
12757
|
function createCompilerError(code, loc, messages, additionalMessage) {
|
|
12758
|
-
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;
|
|
12759
12759
|
const error = new SyntaxError(String(msg));
|
|
12760
12760
|
error.code = code;
|
|
12761
12761
|
error.loc = loc;
|
|
@@ -12825,47 +12825,47 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
12825
12825
|
[53]: ``
|
|
12826
12826
|
};
|
|
12827
12827
|
|
|
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` : ``);
|
|
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` : ``);
|
|
12842
12842
|
const RESOLVE_DYNAMIC_COMPONENT = Symbol(
|
|
12843
|
-
process.env.NODE_ENV !== "production" ? `resolveDynamicComponent` : ``
|
|
12843
|
+
!!(process.env.NODE_ENV !== "production") ? `resolveDynamicComponent` : ``
|
|
12844
12844
|
);
|
|
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` : ``);
|
|
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` : ``);
|
|
12869
12869
|
const helperNameMap = {
|
|
12870
12870
|
[FRAGMENT]: `Fragment`,
|
|
12871
12871
|
[TELEPORT]: `Teleport`,
|
|
@@ -13370,7 +13370,7 @@ function isCompatEnabled(key, context) {
|
|
|
13370
13370
|
}
|
|
13371
13371
|
function checkCompatEnabled(key, context, loc, ...args) {
|
|
13372
13372
|
const enabled = isCompatEnabled(key, context);
|
|
13373
|
-
if (process.env.NODE_ENV !== "production" && enabled) {
|
|
13373
|
+
if (!!(process.env.NODE_ENV !== "production") && enabled) {
|
|
13374
13374
|
warnDeprecation(key, context, loc, ...args);
|
|
13375
13375
|
}
|
|
13376
13376
|
return enabled;
|
|
@@ -13408,7 +13408,7 @@ const defaultParserOptions = {
|
|
|
13408
13408
|
decodeEntities: (rawText) => rawText.replace(decodeRE, (_, p1) => decodeMap[p1]),
|
|
13409
13409
|
onError: defaultOnError,
|
|
13410
13410
|
onWarn: defaultOnWarn,
|
|
13411
|
-
comments: process.env.NODE_ENV !== "production"
|
|
13411
|
+
comments: !!(process.env.NODE_ENV !== "production")
|
|
13412
13412
|
};
|
|
13413
13413
|
function baseParse(content, options = {}) {
|
|
13414
13414
|
const context = createParserContext(content, options);
|
|
@@ -13492,7 +13492,7 @@ function parseChildren(context, mode, ancestors) {
|
|
|
13492
13492
|
) && node && node.tag === "template" && !node.props.some(
|
|
13493
13493
|
(p) => p.type === 7 && isSpecialTemplateDirective(p.name)
|
|
13494
13494
|
)) {
|
|
13495
|
-
process.env.NODE_ENV !== "production" && warnDeprecation(
|
|
13495
|
+
!!(process.env.NODE_ENV !== "production") && warnDeprecation(
|
|
13496
13496
|
"COMPILER_NATIVE_TEMPLATE",
|
|
13497
13497
|
context,
|
|
13498
13498
|
node.loc
|
|
@@ -13729,7 +13729,7 @@ function parseTag(context, type, parent) {
|
|
|
13729
13729
|
if (type === 1 /* End */) {
|
|
13730
13730
|
return;
|
|
13731
13731
|
}
|
|
13732
|
-
if (process.env.NODE_ENV !== "production" && isCompatEnabled(
|
|
13732
|
+
if (!!(process.env.NODE_ENV !== "production") && isCompatEnabled(
|
|
13733
13733
|
"COMPILER_V_IF_V_FOR_PRECEDENCE",
|
|
13734
13734
|
context
|
|
13735
13735
|
)) {
|
|
@@ -13947,7 +13947,7 @@ function parseAttribute(context, nameSet) {
|
|
|
13947
13947
|
dirName = "model";
|
|
13948
13948
|
modifiers.splice(modifiers.indexOf("sync"), 1);
|
|
13949
13949
|
}
|
|
13950
|
-
if (process.env.NODE_ENV !== "production" && modifiers.includes("prop")) {
|
|
13950
|
+
if (!!(process.env.NODE_ENV !== "production") && modifiers.includes("prop")) {
|
|
13951
13951
|
checkCompatEnabled(
|
|
13952
13952
|
"COMPILER_V_BIND_PROP",
|
|
13953
13953
|
context,
|
|
@@ -14190,7 +14190,7 @@ function walk(node, context, doNotHoistNode = false) {
|
|
|
14190
14190
|
const constantType = doNotHoistNode ? 0 : getConstantType(child, context);
|
|
14191
14191
|
if (constantType > 0) {
|
|
14192
14192
|
if (constantType >= 2) {
|
|
14193
|
-
child.codegenNode.patchFlag = -1 + (process.env.NODE_ENV !== "production" ? ` /* HOISTED */` : ``);
|
|
14193
|
+
child.codegenNode.patchFlag = -1 + (!!(process.env.NODE_ENV !== "production") ? ` /* HOISTED */` : ``);
|
|
14194
14194
|
child.codegenNode = context.hoist(child.codegenNode);
|
|
14195
14195
|
hoistedCount++;
|
|
14196
14196
|
continue;
|
|
@@ -14344,7 +14344,7 @@ function getConstantType(node, context) {
|
|
|
14344
14344
|
}
|
|
14345
14345
|
return returnType;
|
|
14346
14346
|
default:
|
|
14347
|
-
if (process.env.NODE_ENV !== "production") ;
|
|
14347
|
+
if (!!(process.env.NODE_ENV !== "production")) ;
|
|
14348
14348
|
return 0;
|
|
14349
14349
|
}
|
|
14350
14350
|
}
|
|
@@ -14497,7 +14497,7 @@ function createTransformContext(root, {
|
|
|
14497
14497
|
return `_${helperNameMap[context.helper(name)]}`;
|
|
14498
14498
|
},
|
|
14499
14499
|
replaceNode(node) {
|
|
14500
|
-
if (process.env.NODE_ENV !== "production") {
|
|
14500
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
14501
14501
|
if (!context.currentNode) {
|
|
14502
14502
|
throw new Error(`Node being replaced is already removed.`);
|
|
14503
14503
|
}
|
|
@@ -14508,12 +14508,12 @@ function createTransformContext(root, {
|
|
|
14508
14508
|
context.parent.children[context.childIndex] = context.currentNode = node;
|
|
14509
14509
|
},
|
|
14510
14510
|
removeNode(node) {
|
|
14511
|
-
if (process.env.NODE_ENV !== "production" && !context.parent) {
|
|
14511
|
+
if (!!(process.env.NODE_ENV !== "production") && !context.parent) {
|
|
14512
14512
|
throw new Error(`Cannot remove root node.`);
|
|
14513
14513
|
}
|
|
14514
14514
|
const list = context.parent.children;
|
|
14515
14515
|
const removalIndex = node ? list.indexOf(node) : context.currentNode ? context.childIndex : -1;
|
|
14516
|
-
if (process.env.NODE_ENV !== "production" && removalIndex < 0) {
|
|
14516
|
+
if (!!(process.env.NODE_ENV !== "production") && removalIndex < 0) {
|
|
14517
14517
|
throw new Error(`node being removed is not a child of current parent`);
|
|
14518
14518
|
}
|
|
14519
14519
|
if (!node || node === context.currentNode) {
|
|
@@ -14592,7 +14592,7 @@ function createRootCodegen(root, context) {
|
|
|
14592
14592
|
} else if (children.length > 1) {
|
|
14593
14593
|
let patchFlag = 64;
|
|
14594
14594
|
let patchFlagText = PatchFlagNames[64];
|
|
14595
|
-
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) {
|
|
14596
14596
|
patchFlag |= 2048;
|
|
14597
14597
|
patchFlagText += `, ${PatchFlagNames[2048]}`;
|
|
14598
14598
|
}
|
|
@@ -14601,7 +14601,7 @@ function createRootCodegen(root, context) {
|
|
|
14601
14601
|
helper(FRAGMENT),
|
|
14602
14602
|
void 0,
|
|
14603
14603
|
root.children,
|
|
14604
|
-
patchFlag + (process.env.NODE_ENV !== "production" ? ` /* ${patchFlagText} */` : ``),
|
|
14604
|
+
patchFlag + (!!(process.env.NODE_ENV !== "production") ? ` /* ${patchFlagText} */` : ``),
|
|
14605
14605
|
void 0,
|
|
14606
14606
|
void 0,
|
|
14607
14607
|
true,
|
|
@@ -14923,7 +14923,7 @@ function isText(n) {
|
|
|
14923
14923
|
return isString(n) || n.type === 4 || n.type === 2 || n.type === 5 || n.type === 8;
|
|
14924
14924
|
}
|
|
14925
14925
|
function genNodeListAsArray(nodes, context) {
|
|
14926
|
-
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));
|
|
14927
14927
|
context.push(`[`);
|
|
14928
14928
|
multilines && context.indent();
|
|
14929
14929
|
genNodeList(nodes, context, multilines);
|
|
@@ -14964,7 +14964,7 @@ function genNode(node, context) {
|
|
|
14964
14964
|
case 1:
|
|
14965
14965
|
case 9:
|
|
14966
14966
|
case 11:
|
|
14967
|
-
process.env.NODE_ENV !== "production" && assert(
|
|
14967
|
+
!!(process.env.NODE_ENV !== "production") && assert(
|
|
14968
14968
|
node.codegenNode != null,
|
|
14969
14969
|
`Codegen node is missing for element/if/for node. Apply appropriate transforms first.`
|
|
14970
14970
|
);
|
|
@@ -15025,7 +15025,7 @@ function genNode(node, context) {
|
|
|
15025
15025
|
case 10:
|
|
15026
15026
|
break;
|
|
15027
15027
|
default:
|
|
15028
|
-
if (process.env.NODE_ENV !== "production") {
|
|
15028
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
15029
15029
|
assert(false, `unhandled codegen node type: ${node.type}`);
|
|
15030
15030
|
const exhaustiveCheck = node;
|
|
15031
15031
|
return exhaustiveCheck;
|
|
@@ -15140,7 +15140,7 @@ function genObjectExpression(node, context) {
|
|
|
15140
15140
|
push(`{}`, node);
|
|
15141
15141
|
return;
|
|
15142
15142
|
}
|
|
15143
|
-
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);
|
|
15144
15144
|
push(multilines ? `{` : `{ `);
|
|
15145
15145
|
multilines && indent();
|
|
15146
15146
|
for (let i = 0; i < properties.length; i++) {
|
|
@@ -15314,7 +15314,7 @@ const transformExpression = (node, context) => {
|
|
|
15314
15314
|
};
|
|
15315
15315
|
function processExpression(node, context, asParams = false, asRawStatements = false, localVars = Object.create(context.identifiers)) {
|
|
15316
15316
|
{
|
|
15317
|
-
if (process.env.NODE_ENV !== "production") {
|
|
15317
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
15318
15318
|
validateBrowserExpression(node, context, asParams, asRawStatements);
|
|
15319
15319
|
}
|
|
15320
15320
|
return node;
|
|
@@ -15361,7 +15361,7 @@ function processIf(node, dir, context, processCodegen) {
|
|
|
15361
15361
|
);
|
|
15362
15362
|
dir.exp = createSimpleExpression(`true`, false, loc);
|
|
15363
15363
|
}
|
|
15364
|
-
if (process.env.NODE_ENV !== "production" && true && dir.exp) {
|
|
15364
|
+
if (!!(process.env.NODE_ENV !== "production") && true && dir.exp) {
|
|
15365
15365
|
validateBrowserExpression(dir.exp, context);
|
|
15366
15366
|
}
|
|
15367
15367
|
if (dir.name === "if") {
|
|
@@ -15383,7 +15383,7 @@ function processIf(node, dir, context, processCodegen) {
|
|
|
15383
15383
|
const sibling = siblings[i];
|
|
15384
15384
|
if (sibling && sibling.type === 3) {
|
|
15385
15385
|
context.removeNode(sibling);
|
|
15386
|
-
process.env.NODE_ENV !== "production" && comments.unshift(sibling);
|
|
15386
|
+
!!(process.env.NODE_ENV !== "production") && comments.unshift(sibling);
|
|
15387
15387
|
continue;
|
|
15388
15388
|
}
|
|
15389
15389
|
if (sibling && sibling.type === 2 && !sibling.content.trim().length) {
|
|
@@ -15398,11 +15398,11 @@ function processIf(node, dir, context, processCodegen) {
|
|
|
15398
15398
|
}
|
|
15399
15399
|
context.removeNode();
|
|
15400
15400
|
const branch = createIfBranch(node, dir);
|
|
15401
|
-
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>
|
|
15402
15402
|
!(context.parent && context.parent.type === 1 && isBuiltInType(context.parent.tag, "transition"))) {
|
|
15403
15403
|
branch.children = [...comments, ...branch.children];
|
|
15404
15404
|
}
|
|
15405
|
-
if (process.env.NODE_ENV !== "production" || false) {
|
|
15405
|
+
if (!!(process.env.NODE_ENV !== "production") || false) {
|
|
15406
15406
|
const key = branch.userKey;
|
|
15407
15407
|
if (key) {
|
|
15408
15408
|
sibling.branches.forEach(({ userKey }) => {
|
|
@@ -15451,7 +15451,7 @@ function createCodegenNodeForBranch(branch, keyIndex, context) {
|
|
|
15451
15451
|
// make sure to pass in asBlock: true so that the comment node call
|
|
15452
15452
|
// closes the current block.
|
|
15453
15453
|
createCallExpression(context.helper(CREATE_COMMENT), [
|
|
15454
|
-
process.env.NODE_ENV !== "production" ? '"v-if"' : '""',
|
|
15454
|
+
!!(process.env.NODE_ENV !== "production") ? '"v-if"' : '""',
|
|
15455
15455
|
"true"
|
|
15456
15456
|
])
|
|
15457
15457
|
);
|
|
@@ -15481,7 +15481,7 @@ function createChildrenCodegenNode(branch, keyIndex, context) {
|
|
|
15481
15481
|
} else {
|
|
15482
15482
|
let patchFlag = 64;
|
|
15483
15483
|
let patchFlagText = PatchFlagNames[64];
|
|
15484
|
-
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) {
|
|
15485
15485
|
patchFlag |= 2048;
|
|
15486
15486
|
patchFlagText += `, ${PatchFlagNames[2048]}`;
|
|
15487
15487
|
}
|
|
@@ -15490,7 +15490,7 @@ function createChildrenCodegenNode(branch, keyIndex, context) {
|
|
|
15490
15490
|
helper(FRAGMENT),
|
|
15491
15491
|
createObjectExpression([keyProperty]),
|
|
15492
15492
|
children,
|
|
15493
|
-
patchFlag + (process.env.NODE_ENV !== "production" ? ` /* ${patchFlagText} */` : ``),
|
|
15493
|
+
patchFlag + (!!(process.env.NODE_ENV !== "production") ? ` /* ${patchFlagText} */` : ``),
|
|
15494
15494
|
void 0,
|
|
15495
15495
|
void 0,
|
|
15496
15496
|
true,
|
|
@@ -15563,7 +15563,7 @@ const transformFor = createStructuralDirectiveTransform(
|
|
|
15563
15563
|
helper(FRAGMENT),
|
|
15564
15564
|
void 0,
|
|
15565
15565
|
renderExp,
|
|
15566
|
-
fragmentFlag + (process.env.NODE_ENV !== "production" ? ` /* ${PatchFlagNames[fragmentFlag]} */` : ``),
|
|
15566
|
+
fragmentFlag + (!!(process.env.NODE_ENV !== "production") ? ` /* ${PatchFlagNames[fragmentFlag]} */` : ``),
|
|
15567
15567
|
void 0,
|
|
15568
15568
|
void 0,
|
|
15569
15569
|
true,
|
|
@@ -15574,7 +15574,7 @@ const transformFor = createStructuralDirectiveTransform(
|
|
|
15574
15574
|
return () => {
|
|
15575
15575
|
let childBlock;
|
|
15576
15576
|
const { children } = forNode;
|
|
15577
|
-
if ((process.env.NODE_ENV !== "production" || false) && isTemplate) {
|
|
15577
|
+
if ((!!(process.env.NODE_ENV !== "production") || false) && isTemplate) {
|
|
15578
15578
|
node.children.some((c) => {
|
|
15579
15579
|
if (c.type === 1) {
|
|
15580
15580
|
const key = findProp(c, "key");
|
|
@@ -15603,7 +15603,7 @@ const transformFor = createStructuralDirectiveTransform(
|
|
|
15603
15603
|
helper(FRAGMENT),
|
|
15604
15604
|
keyProperty ? createObjectExpression([keyProperty]) : void 0,
|
|
15605
15605
|
node.children,
|
|
15606
|
-
64 + (process.env.NODE_ENV !== "production" ? ` /* ${PatchFlagNames[64]} */` : ``),
|
|
15606
|
+
64 + (!!(process.env.NODE_ENV !== "production") ? ` /* ${PatchFlagNames[64]} */` : ``),
|
|
15607
15607
|
void 0,
|
|
15608
15608
|
void 0,
|
|
15609
15609
|
true,
|
|
@@ -15734,7 +15734,7 @@ function parseForExpression(input, context) {
|
|
|
15734
15734
|
key: void 0,
|
|
15735
15735
|
index: void 0
|
|
15736
15736
|
};
|
|
15737
|
-
if (process.env.NODE_ENV !== "production" && true) {
|
|
15737
|
+
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
15738
15738
|
validateBrowserExpression(result.source, context);
|
|
15739
15739
|
}
|
|
15740
15740
|
let valueContent = LHS.trim().replace(stripParensRE, "").trim();
|
|
@@ -15747,7 +15747,7 @@ function parseForExpression(input, context) {
|
|
|
15747
15747
|
if (keyContent) {
|
|
15748
15748
|
keyOffset = exp.indexOf(keyContent, trimmedOffset + valueContent.length);
|
|
15749
15749
|
result.key = createAliasExpression(loc, keyContent, keyOffset);
|
|
15750
|
-
if (process.env.NODE_ENV !== "production" && true) {
|
|
15750
|
+
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
15751
15751
|
validateBrowserExpression(
|
|
15752
15752
|
result.key,
|
|
15753
15753
|
context,
|
|
@@ -15766,7 +15766,7 @@ function parseForExpression(input, context) {
|
|
|
15766
15766
|
result.key ? keyOffset + keyContent.length : trimmedOffset + valueContent.length
|
|
15767
15767
|
)
|
|
15768
15768
|
);
|
|
15769
|
-
if (process.env.NODE_ENV !== "production" && true) {
|
|
15769
|
+
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
15770
15770
|
validateBrowserExpression(
|
|
15771
15771
|
result.index,
|
|
15772
15772
|
context,
|
|
@@ -15778,7 +15778,7 @@ function parseForExpression(input, context) {
|
|
|
15778
15778
|
}
|
|
15779
15779
|
if (valueContent) {
|
|
15780
15780
|
result.value = createAliasExpression(loc, valueContent, trimmedOffset);
|
|
15781
|
-
if (process.env.NODE_ENV !== "production" && true) {
|
|
15781
|
+
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
15782
15782
|
validateBrowserExpression(
|
|
15783
15783
|
result.value,
|
|
15784
15784
|
context,
|
|
@@ -16002,7 +16002,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
|
|
|
16002
16002
|
// 2 = compiled but dynamic = can skip normalization, but must run diff
|
|
16003
16003
|
// 1 = compiled and static = can skip normalization AND diff as optimized
|
|
16004
16004
|
createSimpleExpression(
|
|
16005
|
-
slotFlag + (process.env.NODE_ENV !== "production" ? ` /* ${slotFlagsText[slotFlag]} */` : ``),
|
|
16005
|
+
slotFlag + (!!(process.env.NODE_ENV !== "production") ? ` /* ${slotFlagsText[slotFlag]} */` : ``),
|
|
16006
16006
|
false
|
|
16007
16007
|
)
|
|
16008
16008
|
)
|
|
@@ -16109,7 +16109,7 @@ const transformElement = (node, context) => {
|
|
|
16109
16109
|
if (vnodeTag === KEEP_ALIVE) {
|
|
16110
16110
|
shouldUseBlock = true;
|
|
16111
16111
|
patchFlag |= 1024;
|
|
16112
|
-
if (process.env.NODE_ENV !== "production" && node.children.length > 1) {
|
|
16112
|
+
if (!!(process.env.NODE_ENV !== "production") && node.children.length > 1) {
|
|
16113
16113
|
context.onError(
|
|
16114
16114
|
createCompilerError(46, {
|
|
16115
16115
|
start: node.children[0].loc.start,
|
|
@@ -16145,7 +16145,7 @@ const transformElement = (node, context) => {
|
|
|
16145
16145
|
}
|
|
16146
16146
|
}
|
|
16147
16147
|
if (patchFlag !== 0) {
|
|
16148
|
-
if (process.env.NODE_ENV !== "production") {
|
|
16148
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
16149
16149
|
if (patchFlag < 0) {
|
|
16150
16150
|
vnodePatchFlag = patchFlag + ` /* ${PatchFlagNames[patchFlag]} */`;
|
|
16151
16151
|
} else {
|
|
@@ -16195,7 +16195,7 @@ function resolveComponentType(node, context, ssr = false) {
|
|
|
16195
16195
|
}
|
|
16196
16196
|
const isDir = !isExplicitDynamic && findDir(node, "is");
|
|
16197
16197
|
if (isDir && isDir.exp) {
|
|
16198
|
-
if (process.env.NODE_ENV !== "production") {
|
|
16198
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
16199
16199
|
context.onWarn(
|
|
16200
16200
|
createCompilerError(52, isDir.loc)
|
|
16201
16201
|
);
|
|
@@ -16354,7 +16354,7 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
|
|
16354
16354
|
if (isVBind) {
|
|
16355
16355
|
pushMergeArg();
|
|
16356
16356
|
{
|
|
16357
|
-
if (process.env.NODE_ENV !== "production") {
|
|
16357
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
16358
16358
|
const hasOverridableKeys = mergeArgs.some((arg2) => {
|
|
16359
16359
|
if (arg2.type === 15) {
|
|
16360
16360
|
return arg2.properties.some(({ key }) => {
|
|
@@ -16705,7 +16705,7 @@ const transformOn$1 = (dir, node, context, augmentor) => {
|
|
|
16705
16705
|
if (arg.type === 4) {
|
|
16706
16706
|
if (arg.isStatic) {
|
|
16707
16707
|
let rawName = arg.content;
|
|
16708
|
-
if (process.env.NODE_ENV !== "production" && rawName.startsWith("vnode")) {
|
|
16708
|
+
if (!!(process.env.NODE_ENV !== "production") && rawName.startsWith("vnode")) {
|
|
16709
16709
|
context.onWarn(
|
|
16710
16710
|
createCompilerError(51, arg.loc)
|
|
16711
16711
|
);
|
|
@@ -16744,7 +16744,7 @@ const transformOn$1 = (dir, node, context, augmentor) => {
|
|
|
16744
16744
|
const isMemberExp = isMemberExpression(exp.content);
|
|
16745
16745
|
const isInlineStatement = !(isMemberExp || fnExpRE.test(exp.content));
|
|
16746
16746
|
const hasMultipleStatements = exp.content.includes(`;`);
|
|
16747
|
-
if (process.env.NODE_ENV !== "production" && true) {
|
|
16747
|
+
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
16748
16748
|
validateBrowserExpression(
|
|
16749
16749
|
exp,
|
|
16750
16750
|
context,
|
|
@@ -16885,7 +16885,7 @@ const transformText = (node, context) => {
|
|
|
16885
16885
|
}
|
|
16886
16886
|
if (!context.ssr && getConstantType(child, context) === 0) {
|
|
16887
16887
|
callArgs.push(
|
|
16888
|
-
1 + (process.env.NODE_ENV !== "production" ? ` /* ${PatchFlagNames[1]} */` : ``)
|
|
16888
|
+
1 + (!!(process.env.NODE_ENV !== "production") ? ` /* ${PatchFlagNames[1]} */` : ``)
|
|
16889
16889
|
);
|
|
16890
16890
|
}
|
|
16891
16891
|
children[i] = {
|
|
@@ -17108,7 +17108,7 @@ function parseFilter(node, context) {
|
|
|
17108
17108
|
lastFilterIndex = i + 1;
|
|
17109
17109
|
}
|
|
17110
17110
|
if (filters.length) {
|
|
17111
|
-
process.env.NODE_ENV !== "production" && warnDeprecation(
|
|
17111
|
+
!!(process.env.NODE_ENV !== "production") && warnDeprecation(
|
|
17112
17112
|
"COMPILER_FILTER",
|
|
17113
17113
|
context,
|
|
17114
17114
|
node.loc
|
|
@@ -17166,7 +17166,7 @@ function getBaseTransformPreset(prefixIdentifiers) {
|
|
|
17166
17166
|
transformMemo,
|
|
17167
17167
|
transformFor,
|
|
17168
17168
|
...[transformFilter] ,
|
|
17169
|
-
|
|
17169
|
+
...!!(process.env.NODE_ENV !== "production") ? [transformExpression] : [],
|
|
17170
17170
|
transformSlotOutlet,
|
|
17171
17171
|
transformElement,
|
|
17172
17172
|
trackSlotScopes,
|
|
@@ -17225,16 +17225,16 @@ function baseCompile(template, options = {}) {
|
|
|
17225
17225
|
|
|
17226
17226
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
17227
17227
|
|
|
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` : ``);
|
|
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` : ``);
|
|
17238
17238
|
registerRuntimeHelpers({
|
|
17239
17239
|
[V_MODEL_RADIO]: `vModelRadio`,
|
|
17240
17240
|
[V_MODEL_CHECKBOX]: `vModelCheckbox`,
|
|
@@ -17353,7 +17353,7 @@ function createDOMCompilerError(code, loc) {
|
|
|
17353
17353
|
return createCompilerError(
|
|
17354
17354
|
code,
|
|
17355
17355
|
loc,
|
|
17356
|
-
process.env.NODE_ENV !== "production" || false ? DOMErrorMessages : void 0
|
|
17356
|
+
!!(process.env.NODE_ENV !== "production") || false ? DOMErrorMessages : void 0
|
|
17357
17357
|
);
|
|
17358
17358
|
}
|
|
17359
17359
|
const DOMErrorMessages = {
|
|
@@ -17472,19 +17472,19 @@ const transformModel = (dir, node, context) => {
|
|
|
17472
17472
|
);
|
|
17473
17473
|
break;
|
|
17474
17474
|
default:
|
|
17475
|
-
process.env.NODE_ENV !== "production" && checkDuplicatedValue();
|
|
17475
|
+
!!(process.env.NODE_ENV !== "production") && checkDuplicatedValue();
|
|
17476
17476
|
break;
|
|
17477
17477
|
}
|
|
17478
17478
|
}
|
|
17479
17479
|
} else if (hasDynamicKeyVBind(node)) {
|
|
17480
17480
|
directiveToUse = V_MODEL_DYNAMIC;
|
|
17481
17481
|
} else {
|
|
17482
|
-
process.env.NODE_ENV !== "production" && checkDuplicatedValue();
|
|
17482
|
+
!!(process.env.NODE_ENV !== "production") && checkDuplicatedValue();
|
|
17483
17483
|
}
|
|
17484
17484
|
} else if (tag === "select") {
|
|
17485
17485
|
directiveToUse = V_MODEL_SELECT;
|
|
17486
17486
|
} else {
|
|
17487
|
-
process.env.NODE_ENV !== "production" && checkDuplicatedValue();
|
|
17487
|
+
!!(process.env.NODE_ENV !== "production") && checkDuplicatedValue();
|
|
17488
17488
|
}
|
|
17489
17489
|
if (!isInvalidType) {
|
|
17490
17490
|
baseResult.needRuntime = context.helper(directiveToUse);
|
|
@@ -17660,7 +17660,7 @@ function hasMultipleChildren(node) {
|
|
|
17660
17660
|
|
|
17661
17661
|
const ignoreSideEffectTags = (node, context) => {
|
|
17662
17662
|
if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
|
|
17663
|
-
process.env.NODE_ENV !== "production" && context.onError(
|
|
17663
|
+
!!(process.env.NODE_ENV !== "production") && context.onError(
|
|
17664
17664
|
createDOMCompilerError(
|
|
17665
17665
|
63,
|
|
17666
17666
|
node.loc
|
|
@@ -17672,7 +17672,7 @@ const ignoreSideEffectTags = (node, context) => {
|
|
|
17672
17672
|
|
|
17673
17673
|
const DOMNodeTransforms = [
|
|
17674
17674
|
transformStyle,
|
|
17675
|
-
|
|
17675
|
+
...!!(process.env.NODE_ENV !== "production") ? [transformTransition] : []
|
|
17676
17676
|
];
|
|
17677
17677
|
const DOMDirectiveTransforms = {
|
|
17678
17678
|
cloak: noopDirectiveTransform,
|
|
@@ -17712,7 +17712,7 @@ function compileToFunction(template, options) {
|
|
|
17712
17712
|
if (template.nodeType) {
|
|
17713
17713
|
template = template.innerHTML;
|
|
17714
17714
|
} else {
|
|
17715
|
-
process.env.NODE_ENV !== "production" && warn(`invalid template option: `, template);
|
|
17715
|
+
!!(process.env.NODE_ENV !== "production") && warn(`invalid template option: `, template);
|
|
17716
17716
|
return NOOP;
|
|
17717
17717
|
}
|
|
17718
17718
|
}
|
|
@@ -17723,12 +17723,12 @@ function compileToFunction(template, options) {
|
|
|
17723
17723
|
}
|
|
17724
17724
|
if (template[0] === "#") {
|
|
17725
17725
|
const el = document.querySelector(template);
|
|
17726
|
-
if (process.env.NODE_ENV !== "production" && !el) {
|
|
17726
|
+
if (!!(process.env.NODE_ENV !== "production") && !el) {
|
|
17727
17727
|
warn(`Template element not found or is empty: ${template}`);
|
|
17728
17728
|
}
|
|
17729
17729
|
template = el ? el.innerHTML : ``;
|
|
17730
17730
|
}
|
|
17731
|
-
if (process.env.NODE_ENV !== "production" && true && (!options || !options.whitespace)) {
|
|
17731
|
+
if (!!(process.env.NODE_ENV !== "production") && true && (!options || !options.whitespace)) {
|
|
17732
17732
|
warnDeprecation$1("CONFIG_WHITESPACE", null);
|
|
17733
17733
|
}
|
|
17734
17734
|
const { code } = compile(
|
|
@@ -17737,8 +17737,8 @@ function compileToFunction(template, options) {
|
|
|
17737
17737
|
{
|
|
17738
17738
|
hoistStatic: true,
|
|
17739
17739
|
whitespace: "preserve",
|
|
17740
|
-
onError: process.env.NODE_ENV !== "production" ? onError : void 0,
|
|
17741
|
-
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
|
|
17742
17742
|
},
|
|
17743
17743
|
options
|
|
17744
17744
|
)
|