fix(es/minifier): Fix analysis of assignments and classes (#5770)

This commit is contained in:
Austaras 2022-09-07 11:51:42 +08:00 committed by GitHub
parent cee1c48298
commit 90852f5aa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
149 changed files with 2811 additions and 2824 deletions

View File

@ -22,9 +22,8 @@ import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
return _get(_get_prototype_of(B.prototype), _prop, _this);
};
return _async_to_generator(function() {
var a, b;
return _ts_generator(this, function(_state) {
return _superprop_get_x().call(_this1), _get(_get_prototype_of(B.prototype), "y", _this).call(_this1), _superprop_get("x").call(_this1), a = _superprop_get_x(), b = _superprop_get("x"), [
return _superprop_get_x().call(_this1), _get(_get_prototype_of(B.prototype), "y", _this).call(_this1), _superprop_get("x").call(_this1), _superprop_get_x(), _superprop_get("x"), [
2
];
});
@ -56,9 +55,9 @@ import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
return _set(_get_prototype_of(B.prototype), _prop, _value, _this, !0);
};
return _async_to_generator(function() {
var f, a, b, ref, ref1;
var f, ref, ref1;
return _ts_generator(this, function(_state) {
return f = function() {}, _superprop_get_x().call(_this1), _superprop_get("x").call(_this1), a = _superprop_get_x(), b = _superprop_get("x"), _superprop_set_x(f), _superprop_set("x", f), ref = {
return f = function() {}, _superprop_get_x().call(_this1), _superprop_get("x").call(_this1), _superprop_get_x(), _superprop_get("x"), _superprop_set_x(f), _superprop_set("x", f), ref = {
f: f
}, _superprop_update_x._ = ref.f, ref1 = {
f: f

View File

@ -3,7 +3,7 @@ System.register([
"@swc/helpers/src/_class_call_check.mjs"
], function(_export, _context) {
"use strict";
var _class_call_check, C, __;
var _class_call_check, C;
return {
setters: [
function(_classCallCheck) {
@ -14,10 +14,7 @@ System.register([
_export("C", C = function C() {
"use strict";
_class_call_check(void 0, C);
}), __ = {
writable: !0,
value: void (C.x = 1)
};
}), C.x = 1;
}
};
});

View File

@ -28,7 +28,6 @@ import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
}
return C2.prototype.f = function() {
return _wrap_async_generator(function() {
var x;
return _ts_generator(this, function(_state) {
switch(_state.label){
case 0:
@ -36,7 +35,7 @@ import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
4
];
case 1:
return x = _state.sent(), [
return _state.sent(), [
2
];
}
@ -55,7 +54,6 @@ import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
}
return C3.prototype.f = function() {
return _wrap_async_generator(function() {
var x;
return _ts_generator(this, function(_state) {
switch(_state.label){
case 0:
@ -64,7 +62,7 @@ import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
1
];
case 1:
return x = _state.sent(), [
return _state.sent(), [
2
];
}
@ -87,7 +85,6 @@ import _ts_values from "@swc/helpers/src/_ts_values.mjs";
}
return C4.prototype.f = function() {
return _wrap_async_generator(function() {
var x;
return _ts_generator(this, function(_state) {
switch(_state.label){
case 0:
@ -98,7 +95,7 @@ import _ts_values from "@swc/helpers/src/_ts_values.mjs";
]), _await_async_generator))
];
case 1:
return x = _state.sent(), [
return _state.sent(), [
2
];
}
@ -121,7 +118,6 @@ import _ts_values from "@swc/helpers/src/_ts_values.mjs";
}
return C5.prototype.f = function() {
return _wrap_async_generator(function() {
var x;
return _ts_generator(this, function(_state) {
switch(_state.label){
case 0:
@ -144,7 +140,7 @@ import _ts_values from "@swc/helpers/src/_ts_values.mjs";
})()), _await_async_generator))
];
case 1:
return x = _state.sent(), [
return _state.sent(), [
2
];
}
@ -164,7 +160,6 @@ import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
}
return C6.prototype.f = function() {
return _wrap_async_generator(function() {
var x;
return _ts_generator(this, function(_state) {
switch(_state.label){
case 0:
@ -173,7 +168,7 @@ import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
_await_async_generator(1)
];
case 1:
return x = _state.sent(), [
return _state.sent(), [
2
];
}

View File

@ -18,7 +18,6 @@ import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs";
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
!function() {
var _ref = _wrap_async_generator(function() {
var x;
return _ts_generator(this, function(_state) {
switch(_state.label){
case 0:
@ -26,7 +25,7 @@ import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
4
];
case 1:
return x = _state.sent(), [
return _state.sent(), [
2
];
}
@ -41,7 +40,6 @@ import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs";
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
!function() {
var _ref = _wrap_async_generator(function() {
var x;
return _ts_generator(this, function(_state) {
switch(_state.label){
case 0:
@ -50,7 +48,7 @@ import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
1
];
case 1:
return x = _state.sent(), [
return _state.sent(), [
2
];
}
@ -69,7 +67,6 @@ import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
import _ts_values from "@swc/helpers/src/_ts_values.mjs";
!function() {
var _ref = _wrap_async_generator(function() {
var x;
return _ts_generator(this, function(_state) {
switch(_state.label){
case 0:
@ -80,7 +77,7 @@ import _ts_values from "@swc/helpers/src/_ts_values.mjs";
]), _await_async_generator))
];
case 1:
return x = _state.sent(), [
return _state.sent(), [
2
];
}
@ -99,7 +96,6 @@ import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
import _ts_values from "@swc/helpers/src/_ts_values.mjs";
!function() {
var _ref = _wrap_async_generator(function() {
var x;
return _ts_generator(this, function(_state) {
switch(_state.label){
case 0:
@ -122,7 +118,7 @@ import _ts_values from "@swc/helpers/src/_ts_values.mjs";
})()), _await_async_generator))
];
case 1:
return x = _state.sent(), [
return _state.sent(), [
2
];
}
@ -138,7 +134,6 @@ import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs";
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
!function() {
var _ref = _wrap_async_generator(function() {
var x;
return _ts_generator(this, function(_state) {
switch(_state.label){
case 0:
@ -147,7 +142,7 @@ import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
_await_async_generator(1)
];
case 1:
return x = _state.sent(), [
return _state.sent(), [
2
];
}

View File

@ -9,7 +9,6 @@ var _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcar
function cl1() {}
return cl1.prototype.m = function() {
return _asyncToGenerator(function() {
var req;
return _tsGenerator(this, function(_state) {
switch(_state.label){
case 0:
@ -20,7 +19,7 @@ var _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcar
})
];
case 1:
return req = _state.sent(), [
return _state.sent(), [
2
];
}

View File

@ -9,7 +9,6 @@ var _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcar
function cl1() {}
return cl1.prototype.m = function() {
return _asyncToGenerator(function() {
var req;
return _tsGenerator(this, function(_state) {
switch(_state.label){
case 0:
@ -20,7 +19,7 @@ var _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcar
})
];
case 1:
return req = _state.sent(), [
return _state.sent(), [
2
];
}

View File

@ -12,7 +12,7 @@ System.register([
"@swc/helpers/src/_class_call_check.mjs"
], function(_export, _context) {
"use strict";
var _class_call_check, p1, p2, C, D;
var _class_call_check;
return {
setters: [
function(_classCallCheck) {
@ -20,17 +20,9 @@ System.register([
}
],
execute: function() {
_context.import("./0"), (p1 = _context.import("./0")).then(function(zero) {
_context.import("./0"), _context.import("./0").then(function(zero) {
return zero.foo();
}), _export("p2", p2 = _context.import("./0")), C = function() {
"use strict";
function C() {
_class_call_check(this, C);
}
return C.prototype.method = function() {
import("./0");
}, C;
}(), _export("D", D = function() {
}), _export("p2", _context.import("./0")), _export("D", function() {
"use strict";
function D() {
_class_call_check(this, D);

View File

@ -9,12 +9,10 @@ System.register([], function(_export, _context) {
});
//// [1.ts]
System.register([], function(_export, _context) {
"use strict";
var p1, p2;
return _export("D", void 0), {
setters: [],
execute: function() {
_context.import("./0"), (p1 = _context.import("./0")).then((zero)=>zero.foo()), _export("p2", p2 = _context.import("./0")), _export("D", class {
_context.import("./0"), _context.import("./0").then((zero)=>zero.foo()), _export("p2", _context.import("./0")), _export("D", class {
method() {
_context.import("./0");
}

View File

@ -9,12 +9,10 @@ System.register([], function(_export, _context) {
});
//// [1.ts]
System.register([], function(_export, _context) {
"use strict";
var p1, p2;
return {
setters: [],
execute: function() {
_context.import("./0"), (p1 = _context.import("./0")).then((zero)=>zero.foo()), _export("p2", p2 = _context.import("./0"));
_context.import("./0"), _context.import("./0").then((zero)=>zero.foo()), _export("p2", _context.import("./0"));
}
};
});

View File

@ -34,23 +34,10 @@ System.register([], function(_export, _context) {
});
//// [2.ts]
System.register([], function(_export, _context) {
"use strict";
var C, D;
return _export("D", void 0), {
setters: [],
execute: async function() {
C = class {
myModule = _context.import("./0");
method() {
_context.import("./0"), this.myModule.then((Zero)=>{
console.log(Zero.foo());
}, async (err)=>{
console.log(err);
let one = await import("./1");
console.log(one.backup());
});
}
}, _export("D", D = class {
_export("D", class {
myModule = _context.import("./0");
method() {
_context.import("./0"), this.myModule.then((Zero)=>{

View File

@ -11,12 +11,10 @@ System.register([], function(_export, _context) {
System.register([
"@swc/helpers/src/_async_to_generator.mjs"
], function(_export, _context) {
"use strict";
var _async_to_generator;
return {
setters: [
function(_asyncToGenerator) {
_async_to_generator = _asyncToGenerator.default;
_asyncToGenerator.default;
}
],
execute: function() {}

View File

@ -12,15 +12,13 @@ System.register([
"@swc/helpers/src/_async_to_generator.mjs",
"@swc/helpers/src/_ts_generator.mjs"
], function(_export, _context) {
"use strict";
var _async_to_generator, _ts_generator;
return {
setters: [
function(_asyncToGenerator) {
_async_to_generator = _asyncToGenerator.default;
_asyncToGenerator.default;
},
function(_tsGenerator) {
_ts_generator = _tsGenerator.default;
_tsGenerator.default;
}
],
execute: function() {}

View File

@ -6,8 +6,9 @@ var _name = new WeakMap();
console.log(new class {
getValue(x) {
var _y = new WeakMap();
let tmp = _class_private_field_get(this, _name);
return new class {
[_class_private_field_get(this, _name)]() {
[tmp]() {
return x + _class_private_field_get(this, _y);
}
constructor(){

View File

@ -5,12 +5,13 @@ console.log(new class {
this.#name = name;
}
getValue(x) {
let obj = this;
class Bar {
#y = 100;
[this.#name]() {
[obj.#name]() {
return x + this.#y;
}
}
return new Bar()[this.#name]();
return new Bar()[obj.#name]();
}
}("NAME").getValue(100));

View File

@ -9,14 +9,15 @@ export class C {
constructor(){
_class_private_method_init(this, _b), _class_private_field_init(this, _c, {
get: void 0,
set: function(v) {
_class_private_field_set(this, _a, _class_private_field_get(this, _a) + v);
}
set: set_c
}), _class_private_field_init(this, _a, {
writable: !0,
value: 1
});
}
}
function set_c(v) {
_class_private_field_set(this, _a, _class_private_field_get(this, _a) + v);
}
//// [tslib.d.ts]
export { };

View File

@ -14,10 +14,11 @@ let C = (_field = new WeakMap(), _method = new WeakSet(), class {
constructor(){
_class_private_method_init(this, _method), _class_private_field_init(this, _field, {
writable: !0,
value: _class_private_method_get(this, _method, function() {
return 42;
}).call(this)
value: _class_private_method_get(this, _method, method).call(this)
});
}
});
function method() {
return 42;
}
console.log(C.getInstance().getField()), C.getInstance().#method, C.getInstance().#field;

View File

@ -1,8 +1,9 @@
//// [privateNameNotAccessibleOutsideDefiningClass.ts]
import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs";
var _foo = new WeakMap();
new class {
constructor(){
_class_private_field_init(this, new WeakMap(), {
_class_private_field_init(this, _foo, {
writable: !0,
value: 3
});

View File

@ -2,6 +2,7 @@
import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs";
import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs";
var _foo = new WeakMap();
function set_foo(a) {}
new class {
bar() {
let x = _class_private_field_set(this, _foo, 84);
@ -10,7 +11,7 @@ new class {
constructor(){
_class_private_field_init(this, _foo, {
get: void 0,
set: function(a) {}
set: set_foo
});
}
}().bar();

View File

@ -10,8 +10,9 @@ let C = (_x = new WeakMap(), class {
constructor(){
_class_private_field_init(this, _x, {
get: void 0,
set: function(x) {}
set: set_x
});
}
});
function set_x(x) {}
console.log(new C().m());

View File

@ -18,24 +18,27 @@ export class A {
var _used1 = new WeakSet(), _unused1 = new WeakSet();
export class A2 {
constructor(){
_class_private_method_init(this, _used1), _class_private_method_init(this, _unused1), console.log(_class_private_method_get(this, _used1, function() {}).call(this));
_class_private_method_init(this, _used1), _class_private_method_init(this, _unused1), console.log(_class_private_method_get(this, _used1, used).call(this));
}
}
function used() {}
var _used2 = new WeakMap(), _unused2 = new WeakMap();
export class A3 {
constructor(){
_class_private_field_init(this, _used2, {
get: get_used,
set: function(value) {}
set: set_used
}), _class_private_field_init(this, _unused2, {
get: get_unused,
set: function(value) {}
set: set_unused
}), console.log(_class_private_field_get(this, _used2));
}
}
function get_used() {
return 0;
}
function set_used(value) {}
function get_unused() {
return 0;
}
function set_unused(value) {}

View File

@ -16,10 +16,11 @@ class C {
_class_private_method_init(this, _bar), _class_private_field_init(this, _foo, {
writable: !0,
value: void 0
}), _class_private_field_set(this, _foo, t), t = _class_private_method_get(this, _bar, function() {
return _class_private_field_get(this, _foo);
}).call(this);
}), _class_private_field_set(this, _foo, t), t = _class_private_method_get(this, _bar, bar).call(this);
}
}
function bar() {
return _class_private_field_get(this, _foo);
}
let a = new C(3), b = new C("hello");
a.baz = 5, a.baz, a.#foo, b = a = b;

View File

@ -1,8 +1,9 @@
//// [privateNamesUnique-1.ts]
import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs";
var _foo = new WeakMap();
new class {
constructor(){
_class_private_field_init(this, new WeakMap(), {
_class_private_field_init(this, _foo, {
writable: !0,
value: void 0
});

View File

@ -1,8 +1,9 @@
//// [privateNamesUnique-5.ts]
import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs";
var _foo = new WeakMap();
new class {
constructor(){
_class_private_field_init(this, new WeakMap(), {
_class_private_field_init(this, _foo, {
writable: !0,
value: void 0
});

View File

@ -5,6 +5,10 @@ import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.
import _extends from "@swc/helpers/src/_extends.mjs";
import _class_private_field_destructure from "@swc/helpers/src/_class_private_field_destructure.mjs";
var _value = new WeakMap(), _valueRest = new WeakMap(), _valueOne = new WeakMap(), _valueCompound = new WeakMap();
function set_value(v) {}
function set_valueRest(v) {}
function set_valueOne(v) {}
function set_valueCompound(v) {}
new class {
m() {
var _tmp, _tmp1;
@ -34,16 +38,16 @@ new class {
constructor(){
_class_private_field_init(this, _value, {
get: void 0,
set: function(v) {}
set: set_value
}), _class_private_field_init(this, _valueRest, {
get: void 0,
set: function(v) {}
set: set_valueRest
}), _class_private_field_init(this, _valueOne, {
get: void 0,
set: function(v) {}
set: set_valueOne
}), _class_private_field_init(this, _valueCompound, {
get: void 0,
set: function(v) {}
set: set_valueCompound
});
}
}().m();

View File

@ -1,8 +1,9 @@
//// [symbolDeclarationEmit11.ts]
let _isConcatSpreadable = Symbol.isConcatSpreadable, _toPrimitive = Symbol.toPrimitive, _toPrimitive1 = Symbol.toPrimitive;
(class {
static [Symbol.isConcatSpreadable]() {}
static get [Symbol.toPrimitive]() {
static [_isConcatSpreadable]() {}
static get [_toPrimitive]() {
return "";
}
static set [Symbol.toPrimitive](x) {}
static set [_toPrimitive1](x) {}
})[Symbol.iterator] = 0;

View File

@ -1,12 +1,12 @@
//// [typeGuardsInModule.ts]
var num, var1, m1, m2, m3;
var var1, m1, m2, m3;
!function(m1) {
var var2, var3;
num = "string" == typeof var1 && var1.length, "string" == typeof var2 && (num = var2.length), m1.var3 = var3;
"string" == typeof var1 && var1.length, "string" == typeof var2 && var2.length, m1.var3 = var3;
}(m1 || (m1 = {})), function(m2) {
var var2, var3, m3, m31, var4, var5;
m31 = m3 || (m3 = {}), num = "string" == typeof var1 && var1.length, num = "string" == typeof var2 && var2.length, "string" == typeof var4 && (num = var4.length), m31.var5 = var5, m2.var3 = var3;
m31 = m3 || (m3 = {}), "string" == typeof var1 && var1.length, "string" == typeof var2 && var2.length, "string" == typeof var4 && var4.length, m31.var5 = var5, m2.var3 = var3;
}(m2 || (m2 = {})), function(m3) {
var m4, var2, var3;
m4 = m3.m4 || (m3.m4 = {}), num = "string" == typeof var1 && var1.length, "string" == typeof var2 && (num = var2.length), m4.var3 = var3;
m4 = m3.m4 || (m3.m4 = {}), "string" == typeof var1 && var1.length, "string" == typeof var2 && var2.length, m4.var3 = var3;
}(m3 || (m3 = {}));

View File

@ -1,16 +1,16 @@
//// [typeGuardsObjectMethods.ts]
var num, strOrNum, var1, obj1 = {
var strOrNum, var1, obj1 = {
method: function(param1) {
var var2;
return num = "string" == typeof var1 && var1.length, num = "string" == typeof var2 && var2.length, num = "string" == typeof param1 && param1.length, strOrNum;
return "string" == typeof var1 && var1.length, "string" == typeof var2 && var2.length, "string" == typeof param1 && param1.length, strOrNum;
},
get prop () {
var var2;
return num = "string" == typeof var1 && var1.length, num = "string" == typeof var2 && var2.length, strOrNum;
return "string" == typeof var1 && var1.length, "string" == typeof var2 && var2.length, strOrNum;
},
set prop (param){
var var21;
num = "string" == typeof var1 && var1.length, num = "string" == typeof var21 && var21.length, num = "string" == typeof param && param.length;
"string" == typeof var1 && var1.length, "string" == typeof var21 && var21.length, "string" == typeof param && param.length;
}
};
strOrNum = "string" == typeof obj1.method(strOrNum) && obj1.method(strOrNum), strOrNum = "string" == typeof obj1.prop && obj1.prop;

View File

@ -17,7 +17,7 @@ Promise.all(assignAll).then(function() {
listOfUser(t.id)
];
case 1:
return (e = n.sent()).forEach(function(r) {
return n.sent().forEach(function(r) {
insertQuery += 'INSERT INTO "TABLE"("UUID", id, other_ids_here) VALUES (\''.concat(uuidv4(), "', '").concat(t.id, "', now());");
}), [
2

View File

@ -14,8 +14,8 @@ export default function i() {
function t() {
return (t = r(function() {
var r, t;
return e(this, function(e) {
switch(e.label){
return e(this, function(r) {
switch(r.label){
case 0:
return [
4,
@ -24,10 +24,10 @@ export default function i() {
case 1:
return [
4,
(r = e.sent()).json()
r.sent().json()
];
case 2:
return u(t = e.sent()), [
return u(r.sent()), [
2
];
}

View File

@ -9,15 +9,15 @@ var s = o.assetPrefix, i = o.page, $ = null, u = __webpack_hash__, d = (s = s ||
function p() {
return (p = e(function() {
var e, a, r, n, c;
return t(this, function(t) {
switch(t.label){
return t(this, function(e) {
switch(e.label){
case 0:
if (!($ !== __webpack_hash__) || "idle" !== module.hot.status()) return [
2
];
t.label = 1;
e.label = 1;
case 1:
return t.trys.push([
return e.trys.push([
1,
4,
,
@ -29,17 +29,17 @@ function p() {
case 2:
return [
4,
(e = t.sent()).json()
e.sent().json()
];
case 3:
return a = t.sent(), r = "/" === i ? "index" : i, (n = (Array.isArray(a.c) ? a.c : Object.keys(a.c)).some(function(e) {
return a = e.sent(), r = "/" === i ? "index" : i, (Array.isArray(a.c) ? a.c : Object.keys(a.c)).some(function(e) {
return -1 !== e.indexOf("pages".concat(r.startsWith("/") ? r : "/".concat(r))) || -1 !== e.indexOf("pages".concat(r.startsWith("/") ? r : "/".concat(r)).replace(/\//g, "\\"));
})) ? document.location.reload(!0) : u = $, [
}) ? document.location.reload(!0) : u = $, [
3,
5
];
case 4:
return c = t.sent(), console.error("Error occurred checking for update", c), document.location.reload(!0), [
return c = e.sent(), console.error("Error occurred checking for update", c), document.location.reload(!0), [
3,
5
];

View File

@ -577,7 +577,7 @@ where
n.super_class.visit_with(&mut *self.with_ctx(ctx));
}
n.body.visit_with(self);
self.with_child(n.span.ctxt, ScopeKind::Fn, |child| n.body.visit_with(child))
}
#[cfg_attr(feature = "debug", tracing::instrument(skip(self, n)))]

View File

@ -232,7 +232,9 @@ impl ProgramData {
e.used_in_cond |= ctx.in_cond;
if is_modify && ctx.is_exact_reassignment {
e.assign_count += 1;
if is_first {
e.assign_count += 1;
}
if ctx.is_op_assign {
e.usage_count += 1;

View File

@ -688,7 +688,8 @@ where
}
if let Some(var) = self.data.vars.get(&i.to_id()) {
if var.is_fn_local
// technically this is inline
if !var.inline_prevented
&& var.usage_count == 0
&& var.declared
&& (!var.declared_as_fn_param || !used_arguments || self.ctx.in_strict)

View File

@ -24,8 +24,8 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,

View File

@ -1,6 +1,7 @@
class ClassA {
}
module.exports = class ClassB {
static MyA = class {
};
static MyA = ClassA;
it() {
this.bb = new ClassB.MyA();
}

View File

@ -546,18 +546,18 @@
var ref = _react.useState(window.__ICE_PAGE_PROPS__), data = ref[0], setData = ref[1];
return _react.useEffect(function() {
title && (document.title = title), scrollToTop && window.scrollTo(0, 0), window.__ICE_PAGE_PROPS__ ? window.__ICE_PAGE_PROPS__ = null : PageComponent.getInitialProps && swcHelpers.asyncToGenerator(_regeneratorRuntime.default.mark(function _callee() {
var _location, href, origin, pathname, search, curPath, query, ssrError, initialContext, result;
var _location, href, origin, pathname, search, initialContext;
return _regeneratorRuntime.default.wrap(function(_ctx) {
for(;;)switch(_ctx.prev = _ctx.next){
case 0:
return href = (_location = window.location).href, origin = _location.origin, pathname = _location.pathname, search = _location.search, initialContext = {
pathname: pathname,
path: curPath = href.replace(origin, ""),
query: query = queryString.parse(search),
ssrError: ssrError = window.__ICE_SSR_ERROR__
path: href.replace(origin, ""),
query: queryString.parse(search),
ssrError: window.__ICE_SSR_ERROR__
}, _ctx.next = 7, PageComponent.getInitialProps(initialContext);
case 7:
setData(result = _ctx.sent);
setData(_ctx.sent);
case 9:
case "end":
return _ctx.stop();
@ -4663,7 +4663,7 @@
},
41075: function(module) {
"use strict";
var base = 36, regexNonASCII = /[^\0-\u007E]/, regexSeparators = /[.\u3002\uFF0E\uFF61]/g, OVERFLOW_ERROR = "Overflow: input needs wider integers to process", baseMinusTMin = base - 1, floor = Math.floor, stringFromCharCode = String.fromCharCode, ucs2decode = function(string) {
var regexNonASCII = /[^\0-\u007E]/, regexSeparators = /[.\u3002\uFF0E\uFF61]/g, OVERFLOW_ERROR = "Overflow: input needs wider integers to process", floor = Math.floor, stringFromCharCode = String.fromCharCode, ucs2decode = function(string) {
for(var output = [], counter = 0, length = string.length; counter < length;){
var value = string.charCodeAt(counter++);
if (value >= 0xd800 && value <= 0xdbff && counter < length) {
@ -4676,8 +4676,8 @@
return digit + 22 + 75 * (digit < 26);
}, adapt = function(delta, numPoints, firstTime) {
var k = 0;
for(delta = firstTime ? floor(delta / 700) : delta >> 1, delta += floor(delta / numPoints); delta > 26 * baseMinusTMin >> 1; k += base)delta = floor(delta / baseMinusTMin);
return floor(k + (baseMinusTMin + 1) * delta / (delta + 38));
for(delta = firstTime ? floor(delta / 700) : delta >> 1, delta += floor(delta / numPoints); delta > 455; k += 36)delta = floor(delta / 35);
return floor(k + 36 * delta / (delta + 38));
}, encode = function(input) {
var i, currentValue, output = [], inputLength = (input = ucs2decode(input)).length, n = 128, delta = 0, bias = 72;
for(i = 0; i < input.length; i++)(currentValue = input[i]) < 0x80 && output.push(stringFromCharCode(currentValue));
@ -4690,10 +4690,10 @@
for(delta += (m - n) * handledCPCountPlusOne, n = m, i = 0; i < input.length; i++){
if ((currentValue = input[i]) < n && ++delta > 2147483647) throw RangeError(OVERFLOW_ERROR);
if (currentValue == n) {
for(var q = delta, k = base;; k += base){
for(var q = delta, k = 36;; k += 36){
var t = k <= bias ? 1 : k >= bias + 26 ? 26 : k - bias;
if (q < t) break;
var qMinusT = q - t, baseMinusT = base - t;
var qMinusT = q - t, baseMinusT = 36 - t;
output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT))), q = floor(qMinusT / baseMinusT);
}
output.push(stringFromCharCode(digitToBasic(q))), bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength), delta = 0, ++handledCPCount;
@ -10650,7 +10650,7 @@
exports.setInitialData = setInitialData, exports.getInitialData = getInitialData, exports.getRenderApp = getRenderApp, exports.reactAppRenderer = function(options) {
var _a;
return __awaiter(this, void 0, void 0, function() {
var appConfig, _b, buildConfig, appLifecycle, createBaseApp, emitLifeCycles, initAppLifeCycles, context, _c, href, origin_1, pathname, search, path, query, ssrError, initialContext, _d, _e, runtime, modifiedAppConfig;
var appConfig, _b, buildConfig, appLifecycle, createBaseApp, emitLifeCycles, initAppLifeCycles, context, _c, href, origin_1, pathname, search, initialContext, _d, _e, runtime, modifiedAppConfig;
return __generator(this, function(_f) {
switch(_f.label){
case 0:
@ -10669,9 +10669,9 @@
];
return href = (_c = window.location).href, origin_1 = _c.origin, pathname = _c.pathname, search = _c.search, initialContext = {
pathname: pathname,
path: path = href.replace(origin_1, ""),
query: query = queryString.parse(search),
ssrError: ssrError = window.__ICE_SSR_ERROR__
path: href.replace(origin_1, ""),
query: queryString.parse(search),
ssrError: window.__ICE_SSR_ERROR__
}, _d = context, [
4,
appConfig.app.getInitialData(initialContext),

View File

@ -285,7 +285,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 7,
reassigned_with_assignment: false,
@ -793,7 +793,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,

View File

@ -51,7 +51,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 11,
reassigned_with_assignment: false,
@ -1623,7 +1623,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -2163,7 +2163,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 5,
reassigned_with_assignment: false,
@ -3915,7 +3915,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -3955,7 +3955,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -5237,7 +5237,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -5667,7 +5667,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -5707,7 +5707,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -6905,7 +6905,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 4,
reassigned_with_assignment: false,
@ -7527,7 +7527,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 12,
assign_count: 10,
mutation_by_call_count: 10,
usage_count: 19,
reassigned_with_assignment: true,
@ -8417,7 +8417,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -8999,7 +8999,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -9775,7 +9775,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -9815,7 +9815,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: true,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -10131,7 +10131,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -10171,7 +10171,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: true,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -11023,7 +11023,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -14889,7 +14889,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: false,
@ -16009,7 +16009,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -17107,7 +17107,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: true,
@ -18881,7 +18881,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -18959,7 +18959,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -21981,7 +21981,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: true,
@ -22333,7 +22333,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -23027,7 +23027,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -25019,7 +25019,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 5,
reassigned_with_assignment: false,
@ -25135,7 +25135,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 5,
reassigned_with_assignment: false,
@ -25329,7 +25329,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 4,
reassigned_with_assignment: false,
@ -25753,7 +25753,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: false,
@ -25985,7 +25985,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -28639,7 +28639,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 12,
assign_count: 2,
mutation_by_call_count: 2,
usage_count: 12,
reassigned_with_assignment: true,
@ -29187,7 +29187,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 6,
reassigned_with_assignment: false,
@ -30217,7 +30217,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: false,
@ -30995,7 +30995,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,

View File

@ -1693,7 +1693,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,

View File

@ -1566,7 +1566,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -4169,7 +4169,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 9,
reassigned_with_assignment: false,
@ -5399,7 +5399,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 5,
reassigned_with_assignment: false,
@ -5857,7 +5857,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 10,
usage_count: 26,
reassigned_with_assignment: false,
@ -6431,7 +6431,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -12695,7 +12695,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 2,
mutation_by_call_count: 1,
usage_count: 5,
reassigned_with_assignment: true,
@ -12847,7 +12847,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 11,
reassigned_with_assignment: false,
@ -16287,7 +16287,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: true,
@ -20027,7 +20027,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: false,
@ -20103,7 +20103,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -23255,7 +23255,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 6,
assign_count: 2,
mutation_by_call_count: 6,
usage_count: 16,
reassigned_with_assignment: true,
@ -24641,7 +24641,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 2,
mutation_by_call_count: 3,
usage_count: 6,
reassigned_with_assignment: true,
@ -28505,7 +28505,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: false,
@ -28585,7 +28585,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 4,
reassigned_with_assignment: false,
@ -28625,7 +28625,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: false,
@ -30841,7 +30841,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 4,
usage_count: 7,
reassigned_with_assignment: true,
@ -35889,7 +35889,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -36819,7 +36819,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 6,
reassigned_with_assignment: true,
@ -36859,7 +36859,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 7,
assign_count: 4,
mutation_by_call_count: 4,
usage_count: 19,
reassigned_with_assignment: true,
@ -37099,7 +37099,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: false,
@ -37763,7 +37763,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: true,
@ -37883,7 +37883,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 6,
usage_count: 10,
reassigned_with_assignment: true,
@ -38706,7 +38706,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -38746,7 +38746,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -39517,7 +39517,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -39787,7 +39787,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 6,
assign_count: 5,
mutation_by_call_count: 1,
usage_count: 5,
reassigned_with_assignment: true,
@ -40143,7 +40143,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 5,
reassigned_with_assignment: true,
@ -40461,7 +40461,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -40541,7 +40541,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -41509,7 +41509,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 7,
usage_count: 11,
reassigned_with_assignment: false,
@ -45273,7 +45273,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -45313,7 +45313,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -47911,7 +47911,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: false,
@ -50423,7 +50423,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -50929,7 +50929,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: false,
@ -54557,7 +54557,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: true,
@ -54913,7 +54913,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -59293,7 +59293,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 5,
reassigned_with_assignment: false,
@ -59409,7 +59409,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -61013,7 +61013,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 2,
mutation_by_call_count: 7,
usage_count: 14,
reassigned_with_assignment: true,
@ -64955,7 +64955,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 9,
reassigned_with_assignment: false,

View File

@ -2338,7 +2338,9 @@
Yd: function() {
return Logger;
}
}), (LogLevel1 = LogLevel || (LogLevel = {}))[LogLevel1.DEBUG = 0] = "DEBUG", LogLevel1[LogLevel1.VERBOSE = 1] = "VERBOSE", LogLevel1[LogLevel1.INFO = 2] = "INFO", LogLevel1[LogLevel1.WARN = 3] = "WARN", LogLevel1[LogLevel1.ERROR = 4] = "ERROR", LogLevel1[LogLevel1.SILENT = 5] = "SILENT";
});
const instances = [];
(LogLevel1 = LogLevel || (LogLevel = {}))[LogLevel1.DEBUG = 0] = "DEBUG", LogLevel1[LogLevel1.VERBOSE = 1] = "VERBOSE", LogLevel1[LogLevel1.INFO = 2] = "INFO", LogLevel1[LogLevel1.WARN = 3] = "WARN", LogLevel1[LogLevel1.ERROR = 4] = "ERROR", LogLevel1[LogLevel1.SILENT = 5] = "SILENT";
const levelStringToEnum = {
debug: LogLevel.DEBUG,
verbose: LogLevel.VERBOSE,
@ -2360,7 +2362,7 @@
};
class Logger {
constructor(name){
this.name = name, this._logLevel = defaultLogLevel, this._logHandler = defaultLogHandler, this._userLogHandler = null, [].push(this);
this.name = name, this._logLevel = defaultLogLevel, this._logHandler = defaultLogHandler, this._userLogHandler = null, instances.push(this);
}
get logLevel() {
return this._logLevel;

View File

@ -1856,7 +1856,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -2122,7 +2122,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -2426,7 +2426,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -4203,7 +4203,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 3,
reassigned_with_assignment: false,
@ -8250,7 +8250,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: true,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -8353,7 +8353,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -8440,7 +8440,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -8746,7 +8746,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: true,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -10257,7 +10257,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 4,
reassigned_with_assignment: false,
@ -11182,7 +11182,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -11488,7 +11488,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -12781,7 +12781,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -14702,7 +14702,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -17052,7 +17052,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -17269,7 +17269,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -27465,7 +27465,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -28129,7 +28129,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 7,
reassigned_with_assignment: false,
@ -57073,7 +57073,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: false,
@ -60396,7 +60396,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: true,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -70001,7 +70001,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: true,
@ -71682,7 +71682,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -71709,7 +71709,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 7,
usage_count: 18,
reassigned_with_assignment: false,
@ -73022,7 +73022,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -74983,7 +74983,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 4,
reassigned_with_assignment: true,
@ -78879,7 +78879,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -85069,7 +85069,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 4,
reassigned_with_assignment: false,
@ -86631,7 +86631,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: false,
@ -87485,7 +87485,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -91299,7 +91299,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -102662,7 +102662,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -103122,7 +103122,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -108558,7 +108558,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -119123,7 +119123,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -121177,7 +121177,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -122987,7 +122987,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: true,
@ -124832,7 +124832,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -130317,7 +130317,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -138655,7 +138655,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -138693,7 +138693,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -164637,7 +164637,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -168699,7 +168699,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -171025,7 +171025,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 3,
reassigned_with_assignment: false,
@ -178393,7 +178393,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -188387,7 +188387,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: true,
@ -195273,7 +195273,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 18,
reassigned_with_assignment: false,
@ -195666,7 +195666,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -196301,7 +196301,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 6,
reassigned_with_assignment: false,

View File

@ -198,13 +198,24 @@
else for(let e1 = 0; e1 < t; e1++)n[e1] = Math.floor(256 * Math.random());
return n;
}
X.T = -1;
class tt {
static I() {
const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", e = Math.floor(256 / t.length) * t.length;
let n = "";
for(; n.length < 20;){
const s = Z(40);
for(let i = 0; i < s.length; ++i)n.length < 20 && s[i] < e && (n += t.charAt(s[i] % t.length));
}
return n;
}
}
function et(t, e) {
return t < e ? -1 : t > e ? 1 : 0;
}
function nt(t, e, n) {
return t.length === e.length && t.every((t, s)=>n(t, e[s]));
}
X.T = -1;
class it {
constructor(t, e){
if (this.seconds = t, this.nanoseconds = e, e < 0 || e >= 1e9) throw new j(K.INVALID_ARGUMENT, "Timestamp nanoseconds out of range: " + e);
@ -2208,6 +2219,38 @@
return new ii(this.target, this.targetId, this.purpose, this.sequenceNumber, this.snapshotVersion, t, this.resumeToken);
}
}
class ri {
constructor(t){
this.Wt = t;
}
}
class pi {
constructor(){
this.Gt = new Ti();
}
addToCollectionParentIndex(t, e) {
return this.Gt.add(e), js.resolve();
}
getCollectionParents(t, e) {
return js.resolve(this.Gt.getEntries(e));
}
}
class Ti {
constructor(){
this.index = {};
}
add(t) {
const e = t.lastSegment(), n = t.popLast(), s = this.index[e] || new gn(ht.comparator), i = !s.has(n);
return this.index[e] = s.add(n), i;
}
has(t) {
const e = t.lastSegment(), n = t.popLast(), s = this.index[e];
return s && s.has(n);
}
getEntries(t) {
return (this.index[t] || new gn(ht.comparator)).toArray();
}
}
class Ri {
constructor(t, e, n){
this.cacheSizeCollectionThreshold = t, this.percentileToCollect = e, this.maximumSequenceNumbersToCollect = n;
@ -2485,6 +2528,132 @@
Gn: r
})));
}
class Rr {
constructor(t){
this.N = t, this.Yn = new Map(), this.Xn = new Map();
}
getBundleMetadata(t, e) {
return js.resolve(this.Yn.get(e));
}
saveBundleMetadata(t, e) {
var n;
return this.Yn.set(e.id, {
id: (n = e).id,
version: n.version,
createTime: jn(n.createTime)
}), js.resolve();
}
getNamedQuery(t, e) {
return js.resolve(this.Xn.get(e));
}
saveNamedQuery(t, e) {
var t1;
return this.Xn.set(e.name, {
name: (t1 = e).name,
query: function(t) {
var t1, e;
const e1 = function(t) {
var t1, t2, e, n, s, i, o, c;
let e1 = function(t) {
const e = Wn(t);
return 4 === e.length ? ht.emptyPath() : Xn(e);
}(t.parent);
const n1 = t.structuredQuery, s1 = n1.from ? n1.from.length : 0;
let i1 = null;
if (s1 > 0) {
1 === s1 || L();
const t3 = n1.from[0];
t3.allDescendants ? i1 = t3.collectionId : e1 = e1.child(t3.collectionId);
}
let r = [];
n1.where && (r = function hs(t) {
var t1;
return t ? void 0 !== t.unaryFilter ? [
function(t) {
switch(t.unaryFilter.op){
case "IS_NAN":
const e = ms(t.unaryFilter.field);
return Jt.create(e, "==", {
doubleValue: NaN
});
case "IS_NULL":
const n = ms(t.unaryFilter.field);
return Jt.create(n, "==", {
nullValue: "NULL_VALUE"
});
case "IS_NOT_NAN":
const s = ms(t.unaryFilter.field);
return Jt.create(s, "!=", {
doubleValue: NaN
});
case "IS_NOT_NULL":
const i = ms(t.unaryFilter.field);
return Jt.create(i, "!=", {
nullValue: "NULL_VALUE"
});
default:
return L();
}
}(t)
] : void 0 !== t.fieldFilter ? [
(t1 = t, Jt.create(ms(t1.fieldFilter.field), function(t) {
switch(t){
case "EQUAL":
return "==";
case "NOT_EQUAL":
return "!=";
case "GREATER_THAN":
return ">";
case "GREATER_THAN_OR_EQUAL":
return ">=";
case "LESS_THAN":
return "<";
case "LESS_THAN_OR_EQUAL":
return "<=";
case "ARRAY_CONTAINS":
return "array-contains";
case "IN":
return "in";
case "NOT_IN":
return "not-in";
case "ARRAY_CONTAINS_ANY":
return "array-contains-any";
default:
return L();
}
}(t1.fieldFilter.op), t1.fieldFilter.value))
] : void 0 !== t.compositeFilter ? t.compositeFilter.filters.map((t)=>hs(t)).reduce((t, e)=>t.concat(e)) : L() : [];
}(n1.where));
let o1 = [];
n1.orderBy && (o1 = n1.orderBy.map((t)=>{
var t1;
return t1 = t, new ae(ms(t1.field), function(t) {
switch(t){
case "ASCENDING":
return "asc";
case "DESCENDING":
return "desc";
default:
return;
}
}(t1.direction));
}));
let c1 = null, e2;
n1.limit && (c1 = At(e2 = "object" == typeof (t1 = n1.limit) ? t1.value : t1) ? null : e2);
let a = null;
n1.startAt && (a = fs(n1.startAt));
let u = null;
return n1.endAt && (u = fs(n1.endAt)), t2 = e1, e = i1, n = o1, s = r, i = c1, o = a, c = u, new fe(t2, e, n, s, i, "F", o, c);
}({
parent: t.parent,
structuredQuery: t.structuredQuery
});
return "LAST" === t.limitType ? (t1 = e1, e = e1.limit, new fe(t1.path, t1.collectionGroup, t1.explicitOrderBy.slice(), t1.filters.slice(), e, "L", t1.startAt, t1.endAt)) : e1;
}(t1.bundledQuery),
readTime: jn(t1.readTime)
}), js.resolve();
}
}
class br {
constructor(){
this.Zn = new gn(Pr.ts), this.es = new gn(Pr.ns);
@ -2642,6 +2811,53 @@
return e < 0 || e >= this.In.length ? null : this.In[e];
}
}
class Vr {
constructor(t, e){
this.Ht = t, this.ps = e, this.docs = new wn(Pt.comparator), this.size = 0;
}
addEntry(t, e, n) {
const s = e.key, i = this.docs.get(s), r = i ? i.size : 0, o = this.ps(e);
return this.docs = this.docs.insert(s, {
document: e.clone(),
size: o,
readTime: n
}), this.size += o - r, this.Ht.addToCollectionParentIndex(t, s.path.popLast());
}
removeEntry(t) {
const e = this.docs.get(t);
e && (this.docs = this.docs.remove(t), this.size -= e.size);
}
getEntry(t, e) {
const n = this.docs.get(e);
return js.resolve(n ? n.document.clone() : Kt.newInvalidDocument(e));
}
getEntries(t, e) {
let n = pn;
return e.forEach((t)=>{
const e = this.docs.get(t);
n = n.insert(t, e ? e.document.clone() : Kt.newInvalidDocument(t));
}), js.resolve(n);
}
getDocumentsMatchingQuery(t, e, n) {
let s = pn;
const i = new Pt(e.path.child("")), r = this.docs.getIteratorFrom(i);
for(; r.hasNext();){
const { key: t1 , value: { document: i1 , readTime: o } , } = r.getNext();
if (!e.path.isPrefixOf(t1.path)) break;
0 >= o.compareTo(n) || Pe(e, i1) && (s = s.insert(i1.key, i1.clone()));
}
return js.resolve(s);
}
Ts(t, e) {
return js.forEach(this.docs, (t)=>e(t));
}
newChangeBuffer(t) {
return new Sr(this);
}
getSize(t) {
return js.resolve(this.size);
}
}
class Sr extends Qi {
constructor(t){
super(), this.Se = t;
@ -2659,277 +2875,78 @@
return this.Se.getEntries(t, e);
}
}
class Dr {
constructor(t){
this.persistence = t, this.Es = new ji((t)=>Wt(t), zt), this.lastRemoteSnapshotVersion = rt.min(), this.highestTargetId = 0, this.Is = 0, this.As = new br(), this.targetCount = 0, this.Rs = Ni.se();
}
forEachTarget(t, e) {
return this.Es.forEach((t, n)=>e(n)), js.resolve();
}
getLastRemoteSnapshotVersion(t) {
return js.resolve(this.lastRemoteSnapshotVersion);
}
getHighestSequenceNumber(t) {
return js.resolve(this.Is);
}
allocateTargetId(t) {
return this.highestTargetId = this.Rs.next(), js.resolve(this.highestTargetId);
}
setTargetsMetadata(t, e, n) {
return n && (this.lastRemoteSnapshotVersion = n), e > this.Is && (this.Is = e), js.resolve();
}
ce(t) {
this.Es.set(t.target, t);
const e = t.targetId;
e > this.highestTargetId && (this.Rs = new Ni(e), this.highestTargetId = e), t.sequenceNumber > this.Is && (this.Is = t.sequenceNumber);
}
addTargetData(t, e) {
return this.ce(e), this.targetCount += 1, js.resolve();
}
updateTargetData(t, e) {
return this.ce(e), js.resolve();
}
removeTargetData(t, e) {
return this.Es.delete(e.target), this.As.cs(e.targetId), this.targetCount -= 1, js.resolve();
}
removeTargets(t, e, n) {
let s = 0;
const i = [];
return this.Es.forEach((r, o)=>{
o.sequenceNumber <= e && null === n.get(o.targetId) && (this.Es.delete(r), i.push(this.removeMatchingKeysForTargetId(t, o.targetId)), s++);
}), js.waitFor(i).next(()=>s);
}
getTargetCount(t) {
return js.resolve(this.targetCount);
}
getTargetData(t, e) {
const n = this.Es.get(e) || null;
return js.resolve(n);
}
addMatchingKeys(t, e, n) {
return this.As.ss(e, n), js.resolve();
}
removeMatchingKeys(t, e, n) {
this.As.os(e, n);
const s = this.persistence.referenceDelegate, i = [];
return s && e.forEach((e)=>{
i.push(s.markPotentiallyOrphaned(t, e));
}), js.waitFor(i);
}
removeMatchingKeysForTargetId(t, e) {
return this.As.cs(e), js.resolve();
}
getMatchingKeysForTargetId(t, e) {
const n = this.As.hs(e);
return js.resolve(n);
}
containsKey(t, e) {
return js.resolve(this.As.containsKey(e));
}
}
class Cr {
constructor(t, e){
var t1, e1;
this.bs = {}, this.Le = new X(0), this.Be = !1, this.Be = !0, this.referenceDelegate = t(this), this.ze = new class {
constructor(t){
this.persistence = t, this.Es = new ji((t)=>Wt(t), zt), this.lastRemoteSnapshotVersion = rt.min(), this.highestTargetId = 0, this.Is = 0, this.As = new br(), this.targetCount = 0, this.Rs = Ni.se();
}
forEachTarget(t, e) {
return this.Es.forEach((t, n)=>e(n)), js.resolve();
}
getLastRemoteSnapshotVersion(t) {
return js.resolve(this.lastRemoteSnapshotVersion);
}
getHighestSequenceNumber(t) {
return js.resolve(this.Is);
}
allocateTargetId(t) {
return this.highestTargetId = this.Rs.next(), js.resolve(this.highestTargetId);
}
setTargetsMetadata(t, e, n) {
return n && (this.lastRemoteSnapshotVersion = n), e > this.Is && (this.Is = e), js.resolve();
}
ce(t) {
this.Es.set(t.target, t);
const e = t.targetId;
e > this.highestTargetId && (this.Rs = new Ni(e), this.highestTargetId = e), t.sequenceNumber > this.Is && (this.Is = t.sequenceNumber);
}
addTargetData(t, e) {
return this.ce(e), this.targetCount += 1, js.resolve();
}
updateTargetData(t, e) {
return this.ce(e), js.resolve();
}
removeTargetData(t, e) {
return this.Es.delete(e.target), this.As.cs(e.targetId), this.targetCount -= 1, js.resolve();
}
removeTargets(t, e, n) {
let s = 0;
const i = [];
return this.Es.forEach((r, o)=>{
o.sequenceNumber <= e && null === n.get(o.targetId) && (this.Es.delete(r), i.push(this.removeMatchingKeysForTargetId(t, o.targetId)), s++);
}), js.waitFor(i).next(()=>s);
}
getTargetCount(t) {
return js.resolve(this.targetCount);
}
getTargetData(t, e) {
const n = this.Es.get(e) || null;
return js.resolve(n);
}
addMatchingKeys(t, e, n) {
return this.As.ss(e, n), js.resolve();
}
removeMatchingKeys(t, e, n) {
this.As.os(e, n);
const s = this.persistence.referenceDelegate, i = [];
return s && e.forEach((e)=>{
i.push(s.markPotentiallyOrphaned(t, e));
}), js.waitFor(i);
}
removeMatchingKeysForTargetId(t, e) {
return this.As.cs(e), js.resolve();
}
getMatchingKeysForTargetId(t, e) {
const n = this.As.hs(e);
return js.resolve(n);
}
containsKey(t, e) {
return js.resolve(this.As.containsKey(e));
}
}(this), this.Ht = new class {
constructor(){
this.Gt = new class {
constructor(){
this.index = {};
}
add(t) {
const e = t.lastSegment(), n = t.popLast(), s = this.index[e] || new gn(ht.comparator), i = !s.has(n);
return this.index[e] = s.add(n), i;
}
has(t) {
const e = t.lastSegment(), n = t.popLast(), s = this.index[e];
return s && s.has(n);
}
getEntries(t) {
return (this.index[t] || new gn(ht.comparator)).toArray();
}
}();
}
addToCollectionParentIndex(t, e) {
return this.Gt.add(e), js.resolve();
}
getCollectionParents(t, e) {
return js.resolve(this.Gt.getEntries(e));
}
}(), this.He = (t1 = this.Ht, e1 = (t)=>this.referenceDelegate.Ps(t), new class {
constructor(t, e){
this.Ht = t, this.ps = e, this.docs = new wn(Pt.comparator), this.size = 0;
}
addEntry(t, e, n) {
const s = e.key, i = this.docs.get(s), r = i ? i.size : 0, o = this.ps(e);
return this.docs = this.docs.insert(s, {
document: e.clone(),
size: o,
readTime: n
}), this.size += o - r, this.Ht.addToCollectionParentIndex(t, s.path.popLast());
}
removeEntry(t) {
const e = this.docs.get(t);
e && (this.docs = this.docs.remove(t), this.size -= e.size);
}
getEntry(t, e) {
const n = this.docs.get(e);
return js.resolve(n ? n.document.clone() : Kt.newInvalidDocument(e));
}
getEntries(t, e) {
let n = pn;
return e.forEach((t)=>{
const e = this.docs.get(t);
n = n.insert(t, e ? e.document.clone() : Kt.newInvalidDocument(t));
}), js.resolve(n);
}
getDocumentsMatchingQuery(t, e, n) {
let s = pn;
const i = new Pt(e.path.child("")), r = this.docs.getIteratorFrom(i);
for(; r.hasNext();){
const { key: t1 , value: { document: i1 , readTime: o } , } = r.getNext();
if (!e.path.isPrefixOf(t1.path)) break;
0 >= o.compareTo(n) || Pe(e, i1) && (s = s.insert(i1.key, i1.clone()));
}
return js.resolve(s);
}
Ts(t, e) {
return js.forEach(this.docs, (t)=>e(t));
}
newChangeBuffer(t) {
return new Sr(this);
}
getSize(t) {
return js.resolve(this.size);
}
}(t1, e1)), this.N = new class {
constructor(t){
this.Wt = t;
}
}(e), this.Je = new class {
constructor(t){
this.N = t, this.Yn = new Map(), this.Xn = new Map();
}
getBundleMetadata(t, e) {
return js.resolve(this.Yn.get(e));
}
saveBundleMetadata(t, e) {
var n;
return this.Yn.set(e.id, {
id: (n = e).id,
version: n.version,
createTime: jn(n.createTime)
}), js.resolve();
}
getNamedQuery(t, e) {
return js.resolve(this.Xn.get(e));
}
saveNamedQuery(t, e) {
var t1;
return this.Xn.set(e.name, {
name: (t1 = e).name,
query: function(t) {
var t1, e;
const e1 = function(t) {
var t1, t2, e, n, s, i, o, c;
let e1 = function(t) {
const e = Wn(t);
return 4 === e.length ? ht.emptyPath() : Xn(e);
}(t.parent);
const n1 = t.structuredQuery, s1 = n1.from ? n1.from.length : 0;
let i1 = null;
if (s1 > 0) {
1 === s1 || L();
const t3 = n1.from[0];
t3.allDescendants ? i1 = t3.collectionId : e1 = e1.child(t3.collectionId);
}
let r = [];
n1.where && (r = function hs(t) {
var t1;
return t ? void 0 !== t.unaryFilter ? [
function(t) {
switch(t.unaryFilter.op){
case "IS_NAN":
const e = ms(t.unaryFilter.field);
return Jt.create(e, "==", {
doubleValue: NaN
});
case "IS_NULL":
const n = ms(t.unaryFilter.field);
return Jt.create(n, "==", {
nullValue: "NULL_VALUE"
});
case "IS_NOT_NAN":
const s = ms(t.unaryFilter.field);
return Jt.create(s, "!=", {
doubleValue: NaN
});
case "IS_NOT_NULL":
const i = ms(t.unaryFilter.field);
return Jt.create(i, "!=", {
nullValue: "NULL_VALUE"
});
default:
return L();
}
}(t)
] : void 0 !== t.fieldFilter ? [
(t1 = t, Jt.create(ms(t1.fieldFilter.field), function(t) {
switch(t){
case "EQUAL":
return "==";
case "NOT_EQUAL":
return "!=";
case "GREATER_THAN":
return ">";
case "GREATER_THAN_OR_EQUAL":
return ">=";
case "LESS_THAN":
return "<";
case "LESS_THAN_OR_EQUAL":
return "<=";
case "ARRAY_CONTAINS":
return "array-contains";
case "IN":
return "in";
case "NOT_IN":
return "not-in";
case "ARRAY_CONTAINS_ANY":
return "array-contains-any";
default:
return L();
}
}(t1.fieldFilter.op), t1.fieldFilter.value))
] : void 0 !== t.compositeFilter ? t.compositeFilter.filters.map((t)=>hs(t)).reduce((t, e)=>t.concat(e)) : L() : [];
}(n1.where));
let o1 = [];
n1.orderBy && (o1 = n1.orderBy.map((t)=>{
var t1;
return t1 = t, new ae(ms(t1.field), function(t) {
switch(t){
case "ASCENDING":
return "asc";
case "DESCENDING":
return "desc";
default:
return;
}
}(t1.direction));
}));
let c1 = null, e2;
n1.limit && (c1 = At(e2 = "object" == typeof (t1 = n1.limit) ? t1.value : t1) ? null : e2);
let a = null;
n1.startAt && (a = fs(n1.startAt));
let u = null;
return n1.endAt && (u = fs(n1.endAt)), t2 = e1, e = i1, n = o1, s = r, i = c1, o = a, c = u, new fe(t2, e, n, s, i, "F", o, c);
}({
parent: t.parent,
structuredQuery: t.structuredQuery
});
return "LAST" === t.limitType ? (t1 = e1, e = e1.limit, new fe(t1.path, t1.collectionGroup, t1.explicitOrderBy.slice(), t1.filters.slice(), e, "L", t1.startAt, t1.endAt)) : e1;
}(t1.bundledQuery),
readTime: jn(t1.readTime)
}), js.resolve();
}
}(this.N);
this.bs = {}, this.Le = new X(0), this.Be = !1, this.Be = !0, this.referenceDelegate = t(this), this.ze = new Dr(this), this.Ht = new pi(), this.He = (t1 = this.Ht, e1 = (t)=>this.referenceDelegate.Ps(t), new Vr(t1, e1)), this.N = new ri(e), this.Je = new Rr(this.N);
}
start() {
return Promise.resolve();
@ -3583,6 +3600,30 @@
this.kr = !0;
}
}
class so {
constructor(t, e){
this.asyncQueue = t, this.onlineStateHandler = e, this.state = "Unknown", this.Or = 0, this.Fr = null, this.Mr = !0;
}
Lr() {
0 === this.Or && (this.Br("Unknown"), this.Fr = this.asyncQueue.enqueueAfterDelay("online_state_timeout", 1e4, ()=>(this.Fr = null, this.Ur("Backend didn't respond within 10 seconds."), this.Br("Offline"), Promise.resolve())));
}
qr(t) {
"Online" === this.state ? this.Br("Unknown") : (this.Or++, this.Or >= 1 && (this.Kr(), this.Ur(`Connection failed 1 times. Most recent error: ${t.toString()}`), this.Br("Offline")));
}
set(t) {
this.Kr(), this.Or = 0, "Online" === t && (this.Mr = !1), this.Br(t);
}
Br(t) {
t !== this.state && (this.state = t, this.onlineStateHandler(t));
}
Ur(t) {
const e = `Could not reach Cloud Firestore backend. ${t}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;
this.Mr ? (O(e), this.Mr = !1) : $("OnlineStateTracker", e);
}
Kr() {
null !== this.Fr && (this.Fr.cancel(), this.Fr = null);
}
}
class io {
constructor(t, e, n, s, i){
this.localStore = t, this.datastore = e, this.asyncQueue = n, this.remoteSyncer = {}, this.jr = [], this.Qr = new Map(), this.Wr = new Set(), this.Gr = [], this.zr = i, this.zr.Ti((t)=>{
@ -3592,30 +3633,7 @@
e.Wr.add(4), await oo(e), e.Hr.set("Unknown"), e.Wr.delete(4), await ro(e);
}(this));
});
}), this.Hr = new class {
constructor(t, e){
this.asyncQueue = t, this.onlineStateHandler = e, this.state = "Unknown", this.Or = 0, this.Fr = null, this.Mr = !0;
}
Lr() {
0 === this.Or && (this.Br("Unknown"), this.Fr = this.asyncQueue.enqueueAfterDelay("online_state_timeout", 1e4, ()=>(this.Fr = null, this.Ur("Backend didn't respond within 10 seconds."), this.Br("Offline"), Promise.resolve())));
}
qr(t) {
"Online" === this.state ? this.Br("Unknown") : (this.Or++, this.Or >= 1 && (this.Kr(), this.Ur(`Connection failed 1 times. Most recent error: ${t.toString()}`), this.Br("Offline")));
}
set(t) {
this.Kr(), this.Or = 0, "Online" === t && (this.Mr = !1), this.Br(t);
}
Br(t) {
t !== this.state && (this.state = t, this.onlineStateHandler(t));
}
Ur(t) {
const e = `Could not reach Cloud Firestore backend. ${t}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;
this.Mr ? (O(e), this.Mr = !1) : $("OnlineStateTracker", e);
}
Kr() {
null !== this.Fr && (this.Fr.cancel(), this.Fr = null);
}
}(n, s);
}), this.Hr = new so(n, s);
}
}
async function ro(t) {
@ -4355,17 +4373,7 @@
}
class Kc {
constructor(t, e, n){
this.credentials = t, this.asyncQueue = e, this.databaseInfo = n, this.user = D.UNAUTHENTICATED, this.clientId = (class {
static I() {
const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", e = Math.floor(256 / t.length) * t.length;
let n = "";
for(; n.length < 20;){
const s = Z(40);
for(let i = 0; i < s.length; ++i)n.length < 20 && s[i] < e && (n += t.charAt(s[i] % t.length));
}
return n;
}
}).I(), this.credentialListener = ()=>Promise.resolve(), this.credentials.start(e, async (t)=>{
this.credentials = t, this.asyncQueue = e, this.databaseInfo = n, this.user = D.UNAUTHENTICATED, this.clientId = tt.I(), this.credentialListener = ()=>Promise.resolve(), this.credentials.start(e, async (t)=>{
$("FirestoreClient", "Received user=", t.uid), await this.credentialListener(t), this.user = t;
});
}
@ -4609,94 +4617,95 @@
return _a(s1), new Ra(t.firestore, null, s1);
}
}
class Da {
constructor(){
this._c = Promise.resolve(), this.mc = [], this.gc = !1, this.yc = [], this.Tc = null, this.Ec = !1, this.Ic = !1, this.Ac = [], this.ar = new Xr(this, "async_queue_retry"), this.Rc = ()=>{
const t = Jr();
t && $("AsyncQueue", "Visibility state changed to " + t.visibilityState), this.ar.tr();
};
const t = Jr();
t && "function" == typeof t.addEventListener && t.addEventListener("visibilitychange", this.Rc);
}
get isShuttingDown() {
return this.gc;
}
enqueueAndForget(t) {
this.enqueue(t);
}
enqueueAndForgetEvenWhileRestricted(t) {
this.bc(), this.Pc(t);
}
enterRestrictedMode(t) {
if (!this.gc) {
this.gc = !0, this.Ic = t || !1;
const e = Jr();
e && "function" == typeof e.removeEventListener && e.removeEventListener("visibilitychange", this.Rc);
}
}
enqueue(t) {
if (this.bc(), this.gc) return new Promise(()=>{});
const e = new Q();
return this.Pc(()=>this.gc && this.Ic ? Promise.resolve() : (t().then(e.resolve, e.reject), e.promise)).then(()=>e.promise);
}
enqueueRetryable(t) {
this.enqueueAndForget(()=>(this.mc.push(t), this.vc()));
}
async vc() {
if (0 !== this.mc.length) {
try {
await this.mc[0](), this.mc.shift(), this.ar.reset();
} catch (t) {
if (!Hs(t)) throw t;
$("AsyncQueue", "Operation failed with retryable error: " + t);
}
this.mc.length > 0 && this.ar.Xi(()=>this.vc());
}
}
Pc(t) {
const e = this._c.then(()=>(this.Ec = !0, t().catch((t)=>{
var t1;
this.Tc = t, this.Ec = !1;
let e;
const e1 = (e = (t1 = t).message || "", t1.stack && (e = t1.stack.includes(t1.message) ? t1.stack : t1.message + "\n" + t1.stack), e);
throw O("INTERNAL UNHANDLED ERROR: ", e1), t;
}).then((t)=>(this.Ec = !1, t))));
return this._c = e, e;
}
enqueueAfterDelay(t, e, n) {
this.bc(), this.Ac.indexOf(t) > -1 && (e = 0);
const s = xo.createAndSchedule(this, t, e, n, (t)=>this.Vc(t));
return this.yc.push(s), s;
}
bc() {
this.Tc && L();
}
verifyOperationInProgress() {}
async Sc() {
let t;
do await (t = this._c);
while (t !== this._c)
}
Dc(t) {
for (const e of this.yc)if (e.timerId === t) return !0;
return !1;
}
Cc(t) {
return this.Sc().then(()=>{
for (const e of (this.yc.sort((t, e)=>t.targetTimeMs - e.targetTimeMs), this.yc))if (e.skipDelay(), "all" !== t && e.timerId === t) break;
return this.Sc();
});
}
Nc(t) {
this.Ac.push(t);
}
Vc(t) {
const e = this.yc.indexOf(t);
this.yc.splice(e, 1);
}
}
class ka extends Ta {
constructor(t, e){
super(t, e), this.type = "firestore", this._queue = new class {
constructor(){
this._c = Promise.resolve(), this.mc = [], this.gc = !1, this.yc = [], this.Tc = null, this.Ec = !1, this.Ic = !1, this.Ac = [], this.ar = new Xr(this, "async_queue_retry"), this.Rc = ()=>{
const t = Jr();
t && $("AsyncQueue", "Visibility state changed to " + t.visibilityState), this.ar.tr();
};
const t = Jr();
t && "function" == typeof t.addEventListener && t.addEventListener("visibilitychange", this.Rc);
}
get isShuttingDown() {
return this.gc;
}
enqueueAndForget(t) {
this.enqueue(t);
}
enqueueAndForgetEvenWhileRestricted(t) {
this.bc(), this.Pc(t);
}
enterRestrictedMode(t) {
if (!this.gc) {
this.gc = !0, this.Ic = t || !1;
const e = Jr();
e && "function" == typeof e.removeEventListener && e.removeEventListener("visibilitychange", this.Rc);
}
}
enqueue(t) {
if (this.bc(), this.gc) return new Promise(()=>{});
const e = new Q();
return this.Pc(()=>this.gc && this.Ic ? Promise.resolve() : (t().then(e.resolve, e.reject), e.promise)).then(()=>e.promise);
}
enqueueRetryable(t) {
this.enqueueAndForget(()=>(this.mc.push(t), this.vc()));
}
async vc() {
if (0 !== this.mc.length) {
try {
await this.mc[0](), this.mc.shift(), this.ar.reset();
} catch (t) {
if (!Hs(t)) throw t;
$("AsyncQueue", "Operation failed with retryable error: " + t);
}
this.mc.length > 0 && this.ar.Xi(()=>this.vc());
}
}
Pc(t) {
const e = this._c.then(()=>(this.Ec = !0, t().catch((t)=>{
var t1;
this.Tc = t, this.Ec = !1;
let e;
const e1 = (e = (t1 = t).message || "", t1.stack && (e = t1.stack.includes(t1.message) ? t1.stack : t1.message + "\n" + t1.stack), e);
throw O("INTERNAL UNHANDLED ERROR: ", e1), t;
}).then((t)=>(this.Ec = !1, t))));
return this._c = e, e;
}
enqueueAfterDelay(t, e, n) {
this.bc(), this.Ac.indexOf(t) > -1 && (e = 0);
const s = xo.createAndSchedule(this, t, e, n, (t)=>this.Vc(t));
return this.yc.push(s), s;
}
bc() {
this.Tc && L();
}
verifyOperationInProgress() {}
async Sc() {
let t;
do await (t = this._c);
while (t !== this._c)
}
Dc(t) {
for (const e of this.yc)if (e.timerId === t) return !0;
return !1;
}
Cc(t) {
return this.Sc().then(()=>{
for (const e of (this.yc.sort((t, e)=>t.targetTimeMs - e.targetTimeMs), this.yc))if (e.skipDelay(), "all" !== t && e.timerId === t) break;
return this.Sc();
});
}
Nc(t) {
this.Ac.push(t);
}
Vc(t) {
const e = this.yc.indexOf(t);
this.yc.splice(e, 1);
}
}(), this._persistenceKey = "name" in t ? t.name : "[DEFAULT]";
super(t, e), this.type = "firestore", this._queue = new Da(), this._persistenceKey = "name" in t ? t.name : "[DEFAULT]";
}
_terminate() {
return this._firestoreClient || Ma(this), this._firestoreClient.terminate();

View File

@ -129,7 +129,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -363,7 +363,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,

View File

@ -1607,7 +1607,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 5,
reassigned_with_assignment: false,
@ -9901,7 +9901,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -9941,7 +9941,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 4,
reassigned_with_assignment: false,
@ -18027,7 +18027,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -33235,7 +33235,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -34755,7 +34755,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -34795,7 +34795,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 3,
usage_count: 5,
reassigned_with_assignment: true,
@ -41123,7 +41123,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 8,
usage_count: 8,
reassigned_with_assignment: true,
@ -41591,7 +41591,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 4,
reassigned_with_assignment: false,
@ -41631,7 +41631,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 4,
usage_count: 7,
reassigned_with_assignment: true,
@ -49493,7 +49493,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -50883,7 +50883,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,

View File

@ -42501,7 +42501,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 12,
reassigned_with_assignment: false,
@ -42621,7 +42621,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 7,
reassigned_with_assignment: false,
@ -84999,7 +84999,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -87145,7 +87145,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -96743,7 +96743,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -98551,7 +98551,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -98589,7 +98589,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -113057,7 +113057,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -131915,7 +131915,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 6,
usage_count: 8,
reassigned_with_assignment: false,
@ -134581,7 +134581,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -134621,7 +134621,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -134661,7 +134661,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -134701,7 +134701,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -134741,7 +134741,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: true,
@ -134779,7 +134779,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -134935,7 +134935,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -134975,7 +134975,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -135051,7 +135051,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -135207,7 +135207,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: true,
@ -135285,7 +135285,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: true,
@ -135403,7 +135403,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -141939,7 +141939,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 3,
usage_count: 5,
reassigned_with_assignment: true,
@ -141979,7 +141979,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 3,
usage_count: 5,
reassigned_with_assignment: true,
@ -160107,7 +160107,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -160185,7 +160185,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -160223,7 +160223,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: false,
@ -160299,7 +160299,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: false,
@ -160491,7 +160491,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -160911,7 +160911,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -171045,7 +171045,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 58,
usage_count: 80,
reassigned_with_assignment: false,

View File

@ -3735,7 +3735,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,

View File

@ -8739,7 +8739,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: false,
@ -9487,7 +9487,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -16169,7 +16169,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 9,
reassigned_with_assignment: false,

View File

@ -176,8 +176,8 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -329,7 +329,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,

View File

@ -171,7 +171,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -8189,7 +8189,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 3,
reassigned_with_assignment: false,
@ -8227,7 +8227,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 6,
reassigned_with_assignment: false,
@ -10041,7 +10041,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 4,
reassigned_with_assignment: false,
@ -10277,7 +10277,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 21,
reassigned_with_assignment: false,
@ -11521,7 +11521,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: true,
@ -12999,7 +12999,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -13937,7 +13937,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -14405,7 +14405,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 7,
reassigned_with_assignment: false,
@ -14565,7 +14565,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -15363,7 +15363,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 4,
reassigned_with_assignment: true,
@ -16589,7 +16589,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 5,
reassigned_with_assignment: false,
@ -17211,7 +17211,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: false,
@ -17521,7 +17521,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 2,
mutation_by_call_count: 1,
usage_count: 18,
reassigned_with_assignment: true,
@ -17559,7 +17559,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 5,
reassigned_with_assignment: false,
@ -17635,7 +17635,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -18989,7 +18989,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 13,
reassigned_with_assignment: false,
@ -20429,7 +20429,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 2,
mutation_by_call_count: 4,
usage_count: 9,
reassigned_with_assignment: true,
@ -29061,7 +29061,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 5,
reassigned_with_assignment: true,
@ -32715,7 +32715,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -33339,7 +33339,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 4,
reassigned_with_assignment: false,
@ -36751,7 +36751,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -37291,7 +37291,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 6,
reassigned_with_assignment: false,
@ -40167,7 +40167,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 4,
reassigned_with_assignment: false,
@ -42091,7 +42091,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 5,
reassigned_with_assignment: false,
@ -42209,7 +42209,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 6,
usage_count: 13,
reassigned_with_assignment: false,
@ -42285,7 +42285,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: false,
@ -44147,7 +44147,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 4,
reassigned_with_assignment: false,
@ -44377,7 +44377,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -46949,7 +46949,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 4,
reassigned_with_assignment: false,
@ -47335,7 +47335,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 5,
reassigned_with_assignment: false,
@ -47759,7 +47759,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 6,
reassigned_with_assignment: false,
@ -48573,7 +48573,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -49145,7 +49145,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 5,
usage_count: 5,
reassigned_with_assignment: false,
@ -49873,7 +49873,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 3,
reassigned_with_assignment: true,
@ -52323,7 +52323,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -62907,7 +62907,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -65005,7 +65005,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 6,
reassigned_with_assignment: false,
@ -65429,7 +65429,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 4,
reassigned_with_assignment: false,
@ -65739,7 +65739,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -68833,7 +68833,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -70077,7 +70077,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: true,
@ -72751,7 +72751,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 5,
reassigned_with_assignment: false,

View File

@ -13,7 +13,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 8,
reassigned_with_assignment: false,
@ -875,7 +875,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 52,
reassigned_with_assignment: false,
@ -3535,7 +3535,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: false,
@ -7275,7 +7275,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 15,
usage_count: 15,
reassigned_with_assignment: false,
@ -21649,7 +21649,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: true,
@ -22527,7 +22527,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: true,
@ -22567,7 +22567,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -22727,7 +22727,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -29485,7 +29485,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -34355,7 +34355,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 4,
reassigned_with_assignment: false,
@ -44965,7 +44965,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -45125,7 +45125,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -45603,7 +45603,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 22,
usage_count: 68,
reassigned_with_assignment: false,
@ -50031,7 +50031,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 5,
reassigned_with_assignment: false,
@ -53671,7 +53671,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 7,
usage_count: 8,
reassigned_with_assignment: true,
@ -60177,7 +60177,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 12,
reassigned_with_assignment: false,
@ -72311,7 +72311,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -72549,7 +72549,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 5,
reassigned_with_assignment: false,
@ -105571,7 +105571,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 6,
reassigned_with_assignment: false,
@ -109449,7 +109449,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 4,
reassigned_with_assignment: true,
@ -113077,7 +113077,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -113117,7 +113117,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: true,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -115605,7 +115605,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -115947,7 +115947,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -122273,7 +122273,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 5,
reassigned_with_assignment: false,
@ -133343,7 +133343,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 6,
reassigned_with_assignment: false,
@ -135195,7 +135195,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 4,
reassigned_with_assignment: false,
@ -136275,7 +136275,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -136783,7 +136783,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 0,
mutation_by_call_count: 5,
usage_count: 206,
reassigned_with_assignment: false,
@ -149469,7 +149469,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -149545,7 +149545,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -153135,7 +153135,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: true,
@ -158281,7 +158281,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 5,
reassigned_with_assignment: false,
@ -175191,7 +175191,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: true,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -176293,7 +176293,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 4,
usage_count: 6,
reassigned_with_assignment: true,
@ -179781,7 +179781,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 14,
reassigned_with_assignment: false,
@ -179821,7 +179821,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: true,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -189577,7 +189577,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 24,
reassigned_with_assignment: false,
@ -197307,7 +197307,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 6,
usage_count: 6,
reassigned_with_assignment: false,
@ -197893,7 +197893,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -200181,7 +200181,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -202783,7 +202783,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -203213,7 +203213,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 12,
reassigned_with_assignment: false,
@ -209511,7 +209511,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 2,
mutation_by_call_count: 3,
usage_count: 5,
reassigned_with_assignment: true,
@ -211203,7 +211203,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -213587,7 +213587,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -214977,7 +214977,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 4,
reassigned_with_assignment: false,
@ -218727,7 +218727,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -232177,7 +232177,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -255721,7 +255721,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -256145,7 +256145,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -264625,7 +264625,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -272921,7 +272921,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: false,
@ -278769,7 +278769,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -279657,7 +279657,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 5,
assign_count: 2,
mutation_by_call_count: 0,
usage_count: 5,
reassigned_with_assignment: true,
@ -279697,7 +279697,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 2,
mutation_by_call_count: 0,
usage_count: 7,
reassigned_with_assignment: true,
@ -305745,7 +305745,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 4,
reassigned_with_assignment: false,
@ -308763,7 +308763,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 4,
reassigned_with_assignment: false,
@ -310545,7 +310545,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 3,
reassigned_with_assignment: false,
@ -327125,7 +327125,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -327245,7 +327245,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -329711,7 +329711,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 6,
assign_count: 5,
mutation_by_call_count: 6,
usage_count: 10,
reassigned_with_assignment: true,

View File

@ -10651,8 +10651,8 @@
parsePesTime: parsePesTime,
videoPacketContainsKeyFrame: videoPacketContainsKeyFrame
}, probe.aac = utils;
var ONE_SECOND_IN_TS = clock.ONE_SECOND_IN_TS, MP2T_PACKET_LENGTH = 188, parsePsi_ = function(bytes, pmt) {
for(var packet, startIndex = 0, endIndex = MP2T_PACKET_LENGTH; endIndex < bytes.byteLength;){
var ONE_SECOND_IN_TS = clock.ONE_SECOND_IN_TS, parsePsi_ = function(bytes, pmt) {
for(var packet, startIndex = 0, endIndex = 188; endIndex < bytes.byteLength;){
if (0x47 === bytes[startIndex] && 0x47 === bytes[endIndex]) {
switch(packet = bytes.subarray(startIndex, endIndex), probe.ts.parseType(packet, pmt.pid)){
case "pat":
@ -10664,30 +10664,30 @@
pmt.table[key] = table[key];
});
}
startIndex += MP2T_PACKET_LENGTH, endIndex += MP2T_PACKET_LENGTH;
startIndex += 188, endIndex += 188;
continue;
}
startIndex++, endIndex++;
}
}, parseAudioPes_ = function(bytes, pmt, result) {
for(var packet, pesType, pusi, parsed, startIndex = 0, endIndex = MP2T_PACKET_LENGTH, endLoop = !1; endIndex <= bytes.byteLength;){
for(var packet, pesType, pusi, parsed, startIndex = 0, endIndex = 188, endLoop = !1; endIndex <= bytes.byteLength;){
if (0x47 === bytes[startIndex] && (0x47 === bytes[endIndex] || endIndex === bytes.byteLength)) {
if (packet = bytes.subarray(startIndex, endIndex), "pes" === probe.ts.parseType(packet, pmt.pid) && (pesType = probe.ts.parsePesType(packet, pmt.table), pusi = probe.ts.parsePayloadUnitStartIndicator(packet), "audio" === pesType && pusi && (parsed = probe.ts.parsePesTime(packet)) && (parsed.type = "audio", result.audio.push(parsed), endLoop = !0)), endLoop) break;
startIndex += MP2T_PACKET_LENGTH, endIndex += MP2T_PACKET_LENGTH;
startIndex += 188, endIndex += 188;
continue;
}
startIndex++, endIndex++;
}
for(startIndex = (endIndex = bytes.byteLength) - MP2T_PACKET_LENGTH, endLoop = !1; startIndex >= 0;){
for(startIndex = (endIndex = bytes.byteLength) - 188, endLoop = !1; startIndex >= 0;){
if (0x47 === bytes[startIndex] && (0x47 === bytes[endIndex] || endIndex === bytes.byteLength)) {
if (packet = bytes.subarray(startIndex, endIndex), "pes" === probe.ts.parseType(packet, pmt.pid) && (pesType = probe.ts.parsePesType(packet, pmt.table), pusi = probe.ts.parsePayloadUnitStartIndicator(packet), "audio" === pesType && pusi && (parsed = probe.ts.parsePesTime(packet)) && (parsed.type = "audio", result.audio.push(parsed), endLoop = !0)), endLoop) break;
startIndex -= MP2T_PACKET_LENGTH, endIndex -= MP2T_PACKET_LENGTH;
startIndex -= 188, endIndex -= 188;
continue;
}
startIndex--, endIndex--;
}
}, parseVideoPes_ = function(bytes, pmt, result) {
for(var packet, pesType, pusi, parsed, frame, i, pes, startIndex = 0, endIndex = MP2T_PACKET_LENGTH, endLoop = !1, currentFrame = {
for(var packet, pesType, pusi, parsed, frame, i, pes, startIndex = 0, endIndex = 188, endLoop = !1, currentFrame = {
data: [],
size: 0
}; endIndex < bytes.byteLength;){
@ -10704,15 +10704,15 @@
currentFrame.data.push(packet), currentFrame.size += packet.byteLength;
}
if (endLoop && result.firstKeyFrame) break;
startIndex += MP2T_PACKET_LENGTH, endIndex += MP2T_PACKET_LENGTH;
startIndex += 188, endIndex += 188;
continue;
}
startIndex++, endIndex++;
}
for(startIndex = (endIndex = bytes.byteLength) - MP2T_PACKET_LENGTH, endLoop = !1; startIndex >= 0;){
for(startIndex = (endIndex = bytes.byteLength) - 188, endLoop = !1; startIndex >= 0;){
if (0x47 === bytes[startIndex] && 0x47 === bytes[endIndex]) {
if (packet = bytes.subarray(startIndex, endIndex), "pes" === probe.ts.parseType(packet, pmt.pid) && (pesType = probe.ts.parsePesType(packet, pmt.table), pusi = probe.ts.parsePayloadUnitStartIndicator(packet), "video" === pesType && pusi && (parsed = probe.ts.parsePesTime(packet)) && (parsed.type = "video", result.video.push(parsed), endLoop = !0)), endLoop) break;
startIndex -= MP2T_PACKET_LENGTH, endIndex -= MP2T_PACKET_LENGTH;
startIndex -= 188, endIndex -= 188;
continue;
}
startIndex--, endIndex--;

View File

@ -93,7 +93,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 21,
reassigned_with_assignment: false,
@ -12809,7 +12809,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -20393,7 +20393,7 @@ TestSnapshot {
declared_count: 2,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 9,
reassigned_with_assignment: false,
@ -27625,7 +27625,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 4,
reassigned_with_assignment: true,
@ -29115,7 +29115,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 4,
usage_count: 10,
reassigned_with_assignment: true,
@ -30415,7 +30415,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 19,
reassigned_with_assignment: false,
@ -30873,7 +30873,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 3,
usage_count: 5,
reassigned_with_assignment: true,
@ -38509,7 +38509,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 9,
reassigned_with_assignment: false,
@ -39085,7 +39085,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 9,
reassigned_with_assignment: false,
@ -45729,7 +45729,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 4,
reassigned_with_assignment: false,
@ -47009,7 +47009,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -47047,7 +47047,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 4,
reassigned_with_assignment: false,
@ -51357,7 +51357,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 4,
reassigned_with_assignment: false,
@ -53287,7 +53287,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 9,
reassigned_with_assignment: false,
@ -57075,7 +57075,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 6,
assign_count: 5,
mutation_by_call_count: 10,
usage_count: 18,
reassigned_with_assignment: true,
@ -59191,7 +59191,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 6,
reassigned_with_assignment: false,
@ -65205,7 +65205,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: true,
@ -66231,7 +66231,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: false,
@ -84165,7 +84165,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -89119,7 +89119,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 2,
mutation_by_call_count: 12,
usage_count: 21,
reassigned_with_assignment: true,
@ -91675,7 +91675,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 3,
reassigned_with_assignment: false,
@ -99127,7 +99127,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 4,
reassigned_with_assignment: true,
@ -109321,7 +109321,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 7,
assign_count: 6,
mutation_by_call_count: 18,
usage_count: 19,
reassigned_with_assignment: true,
@ -109511,7 +109511,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -109707,7 +109707,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -109897,7 +109897,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -109935,7 +109935,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -109973,7 +109973,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: true,
@ -113579,7 +113579,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 5,
assign_count: 2,
mutation_by_call_count: 4,
usage_count: 10,
reassigned_with_assignment: true,
@ -118701,7 +118701,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -122661,7 +122661,7 @@ TestSnapshot {
declared_count: 2,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 6,
assign_count: 5,
mutation_by_call_count: 9,
usage_count: 13,
reassigned_with_assignment: true,
@ -126743,7 +126743,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: false,
@ -129019,7 +129019,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,

View File

@ -3465,33 +3465,6 @@
return Object.keys(segmentInfo).forEach(function(key) {
segmentInfo[key] || delete segmentInfo[key];
}), segmentInfo;
}, parseCaptionServiceMetadata = function(service) {
return "urn:scte:dash:cc:cea-608:2015" === service.schemeIdUri ? ("string" != typeof service.value ? [] : service.value.split(";")).map(function(value) {
if (language = value, /^CC\d=/.test(value)) {
var channel, language, _value$split = value.split("=");
channel = _value$split[0], language = _value$split[1];
} else /^CC\d$/.test(value) && (channel = value);
return {
channel: channel,
language: language
};
}) : "urn:scte:dash:cc:cea-708:2015" === service.schemeIdUri ? ("string" != typeof service.value ? [] : service.value.split(";")).map(function(value) {
var flags = {
channel: void 0,
language: void 0,
aspectRatio: 1,
easyReader: 0,
"3D": 0
};
if (/=/.test(value)) {
var _value$split2 = value.split("="), channel = _value$split2[0], _value$split2$ = _value$split2[1];
flags.channel = channel, flags.language = value, (void 0 === _value$split2$ ? "" : _value$split2$).split(",").forEach(function(opt) {
var _opt$split = opt.split(":"), name = _opt$split[0], val = _opt$split[1];
"lang" === name ? flags.language = val : "er" === name ? flags.easyReader = Number(val) : "war" === name ? flags.aspectRatio = Number(val) : "3D" === name && (flags["3D"] = Number(val));
});
} else flags.language = value;
return flags.channel && (flags.channel = "SERVICE" + flags.channel), flags;
}) : void 0;
}, getPeriodStart = function(_ref) {
var attributes = _ref.attributes, priorPeriodAttributes = _ref.priorPeriodAttributes, mpdType = _ref.mpdType;
return "number" == typeof attributes.start ? attributes.start : priorPeriodAttributes && "number" == typeof priorPeriodAttributes.start && "number" == typeof priorPeriodAttributes.duration ? priorPeriodAttributes.start + priorPeriodAttributes.duration : priorPeriodAttributes || "static" !== mpdType ? null : 0;
@ -3524,9 +3497,34 @@
"number" == typeof period.attributes.duration && (periodAttributes.periodDuration = period.attributes.duration);
var periodAttributes1, periodBaseUrls1, periodSegmentInfo, adaptationSets = findChildren(period.node, "AdaptationSet"), periodSegmentInfo1 = getSegmentInformation(period.node);
return flatten(adaptationSets.map((periodAttributes1 = periodAttributes, periodBaseUrls1 = periodBaseUrls, periodSegmentInfo = periodSegmentInfo1, function(adaptationSet) {
var adaptationSetAttributes = parseAttributes(adaptationSet), adaptationSetBaseUrls = buildBaseUrls(periodBaseUrls1, findChildren(adaptationSet, "BaseURL")), role = findChildren(adaptationSet, "Role")[0], roleAttributes = {
var service, adaptationSetAttributes = parseAttributes(adaptationSet), adaptationSetBaseUrls = buildBaseUrls(periodBaseUrls1, findChildren(adaptationSet, "BaseURL")), role = findChildren(adaptationSet, "Role")[0], roleAttributes = {
role: parseAttributes(role)
}, attrs = merge(periodAttributes1, adaptationSetAttributes, roleAttributes), accessibility = findChildren(adaptationSet, "Accessibility")[0], captionServices = parseCaptionServiceMetadata(parseAttributes(accessibility));
}, attrs = merge(periodAttributes1, adaptationSetAttributes, roleAttributes), accessibility = findChildren(adaptationSet, "Accessibility")[0], captionServices = "urn:scte:dash:cc:cea-608:2015" === (service = parseAttributes(accessibility)).schemeIdUri ? ("string" != typeof service.value ? [] : service.value.split(";")).map(function(value) {
if (language = value, /^CC\d=/.test(value)) {
var channel, language, _value$split = value.split("=");
channel = _value$split[0], language = _value$split[1];
} else /^CC\d$/.test(value) && (channel = value);
return {
channel: channel,
language: language
};
}) : "urn:scte:dash:cc:cea-708:2015" === service.schemeIdUri ? ("string" != typeof service.value ? [] : service.value.split(";")).map(function(value) {
var flags = {
channel: void 0,
language: void 0,
aspectRatio: 1,
easyReader: 0,
"3D": 0
};
if (/=/.test(value)) {
var _value$split2 = value.split("="), channel = _value$split2[0], _value$split2$ = _value$split2[1];
flags.channel = channel, flags.language = value, (void 0 === _value$split2$ ? "" : _value$split2$).split(",").forEach(function(opt) {
var _opt$split = opt.split(":"), name = _opt$split[0], val = _opt$split[1];
"lang" === name ? flags.language = val : "er" === name ? flags.easyReader = Number(val) : "war" === name ? flags.aspectRatio = Number(val) : "3D" === name && (flags["3D"] = Number(val));
});
} else flags.language = value;
return flags.channel && (flags.channel = "SERVICE" + flags.channel), flags;
}) : void 0;
captionServices && (attrs = merge(attrs, {
captionServices: captionServices
}));

View File

@ -759,7 +759,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: true,
used_in_cond: true,
var_kind: Some(
@ -1117,7 +1117,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -1509,7 +1509,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -2063,7 +2063,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -2715,7 +2715,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -3153,7 +3153,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -3465,7 +3465,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -3503,7 +3503,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -4529,7 +4529,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -5819,7 +5819,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -6277,7 +6277,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -6583,7 +6583,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: None,
@ -6621,7 +6621,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: None,
@ -6659,7 +6659,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -6696,8 +6696,8 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: true,
is_fn_local: true,
used_by_nested_fn: false,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -7191,7 +7191,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,

View File

@ -6203,7 +6203,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -11717,7 +11717,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 9,
reassigned_with_assignment: false,

View File

@ -186441,7 +186441,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: true,
@ -228119,7 +228119,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: true,
@ -235383,7 +235383,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 42,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 97,
reassigned_with_assignment: false,
@ -236575,7 +236575,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 8,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: true,
@ -236615,7 +236615,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: true,
@ -236773,7 +236773,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 13,
assign_count: 9,
mutation_by_call_count: 10,
usage_count: 12,
reassigned_with_assignment: true,
@ -243509,7 +243509,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 8,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: true,
@ -243549,7 +243549,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: true,
@ -243707,7 +243707,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 14,
assign_count: 10,
mutation_by_call_count: 12,
usage_count: 13,
reassigned_with_assignment: true,
@ -249207,7 +249207,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: true,
@ -250903,7 +250903,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 8,
assign_count: 1,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: true,
@ -256357,7 +256357,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 8,
assign_count: 1,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: true,
@ -256437,7 +256437,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 5,
assign_count: 1,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: true,
@ -260335,7 +260335,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 9,
assign_count: 3,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: true,
@ -260415,7 +260415,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 5,
assign_count: 1,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: true,
@ -263313,7 +263313,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 10,
assign_count: 4,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: true,
@ -263393,7 +263393,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 5,
assign_count: 1,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: true,
@ -267317,7 +267317,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 3,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: true,
@ -269179,7 +269179,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 5,
usage_count: 5,
reassigned_with_assignment: true,
@ -274205,7 +274205,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: true,
@ -274245,7 +274245,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 26,
assign_count: 21,
mutation_by_call_count: 14,
usage_count: 21,
reassigned_with_assignment: true,
@ -277369,7 +277369,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: true,

View File

@ -1127,7 +1127,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 5,
reassigned_with_assignment: false,
@ -2779,7 +2779,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -4077,7 +4077,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -24903,7 +24903,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 11,
assign_count: 2,
mutation_by_call_count: 10,
usage_count: 15,
reassigned_with_assignment: true,
@ -29853,7 +29853,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -32323,7 +32323,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -33363,7 +33363,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -38475,7 +38475,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -38515,7 +38515,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -46943,7 +46943,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: false,

View File

@ -1329,7 +1329,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 90,
usage_count: 101,
reassigned_with_assignment: false,
@ -5337,7 +5337,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 3,
reassigned_with_assignment: false,
@ -7353,7 +7353,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -7393,7 +7393,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: true,
@ -8753,7 +8753,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 6,
reassigned_with_assignment: false,
@ -8913,7 +8913,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 5,
reassigned_with_assignment: true,
@ -8953,7 +8953,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -9067,7 +9067,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -11003,7 +11003,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -11981,7 +11981,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: true,
@ -12293,7 +12293,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 3,
reassigned_with_assignment: false,
@ -12947,7 +12947,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 5,
usage_count: 8,
reassigned_with_assignment: false,
@ -16841,7 +16841,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 3,
reassigned_with_assignment: false,
@ -16879,7 +16879,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -16955,7 +16955,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 5,
usage_count: 7,
reassigned_with_assignment: false,
@ -19207,7 +19207,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 7,
reassigned_with_assignment: false,
@ -20287,7 +20287,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 6,
reassigned_with_assignment: false,
@ -25843,7 +25843,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -25923,7 +25923,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -27393,7 +27393,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: false,
@ -27627,7 +27627,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 3,
reassigned_with_assignment: false,
@ -27667,7 +27667,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -27705,7 +27705,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -27781,7 +27781,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -30231,7 +30231,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 8,
usage_count: 11,
reassigned_with_assignment: false,
@ -31371,7 +31371,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -32501,7 +32501,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: false,
@ -41383,7 +41383,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -44087,7 +44087,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: false,
@ -45173,7 +45173,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: true,
@ -45567,7 +45567,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 2,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: true,
@ -49777,7 +49777,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 5,
usage_count: 5,
reassigned_with_assignment: false,
@ -51491,7 +51491,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 4,
reassigned_with_assignment: false,
@ -51771,7 +51771,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -52397,7 +52397,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -52747,7 +52747,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 4,
reassigned_with_assignment: false,
@ -55269,7 +55269,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 9,
usage_count: 9,
reassigned_with_assignment: false,
@ -67055,7 +67055,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 2,
mutation_by_call_count: 5,
usage_count: 8,
reassigned_with_assignment: true,
@ -67175,7 +67175,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 2,
mutation_by_call_count: 5,
usage_count: 7,
reassigned_with_assignment: true,
@ -70613,7 +70613,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: true,
@ -71173,7 +71173,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: true,
@ -74653,7 +74653,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -75811,7 +75811,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 4,
reassigned_with_assignment: false,
@ -79635,7 +79635,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 4,
usage_count: 4,
reassigned_with_assignment: true,
@ -79907,7 +79907,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -80567,7 +80567,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: true,
@ -80683,7 +80683,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 6,
usage_count: 9,
reassigned_with_assignment: false,
@ -80913,7 +80913,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 5,
reassigned_with_assignment: false,
@ -82183,7 +82183,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 14,
reassigned_with_assignment: false,
@ -87523,7 +87523,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 10,
reassigned_with_assignment: false,
@ -90259,7 +90259,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 6,
usage_count: 6,
reassigned_with_assignment: false,
@ -90921,7 +90921,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -92827,7 +92827,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 5,
reassigned_with_assignment: false,
@ -92867,7 +92867,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: true,
@ -93627,7 +93627,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 4,
reassigned_with_assignment: false,
@ -93667,7 +93667,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 5,
usage_count: 5,
reassigned_with_assignment: true,
@ -94605,7 +94605,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -94913,7 +94913,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -95491,7 +95491,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -96273,7 +96273,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -97451,7 +97451,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: true,
@ -101201,7 +101201,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -104059,7 +104059,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 5,
reassigned_with_assignment: false,
@ -105479,7 +105479,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 1,
mutation_by_call_count: 5,
usage_count: 5,
reassigned_with_assignment: true,
@ -108729,7 +108729,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -108847,7 +108847,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 6,
usage_count: 6,
reassigned_with_assignment: false,
@ -109075,7 +109075,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -109151,7 +109151,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 4,
reassigned_with_assignment: false,
@ -115573,7 +115573,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -117271,7 +117271,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 4,
reassigned_with_assignment: false,
@ -125335,7 +125335,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -125851,7 +125851,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -126121,7 +126121,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -127601,7 +127601,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 2,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: true,
@ -130417,7 +130417,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -133351,7 +133351,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -134801,7 +134801,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -136029,7 +136029,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 4,
reassigned_with_assignment: false,
@ -139109,7 +139109,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 3,
reassigned_with_assignment: false,
@ -139613,7 +139613,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 6,
reassigned_with_assignment: false,
@ -141511,7 +141511,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 10,
reassigned_with_assignment: false,
@ -143029,7 +143029,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -143069,7 +143069,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -144489,7 +144489,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: true,
@ -144565,7 +144565,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 6,
usage_count: 6,
reassigned_with_assignment: false,
@ -144953,7 +144953,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 1,
mutation_by_call_count: 3,
usage_count: 4,
reassigned_with_assignment: true,
@ -145067,7 +145067,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 6,
usage_count: 7,
reassigned_with_assignment: true,

View File

@ -4588,11 +4588,9 @@
if (null != ch && (moveInStorageOrder ? ch <= part.to && ch <= wrappedLineExtent.end : ch >= part.from && ch >= wrappedLineExtent.begin)) return new Pos(start.line, ch, moveInStorageOrder ? "before" : "after");
}
var searchInVisualLine = function(partPos, dir, wrappedLineExtent) {
for(var getRes = function(ch, moveInStorageOrder) {
return moveInStorageOrder ? new Pos(start.line, mv(ch, 1), "before") : new Pos(start.line, ch, "after");
}; partPos >= 0 && partPos < bidi.length; partPos += dir){
var part = bidi[partPos], moveInStorageOrder = dir > 0 == (1 != part.level), ch = moveInStorageOrder ? wrappedLineExtent.begin : mv(wrappedLineExtent.end, -1);
if (part.from <= ch && ch < part.to || (ch = moveInStorageOrder ? part.from : mv(part.to, -1), wrappedLineExtent.begin <= ch && ch < wrappedLineExtent.end)) return getRes(ch, moveInStorageOrder);
for(; partPos >= 0 && partPos < bidi.length; partPos += dir){
var ch, part = bidi[partPos], moveInStorageOrder = dir > 0 == (1 != part.level), ch1 = moveInStorageOrder ? wrappedLineExtent.begin : mv(wrappedLineExtent.end, -1);
if (part.from <= ch1 && ch1 < part.to || (ch1 = moveInStorageOrder ? part.from : mv(part.to, -1), wrappedLineExtent.begin <= ch1 && ch1 < wrappedLineExtent.end)) return ch = ch1, moveInStorageOrder ? new Pos(start.line, mv(ch, 1), "before") : new Pos(start.line, ch, "after");
}
}, res = searchInVisualLine(partPos + dir, dir, wrappedLineExtent);
if (res) return res;

View File

@ -33961,7 +33961,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -35461,7 +35461,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -35499,7 +35499,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -35537,7 +35537,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: true,
@ -35993,7 +35993,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 4,
reassigned_with_assignment: true,

File diff suppressed because it is too large Load Diff

View File

@ -369,7 +369,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 4,
reassigned_with_assignment: false,
@ -841,7 +841,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 6,
reassigned_with_assignment: false,
@ -1585,7 +1585,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 6,
assign_count: 2,
mutation_by_call_count: 6,
usage_count: 7,
reassigned_with_assignment: true,
@ -1663,7 +1663,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 8,
reassigned_with_assignment: false,
@ -2133,7 +2133,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 5,
usage_count: 7,
reassigned_with_assignment: false,
@ -2253,7 +2253,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 5,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 6,
reassigned_with_assignment: false,
@ -3125,7 +3125,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -3317,7 +3317,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: false,
@ -3393,7 +3393,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -3549,7 +3549,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: false,
@ -3587,7 +3587,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -3783,7 +3783,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -4099,7 +4099,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 3,
reassigned_with_assignment: false,
@ -4255,7 +4255,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -4295,7 +4295,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -5781,7 +5781,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 3,
reassigned_with_assignment: false,
@ -5819,7 +5819,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -9091,7 +9091,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 3,
reassigned_with_assignment: true,
@ -9487,7 +9487,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -9527,7 +9527,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -11107,7 +11107,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 7,
reassigned_with_assignment: false,
@ -12843,7 +12843,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 5,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: true,
@ -13159,7 +13159,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -13239,7 +13239,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 3,
reassigned_with_assignment: false,
@ -15811,7 +15811,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 10,
assign_count: 1,
mutation_by_call_count: 3,
usage_count: 9,
reassigned_with_assignment: true,
@ -16039,7 +16039,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 6,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -18145,7 +18145,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 7,
assign_count: 2,
mutation_by_call_count: 5,
usage_count: 8,
reassigned_with_assignment: true,
@ -18605,7 +18605,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 4,
reassigned_with_assignment: false,
@ -18643,7 +18643,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 4,
reassigned_with_assignment: false,
@ -21607,7 +21607,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 15,
reassigned_with_assignment: false,
@ -21797,7 +21797,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: true,
@ -21835,7 +21835,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -23401,7 +23401,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -23909,7 +23909,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -23949,7 +23949,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -24381,7 +24381,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: false,
@ -25349,7 +25349,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 7,
reassigned_with_assignment: false,
@ -27215,7 +27215,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 2,
reassigned_with_assignment: false,
@ -27293,7 +27293,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 5,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 5,
reassigned_with_assignment: true,
@ -28479,7 +28479,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -28519,7 +28519,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -28599,7 +28599,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -30761,7 +30761,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 4,
reassigned_with_assignment: false,
@ -33231,7 +33231,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -34555,7 +34555,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 3,
reassigned_with_assignment: false,
@ -36083,7 +36083,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -37483,7 +37483,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 5,
reassigned_with_assignment: true,
@ -38195,7 +38195,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 6,
reassigned_with_assignment: false,
@ -38273,7 +38273,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -38353,7 +38353,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -40101,7 +40101,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -40141,7 +40141,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -42751,7 +42751,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 3,
reassigned_with_assignment: false,
@ -42831,7 +42831,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,
@ -43741,7 +43741,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -43779,7 +43779,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 4,
reassigned_with_assignment: false,
@ -46219,7 +46219,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 2,
reassigned_with_assignment: false,
@ -51815,7 +51815,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -52473,7 +52473,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 11,
reassigned_with_assignment: false,
@ -52511,7 +52511,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -56289,7 +56289,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 7,
usage_count: 12,
reassigned_with_assignment: true,
@ -56367,7 +56367,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: true,
@ -57689,7 +57689,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 4,
reassigned_with_assignment: false,
@ -58401,7 +58401,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -58557,7 +58557,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 8,
assign_count: 4,
mutation_by_call_count: 6,
usage_count: 8,
reassigned_with_assignment: true,

View File

@ -327,7 +327,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,

View File

@ -89,7 +89,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 2,
mutation_by_call_count: 4,
usage_count: 9,
reassigned_with_assignment: true,
@ -243,7 +243,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 2,
usage_count: 4,
reassigned_with_assignment: true,

View File

@ -763,7 +763,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,

View File

@ -321,7 +321,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 5,
reassigned_with_assignment: false,

View File

@ -4737,7 +4737,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: true,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -5279,7 +5279,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 8,
reassigned_with_assignment: false,
@ -5469,7 +5469,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -5507,7 +5507,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,

View File

@ -4737,7 +4737,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: true,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -5279,7 +5279,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 8,
reassigned_with_assignment: false,
@ -5469,7 +5469,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -5507,7 +5507,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,

View File

@ -5815,7 +5815,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: true,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -6435,7 +6435,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 8,
reassigned_with_assignment: false,
@ -6625,7 +6625,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -6663,7 +6663,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,

View File

@ -4777,7 +4777,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: true,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -5319,7 +5319,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 8,
reassigned_with_assignment: false,
@ -5509,7 +5509,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -5547,7 +5547,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,

View File

@ -4737,7 +4737,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: true,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -5279,7 +5279,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 8,
reassigned_with_assignment: false,
@ -5469,7 +5469,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -5507,7 +5507,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,

View File

@ -7625,7 +7625,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: true,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -8399,7 +8399,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 8,
reassigned_with_assignment: false,
@ -8741,7 +8741,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -8779,7 +8779,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,

View File

@ -4737,7 +4737,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: true,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -5279,7 +5279,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 8,
reassigned_with_assignment: false,
@ -5469,7 +5469,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -5507,7 +5507,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,

View File

@ -4737,7 +4737,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: true,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -5317,7 +5317,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 8,
reassigned_with_assignment: false,
@ -5507,7 +5507,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -5545,7 +5545,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,

View File

@ -4737,7 +4737,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: true,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -5279,7 +5279,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 8,
reassigned_with_assignment: false,
@ -5469,7 +5469,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -5507,7 +5507,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,

View File

@ -4737,7 +4737,7 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: true,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 0,
reassigned_with_assignment: false,
@ -5279,7 +5279,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 4,
usage_count: 8,
reassigned_with_assignment: false,
@ -5469,7 +5469,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,
@ -5507,7 +5507,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 3,
usage_count: 3,
reassigned_with_assignment: false,

View File

@ -1929,7 +1929,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -2317,7 +2317,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,
@ -3103,7 +3103,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 1,
reassigned_with_assignment: false,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -2877,9 +2877,9 @@
return event;
},
$broadcast: function(name, args) {
var listeners, i, length, target = this, current = target, next = target, event = {
var listeners, i, length, current = this, next = this, event = {
name: name,
targetScope: target,
targetScope: this,
preventDefault: function() {
event.defaultPrevented = !0;
},
@ -2899,7 +2899,7 @@
$exceptionHandler(e);
}
}
if (!(next = current.$$childHead || current !== target && current.$$nextSibling)) for(; current !== target && !(next = current.$$nextSibling);)current = current.$parent;
if (!(next = current.$$childHead || current !== this && current.$$nextSibling)) for(; current !== this && !(next = current.$$nextSibling);)current = current.$parent;
}while (current = next)
return event;
}
@ -3240,14 +3240,6 @@
return formatNumber(number, formats.PATTERNS[0], formats.GROUP_SEP, formats.DECIMAL_SEP, fractionSize);
};
}
$FilterProvider.$inject = [
"$provide"
], currencyFilter.$inject = [
"$locale"
], numberFilter.$inject = [
"$locale"
];
var DECIMAL_SEP = ".";
function formatNumber(number, pattern, groupSep, decimalSep, fractionSize) {
if (isNaN(number) || !isFinite(number)) return "";
var isNegative = number < 0, numStr = (number = Math.abs(number)) + "", formatedText = "", parts = [], hasExponent = !1;
@ -3257,9 +3249,9 @@
}
if (hasExponent) fractionSize > 0 && number > -1 && number < 1 && (formatedText = number.toFixed(fractionSize));
else {
var fractionLen = (numStr.split(DECIMAL_SEP)[1] || "").length;
var fractionLen = (numStr.split(".")[1] || "").length;
isUndefined(fractionSize) && (fractionSize = Math.min(Math.max(pattern.minFrac, fractionLen), pattern.maxFrac));
var pow = Math.pow(10, fractionSize), fraction = ("" + (number = Math.round(number * pow) / pow)).split(DECIMAL_SEP), whole = fraction[0];
var pow = Math.pow(10, fractionSize), fraction = ("" + (number = Math.round(number * pow) / pow)).split("."), whole = fraction[0];
fraction = fraction[1] || "";
var i, pos = 0, lgroup = pattern.lgSize, group = pattern.gSize;
if (whole.length >= lgroup + group) for(i = 0, pos = whole.length - lgroup; i < pos; i++)(pos - i) % group == 0 && 0 !== i && (formatedText += groupSep), formatedText += whole.charAt(i);
@ -3286,6 +3278,13 @@
return formats[uppercase(shortForm ? "SHORT" + name : name)][value];
};
}
$FilterProvider.$inject = [
"$provide"
], currencyFilter.$inject = [
"$locale"
], numberFilter.$inject = [
"$locale"
];
var DATE_FORMATS = {
yyyy: dateGetter("FullYear", 4),
yy: dateGetter("FullYear", 2, 0, !0),

View File

@ -4708,13 +4708,13 @@
});
}(jQuery), function($, window) {
$.mobile.iosorientationfixEnabled = !0;
var zoom, evt, x, y, z, aig, ua = navigator.userAgent;
var zoom, x, y, z, aig, ua = navigator.userAgent;
if (!(/iPhone|iPad|iPod/.test(navigator.platform) && /OS [1-5]_[0-9_]* like Mac OS X/i.test(ua) && ua.indexOf("AppleWebKit") > -1)) {
$.mobile.iosorientationfixEnabled = !1;
return;
}
function checkTilt(e) {
x = Math.abs((aig = (evt = e.originalEvent).accelerationIncludingGravity).x), y = Math.abs(aig.y), z = Math.abs(aig.z), !window.orientation && (x > 7 || (z > 6 && y < 8 || z < 8 && y > 6) && x > 5) ? zoom.enabled && zoom.disable() : zoom.enabled || zoom.enable();
x = Math.abs((aig = e.originalEvent.accelerationIncludingGravity).x), y = Math.abs(aig.y), z = Math.abs(aig.z), !window.orientation && (x > 7 || (z > 6 && y < 8 || z < 8 && y > 6) && x > 5) ? zoom.enabled && zoom.disable() : zoom.enabled || zoom.enable();
}
zoom = $.mobile.zoom, $.mobile.document.on("mobileinit", function() {
$.mobile.iosorientationfixEnabled && $.mobile.window.bind("orientationchange.iosorientationfix", zoom.enable).bind("devicemotion.iosorientationfix", checkTilt);

View File

@ -2286,55 +2286,55 @@
var _ReactInternals$Sched$1 = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing, __interactionsRef = _ReactInternals$Sched$1.__interactionsRef, __subscriberRef = _ReactInternals$Sched$1.__subscriberRef, unstable_getThreadID = (_ReactInternals$Sched$1.unstable_clear, _ReactInternals$Sched$1.unstable_getCurrent, _ReactInternals$Sched$1.unstable_getThreadID), unstable_wrap = (_ReactInternals$Sched$1.unstable_subscribe, _ReactInternals$Sched$1.unstable_trace, _ReactInternals$Sched$1.unstable_unsubscribe, _ReactInternals$Sched$1.unstable_wrap);
if (!(null != __interactionsRef && null != __interactionsRef.current)) throw Error("It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling");
unstable_now();
var NoLanes = 0, SyncLane = 1, return_highestLanePriority = 8;
var return_highestLanePriority = 8;
function getHighestPriorityLanes(lanes) {
if ((SyncLane & lanes) !== NoLanes) return return_highestLanePriority = 15, SyncLane;
if ((2 & lanes) !== NoLanes) return return_highestLanePriority = 14, 2;
if ((4 & lanes) !== NoLanes) return return_highestLanePriority = 13, 4;
if ((1 & lanes) != 0) return return_highestLanePriority = 15, 1;
if ((2 & lanes) != 0) return return_highestLanePriority = 14, 2;
if ((4 & lanes) != 0) return return_highestLanePriority = 13, 4;
var inputDiscreteLanes = 24 & lanes;
if (inputDiscreteLanes !== NoLanes) return return_highestLanePriority = 12, inputDiscreteLanes;
if ((32 & lanes) !== NoLanes) return return_highestLanePriority = 11, 32;
if (0 !== inputDiscreteLanes) return return_highestLanePriority = 12, inputDiscreteLanes;
if ((32 & lanes) != 0) return return_highestLanePriority = 11, 32;
var inputContinuousLanes = 192 & lanes;
if (inputContinuousLanes !== NoLanes) return return_highestLanePriority = 10, inputContinuousLanes;
if ((256 & lanes) !== NoLanes) return return_highestLanePriority = 9, 256;
if (0 !== inputContinuousLanes) return return_highestLanePriority = 10, inputContinuousLanes;
if ((256 & lanes) != 0) return return_highestLanePriority = 9, 256;
var defaultLanes = 3584 & lanes;
if (defaultLanes !== NoLanes) return return_highestLanePriority = 8, defaultLanes;
if ((4096 & lanes) !== NoLanes) return return_highestLanePriority = 7, 4096;
if (0 !== defaultLanes) return return_highestLanePriority = 8, defaultLanes;
if ((4096 & lanes) != 0) return return_highestLanePriority = 7, 4096;
var transitionLanes = 4186112 & lanes;
if (transitionLanes !== NoLanes) return return_highestLanePriority = 6, transitionLanes;
if (0 !== transitionLanes) return return_highestLanePriority = 6, transitionLanes;
var retryLanes = 62914560 & lanes;
if (retryLanes !== NoLanes) return return_highestLanePriority = 5, retryLanes;
if (0 !== retryLanes) return return_highestLanePriority = 5, retryLanes;
if (67108864 & lanes) return return_highestLanePriority = 4, 67108864;
if ((134217728 & lanes) !== NoLanes) return return_highestLanePriority = 3, 134217728;
if ((134217728 & lanes) != 0) return return_highestLanePriority = 3, 134217728;
var idleLanes = 805306368 & lanes;
return idleLanes !== NoLanes ? (return_highestLanePriority = 2, idleLanes) : (1073741824 & lanes) !== NoLanes ? (return_highestLanePriority = 1, 1073741824) : (error("Should have found matching lanes. This is a bug in React."), return_highestLanePriority = 8, lanes);
return 0 !== idleLanes ? (return_highestLanePriority = 2, idleLanes) : (1073741824 & lanes) != 0 ? (return_highestLanePriority = 1, 1073741824) : (error("Should have found matching lanes. This is a bug in React."), return_highestLanePriority = 8, lanes);
}
function getNextLanes(root, wipLanes) {
var lanes, index, pendingLanes = root.pendingLanes;
if (pendingLanes === NoLanes) return return_highestLanePriority = 0, NoLanes;
var nextLanes = NoLanes, nextLanePriority = 0, expiredLanes = root.expiredLanes, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes;
if (expiredLanes !== NoLanes) nextLanes = expiredLanes, nextLanePriority = return_highestLanePriority = 15;
if (0 === pendingLanes) return return_highestLanePriority = 0, 0;
var nextLanes = 0, nextLanePriority = 0, expiredLanes = root.expiredLanes, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes;
if (0 !== expiredLanes) nextLanes = expiredLanes, nextLanePriority = return_highestLanePriority = 15;
else {
var nonIdlePendingLanes = 134217727 & pendingLanes;
if (nonIdlePendingLanes !== NoLanes) {
if (0 !== nonIdlePendingLanes) {
var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes;
if (nonIdleUnblockedLanes !== NoLanes) nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes), nextLanePriority = return_highestLanePriority;
if (0 !== nonIdleUnblockedLanes) nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes), nextLanePriority = return_highestLanePriority;
else {
var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes;
nonIdlePingedLanes !== NoLanes && (nextLanes = getHighestPriorityLanes(nonIdlePingedLanes), nextLanePriority = return_highestLanePriority);
0 !== nonIdlePingedLanes && (nextLanes = getHighestPriorityLanes(nonIdlePingedLanes), nextLanePriority = return_highestLanePriority);
}
} else {
var unblockedLanes = pendingLanes & ~suspendedLanes;
unblockedLanes !== NoLanes ? (nextLanes = getHighestPriorityLanes(unblockedLanes), nextLanePriority = return_highestLanePriority) : pingedLanes !== NoLanes && (nextLanes = getHighestPriorityLanes(pingedLanes), nextLanePriority = return_highestLanePriority);
0 !== unblockedLanes ? (nextLanes = getHighestPriorityLanes(unblockedLanes), nextLanePriority = return_highestLanePriority) : 0 !== pingedLanes && (nextLanes = getHighestPriorityLanes(pingedLanes), nextLanePriority = return_highestLanePriority);
}
}
if (nextLanes === NoLanes) return NoLanes;
if (nextLanes = pendingLanes & (lanes = nextLanes, (((index = 31 - clz32(lanes)) < 0 ? NoLanes : 1 << index) << 1) - 1), wipLanes !== NoLanes && wipLanes !== nextLanes && (wipLanes & suspendedLanes) === NoLanes) {
if (0 === nextLanes) return 0;
if (nextLanes = pendingLanes & (((index = 31 - clz32(lanes = nextLanes)) < 0 ? 0 : 1 << index) << 1) - 1, 0 !== wipLanes && wipLanes !== nextLanes && (wipLanes & suspendedLanes) == 0) {
if (getHighestPriorityLanes(wipLanes), nextLanePriority <= return_highestLanePriority) return wipLanes;
return_highestLanePriority = nextLanePriority;
}
var entangledLanes = root.entangledLanes;
if (entangledLanes !== NoLanes) for(var entanglements = root.entanglements, lanes1 = nextLanes & entangledLanes; lanes1 > 0;){
if (0 !== entangledLanes) for(var entanglements = root.entanglements, lanes1 = nextLanes & entangledLanes; lanes1 > 0;){
var index1 = pickArbitraryLaneIndex(lanes1), lane = 1 << index1;
nextLanes |= entanglements[index1], lanes1 &= ~lane;
}
@ -2347,10 +2347,10 @@
}
function getLanesToRetrySynchronouslyOnError(root) {
var everythingButOffscreen = -1073741825 & root.pendingLanes;
return everythingButOffscreen !== NoLanes ? everythingButOffscreen : 1073741824 & everythingButOffscreen ? 1073741824 : NoLanes;
return 0 !== everythingButOffscreen ? everythingButOffscreen : 1073741824 & everythingButOffscreen ? 1073741824 : 0;
}
function includesNonIdleWork(lanes) {
return (134217727 & lanes) !== NoLanes;
return (134217727 & lanes) != 0;
}
function includesOnlyRetries(lanes) {
return (62914560 & lanes) === lanes;
@ -2362,7 +2362,7 @@
case 5:
break;
case 15:
return SyncLane;
return 1;
case 14:
return 2;
case 12:
@ -2389,9 +2389,6 @@
function pickArbitraryLaneIndex(lanes) {
return 31 - clz32(lanes);
}
function includesSomeLane(a, b) {
return (a & b) !== NoLanes;
}
function isSubsetOfLanes(set, subset) {
return (set & subset) === subset;
}
@ -4155,7 +4152,7 @@
}
var rendererID = null, injectedHook = null, hasLoggedError = !1, isDevToolsPresent = "undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__, Scheduler_runWithPriority = unstable_runWithPriority, Scheduler_scheduleCallback = unstable_scheduleCallback, Scheduler_cancelCallback = unstable_cancelCallback, Scheduler_requestPaint = unstable_requestPaint, Scheduler_now$1 = unstable_now, Scheduler_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel, Scheduler_ImmediatePriority = unstable_ImmediatePriority, Scheduler_UserBlockingPriority = unstable_UserBlockingPriority, Scheduler_NormalPriority = unstable_NormalPriority, Scheduler_LowPriority = unstable_LowPriority, Scheduler_IdlePriority = unstable_IdlePriority;
if (!(null != __interactionsRef && null != __interactionsRef.current)) throw Error("It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling");
var fakeCallbackNode = {}, NormalPriority$1 = 97, shouldYield = unstable_shouldYield, requestPaint = void 0 !== Scheduler_requestPaint ? Scheduler_requestPaint : function() {}, syncQueue = null, immediateQueueCallbackNode = null, isFlushingSyncQueue = !1, initialTimeMs$1 = Scheduler_now$1(), now = initialTimeMs$1 < 10000 ? Scheduler_now$1 : function() {
var fakeCallbackNode = {}, shouldYield = unstable_shouldYield, requestPaint = void 0 !== Scheduler_requestPaint ? Scheduler_requestPaint : function() {}, syncQueue = null, immediateQueueCallbackNode = null, isFlushingSyncQueue = !1, initialTimeMs$1 = Scheduler_now$1(), now = initialTimeMs$1 < 10000 ? Scheduler_now$1 : function() {
return Scheduler_now$1() - initialTimeMs$1;
};
function getCurrentPriorityLevel() {
@ -4165,7 +4162,7 @@
case Scheduler_UserBlockingPriority:
return 98;
case Scheduler_NormalPriority:
return NormalPriority$1;
return 97;
case Scheduler_LowPriority:
return 96;
case Scheduler_IdlePriority:
@ -4180,7 +4177,7 @@
return Scheduler_ImmediatePriority;
case 98:
return Scheduler_UserBlockingPriority;
case NormalPriority$1:
case 97:
return Scheduler_NormalPriority;
case 96:
return Scheduler_LowPriority;
@ -4338,8 +4335,8 @@
}
function prepareToReadContext(workInProgress, renderLanes) {
currentlyRenderingFiber = workInProgress, lastContextDependency = null, lastContextWithAllBitsObserved = null;
var dependencies = workInProgress.dependencies;
null !== dependencies && null !== dependencies.firstContext && (includesSomeLane(dependencies.lanes, renderLanes) && markWorkInProgressReceivedUpdate(), dependencies.firstContext = null);
var a, b, dependencies = workInProgress.dependencies;
null !== dependencies && null !== dependencies.firstContext && (a = dependencies.lanes, (a & (b = renderLanes)) != 0 && markWorkInProgressReceivedUpdate(), dependencies.firstContext = null);
}
function readContext(context, observedBits) {
if (isDisallowedContextReadInDEV && error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."), lastContextWithAllBitsObserved === context) ;
@ -4354,7 +4351,7 @@
if (null === lastContextDependency) {
if (!(null !== currentlyRenderingFiber)) throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
lastContextDependency = contextItem, currentlyRenderingFiber.dependencies = {
lanes: NoLanes,
lanes: 0,
firstContext: contextItem,
responders: null
};
@ -4494,7 +4491,7 @@
}
}
if (null !== firstBaseUpdate) {
for(var newState = queue.baseState, newLanes = NoLanes, newBaseState = null, newFirstBaseUpdate = null, newLastBaseUpdate = null, update = firstBaseUpdate;;){
for(var newState = queue.baseState, newLanes = 0, newBaseState = null, newFirstBaseUpdate = null, newLastBaseUpdate = null, update = firstBaseUpdate;;){
var updateLane = update.lane, updateEventTime = update.eventTime;
if (isSubsetOfLanes(renderLanes, updateLane)) {
if (null !== newLastBaseUpdate) {
@ -4567,7 +4564,7 @@
var partialState = getDerivedStateFromProps(nextProps, prevState);
warnOnUndefinedDerivedState(ctor, partialState);
var memoizedState = null == partialState ? prevState : _assign({}, prevState, partialState);
workInProgress.memoizedState = memoizedState, workInProgress.lanes === NoLanes && (workInProgress.updateQueue.baseState = memoizedState);
workInProgress.memoizedState = memoizedState, 0 === workInProgress.lanes && (workInProgress.updateQueue.baseState = memoizedState);
}
warnOnInvalidCallback = function(callback, callerName) {
if (null !== callback && "function" != typeof callback) {
@ -5209,7 +5206,7 @@
rendererSigil$1 = {};
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig;
didWarnAboutUseOpaqueIdentifier = {}, didWarnAboutMismatchedHooksForComponent = new Set();
var renderLanes = NoLanes, currentlyRenderingFiber$1 = null, currentHook = null, workInProgressHook = null, didScheduleRenderPhaseUpdate = !1, didScheduleRenderPhaseUpdateDuringThisPass = !1, currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, ignorePreviousDependencies = !1;
var renderLanes = 0, currentlyRenderingFiber$1 = null, currentHook = null, workInProgressHook = null, didScheduleRenderPhaseUpdate = !1, didScheduleRenderPhaseUpdateDuringThisPass = !1, currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, ignorePreviousDependencies = !1;
function mountHookTypesDev() {
var hookName = currentHookNameInDev;
null === hookTypesDev ? hookTypesDev = [
@ -5243,7 +5240,7 @@
return !0;
}
function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) {
renderLanes = nextRenderLanes, currentlyRenderingFiber$1 = workInProgress, hookTypesDev = null !== current ? current._debugHookTypes : null, hookTypesUpdateIndexDev = -1, ignorePreviousDependencies = null !== current && current.type !== workInProgress.type, workInProgress.memoizedState = null, workInProgress.updateQueue = null, workInProgress.lanes = NoLanes, null !== current && null !== current.memoizedState ? ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV : null !== hookTypesDev ? ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV : ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;
renderLanes = nextRenderLanes, currentlyRenderingFiber$1 = workInProgress, hookTypesDev = null !== current ? current._debugHookTypes : null, hookTypesUpdateIndexDev = -1, ignorePreviousDependencies = null !== current && current.type !== workInProgress.type, workInProgress.memoizedState = null, workInProgress.updateQueue = null, workInProgress.lanes = 0, null !== current && null !== current.memoizedState ? ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV : null !== hookTypesDev ? ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV : ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;
var children = Component(props, secondArg);
if (didScheduleRenderPhaseUpdateDuringThisPass) {
var numberOfReRenders = 0;
@ -5254,7 +5251,7 @@
}
ReactCurrentDispatcher$1.current = ContextOnlyDispatcher, workInProgress._debugHookTypes = hookTypesDev;
var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next;
if (renderLanes = NoLanes, currentlyRenderingFiber$1 = null, currentHook = null, workInProgressHook = null, currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, didScheduleRenderPhaseUpdate = !1, didRenderTooFewHooks) throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");
if (renderLanes = 0, currentlyRenderingFiber$1 = null, currentHook = null, workInProgressHook = null, currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, didScheduleRenderPhaseUpdate = !1, didRenderTooFewHooks) throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");
return children;
}
function bailoutHooks(current, workInProgress, lanes) {
@ -5269,7 +5266,7 @@
}
didScheduleRenderPhaseUpdate = !1;
}
renderLanes = NoLanes, currentlyRenderingFiber$1 = null, currentHook = null, workInProgressHook = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, currentHookNameInDev = null, isUpdatingOpaqueValueInRenderPhase = !1, didScheduleRenderPhaseUpdateDuringThisPass = !1;
renderLanes = 0, currentlyRenderingFiber$1 = null, currentHook = null, workInProgressHook = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, currentHookNameInDev = null, isUpdatingOpaqueValueInRenderPhase = !1, didScheduleRenderPhaseUpdateDuringThisPass = !1;
}
function mountWorkInProgressHook() {
var hook = {
@ -5643,7 +5640,7 @@
var priorityLevel = getCurrentPriorityLevel();
runWithPriority$1(priorityLevel < 98 ? 98 : priorityLevel, function() {
setPending(!0);
}), runWithPriority$1(priorityLevel > NormalPriority$1 ? NormalPriority$1 : priorityLevel, function() {
}), runWithPriority$1(priorityLevel > 97 ? 97 : priorityLevel, function() {
var prevTransition = ReactCurrentBatchConfig$1.transition;
ReactCurrentBatchConfig$1.transition = 1;
try {
@ -5715,7 +5712,7 @@
var alternate = fiber.alternate;
if (fiber === currentlyRenderingFiber$1 || null !== alternate && alternate === currentlyRenderingFiber$1) didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0;
else {
if (fiber.lanes === NoLanes && (null === alternate || alternate.lanes === NoLanes)) {
if (0 === fiber.lanes && (null === alternate || 0 === alternate.lanes)) {
var prevDispatcher, lastRenderedReducer = queue.lastRenderedReducer;
if (null !== lastRenderedReducer) {
prevDispatcher = ReactCurrentDispatcher$1.current, ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
@ -6279,8 +6276,8 @@
}
var _type = Component.type, _innerPropTypes = _type.propTypes;
_innerPropTypes && checkPropTypes(_innerPropTypes, nextProps, "prop", getComponentName(_type));
var currentChild = current.child;
if (!includesSomeLane(updateLanes, renderLanes)) {
var a, b, currentChild = current.child;
if (a = updateLanes, b = renderLanes, (a & b) == 0) {
var prevProps = currentChild.memoizedProps, compare = Component.compare;
if ((compare = null !== compare ? compare : shallowEqual)(prevProps, nextProps) && current.ref === workInProgress.ref) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
}
@ -6290,7 +6287,7 @@
}
function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, updateLanes, renderLanes) {
if (workInProgress.type !== workInProgress.elementType) {
var outerMemoType = workInProgress.elementType;
var a, b, outerMemoType = workInProgress.elementType;
if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
var lazyComponent = outerMemoType, payload = lazyComponent._payload, init = lazyComponent._init;
try {
@ -6303,7 +6300,7 @@
}
}
if (null !== current && shallowEqual(current.memoizedProps, nextProps) && current.ref === workInProgress.ref && workInProgress.type === current.type) {
if (didReceiveUpdate = !1, !includesSomeLane(renderLanes, updateLanes)) return workInProgress.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
if (didReceiveUpdate = !1, a = renderLanes, (a & (b = updateLanes)) == 0) return workInProgress.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
(16384 & current.flags) != 0 && (didReceiveUpdate = !0);
}
return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes);
@ -6312,17 +6309,19 @@
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: NoLanes
baseLanes: 0
}, pushRenderLanes(workInProgress, renderLanes);
else if (includesSomeLane(renderLanes, 1073741824)) workInProgress.memoizedState = {
baseLanes: NoLanes
}, pushRenderLanes(workInProgress, null !== prevState ? prevState.baseLanes : renderLanes);
else {
nextBaseLanes = null !== prevState ? (a1 = prevState.baseLanes) | renderLanes : renderLanes, markSpawnedWork(1073741824), workInProgress.lanes = workInProgress.childLanes = 1073741824;
var nextBaseLanes, a1, _nextState = {
baseLanes: nextBaseLanes
};
return workInProgress.memoizedState = _nextState, pushRenderLanes(workInProgress, nextBaseLanes), null;
if ((1073741824 & (a1 = renderLanes)) != 0) workInProgress.memoizedState = {
baseLanes: 0
}, pushRenderLanes(workInProgress, null !== prevState ? prevState.baseLanes : renderLanes);
else {
nextBaseLanes = null !== prevState ? (a2 = prevState.baseLanes) | renderLanes : renderLanes, markSpawnedWork(1073741824), workInProgress.lanes = workInProgress.childLanes = 1073741824;
var a1, nextBaseLanes, a2, _nextState = {
baseLanes: nextBaseLanes
};
return workInProgress.memoizedState = _nextState, pushRenderLanes(workInProgress, nextBaseLanes), null;
}
}
} else null !== prevState ? (_subtreeRenderLanes = (a = prevState.baseLanes) | renderLanes, workInProgress.memoizedState = null) : _subtreeRenderLanes = renderLanes, pushRenderLanes(workInProgress, _subtreeRenderLanes);
return reconcileChildren(current, workInProgress, nextChildren, renderLanes), workInProgress.child;
@ -6490,7 +6489,7 @@
mode: "hidden",
children: primaryChildren
};
return (2 & mode) == 0 && null !== progressedPrimaryFragment ? ((primaryChildFragment = progressedPrimaryFragment).childLanes = NoLanes, primaryChildFragment.pendingProps = primaryChildProps, 8 & workInProgress.mode && (primaryChildFragment.actualDuration = 0, primaryChildFragment.actualStartTime = -1, primaryChildFragment.selfBaseDuration = 0, primaryChildFragment.treeBaseDuration = 0), fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null)) : (primaryChildFragment = createFiberFromOffscreen(primaryChildProps, mode, NoLanes, null), fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null)), primaryChildFragment.return = workInProgress, fallbackChildFragment.return = workInProgress, primaryChildFragment.sibling = fallbackChildFragment, workInProgress.child = primaryChildFragment, fallbackChildFragment;
return (2 & mode) == 0 && null !== progressedPrimaryFragment ? ((primaryChildFragment = progressedPrimaryFragment).childLanes = 0, primaryChildFragment.pendingProps = primaryChildProps, 8 & workInProgress.mode && (primaryChildFragment.actualDuration = 0, primaryChildFragment.actualStartTime = -1, primaryChildFragment.selfBaseDuration = 0, primaryChildFragment.treeBaseDuration = 0), fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null)) : (primaryChildFragment = createFiberFromOffscreen(primaryChildProps, mode, 0, null), fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null)), primaryChildFragment.return = workInProgress, fallbackChildFragment.return = workInProgress, primaryChildFragment.sibling = fallbackChildFragment, workInProgress.child = primaryChildFragment, fallbackChildFragment;
}
function updateSuspensePrimaryChildren(current, workInProgress, primaryChildren, renderLanes) {
var current1, offscreenProps, currentPrimaryChildFragment = current.child, currentFallbackChildFragment = currentPrimaryChildFragment.sibling, primaryChildFragment = (current1 = currentPrimaryChildFragment, offscreenProps = {
@ -6505,7 +6504,7 @@
children: primaryChildren
};
if ((2 & mode) == 0 && workInProgress.child !== currentPrimaryChildFragment) {
(primaryChildFragment = workInProgress.child).childLanes = NoLanes, primaryChildFragment.pendingProps = primaryChildProps, 8 & workInProgress.mode && (primaryChildFragment.actualDuration = 0, primaryChildFragment.actualStartTime = -1, primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration, primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration);
(primaryChildFragment = workInProgress.child).childLanes = 0, primaryChildFragment.pendingProps = primaryChildProps, 8 & workInProgress.mode && (primaryChildFragment.actualDuration = 0, primaryChildFragment.actualStartTime = -1, primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration, primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration);
var progressedLastEffect = primaryChildFragment.lastEffect;
null !== progressedLastEffect ? (workInProgress.firstEffect = primaryChildFragment.firstEffect, workInProgress.lastEffect = progressedLastEffect, progressedLastEffect.nextEffect = null) : workInProgress.firstEffect = workInProgress.lastEffect = null;
} else primaryChildFragment = createWorkInProgress(current1 = currentPrimaryChildFragment, primaryChildProps);
@ -6625,7 +6624,8 @@
didReceiveUpdate = !0;
}
function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {
return (null !== current && (workInProgress.dependencies = current.dependencies), profilerStartTime = -1, markSkippedUpdateLanes(workInProgress.lanes), includesSomeLane(renderLanes, workInProgress.childLanes)) ? (!function(current, workInProgress) {
var a, b;
return (null !== current && (workInProgress.dependencies = current.dependencies), profilerStartTime = -1, markSkippedUpdateLanes(workInProgress.lanes), ((a = renderLanes) & workInProgress.childLanes) != 0) ? (!function(current, workInProgress) {
if (!(null === current || workInProgress.child === current.child)) throw Error("Resuming work not yet implemented.");
if (null !== workInProgress.child) {
var currentChild = workInProgress.child, newChild = createWorkInProgress(currentChild, currentChild.pendingProps);
@ -6651,7 +6651,7 @@
}(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.lanes));
if (null !== current) {
if (current.memoizedProps !== workInProgress.pendingProps || hasContextChanged() || workInProgress.type !== current.type) didReceiveUpdate = !0;
else if (includesSomeLane(renderLanes, updateLanes)) didReceiveUpdate = (16384 & current.flags) != 0;
else if (a = renderLanes, (a & (b = updateLanes)) != 0) didReceiveUpdate = (16384 & current.flags) != 0;
else {
switch(didReceiveUpdate = !1, workInProgress.tag){
case 3:
@ -6671,22 +6671,22 @@
pushProvider(workInProgress, newValue);
break;
case 12:
includesSomeLane(renderLanes, workInProgress.childLanes) && (workInProgress.flags |= 4);
var stateNode = workInProgress.stateNode;
a1 = renderLanes, (a1 & (b1 = workInProgress.childLanes)) != 0 && (workInProgress.flags |= 4);
var a, b, a1, b1, stateNode = workInProgress.stateNode;
stateNode.effectDuration = 0, stateNode.passiveEffectDuration = 0;
break;
case 13:
if (null !== workInProgress.memoizedState) {
if (includesSomeLane(renderLanes, workInProgress.child.childLanes)) return updateSuspenseComponent(current, workInProgress, renderLanes);
if (a2 = renderLanes, (a2 & (b2 = workInProgress.child.childLanes)) != 0) return updateSuspenseComponent(current, workInProgress, renderLanes);
pushSuspenseContext(workInProgress, 1 & suspenseStackCursor.current);
var parentContext, parentContext1, child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
var a2, b2, parentContext, parentContext1, child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
if (null !== child) return child.sibling;
return null;
}
pushSuspenseContext(workInProgress, 1 & suspenseStackCursor.current);
break;
case 19:
var didSuspendBefore = (64 & current.flags) != 0, _hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes);
var a3, b3, didSuspendBefore = (64 & current.flags) != 0, _hasChildWork = (a3 = renderLanes, (a3 & (b3 = workInProgress.childLanes)) != 0);
if (didSuspendBefore) {
if (_hasChildWork) return updateSuspenseListComponent(current, workInProgress, renderLanes);
workInProgress.flags |= 64;
@ -6696,12 +6696,12 @@
break;
case 23:
case 24:
return workInProgress.lanes = NoLanes, updateOffscreenComponent(current, workInProgress, renderLanes);
return workInProgress.lanes = 0, updateOffscreenComponent(current, workInProgress, renderLanes);
}
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
}
} else didReceiveUpdate = !1;
switch(workInProgress.lanes = NoLanes, workInProgress.tag){
switch(workInProgress.lanes = 0, workInProgress.tag){
case 2:
return function(_current, workInProgress, Component, renderLanes) {
null !== _current && (_current.alternate = null, workInProgress.alternate = null, workInProgress.flags |= 2);
@ -7418,10 +7418,10 @@
markFailedErrorBoundaryForHotReloading(fiber), "function" != typeof getDerivedStateFromError && (instance = this, null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([
instance
]) : legacyErrorBoundariesThatAlreadyFailed.add(instance), logCapturedError(fiber, errorInfo));
var instance, error$1 = errorInfo.value, stack = errorInfo.stack;
var instance, a, error$1 = errorInfo.value, stack = errorInfo.stack;
this.componentDidCatch(error$1, {
componentStack: null !== stack ? stack : ""
}), "function" == typeof getDerivedStateFromError || includesSomeLane(fiber.lanes, SyncLane) || error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.", getComponentName(fiber.type) || "Unknown");
}), "function" == typeof getDerivedStateFromError || (1 & (a = fiber.lanes)) != 0 || error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.", getComponentName(fiber.type) || "Unknown");
} : update.callback = function() {
markFailedErrorBoundaryForHotReloading(fiber);
}, update;
@ -7453,11 +7453,11 @@
if (_workInProgress.flags |= 64, sourceFiber.flags |= 16384, sourceFiber.flags &= -2981, 1 === sourceFiber.tag) {
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
else {
var a, b, update = createUpdate(-1, SyncLane);
var a, update = createUpdate(-1, 1);
update.tag = 2, enqueueUpdate(sourceFiber, update);
}
}
sourceFiber.lanes = (a = sourceFiber.lanes, b = SyncLane, a | b);
sourceFiber.lanes = 1 | sourceFiber.lanes;
return;
}
attachPingListener(root, wakeable, rootRenderLanes), _workInProgress.flags |= 4096, _workInProgress.lanes = rootRenderLanes;
@ -7474,8 +7474,8 @@
case 3:
var _errorInfo = value;
workInProgress.flags |= 4096;
var a1, b1, lane = pickArbitraryLane(rootRenderLanes);
workInProgress.lanes = (a1 = workInProgress.lanes, b1 = lane, a1 | b1);
var a1, b, lane = pickArbitraryLane(rootRenderLanes);
workInProgress.lanes = (a1 = workInProgress.lanes, b = lane, a1 | b);
var _update = createRootErrorUpdate(workInProgress, _errorInfo, lane);
enqueueCapturedUpdate(workInProgress, _update);
return;
@ -7483,8 +7483,8 @@
var errorInfo = value, ctor = workInProgress.type, instance = workInProgress.stateNode;
if ((64 & workInProgress.flags) == 0 && ("function" == typeof ctor.getDerivedStateFromError || null !== instance && "function" == typeof instance.componentDidCatch && !isAlreadyFailedLegacyErrorBoundary(instance))) {
workInProgress.flags |= 4096;
var a2, b2, _lane = pickArbitraryLane(rootRenderLanes);
workInProgress.lanes = (a2 = workInProgress.lanes, b2 = _lane, a2 | b2);
var a2, b1, _lane = pickArbitraryLane(rootRenderLanes);
workInProgress.lanes = (a2 = workInProgress.lanes, b1 = _lane, a2 | b1);
var _update2 = createClassErrorUpdate(workInProgress, errorInfo, _lane);
enqueueCapturedUpdate(workInProgress, _update2);
return;
@ -7931,19 +7931,19 @@
var symbolFor$1 = Symbol.for;
symbolFor$1("selector.component"), symbolFor$1("selector.has_pseudo_class"), symbolFor$1("selector.role"), symbolFor$1("selector.test_id"), symbolFor$1("selector.text");
}
var commitHooks = [], ceil = Math.ceil, ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing, executionContext = 0, workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = NoLanes, subtreeRenderLanes = NoLanes, subtreeRenderLanesCursor = createCursor(NoLanes), workInProgressRootExitStatus = 0, workInProgressRootFatalError = null, workInProgressRootIncludedLanes = NoLanes, workInProgressRootSkippedLanes = NoLanes, workInProgressRootUpdatedLanes = NoLanes, workInProgressRootPingedLanes = NoLanes, mostRecentlyUpdatedRoot = null, globalMostRecentFallbackTime = 0, workInProgressRootRenderTargetTime = 1 / 0;
var commitHooks = [], ceil = Math.ceil, ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing, executionContext = 0, workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = 0, subtreeRenderLanes = 0, subtreeRenderLanesCursor = createCursor(0), workInProgressRootExitStatus = 0, workInProgressRootFatalError = null, workInProgressRootIncludedLanes = 0, workInProgressRootSkippedLanes = 0, workInProgressRootUpdatedLanes = 0, workInProgressRootPingedLanes = 0, mostRecentlyUpdatedRoot = null, globalMostRecentFallbackTime = 0, workInProgressRootRenderTargetTime = 1 / 0;
function resetRenderTimer() {
workInProgressRootRenderTargetTime = now() + 500;
}
var nextEffect = null, hasUncaughtError = !1, firstUncaughtError = null, legacyErrorBoundariesThatAlreadyFailed = null, rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsRenderPriority = 90, pendingPassiveEffectsLanes = NoLanes, pendingPassiveHookEffectsMount = [], pendingPassiveHookEffectsUnmount = [], rootsWithPendingDiscreteUpdates = null, nestedUpdateCount = 0, rootWithNestedUpdates = null, nestedPassiveUpdateCount = 0, spawnedWorkDuringRender = null, currentEventTime = -1, currentEventWipLanes = NoLanes, currentEventPendingLanes = NoLanes, isFlushingPassiveEffects = !1, focusedInstanceHandle = null, shouldFireAfterActiveInstanceBlur = !1;
var nextEffect = null, hasUncaughtError = !1, firstUncaughtError = null, legacyErrorBoundariesThatAlreadyFailed = null, rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsRenderPriority = 90, pendingPassiveEffectsLanes = 0, pendingPassiveHookEffectsMount = [], pendingPassiveHookEffectsUnmount = [], rootsWithPendingDiscreteUpdates = null, nestedUpdateCount = 0, rootWithNestedUpdates = null, nestedPassiveUpdateCount = 0, spawnedWorkDuringRender = null, currentEventTime = -1, currentEventWipLanes = 0, currentEventPendingLanes = 0, isFlushingPassiveEffects = !1, focusedInstanceHandle = null, shouldFireAfterActiveInstanceBlur = !1;
function requestEventTime() {
return (48 & executionContext) != 0 ? now() : -1 !== currentEventTime ? currentEventTime : currentEventTime = now();
}
function requestUpdateLane(fiber) {
var wipLanes, pendingLanes, lane, lane1, mode = fiber.mode;
if ((2 & mode) == 0) return SyncLane;
if ((4 & mode) == 0) return 99 === getCurrentPriorityLevel() ? SyncLane : 2;
if (currentEventWipLanes === NoLanes && (currentEventWipLanes = workInProgressRootIncludedLanes), 0 !== ReactCurrentBatchConfig.transition) return currentEventPendingLanes !== NoLanes && (currentEventPendingLanes = null !== mostRecentlyUpdatedRoot ? mostRecentlyUpdatedRoot.pendingLanes : NoLanes), wipLanes = currentEventWipLanes, pendingLanes = currentEventPendingLanes, 0 === (lane = pickArbitraryLane(4186112 & ~pendingLanes)) && 0 === (lane = pickArbitraryLane(4186112 & ~wipLanes)) && (lane = pickArbitraryLane(4186112)), lane;
var wipLanes, lane, lane1, mode = fiber.mode;
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 = pickArbitraryLane(4186112 & ~currentEventPendingLanes)) && 0 === (lane = pickArbitraryLane(4186112 & ~wipLanes)) && (lane = pickArbitraryLane(4186112)), lane;
var schedulerPriority = getCurrentPriorityLevel();
return (4 & executionContext) != 0 && 98 === schedulerPriority ? findUpdateLane(12, currentEventWipLanes) : findUpdateLane(function(schedulerPriorityLevel) {
switch(schedulerPriorityLevel){
@ -8005,7 +8005,7 @@
}(fiber), null;
markRootUpdated(root, lane, eventTime), root === workInProgressRoot && (workInProgressRootUpdatedLanes = (a = workInProgressRootUpdatedLanes, b = lane, a | b), 4 === workInProgressRootExitStatus && markRootSuspended$1(root, workInProgressRootRenderLanes));
var priorityLevel = getCurrentPriorityLevel();
lane === SyncLane ? (8 & executionContext) != 0 && (48 & executionContext) == 0 ? (schedulePendingInteractions(root, lane), performSyncWorkOnRoot(root)) : (ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, lane), 0 === executionContext && (resetRenderTimer(), flushSyncCallbackQueue())) : ((4 & executionContext) != 0 && (98 === priorityLevel || 99 === priorityLevel) && (null === rootsWithPendingDiscreteUpdates ? rootsWithPendingDiscreteUpdates = new Set([
1 === lane ? (8 & executionContext) != 0 && (48 & executionContext) == 0 ? (schedulePendingInteractions(root, lane), performSyncWorkOnRoot(root)) : (ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, lane), 0 === executionContext && (resetRenderTimer(), flushSyncCallbackQueue())) : ((4 & executionContext) != 0 && (98 === priorityLevel || 99 === priorityLevel) && (null === rootsWithPendingDiscreteUpdates ? rootsWithPendingDiscreteUpdates = new Set([
root
]) : rootsWithPendingDiscreteUpdates.add(root)), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, lane)), mostRecentlyUpdatedRoot = root;
}
@ -8021,11 +8021,11 @@
!function(root, currentTime) {
for(var pendingLanes = root.pendingLanes, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, lanes = pendingLanes; lanes > 0;){
var index = pickArbitraryLaneIndex(lanes), lane = 1 << index, expirationTime = expirationTimes[index];
-1 === expirationTime ? ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) && (expirationTimes[index] = computeExpirationTime(lane, currentTime)) : expirationTime <= currentTime && (root.expiredLanes |= lane), lanes &= ~lane;
-1 === expirationTime ? ((lane & suspendedLanes) == 0 || (lane & pingedLanes) != 0) && (expirationTimes[index] = computeExpirationTime(lane, currentTime)) : expirationTime <= currentTime && (root.expiredLanes |= lane), lanes &= ~lane;
}
}(root, currentTime);
var nextLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes), newCallbackPriority = return_highestLanePriority;
if (nextLanes === NoLanes) {
var nextLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : 0), newCallbackPriority = return_highestLanePriority;
if (0 === nextLanes) {
null !== existingCallbackNode && (cancelCallback(existingCallbackNode), root.callbackNode = null, root.callbackPriority = 0);
return;
}
@ -8064,12 +8064,12 @@
}(newCallbackPriority), performConcurrentWorkOnRoot.bind(null, root)), root.callbackPriority = newCallbackPriority, root.callbackNode = newCallbackNode;
}
function performConcurrentWorkOnRoot(root) {
if (currentEventTime = -1, currentEventWipLanes = NoLanes, currentEventPendingLanes = NoLanes, (48 & executionContext) != 0) throw Error("Should not already be working.");
if (currentEventTime = -1, currentEventWipLanes = 0, currentEventPendingLanes = 0, (48 & executionContext) != 0) throw Error("Should not already be working.");
var originalCallbackNode = root.callbackNode;
if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode) return null;
var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes);
if (lanes === NoLanes) return null;
var exitStatus = function(root, lanes) {
var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : 0);
if (0 === lanes) return null;
var a, b, exitStatus = function(root, lanes) {
var prevExecutionContext = executionContext;
executionContext |= 16;
var prevDispatcher = pushDispatcher();
@ -8080,13 +8080,13 @@
} catch (thrownValue) {
handleError(root, thrownValue);
}
return (resetContextDependencies(), popInteractions(prevInteractions), popDispatcher(prevDispatcher), executionContext = prevExecutionContext, null !== workInProgress) ? 0 : (workInProgressRoot = null, workInProgressRootRenderLanes = NoLanes, workInProgressRootExitStatus);
return (resetContextDependencies(), popInteractions(prevInteractions), popDispatcher(prevDispatcher), executionContext = prevExecutionContext, null !== workInProgress) ? 0 : (workInProgressRoot = null, workInProgressRootRenderLanes = 0, workInProgressRootExitStatus);
}(root, lanes);
if (includesSomeLane(workInProgressRootIncludedLanes, workInProgressRootUpdatedLanes)) prepareFreshStack(root, NoLanes);
if (a = workInProgressRootIncludedLanes, (a & (b = workInProgressRootUpdatedLanes)) != 0) prepareFreshStack(root, 0);
else if (0 !== exitStatus) {
if (2 === exitStatus && (executionContext |= 64, root.hydrate && (root.hydrate = !1, clearContainer(root.containerInfo)), (lanes = getLanesToRetrySynchronouslyOnError(root)) !== NoLanes && (exitStatus = renderRootSync(root, lanes))), 1 === exitStatus) {
if (2 === exitStatus && (executionContext |= 64, root.hydrate && (root.hydrate = !1, clearContainer(root.containerInfo)), 0 !== (lanes = getLanesToRetrySynchronouslyOnError(root)) && (exitStatus = renderRootSync(root, lanes))), 1 === exitStatus) {
var fatalError = workInProgressRootFatalError;
throw prepareFreshStack(root, NoLanes), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, now()), fatalError;
throw prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, now()), fatalError;
}
var finishedWork = root.current.alternate;
root.finishedWork = finishedWork, root.finishedLanes = lanes, function(root, exitStatus, lanes) {
@ -8102,7 +8102,7 @@
if (markRootSuspended$1(root, lanes), includesOnlyRetries(lanes) && !shouldForceFlushFallbacksInDEV()) {
var lanes1, msUntilTimeout = globalMostRecentFallbackTime + 500 - now();
if (msUntilTimeout > 10) {
if (getNextLanes(root, NoLanes) !== NoLanes) break;
if (0 !== getNextLanes(root, 0)) break;
var suspendedLanes = root.suspendedLanes;
if (!isSubsetOfLanes(suspendedLanes, lanes)) {
requestEventTime(), markRootPinged(root, suspendedLanes);
@ -8139,20 +8139,20 @@
return (ensureRootIsScheduled(root, now()), root.callbackNode === originalCallbackNode) ? performConcurrentWorkOnRoot.bind(null, root) : null;
}
function markRootSuspended$1(root, suspendedLanes) {
var set, subset, set1, subset1;
suspendedLanes = (set1 = suspendedLanes = (set = suspendedLanes, subset = workInProgressRootPingedLanes, set & ~subset), subset1 = workInProgressRootUpdatedLanes, set1 & ~subset1), function(root, suspendedLanes) {
var set, set1;
!function(root, suspendedLanes) {
root.suspendedLanes |= suspendedLanes, root.pingedLanes &= ~suspendedLanes;
for(var expirationTimes = root.expirationTimes, lanes = suspendedLanes; lanes > 0;){
var index = pickArbitraryLaneIndex(lanes), lane = 1 << index;
expirationTimes[index] = -1, lanes &= ~lane;
}
}(root, suspendedLanes);
}(root, suspendedLanes = (set1 = suspendedLanes = (set = suspendedLanes) & ~workInProgressRootPingedLanes) & ~workInProgressRootUpdatedLanes);
}
function performSyncWorkOnRoot(root) {
if ((48 & executionContext) != 0) throw Error("Should not already be working.");
if (flushPassiveEffects(), root === workInProgressRoot && includesSomeLane(root.expiredLanes, workInProgressRootRenderLanes) ? (lanes = workInProgressRootRenderLanes, exitStatus = renderRootSync(root, lanes), includesSomeLane(workInProgressRootIncludedLanes, workInProgressRootUpdatedLanes) && (lanes = getNextLanes(root, lanes), exitStatus = renderRootSync(root, lanes))) : (lanes = getNextLanes(root, NoLanes), exitStatus = renderRootSync(root, lanes)), 0 !== root.tag && 2 === exitStatus && (executionContext |= 64, root.hydrate && (root.hydrate = !1, clearContainer(root.containerInfo)), (lanes = getLanesToRetrySynchronouslyOnError(root)) !== NoLanes && (exitStatus = renderRootSync(root, lanes))), 1 === exitStatus) {
var lanes, exitStatus, fatalError = workInProgressRootFatalError;
throw prepareFreshStack(root, NoLanes), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, now()), fatalError;
if (flushPassiveEffects(), root === workInProgressRoot && (a = root.expiredLanes, b = workInProgressRootRenderLanes, (a & b) != 0) ? (lanes = workInProgressRootRenderLanes, exitStatus = renderRootSync(root, lanes), a1 = workInProgressRootIncludedLanes, (a1 & (b1 = workInProgressRootUpdatedLanes)) != 0 && (lanes = getNextLanes(root, lanes), exitStatus = renderRootSync(root, lanes))) : (lanes = getNextLanes(root, 0), exitStatus = renderRootSync(root, lanes)), 0 !== root.tag && 2 === exitStatus && (executionContext |= 64, root.hydrate && (root.hydrate = !1, clearContainer(root.containerInfo)), 0 !== (lanes = getLanesToRetrySynchronouslyOnError(root)) && (exitStatus = renderRootSync(root, lanes))), 1 === exitStatus) {
var a, b, a1, b1, lanes, exitStatus, fatalError = workInProgressRootFatalError;
throw prepareFreshStack(root, 0), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, now()), fatalError;
}
var finishedWork = root.current.alternate;
return root.finishedWork = finishedWork, root.finishedLanes = lanes, commitRoot(root), ensureRootIsScheduled(root, now()), null;
@ -8194,10 +8194,10 @@
subtreeRenderLanes = subtreeRenderLanesCursor.current, pop(subtreeRenderLanesCursor, fiber);
}
function prepareFreshStack(root, lanes) {
root.finishedWork = null, root.finishedLanes = NoLanes;
root.finishedWork = null, root.finishedLanes = 0;
var timeoutHandle = root.timeoutHandle;
if (-1 !== timeoutHandle && (root.timeoutHandle = -1, cancelTimeout(timeoutHandle)), null !== workInProgress) for(var interruptedWork = workInProgress.return; null !== interruptedWork;)unwindInterruptedWork(interruptedWork), interruptedWork = interruptedWork.return;
workInProgressRoot = root, workInProgress = createWorkInProgress(root.current, null), workInProgressRootRenderLanes = subtreeRenderLanes = workInProgressRootIncludedLanes = lanes, workInProgressRootExitStatus = 0, workInProgressRootFatalError = null, workInProgressRootSkippedLanes = NoLanes, workInProgressRootUpdatedLanes = NoLanes, workInProgressRootPingedLanes = NoLanes, spawnedWorkDuringRender = null, ReactStrictModeWarnings.discardPendingWarnings();
workInProgressRoot = root, workInProgress = createWorkInProgress(root.current, null), workInProgressRootRenderLanes = subtreeRenderLanes = workInProgressRootIncludedLanes = lanes, workInProgressRootExitStatus = 0, workInProgressRootFatalError = null, workInProgressRootSkippedLanes = 0, workInProgressRootUpdatedLanes = 0, workInProgressRootPingedLanes = 0, spawnedWorkDuringRender = null, ReactStrictModeWarnings.discardPendingWarnings();
}
function handleError(root, thrownValue) {
for(;;){
@ -8230,8 +8230,8 @@
__interactionsRef.current = prevInteractions;
}
function markSkippedUpdateLanes(lane) {
var a, b;
workInProgressRootSkippedLanes = (a = lane, b = workInProgressRootSkippedLanes, a | b);
var a;
workInProgressRootSkippedLanes = (a = lane) | workInProgressRootSkippedLanes;
}
function renderRootSync(root, lanes) {
var prevExecutionContext = executionContext;
@ -8245,7 +8245,7 @@
handleError(root, thrownValue);
}
if (resetContextDependencies(), popInteractions(prevInteractions), executionContext = prevExecutionContext, popDispatcher(prevDispatcher), null !== workInProgress) throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");
return workInProgressRoot = null, workInProgressRootRenderLanes = NoLanes, workInProgressRootExitStatus;
return workInProgressRoot = null, workInProgressRootRenderLanes = 0, workInProgressRootExitStatus;
}
function workLoopSync() {
for(; null !== workInProgress;)performUnitOfWork(workInProgress);
@ -8292,16 +8292,17 @@
0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5);
}
function resetChildLanes(completedWork) {
if (24 !== completedWork.tag && 23 !== completedWork.tag || null === completedWork.memoizedState || includesSomeLane(subtreeRenderLanes, 1073741824) || (4 & completedWork.mode) === NoLanes) {
var newChildLanes = NoLanes;
var a;
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 a, b, a1, b1, actualDuration = completedWork.actualDuration, treeBaseDuration = completedWork.selfBaseDuration, shouldBubbleActualDurations = null === completedWork.alternate || completedWork.child !== completedWork.alternate.child, child = completedWork.child; null !== child;)newChildLanes = (a1 = newChildLanes) | ((a = 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) | ((a1 = 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 a2, b2, a3, b3, _child = completedWork.child; null !== _child;)newChildLanes = (a3 = newChildLanes) | ((a2 = _child.lanes) | _child.childLanes), _child = _child.sibling;
} else for(var a3, b2, a4, b3, _child = completedWork.child; null !== _child;)newChildLanes = (a4 = newChildLanes) | ((a3 = _child.lanes) | _child.childLanes), _child = _child.sibling;
completedWork.childLanes = newChildLanes;
}
}
@ -8315,7 +8316,7 @@
if (ReactStrictModeWarnings.flushLegacyContextWarning(), ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(), (48 & executionContext) != 0) throw Error("Should not already be working.");
var firstEffect, finishedWork = root.finishedWork, lanes = root.finishedLanes;
if (null === finishedWork) return null;
if (root.finishedWork = null, root.finishedLanes = NoLanes, !(finishedWork !== root.current)) throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");
if (root.finishedWork = null, root.finishedLanes = 0, !(finishedWork !== root.current)) throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");
root.callbackNode = null;
var remainingLanes = (a = finishedWork.lanes) | finishedWork.childLanes;
if (!function(root, remainingLanes) {
@ -8323,9 +8324,9 @@
root.pendingLanes = remainingLanes, root.suspendedLanes = 0, root.pingedLanes = 0, root.expiredLanes &= remainingLanes, root.mutableReadLanes &= remainingLanes, root.entangledLanes &= remainingLanes;
for(var entanglements = root.entanglements, eventTimes = root.eventTimes, expirationTimes = root.expirationTimes, lanes = noLongerPendingLanes; lanes > 0;){
var index = pickArbitraryLaneIndex(lanes), lane = 1 << index;
entanglements[index] = NoLanes, eventTimes[index] = -1, expirationTimes[index] = -1, lanes &= ~lane;
entanglements[index] = 0, eventTimes[index] = -1, expirationTimes[index] = -1, lanes &= ~lane;
}
}(root, remainingLanes), null !== rootsWithPendingDiscreteUpdates && (24 & remainingLanes) === NoLanes && rootsWithPendingDiscreteUpdates.has(root) && rootsWithPendingDiscreteUpdates.delete(root), root === workInProgressRoot && (workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = NoLanes), finishedWork.flags > 1 ? null !== finishedWork.lastEffect ? (finishedWork.lastEffect.nextEffect = finishedWork, firstEffect = finishedWork.firstEffect) : firstEffect = finishedWork : firstEffect = finishedWork.firstEffect, null !== firstEffect) {
}(root, remainingLanes), null !== rootsWithPendingDiscreteUpdates && (24 & remainingLanes) == 0 && rootsWithPendingDiscreteUpdates.has(root) && rootsWithPendingDiscreteUpdates.delete(root), root === workInProgressRoot && (workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = 0), finishedWork.flags > 1 ? null !== finishedWork.lastEffect ? (finishedWork.lastEffect.nextEffect = finishedWork, firstEffect = finishedWork.firstEffect) : firstEffect = finishedWork : firstEffect = finishedWork.firstEffect, null !== firstEffect) {
var a, b, prevExecutionContext = executionContext;
executionContext |= 32;
var focusedElem, input, prevInteractions = pushInteractions(root);
@ -8421,7 +8422,7 @@
var nextNextEffect = nextEffect.nextEffect;
nextEffect.nextEffect = null, 8 & nextEffect.flags && detachFiberAfterEffects(nextEffect), nextEffect = nextNextEffect;
}
if ((remainingLanes = root.pendingLanes) !== NoLanes) {
if (0 !== (remainingLanes = root.pendingLanes)) {
if (null !== spawnedWorkDuringRender) {
var expirationTimes = spawnedWorkDuringRender;
spawnedWorkDuringRender = null;
@ -8429,7 +8430,7 @@
}
schedulePendingInteractions(root, remainingLanes);
} else legacyErrorBoundariesThatAlreadyFailed = null;
if (rootDidHavePassiveEffects || finishPendingInteractions(root, lanes), remainingLanes === SyncLane ? root === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root) : nestedUpdateCount = 0, !function(root, priorityLevel) {
if (rootDidHavePassiveEffects || finishPendingInteractions(root, lanes), 1 === remainingLanes ? root === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root) : nestedUpdateCount = 0, !function(root, priorityLevel) {
if (injectedHook && "function" == typeof injectedHook.onCommitFiberRoot) try {
var didError = (64 & root.current.flags) == 64;
injectedHook.onCommitFiberRoot(rendererID, root, priorityLevel, didError);
@ -8450,7 +8451,7 @@
var current = nextEffect.alternate;
!shouldFireAfterActiveInstanceBlur && null !== focusedInstanceHandle && ((8 & nextEffect.flags) != 0 ? doesFiberContain(nextEffect, focusedInstanceHandle) && (shouldFireAfterActiveInstanceBlur = !0) : 13 === nextEffect.tag && isSuspenseBoundaryBeingHidden(current, nextEffect) && doesFiberContain(nextEffect, focusedInstanceHandle) && (shouldFireAfterActiveInstanceBlur = !0));
var flags = nextEffect.flags;
(256 & flags) != 0 && (setCurrentFiber(nextEffect), commitBeforeMutationLifeCycles(current, nextEffect), resetCurrentFiber()), (512 & flags) == 0 || rootDoesHavePassiveEffects || (rootDoesHavePassiveEffects = !0, scheduleCallback(NormalPriority$1, function() {
(256 & flags) != 0 && (setCurrentFiber(nextEffect), commitBeforeMutationLifeCycles(current, nextEffect), resetCurrentFiber()), (512 & flags) == 0 || rootDoesHavePassiveEffects || (rootDoesHavePassiveEffects = !0, scheduleCallback(97, function() {
return flushPassiveEffects(), null;
})), nextEffect = nextEffect.nextEffect;
}
@ -8495,20 +8496,20 @@
}
function flushPassiveEffects() {
if (90 !== pendingPassiveEffectsRenderPriority) {
var priorityLevel = pendingPassiveEffectsRenderPriority > NormalPriority$1 ? NormalPriority$1 : pendingPassiveEffectsRenderPriority;
var priorityLevel = pendingPassiveEffectsRenderPriority > 97 ? 97 : pendingPassiveEffectsRenderPriority;
return pendingPassiveEffectsRenderPriority = 90, runWithPriority$1(priorityLevel, flushPassiveEffectsImpl);
}
return !1;
}
function enqueuePendingPassiveHookEffectMount(fiber, effect) {
pendingPassiveHookEffectsMount.push(effect, fiber), rootDoesHavePassiveEffects || (rootDoesHavePassiveEffects = !0, scheduleCallback(NormalPriority$1, function() {
pendingPassiveHookEffectsMount.push(effect, fiber), rootDoesHavePassiveEffects || (rootDoesHavePassiveEffects = !0, scheduleCallback(97, function() {
return flushPassiveEffects(), null;
}));
}
function enqueuePendingPassiveHookEffectUnmount(fiber, effect) {
pendingPassiveHookEffectsUnmount.push(effect, fiber), fiber.flags |= 8192;
var alternate = fiber.alternate;
null !== alternate && (alternate.flags |= 8192), rootDoesHavePassiveEffects || (rootDoesHavePassiveEffects = !0, scheduleCallback(NormalPriority$1, function() {
null !== alternate && (alternate.flags |= 8192), rootDoesHavePassiveEffects || (rootDoesHavePassiveEffects = !0, scheduleCallback(97, function() {
return flushPassiveEffects(), null;
}));
}
@ -8519,7 +8520,7 @@
function flushPassiveEffectsImpl() {
if (null === rootWithPendingPassiveEffects) return !1;
var root = rootWithPendingPassiveEffects, lanes = pendingPassiveEffectsLanes;
if (rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = NoLanes, (48 & executionContext) != 0) throw Error("Cannot flush passive effects while already rendering.");
if (rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, (48 & executionContext) != 0) throw Error("Cannot flush passive effects while already rendering.");
isFlushingPassiveEffects = !0;
var prevExecutionContext = executionContext;
executionContext |= 32;
@ -8560,10 +8561,10 @@
hasUncaughtError || (hasUncaughtError = !0, firstUncaughtError = error);
};
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
var errorInfo = createCapturedValue(error, sourceFiber), update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane);
var errorInfo = createCapturedValue(error, sourceFiber), update = createRootErrorUpdate(rootFiber, errorInfo, 1);
enqueueUpdate(rootFiber, update);
var eventTime = requestEventTime(), root = markUpdateLaneFromFiberToRoot(rootFiber, SyncLane);
null !== root && (markRootUpdated(root, SyncLane, eventTime), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, SyncLane));
var eventTime = requestEventTime(), root = markUpdateLaneFromFiberToRoot(rootFiber, 1);
null !== root && (markRootUpdated(root, 1, eventTime), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, 1));
}
function captureCommitPhaseError(sourceFiber, error) {
if (3 === sourceFiber.tag) {
@ -8578,10 +8579,10 @@
if (1 === fiber.tag) {
var ctor = fiber.type, instance = fiber.stateNode;
if ("function" == typeof ctor.getDerivedStateFromError || "function" == typeof instance.componentDidCatch && !isAlreadyFailedLegacyErrorBoundary(instance)) {
var errorInfo = createCapturedValue(error, sourceFiber), update = createClassErrorUpdate(fiber, errorInfo, SyncLane);
var errorInfo = createCapturedValue(error, sourceFiber), update = createClassErrorUpdate(fiber, errorInfo, 1);
enqueueUpdate(fiber, update);
var eventTime = requestEventTime(), root = markUpdateLaneFromFiberToRoot(fiber, SyncLane);
if (null !== root) markRootUpdated(root, SyncLane, eventTime), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, SyncLane);
var eventTime = requestEventTime(), root = markUpdateLaneFromFiberToRoot(fiber, 1);
if (null !== root) markRootUpdated(root, 1, eventTime), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, 1);
else if ("function" == typeof instance.componentDidCatch && !isAlreadyFailedLegacyErrorBoundary(instance)) try {
instance.componentDidCatch(error, errorInfo);
} catch (errorToIgnore) {}
@ -8595,12 +8596,12 @@
var a, pingCache = root.pingCache;
null !== pingCache && pingCache.delete(wakeable);
var eventTime = requestEventTime();
markRootPinged(root, pingedLanes), workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes) && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < 500 ? prepareFreshStack(root, NoLanes) : workInProgressRootPingedLanes = (a = workInProgressRootPingedLanes) | pingedLanes), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, pingedLanes);
markRootPinged(root, pingedLanes), workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes) && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < 500 ? prepareFreshStack(root, 0) : workInProgressRootPingedLanes = (a = workInProgressRootPingedLanes) | pingedLanes), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, pingedLanes);
}
function resolveRetryWakeable(boundaryFiber, wakeable) {
null !== (retryCache = boundaryFiber.stateNode) && retryCache.delete(wakeable);
var retryCache, boundaryFiber1, eventTime, root, fiber, wipLanes, lane, mode, retryLane = 0;
boundaryFiber1 = boundaryFiber, 0 === retryLane && (retryLane = (2 & (mode = (fiber = boundaryFiber1).mode)) == 0 ? SyncLane : (4 & mode) == 0 ? 99 === getCurrentPriorityLevel() ? SyncLane : 2 : (currentEventWipLanes === NoLanes && (currentEventWipLanes = workInProgressRootIncludedLanes), wipLanes = currentEventWipLanes, 0 === (lane = pickArbitraryLane(62914560 & ~wipLanes)) && (lane = pickArbitraryLane(62914560)), lane)), eventTime = requestEventTime(), null !== (root = markUpdateLaneFromFiberToRoot(boundaryFiber1, retryLane)) && (markRootUpdated(root, retryLane, eventTime), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, retryLane));
var retryCache, boundaryFiber1, eventTime, root, fiber, lane, mode, retryLane = 0;
boundaryFiber1 = boundaryFiber, 0 === retryLane && (retryLane = (2 & (mode = (fiber = boundaryFiber1).mode)) == 0 ? 1 : (4 & mode) == 0 ? 99 === getCurrentPriorityLevel() ? 1 : 2 : (0 === currentEventWipLanes && (currentEventWipLanes = workInProgressRootIncludedLanes), 0 === (lane = pickArbitraryLane(62914560 & ~currentEventWipLanes)) && (lane = pickArbitraryLane(62914560)), lane)), eventTime = requestEventTime(), null !== (root = markUpdateLaneFromFiberToRoot(boundaryFiber1, retryLane)) && (markRootUpdated(root, retryLane, eventTime), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, retryLane));
}
var didWarnStateUpdateForNotYetMountedComponent = null;
function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) {
@ -8691,7 +8692,8 @@
function startWorkOnPendingInteractions(root, lanes) {
var interactions = new Set();
if (root.pendingInteractionMap.forEach(function(scheduledInteractions, scheduledLane) {
includesSomeLane(lanes, scheduledLane) && scheduledInteractions.forEach(function(interaction) {
var a, b;
a = lanes, (a & (b = scheduledLane)) != 0 && scheduledInteractions.forEach(function(interaction) {
return interactions.add(interaction);
});
}), root.memoizedInteractions = interactions, interactions.size > 0) {
@ -8722,7 +8724,8 @@
} finally{
var pendingInteractionMap = root.pendingInteractionMap;
pendingInteractionMap.forEach(function(scheduledInteractions, lane) {
includesSomeLane(remainingLanesAfterCommit, lane) || (pendingInteractionMap.delete(lane), scheduledInteractions.forEach(function(interaction) {
var a, b;
a = remainingLanesAfterCommit, (a & (b = lane)) != 0 || (pendingInteractionMap.delete(lane), scheduledInteractions.forEach(function(interaction) {
if (interaction.__count--, null !== subscriber && 0 === interaction.__count) try {
subscriber.onInteractionScheduledWorkCompleted(interaction);
} catch (error) {
@ -8817,7 +8820,7 @@
var family = resolveFamily(candidateType);
void 0 !== family && (staleFamilies.has(family) ? needsRemount = !0 : updatedFamilies.has(family) && (1 === tag ? needsRemount = !0 : needsRender = !0));
}
null !== failedBoundaries && (failedBoundaries.has(fiber) || null !== alternate && failedBoundaries.has(alternate)) && (needsRemount = !0), needsRemount && (fiber._debugNeedsRemount = !0), (needsRemount || needsRender) && scheduleUpdateOnFiber(fiber, SyncLane, -1), null === child || needsRemount || scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies), null !== sibling && scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
null !== failedBoundaries && (failedBoundaries.has(fiber) || null !== alternate && failedBoundaries.has(alternate)) && (needsRemount = !0), needsRemount && (fiber._debugNeedsRemount = !0), (needsRemount || needsRender) && scheduleUpdateOnFiber(fiber, 1, -1), null === child || needsRemount || scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies), null !== sibling && scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
})(root.current, updatedFamilies, staleFamilies);
});
}
@ -8881,7 +8884,7 @@
}
var debugCounter = 1;
function FiberNode(tag, pendingProps, key, mode) {
this.tag = tag, this.key = key, this.elementType = null, this.type = null, this.stateNode = null, this.return = null, this.child = null, this.sibling = null, this.index = 0, this.ref = null, this.pendingProps = pendingProps, this.memoizedProps = null, this.updateQueue = null, this.memoizedState = null, this.dependencies = null, this.mode = mode, this.flags = 0, this.nextEffect = null, this.firstEffect = null, this.lastEffect = null, this.lanes = NoLanes, this.childLanes = NoLanes, this.alternate = null, this.actualDuration = Number.NaN, this.actualStartTime = Number.NaN, this.selfBaseDuration = Number.NaN, this.treeBaseDuration = Number.NaN, this.actualDuration = 0, this.actualStartTime = -1, this.selfBaseDuration = 0, this.treeBaseDuration = 0, this._debugID = debugCounter++, this._debugSource = null, this._debugOwner = null, this._debugNeedsRemount = !1, this._debugHookTypes = null, hasBadMapPolyfill || "function" != typeof Object.preventExtensions || Object.preventExtensions(this);
this.tag = tag, this.key = key, this.elementType = null, this.type = null, this.stateNode = null, this.return = null, this.child = null, this.sibling = null, this.index = 0, this.ref = null, this.pendingProps = pendingProps, this.memoizedProps = null, this.updateQueue = null, this.memoizedState = null, this.dependencies = null, this.mode = mode, this.flags = 0, this.nextEffect = null, this.firstEffect = null, this.lastEffect = null, this.lanes = 0, this.childLanes = 0, this.alternate = null, this.actualDuration = Number.NaN, this.actualStartTime = Number.NaN, this.selfBaseDuration = Number.NaN, this.treeBaseDuration = Number.NaN, this.actualDuration = 0, this.actualStartTime = -1, this.selfBaseDuration = 0, this.treeBaseDuration = 0, this._debugID = debugCounter++, this._debugSource = null, this._debugOwner = null, this._debugNeedsRemount = !1, this._debugHookTypes = null, hasBadMapPolyfill || "function" != typeof Object.preventExtensions || Object.preventExtensions(this);
}
var createFiber = function(tag, pendingProps, key, mode) {
return new FiberNode(tag, pendingProps, key, mode);
@ -8912,7 +8915,7 @@
function resetWorkInProgress(workInProgress, renderLanes) {
workInProgress.flags &= 2, workInProgress.nextEffect = null, workInProgress.firstEffect = null, workInProgress.lastEffect = null;
var current = workInProgress.alternate;
if (null === current) workInProgress.childLanes = NoLanes, workInProgress.lanes = renderLanes, workInProgress.child = null, workInProgress.memoizedProps = null, workInProgress.memoizedState = null, workInProgress.updateQueue = null, workInProgress.dependencies = null, workInProgress.stateNode = null, workInProgress.selfBaseDuration = 0, workInProgress.treeBaseDuration = 0;
if (null === current) workInProgress.childLanes = 0, workInProgress.lanes = renderLanes, workInProgress.child = null, workInProgress.memoizedProps = null, workInProgress.memoizedState = null, workInProgress.updateQueue = null, workInProgress.dependencies = null, workInProgress.stateNode = null, workInProgress.selfBaseDuration = 0, workInProgress.treeBaseDuration = 0;
else {
workInProgress.childLanes = current.childLanes, workInProgress.lanes = current.lanes, workInProgress.child = current.child, workInProgress.memoizedProps = current.memoizedProps, workInProgress.memoizedState = current.memoizedState, workInProgress.updateQueue = current.updateQueue, workInProgress.type = current.type;
var currentDependencies = current.dependencies;
@ -9008,7 +9011,7 @@
return null === target && (target = createFiber(2, null, null, 0)), target.tag = source.tag, target.key = source.key, target.elementType = source.elementType, target.type = source.type, target.stateNode = source.stateNode, target.return = source.return, target.child = source.child, target.sibling = source.sibling, target.index = source.index, target.ref = source.ref, target.pendingProps = source.pendingProps, target.memoizedProps = source.memoizedProps, target.updateQueue = source.updateQueue, target.memoizedState = source.memoizedState, target.dependencies = source.dependencies, target.mode = source.mode, target.flags = source.flags, target.nextEffect = source.nextEffect, target.firstEffect = source.firstEffect, target.lastEffect = source.lastEffect, target.lanes = source.lanes, target.childLanes = source.childLanes, target.alternate = source.alternate, target.actualDuration = source.actualDuration, target.actualStartTime = source.actualStartTime, target.selfBaseDuration = source.selfBaseDuration, target.treeBaseDuration = source.treeBaseDuration, target._debugID = source._debugID, target._debugSource = source._debugSource, target._debugOwner = source._debugOwner, target._debugNeedsRemount = source._debugNeedsRemount, target._debugHookTypes = source._debugHookTypes, target;
}
function FiberRootNode(containerInfo, tag, hydrate) {
switch(this.tag = tag, this.containerInfo = containerInfo, this.pendingChildren = null, this.current = null, this.pingCache = null, this.finishedWork = null, this.timeoutHandle = -1, this.context = null, this.pendingContext = null, this.hydrate = hydrate, this.callbackNode = null, this.callbackPriority = 0, this.eventTimes = createLaneMap(NoLanes), this.expirationTimes = createLaneMap(-1), this.pendingLanes = NoLanes, this.suspendedLanes = NoLanes, this.pingedLanes = NoLanes, this.expiredLanes = NoLanes, this.mutableReadLanes = NoLanes, this.finishedLanes = NoLanes, this.entangledLanes = NoLanes, this.entanglements = createLaneMap(NoLanes), this.mutableSourceEagerHydrationData = null, this.interactionThreadID = unstable_getThreadID(), this.memoizedInteractions = new Set(), this.pendingInteractionMap = new Map(), tag){
switch(this.tag = tag, this.containerInfo = containerInfo, this.pendingChildren = null, this.current = null, this.pingCache = null, this.finishedWork = null, this.timeoutHandle = -1, this.context = null, this.pendingContext = null, this.hydrate = hydrate, this.callbackNode = null, this.callbackPriority = 0, this.eventTimes = createLaneMap(0), this.expirationTimes = createLaneMap(-1), this.pendingLanes = 0, this.suspendedLanes = 0, this.pingedLanes = 0, this.expiredLanes = 0, this.mutableReadLanes = 0, this.finishedLanes = 0, this.entangledLanes = 0, this.entanglements = createLaneMap(0), this.mutableSourceEagerHydrationData = null, this.interactionThreadID = unstable_getThreadID(), this.memoizedInteractions = new Set(), this.pendingInteractionMap = new Map(), tag){
case 1:
this._debugRootType = "createBlockingRoot()";
break;
@ -9157,28 +9160,28 @@
var hook = findHook(fiber, id);
if (null !== hook) {
var newState = copyWithSet(hook.memoizedState, path, value);
hook.memoizedState = newState, hook.baseState = newState, fiber.memoizedProps = _assign({}, fiber.memoizedProps), scheduleUpdateOnFiber(fiber, SyncLane, -1);
hook.memoizedState = newState, hook.baseState = newState, fiber.memoizedProps = _assign({}, fiber.memoizedProps), scheduleUpdateOnFiber(fiber, 1, -1);
}
}, overrideHookStateDeletePath = function(fiber, id, path) {
var hook = findHook(fiber, id);
if (null !== hook) {
var newState = copyWithDelete(hook.memoizedState, path);
hook.memoizedState = newState, hook.baseState = newState, fiber.memoizedProps = _assign({}, fiber.memoizedProps), scheduleUpdateOnFiber(fiber, SyncLane, -1);
hook.memoizedState = newState, hook.baseState = newState, fiber.memoizedProps = _assign({}, fiber.memoizedProps), scheduleUpdateOnFiber(fiber, 1, -1);
}
}, overrideHookStateRenamePath = function(fiber, id, oldPath, newPath) {
var hook = findHook(fiber, id);
if (null !== hook) {
var newState = copyWithRename(hook.memoizedState, oldPath, newPath);
hook.memoizedState = newState, hook.baseState = newState, fiber.memoizedProps = _assign({}, fiber.memoizedProps), scheduleUpdateOnFiber(fiber, SyncLane, -1);
hook.memoizedState = newState, hook.baseState = newState, fiber.memoizedProps = _assign({}, fiber.memoizedProps), scheduleUpdateOnFiber(fiber, 1, -1);
}
}, overrideProps = function(fiber, path, value) {
fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value), fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps), scheduleUpdateOnFiber(fiber, SyncLane, -1);
fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value), fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps), scheduleUpdateOnFiber(fiber, 1, -1);
}, overridePropsDeletePath = function(fiber, path) {
fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path), fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps), scheduleUpdateOnFiber(fiber, SyncLane, -1);
fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path), fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps), scheduleUpdateOnFiber(fiber, 1, -1);
}, overridePropsRenamePath = function(fiber, oldPath, newPath) {
fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath), fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps), scheduleUpdateOnFiber(fiber, SyncLane, -1);
fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath), fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps), scheduleUpdateOnFiber(fiber, 1, -1);
}, scheduleUpdate = function(fiber) {
scheduleUpdateOnFiber(fiber, SyncLane, -1);
scheduleUpdateOnFiber(fiber, 1, -1);
}, setSuspenseHandler = function(newShouldSuspendImpl) {
shouldSuspendImpl = newShouldSuspendImpl;
}, ReactDOMRoot.prototype.render = ReactDOMBlockingRoot.prototype.render = function(children) {

View File

@ -137,8 +137,8 @@ var YUI = function() {
return this;
},
_attach: function(r, moot) {
var i, name, mod, details, req, use, after, j, loader, def, go, mods = YUI.Env.mods, aliases = YUI.Env.aliases, Y = this, cache = YUI.Env._renderedMods, loader = Y.Env._loader, done = Y.Env._attached, len = r.length, c = [];
for(i = 0; i < len; i++)if (mod = mods[name = r[i]], c.push(name), loader && loader.conditions[name]) for(j in loader.conditions[name])loader.conditions[name].hasOwnProperty(j) && (go = (def = loader.conditions[name][j]) && (def.ua && Y.UA[def.ua] || def.test && def.test(Y))) && c.push(def.name);
var i, name, mod, details, req, use, after, j, loader, def, mods = YUI.Env.mods, aliases = YUI.Env.aliases, Y = this, cache = YUI.Env._renderedMods, loader = Y.Env._loader, done = Y.Env._attached, len = r.length, c = [];
for(i = 0; i < len; i++)if (mod = mods[name = r[i]], c.push(name), loader && loader.conditions[name]) for(j in loader.conditions[name])loader.conditions[name].hasOwnProperty(j) && (def = loader.conditions[name][j]) && (def.ua && Y.UA[def.ua] || def.test && def.test(Y)) && c.push(def.name);
for(i = 0, len = (r = c).length; i < len; i++)if (!done[r[i]]) {
if (mod = mods[name = r[i]], aliases && aliases[name] && !mod) {
Y._attach(aliases[name]);
@ -226,7 +226,7 @@ var YUI = function() {
this.Array || this._attach([
"yui-base"
]);
var len, loader, handleBoot, i, Y = this, G_ENV = YUI.Env, mods = G_ENV.mods, Env = Y.Env, used = Env._used, aliases = G_ENV.aliases, queue = G_ENV._loaderQueue, firstArg = args[0], YArray = Y.Array, config = Y.config, boot = config.bootstrap, missing = [], r = [], ret = !0, fetchCSS = config.fetchCSS, process1 = function(names, skip) {
var len, loader, handleBoot, i, Y = this, G_ENV = YUI.Env, mods = G_ENV.mods, Env = Y.Env, used = Env._used, aliases = G_ENV.aliases, queue = G_ENV._loaderQueue, firstArg = args[0], YArray = Y.Array, config = Y.config, boot = config.bootstrap, missing = [], r = [], fetchCSS = config.fetchCSS, process1 = function(names, skip) {
var name, len, m, req, use, i = 0, a = [];
if (names.length) {
if (aliases) {
@ -246,7 +246,7 @@ var YUI = function() {
};
if ("*" === firstArg) {
for(i in args = [], mods)mods.hasOwnProperty(i) && args.push(i);
return (ret = Y._attach(args)) && handleLoader(), Y;
return Y._attach(args) && handleLoader(), Y;
}
return (mods.loader || mods["loader-base"]) && !Y.Loader && Y._attach([
"loader" + (mods.loader ? "" : "-base")
@ -256,7 +256,7 @@ var YUI = function() {
]) && Y._use(args, callback);
}, G_ENV._bootstrapping ? queue.add(handleBoot) : (G_ENV._bootstrapping = !0, Y.Get.script(config.base + config.loaderPath, {
onEnd: handleBoot
}))) : (ret = Y._attach(args)) && handleLoader(), Y;
}))) : Y._attach(args) && handleLoader(), Y;
},
namespace: function() {
for(var o, j, d, arg, a = arguments, i = 0; i < a.length; i++)if (o = this, (arg = a[i]).indexOf(".") > -1) for(j = "YAHOO" == (d = arg.split("."))[0] ? 1 : 0; j < d.length; j++)o[d[j]] = o[d[j]] || {}, o = o[d[j]];
@ -1328,13 +1328,13 @@ var YUI = function() {
"groups",
"skin"
], 0, !0), YUI.Env[VERSION] = META;
var VERSION, BUILD, CDN_BASE, COMBO_BASE, META, groups, yui2Update, galleryUpdate, modulekey, NOT_FOUND = {}, NO_REQUIREMENTS = [], GLOBAL_ENV = YUI.Env, GLOBAL_LOADED = GLOBAL_ENV._loaded, INTL = "intl", VERSION1 = Y.version, YObject = Y.Object, oeach = YObject.each, yArray = Y.Array, _queue = GLOBAL_ENV._loaderQueue, META1 = GLOBAL_ENV[VERSION1], L = Y.Lang, ON_PAGE = GLOBAL_ENV.mods, _path = function(dir, file, type, nomin) {
var VERSION, BUILD, CDN_BASE, COMBO_BASE, META, groups, yui2Update, galleryUpdate, NOT_FOUND = {}, NO_REQUIREMENTS = [], GLOBAL_ENV = YUI.Env, GLOBAL_LOADED = GLOBAL_ENV._loaded, INTL = "intl", VERSION1 = Y.version, YObject = Y.Object, oeach = YObject.each, yArray = Y.Array, _queue = GLOBAL_ENV._loaderQueue, META1 = GLOBAL_ENV[VERSION1], L = Y.Lang, ON_PAGE = GLOBAL_ENV.mods, _path = function(dir, file, type, nomin) {
var path = dir + "/" + file;
return nomin || (path += "-min"), path += "." + (type || "css");
};
YUI.Env._cssLoaded || (YUI.Env._cssLoaded = {}), Y.Env.meta = META1, Y.Loader = function(o) {
var self = this;
o = o || {}, modulekey = META1.md5, self.context = Y, self.base = Y.Env.meta.base + Y.Env.meta.root, self.comboBase = Y.Env.meta.comboBase, self.combine = o.base && o.base.indexOf(self.comboBase.substr(0, 20)) > -1, self.comboSep = "&", self.maxURLLength = 1024, self.ignoreRegistered = o.ignoreRegistered, self.root = Y.Env.meta.root, self.timeout = 0, self.forceMap = {}, self.allowRollup = !1, self.filters = {}, self.required = {}, self.patterns = {}, self.moduleInfo = {}, self.groups = Y.merge(Y.Env.meta.groups), self.skin = Y.merge(Y.Env.meta.skin), self.conditions = {}, self.config = o, self._internal = !0, self._populateCache(), self.loaded = GLOBAL_LOADED[VERSION1], self.async = !0, self._inspectPage(), self._internal = !1, self._config(o), self.forceMap = self.force ? Y.Array.hash(self.force) : {}, self.testresults = null, Y.config.tests && (self.testresults = Y.config.tests), self.sorted = [], self.dirty = !0, self.inserted = {}, self.skipped = {}, self.tested = {}, self.ignoreRegistered && self._resetModules();
o = o || {}, META1.md5, self.context = Y, self.base = Y.Env.meta.base + Y.Env.meta.root, self.comboBase = Y.Env.meta.comboBase, self.combine = o.base && o.base.indexOf(self.comboBase.substr(0, 20)) > -1, self.comboSep = "&", self.maxURLLength = 1024, self.ignoreRegistered = o.ignoreRegistered, self.root = Y.Env.meta.root, self.timeout = 0, self.forceMap = {}, self.allowRollup = !1, self.filters = {}, self.required = {}, self.patterns = {}, self.moduleInfo = {}, self.groups = Y.merge(Y.Env.meta.groups), self.skin = Y.merge(Y.Env.meta.skin), self.conditions = {}, self.config = o, self._internal = !0, self._populateCache(), self.loaded = GLOBAL_LOADED[VERSION1], self.async = !0, self._inspectPage(), self._internal = !1, self._config(o), self.forceMap = self.force ? Y.Array.hash(self.force) : {}, self.testresults = null, Y.config.tests && (self.testresults = Y.config.tests), self.sorted = [], self.dirty = !0, self.inserted = {}, self.skipped = {}, self.tested = {}, self.ignoreRegistered && self._resetModules();
}, Y.Loader.prototype = {
_populateCache: function() {
var i, self = this, defaults = META1.modules, cache = GLOBAL_ENV._renderedMods;

View File

@ -685,7 +685,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -1699,7 +1699,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -1737,7 +1737,7 @@ TestSnapshot {
exported: false,
used_above_decl: false,
is_fn_local: false,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,

View File

@ -529,7 +529,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 2,
reassigned_with_assignment: false,

View File

@ -62,8 +62,8 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: true,
is_fn_local: true,
used_by_nested_fn: false,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,

View File

@ -101,7 +101,7 @@ TestSnapshot {
exported: false,
used_above_decl: true,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,

View File

@ -100,8 +100,8 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: Some(
@ -140,8 +140,8 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: Some(
@ -149,7 +149,7 @@ TestSnapshot {
),
var_initialized: true,
declared_as_catch_param: false,
no_side_effect_for_member_access: true,
no_side_effect_for_member_access: false,
used_as_callee: false,
used_as_arg: false,
pure_fn: false,

View File

@ -63,7 +63,7 @@ TestSnapshot {
exported: false,
used_above_decl: true,
is_fn_local: true,
used_by_nested_fn: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,

View File

@ -176,8 +176,8 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: Some(
@ -185,7 +185,7 @@ TestSnapshot {
),
var_initialized: true,
declared_as_catch_param: false,
no_side_effect_for_member_access: true,
no_side_effect_for_member_access: false,
used_as_callee: false,
used_as_arg: true,
pure_fn: false,

View File

@ -100,8 +100,8 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: true,
is_fn_local: true,
used_by_nested_fn: false,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -138,8 +138,8 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: Some(
@ -147,7 +147,7 @@ TestSnapshot {
),
var_initialized: true,
declared_as_catch_param: false,
no_side_effect_for_member_access: true,
no_side_effect_for_member_access: false,
used_as_callee: false,
used_as_arg: true,
pure_fn: false,

View File

@ -62,8 +62,8 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
@ -100,7 +100,7 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
@ -138,8 +138,8 @@ TestSnapshot {
accessed_props: {},
exported: false,
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: false,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,

View File

@ -13,7 +13,7 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 1,
assign_count: 0,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -89,7 +89,7 @@ TestSnapshot {
declared_count: 2,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 1,
reassigned_with_assignment: false,

Some files were not shown because too many files have changed in this diff Show More