feat(es/minifier): Move assign with seq init into seq (#5847)

This commit is contained in:
Austaras 2022-09-14 20:57:18 +08:00 committed by GitHub
parent f3e02675ad
commit 63fb0c4ad3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
33 changed files with 190 additions and 193 deletions

View File

@ -2,10 +2,10 @@
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs";
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
try {
for(var ref, ref1, ref2, _step, _iterator = [
for(var ref, _step, _iterator = [
2,
"3"
][Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)ref1 = (ref = _sliced_to_array(_step.value, 2))[0], ref2 = ref[1];
][Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)(ref = _sliced_to_array(_step.value, 2))[0], ref[1];
} catch (err) {
_didIteratorError = !0, _iteratorError = err;
} finally{

View File

@ -1,3 +1,17 @@
//// [assignmentCompatWithNumericIndexer3.ts]
var Generics;
Generics || (Generics = {});
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
!function(A) {
"use strict";
_inherits(B2, A);
var _super = _create_super(B2);
function B2() {
return _class_call_check(this, B2), _super.apply(this, arguments);
}
return B2;
}(function A() {
"use strict";
_class_call_check(this, A);
}), Generics || (Generics = {});

View File

@ -1,9 +1,4 @@
//// [classWithStaticFieldInParameterInitializer.ts]
var _class;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
!function() {
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ((_class = function _class() {
"use strict";
_class_call_check(this, _class);
}).x = 1, _class);
arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
}();

View File

@ -2,12 +2,12 @@
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
var _class, _class1, C = function C() {
var C = function C() {
"use strict";
_class_call_check(this, C);
};
!function() {
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ((_class = function(C) {
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : function(C) {
"use strict";
_inherits(_class, C);
var _super = _create_super(_class);
@ -15,9 +15,9 @@ var _class, _class1, C = function C() {
return _class_call_check(this, _class), _super.apply(this, arguments);
}
return _class;
}(C)).x = 1, _class);
}(C).x = 1;
}(), function() {
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ((_class1 = function(C) {
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : function(C) {
"use strict";
_inherits(_class, C);
var _super = _create_super(_class);
@ -25,5 +25,5 @@ var _class, _class1, C = function C() {
return _class_call_check(this, _class), _super.apply(this, arguments);
}
return _class;
}(C)).x = 1, _class1), arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
}(C).x = 1, arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
}();

View File

@ -1,3 +1,3 @@
//// [emitExponentiationOperatorInTempalteString4ES6.ts]
var t1 = 10;
++t1, ++t1, --t1, ++t1, ++t1, t1++, ++t1, --t1, --t1, ++t1, ++t1, --t1;
++t1, t1++, --t1, ++t1, ++t1, t1++, t1++, --t1, --t1, ++t1, t1++, --t1;

View File

@ -1,3 +1 @@
//// [nullishCoalescingOperator3.ts]
var ref, ref1, ref2, ref3;
null !== (ref3 = null !== (ref2 = null !== (ref1 = null !== (ref = null != a1 ? a1 : a2) && void 0 !== ref ? ref : a3) && void 0 !== ref1 ? ref1 : a4) && void 0 !== ref2 ? ref2 : a5);

View File

@ -1,5 +1,5 @@
//// [nullishCoalescingOperatorInParameterInitializer.ts]
var ref, a = function() {};
var a = function() {};
!function() {
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null !== (ref = a()) && ref;
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : a();
}();

View File

@ -1,7 +1,7 @@
//// [nullishCoalescingOperatorInParameterInitializer.2.ts]
var ref, ref1, a = function() {};
var a = function() {};
!function() {
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null !== (ref = a()) && ref;
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : a();
}(), function() {
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null !== (ref1 = a()) && ref1, arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : a(), arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
}();

View File

@ -668,6 +668,12 @@ where
self.changed = true;
report_change!("inline: Replacing a variable `{}` with cheap expression", i);
if let Expr::Ident(i) = &*value {
if let Some(usage) = self.data.vars.get_mut(&i.to_id()) {
usage.ref_count += 1;
}
}
*e = *value;
return;
}

View File

@ -1126,6 +1126,11 @@ where
}
}
Expr::Ident(id) if id.span.ctxt != self.expr_ctx.unresolved_ctxt => {
report_change!("ignore_return_value: Dropping a declared ident {}", id);
self.changed = true;
return None;
}
_ => {}
}
@ -1670,14 +1675,14 @@ where
Expr::Assign(AssignExpr {
op: op!("="),
left: PatOrExpr::Pat(pat),
left,
right,
..
}) => {
if let Pat::Ident(i) = &mut **pat {
if let Some(i) = left.as_ident_mut() {
let old = i.to_id();
self.store_var_for_inlining(&mut i.id, right, false, false);
self.store_var_for_inlining(i, right, false, false);
if right.is_invalid() {
if let Some(lit) = self
@ -1690,6 +1695,8 @@ where
}
}
}
self.lift_seqs_of_assign(e)
}
_ => {}
@ -2249,8 +2256,6 @@ where
self.shift_assignment(n);
self.merge_sequences_in_seq_expr(n);
self.lift_seqs_of_assign(n);
}
#[cfg_attr(feature = "debug", tracing::instrument(skip_all))]

View File

@ -430,63 +430,40 @@ where
/// Lift sequence expressions in an assign expression.
///
/// - `(a = (f, 4)) => (f, a = 4)`
pub(super) fn lift_seqs_of_assign(&mut self, e: &mut SeqExpr) {
pub(super) fn lift_seqs_of_assign(&mut self, e: &mut Expr) {
if !self.options.sequences() {
return;
}
if let Expr::Assign(AssignExpr {
op: op!("="),
left,
right,
span,
}) = e
{
let can_work = e.exprs.iter().any(|e| {
if let Expr::Assign(assign @ AssignExpr { op: op!("="), .. }) = &**e {
if let Expr::Seq(right) = &*assign.right {
if right.exprs.len() >= 2
&& right.exprs[..right.exprs.len() - 1]
.iter()
.all(|e| !e.may_have_side_effects(&self.expr_ctx))
{
return true;
}
}
if let (Some(id), Expr::Seq(seq)) = (left.as_ident(), &mut **right) {
if id.span.ctxt == self.expr_ctx.unresolved_ctxt {
return;
}
// Do we really need this?
if seq.exprs.is_empty() || seq.exprs.len() <= 1 {
return;
}
report_change!("sequences: Lifting Assign");
self.changed = true;
if let Some(last) = seq.exprs.last_mut() {
**last = Expr::Assign(AssignExpr {
span: *span,
op: op!("="),
left: left.take(),
right: last.take(),
})
}
false
});
if !can_work {
return;
*e = *right.take()
}
report_change!("sequences: Lifting");
self.changed = true;
}
let mut new_exprs = Vec::with_capacity(e.exprs.len() * 12 / 10);
for expr in e.exprs.take() {
if let Expr::Assign(assign @ AssignExpr { op: op!("="), .. }) = *expr {
match *assign.right {
Expr::Seq(mut right)
if right.exprs[..right.exprs.len() - 1]
.iter()
.all(|e| !e.may_have_side_effects(&self.expr_ctx)) =>
{
new_exprs.extend(right.exprs.drain(..right.exprs.len() - 1));
new_exprs.push(Box::new(Expr::Assign(AssignExpr {
right: right.exprs.pop().unwrap(),
..assign
})));
continue;
}
_ => {
new_exprs.push(Box::new(Expr::Assign(assign)));
continue;
}
}
}
new_exprs.push(expr);
}
e.exprs = new_exprs;
}
#[allow(unused)]

View File

@ -11076,9 +11076,9 @@
var a1, b1;
return a = m({
children: void 0
}, b), (b = (a1 = b.children, b1 = "", aa.Children.forEach(a1, function(a) {
}, b), a1 = b.children, b1 = "", aa.Children.forEach(a1, function(a) {
null != a && (b1 += a);
}), b1)) && (a.children = b), a;
}), (b = b1) && (a.children = b), a;
}
function fb(a, b, c, d) {
if (a = a.options, b) {
@ -13814,17 +13814,17 @@
}, b.memoizedState = si, b.lanes = 33554432, a) : ((c = vi({
mode: "visible",
children: a
}, b.mode, c, null)).return = b, b.child = c) : (a.memoizedState, f1 ? (d2 = (a1 = a, b1 = b, c1 = d2.children, d = d2.fallback, e = c, f = b1.mode, a1 = (g1 = a1.child).sibling, h = {
}, b.mode, c, null)).return = b, b.child = c) : (a.memoizedState, f1 ? (a1 = a, b1 = b, c1 = d2.children, d = d2.fallback, e = c, f = b1.mode, a1 = (g1 = a1.child).sibling, h = {
mode: "hidden",
children: c1
}, 0 == (2 & f) && b1.child !== g1 ? ((c1 = b1.child).childLanes = 0, c1.pendingProps = h, null !== (g1 = c1.lastEffect) ? (b1.firstEffect = c1.firstEffect, b1.lastEffect = g1, g1.nextEffect = null) : b1.firstEffect = b1.lastEffect = null) : c1 = Tg(g1, h), null !== a1 ? d = Tg(a1, d) : (d = Xg(d, f, e, null), d.flags |= 2), d.return = b1, c1.return = b1, c1.sibling = d, b1.child = c1, d), f1 = b.child, e2 = a.child.memoizedState, f1.memoizedState = null === e2 ? {
}, 0 == (2 & f) && b1.child !== g1 ? ((c1 = b1.child).childLanes = 0, c1.pendingProps = h, null !== (g1 = c1.lastEffect) ? (b1.firstEffect = c1.firstEffect, b1.lastEffect = g1, g1.nextEffect = null) : b1.firstEffect = b1.lastEffect = null) : c1 = Tg(g1, h), null !== a1 ? d = Tg(a1, d) : (d = Xg(d, f, e, null), d.flags |= 2), d.return = b1, c1.return = b1, c1.sibling = d, b1.child = c1, d2 = d, f1 = b.child, e2 = a.child.memoizedState, f1.memoizedState = null === e2 ? {
baseLanes: c
} : {
baseLanes: e2.baseLanes | c
}, f1.childLanes = a.childLanes & ~c, b.memoizedState = si, d2) : (c = (a2 = a, b2 = b, c2 = d2.children, d1 = c, a2 = (e1 = a2.child).sibling, c2 = Tg(e1, {
}, f1.childLanes = a.childLanes & ~c, b.memoizedState = si, d2) : (a2 = a, b2 = b, c2 = d2.children, d1 = c, a2 = (e1 = a2.child).sibling, c2 = Tg(e1, {
mode: "visible",
children: c2
}), 0 == (2 & b2.mode) && (c2.lanes = d1), c2.return = b2, c2.sibling = null, null !== a2 && (a2.nextEffect = null, a2.flags = 8, b2.firstEffect = b2.lastEffect = a2), b2.child = c2), b.memoizedState = null, c));
}), 0 == (2 & b2.mode) && (c2.lanes = d1), c2.return = b2, c2.sibling = null, null !== a2 && (a2.nextEffect = null, a2.flags = 8, b2.firstEffect = b2.lastEffect = a2), c = b2.child = c2, b.memoizedState = null, c));
}
function ui(a, b, c, d) {
var e = a.mode, f = a.child;
@ -16567,14 +16567,14 @@
}
if (h) return d = d(h = a), a = "" === e ? "." + N(h, 0) : e, Array.isArray(d) ? (c = "", null != a && (c = a.replace(M, "$&/") + "/"), O(d, b, c, "", function(a) {
return a;
})) : null != d && (L(d) && (d = (a1 = d, b1 = c + (!d.key || h && h.key === d.key ? "" : ("" + d.key).replace(M, "$&/") + "/") + a, {
})) : null != d && (L(d) && (a1 = d, b1 = c + (!d.key || h && h.key === d.key ? "" : ("" + d.key).replace(M, "$&/") + "/") + a, d = {
$$typeof: n,
type: a1.type,
key: b1,
ref: a1.ref,
props: a1.props,
_owner: a1._owner
})), b.push(d)), 1;
}), b.push(d)), 1;
if (h = 0, e = "" === e ? "." : e + ":", Array.isArray(a)) for(var g = 0; g < a.length; g++){
var f = e + N(k = a[g], g);
h += O(k, b, c, f, d);

View File

@ -1309,9 +1309,9 @@
d = !0;
}
let b1;
d || (c = (b1 = "", xa(c, function(c, d) {
d || (b1 = "", xa(c, function(c, d) {
b1 += d, b1 += ":", b1 += c, b1 += "\r\n";
}), b1), "string" == typeof a ? null != c && encodeURIComponent(String(c)) : R(a, b, c));
}), c = b1, "string" == typeof a ? null != c && encodeURIComponent(String(c)) : R(a, b, c));
}
function Hd(a, b, c) {
return c && c.internalChannelParams && c.internalChannelParams[a] || b;
@ -1459,7 +1459,7 @@
if ("" != d1.i) b && Pc(d1, b + "." + d1.i), Qc(d1, d1.m);
else {
const e1 = l.location;
d1 = (a2 = e1.protocol, b1 = b ? b + "." + e1.hostname : e1.hostname, c1 = +e1.port, d = c, e = new U(null, void 0), a2 && Oc(e, a2), b1 && Pc(e, b1), c1 && Qc(e, c1), d && (e.l = d), e);
a2 = e1.protocol, b1 = b ? b + "." + e1.hostname : e1.hostname, c1 = +e1.port, d = c, e = new U(null, void 0), a2 && Oc(e, a2), b1 && Pc(e, b1), c1 && Qc(e, c1), d && (e.l = d), d1 = e;
}
return a.aa && xa(a.aa, function(e, f) {
R(d1, f, e);

View File

@ -751,13 +751,13 @@
function configFromRFC2822(config) {
var weekdayStr, parsedInput, config1, year, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr, result, parsedArray, match = rfc2822.exec((0, config._i).replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, ""));
if (match) {
if (parsedArray = (yearStr = match[4], monthStr = match[3], dayStr = match[2], hourStr = match[5], minuteStr = match[6], secondStr = match[7], result = [
if (yearStr = match[4], monthStr = match[3], dayStr = match[2], hourStr = match[5], minuteStr = match[6], secondStr = match[7], result = [
(year = parseInt(yearStr, 10)) <= 49 ? 2000 + year : year <= 999 ? 1900 + year : year,
defaultLocaleMonthsShort.indexOf(monthStr),
parseInt(dayStr, 10),
parseInt(hourStr, 10),
parseInt(minuteStr, 10),
], secondStr && result.push(parseInt(secondStr, 10)), result), weekdayStr = match[1], parsedInput = parsedArray, config1 = config, weekdayStr && defaultLocaleWeekdaysShort.indexOf(weekdayStr) !== new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay() && (getParsingFlags(config1).weekdayMismatch = !0, config1._isValid = !1, 1)) return;
], secondStr && result.push(parseInt(secondStr, 10)), parsedArray = result, weekdayStr = match[1], parsedInput = parsedArray, config1 = config, weekdayStr && defaultLocaleWeekdaysShort.indexOf(weekdayStr) !== new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay() && (getParsingFlags(config1).weekdayMismatch = !0, config1._isValid = !1, 1)) return;
config._a = parsedArray, config._tzm = function(obsOffset, militaryOffset, numOffset) {
if (obsOffset) return obsOffsets[obsOffset];
if (militaryOffset) return 0;
@ -772,7 +772,7 @@
function configFromArray(config) {
var config1, w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek, config2, nowValue, i, date, currentDate, expectedWeekday, yearToUse, input = [];
if (!config._d) {
for(currentDate = (config2 = config, nowValue = new Date(hooks.now()), config2._useUTC ? [
for(config2 = config, nowValue = new Date(hooks.now()), currentDate = config2._useUTC ? [
nowValue.getUTCFullYear(),
nowValue.getUTCMonth(),
nowValue.getUTCDate(),
@ -780,7 +780,7 @@
nowValue.getFullYear(),
nowValue.getMonth(),
nowValue.getDate(),
]), config._w && null == config._a[2] && null == config._a[1] && (null != (w = (config1 = config)._w).GG || null != w.W || null != w.E ? (dow = 1, doy = 4, weekYear = defaults(w.GG, config1._a[0], weekOfYear(createLocal(), 1, 4).year), week = defaults(w.W, 1), ((weekday = defaults(w.E, 1)) < 1 || weekday > 7) && (weekdayOverflow = !0)) : (dow = config1._locale._week.dow, doy = config1._locale._week.doy, curWeek = weekOfYear(createLocal(), dow, doy), weekYear = defaults(w.gg, config1._a[0], curWeek.year), week = defaults(w.w, curWeek.week), null != w.d ? ((weekday = w.d) < 0 || weekday > 6) && (weekdayOverflow = !0) : null != w.e ? (weekday = w.e + dow, (w.e < 0 || w.e > 6) && (weekdayOverflow = !0)) : weekday = dow), week < 1 || week > weeksInYear(weekYear, dow, doy) ? getParsingFlags(config1)._overflowWeeks = !0 : null != weekdayOverflow ? getParsingFlags(config1)._overflowWeekday = !0 : (temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), config1._a[0] = temp.year, config1._dayOfYear = temp.dayOfYear)), null != config._dayOfYear && (yearToUse = defaults(config._a[0], currentDate[0]), (config._dayOfYear > daysInYear(yearToUse) || 0 === config._dayOfYear) && (getParsingFlags(config)._overflowDayOfYear = !0), date = createUTCDate(yearToUse, 0, config._dayOfYear), config._a[1] = date.getUTCMonth(), config._a[2] = date.getUTCDate()), i = 0; i < 3 && null == config._a[i]; ++i)config._a[i] = input[i] = currentDate[i];
], config._w && null == config._a[2] && null == config._a[1] && (null != (w = (config1 = config)._w).GG || null != w.W || null != w.E ? (dow = 1, doy = 4, weekYear = defaults(w.GG, config1._a[0], weekOfYear(createLocal(), 1, 4).year), week = defaults(w.W, 1), ((weekday = defaults(w.E, 1)) < 1 || weekday > 7) && (weekdayOverflow = !0)) : (dow = config1._locale._week.dow, doy = config1._locale._week.doy, curWeek = weekOfYear(createLocal(), dow, doy), weekYear = defaults(w.gg, config1._a[0], curWeek.year), week = defaults(w.w, curWeek.week), null != w.d ? ((weekday = w.d) < 0 || weekday > 6) && (weekdayOverflow = !0) : null != w.e ? (weekday = w.e + dow, (w.e < 0 || w.e > 6) && (weekdayOverflow = !0)) : weekday = dow), week < 1 || week > weeksInYear(weekYear, dow, doy) ? getParsingFlags(config1)._overflowWeeks = !0 : null != weekdayOverflow ? getParsingFlags(config1)._overflowWeekday = !0 : (temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), config1._a[0] = temp.year, config1._dayOfYear = temp.dayOfYear)), null != config._dayOfYear && (yearToUse = defaults(config._a[0], currentDate[0]), (config._dayOfYear > daysInYear(yearToUse) || 0 === config._dayOfYear) && (getParsingFlags(config)._overflowDayOfYear = !0), date = createUTCDate(yearToUse, 0, config._dayOfYear), config._a[1] = date.getUTCMonth(), config._a[2] = date.getUTCDate()), i = 0; i < 3 && null == config._a[i]; ++i)config._a[i] = input[i] = currentDate[i];
for(; i < 7; i++)config._a[i] = input[i] = null == config._a[i] ? 2 === i ? 1 : 0 : config._a[i];
24 === config._a[3] && 0 === config._a[4] && 0 === config._a[5] && 0 === config._a[6] && (config._nextDay = !0, config._a[3] = 0), config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input), expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay(), null != config._tzm && config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm), config._nextDay && (config._a[3] = 24), config._w && void 0 !== config._w.d && config._w.d !== expectedWeekday && (getParsingFlags(config).weekdayMismatch = !0);
}
@ -945,10 +945,10 @@
h: parseIso(match[6], sign),
m: parseIso(match[7], sign),
s: parseIso(match[8], sign)
}) : null == duration ? duration = {} : "object" == typeof duration && ("from" in duration || "to" in duration) && (diffRes = (base = createLocal(duration.from), other = createLocal(duration.to), base.isValid() && other.isValid() ? (other = cloneWithOffset(other, base), base.isBefore(other) ? res = positiveMomentsDifference(base, other) : ((res = positiveMomentsDifference(other, base)).milliseconds = -res.milliseconds, res.months = -res.months), res) : {
}) : null == duration ? duration = {} : "object" == typeof duration && ("from" in duration || "to" in duration) && (base = createLocal(duration.from), other = createLocal(duration.to), diffRes = base.isValid() && other.isValid() ? (other = cloneWithOffset(other, base), base.isBefore(other) ? res = positiveMomentsDifference(base, other) : ((res = positiveMomentsDifference(other, base)).milliseconds = -res.milliseconds, res.months = -res.months), res) : {
milliseconds: 0,
months: 0
}), (duration = {}).ms = diffRes.milliseconds, duration.M = diffRes.months), ret = new Duration(duration), isDuration(input) && hasOwnProp(input, "_locale") && (ret._locale = input._locale), isDuration(input) && hasOwnProp(input, "_isValid") && (ret._isValid = input._isValid), ret;
}, (duration = {}).ms = diffRes.milliseconds, duration.M = diffRes.months), ret = new Duration(duration), isDuration(input) && hasOwnProp(input, "_locale") && (ret._locale = input._locale), isDuration(input) && hasOwnProp(input, "_isValid") && (ret._isValid = input._isValid), ret;
}
function parseIso(inp, sign) {
var res = inp && parseFloat(inp.replace(",", "."));
@ -1470,7 +1470,7 @@
}, proto.date = getSetDayOfMonth, proto.day = proto.days = function(input) {
if (!this.isValid()) return null != input ? this : NaN;
var input1, locale, day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
return null == input ? day : (input = (input1 = input, locale = this.localeData(), "string" != typeof input1 ? input1 : isNaN(input1) ? "number" == typeof (input1 = locale.weekdaysParse(input1)) ? input1 : null : parseInt(input1, 10)), this.add(input - day, "d"));
return null == input ? day : (input1 = input, locale = this.localeData(), input = "string" != typeof input1 ? input1 : isNaN(input1) ? "number" == typeof (input1 = locale.weekdaysParse(input1)) ? input1 : null : parseInt(input1, 10), this.add(input - day, "d"));
}, proto.weekday = function(input) {
if (!this.isValid()) return null != input ? this : NaN;
var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
@ -1770,7 +1770,7 @@
}, proto$2.months = months, proto$2.years = years, proto$2.humanize = function(argWithSuffix, argThresholds) {
if (!this.isValid()) return this.localeData().invalidDate();
var locale, output, withoutSuffix, thresholds1, duration, seconds, minutes, hours, days, months, weeks, years, a, withSuffix = !1, th = thresholds;
return "object" == typeof argWithSuffix && (argThresholds = argWithSuffix, argWithSuffix = !1), "boolean" == typeof argWithSuffix && (withSuffix = argWithSuffix), "object" == typeof argThresholds && (th = Object.assign({}, thresholds, argThresholds), null != argThresholds.s && null == argThresholds.ss && (th.ss = argThresholds.s - 1)), locale = this.localeData(), output = (withoutSuffix = !withSuffix, thresholds1 = th, duration = createDuration(this).abs(), seconds = round(duration.as("s")), minutes = round(duration.as("m")), hours = round(duration.as("h")), days = round(duration.as("d")), months = round(duration.as("M")), weeks = round(duration.as("w")), years = round(duration.as("y")), a = seconds <= thresholds1.ss && [
return "object" == typeof argWithSuffix && (argThresholds = argWithSuffix, argWithSuffix = !1), "boolean" == typeof argWithSuffix && (withSuffix = argWithSuffix), "object" == typeof argThresholds && (th = Object.assign({}, thresholds, argThresholds), null != argThresholds.s && null == argThresholds.ss && (th.ss = argThresholds.s - 1)), locale = this.localeData(), withoutSuffix = !withSuffix, thresholds1 = th, duration = createDuration(this).abs(), seconds = round(duration.as("s")), minutes = round(duration.as("m")), hours = round(duration.as("h")), days = round(duration.as("d")), months = round(duration.as("M")), weeks = round(duration.as("w")), years = round(duration.as("y")), a = seconds <= thresholds1.ss && [
"s",
seconds
] || seconds < thresholds1.s && [
@ -1806,7 +1806,7 @@
] || [
"yy",
years
])[2] = withoutSuffix, a[3] = +this > 0, a[4] = locale, substituteTimeAgo.apply(null, a)), withSuffix && (output = locale.pastFuture(+this, output)), locale.postformat(output);
])[2] = withoutSuffix, a[3] = +this > 0, a[4] = locale, output = substituteTimeAgo.apply(null, a), withSuffix && (output = locale.pastFuture(+this, output)), locale.postformat(output);
}, proto$2.toISOString = toISOString$1, proto$2.toString = toISOString$1, proto$2.toJSON = toISOString$1, proto$2.locale = locale, proto$2.localeData = localeData, proto$2.toIsoString = deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", toISOString$1), proto$2.lang = lang, addFormatToken("X", 0, 0, "unix"), addFormatToken("x", 0, 0, "valueOf"), addRegexToken("x", matchSigned), addRegexToken("X", /[+-]?\d+(\.\d{1,3})?/), addParseToken("X", function(input, array, config) {
config._d = new Date(1000 * parseFloat(input));
}), addParseToken("x", function(input, array, config) {

View File

@ -45,10 +45,10 @@ var ItemsList = function(Component) {
var _this, call;
return !function(instance, Constructor) {
if (!(instance instanceof Constructor)) throw TypeError("Cannot call a class as a function");
}(this, ItemsList), _this = (call = _getPrototypeOf(ItemsList).apply(this, arguments), call && ("object" == (call && "undefined" != typeof Symbol && call.constructor === Symbol ? "symbol" : typeof call) || "function" == typeof call) ? call : function(self) {
}(this, ItemsList), call = _getPrototypeOf(ItemsList).apply(this, arguments), (_this = call && ("object" == (call && "undefined" != typeof Symbol && call.constructor === Symbol ? "symbol" : typeof call) || "function" == typeof call) ? call : function(self) {
if (void 0 === self) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
return self;
}(this)), _this.storeHighlightedItemReference = function(highlightedItem) {
}(this)).storeHighlightedItemReference = function(highlightedItem) {
_this.props.onHighlightedItemChange(null === highlightedItem ? null : highlightedItem.item);
}, _this;
}

View File

@ -1,9 +1,9 @@
export function ItemsList() {
_classCallCheck(this, ItemsList);
for(var _ref, _temp, _this, _ret, _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
return _ret = (_temp = _this = _possibleConstructorReturn(this, (_ref = ItemsList.__proto__ || Object.getPrototypeOf(ItemsList)).call.apply(_ref, [
for(var _ref, _temp, _this, _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
return _temp = _this = _possibleConstructorReturn(this, (_ref = ItemsList.__proto__ || Object.getPrototypeOf(ItemsList)).call.apply(_ref, [
this
].concat(args))), _this.storeHighlightedItemReference = function(highlightedItem) {
_this.props.onHighlightedItemChange(null === highlightedItem ? null : highlightedItem.item);
}, _temp), _possibleConstructorReturn(_this, _ret);
}, _possibleConstructorReturn(_this, _temp);
}

View File

@ -1616,10 +1616,10 @@
editHandlers.keydown = function(view, event) {
if (view.shiftKey = 16 == event.keyCode || event.shiftKey, !inOrNearComposition(view, event)) {
if (229 != event.keyCode && view.domObserver.forceFlush(), view.lastKeyCode = event.keyCode, view.lastKeyCodeTime = Date.now(), !result.ios || 13 != event.keyCode || event.ctrlKey || event.altKey || event.metaKey) {
var result1, code, mods;
var result1, code;
view.someProp("handleKeyDown", function(f) {
return f(view, event);
}) || (code = event.keyCode, mods = (result1 = "", event.ctrlKey && (result1 += "c"), event.metaKey && (result1 += "m"), event.altKey && (result1 += "a"), event.shiftKey && (result1 += "s"), result1), 8 == code || result.mac && 72 == code && "c" == mods ? stopNativeHorizontalDelete(view, -1) || skipIgnoredNodesLeft(view) : 46 == code || result.mac && 68 == code && "c" == mods ? stopNativeHorizontalDelete(view, 1) || skipIgnoredNodesRight(view) : 13 == code || 27 == code || (37 == code ? selectHorizontally(view, -1, mods) || skipIgnoredNodesLeft(view) : 39 == code ? selectHorizontally(view, 1, mods) || skipIgnoredNodesRight(view) : 38 == code ? selectVertically(view, -1, mods) || skipIgnoredNodesLeft(view) : 40 == code ? function(view) {
}) || (code = event.keyCode, result1 = "", event.ctrlKey && (result1 += "c"), event.metaKey && (result1 += "m"), event.altKey && (result1 += "a"), event.shiftKey && (result1 += "s"), 8 == code || result.mac && 72 == code && "c" == result1 ? stopNativeHorizontalDelete(view, -1) || skipIgnoredNodesLeft(view) : 46 == code || result.mac && 68 == code && "c" == result1 ? stopNativeHorizontalDelete(view, 1) || skipIgnoredNodesRight(view) : 13 == code || 27 == code || (37 == code ? selectHorizontally(view, -1, result1) || skipIgnoredNodesLeft(view) : 39 == code ? selectHorizontally(view, 1, result1) || skipIgnoredNodesRight(view) : 38 == code ? selectVertically(view, -1, result1) || skipIgnoredNodesLeft(view) : 40 == code ? function(view) {
if (result.safari && !(view.state.selection.$head.parentOffset > 0)) {
var ref = view.root.getSelection(), focusNode = ref.focusNode, focusOffset = ref.focusOffset;
if (focusNode && 1 == focusNode.nodeType && 0 == focusOffset && focusNode.firstChild && "false" == focusNode.firstChild.contentEditable) {
@ -1629,7 +1629,7 @@
}, 20);
}
}
}(view) || selectVertically(view, 1, mods) || skipIgnoredNodesRight(view) : mods == (result.mac ? "m" : "c") && (66 == code || 73 == code || 89 == code || 90 == code))) ? event.preventDefault() : setSelectionOrigin(view, "key");
}(view) || selectVertically(view, 1, result1) || skipIgnoredNodesRight(view) : result1 == (result.mac ? "m" : "c") && (66 == code || 73 == code || 89 == code || 90 == code))) ? event.preventDefault() : setSelectionOrigin(view, "key");
} else {
var now = Date.now();
view.lastIOSEnter = now, view.lastIOSEnterFallbackTimeout = setTimeout(function() {
@ -2570,7 +2570,7 @@
}(view.dom, coords, box))) return null;
}
if (result.safari) for(var p = elt; node && p; p = parentNode(p))p.draggable && (node = offset = null);
if (elt = (dom = elt, coords1 = coords, (parent = dom.parentNode) && /^li$/i.test(parent.nodeName) && coords1.left < dom.getBoundingClientRect().left ? parent : dom), node) {
if (dom = elt, coords1 = coords, elt = (parent = dom.parentNode) && /^li$/i.test(parent.nodeName) && coords1.left < dom.getBoundingClientRect().left ? parent : dom, node) {
if (result.gecko && 1 == node.nodeType && (offset = Math.min(offset, node.childNodes.length)) < node.childNodes.length) {
var dom, coords1, parent, box$1, next = node.childNodes[offset];
"IMG" == next.nodeName && (box$1 = next.getBoundingClientRect()).right <= coords.left && box$1.bottom > coords.top && offset++;

View File

@ -78,12 +78,12 @@
} else node = {}, _this3.options.attrkey in obj && (node[_this3.options.attrkey] = obj[_this3.options.attrkey], delete obj[_this3.options.attrkey]), !_this3.options.charsAsChildren && _this3.options.charkey in obj && (node[_this3.options.charkey] = obj[_this3.options.charkey], delete obj[_this3.options.charkey]), Object.getOwnPropertyNames(obj).length > 0 && (node[_this3.options.childkey] = obj), obj = node;
}
return stack.length > 0 ? _this3.assignOrPush(s, nodeName, obj) : (_this3.options.explicitRoot && (old = obj, (obj = {})[nodeName] = old), _this3.resultObject = obj, _this3.saxParser.ended = !0, _this3.emit("end", _this3.resultObject));
}), ontext = (_this4 = this, function(text) {
}), _this4 = this, ontext = function(text) {
var charChild, s;
if (s = stack[stack.length - 1]) return s[charkey] += text, _this4.options.explicitChildren && _this4.options.preserveChildrenOrder && _this4.options.charsAsChildren && (_this4.options.includeWhiteChars || "" !== text.replace(/\\n/g, "").trim()) && (s[_this4.options.childkey] = s[_this4.options.childkey] || [], (charChild = {
"#name": "__text__"
})[charkey] = text, _this4.options.normalize && (charChild[charkey] = charChild[charkey].replace(/\s{2,}/g, " ").trim()), s[_this4.options.childkey].push(charChild)), s;
}), this.saxParser.ontext = ontext, this.saxParser.oncdata = function(text) {
}, this.saxParser.ontext = ontext, this.saxParser.oncdata = function(text) {
var s;
if (s = ontext(text)) return s.cdata = !0;
};

View File

@ -626,11 +626,11 @@
b: parseIntFromHex(match[3] + match[3]),
format: named ? "name" : "hex"
};
}(color2)), "object" == typeof color2 && (isValidCSSUnit(color2.r) && isValidCSSUnit(color2.g) && isValidCSSUnit(color2.b) ? (rgb = (r = color2.r, g = color2.g, b = color2.b, {
}(color2)), "object" == typeof color2 && (isValidCSSUnit(color2.r) && isValidCSSUnit(color2.g) && isValidCSSUnit(color2.b) ? (r = color2.r, g = color2.g, b = color2.b, rgb = {
r: 255 * bound01(r, 255),
g: 255 * bound01(g, 255),
b: 255 * bound01(b, 255)
}), ok = !0, format = "%" === String(color2.r).substr(-1) ? "prgb" : "rgb") : isValidCSSUnit(color2.h) && isValidCSSUnit(color2.s) && isValidCSSUnit(color2.v) ? (s1 = convertToPercentage(color2.s), v1 = convertToPercentage(color2.v), rgb = (h = color2.h, s = s1, v = v1, h = 6 * bound01(h, 360), s = bound01(s, 100), v = bound01(v, 100), i = Math.floor(h), f = h - i, p = v * (1 - s), q = v * (1 - f * s), t = v * (1 - (1 - f) * s), r1 = [
}, ok = !0, format = "%" === String(color2.r).substr(-1) ? "prgb" : "rgb") : isValidCSSUnit(color2.h) && isValidCSSUnit(color2.s) && isValidCSSUnit(color2.v) ? (s1 = convertToPercentage(color2.s), v1 = convertToPercentage(color2.v), h = color2.h, s = s1, v = v1, h = 6 * bound01(h, 360), s = bound01(s, 100), v = bound01(v, 100), i = Math.floor(h), f = h - i, p = v * (1 - s), q = v * (1 - f * s), t = v * (1 - (1 - f) * s), r1 = [
v,
q,
p,
@ -644,7 +644,7 @@
q,
p,
p
][mod], {
][mod], rgb = {
r: 255 * r1,
g: 255 * g1,
b: 255 * [
@ -655,7 +655,7 @@
v,
q
][mod]
}), ok = !0, format = "hsv") : isValidCSSUnit(color2.h) && isValidCSSUnit(color2.s) && isValidCSSUnit(color2.l) && (s1 = convertToPercentage(color2.s), l = convertToPercentage(color2.l), rgb = function(h, s, l) {
}, ok = !0, format = "hsv") : isValidCSSUnit(color2.h) && isValidCSSUnit(color2.s) && isValidCSSUnit(color2.l) && (s1 = convertToPercentage(color2.s), l = convertToPercentage(color2.l), rgb = function(h, s, l) {
if (h = bound01(h, 360), s = bound01(s, 100), l = bound01(l, 100), 0 === s) g = l, b = l, r = l;
else {
var r, g, b, q = l < 0.5 ? l * (1 + s) : l + s - l * s, p = 2 * l - q;

View File

@ -1204,7 +1204,7 @@
}
function prepareMeasureForLine(cm, line) {
var cm1, line1, lineN, view, built, lineN1 = lineNo(line), view1 = findViewForLine(cm, lineN1);
view1 && !view1.text ? view1 = null : view1 && view1.changes && (updateLineForChanges(cm, view1, lineN1, getDimensions(cm)), cm.curOp.forceUpdate = !0), view1 || (view1 = (cm1 = cm, line1 = line, line1 = visualLine(line1), lineN = lineNo(line1), (view = cm1.display.externalMeasured = new LineView(cm1.doc, line1, lineN)).lineN = lineN, built = view.built = buildLineContent(cm1, view), view.text = built.pre, removeChildrenAndAdd(cm1.display.lineMeasure, built.pre), view));
view1 && !view1.text ? view1 = null : view1 && view1.changes && (updateLineForChanges(cm, view1, lineN1, getDimensions(cm)), cm.curOp.forceUpdate = !0), view1 || (cm1 = cm, line1 = line, line1 = visualLine(line1), lineN = lineNo(line1), (view = cm1.display.externalMeasured = new LineView(cm1.doc, line1, lineN)).lineN = lineN, built = view.built = buildLineContent(cm1, view), view.text = built.pre, removeChildrenAndAdd(cm1.display.lineMeasure, built.pre), view1 = view);
var info = mapFromLineView(view1, line, lineN1);
return {
line: line,
@ -2535,14 +2535,14 @@
function setSelectionNoUndo(doc, sel, options) {
if (hasHandler(doc, "beforeSelectionChange") || doc.cm && hasHandler(doc.cm, "beforeSelectionChange")) {
var sel1, obj;
sel = (obj = {
obj = {
ranges: (sel1 = sel).ranges,
update: function(ranges) {
this.ranges = [];
for(var i = 0; i < ranges.length; i++)this.ranges[i] = new Range(clipPos(doc, ranges[i].anchor), clipPos(doc, ranges[i].head));
},
origin: options && options.origin
}, (signal(doc, "beforeSelectionChange", doc, obj), doc.cm && signal(doc.cm, "beforeSelectionChange", doc.cm, obj), obj.ranges != sel1.ranges) ? normalizeSelection(doc.cm, obj.ranges, obj.ranges.length - 1) : sel1);
}, signal(doc, "beforeSelectionChange", doc, obj), doc.cm && signal(doc.cm, "beforeSelectionChange", doc.cm, obj), sel = obj.ranges != sel1.ranges ? normalizeSelection(doc.cm, obj.ranges, obj.ranges.length - 1) : sel1;
}
var bias = options && options.bias || (0 > cmp(sel.primary().head, doc.sel.primary().head) ? -1 : 1);
setSelectionInner(doc, skipAtomicInSelection(doc, sel, bias, !0)), !(options && !1 === options.scroll) && doc.cm && "nocursor" != doc.cm.getOption("readOnly") && ensureCursorVisible(doc.cm);

View File

@ -38,7 +38,7 @@
}) : obj[key] = value, obj;
}
__webpack_require__(6774);
var fn, _ref, initBranch = (_ref = (fn = _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
var fn, _ref, initBranch = (fn = _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
return _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default().wrap(function(_ctx) {
for(;;)switch(_ctx.prev = _ctx.next){
case 0:
@ -67,7 +67,7 @@
return _ctx.stop();
}
}, _callee);
}), function() {
}), _ref = function() {
var self1 = this, args = arguments;
return new Promise(function(resolve, reject) {
var gen = fn.apply(self1, args);
@ -79,7 +79,7 @@
}
_next(void 0);
});
}), function() {
}, function() {
return _ref.apply(this, arguments);
});
__webpack_exports__.default = function(param) {

View File

@ -9074,12 +9074,12 @@
}
function moveDeltasByOne(redoStack, d) {
var d1;
d = (d1 = d, {
d1 = d, d = {
start: clonePos(d1.start),
end: clonePos(d1.end),
action: d1.action,
lines: d1.lines.slice()
});
};
for(var j = redoStack.length; j--;){
for(var deltaSet = redoStack[j], i = 0; i < deltaSet.length; i++){
var xformed = xform(deltaSet[i], d);

View File

@ -1978,10 +1978,10 @@
var t, r, n, i, o, a = (null === (i = e.props) || void 0 === i ? void 0 : i.size) || "A4", u = parseFloat((null === (o = e.props) || void 0 === o ? void 0 : o.dpi) || 72), l = typeof a, s = a;
return "string" === l ? s = e7(e6[a.toUpperCase()]) : Array.isArray(a) ? s = e7(a) : "number" === l && (s = e7([
a
])), s = (t = s, r = u / 72, {
])), t = s, r = u / 72, s = {
width: t.width ? t.width * r : t.width,
height: t.height ? t.height * r : t.height
}), "landscape" === e8(e) ? {
}, "landscape" === e8(e) ? {
width: (n = s).height,
height: n.width
} : s;
@ -21126,13 +21126,13 @@
t.ended = !0, t.sync ? C(e) : (t.needReadable = !1, t.emittedReadable || (t.emittedReadable = !0, P(e)));
}
}(e, d);
else if (i || (c = (o = t, u.isBuffer(o) || o instanceof l || "string" == typeof o || void 0 === o || d.objectMode || (a = new m("chunk", [
else if (i || (o = t, u.isBuffer(o) || o instanceof l || "string" == typeof o || void 0 === o || d.objectMode || (a = new m("chunk", [
"string",
"Buffer",
"Uint8Array"
], o)), a)), c) _(e, c);
], o)), c = a), c) _(e, c);
else if (d.objectMode || t && t.length > 0) {
if ("string" == typeof t || d.objectMode || Object.getPrototypeOf(t) === u.prototype || (t = (s = t, u.from(s))), n) d.endEmitted ? _(e, new E()) : T(e, d, t, !0);
if ("string" == typeof t || d.objectMode || Object.getPrototypeOf(t) === u.prototype || (s = t, t = u.from(s)), n) d.endEmitted ? _(e, new E()) : T(e, d, t, !0);
else if (d.ended) _(e, new D());
else {
if (d.destroyed) return !1;
@ -21524,7 +21524,7 @@
_(this, new b());
}, A.prototype.write = function(e, t, r) {
var i, o, a, u, l, s, d, p = this._writableState, h = !1, g = !p.objectMode && (d = e, c.isBuffer(d) || d instanceof f);
return g && !c.isBuffer(e) && (e = (i = e, c.from(i))), ("function" == typeof t && (r = t, t = null), g ? t = "buffer" : t || (t = p.defaultEncoding), "function" != typeof r && (r = x), p.ending) ? (o = r, _(this, a = new w()), n.nextTick(o, a)) : (g || (u = e, l = r, null === u ? s = new D() : "string" == typeof u || p.objectMode || (s = new y("chunk", [
return g && !c.isBuffer(e) && (i = e, e = c.from(i)), ("function" == typeof t && (r = t, t = null), g ? t = "buffer" : t || (t = p.defaultEncoding), "function" != typeof r && (r = x), p.ending) ? (o = r, _(this, a = new w()), n.nextTick(o, a)) : (g || (u = e, l = r, null === u ? s = new D() : "string" == typeof u || p.objectMode || (s = new y("chunk", [
"string",
"Buffer"
], u)), !s || (_(this, s), n.nextTick(l, s), 0))) && (p.pendingcb++, h = function(e, t, r, n, i, o) {
@ -21891,13 +21891,13 @@
function i() {}
e.exports = function e(t, r, o) {
if ("function" == typeof r) return e(t, null, r);
r || (r = {}), o = (a = o || i, u = !1, function() {
r || (r = {}), a = o || i, u = !1, o = function() {
if (!u) {
u = !0;
for(var e = arguments.length, t = Array(e), r = 0; r < e; r++)t[r] = arguments[r];
a.apply(this, t);
}
});
};
var a, u, l = r.readable || !1 !== r.readable && t.readable, s = r.writable || !1 !== r.writable && t.writable, c = function() {
t.writable || d();
}, f = t._writableState && t._writableState.finished, d = function() {
@ -21972,14 +21972,14 @@
}
function f() {
var e;
return (f = (e = function*() {
return e = function*() {
try {
var e = yield u.next(), t = e.value;
e.done ? l.push(null) : l.push((yield t)) ? c() : s = !1;
} catch (r) {
l.destroy(r);
}
}, function() {
}, (f = function() {
var t = this, r = arguments;
return new Promise(function(i, o) {
var a = e.apply(t, r);
@ -21991,7 +21991,7 @@
}
u(void 0);
});
})).apply(this, arguments);
}).apply(this, arguments);
}
return l._read = function() {
s || (s = !0, c());
@ -22016,11 +22016,11 @@
if (Array.isArray(i[0]) && (i = i[0]), i.length < 2) throw new o("streams");
var p = i.map(function(t, o) {
var u, s, c, f, h, y, g = o < i.length - 1;
return u = o > 0, s = (c = s = function(t) {
return u = o > 0, c = s = function(t) {
e || (e = t), t && p.forEach(l), g || (p.forEach(l), d(e));
}, f = !1, function() {
}, f = !1, s = function() {
f || (f = !0, c.apply(void 0, arguments));
}), h = !1, t.on("close", function() {
}, h = !1, t.on("close", function() {
h = !0;
}), void 0 === n && (n = r(494)), n(t, {
readable: g,
@ -27996,10 +27996,10 @@
for(r = t; r.parent;)r = r.parent;
return r._startOffset || 0;
}
}).call(this), this.options.relativeTo && (u += this.relativeToGetter(t)), a = o + u, null == this.type) ? a : (l = null, n = (s = this, function() {
}).call(this), this.options.relativeTo && (u += this.relativeToGetter(t)), a = o + u, null == this.type) ? a : (l = null, s = this, n = function() {
var r;
return null != l || (r = e.pos, e.pos = a, l = s.type.decode(e, t), e.pos = r), l;
}), this.options.lazy) ? new i.PropertyDescriptor({
}, this.options.lazy) ? new i.PropertyDescriptor({
get: n
}) : n();
}, e.prototype.size = function(e, t) {

View File

@ -3730,19 +3730,19 @@
} else "$?" === h1.data ? (b.flags |= 128, b.child = a.child, b = zj.bind(null, a), h1._reactRetry = b, b = null) : (c = e2.treeContext, eh = Kf(h1.nextSibling), dh = b, I = !0, fh = null, null !== c && (Vg[Wg++] = Yg, Vg[Wg++] = Zg, Vg[Wg++] = Xg, Yg = c.id, Zg = c.overflow, Xg = b), b = xj(b, b.pendingProps.children), b.flags |= 4096);
return b;
}
return f1 ? (d2 = (a1 = a, b1 = b, c1 = d2.children, d = d2.fallback, e = c, f = b1.mode, g = (a1 = a1.child).sibling, h = {
return f1 ? (a1 = a, b1 = b, c1 = d2.children, d = d2.fallback, e = c, f = b1.mode, g = (a1 = a1.child).sibling, h = {
mode: "hidden",
children: c1
}, 0 == (1 & f) && b1.child !== a1 ? ((c1 = b1.child).childLanes = 0, c1.pendingProps = h, b1.deletions = null) : (c1 = th(a1, h)).subtreeFlags = 14680064 & a1.subtreeFlags, null !== g ? d = th(g, d) : (d = xh(d, f, e, null), d.flags |= 2), d.return = b1, c1.return = b1, c1.sibling = d, b1.child = c1, d), f1 = b.child, e2 = a.child.memoizedState, f1.memoizedState = null === e2 ? tj(c) : (a3 = e2, b3 = c, {
}, 0 == (1 & f) && b1.child !== a1 ? ((c1 = b1.child).childLanes = 0, c1.pendingProps = h, b1.deletions = null) : (c1 = th(a1, h)).subtreeFlags = 14680064 & a1.subtreeFlags, null !== g ? d = th(g, d) : (d = xh(d, f, e, null), d.flags |= 2), d.return = b1, c1.return = b1, c1.sibling = d, b1.child = c1, d2 = d, f1 = b.child, e2 = a.child.memoizedState, f1.memoizedState = null === e2 ? tj(c) : (a3 = e2, b3 = c, {
baseLanes: a3.baseLanes | b3,
cachePool: null,
transitions: a3.transitions
}), f1.childLanes = a.childLanes & ~c, b.memoizedState = sj, d2) : (c = (a2 = a, b2 = b, c2 = d2.children, d1 = c, a2 = (e1 = a2.child).sibling, c2 = th(e1, {
}), f1.childLanes = a.childLanes & ~c, b.memoizedState = sj, d2) : (a2 = a, b2 = b, c2 = d2.children, d1 = c, a2 = (e1 = a2.child).sibling, c2 = th(e1, {
mode: "visible",
children: c2
}), 0 == (1 & b2.mode) && (c2.lanes = d1), c2.return = b2, c2.sibling = null, null !== a2 && (null === (d1 = b2.deletions) ? (b2.deletions = [
a2
], b2.flags |= 16) : d1.push(a2)), b2.child = c2), b.memoizedState = null, c);
], b2.flags |= 16) : d1.push(a2)), c = b2.child = c2, b.memoizedState = null, c);
}
function xj(a, b) {
return (b = wj({
@ -4420,7 +4420,7 @@
case 536870912:
c = ic;
}
c = (a1 = c, b1 = Fk.bind(null, a), $b(a1, b1));
a1 = c, b1 = Fk.bind(null, a), c = $b(a1, b1);
}
a.callbackPriority = b, a.callbackNode = c;
}
@ -5957,14 +5957,14 @@
}
if (h) return c = c(h = a), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a) {
return a;
})) : null != c && (O(c) && (c = (a1 = c, b1 = e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a, {
})) : null != c && (O(c) && (a1 = c, b1 = e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a, c = {
$$typeof: l,
type: a1.type,
key: b1,
ref: a1.ref,
props: a1.props,
_owner: a1._owner
})), b.push(c)), 1;
}), b.push(c)), 1;
if (h = 0, d = "" === d ? "." : d + ":", I(a)) for(var g = 0; g < a.length; g++){
var f = d + Q(k = a[g], g);
h += R(k, b, e, f, c);

View File

@ -4222,7 +4222,7 @@
k = (f = f.replace(fa, "$1 $2")) + "{" + k + "}", k = 1 === w || 2 === w && L("@" + k, 3) ? "@-webkit-" + k + "@" + k : "@" + k;
break;
default:
k = f + k, 112 === h && (k = (p += k, ""));
k = f + k, 112 === h && (p += k, k = "");
}
else k = "";
} else k = M(c, X(c, f, I), k, h, a + 1);

View File

@ -7163,7 +7163,7 @@
} else q.e = e, q.r = +more;
return q;
};
}(), parseNumeric = (basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i, dotAfter = /^([^.]+)\.$/, dotBefore = /^\.([^.]+)$/, isInfinityOrNaN = /^-?(Infinity|NaN)$/, whitespaceOrPlus = /^\s*\+(?=[\w.])|^\s+|\s+$/g, function(x, str, isNum, b) {
}(), basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i, dotAfter = /^([^.]+)\.$/, dotBefore = /^\.([^.]+)$/, isInfinityOrNaN = /^-?(Infinity|NaN)$/, whitespaceOrPlus = /^\s*\+(?=[\w.])|^\s+|\s+$/g, parseNumeric = function(x, str, isNum, b) {
var base, s = isNum ? str : str.replace(whitespaceOrPlus, '');
if (isInfinityOrNaN.test(s)) x.s = isNaN(s) ? null : s < 0 ? -1 : 1;
else {
@ -7174,7 +7174,7 @@
x.s = null;
}
x.c = x.e = null;
}), P.absoluteValue = P.abs = function() {
}, P.absoluteValue = P.abs = function() {
var x = new BigNumber(this);
return x.s < 0 && (x.s = 1), x;
}, P.comparedTo = function(y, b) {
@ -7197,7 +7197,7 @@
if (m.c ? !m.c[0] : !m.s) return new BigNumber(NaN);
(isModExp = !nIsNeg && x.isInteger() && m.isInteger()) && (x = x.mod(m));
} else {
if (n.e > 9 && (x.e > 0 || x.e < -1 || (0 == x.e ? x.c[0] > 1 || nIsBig && x.c[1] >= 24e7 : x.c[0] < 8e13 || nIsBig && x.c[0] <= 9999975e7))) return k = (x.s < 0 && isOdd(n), -0), x.e > -1 && (k = 1 / k), new BigNumber(nIsNeg ? 1 / k : k);
if (n.e > 9 && (x.e > 0 || x.e < -1 || (0 == x.e ? x.c[0] > 1 || nIsBig && x.c[1] >= 24e7 : x.c[0] < 8e13 || nIsBig && x.c[0] <= 9999975e7))) return x.s < 0 && isOdd(n), k = -0, x.e > -1 && (k = 1 / k), new BigNumber(nIsNeg ? 1 / k : k);
POW_PRECISION && (k = mathceil(POW_PRECISION / LOG_BASE + 2));
}
for(nIsBig ? (half = new BigNumber(0.5), nIsNeg && (n.s = 1), nIsOdd = isOdd(n)) : nIsOdd = (i = Math.abs(+valueOf(n))) % 2, y = new BigNumber(ONE);;){

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -607,7 +607,6 @@ sequences/for_sequences/input.js
sequences/func_def_1/input.js
sequences/hoist_decl/input.js
sequences/issue_1758/input.js
sequences/lift_sequences_2/input.js
sequences/side_effects_cascade_3/input.js
switch/if_switch_typeof/input.js
template_string/regex_2/input.js

View File

@ -580,7 +580,7 @@
on: function onFn(element, type, fn, unsupported) {
if (isDefined(unsupported)) throw jqLiteMinErr("onargs", "jqLite#on() does not support the `selector` or `eventData` parameters");
var element1, events, eventHandler, events1 = jqLiteExpandoStore(element, "events"), handle = jqLiteExpandoStore(element, "handle");
events1 || jqLiteExpandoStore(element, "events", events1 = {}), handle || jqLiteExpandoStore(element, "handle", handle = (events = events1, (eventHandler = function(event, type) {
events1 || jqLiteExpandoStore(element, "events", events1 = {}), handle || jqLiteExpandoStore(element, "handle", (events = events1, (eventHandler = function(event, type) {
if (event.preventDefault || (event.preventDefault = function() {
event.returnValue = !1;
}), event.stopPropagation || (event.stopPropagation = function() {
@ -596,7 +596,7 @@
}, forEach(events[type || event.type], function(fn) {
fn.call(element, event);
}), msie <= 8 ? (event.preventDefault = null, event.stopPropagation = null, event.isDefaultPrevented = null) : (delete event.preventDefault, delete event.stopPropagation, delete event.isDefaultPrevented);
}).elem = element, eventHandler)), forEach(type.split(" "), function(type) {
}).elem = element, handle = eventHandler)), forEach(type.split(" "), function(type) {
var eventFns = events1[type];
if (!eventFns) {
if ("mouseenter" == type || "mouseleave" == type) {
@ -839,9 +839,9 @@
var document1 = $window.document;
function scroll() {
var list, result, elm, hash = $location.hash();
hash ? (elm = document1.getElementById(hash)) ? elm.scrollIntoView() : (elm = (list = document1.getElementsByName(hash), result = null, forEach(list, function(element) {
hash ? (elm = document1.getElementById(hash)) ? elm.scrollIntoView() : (list = document1.getElementsByName(hash), result = null, forEach(list, function(element) {
result || "a" !== lowercase(element.nodeName) || (result = element);
}), result)) ? elm.scrollIntoView() : "top" === hash && $window.scrollTo(0, 0) : $window.scrollTo(0, 0);
}), elm = result) ? elm.scrollIntoView() : "top" === hash && $window.scrollTo(0, 0) : $window.scrollTo(0, 0);
}
return autoScrollingEnabled && $rootScope.$watch(function() {
return $location.hash();
@ -1859,7 +1859,7 @@
parseAbsoluteUrl(appBase, this, appBase), this.$$parse = function(url) {
var path, url1, base, firstPathSegmentMatch, windowsFilePathExp, withoutBaseUrl = beginsWith(appBase, url) || beginsWith(appBaseNoFile, url), withoutHashUrl = "#" == withoutBaseUrl.charAt(0) ? beginsWith(hashPrefix, withoutBaseUrl) : this.$$html5 ? withoutBaseUrl : "";
if (!isString(withoutHashUrl)) throw $locationMinErr("ihshprfx", 'Invalid url "{0}", missing hash prefix "{1}".', url, hashPrefix);
parseAppUrl(withoutHashUrl, this, appBase), this.$$path = (path = this.$$path, url1 = withoutHashUrl, windowsFilePathExp = /^\/?.*?:(\/.*)/, (0 === url1.indexOf(appBase) && (url1 = url1.replace(appBase, "")), windowsFilePathExp.exec(url1)) ? path : (firstPathSegmentMatch = windowsFilePathExp.exec(path)) ? firstPathSegmentMatch[1] : path), this.$$compose();
parseAppUrl(withoutHashUrl, this, appBase), this.$$path = (path = this.$$path, windowsFilePathExp = /^\/?.*?:(\/.*)/, (0 === (url1 = withoutHashUrl).indexOf(appBase) && (url1 = url1.replace(appBase, "")), windowsFilePathExp.exec(url1)) ? path : (firstPathSegmentMatch = windowsFilePathExp.exec(path)) ? firstPathSegmentMatch[1] : path), this.$$compose();
}, this.$$compose = function() {
var search = toKeyValue(this.$$search), hash = this.$$hash ? "#" + encodeUriSegment(this.$$hash) : "";
this.$$url = encodePath(this.$$path) + (search ? "?" + search : "") + hash, this.$$absUrl = appBase + (this.$$url ? hashPrefix + this.$$url : "");
@ -3354,7 +3354,7 @@
function orderByFilter($parse) {
return function(array, sortPredicate, reverseOrder) {
if (!isArray(array) || !sortPredicate) return array;
sortPredicate = (obj = sortPredicate = isArray(sortPredicate) ? sortPredicate : [
obj = sortPredicate = isArray(sortPredicate) ? sortPredicate : [
sortPredicate
], iterator = function(predicate) {
var descending = !1, get = predicate || identity;
@ -3364,7 +3364,7 @@
}, descending);
}, results = [], forEach(obj, function(value, index, list) {
results.push(iterator.call(void 0, value, index, list));
}), results);
}), sortPredicate = results;
for(var obj, iterator, results, arrayCopy = [], i = 0; i < array.length; i++)arrayCopy.push(array[i]);
return arrayCopy.sort(reverseComparator(function(o1, o2) {
for(var i = 0; i < sortPredicate.length; i++){

View File

@ -290,7 +290,7 @@
null != childKey && (escapedChildKey = escapeUserProvidedKey(childKey) + "/"), mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
return c;
});
} else null != mappedChild && (isValidElement(mappedChild) && (mappedChild = (oldElement = mappedChild, newKey = escapedPrefix + (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? escapeUserProvidedKey("" + mappedChild.key) + "/" : "") + childKey, ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props))), array.push(mappedChild));
} else null != mappedChild && (isValidElement(mappedChild) && (oldElement = mappedChild, newKey = escapedPrefix + (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? escapeUserProvidedKey("" + mappedChild.key) + "/" : "") + childKey, mappedChild = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props)), array.push(mappedChild));
return 1;
}
var subtreeCount = 0, nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";

View File

@ -3226,7 +3226,7 @@
}
return listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer);
}(targetContainer, domEventName, eventSystemFlags), isPassiveListener = void 0;
(passiveBrowserEventsSupported && ("touchstart" === domEventName || "touchmove" === domEventName || "wheel" === domEventName) && (isPassiveListener = !0), isCapturePhaseListener) ? void 0 !== isPassiveListener ? (passive = isPassiveListener, targetContainer.addEventListener(domEventName, listener4, {
passiveBrowserEventsSupported && ("touchstart" === domEventName || "touchmove" === domEventName || "wheel" === domEventName) && (isPassiveListener = !0), isCapturePhaseListener ? void 0 !== isPassiveListener ? (passive = isPassiveListener, targetContainer.addEventListener(domEventName, listener4, {
capture: !0,
passive: passive
})) : targetContainer.addEventListener(domEventName, listener4, !0) : void 0 !== isPassiveListener ? (passive1 = isPassiveListener, targetContainer.addEventListener(domEventName, listener4, {
@ -3459,7 +3459,7 @@
return "onCompositionUpdate";
}
}(domEventName) : isComposing ? isFallbackCompositionEnd(domEventName, nativeEvent) && (eventType = "onCompositionEnd") : (domEventName1 = domEventName, nativeEvent1 = nativeEvent, "keydown" === domEventName1 && 229 === nativeEvent1.keyCode && (eventType = "onCompositionStart")), !eventType) return null;
useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) && (isComposing || "onCompositionStart" !== eventType ? "onCompositionEnd" === eventType && isComposing && (fallbackData = getData()) : isComposing = (root = nativeEventTarget, startText = getText(), !0));
useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) && (isComposing || "onCompositionStart" !== eventType ? "onCompositionEnd" === eventType && isComposing && (fallbackData = getData()) : (root = nativeEventTarget, startText = getText(), isComposing = !0));
var domEventName1, nativeEvent1, eventType, fallbackData, listeners = accumulateTwoPhaseListeners(targetInst, eventType);
if (listeners.length > 0) {
var event = new SyntheticCompositionEvent(eventType, domEventName, null, nativeEvent, nativeEventTarget);
@ -5103,19 +5103,20 @@
fiber.pendingProps, warnForInsertedHydratedElement(parentContainer, type);
break;
case 6:
fiber.pendingProps, warnForInsertedHydratedText(parentContainer, text);
warnForInsertedHydratedText(parentContainer, fiber.pendingProps);
}
break;
case 5:
returnFiber.type;
var _text, parentProps = returnFiber.memoizedProps, parentInstance = returnFiber.stateNode;
var parentProps = returnFiber.memoizedProps, parentInstance = returnFiber.stateNode;
switch(fiber.tag){
case 5:
var _type = fiber.type;
fiber.pendingProps, !0 !== parentProps[SUPPRESS_HYDRATION_WARNING$1] && warnForInsertedHydratedElement(parentInstance, _type);
break;
case 6:
fiber.pendingProps, !0 !== parentProps[SUPPRESS_HYDRATION_WARNING$1] && warnForInsertedHydratedText(parentInstance, _text);
var _text = fiber.pendingProps;
!0 !== parentProps[SUPPRESS_HYDRATION_WARNING$1] && warnForInsertedHydratedText(parentInstance, _text);
break;
case 13:
parentProps[SUPPRESS_HYDRATION_WARNING$1];
@ -5134,7 +5135,7 @@
if (null !== instance) return fiber.stateNode = instance, !0;
return !1;
case 6:
var text, textInstance = (fiber.pendingProps, "" === text || 3 !== nextInstance.nodeType ? null : nextInstance);
var text, textInstance = "" === fiber.pendingProps || 3 !== nextInstance.nodeType ? null : nextInstance;
if (null !== textInstance) return fiber.stateNode = textInstance, !0;
return !1;
default:
@ -5250,7 +5251,7 @@
}
function bailoutHooks(current, workInProgress, lanes) {
var set;
workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= -517, current.lanes = (set = current.lanes) & ~lanes;
workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= -517, current.lanes = current.lanes & ~lanes;
}
function resetHooksAfterThrow() {
if (ReactCurrentDispatcher$1.current = ContextOnlyDispatcher, didScheduleRenderPhaseUpdate) {
@ -5344,7 +5345,7 @@
eagerState: update.eagerState,
next: null
};
null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = clone, newBaseState = newState) : newBaseQueueLast = newBaseQueueLast.next = clone, currentlyRenderingFiber$1.lanes = (a = currentlyRenderingFiber$1.lanes) | updateLane, function(lane) {
null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = clone, newBaseState = newState) : newBaseQueueLast = newBaseQueueLast.next = clone, currentlyRenderingFiber$1.lanes = currentlyRenderingFiber$1.lanes | updateLane, function(lane) {
workInProgressRootSkippedLanes |= lane;
}(updateLane);
}
@ -6298,20 +6299,22 @@
return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes);
}
function updateOffscreenComponent(current, workInProgress, renderLanes) {
var a, nextBaseLanes, a1, a2, _subtreeRenderLanes, nextProps = workInProgress.pendingProps, nextChildren = nextProps.children, prevState = null !== current ? current.memoizedState : null;
var a, _subtreeRenderLanes, nextProps = workInProgress.pendingProps, nextChildren = nextProps.children, prevState = null !== current ? current.memoizedState : null;
if ("hidden" === nextProps.mode || "unstable-defer-without-hiding" === nextProps.mode) {
if ((4 & workInProgress.mode) == 0) workInProgress.memoizedState = {
baseLanes: 0
}, pushRenderLanes(workInProgress, renderLanes);
else if ((1073741824 & (a = renderLanes)) != 0) workInProgress.memoizedState = {
else if ((1073741824 & (a1 = renderLanes)) != 0) workInProgress.memoizedState = {
baseLanes: 0
}, pushRenderLanes(workInProgress, null !== prevState ? prevState.baseLanes : renderLanes);
else {
return nextBaseLanes = null !== prevState ? (a1 = prevState.baseLanes) | renderLanes : renderLanes, markSpawnedWork(1073741824), workInProgress.lanes = workInProgress.childLanes = 1073741824, workInProgress.memoizedState = {
nextBaseLanes = null !== prevState ? (a2 = prevState.baseLanes) | renderLanes : renderLanes, markSpawnedWork(1073741824), workInProgress.lanes = workInProgress.childLanes = 1073741824;
var a1, nextBaseLanes, a2, _nextState = {
baseLanes: nextBaseLanes
}, pushRenderLanes(workInProgress, nextBaseLanes), null;
};
return workInProgress.memoizedState = _nextState, pushRenderLanes(workInProgress, nextBaseLanes), null;
}
} else null !== prevState ? (_subtreeRenderLanes = (a2 = prevState.baseLanes) | renderLanes, workInProgress.memoizedState = null) : _subtreeRenderLanes = renderLanes, pushRenderLanes(workInProgress, _subtreeRenderLanes);
} else null !== prevState ? (_subtreeRenderLanes = (a = prevState.baseLanes) | renderLanes, workInProgress.memoizedState = null) : _subtreeRenderLanes = renderLanes, pushRenderLanes(workInProgress, _subtreeRenderLanes);
return reconcileChildren(current, workInProgress, nextChildren, renderLanes), workInProgress.child;
}
function markRef(current, workInProgress) {
@ -6429,12 +6432,12 @@
function updateSuspenseOffscreenState(prevOffscreenState, renderLanes) {
var a;
return {
baseLanes: (a = prevOffscreenState.baseLanes) | renderLanes
baseLanes: prevOffscreenState.baseLanes | renderLanes
};
}
function getRemainingWorkInPrimaryTree(current, renderLanes) {
var set;
return (set = current.childLanes) & ~renderLanes;
return current.childLanes & ~renderLanes;
}
function updateSuspenseComponent(current, workInProgress, renderLanes) {
var fiber, nextProps = workInProgress.pendingProps;
@ -6738,7 +6741,7 @@
case 0:
return validateFunctionComponentInDev(workInProgress, Component), workInProgress.type = Component = resolveFunctionForHotReloading(Component), updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderLanes);
case 1:
return workInProgress.type = Component = (type = Component, resolveFunctionForHotReloading(type)), updateClassComponent(null, workInProgress, Component, resolvedProps, renderLanes);
return workInProgress.type = (type = Component, Component = resolveFunctionForHotReloading(type)), updateClassComponent(null, workInProgress, Component, resolvedProps, renderLanes);
case 11:
return workInProgress.type = Component = resolveForwardRefForHotReloading(Component), updateForwardRef(null, workInProgress, Component, resolvedProps, renderLanes);
case 14:
@ -6818,9 +6821,9 @@
var lanes, a, a1, b, a2, update = createUpdate(-1, (lanes = renderLanes, lanes & -lanes));
update.tag = 2, enqueueUpdate(fiber, update);
}
fiber.lanes = (a = fiber.lanes) | renderLanes;
fiber.lanes = fiber.lanes | renderLanes;
var alternate = fiber.alternate;
null !== alternate && (alternate.lanes = (a1 = alternate.lanes, a1 | renderLanes)), scheduleWorkOnParentPath(fiber.return, renderLanes), list.lanes = (a2 = list.lanes) | renderLanes;
null !== alternate && (alternate.lanes = (a1 = alternate.lanes) | renderLanes), scheduleWorkOnParentPath(fiber.return, renderLanes), list.lanes = list.lanes | renderLanes;
break;
}
dependency = dependency.next;
@ -6919,7 +6922,7 @@
return null;
}
var currentHostContext = getHostContext();
if (popHydrationState(workInProgress)) fiber = workInProgress, hostContext = currentHostContext, updatePayload = (instance = fiber.stateNode, type1 = fiber.type, props1 = fiber.memoizedProps, hostContext1 = hostContext, hostInst = fiber, instance[internalInstanceKey] = hostInst, node = instance, props = props1, node[internalPropsKey] = props, function(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
if (popHydrationState(workInProgress)) fiber = workInProgress, hostContext = currentHostContext, instance = fiber.stateNode, type1 = fiber.type, props1 = fiber.memoizedProps, hostContext1 = hostContext, hostInst = fiber, instance[internalInstanceKey] = hostInst, node = instance, props = props1, node[internalPropsKey] = props, updatePayload = function(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
switch(suppressHydrationWarning = !0 === rawProps[SUPPRESS_HYDRATION_WARNING], isCustomComponentTag = isCustomComponent(tag, rawProps), validatePropertiesInDevelopment(tag, rawProps), tag){
case "dialog":
listenToNonDelegatedEvent("cancel", domElement), listenToNonDelegatedEvent("close", domElement);
@ -7026,7 +7029,7 @@
"function" == typeof rawProps.onClick && trapClickOnNonInteractiveElement(domElement);
}
return updatePayload;
}(instance, type1, props1, hostContext1.namespace)), fiber.updateQueue = updatePayload, null !== updatePayload && markUpdate(workInProgress);
}(instance, type1, props1, hostContext1.namespace), fiber.updateQueue = updatePayload, null !== updatePayload && markUpdate(workInProgress);
else {
var hostInst, node, props, fiber, hostContext, instance, type1, props1, hostContext1, updatePayload, instance1 = function(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
validateDOMNesting(type, null, hostContext.ancestorInfo), ("string" == typeof props.children || "number" == typeof props.children) && validateDOMNesting(null, "" + props.children, updatedAncestorInfo(hostContext.ancestorInfo, type));
@ -7048,7 +7051,7 @@
} else domElement = ownerDocument.createElementNS(namespaceURI, type);
return namespaceURI !== HTML_NAMESPACE$1 || isCustomComponentTag || "[object HTMLUnknownElement]" !== Object.prototype.toString.call(domElement) || Object.prototype.hasOwnProperty.call(warnedUnknownTags, type) || (warnedUnknownTags[type] = !0, error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.", type)), domElement;
}(type, props, rootContainerInstance, hostContext.namespace);
return domElement[internalInstanceKey] = internalInstanceHandle, node = domElement, node[internalPropsKey] = props, domElement;
return domElement[internalInstanceKey] = internalInstanceHandle, (node = domElement)[internalPropsKey] = props, domElement;
}(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
appendAllChildren(instance1, workInProgress, !1, !1), workInProgress.stateNode = instance1, function(domElement, tag, rawProps, rootContainerElement) {
var node, value, props, isCustomComponentTag = isCustomComponent(tag, rawProps);
@ -7149,7 +7152,7 @@
}
}
return shouldUpdate;
}(workInProgress) && markUpdate(workInProgress) : workInProgress.stateNode = (text = newProps, rootContainerInstance1 = _rootContainerInstance, hostContext2 = _currentHostContext, internalInstanceHandle = workInProgress, validateDOMNesting(null, text, hostContext2.ancestorInfo), textNode = (text1 = text, getOwnerDocumentFromRootContainer(rootContainerInstance1).createTextNode(text1)), hostInst1 = internalInstanceHandle, textNode[internalInstanceKey] = hostInst1, textNode);
}(workInProgress) && markUpdate(workInProgress) : workInProgress.stateNode = (text = newProps, rootContainerInstance1 = _rootContainerInstance, hostContext2 = _currentHostContext, internalInstanceHandle = workInProgress, validateDOMNesting(null, text, hostContext2.ancestorInfo), text1 = text, textNode = getOwnerDocumentFromRootContainer(rootContainerInstance1).createTextNode(text1), hostInst1 = internalInstanceHandle, textNode[internalInstanceKey] = hostInst1, textNode);
}
return null;
case 13:
@ -7462,7 +7465,7 @@
var lanes, _errorInfo = value;
workInProgress.flags |= 4096;
var a1, lane = (lanes = rootRenderLanes, lanes & -lanes);
workInProgress.lanes = (a1 = workInProgress.lanes) | lane;
workInProgress.lanes = workInProgress.lanes | lane;
var _update = createRootErrorUpdate(workInProgress, _errorInfo, lane);
enqueueCapturedUpdate(workInProgress, _update);
return;
@ -7471,7 +7474,7 @@
if ((64 & workInProgress.flags) == 0 && ("function" == typeof ctor.getDerivedStateFromError || null !== instance && "function" == typeof instance.componentDidCatch && !isAlreadyFailedLegacyErrorBoundary(instance))) {
workInProgress.flags |= 4096;
var lanes1, a2, _lane = (lanes1 = rootRenderLanes, lanes1 & -lanes1);
workInProgress.lanes = (a2 = workInProgress.lanes) | _lane;
workInProgress.lanes = workInProgress.lanes | _lane;
var _update2 = createClassErrorUpdate(workInProgress, errorInfo, _lane);
enqueueCapturedUpdate(workInProgress, _update2);
return;
@ -7576,7 +7579,7 @@
var _instance2 = finishedWork.stateNode;
if (null === current && 4 & finishedWork.flags) {
var props, type = finishedWork.type;
finishedWork.memoizedProps, shouldAutoFocusHostComponent(type, props) && _instance2.focus();
shouldAutoFocusHostComponent(type, finishedWork.memoizedProps) && _instance2.focus();
}
return;
case 6:
@ -7636,7 +7639,7 @@
var ref = finishedWork.ref;
if (null !== ref) {
var instanceToUse, instance = finishedWork.stateNode;
instanceToUse = (finishedWork.tag, instance), "function" == typeof ref ? ref(instanceToUse) : (ref.hasOwnProperty("current") || error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", getComponentName(finishedWork.type)), ref.current = instanceToUse);
finishedWork.tag, "function" == typeof ref ? ref(instance) : (ref.hasOwnProperty("current") || error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", getComponentName(finishedWork.type)), ref.current = instance);
}
}
function commitDetachRef(current) {
@ -7931,7 +7934,7 @@
if ((2 & mode) == 0) return 1;
if ((4 & mode) == 0) return 99 === getCurrentPriorityLevel() ? 1 : 2;
if (0 === currentEventWipLanes && (currentEventWipLanes = workInProgressRootIncludedLanes), 0 !== ReactCurrentBatchConfig.transition) {
return 0 !== currentEventPendingLanes && (currentEventPendingLanes = null !== mostRecentlyUpdatedRoot ? mostRecentlyUpdatedRoot.pendingLanes : 0), wipLanes = currentEventWipLanes, 0 == (lane = (lanes = 4186112 & ~currentEventPendingLanes, lanes & -lanes)) && 0 == (lane = (lanes1 = 4186112 & ~wipLanes, lanes1 & -lanes1)) && (lane = (lanes2 = 4186112, lanes2 & -lanes2)), lane;
return 0 !== currentEventPendingLanes && (currentEventPendingLanes = null !== mostRecentlyUpdatedRoot ? mostRecentlyUpdatedRoot.pendingLanes : 0), wipLanes = currentEventWipLanes, 0 == (lanes = 4186112 & ~currentEventPendingLanes, lane = lanes & -lanes) && 0 == (lanes1 = 4186112 & ~wipLanes, lane = lanes1 & -lanes1) && (lanes2 = 4186112, lane = lanes2 & -lanes2), lane;
}
var schedulerPriority = getCurrentPriorityLevel();
return (4 & executionContext) != 0 && 98 === schedulerPriority ? findUpdateLane(12, currentEventWipLanes) : findUpdateLane(function(schedulerPriorityLevel) {
@ -8022,9 +8025,9 @@
if (root.callbackPriority === newCallbackPriority) return;
cancelCallback(existingCallbackNode);
}
newCallbackNode = 15 === newCallbackPriority ? (callback = performSyncWorkOnRoot.bind(null, root), null === syncQueue ? (syncQueue = [
15 === newCallbackPriority ? (callback = performSyncWorkOnRoot.bind(null, root), null === syncQueue ? (syncQueue = [
callback
], immediateQueueCallbackNode = unstable_scheduleCallback(unstable_ImmediatePriority, flushSyncCallbackQueueImpl)) : syncQueue.push(callback), fakeCallbackNode) : 14 === newCallbackPriority ? scheduleCallback(99, performSyncWorkOnRoot.bind(null, root)) : scheduleCallback(function(lanePriority) {
], immediateQueueCallbackNode = unstable_scheduleCallback(unstable_ImmediatePriority, flushSyncCallbackQueueImpl)) : syncQueue.push(callback), newCallbackNode = fakeCallbackNode) : newCallbackNode = 14 === newCallbackPriority ? scheduleCallback(99, performSyncWorkOnRoot.bind(null, root)) : scheduleCallback(function(lanePriority) {
switch(lanePriority){
case 15:
case 14:
@ -8283,13 +8286,13 @@
if (24 !== completedWork.tag && 23 !== completedWork.tag || null === completedWork.memoizedState || (1073741824 & (a = subtreeRenderLanes)) != 0 || (4 & completedWork.mode) == 0) {
var newChildLanes = 0;
if ((8 & completedWork.mode) != 0) {
for(var a1, b, a2, b1, actualDuration = completedWork.actualDuration, treeBaseDuration = completedWork.selfBaseDuration, shouldBubbleActualDurations = null === completedWork.alternate || completedWork.child !== completedWork.alternate.child, child = completedWork.child; null !== child;)newChildLanes = (a2 = newChildLanes) | ((a1 = child.lanes) | child.childLanes), shouldBubbleActualDurations && (actualDuration += child.actualDuration), treeBaseDuration += child.treeBaseDuration, child = child.sibling;
for(var a1, b, a2, b1, actualDuration = completedWork.actualDuration, treeBaseDuration = completedWork.selfBaseDuration, shouldBubbleActualDurations = null === completedWork.alternate || completedWork.child !== completedWork.alternate.child, child = completedWork.child; null !== child;)newChildLanes = (a2 = newChildLanes) | (child.lanes | child.childLanes), shouldBubbleActualDurations && (actualDuration += child.actualDuration), treeBaseDuration += child.treeBaseDuration, child = child.sibling;
if (13 === completedWork.tag && null !== completedWork.memoizedState) {
var primaryChildFragment = completedWork.child;
null !== primaryChildFragment && (treeBaseDuration -= primaryChildFragment.treeBaseDuration);
}
completedWork.actualDuration = actualDuration, completedWork.treeBaseDuration = treeBaseDuration;
} else for(var a3, b2, a4, b3, _child = completedWork.child; null !== _child;)newChildLanes = (a4 = newChildLanes) | ((a3 = _child.lanes) | _child.childLanes), _child = _child.sibling;
} else for(var a3, b2, a4, b3, _child = completedWork.child; null !== _child;)newChildLanes = (a4 = newChildLanes) | (_child.lanes | _child.childLanes), _child = _child.sibling;
completedWork.childLanes = newChildLanes;
}
}
@ -8317,7 +8320,7 @@
var a, b, prevExecutionContext = executionContext;
executionContext |= 32;
var focusedElem, input, prevInteractions = pushInteractions(root);
ReactCurrentOwner$2.current = null, focusedInstanceHandle = (root.containerInfo, eventsEnabled = _enabled, selectionInformation = {
ReactCurrentOwner$2.current = null, root.containerInfo, eventsEnabled = _enabled, selectionInformation = {
focusedElem: focusedElem = getActiveElementDeep(),
selectionRange: hasSelectionCapabilities(focusedElem) ? ("selectionStart" in focusedElem ? {
start: focusedElem.selectionStart,
@ -8351,7 +8354,7 @@
start: 0,
end: 0
} : null
}, setEnabled(!1), null), shouldFireAfterActiveInstanceBlur = !1, nextEffect = firstEffect;
}, setEnabled(!1), focusedInstanceHandle = null, shouldFireAfterActiveInstanceBlur = !1, nextEffect = firstEffect;
do if (invokeGuardedCallback(null, commitBeforeMutationEffects, null), hasError) {
if (!(null !== nextEffect)) throw Error("Should be working on an effect.");
captureCommitPhaseError(nextEffect, clearCaughtError()), nextEffect = nextEffect.nextEffect;
@ -8587,7 +8590,7 @@
}
function resolveRetryWakeable(boundaryFiber, wakeable) {
var retryCache, retryLane, eventTime, root, fiber, lane, mode, lanes, lanes1;
null !== (retryCache = boundaryFiber.stateNode) && retryCache.delete(wakeable), 0 == (retryLane = 0) && (retryLane = (2 & (mode = boundaryFiber.mode)) == 0 ? 1 : (4 & mode) == 0 ? 99 === getCurrentPriorityLevel() ? 1 : 2 : (0 === currentEventWipLanes && (currentEventWipLanes = workInProgressRootIncludedLanes), 0 == (lane = (lanes = 62914560 & ~currentEventWipLanes, lanes & -lanes)) && (lane = (lanes1 = 62914560, lanes1 & -lanes1)), lane)), eventTime = requestEventTime(), null !== (root = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane)) && (markRootUpdated(root, retryLane, eventTime), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, retryLane));
null !== (retryCache = boundaryFiber.stateNode) && retryCache.delete(wakeable), 0 == (retryLane = 0) && (retryLane = (2 & (mode = boundaryFiber.mode)) == 0 ? 1 : (4 & mode) == 0 ? 99 === getCurrentPriorityLevel() ? 1 : 2 : (0 === currentEventWipLanes && (currentEventWipLanes = workInProgressRootIncludedLanes), 0 == (lanes = 62914560 & ~currentEventWipLanes, lane = lanes & -lanes) && (lanes1 = 62914560, lane = lanes1 & -lanes1), lane)), eventTime = requestEventTime(), null !== (root = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane)) && (markRootUpdated(root, retryLane, eventTime), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, retryLane));
}
var didWarnStateUpdateForNotYetMountedComponent = null;
function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) {
@ -9059,7 +9062,7 @@
}
function markRetryLaneImpl(fiber, retryLane) {
var a, b, suspenseState = fiber.memoizedState;
null !== suspenseState && null !== suspenseState.dehydrated && (suspenseState.retryLane = (a = suspenseState.retryLane, 0 !== a && a < retryLane ? a : retryLane));
null !== suspenseState && null !== suspenseState.dehydrated && (suspenseState.retryLane = 0 !== (a = suspenseState.retryLane) && a < retryLane ? a : retryLane);
}
function markRetryLaneIfNotHydrated(fiber, retryLane) {
markRetryLaneImpl(fiber, retryLane);
@ -9133,7 +9136,7 @@
function createRootImpl(container, tag, options) {
var hydrate = null != options && !0 === options.hydrate;
null != options && options.hydrationOptions;
var root, mode, uninitializedFiber, hostRoot, mutableSources = null != options && null != options.hydrationOptions && options.hydrationOptions.mutableSources || null, root1 = (root = new FiberRootNode(container, tag, hydrate), uninitializedFiber = (mode = 2 === tag ? 7 : 1 === tag ? 3 : 0, isDevToolsPresent && (mode |= 8), createFiber(3, null, null, mode)), root.current = uninitializedFiber, uninitializedFiber.stateNode = root, initializeUpdateQueue(uninitializedFiber), root);
var root, mode, uninitializedFiber, hostRoot, mutableSources = null != options && null != options.hydrationOptions && options.hydrationOptions.mutableSources || null, root1 = (root = new FiberRootNode(container, tag, hydrate), mode = 2 === tag ? 7 : 1 === tag ? 3 : 0, isDevToolsPresent && (mode |= 8), uninitializedFiber = createFiber(3, null, null, mode), root.current = uninitializedFiber, uninitializedFiber.stateNode = root, initializeUpdateQueue(uninitializedFiber), root);
hostRoot = root1.current, container[internalContainerInstanceKey] = hostRoot, container.nodeType;
var rootContainerElement = 8 === container.nodeType ? container.parentNode : container;
if (listenToAllSupportedEvents(rootContainerElement), mutableSources) for(var i = 0; i < mutableSources.length; i++)registerMutableSourceForHydration(root1, mutableSources[i]);

View File

@ -1,2 +1,2 @@
var foo, x, y, bar;
foo = (x(), y(), !bar());
x(), y(), foo = !bar();