fix(es/minifier): Improve alias analyzer (#5500)

This commit is contained in:
Donny/강동윤 2022-08-26 16:56:40 +09:00 committed by GitHub
parent b4416492d1
commit 00e635b9ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
159 changed files with 25855 additions and 9844 deletions

View File

@ -9,13 +9,13 @@ var trace = [], order = function(n) {
(void 0 === tmp ? order(0) : tmp)[order(1)];
var tmp1 = {};
(void 0 === tmp1 ? order(0) : tmp1)[order(1)];
var _ref = {}, key = order(0), key1 = order(2), tmp2 = _ref[key];
(void 0 === tmp2 ? order(1) : tmp2)[key1], _object_without_properties(_ref, [
var _ref = {}, key = order(0), key1 = order(2), tmp2 = _ref[key], ref = void 0 === tmp2 ? order(1) : tmp2;
ref[key1], _object_without_properties(_ref, [
key
].map(_to_property_key));
var _ref1 = [
{
x: 1
}
], __ref = _sliced_to_array(_ref1, 2), ref = __ref[0], ref = null !== ref ? ref : _throw(new TypeError("Cannot destructure undefined"));
], __ref = _sliced_to_array(_ref1, 2), ref1 = __ref[0], ref1 = null !== ref1 ? ref1 : _throw(new TypeError("Cannot destructure undefined"));
__ref[1], _extends({}, _ref1[0]);

View File

@ -6,4 +6,5 @@ exports.n = {}, exports.n.K = function() {
}
};
import * as s from './mod';
new s.n.K().x, new s.Classic();
var k = new s.n.K();
k.x, new s.Classic();

View File

@ -6,4 +6,5 @@ exports.n = {}, exports.n.K = function() {
_class_call_check(this, _class), this.p = 1;
};
import * as s from "./mod";
new s.n.K().x, new s.Classic();
var k = new s.n.K();
k.x, new s.Classic();

View File

@ -22,8 +22,345 @@ var x181, x182, x183, x184, x185, x186, x187, x188, x189, x190, x191, x192, x193
return Derived2;
}(Base);
new Base();
var d1 = new Derived1(), d2 = new Derived2();
x181 || (x181 = {}), x182 || (x182 = {}), x183 || (x183 = {}), x184 || (x184 = {}), x185 || (x185 = {}), x186 || (x186 = {}), x187 || (x187 = {}), x188 || (x188 = {}), x189 || (x189 = {}), x190 || (x190 = {}), x191 || (x191 = {}), x192 || (x192 = {}), (x193 || (x193 = {})).t = function() {
var d1 = new Derived1(), d2 = new Derived2(), x49 = function x49() {
"use strict";
_class_call_check(this, x49);
};
x49.member = function() {
return [
d1,
d2
];
};
var x50 = function x50() {
"use strict";
_class_call_check(this, x50);
};
x50.member = function() {
return [
d1,
d2
];
};
var x51 = function x51() {
"use strict";
_class_call_check(this, x51);
};
x51.member = function() {
return [
d1,
d2
];
};
var x52 = function x52() {
"use strict";
_class_call_check(this, x52);
};
x52.member = function() {
return [
d1,
d2
];
};
var x53 = function x53() {
"use strict";
_class_call_check(this, x53);
};
x53.member = function() {
return [
d1,
d2
];
};
var x54 = function x54() {
"use strict";
_class_call_check(this, x54);
};
x54.member = function() {
return [
d1,
d2
];
};
var x55 = function x55() {
"use strict";
_class_call_check(this, x55);
};
x55.member = [
d1,
d2
];
var x56 = function x56() {
"use strict";
_class_call_check(this, x56);
};
x56.member = [
d1,
d2
];
var x57 = function x57() {
"use strict";
_class_call_check(this, x57);
};
x57.member = [
d1,
d2
];
var x58 = function x58() {
"use strict";
_class_call_check(this, x58);
};
x58.member = {
n: [
d1,
d2
]
};
var x59 = function x59() {
"use strict";
_class_call_check(this, x59);
};
x59.member = function(n) {
return null;
};
var x60 = function x60() {
"use strict";
_class_call_check(this, x60);
};
x60.member = {
func: function(n) {
return [
d1,
d2
];
}
};
var x61 = function x61() {
"use strict";
_class_call_check(this, x61);
};
x61.member = function() {
return [
d1,
d2
];
};
var x62 = function x62() {
"use strict";
_class_call_check(this, x62);
};
x62.member = function() {
return [
d1,
d2
];
};
var x63 = function x63() {
"use strict";
_class_call_check(this, x63);
};
x63.member = function() {
return [
d1,
d2
];
};
var x64 = function x64() {
"use strict";
_class_call_check(this, x64);
};
x64.member = function() {
return [
d1,
d2
];
};
var x65 = function x65() {
"use strict";
_class_call_check(this, x65);
};
x65.member = function() {
return [
d1,
d2
];
};
var x66 = function x66() {
"use strict";
_class_call_check(this, x66);
};
x66.member = function() {
return [
d1,
d2
];
};
var x67 = function x67() {
"use strict";
_class_call_check(this, x67);
};
x67.member = [
d1,
d2
];
var x68 = function x68() {
"use strict";
_class_call_check(this, x68);
};
x68.member = [
d1,
d2
];
var x69 = function x69() {
"use strict";
_class_call_check(this, x69);
};
x69.member = [
d1,
d2
];
var x70 = function x70() {
"use strict";
_class_call_check(this, x70);
};
x70.member = {
n: [
d1,
d2
]
};
var x71 = function x71() {
"use strict";
_class_call_check(this, x71);
};
x71.member = function(n) {
return null;
};
var x72 = function x72() {
"use strict";
_class_call_check(this, x72);
};
x72.member = {
func: function(n) {
return [
d1,
d2
];
}
};
var x73 = function x73() {
"use strict";
_class_call_check(this, x73);
};
x73.member = function() {
return [
d1,
d2
];
};
var x74 = function x74() {
"use strict";
_class_call_check(this, x74);
};
x74.member = function() {
return [
d1,
d2
];
};
var x75 = function x75() {
"use strict";
_class_call_check(this, x75);
};
x75.member = function() {
return [
d1,
d2
];
};
var x76 = function x76() {
"use strict";
_class_call_check(this, x76);
};
x76.member = function() {
return [
d1,
d2
];
};
var x77 = function x77() {
"use strict";
_class_call_check(this, x77);
};
x77.member = function() {
return [
d1,
d2
];
};
var x78 = function x78() {
"use strict";
_class_call_check(this, x78);
};
x78.member = function() {
return [
d1,
d2
];
};
var x79 = function x79() {
"use strict";
_class_call_check(this, x79);
};
x79.member = [
d1,
d2
];
var x80 = function x80() {
"use strict";
_class_call_check(this, x80);
};
x80.member = [
d1,
d2
];
var x81 = function x81() {
"use strict";
_class_call_check(this, x81);
};
x81.member = [
d1,
d2
];
var x82 = function x82() {
"use strict";
_class_call_check(this, x82);
};
x82.member = {
n: [
d1,
d2
]
};
var x83 = function x83() {
"use strict";
_class_call_check(this, x83);
};
x83.member = function(n) {
return null;
};
var x84 = function x84() {
"use strict";
_class_call_check(this, x84);
};
x84.member = {
func: function(n) {
return [
d1,
d2
];
}
}, x181 || (x181 = {}), x182 || (x182 = {}), x183 || (x183 = {}), x184 || (x184 = {}), x185 || (x185 = {}), x186 || (x186 = {}), x187 || (x187 = {}), x188 || (x188 = {}), x189 || (x189 = {}), x190 || (x190 = {}), x191 || (x191 = {}), x192 || (x192 = {}), (x193 || (x193 = {})).t = function() {
return [
d1,
d2

View File

@ -38,15 +38,7 @@ var A = function A() {
return _class_call_check(this, C), _super.apply(this, arguments);
}
return C;
}(new B2().anon), S = function(b3Number) {
"use strict";
_inherits(S, b3Number);
var _super = _create_super(S);
function S() {
return _class_call_check(this, S), _super.apply(this, arguments);
}
return S;
}(function(A) {
}(new B2().anon), b3Number = function(A) {
"use strict";
_inherits(Inner, A);
var _super = _create_super(Inner);
@ -54,5 +46,13 @@ var A = function A() {
return _class_call_check(this, Inner), _super.apply(this, arguments);
}
return Inner;
}(A)), c = new C(), k = new K(), s = new S();
}(A), S = function(b3Number) {
"use strict";
_inherits(S, b3Number);
var _super = _create_super(S);
function S() {
return _class_call_check(this, S), _super.apply(this, arguments);
}
return S;
}(b3Number), c = new C(), k = new K(), s = new S();
c.genericVar = 12, k.genericVar = 12, s.genericVar = 12;

View File

@ -4,5 +4,5 @@ f1(), _sliced_to_array(f2(), 1)[0], f3().x, _sliced_to_array([
], 1)[0], _sliced_to_array(selectJohn(), 1)[0];
var ref = _sliced_to_array(selectJohn(), 2);
ref[0], ref[1];
var john = selectJohn(), _john = _sliced_to_array(john, 2);
var _john = _sliced_to_array(selectJohn(), 2);
_john[0], _john[1], makeTuple(stringy()), _sliced_to_array(makeTuple(stringy()), 1)[0];

View File

@ -1,6 +1,6 @@
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs";
var SymbolIterator = function() {
var ref = _sliced_to_array(new (function() {
"use strict";
function SymbolIterator() {
_class_call_check(this, SymbolIterator);
@ -14,5 +14,5 @@ var SymbolIterator = function() {
}, _proto[Symbol.iterator] = function() {
return this;
}, SymbolIterator;
}(), ref = _sliced_to_array(new SymbolIterator, 2);
}()), 2);
ref[0], ref[1];

View File

@ -1,6 +1,6 @@
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _to_array from "@swc/helpers/src/_to_array.mjs";
var SymbolIterator = function() {
var ref = _to_array(new (function() {
"use strict";
function SymbolIterator() {
_class_call_check(this, SymbolIterator);
@ -14,5 +14,5 @@ var SymbolIterator = function() {
}, _proto[Symbol.iterator] = function() {
return this;
}, SymbolIterator;
}(), ref = _to_array(new SymbolIterator);
}()));
ref[0], ref.slice(1);

View File

@ -15,15 +15,15 @@ export var c = function c() {
};
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
try {
for(var _step, _loop = function() {
for(var _step, _iterator = [
"resizeTo",
"resizeBy"
][Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)!function() {
var action = _step.value;
window[action] = function(x, y) {
window[action](x, y);
};
}, _iterator = [
"resizeTo",
"resizeBy"
][Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)_loop();
}();
} catch (err) {
_didIteratorError = !0, _iteratorError = err;
} finally{

View File

@ -21,7 +21,7 @@ var ConcreteBase = function() {
}(), AbstractBase = function AbstractBase() {
"use strict";
_class_call_check(this, AbstractBase);
}, wasConcrete = new (function(_superClass) {
}, DerivedFromConcrete = function(_superClass) {
"use strict";
_inherits(DerivedFromConcrete, _superClass);
var _super = _create_super(DerivedFromConcrete);
@ -29,9 +29,9 @@ var ConcreteBase = function() {
return _class_call_check(this, DerivedFromConcrete), _super.apply(this, arguments);
}
return DerivedFromConcrete;
}(Mixin(ConcreteBase)))();
}(Mixin(ConcreteBase)), wasConcrete = new DerivedFromConcrete();
wasConcrete.baseMethod(), wasConcrete.mixinMethod();
var wasAbstract = new (function(_superClass) {
var DerivedFromAbstract = function(_superClass) {
"use strict";
_inherits(DerivedFromAbstract, _superClass);
var _super = _create_super(DerivedFromAbstract);
@ -39,5 +39,5 @@ var wasAbstract = new (function(_superClass) {
return _class_call_check(this, DerivedFromAbstract), _super.apply(this, arguments);
}
return DerivedFromAbstract.prototype.abstractBaseMethod = function() {}, DerivedFromAbstract;
}(Mixin(AbstractBase)))();
}(Mixin(AbstractBase)), wasAbstract = new DerivedFromAbstract();
wasAbstract.abstractBaseMethod(), wasAbstract.mixinMethod();

View File

@ -6,4 +6,5 @@ module.exports.n = {}, module.exports.n.K = function() {
}
};
import * as s from './mod';
new s.n.K().x, new s.Classic();
var k = new s.n.K();
k.x, new s.Classic();

View File

@ -6,4 +6,5 @@ module.exports.n = {}, module.exports.n.K = function() {
_class_call_check(this, _class), this.p = 1;
};
import * as s from "./mod";
new s.n.K().x, new s.Classic();
var k = new s.n.K();
k.x, new s.Classic();

View File

@ -80,12 +80,12 @@ removable.removed, _object_without_properties(removable, [
var i = removable;
i.removed, _object_without_properties(i, [
"removed"
]);
var computed = "b", computed2 = "a", o = (o[computed], o[computed2], _object_without_properties(o, [
computed,
computed2
].map(_to_property_key)));
]), o.b, o.a;
var o = _object_without_properties(o, [
"b",
"a"
].map(_to_property_key));
o = _object_without_properties(_o = o, [
computed,
computed2
].map(_to_property_key)), ref1 = _o, ref1[computed], ref1[computed2];
"b",
"a"
].map(_to_property_key)), ref1 = _o, ref1.b, ref1.a;

View File

@ -1,6 +1,6 @@
var list = [], _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
try {
for(var _step, _loop = function() {
for(var _step, _iterator = [][Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)!function() {
var comp = _step.value;
comp.sp.y = comp.sp.r.find(function(k) {
return k.c == (comp.xp ? "1" : "0");
@ -20,7 +20,7 @@ try {
if (_didIteratorError) throw _iteratorError;
}
}
}, _iterator = list[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)_loop();
}();
} catch (err) {
_didIteratorError = !0, _iteratorError = err;
} finally{

View File

@ -34,15 +34,15 @@ export default function s(e) {
};
}, c = function(n, e) {
return function(u) {
var c, f, l = _(1900, void 0, 1);
if (o(l, n, u += "", 0) != u.length) return null;
if ("Q" in l) return new Date(l.Q);
if ("s" in l) return new Date(1000 * l.s + ("L" in l ? l.L : 0));
if (!e || "Z" in l || (l.Z = 0), "p" in l && (l.H = l.H % 12 + 12 * l.p), void 0 === l.m && (l.m = "q" in l ? l.q : 0), "V" in l) {
if (l.V < 1 || l.V > 53) return null;
"w" in l || (l.w = 1), "Z" in l ? (c = (f = (c = g(_(l.y, 0, 1))).getUTCDay()) > 4 || 0 === f ? $.ceil(c) : $(c), c = i.offset(c, (l.V - 1) * 7), l.y = c.getUTCFullYear(), l.m = c.getUTCMonth(), l.d = c.getUTCDate() + (l.w + 6) % 7) : (c = (f = (c = a(_(l.y, 0, 1))).getDay()) > 4 || 0 === f ? r.ceil(c) : r(c), c = t.offset(c, (l.V - 1) * 7), l.y = c.getFullYear(), l.m = c.getMonth(), l.d = c.getDate() + (l.w + 6) % 7);
} else ("W" in l || "U" in l) && ("w" in l || (l.w = "u" in l ? l.u % 7 : "W" in l ? 1 : 0), f = "Z" in l ? g(_(l.y, 0, 1)).getUTCDay() : a(_(l.y, 0, 1)).getDay(), l.m = 0, l.d = "W" in l ? (l.w + 6) % 7 + 7 * l.W - (f + 5) % 7 : l.w + 7 * l.U - (f + 6) % 7);
return "Z" in l ? (l.H += l.Z / 100 | 0, l.M += l.Z % 100, g(l)) : a(l);
var c, f, l, s = _(1900, void 0, 1);
if (o(s, n, u += "", 0) != u.length) return null;
if ("Q" in s) return new Date(s.Q);
if ("s" in s) return new Date(1000 * s.s + ("L" in s ? s.L : 0));
if (!e || "Z" in s || (s.Z = 0), "p" in s && (s.H = s.H % 12 + 12 * s.p), void 0 === s.m && (s.m = "q" in s ? s.q : 0), "V" in s) {
if (s.V < 1 || s.V > 53) return null;
"w" in s || (s.w = 1), "Z" in s ? (c = (f = (c = g(_(s.y, 0, 1))).getUTCDay()) > 4 || 0 === f ? $.ceil(c) : $(c), c = i.offset(c, (s.V - 1) * 7), s.y = c.getUTCFullYear(), s.m = c.getUTCMonth(), s.d = c.getUTCDate() + (s.w + 6) % 7) : (c = (f = (c = a(_(s.y, 0, 1))).getDay()) > 4 || 0 === f ? r.ceil(c) : r(c), c = t.offset(c, (s.V - 1) * 7), s.y = c.getFullYear(), s.m = c.getMonth(), s.d = c.getDate() + (s.w + 6) % 7);
} else ("W" in s || "U" in s) && ("w" in s || (s.w = "u" in s ? s.u % 7 : "W" in s ? 1 : 0), f = "Z" in s ? g(_(s.y, 0, 1)).getUTCDay() : a(_(s.y, 0, 1)).getDay(), s.m = 0, s.d = "W" in s ? (s.w + 6) % 7 + 7 * s.W - (f + 5) % 7 : s.w + 7 * s.U - (f + 6) % 7);
return "Z" in s ? (s.H += s.Z / 100 | 0, s.M += s.Z % 100, g(s)) : a(s);
};
}, o = function(n, t, e, r) {
for(var u, c, i = 0, o = t.length, $ = e.length; i < o;){
@ -378,14 +378,14 @@ function nu(n, t) {
return U(n.getFullYear() % 100, t, 2);
}
function nc(n, t) {
return U((n = nn(n)).getFullYear() % 100, t, 2);
return n = nn(n), U(n.getFullYear() % 100, t, 2);
}
function ni(n, t) {
return U(n.getFullYear() % 10000, t, 4);
}
function no(n, t) {
var e = n.getDay();
return U((n = e >= 4 || 0 === e ? u(n) : u.ceil(n)).getFullYear() % 10000, t, 4);
return n = e >= 4 || 0 === e ? u(n) : u.ceil(n), U(n.getFullYear() % 10000, t, 4);
}
function n$(n) {
var t = n.getTimezoneOffset();
@ -442,14 +442,14 @@ function nx(n, t) {
return U(n.getUTCFullYear() % 100, t, 2);
}
function nw(n, t) {
return U((n = nU(n)).getUTCFullYear() % 100, t, 2);
return n = nU(n), U(n.getUTCFullYear() % 100, t, 2);
}
function nM(n, t) {
return U(n.getUTCFullYear() % 10000, t, 4);
}
function nD(n, t) {
var e = n.getUTCDay();
return U((n = e >= 4 || 0 === e ? f(n) : f.ceil(n)).getUTCFullYear() % 10000, t, 4);
return n = e >= 4 || 0 === e ? f(n) : f.ceil(n), U(n.getUTCFullYear() % 10000, t, 4);
}
function np() {
return "+0000";

View File

@ -119,9 +119,9 @@ var ItemsList = function(_Component) {
if (!_instanceof(instance, Constructor)) throw TypeError("Cannot call a class as a function");
}(this, ItemsList);
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
return _this = _super.call.apply(_super, [
return _defineProperty(_assertThisInitialized(_this = _super.call.apply(_super, [
this
].concat(args)), _defineProperty(_assertThisInitialized(_this), "storeHighlightedItemReference", function(highlightedItem) {
].concat(args))), "storeHighlightedItemReference", function(highlightedItem) {
_this.props.onHighlightedItemChange(null === highlightedItem ? null : highlightedItem.item);
}), _this;
}

View File

@ -4,6 +4,6 @@ import { useRouter as o } from "next/router";
import { useProject as m } from "@swr/use-project";
import a from "@swr/use-team";
export default function u() {
var e = o().query.project, u = m(e).data;
return a().teamSlug, useProjectBranches(null == u ? void 0 : u.id).data, r(t, {});
var e = o().query, u = m(e.project), i = u.data;
return a().teamSlug, useProjectBranches(null == i ? void 0 : i.id).data, r(t, {});
};

View File

@ -119,7 +119,7 @@ export default function S(u) {
}, C = function() {
if (!z) {
var e;
z = setTimeout(function() {
z = e = setTimeout(function() {
var e = K.getState(), n = (e.resultsFacetValues, a(e, [
"resultsFacetValues"
]));
@ -285,7 +285,7 @@ export default function S(u) {
b(e, a);
}
}(S, x);
var K = (U = O = {
var K = (O = {
widgets: void 0 === l ? {} : l,
metadata: v(x),
results: (k = x) ? Array.isArray(k.results) ? k.results.reduce(function(a, n) {
@ -295,7 +295,7 @@ export default function S(u) {
searching: !1,
isSearchStalled: !0,
searchingForFacetValues: !1
}, B = [], {
}, U = O, B = [], {
getState: function() {
return U;
},

View File

@ -61,7 +61,7 @@ fn main() {
let output = output.fold_with(&mut fixer(None));
let code = print(cm, &[output], true);
let code = print(cm, &[output], false);
fs::write("output.js", code.as_bytes()).expect("failed to write output");

View File

@ -4,6 +4,6 @@ set -eu
export RUST_LOG=trace
export SWC_CHECK=1
# export SWC_CHECK=1
cargo test --test terser_exec --features debug $@
cargo nextest run --features concurrent --features debug --test exec --test terser_exec

View File

@ -13,8 +13,7 @@ use crate::marks::Marks;
mod ctx;
pub(crate) struct AliasConfig {
#[allow(unused)]
pub marks: Marks,
pub marks: Option<Marks>,
}
pub(crate) fn collect_infects_from<N>(node: &N, config: AliasConfig) -> FxHashSet<Id>
@ -22,7 +21,9 @@ where
N: for<'aa> VisitWith<InfectionCollector<'aa>>,
N: VisitWith<BindingCollector<Id>>,
{
let unresolved_ctxt = SyntaxContext::empty().apply_mark(config.marks.unresolved_mark);
let unresolved_ctxt = config
.marks
.map(|m| SyntaxContext::empty().apply_mark(m.unresolved_mark));
let decls = collect_decls(node);
let mut visitor = InfectionCollector {
@ -30,7 +31,10 @@ where
unresolved_ctxt,
exclude: &decls,
ctx: Default::default(),
ctx: Ctx {
track_expr_ident: true,
..Default::default()
},
aliases: FxHashSet::default(),
};
@ -42,7 +46,7 @@ where
pub(crate) struct InfectionCollector<'a> {
#[allow(unused)]
config: AliasConfig,
unresolved_ctxt: SyntaxContext,
unresolved_ctxt: Option<SyntaxContext>,
exclude: &'a AHashSet<Id>,
@ -57,7 +61,7 @@ impl InfectionCollector<'_> {
return;
}
if self.unresolved_ctxt == e.1 {
if self.unresolved_ctxt == Some(e.1) {
match e.0 {
js_word!("String")
| js_word!("Object")
@ -135,6 +139,10 @@ impl Visit for InfectionCollector<'_> {
}
}
fn visit_ident(&mut self, n: &Ident) {
self.add_id(&n.to_id());
}
fn visit_expr(&mut self, e: &Expr) {
match e {
Expr::Ident(i) => {
@ -215,4 +223,10 @@ impl Visit for InfectionCollector<'_> {
};
e.arg.visit_with(&mut *self.with_ctx(ctx));
}
fn visit_prop_name(&mut self, n: &PropName) {
if let PropName::Computed(c) = &n {
c.visit_with(self);
}
}
}

View File

@ -3,9 +3,12 @@ use std::{collections::HashSet, hash::BuildHasherDefault};
use indexmap::IndexSet;
use rustc_hash::{FxHashMap, FxHashSet, FxHasher};
use swc_atoms::{js_word, JsWord};
use swc_common::{collections::AHashSet, SyntaxContext};
use swc_common::{
collections::{AHashMap, AHashSet},
SyntaxContext,
};
use swc_ecma_ast::*;
use swc_ecma_utils::{collect_decls, find_pat_ids, ident::IdentLike, BindingCollector, IsEmpty};
use swc_ecma_utils::{find_pat_ids, ident::IdentLike, IsEmpty};
use swc_ecma_visit::{noop_visit_type, Visit, VisitWith};
use swc_timer::timer;
@ -14,8 +17,9 @@ use self::{
storage::{Storage, *},
};
use crate::{
alias::{collect_infects_from, AliasConfig},
marks::Marks,
util::{can_end_conditionally, idents_used_by, IdentUsageCollector},
util::can_end_conditionally,
};
mod ctx;
@ -26,7 +30,16 @@ struct TestSnapshot {
vars: Vec<(Id, VarUsageInfo)>,
}
pub(crate) fn analyze<N>(n: &N, marks: Option<Marks>) -> ProgramData
#[derive(Debug, Default)]
pub(crate) struct ModuleInfo {
/// Imported identifiers which should be treated as a black box.
///
/// Imports from `@swc/helpers` are excluded as helpers are not modified by
/// accessing/calling other modules.
pub blackbox_imports: AHashSet<Id>,
}
pub(crate) fn analyze<N>(n: &N, _module_info: &ModuleInfo, marks: Option<Marks>) -> ProgramData
where
N: VisitWith<UsageAnalyzer>,
{
@ -96,7 +109,7 @@ pub(crate) struct VarUsageInfo {
pub has_property_access: bool,
pub has_property_mutation: bool,
pub accessed_props: AHashSet<JsWord>,
pub accessed_props: AHashMap<JsWord, usize>,
pub exported: bool,
/// True if used **above** the declaration. (Not eval order).
@ -171,6 +184,7 @@ pub(crate) struct ProgramData {
impl ProgramData {
pub(crate) fn expand_infected(
&self,
module_info: &ModuleInfo,
ids: FxHashSet<Id>,
max_num: usize,
) -> Result<FxHashSet<Id>, ()> {
@ -184,6 +198,11 @@ impl ProgramData {
let range = ranges.remove(0);
for index in range {
let iid = ids.get(index).unwrap();
// Abort on imported variables, because we can't analyze them
if module_info.blackbox_imports.contains(iid) {
return Err(());
}
if !res.insert(iid.clone()) {
continue;
}
@ -703,7 +722,7 @@ where
self.used_recursively.remove(&id);
{
for id in get_infects_of(&n.function) {
for id in collect_infects_from(&n.function, AliasConfig { marks: self.marks }) {
self.data
.var_or_default(n.ident.to_id())
.add_infects_to(id.clone());
@ -721,7 +740,7 @@ where
.mark_declared_as_fn_expr();
{
for id in get_infects_of(&n.function) {
for id in collect_infects_from(&n.function, AliasConfig { marks: self.marks }) {
self.data
.var_or_default(n_id.to_id())
.add_infects_to(id.to_id());
@ -1081,12 +1100,8 @@ where
for decl in &n.decls {
if let (Pat::Ident(var), Some(init)) = (&decl.name, decl.init.as_deref()) {
for id in get_infects_of(init) {
self.data
.var_or_default(id.clone())
.add_infects_to(var.to_id());
self.data.var_or_default(var.to_id()).add_infects_to(id);
for id in collect_infects_from(init, AliasConfig { marks: self.marks }) {
self.data.var_or_default(id).add_infects_to(var.to_id());
}
}
}
@ -1180,24 +1195,12 @@ fn is_safe_to_access_prop(e: &Expr) -> bool {
}
}
fn get_infects_of<N>(init: &N) -> impl 'static + Iterator<Item = Id>
where
N: VisitWith<IdentUsageCollector> + VisitWith<BindingCollector<Id>>,
{
let used_idents = idents_used_by(init);
let excluded: AHashSet<Id> = collect_decls(init);
used_idents
.into_iter()
.filter(move |id| !excluded.contains(id))
}
/// This is **NOT** a public api.
#[doc(hidden)]
pub fn dump_snapshot(program: &Module) -> String {
let marks = Marks::new();
let data = analyze(program, Some(marks));
let data = analyze(program, &Default::default(), Some(marks));
// Iteration order of hashmap is not deterministic
let mut snapshot = TestSnapshot {

View File

@ -273,7 +273,7 @@ impl VarDataLike for VarUsageInfo {
}
fn add_accessed_property(&mut self, name: swc_atoms::JsWord) {
self.accessed_props.insert(name);
*self.accessed_props.entry(name).or_default() += 1;
}
fn mark_mutated(&mut self) {

View File

@ -28,7 +28,7 @@ use tracing::{debug, error};
pub(crate) use self::pure::{pure_optimizer, PureOptimizerConfig};
use self::{hoist_decls::DeclHoisterConfig, optimize::optimizer};
use crate::{
analyzer::{analyze, UsageAnalyzer},
analyzer::{analyze, ModuleInfo, UsageAnalyzer},
compress::hoist_decls::decl_hoister,
debug::{dump, AssertValid},
marks::Marks,
@ -46,6 +46,7 @@ mod util;
pub(crate) fn compressor<'a, M>(
globals: &'a Globals,
module_info: &'a ModuleInfo,
marks: Marks,
options: &'a CompressOptions,
mode: &'a M,
@ -57,11 +58,12 @@ where
globals,
marks,
options,
module_info,
changed: false,
pass: 1,
left_parallel_depth: 0,
mode,
dump_for_infinite_loop: Default::default(),
mode,
};
chain!(
@ -83,6 +85,7 @@ where
globals: &'a Globals,
marks: Marks,
options: &'a CompressOptions,
module_info: &'a ModuleInfo,
changed: bool,
pass: usize,
/// `0` means we should not create more threads.
@ -144,11 +147,12 @@ where
globals: self.globals,
marks: self.marks,
options: self.options,
module_info: self.module_info,
changed: false,
pass: self.pass,
left_parallel_depth: 0,
mode: self.mode,
dump_for_infinite_loop: Default::default(),
mode: self.mode,
};
node.visit_mut_with(&mut v);
@ -164,11 +168,12 @@ where
globals: self.globals,
marks: self.marks,
options: self.options,
module_info: self.module_info,
changed: false,
pass: self.pass,
left_parallel_depth: self.left_parallel_depth - 1,
mode: self.mode,
dump_for_infinite_loop: Default::default(),
mode: self.mode,
};
node.visit_mut_with(&mut v);
@ -186,6 +191,7 @@ where
globals: self.globals,
marks: self.marks,
options: self.options,
module_info: self.module_info,
changed: false,
pass: self.pass,
left_parallel_depth: self.left_parallel_depth - 1,
@ -218,7 +224,7 @@ where
);
{
let data = analyze(&*n, Some(self.marks));
let data = analyze(&*n, self.module_info, Some(self.marks));
let mut v = decl_hoister(
DeclHoisterConfig {
@ -377,7 +383,7 @@ where
{
let _timer = timer!("apply full optimizer");
let mut data = analyze(&*n, Some(self.marks));
let mut data = analyze(&*n, self.module_info, Some(self.marks));
// TODO: reset_opt_flags
//
@ -386,6 +392,7 @@ where
let mut visitor = optimizer(
self.marks,
self.options,
self.module_info,
&mut data,
self.mode,
!self.dump_for_infinite_loop.is_empty(),

View File

@ -26,7 +26,7 @@ use super::util::{drop_invalid_stmts, is_fine_for_if_cons};
#[cfg(feature = "debug")]
use crate::debug::dump;
use crate::{
analyzer::{ProgramData, UsageAnalyzer},
analyzer::{ModuleInfo, ProgramData, UsageAnalyzer},
compress::util::is_pure_undefined,
debug::AssertValid,
marks::Marks,
@ -62,6 +62,7 @@ mod util;
pub(super) fn optimizer<'a, M>(
marks: Marks,
options: &'a CompressOptions,
module_info: &'a ModuleInfo,
data: &'a mut ProgramData,
mode: &'a M,
debug_infinite_loop: bool,
@ -82,6 +83,7 @@ where
},
changed: false,
options,
module_info,
prepend_stmts: Default::default(),
append_stmts: Default::default(),
vars: Default::default(),
@ -200,6 +202,7 @@ struct Optimizer<'a, M> {
changed: bool,
options: &'a CompressOptions,
module_info: &'a ModuleInfo,
/// Statements prepended to the current statement.
prepend_stmts: SynthesizedStmts,

View File

@ -73,10 +73,14 @@ where
match &p.key {
PropName::Str(s) => {
unknown_used_props.remove(&s.value);
if let Some(v) = unknown_used_props.get_mut(&s.value) {
*v -= 1;
}
}
PropName::Ident(i) => {
unknown_used_props.remove(&i.sym);
if let Some(v) = unknown_used_props.get_mut(&i.sym) {
*v -= 1;
}
}
_ => {}
}
@ -84,7 +88,7 @@ where
}
}
if !unknown_used_props.is_empty() {
if !unknown_used_props.iter().all(|(_, v)| *v == 0) {
log_abort!("[x] unknown used props: {:?}", unknown_used_props);
return;
}

View File

@ -973,7 +973,12 @@ where
//
let ids_used_by_a_init = match a {
Mergable::Var(a) => a.init.as_ref().map(|init| {
collect_infects_from(init, AliasConfig { marks: self.marks })
collect_infects_from(
init,
AliasConfig {
marks: Some(self.marks),
},
)
}),
Mergable::Expr(a) => match a {
Expr::Assign(AssignExpr {
@ -985,7 +990,9 @@ where
if left.as_ident().is_some() {
Some(collect_infects_from(
right,
AliasConfig { marks: self.marks },
AliasConfig {
marks: Some(self.marks),
},
))
} else {
None
@ -997,7 +1004,9 @@ where
};
if let Some(ids_used_by_a_init) = ids_used_by_a_init {
let deps = self.data.expand_infected(ids_used_by_a_init, 64);
let deps =
self.data
.expand_infected(self.module_info, ids_used_by_a_init, 64);
let deps = match deps {
Ok(v) => v,
@ -1081,6 +1090,10 @@ where
}
}
if !self.is_skippable_for_seq(a, &Expr::Ident(left_id.clone())) {
return false;
}
if let Expr::Lit(..) = &*e.right {
return true;
}
@ -1883,6 +1896,11 @@ where
// rand should not be inlined because of `index`.
let deps = idents_used_by_ignoring_nested(&*a_right);
let deps = self.data.expand_infected(self.module_info, deps, 64);
let deps = match deps {
Ok(v) => v,
Err(_) => return Ok(false),
};
let used_by_b = idents_used_by(&*b);

View File

@ -77,6 +77,8 @@ pub(crate) fn invoke(module: &Module) {
module.visit_with(&mut AssertValid);
}
let _noop_sub = tracing::subscriber::set_default(tracing::subscriber::NoSubscriber::default());
let should_run =
cfg!(debug_assertions) && cfg!(feature = "debug") && option_env!("SWC_RUN") == Some("1");
let should_check = cfg!(debug_assertions) && option_env!("SWC_CHECK") == Some("1");

View File

@ -78,6 +78,7 @@ impl Evaluator {
swc_common::GLOBALS.with(|globals| {
self.module.visit_mut_with(&mut compressor(
globals,
&Default::default(),
marks,
&serde_json::from_str("{ \"hoist_props\": true }").unwrap(),
&data,

View File

@ -23,28 +23,27 @@
#![allow(unstable_name_collisions)]
#![allow(clippy::match_like_matches_macro)]
use compress::{pure_optimizer, PureOptimizerConfig};
use mode::Mode;
use once_cell::sync::Lazy;
use swc_common::{comments::Comments, pass::Repeat, sync::Lrc, SourceMap, GLOBALS};
use swc_ecma_ast::Program;
use swc_ecma_ast::*;
use swc_ecma_visit::VisitMutWith;
use swc_timer::timer;
use timing::Timings;
pub use self::analyzer::dump_snapshot;
pub use crate::pass::unique_scope::unique_scope;
use crate::{
compress::compressor,
analyzer::ModuleInfo,
compress::{compressor, pure_optimizer, PureOptimizerConfig},
marks::Marks,
metadata::info_marker,
mode::Minification,
mode::{Minification, Mode},
option::{ExtraOptions, MinifyOptions},
pass::{
expand_names::name_expander, global_defs, mangle_names::name_mangler,
mangle_props::mangle_properties, merge_exports::merge_exports,
postcompress::postcompress_optimizer, precompress::precompress_optimizer,
},
timing::Timings,
};
#[macro_use]
@ -100,10 +99,50 @@ pub fn optimize(
}
}
let module_info = match &m {
Program::Script(_) => ModuleInfo::default(),
Program::Module(m) => ModuleInfo {
blackbox_imports: m
.body
.iter()
.filter_map(|v| v.as_module_decl())
.filter_map(|v| match v {
ModuleDecl::Import(i) => Some(i),
_ => None,
})
.filter(|i| !i.src.value.starts_with("@swc/helpers"))
.flat_map(|v| v.specifiers.iter())
.map(|v| match v {
ImportSpecifier::Named(v) => v.local.to_id(),
ImportSpecifier::Default(v) => v.local.to_id(),
ImportSpecifier::Namespace(v) => v.local.to_id(),
})
.collect(),
// exports: m
// .body
// .iter()
// .filter_map(|v| v.as_module_decl())
// .filter_map(|v| match v {
// ModuleDecl::ExportNamed(i) if i.src.is_none() => Some(i),
// _ => None,
// })
// .flat_map(|v| v.specifiers.iter())
// .filter_map(|v| match v {
// ExportSpecifier::Named(v) => Some(v),
// _ => None,
// })
// .filter_map(|v| match &v.orig {
// ModuleExportName::Ident(i) => Some(i.to_id()),
// ModuleExportName::Str(_) => None,
// })
// .collect(),
},
};
if let Some(options) = &options.compress {
let _timer = timer!("precompress");
m.visit_mut_with(&mut precompress_optimizer(options, marks));
m.visit_mut_with(&mut precompress_optimizer(&module_info, options, marks));
}
if options.compress.is_some() {
@ -148,7 +187,13 @@ pub fn optimize(
let _timer = timer!("compress ast");
GLOBALS.with(|globals| {
m.visit_mut_with(&mut compressor(globals, marks, options, &Minification))
m.visit_mut_with(&mut compressor(
globals,
&module_info,
marks,
options,
&Minification,
))
});
}
@ -189,7 +234,7 @@ pub fn optimize(
}
if let Some(property_mangle_options) = options.mangle.as_ref().and_then(|o| o.props.as_ref()) {
mangle_properties(&mut m, property_mangle_options.clone());
mangle_properties(&mut m, &module_info, property_mangle_options.clone());
}
m.visit_mut_with(&mut merge_exports());

View File

@ -10,7 +10,7 @@ use swc_ecma_ast::{
use swc_ecma_visit::{noop_visit_mut_type, VisitMut, VisitMutWith};
use crate::{
analyzer::{analyze, ProgramData},
analyzer::{analyze, ModuleInfo, ProgramData},
option::ManglePropertiesOptions,
util::base54,
};
@ -96,13 +96,17 @@ impl ManglePropertiesState {
}
}
pub(crate) fn mangle_properties(m: &mut Program, options: ManglePropertiesOptions) {
pub(crate) fn mangle_properties(
m: &mut Program,
module_info: &ModuleInfo,
options: ManglePropertiesOptions,
) {
let mut state = ManglePropertiesState {
options,
..Default::default()
};
let data = analyze(&*m, None);
let data = analyze(&*m, module_info, None);
m.visit_mut_with(&mut PropertyCollector {
state: &mut state,
data,

View File

@ -4,7 +4,7 @@ use swc_ecma_ast::*;
use swc_ecma_visit::{noop_visit_mut_type, VisitMut, VisitMutWith, VisitWith};
use crate::{
analyzer::{analyze, ProgramData, UsageAnalyzer},
analyzer::{analyze, ModuleInfo, ProgramData, UsageAnalyzer},
marks::Marks,
maybe_par,
option::CompressOptions,
@ -14,9 +14,14 @@ use crate::{
/// Optimizer invoked before invoking compressor.
///
/// - Remove parens.
pub(crate) fn precompress_optimizer(options: &CompressOptions, marks: Marks) -> impl '_ + VisitMut {
pub(crate) fn precompress_optimizer<'a>(
module_info: &'a ModuleInfo,
options: &'a CompressOptions,
marks: Marks,
) -> impl 'a + VisitMut {
PrecompressOptimizer {
options,
module_info,
marks,
data: Default::default(),
ctx: Default::default(),
@ -26,6 +31,8 @@ pub(crate) fn precompress_optimizer(options: &CompressOptions, marks: Marks) ->
#[derive(Debug)]
pub(crate) struct PrecompressOptimizer<'a> {
options: &'a CompressOptions,
module_info: &'a ModuleInfo,
marks: Marks,
data: Option<ProgramData>,
@ -57,10 +64,11 @@ impl PrecompressOptimizer<'_> {
);
if has_decl {
let data = Some(analyze(&*stmts, Some(self.marks)));
let data = Some(analyze(&*stmts, self.module_info, Some(self.marks)));
stmts.visit_mut_children_with(&mut PrecompressOptimizer {
options: self.options,
module_info: self.module_info,
marks: self.marks,
data,
ctx: self.ctx,
@ -70,6 +78,7 @@ impl PrecompressOptimizer<'_> {
stmts.iter_mut().for_each(|stmt| {
stmt.visit_mut_with(&mut PrecompressOptimizer {
options: self.options,
module_info: self.module_info,
marks: self.marks,
data: None,
ctx: self.ctx,

View File

@ -48,6 +48,9 @@ impl CompileUnit for Module {
}
fn force_dump(&self) -> String {
let _noop_sub =
tracing::subscriber::set_default(tracing::subscriber::NoSubscriber::default());
dump(
&self
.clone()
@ -80,6 +83,9 @@ impl CompileUnit for FnExpr {
}
fn force_dump(&self) -> String {
let _noop_sub =
tracing::subscriber::set_default(tracing::subscriber::NoSubscriber::default());
dump(
&self
.clone()

View File

@ -6,6 +6,7 @@ drop_unused/reassign_const/input.js
evaluate/issue_2535_1/input.js
harmony/array_literal_with_spread_4a/input.js
harmony/issue_2794_3/input.js
hoist_props/contains_this_1/input.js
hoist_props/issue_2377_2/input.js
nullish/conditional_to_nullish_coalescing_2/input.js
properties/dot_properties/input.js

View File

@ -2317,6 +2317,7 @@ o.f(o.a);"###;
}
#[test]
#[ignore = "Function anonymous"]
fn terser_hoist_props_issue_2508_5() {
let src = r###"var o = {
f: function (x) {
@ -2593,6 +2594,7 @@ console.log(obj.foo, obj.cube(3));"###;
}
#[test]
#[ignore = "Function anoymous"]
fn terser_hoist_props_issue_2508_6() {
let src = r###"var o = {
f: (x) => {

View File

@ -311,10 +311,7 @@
var tmp = appConfig.request, requestConfig = void 0 === tmp ? {} : tmp;
"[object Array]" === Object.prototype.toString.call(requestConfig) ? requestConfig.forEach(function(requestItem) {
var instanceName = requestItem.instanceName ? requestItem.instanceName : "default";
if (instanceName) {
var axiosInstance = _createAxiosInstance.default(instanceName)[instanceName];
setAxiosInstance(requestItem, axiosInstance);
}
instanceName && setAxiosInstance(requestItem, _createAxiosInstance.default(instanceName)[instanceName]);
}) : setAxiosInstance(requestConfig, _createAxiosInstance.default().default);
}
};
@ -752,13 +749,13 @@
var _ref$defaultResolveCo = _ref.defaultResolveComponent, defaultResolveComponent = void 0 === _ref$defaultResolveCo ? identity : _ref$defaultResolveCo, _render = _ref.render, onLoad = _ref.onLoad;
function loadable(loadableConstructor, options) {
void 0 === options && (options = {});
var ctor, ctor1 = "function" == typeof (ctor = loadableConstructor) ? {
requireAsync: ctor,
var ctor = "function" == typeof (ctor1 = loadableConstructor) ? {
requireAsync: ctor1,
resolve: function() {},
chunkName: function() {}
} : ctor, cache = {};
} : ctor1, cache = {};
function _getCacheKey(props) {
return options.cacheKey ? options.cacheKey(props) : ctor1.resolve ? ctor1.resolve(props) : "static";
return options.cacheKey ? options.cacheKey(props) : ctor.resolve ? ctor.resolve(props) : "static";
}
function resolve(module, props, Loadable) {
var Component = options.resolveComponent ? options.resolveComponent(module, props) : defaultResolveComponent(module);
@ -767,7 +764,7 @@
preload: !0
}), Component;
}
var InnerLoadable = function(_React$Component) {
var ctor1, EnhancedInnerLoadable = withChunkExtractor(function(_React$Component) {
function InnerLoadable(props) {
var _this;
return ((_this = _React$Component.call(this, props) || this).state = {
@ -775,12 +772,12 @@
error: null,
loading: !0,
cacheKey: _getCacheKey(props)
}, invariant(!props.__chunkExtractor || ctor1.requireSync, "SSR requires `@loadable/babel-plugin`, please install it"), props.__chunkExtractor) ? (!1 === options.ssr || (ctor1.requireAsync(props).catch(function() {
}, invariant(!props.__chunkExtractor || ctor.requireSync, "SSR requires `@loadable/babel-plugin`, please install it"), props.__chunkExtractor) ? (!1 === options.ssr || (ctor.requireAsync(props).catch(function() {
return null;
}), _this.loadSync(), props.__chunkExtractor.addChunk(ctor1.chunkName(props))), function(self1) {
}), _this.loadSync(), props.__chunkExtractor.addChunk(ctor.chunkName(props))), function(self1) {
if (void 0 === self1) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
return self1;
}(_this)) : (!1 !== options.ssr && (ctor1.isReady && ctor1.isReady(props) || ctor1.chunkName && LOADABLE_SHARED.initialChunks[ctor1.chunkName(props)]) && _this.loadSync(), _this);
}(_this)) : (!1 !== options.ssr && (ctor.isReady && ctor.isReady(props) || ctor.chunkName && LOADABLE_SHARED.initialChunks[ctor.chunkName(props)]) && _this.loadSync(), _this);
}
(0, inheritsLoose.Z)(InnerLoadable, _React$Component), InnerLoadable.getDerivedStateFromProps = function(props, state) {
var cacheKey = _getCacheKey(props);
@ -813,12 +810,12 @@
});
}, _proto.loadSync = function() {
if (this.state.loading) try {
var loadedModule = ctor1.requireSync(this.props), result = resolve(loadedModule, this.props, Loadable);
var loadedModule = ctor.requireSync(this.props), result = resolve(loadedModule, this.props, Loadable);
this.state.result = result, this.state.loading = !1;
} catch (error) {
console.error("loadable-components: failed to synchronously load component, which expected to be available", {
fileName: ctor1.resolve(this.props),
chunkName: ctor1.chunkName(this.props),
fileName: ctor.resolve(this.props),
chunkName: ctor.chunkName(this.props),
error: error ? error.message : error
}), this.state.error = error;
}
@ -845,12 +842,12 @@
"__chunkExtractor",
"forwardedRef"
])), promise = this.getCache();
return promise || ((promise = ctor1.requireAsync(props)).status = STATUS_PENDING, this.setCache(promise), promise.then(function() {
return promise || ((promise = ctor.requireAsync(props)).status = STATUS_PENDING, this.setCache(promise), promise.then(function() {
promise.status = "RESOLVED";
}, function(error) {
console.error("loadable-components: failed to asynchronously load component", {
fileName: ctor1.resolve(_this4.props),
chunkName: ctor1.chunkName(_this4.props),
fileName: ctor.resolve(_this4.props),
chunkName: ctor.chunkName(_this4.props),
error: error ? error.message : error
}), promise.status = STATUS_REJECTED;
})), promise;
@ -872,15 +869,15 @@
})
});
}, InnerLoadable;
}(_react_17_0_2_react.Component), EnhancedInnerLoadable = withChunkExtractor(InnerLoadable), Loadable = _react_17_0_2_react.forwardRef(function(props, ref) {
}(_react_17_0_2_react.Component)), Loadable = _react_17_0_2_react.forwardRef(function(props, ref) {
return _react_17_0_2_react.createElement(EnhancedInnerLoadable, Object.assign({
forwardedRef: ref
}, props));
});
return Loadable.displayName = "Loadable", Loadable.preload = function(props) {
ctor1.requireAsync(props);
ctor.requireAsync(props);
}, Loadable.load = function(props) {
return ctor1.requireAsync(props);
return ctor.requireAsync(props);
}, Loadable;
}
return {
@ -1028,11 +1025,11 @@
function _asyncGeneratorDelegate(inner, awaitWrap) {
var iter = {}, waiting = !1;
function pump(key, value) {
return waiting = !0, value = new Promise(function(resolve) {
resolve(inner[key](value));
}), {
return waiting = !0, {
done: !1,
value: awaitWrap(value)
value: awaitWrap(value = new Promise(function(resolve) {
resolve(inner[key](value));
}))
};
}
return "function" == typeof Symbol && Symbol.iterator && (iter[Symbol.iterator] = function() {
@ -1381,9 +1378,9 @@
var kind = String(obj.kind);
if ("class" !== kind) throw TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "' + kind + '"');
_disallowProperty(obj, "key", "A class descriptor"), _disallowProperty(obj, "placement", "A class descriptor"), _disallowProperty(obj, "descriptor", "A class descriptor"), _disallowProperty(obj, "initializer", "A class descriptor"), _disallowProperty(obj, "extras", "A class descriptor");
var finisher = _optionalCallableProperty(obj, "finisher");
var finisher = _optionalCallableProperty(obj, "finisher"), elements = _toElementDescriptors(obj.elements);
return {
elements: _toElementDescriptors(obj.elements),
elements: elements,
finisher: finisher
};
}
@ -1653,6 +1650,7 @@
function wrapNativeSuper(Class) {
var _cache = "function" == typeof Map ? new Map() : void 0;
return (wrapNativeSuper = function(Class) {
var o, p;
if (null === Class || !_isNativeFunction(Class)) return Class;
if ("function" != typeof Class) throw TypeError("Super expression must either be null or a function");
if (void 0 !== _cache) {
@ -1670,7 +1668,7 @@
writable: !0,
configurable: !0
}
}), setPrototypeOf(Wrapper, Class);
}), o = Wrapper, p = Class, setPrototypeOf(o, p);
})(Class);
}
function _wrapNativeSuper(Class) {
@ -1945,15 +1943,15 @@
var fullPath = buildFullPath(config.baseURL, config.url);
function onloadend() {
if (request) {
var responseHeaders = "getAllResponseHeaders" in request ? parseHeaders(request.getAllResponseHeaders()) : null, response = {
var responseHeaders = "getAllResponseHeaders" in request ? parseHeaders(request.getAllResponseHeaders()) : null;
settle(resolve, reject, {
data: responseType && "text" !== responseType && "json" !== responseType ? request.response : request.responseText,
status: request.status,
statusText: request.statusText,
headers: responseHeaders,
config: config,
request: request
};
settle(resolve, reject, response), request = null;
}), request = null;
}
}
if (request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), !0), request.timeout = config.timeout, "onloadend" in request ? request.onloadend = onloadend : request.onreadystatechange = function() {
@ -2080,7 +2078,7 @@
for(; responseInterceptorChain.length;)promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
return promise;
}, Axios.prototype.getUri = function(config) {
return config = mergeConfig(this.defaults, config), buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, "");
return buildURL((config = mergeConfig(this.defaults, config)).url, config.params, config.paramsSerializer).replace(/^\?/, "");
}, utils.forEach([
"delete",
"get",
@ -2140,8 +2138,7 @@
"use strict";
var enhanceError = __webpack_require__(16488);
module.exports = function(message, config, code, request, response) {
var error = Error(message);
return enhanceError(error, config, code, request, response);
return enhanceError(Error(message), config, code, request, response);
};
},
41388: function(module, __unused_webpack_exports, __webpack_require__) {
@ -4680,7 +4677,7 @@
},
41075: function(module) {
"use strict";
var base = 36, tMin = 1, tMax = 26, regexNonASCII = /[^\0-\u007E]/, regexSeparators = /[.\u3002\uFF0E\uFF61]/g, OVERFLOW_ERROR = "Overflow: input needs wider integers to process", baseMinusTMin = base - tMin, 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) {
@ -4693,8 +4690,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 > baseMinusTMin * tMax >> 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));
@ -4707,10 +4704,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){
var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
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;
@ -4866,7 +4863,7 @@
if (!isObject(input) || isSymbol(input)) return input;
var result, exoticToPrim = getMethod(input, TO_PRIMITIVE);
if (exoticToPrim) {
if (void 0 === pref && (pref = "default"), result = exoticToPrim.call(input, pref), !isObject(result) || isSymbol(result)) return result;
if (void 0 === pref && (pref = "default"), !isObject(result = exoticToPrim.call(input, pref)) || isSymbol(result)) return result;
throw TypeError("Can't convert object to primitive value");
}
return void 0 === pref && (pref = "number"), ordinaryToPrimitive(input, pref);
@ -4916,9 +4913,9 @@
}, isTypedArrayIndex = function(target, key) {
return isTypedArray(target) && !isSymbol(key) && key in target && isInteger(+key) && key >= 0;
}, wrappedGetOwnPropertyDescriptor = function(target, key) {
return key = toPropertyKey(key), isTypedArrayIndex(target, key) ? createPropertyDescriptor(2, target[key]) : nativeGetOwnPropertyDescriptor(target, key);
return isTypedArrayIndex(target, key = toPropertyKey(key)) ? createPropertyDescriptor(2, target[key]) : nativeGetOwnPropertyDescriptor(target, key);
}, wrappedDefineProperty = function(target, key, descriptor) {
return (key = toPropertyKey(key), isTypedArrayIndex(target, key) && isObject(descriptor) && has(descriptor, "value") && !has(descriptor, "get") && !has(descriptor, "set") && !descriptor.configurable && (!has(descriptor, "writable") || descriptor.writable) && (!has(descriptor, "enumerable") || descriptor.enumerable)) ? (target[key] = descriptor.value, target) : nativeDefineProperty(target, key, descriptor);
return isTypedArrayIndex(target, key = toPropertyKey(key)) && isObject(descriptor) && has(descriptor, "value") && !has(descriptor, "get") && !has(descriptor, "set") && !descriptor.configurable && (!has(descriptor, "writable") || descriptor.writable) && (!has(descriptor, "enumerable") || descriptor.enumerable) ? (target[key] = descriptor.value, target) : nativeDefineProperty(target, key, descriptor);
};
DESCRIPTORS ? (NATIVE_ARRAY_BUFFER_VIEWS || (getOwnPropertyDescriptorModule.f = wrappedGetOwnPropertyDescriptor, definePropertyModule.f = wrappedDefineProperty, addGetter(TypedArrayPrototype, "buffer"), addGetter(TypedArrayPrototype, "byteOffset"), addGetter(TypedArrayPrototype, "byteLength"), addGetter(TypedArrayPrototype, "length")), $({
target: "Object",
@ -5813,11 +5810,11 @@
});
},
50241: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
var $ = __webpack_require__(35437), $hypot = Math.hypot, abs = Math.abs, sqrt = Math.sqrt, BUGGY = !!$hypot && $hypot(1 / 0, NaN) !== 1 / 0;
var $ = __webpack_require__(35437), $hypot = Math.hypot, abs = Math.abs, sqrt = Math.sqrt;
$({
target: "Math",
stat: !0,
forced: BUGGY
forced: !!$hypot && $hypot(1 / 0, NaN) !== 1 / 0
}, {
hypot: function(value1, value2) {
for(var arg, div, sum = 0, i = 0, aLen = arguments.length, larg = 0; i < aLen;)arg = abs(arguments[i++]), larg < arg ? (sum = sum * (div = larg / arg) * div + 1, larg = arg) : arg > 0 ? sum += (div = arg / larg) * div : sum += arg;
@ -6915,16 +6912,16 @@
});
},
84450: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
var $ = __webpack_require__(35437), anObject = __webpack_require__(83941), isObject = __webpack_require__(39817), isDataDescriptor = __webpack_require__(69518), fails = __webpack_require__(60232), definePropertyModule = __webpack_require__(94770), getOwnPropertyDescriptorModule = __webpack_require__(24722), getPrototypeOf = __webpack_require__(39311), createPropertyDescriptor = __webpack_require__(93608), MS_EDGE_BUG = fails(function() {
var Constructor = function() {}, object = definePropertyModule.f(new Constructor(), "a", {
configurable: !0
});
return !1 !== Reflect.set(Constructor.prototype, "a", 1, object);
});
var $ = __webpack_require__(35437), anObject = __webpack_require__(83941), isObject = __webpack_require__(39817), isDataDescriptor = __webpack_require__(69518), fails = __webpack_require__(60232), definePropertyModule = __webpack_require__(94770), getOwnPropertyDescriptorModule = __webpack_require__(24722), getPrototypeOf = __webpack_require__(39311), createPropertyDescriptor = __webpack_require__(93608);
$({
target: "Reflect",
stat: !0,
forced: MS_EDGE_BUG
forced: fails(function() {
var Constructor = function() {}, object = definePropertyModule.f(new Constructor(), "a", {
configurable: !0
});
return !1 !== Reflect.set(Constructor.prototype, "a", 1, object);
})
}, {
set: function set(target, propertyKey, V) {
var existingDescriptor, prototype, setter, receiver = arguments.length < 4 ? target : arguments[3], ownDescriptor = getOwnPropertyDescriptorModule.f(anObject(target), propertyKey);
@ -7460,15 +7457,7 @@
},
54878: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
"use strict";
var fixRegExpWellKnownSymbolLogic = __webpack_require__(29045), fails = __webpack_require__(60232), anObject = __webpack_require__(83941), isCallable = __webpack_require__(67106), toInteger = __webpack_require__(86361), toLength = __webpack_require__(31998), toString1 = __webpack_require__(72729), requireObjectCoercible = __webpack_require__(79602), advanceStringIndex = __webpack_require__(88770), getMethod = __webpack_require__(84316), getSubstitution = __webpack_require__(33371), regExpExec = __webpack_require__(21135), wellKnownSymbol = __webpack_require__(81019), REPLACE = wellKnownSymbol("replace"), max = Math.max, min = Math.min, REPLACE_KEEPS_$0 = "$0" === "a".replace(/./, "$0"), REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = !!/./[REPLACE] && "" === /./[REPLACE]("a", "$0"), REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function() {
var re = /./;
return re.exec = function() {
var result = [];
return result.groups = {
a: "7"
}, result;
}, "7" !== "".replace(re, "$<a>");
});
var fixRegExpWellKnownSymbolLogic = __webpack_require__(29045), fails = __webpack_require__(60232), anObject = __webpack_require__(83941), isCallable = __webpack_require__(67106), toInteger = __webpack_require__(86361), toLength = __webpack_require__(31998), toString1 = __webpack_require__(72729), requireObjectCoercible = __webpack_require__(79602), advanceStringIndex = __webpack_require__(88770), getMethod = __webpack_require__(84316), getSubstitution = __webpack_require__(33371), regExpExec = __webpack_require__(21135), wellKnownSymbol = __webpack_require__(81019), REPLACE = wellKnownSymbol("replace"), max = Math.max, min = Math.min, REPLACE_KEEPS_$0 = "$0" === "a".replace(/./, "$0"), REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = !!/./[REPLACE] && "" === /./[REPLACE]("a", "$0");
fixRegExpWellKnownSymbolLogic("replace", function(_, nativeReplace, maybeCallNative) {
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? "$" : "$0";
return [
@ -7509,7 +7498,15 @@
return accumulatedResult + S.slice(nextSourcePosition);
},
];
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
}, !!fails(function() {
var re = /./;
return re.exec = function() {
var result = [];
return result.groups = {
a: "7"
}, result;
}, "7" !== "".replace(re, "$<a>");
}) || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
},
49000: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
"use strict";
@ -7546,14 +7543,7 @@
},
1752: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
"use strict";
var fixRegExpWellKnownSymbolLogic = __webpack_require__(29045), isRegExp = __webpack_require__(78202), anObject = __webpack_require__(83941), requireObjectCoercible = __webpack_require__(79602), speciesConstructor = __webpack_require__(94850), advanceStringIndex = __webpack_require__(88770), toLength = __webpack_require__(31998), toString1 = __webpack_require__(72729), getMethod = __webpack_require__(84316), callRegExpExec = __webpack_require__(21135), regexpExec = __webpack_require__(72384), stickyHelpers = __webpack_require__(44725), fails = __webpack_require__(60232), UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y, arrayPush = [].push, min = Math.min, SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function() {
var re = /(?:)/, originalExec = re.exec;
re.exec = function() {
return originalExec.apply(this, arguments);
};
var result = "ab".split(re);
return 2 !== result.length || "a" !== result[0] || "b" !== result[1];
});
var fixRegExpWellKnownSymbolLogic = __webpack_require__(29045), isRegExp = __webpack_require__(78202), anObject = __webpack_require__(83941), requireObjectCoercible = __webpack_require__(79602), speciesConstructor = __webpack_require__(94850), advanceStringIndex = __webpack_require__(88770), toLength = __webpack_require__(31998), toString1 = __webpack_require__(72729), getMethod = __webpack_require__(84316), callRegExpExec = __webpack_require__(21135), regexpExec = __webpack_require__(72384), stickyHelpers = __webpack_require__(44725), fails = __webpack_require__(60232), UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y, arrayPush = [].push, min = Math.min;
fixRegExpWellKnownSymbolLogic("split", function(SPLIT, nativeSplit, maybeCallNative) {
var internalSplit;
return internalSplit = "c" == "abbc".split(/(b)*/)[1] || 4 != "test".split(/(?:)/, -1).length || 2 != "ab".split(/(?:ab)*/).length || 4 != ".".split(/(.?)(.?)/).length || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(separator, limit) {
@ -7593,7 +7583,14 @@
return A.push(S.slice(p)), A;
},
];
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
}, !!fails(function() {
var re = /(?:)/, originalExec = re.exec;
re.exec = function() {
return originalExec.apply(this, arguments);
};
var result = "ab".split(re);
return 2 !== result.length || "a" !== result[0] || "b" !== result[1];
}), UNSUPPORTED_Y);
},
24467: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
"use strict";
@ -7774,8 +7771,8 @@
})) : (has(O, HIDDEN) || nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {})), O[HIDDEN][key] = !0), setSymbolDescriptor(O, key, Attributes)) : nativeDefineProperty(O, key, Attributes);
}, $defineProperties = function(O, Properties) {
anObject(O);
var properties = toIndexedObject(Properties), keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
return $forEach(keys, function(key) {
var properties = toIndexedObject(Properties);
return $forEach(objectKeys(properties).concat($getOwnPropertySymbols(properties)), function(key) {
(!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) && $defineProperty(O, key, properties[key]);
}), O;
}, $create = function(O, Properties) {
@ -7800,7 +7797,7 @@
has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key)) && result.push(AllSymbols[key]);
}), result;
};
if (NATIVE_SYMBOL || ($Symbol = function() {
if (NATIVE_SYMBOL || (redefine(($Symbol = function() {
if (this instanceof $Symbol) throw TypeError("Symbol is not a constructor");
var description = arguments.length && void 0 !== arguments[0] ? $toString(arguments[0]) : void 0, tag = uid(description), setter = function(value) {
this === ObjectPrototype && setter.call(ObjectPrototypeSymbols, value), has(this, HIDDEN) && has(this[HIDDEN], tag) && (this[HIDDEN][tag] = !1), setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
@ -7809,7 +7806,7 @@
configurable: !0,
set: setter
}), wrap(tag, description);
}, redefine($Symbol[PROTOTYPE], "toString", function() {
})[PROTOTYPE], "toString", function() {
return getInternalState(this).tag;
}), redefine($Symbol, "withoutSetter", function(description) {
return wrap(uid(description), description);
@ -7879,31 +7876,27 @@
getOwnPropertySymbols: function(it) {
return getOwnPropertySymbolsModule.f(toObject(it));
}
}), $stringify) {
var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function() {
}), $stringify && $({
target: "JSON",
stat: !0,
forced: !NATIVE_SYMBOL || fails(function() {
var symbol = $Symbol();
return "[null]" != $stringify([
symbol
]) || "{}" != $stringify({
a: symbol
}) || "{}" != $stringify(Object(symbol));
});
$({
target: "JSON",
stat: !0,
forced: FORCED_JSON_STRINGIFY
}, {
stringify: function(it, replacer, space) {
for(var $replacer, args = [
it
], index = 1; arguments.length > index;)args.push(arguments[index++]);
if ($replacer = replacer, !(!isObject(replacer) && void 0 === it || isSymbol(it))) return isArray(replacer) || (replacer = function(key, value) {
if (isCallable($replacer) && (value = $replacer.call(this, key, value)), !isSymbol(value)) return value;
}), args[1] = replacer, $stringify.apply(null, args);
}
});
}
if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
})
}, {
stringify: function(it, replacer, space) {
for(var $replacer, args = [
it
], index = 1; arguments.length > index;)args.push(arguments[index++]);
if ($replacer = replacer, !(!isObject(replacer) && void 0 === it || isSymbol(it))) return isArray(replacer) || (replacer = function(key, value) {
if (isCallable($replacer) && (value = $replacer.call(this, key, value)), !isSymbol(value)) return value;
}), args[1] = replacer, $stringify.apply(null, args);
}
}), !$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
var valueOf = $Symbol[PROTOTYPE].valueOf;
redefine($Symbol[PROTOTYPE], TO_PRIMITIVE, function() {
return valueOf.apply(this, arguments);
@ -8086,8 +8079,8 @@
},
60222: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
"use strict";
var ArrayBufferViewCore = __webpack_require__(4351), TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = __webpack_require__(10158), aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
(0, ArrayBufferViewCore.exportTypedArrayStaticMethod)("of", function() {
var ArrayBufferViewCore = __webpack_require__(4351), TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = __webpack_require__(10158), aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor, exportTypedArrayStaticMethod = ArrayBufferViewCore.exportTypedArrayStaticMethod;
exportTypedArrayStaticMethod("of", function() {
for(var index = 0, length = arguments.length, result = new (aTypedArrayConstructor(this))(length); length > index;)result[index] = arguments[index++];
return result;
}, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);
@ -8729,7 +8722,7 @@
pathSize && ("file" != url.scheme || 1 != pathSize || !isWindowsDriveLetter(path[0], !0)) && path.pop();
}, SCHEME_START = {}, SCHEME = {}, NO_SCHEME = {}, SPECIAL_RELATIVE_OR_AUTHORITY = {}, PATH_OR_AUTHORITY = {}, RELATIVE = {}, RELATIVE_SLASH = {}, SPECIAL_AUTHORITY_SLASHES = {}, SPECIAL_AUTHORITY_IGNORE_SLASHES = {}, AUTHORITY = {}, HOST = {}, HOSTNAME = {}, PORT = {}, FILE = {}, FILE_SLASH = {}, FILE_HOST = {}, PATH_START = {}, PATH = {}, CANNOT_BE_A_BASE_URL_PATH = {}, QUERY = {}, FRAGMENT = {}, parseURL = function(url, input, stateOverride, base) {
var codePoints, chr, bufferCodePoints, failure, state = stateOverride || SCHEME_START, pointer = 0, buffer = "", seenAt = !1, seenBracket = !1, seenPasswordToken = !1;
for(stateOverride || (url.scheme = "", url.username = "", url.password = "", url.host = null, url.port = null, url.path = [], url.query = null, url.fragment = null, url.cannotBeABaseURL = !1, input = input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, "")), input = input.replace(TAB_AND_NEW_LINE, ""), codePoints = arrayFrom(input); pointer <= codePoints.length;){
for(stateOverride || (url.scheme = "", url.username = "", url.password = "", url.host = null, url.port = null, url.path = [], url.query = null, url.fragment = null, url.cannotBeABaseURL = !1, input = input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, "")), codePoints = arrayFrom(input = input.replace(TAB_AND_NEW_LINE, "")); pointer <= codePoints.length;){
switch(chr = codePoints[pointer], state){
case SCHEME_START:
if (chr && ALPHA.test(chr)) buffer += chr.toLowerCase(), state = SCHEME;
@ -8980,14 +8973,13 @@
};
if (DESCRIPTORS && defineProperties(URLPrototype, {
href: accessorDescriptor(serializeURL, function(href) {
var url = getInternalURLState(this), urlString = $toString(href), failure = parseURL(url, urlString);
var url = getInternalURLState(this), failure = parseURL(url, $toString(href));
if (failure) throw TypeError(failure);
getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);
}),
origin: accessorDescriptor(getOrigin),
protocol: accessorDescriptor(getProtocol, function(protocol) {
var url = getInternalURLState(this);
parseURL(url, $toString(protocol) + ":", SCHEME_START);
parseURL(getInternalURLState(this), $toString(protocol) + ":", SCHEME_START);
}),
username: accessorDescriptor(getUsername, function(username) {
var url = getInternalURLState(this), codePoints = arrayFrom($toString(username));
@ -10170,8 +10162,7 @@
return attachKeys(path, keys);
}(path, keys) : isarray(path) ? function(path, keys, options) {
for(var parts = [], i = 0; i < path.length; i++)parts.push(pathToRegexp(path[i], keys, options).source);
var regexp = RegExp("(?:" + parts.join("|") + ")", flags(options));
return attachKeys(regexp, keys);
return attachKeys(RegExp("(?:" + parts.join("|") + ")", flags(options)), keys);
}(path, keys, options) : (path1 = path, keys1 = keys, tokensToRegExp(parse(path1, options1 = options), keys1, options1));
}
},
@ -10404,12 +10395,12 @@
}
exports.extract = extract, exports.parse = parse, exports.stringify = (object, options)=>{
if (!object) return "";
options = Object.assign({
validateArrayFormatSeparator((options = Object.assign({
encode: !0,
strict: !0,
arrayFormat: "none",
arrayFormatSeparator: ","
}, options), validateArrayFormatSeparator(options.arrayFormatSeparator);
}, options)).arrayFormatSeparator);
const shouldFilter = (key)=>options.skipNull && isNullOrUndefined(object[key]) || options.skipEmptyString && "" === object[key], formatter = function(options) {
switch(options.arrayFormat){
case "index":
@ -11659,7 +11650,7 @@
0 !== k ? (d = Rc(k), e = F) : 0 != (h &= f) && (d = Rc(h), e = F);
} else 0 != (f = c & ~g) ? (d = Rc(f), e = F) : 0 !== h && (d = Rc(h), e = F);
if (0 === d) return 0;
if (d = 31 - Vc(d), d = c & ((0 > d ? 0 : 1 << d) << 1) - 1, 0 !== b && b !== d && 0 == (b & g)) {
if (d = c & ((0 > (d = 31 - Vc(d)) ? 0 : 1 << d) << 1) - 1, 0 !== b && b !== d && 0 == (b & g)) {
if (Rc(b), e <= F) return b;
F = e;
}
@ -11839,21 +11830,21 @@
movementY: function(a) {
return "movementY" in a ? a.movementY : xd;
}
}), Bd = rd(Ad), Cd = m({}, Ad, {
}), Bd = rd(Ad), Dd = rd(m({}, Ad, {
dataTransfer: 0
}), Dd = rd(Cd), Ed = m({}, ud, {
})), Fd = rd(m({}, ud, {
relatedTarget: 0
}), Fd = rd(Ed), Gd = m({}, sd, {
})), Hd = rd(m({}, sd, {
animationName: 0,
elapsedTime: 0,
pseudoElement: 0
}), Hd = rd(Gd), Id = m({}, sd, {
})), Jd = rd(m({}, sd, {
clipboardData: function(a) {
return "clipboardData" in a ? a.clipboardData : window.clipboardData;
}
}), Jd = rd(Id), Kd = m({}, sd, {
})), Ld = rd(m({}, sd, {
data: 0
}), Ld = rd(Kd), Md = {
})), Md = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
@ -11916,7 +11907,7 @@
function zd() {
return Pd;
}
var Qd = m({}, ud, {
var Rd = rd(m({}, ud, {
key: function(a) {
if (a.key) {
var b = Md[a.key] || a.key;
@ -11942,7 +11933,7 @@
which: function(a) {
return "keypress" === a.type ? od(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0;
}
}), Rd = rd(Qd), Sd = m({}, Ad, {
})), Td = rd(m({}, Ad, {
pointerId: 0,
width: 0,
height: 0,
@ -11953,7 +11944,7 @@
twist: 0,
pointerType: 0,
isPrimary: 0
}), Td = rd(Sd), Ud = m({}, ud, {
})), Vd = rd(m({}, ud, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
@ -11962,11 +11953,11 @@
ctrlKey: 0,
shiftKey: 0,
getModifierState: zd
}), Vd = rd(Ud), Wd = m({}, sd, {
})), Xd = rd(m({}, sd, {
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0
}), Xd = rd(Wd), Yd = m({}, Ad, {
})), Zd = rd(m({}, Ad, {
deltaX: function(a) {
return "deltaX" in a ? a.deltaX : "wheelDeltaX" in a ? -a.wheelDeltaX : 0;
},
@ -11975,7 +11966,7 @@
},
deltaZ: 0,
deltaMode: 0
}), Zd = rd(Yd), $d = [
})), $d = [
9,
13,
27,
@ -12032,8 +12023,7 @@
se(a, 0);
}
function te(a) {
var b = ue(a);
if (Wa(b)) return a;
if (Wa(ue(a))) return a;
}
function ve(a, b) {
if ("change" === a) return b;
@ -12705,10 +12695,10 @@
}
}
function gg(a, b) {
return a = fg(a), Nf(a, b);
return Nf(a = fg(a), b);
}
function hg(a, b, c) {
return a = fg(a), Of(a, b, c);
return Of(a = fg(a), b, c);
}
function ig() {
if (null !== bg) {
@ -13123,7 +13113,7 @@
for(; z < h.length; z++)null !== (u = A(e, h[z], k)) && (g = f(u, g, z), null === t ? l = u : t.sibling = u, t = u);
return l;
}
for(u = d(e, u); z < h.length; z++)null !== (q = C(u, e, z, h[z], k)) && (a && null !== q.alternate && u.delete(null === q.key ? z : q.key), g = f(q, g, z), null === t ? l = q : t.sibling = q, t = q);
for(u = d(e, u); z < h.length; z++)q = C(u, e, z, h[z], k), null !== q && (a && null !== q.alternate && u.delete(null === q.key ? z : q.key), g = f(q, g, z), null === t ? l = q : t.sibling = q, t = q);
return a && u.forEach(function(a) {
return b(e, a);
}), l;
@ -13146,7 +13136,7 @@
for(; !n.done; z++, n = h.next())null !== (n = A(e, n.value, k)) && (g = f(n, g, z), null === t ? l = n : t.sibling = n, t = n);
return l;
}
for(u = d(e, u); !n.done; z++, n = h.next())null !== (n = C(u, e, z, n.value, k)) && (a && null !== n.alternate && u.delete(null === n.key ? z : n.key), g = f(n, g, z), null === t ? l = n : t.sibling = n, t = n);
for(u = d(e, u); !n.done; z++, n = h.next())n = C(u, e, z, n.value, k), null !== n && (a && null !== n.alternate && u.delete(null === n.key ? z : n.key), g = f(n, g, z), null === t ? l = n : t.sibling = n, t = n);
return a && u.forEach(function(a) {
return b(e, a);
}), l;
@ -13417,7 +13407,7 @@
p.getSnapshot = c, p.setSnapshot = l;
var a = f(b._source);
if (!He(g, a)) {
a = c(b._source), He(n, a) || (l(a), a = Ig(w), e.mutableReadLanes |= a & e.pendingLanes), a = e.mutableReadLanes, e.entangledLanes |= a;
He(n, a = c(b._source)) || (l(a), a = Ig(w), e.mutableReadLanes |= a & e.pendingLanes), a = e.mutableReadLanes, e.entangledLanes |= a;
for(var d = e.entanglements, h = a; 0 < h;){
var k = 31 - Vc(h), v = 1 << k;
d[k] |= a, h &= ~v;
@ -13451,8 +13441,7 @@
}).dispatch = l = Oh.bind(null, R, a), k.queue = a, k.baseQueue = null, n = Mh(e, b, c), k.memoizedState = k.baseState = n), n;
}
function Ph(a, b, c) {
var d = Ih();
return Nh(d, a, b, c);
return Nh(Ih(), a, b, c);
}
function Qh(a) {
var b = Hh();
@ -13478,10 +13467,9 @@
}, R.updateQueue = b, b.lastEffect = a.next = a) : null === (c = b.lastEffect) ? b.lastEffect = a.next = a : (d = c.next, c.next = a, a.next = d, b.lastEffect = a), a;
}
function Sh(a) {
var b = Hh();
return a = {
current: a
}, b.memoizedState = a;
}, Hh().memoizedState = a;
}
function Th() {
return Ih().memoizedState;
@ -13819,13 +13807,13 @@
var g = b.stateNode, h = b.memoizedProps;
g.props = h;
var k = g.context, l = c.contextType;
"object" == typeof l && null !== l ? l = vg(l) : (l = Ff(c) ? Df : M.current, l = Ef(b, l));
l = "object" == typeof l && null !== l ? vg(l) : Ef(b, l = Ff(c) ? Df : M.current);
var n = c.getDerivedStateFromProps, A = "function" == typeof n || "function" == typeof g.getSnapshotBeforeUpdate;
A || "function" != typeof g.UNSAFE_componentWillReceiveProps && "function" != typeof g.componentWillReceiveProps || (h !== d || k !== l) && Ng(b, g, d, l), wg = !1;
var p = b.memoizedState;
g.state = p, Cg(b, d, g, e), k = b.memoizedState, h !== d || p !== k || N.current || wg ? ("function" == typeof n && (Gg(b, c, n, d), k = b.memoizedState), (h = wg || Lg(b, c, h, d, p, k, l)) ? (A || "function" != typeof g.UNSAFE_componentWillMount && "function" != typeof g.componentWillMount || ("function" == typeof g.componentWillMount && g.componentWillMount(), "function" == typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), "function" == typeof g.componentDidMount && (b.flags |= 4)) : ("function" == typeof g.componentDidMount && (b.flags |= 4), b.memoizedProps = d, b.memoizedState = k), g.props = d, g.state = k, g.context = l, d = h) : ("function" == typeof g.componentDidMount && (b.flags |= 4), d = !1);
} else {
g = b.stateNode, yg(a, b), h = b.memoizedProps, l = b.type === b.elementType ? h : lg(b.type, h), g.props = l, A = b.pendingProps, p = g.context, k = c.contextType, "object" == typeof k && null !== k ? k = vg(k) : (k = Ff(c) ? Df : M.current, k = Ef(b, k));
g = b.stateNode, yg(a, b), h = b.memoizedProps, l = b.type === b.elementType ? h : lg(b.type, h), g.props = l, A = b.pendingProps, p = g.context, k = c.contextType, k = "object" == typeof k && null !== k ? vg(k) : Ef(b, k = Ff(c) ? Df : M.current);
var C = c.getDerivedStateFromProps;
(n = "function" == typeof C || "function" == typeof g.getSnapshotBeforeUpdate) || "function" != typeof g.UNSAFE_componentWillReceiveProps && "function" != typeof g.componentWillReceiveProps || (h !== A || p !== k) && Ng(b, g, d, k), wg = !1, p = b.memoizedState, g.state = p, Cg(b, d, g, e);
var x = b.memoizedState;
@ -14725,7 +14713,7 @@
}
15 === b ? (c = Lj.bind(null, a), null === ag ? (ag = [
c
], bg = Of(Uf, jg)) : ag.push(c), c = Zf) : 14 === b ? c = hg(99, Lj.bind(null, a)) : (c = function(a) {
], bg = Of(Uf, jg)) : ag.push(c), c = Zf) : c = 14 === b ? hg(99, Lj.bind(null, a)) : hg(c = function(a) {
switch(a){
case 15:
case 14:
@ -14751,7 +14739,7 @@
default:
throw Error(y(358, a));
}
}(b), c = hg(c, Nj.bind(null, a))), a.callbackPriority = b, a.callbackNode = c;
}(b), Nj.bind(null, a)), a.callbackPriority = b, a.callbackNode = c;
}
}
function Nj(a) {
@ -15007,7 +14995,7 @@
do {
var c = b.alternate;
if (a = b.return, 0 == (2048 & b.flags)) {
if (null !== (c = Gi(c, b, qj))) {
if (c = Gi(c, b, qj), null !== c) {
Y = c;
return;
}
@ -15050,7 +15038,7 @@
e[k] = 0, g[k] = -1, h[k] = -1, f &= ~l;
}
if (null !== Cj && 0 == (24 & d) && Cj.has(a) && Cj.delete(a), a === U && (Y = U = null, W = 0), 1 < c.flags ? null !== c.lastEffect ? (c.lastEffect.nextEffect = c, d = c.firstEffect) : d = c : d = c.firstEffect, null !== d) {
if (e = X, X |= 32, pj.current = null, kf = fd, g = Ne(), Oe(g)) {
if (e = X, X |= 32, pj.current = null, kf = fd, Oe(g = Ne())) {
if ("selectionStart" in g) h = {
start: g.selectionStart,
end: g.selectionEnd
@ -15230,7 +15218,7 @@
return X = b, ig(), !0;
}
function gk(a, b, c) {
b = Mi(c, b), b = Pi(a, b, 1), Ag(a, b), b = Hg(), null !== (a = Kj(a, 1)) && ($c(a, 1, b), Mj(a, b));
b = Pi(a, b = Mi(c, b), 1), Ag(a, b), b = Hg(), a = Kj(a, 1), null !== a && ($c(a, 1, b), Mj(a, b));
}
function Wi(a, b) {
if (3 === a.tag) gk(a, a, b);
@ -15242,8 +15230,7 @@
if (1 === c.tag) {
var d = c.stateNode;
if ("function" == typeof c.type.getDerivedStateFromError || "function" == typeof d.componentDidCatch && (null === Ti || !Ti.has(d))) {
a = Mi(b, a);
var e = Si(c, a, 1);
var e = Si(c, a = Mi(b, a), 1);
if (Ag(c, e), e = Hg(), null !== (c = Kj(c, 1))) $c(c, 1, e), Mj(c, e);
else if ("function" == typeof d.componentDidCatch && (null === Ti || !Ti.has(d))) try {
d.componentDidCatch(b, a);
@ -15628,15 +15615,9 @@
b[ff] = null;
});
}, ec = function(a) {
if (13 === a.tag) {
var b = Hg();
Jg(a, 4, b), ok(a, 4);
}
13 === a.tag && (Jg(a, 4, Hg()), ok(a, 4));
}, fc = function(a) {
if (13 === a.tag) {
var b = Hg();
Jg(a, 67108864, b), ok(a, 67108864);
}
13 === a.tag && (Jg(a, 67108864, Hg()), ok(a, 67108864));
}, gc = function(a) {
if (13 === a.tag) {
var b = Hg(), c = Ig(a);
@ -15952,8 +15933,8 @@
]);
return React.createElement(reactRouter.__RouterContext.Consumer, null, function(r) {
r || invariant(!1);
var o = r.history, e = normalizeToLocation(resolveToLocation(u, r.location), r.location), t = e ? o.createHref(e) : "", n = _extends({}, s, {
href: t,
var o = r.history, e = normalizeToLocation(resolveToLocation(u, r.location), r.location), n = _extends({}, s, {
href: e ? o.createHref(e) : "",
navigate: function() {
var e = resolveToLocation(u, r.location), t = history.createPath(r.location) === history.createPath(normalizeToLocation(e));
(c || t ? o.replace : o.push)(e);

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

@ -2793,12 +2793,12 @@ 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,
usage_count: 1,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -2807,7 +2807,7 @@ TestSnapshot {
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: false,
@ -3905,12 +3905,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -3985,12 +3985,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},

View File

@ -378,14 +378,14 @@ function formatYear(d, p) {
return pad(d.getFullYear() % 100, p, 2);
}
function formatYearISO(d, p) {
return pad((d = dISO(d)).getFullYear() % 100, p, 2);
return d = dISO(d), pad(d.getFullYear() % 100, p, 2);
}
function formatFullYear(d, p) {
return pad(d.getFullYear() % 10000, p, 4);
}
function formatFullYearISO(d, p) {
var day = d.getDay();
return pad((d = day >= 4 || 0 === day ? timeThursday(d) : timeThursday.ceil(d)).getFullYear() % 10000, p, 4);
return d = day >= 4 || 0 === day ? timeThursday(d) : timeThursday.ceil(d), pad(d.getFullYear() % 10000, p, 4);
}
function formatZone(d) {
var z = d.getTimezoneOffset();
@ -442,14 +442,14 @@ function formatUTCYear(d, p) {
return pad(d.getUTCFullYear() % 100, p, 2);
}
function formatUTCYearISO(d, p) {
return pad((d = UTCdISO(d)).getUTCFullYear() % 100, p, 2);
return d = UTCdISO(d), pad(d.getUTCFullYear() % 100, p, 2);
}
function formatUTCFullYear(d, p) {
return pad(d.getUTCFullYear() % 10000, p, 4);
}
function formatUTCFullYearISO(d, p) {
var day = d.getUTCDay();
return pad((d = day >= 4 || 0 === day ? utcThursday(d) : utcThursday.ceil(d)).getUTCFullYear() % 10000, p, 4);
return d = day >= 4 || 0 === day ? utcThursday(d) : utcThursday.ceil(d), pad(d.getUTCFullYear() % 10000, p, 4);
}
function formatUTCZone() {
return "+0000";

View File

@ -3253,12 +3253,12 @@ 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,
usage_count: 1,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -3267,7 +3267,7 @@ TestSnapshot {
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: false,
@ -6499,12 +6499,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -6579,12 +6579,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -17545,12 +17545,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -17559,7 +17559,7 @@ TestSnapshot {
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
used_in_cond: false,
var_kind: Some(
"const",
),
@ -19453,7 +19453,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,
@ -20443,7 +20443,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,

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,
@ -801,12 +801,12 @@ 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: 2,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -1117,12 +1117,12 @@ 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: 2,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -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,
@ -2087,12 +2087,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -2100,8 +2100,8 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: true,
used_in_cond: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
var_initialized: true,
declared_as_catch_param: 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,
@ -5787,7 +5787,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: 8,
reassigned_with_assignment: false,
@ -6829,7 +6829,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: 6,
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,
@ -7249,7 +7249,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,
@ -8301,7 +8301,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,
@ -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,
@ -9815,12 +9815,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -10171,12 +10171,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -11637,12 +11637,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -12229,12 +12229,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -14297,7 +14297,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,
@ -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,
@ -15779,12 +15779,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -15792,8 +15792,8 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
used_in_cond: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: 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,
@ -17067,7 +17067,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,
@ -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,
@ -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,
@ -20317,12 +20317,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -20357,12 +20357,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -20435,7 +20435,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,
@ -20448,8 +20448,8 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
used_in_cond: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: false,
@ -20823,7 +20823,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,
@ -21749,12 +21749,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -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,
@ -22951,12 +22951,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -23027,12 +23027,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -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,
@ -25057,7 +25057,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,
@ -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,
@ -25173,12 +25173,12 @@ 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: 1,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -25186,7 +25186,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: None,
var_initialized: 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,
@ -25907,7 +25907,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,
@ -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,
@ -26657,12 +26657,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -26971,12 +26971,12 @@ 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: 9,
usage_count: 8,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -28639,9 +28639,9 @@ 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,
usage_count: 3,
reassigned_with_assignment: true,
reassigned_with_var_decl: false,
mutated: true,
@ -28873,12 +28873,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -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

@ -540,7 +540,10 @@
for(var attrib = node.getAttribute("data-emotion").split(" "), i = 1; i < attrib.length; i++)inserted[attrib[i]] = !0;
nodesToHydrate.push(node);
});
var container, _insert, currentSheet, collection, length, finalizingPlugins = [
var container, _insert, currentSheet, collection, length, serializer = (collection = [
compat,
removeLabel
].concat(stylisPlugins, [
stringify,
function(callback) {
return function(element) {
@ -549,10 +552,7 @@
}(function(rule) {
currentSheet.insert(rule);
}),
], serializer = (collection = [
compat,
removeLabel
].concat(stylisPlugins, finalizingPlugins), length = Utility_sizeof(collection), function(element, index, children, callback) {
]), length = Utility_sizeof(collection), function(element, index, children, callback) {
for(var output = "", i = 0; i < length; i++)output += collection[i](element, index, children, callback) || "";
return output;
}), stylis = function(styles) {
@ -677,8 +677,7 @@
}
}, Global = function(func) {
return (0, react.forwardRef)(function(props, ref) {
var cache = (0, react.useContext)(EmotionCacheContext);
return func(props, cache, ref);
return func(props, (0, react.useContext)(EmotionCacheContext), ref);
});
}(function(props, cache) {
var serialized = emotion_serialize_browser_esm_serializeStyles([

View File

@ -2157,12 +2157,12 @@ 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: 9,
usage_count: 8,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},

View File

@ -1054,7 +1054,7 @@
}
return b;
}, k.set = function(a, b) {
return V(this), this.i = null, a = W(this, a), ed(this, a) && (this.h -= this.g.get(a).length), this.g.set(a, [
return V(this), this.i = null, ed(this, a = W(this, a)) && (this.h -= this.g.get(a).length), this.g.set(a, [
b
]), this.h += 1, this;
}, k.get = function(a, b) {
@ -1425,7 +1425,7 @@
if (1 == d) {
c = b.s ? b.s.length : 0, b = Date.now() - b.F;
var a1, b1, e = a.C;
d = Sb(), D(d, new Vb(d, c, b, e)), Hc(a);
D(d = Sb(), new Vb(d, c, b, e)), Hc(a);
} else Gc(a);
} else if (3 == (e = b.o) || 0 == e && 0 < a.I || !(1 == d && (a1 = a, b1 = b, !(Cc(a1.i) >= a1.i.j - (a1.m ? 1 : 0)) && (a1.m ? (a1.l = b1.D.concat(a1.l), !0) : 1 != a1.G && 2 != a1.G && !(a1.C >= (a1.Xa ? 0 : a1.Ya)) && (a1.m = K(q(a1.Ha, a1, b1), Od(a1, a1.C)), a1.C++, !0))) || 2 == d && Bc(a))) switch(c && 0 < c.length && ((b = a.i).i = b.i.concat(c)), e){
case 1:
@ -1639,7 +1639,7 @@
b = 1e3;
}
else b = 1e3;
b = Pd(this, e, b), c = N(this.F), R(c, "RID", a), R(c, "CVER", 22), this.D && R(c, "X-HTTP-Session-Id", this.D), Kd(this, c), this.o && f && Gd(c, this.o, f), Dc(this.i, e), this.Ra && R(c, "TYPE", "init"), this.ja ? (R(c, "$req", b), R(c, "SID", "null"), e.$ = !0, ic(e, c, null)) : ic(e, c, b), this.G = 2;
b = Pd(this, e, b), R(c = N(this.F), "RID", a), R(c, "CVER", 22), this.D && R(c, "X-HTTP-Session-Id", this.D), Kd(this, c), this.o && f && Gd(c, this.o, f), Dc(this.i, e), this.Ra && R(c, "TYPE", "init"), this.ja ? (R(c, "$req", b), R(c, "SID", "null"), e.$ = !0, ic(e, c, null)) : ic(e, c, b), this.G = 2;
}
} else 3 == this.G && (a ? Qd(this, a) : 0 == this.l.length || id(this.i) || Qd(this));
}
@ -1733,7 +1733,7 @@
}();
}
exports.default = function(_param) {
var sizerSvg, src = _param.src, sizes = _param.sizes, _unoptimized = _param.unoptimized, unoptimized = void 0 !== _unoptimized && _unoptimized, _priority = _param.priority, priority = void 0 !== _priority && _priority, loading = _param.loading, _lazyBoundary = _param.lazyBoundary, lazyBoundary = void 0 === _lazyBoundary ? "200px" : _lazyBoundary, className = _param.className, quality = _param.quality, width = _param.width, height = _param.height, objectFit = _param.objectFit, objectPosition = _param.objectPosition, onLoadingComplete = _param.onLoadingComplete, _loader = _param.loader, loader = void 0 === _loader ? defaultImageLoader : _loader, _placeholder = _param.placeholder, placeholder = void 0 === _placeholder ? "empty" : _placeholder, blurDataURL = _param.blurDataURL, all = function(source, excluded) {
var sizerSvg, src = _param.src, sizes = _param.sizes, _unoptimized = _param.unoptimized, unoptimized = void 0 !== _unoptimized && _unoptimized, _priority = _param.priority, priority = void 0 !== _priority && _priority, loading = _param.loading, _lazyBoundary = _param.lazyBoundary, className = _param.className, quality = _param.quality, width = _param.width, height = _param.height, objectFit = _param.objectFit, objectPosition = _param.objectPosition, onLoadingComplete = _param.onLoadingComplete, _loader = _param.loader, loader = void 0 === _loader ? defaultImageLoader : _loader, _placeholder = _param.placeholder, placeholder = void 0 === _placeholder ? "empty" : _placeholder, blurDataURL = _param.blurDataURL, all = function(source, excluded) {
if (null == source) return {};
var key, i, target = _objectWithoutPropertiesLoose(source, excluded);
if (Object.getOwnPropertySymbols) {
@ -1772,7 +1772,7 @@
var arr, ref2 = function(arr) {
if (Array.isArray(arr)) return arr;
}(arr = _useIntersection.useIntersection({
rootMargin: lazyBoundary,
rootMargin: void 0 === _lazyBoundary ? "200px" : _lazyBoundary,
disabled: !isLazy
})) || function(arr, i) {
var _arr = [], _n = !0, _d = !1, _e = void 0;

View File

@ -279,10 +279,6 @@
function ct(t, e) {
for(const n in t)Object.prototype.hasOwnProperty.call(t, n) && e(n, t[n]);
}
function at(t) {
for(const e in t)if (Object.prototype.hasOwnProperty.call(t, e)) return !1;
return !0;
}
class ut {
constructor(t, e, n){
void 0 === e ? e = 0 : e > t.length && L(), void 0 === n ? n = t.length - e : n > t.length - e && L(), this.segments = t, this.offset = e, this.len = n;
@ -1117,27 +1113,6 @@
return L();
}
}
function Se(t, e) {
if (t.D) {
if (isNaN(e)) return {
doubleValue: "NaN"
};
if (e === 1 / 0) return {
doubleValue: "Infinity"
};
if (e === -1 / 0) return {
doubleValue: "-Infinity"
};
}
return {
doubleValue: Rt(e) ? "-0" : e
};
}
function De(t) {
return {
integerValue: "" + t
};
}
class Ne {
constructor(){
this._ = void 0;
@ -1163,7 +1138,24 @@
};
}(n, e) : t instanceof Fe ? Me(t, e) : t instanceof Le ? Be(t, e) : function(t, e) {
const n = $e(t, e), s = qe(n) + qe(t.C);
return $t(n) && $t(t.C) ? De(s) : Se(t.N, s);
return $t(n) && $t(t.C) ? {
integerValue: "" + s
} : function(t, e) {
if (t.D) {
if (isNaN(e)) return {
doubleValue: "NaN"
};
if (e === 1 / 0) return {
doubleValue: "Infinity"
};
if (e === -1 / 0) return {
doubleValue: "-Infinity"
};
}
return {
doubleValue: Rt(e) ? "-0" : e
};
}(t.N, s);
}(t, e);
}
function ke(t, e, n) {
@ -1955,9 +1947,6 @@
nanos: e.nanoseconds
};
}
function qn(t, e) {
return t.D ? e.toBase64() : e.toUint8Array();
}
function jn(t) {
return t || L(), rt.fromTimestamp(function(t) {
const e = gt(t);
@ -2953,7 +2942,10 @@
});
}
isEmpty() {
return at(this.inner);
return function(t) {
for(const e in t)if (Object.prototype.hasOwnProperty.call(t, e)) return !1;
return !0;
}(this.inner);
}
}
class Qi {
@ -4196,6 +4188,7 @@
br(t) {
const e = {};
e.database = Yn(this.N), e.addTarget = function(t, e) {
var t1, e1;
let n;
const s = e.target;
return (n = Ht(s) ? {
@ -4281,7 +4274,7 @@
});
return null !== o && (n.structuredQuery.limit = o), e.startAt && (n.structuredQuery.startAt = ls(e.startAt)), e.endAt && (n.structuredQuery.endAt = ls(e.endAt)), n;
}(t, s)
}).targetId = e.targetId, e.resumeToken.approximateByteSize() > 0 ? n.resumeToken = qn(t, e.resumeToken) : e.snapshotVersion.compareTo(rt.min()) > 0 && (n.readTime = Un(t, e.snapshotVersion.toTimestamp())), n;
}).targetId = e.targetId, e.resumeToken.approximateByteSize() > 0 ? n.resumeToken = (t1 = t, e1 = e.resumeToken, t1.D ? e1.toBase64() : e1.toUint8Array()) : e.snapshotVersion.compareTo(rt.min()) > 0 && (n.readTime = Un(t, e.snapshotVersion.toTimestamp())), n;
}(this.N, t);
const n = function(t, e) {
const n = function(t, e) {
@ -5325,26 +5318,25 @@
function _a(t) {
if (Pt.isDocumentKey(t)) throw new j(K.INVALID_ARGUMENT, `Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`);
}
function ma(t) {
if (void 0 === t) return "undefined";
if (null === t) return "null";
if ("string" == typeof t) return t.length > 20 && (t = `${t.substring(0, 20)}...`), JSON.stringify(t);
if ("number" == typeof t || "boolean" == typeof t) return "" + t;
if ("object" == typeof t) {
if (t instanceof Array) return "an array";
{
var t1;
const e = (t1 = t).constructor ? t1.constructor.name : null;
return e ? `a custom ${e} object` : "an object";
}
}
return "function" == typeof t ? "a function" : L();
}
function ga(t, e) {
if ("_delegate" in t && (t = t._delegate), !(t instanceof e)) {
if (e.name === t.constructor.name) throw new j(K.INVALID_ARGUMENT, "Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");
{
const n = ma(t);
const n = function(t) {
if (void 0 === t) return "undefined";
if (null === t) return "null";
if ("string" == typeof t) return t.length > 20 && (t = `${t.substring(0, 20)}...`), JSON.stringify(t);
if ("number" == typeof t || "boolean" == typeof t) return "" + t;
if ("object" == typeof t) {
if (t instanceof Array) return "an array";
{
var t1;
const e = (t1 = t).constructor ? t1.constructor.name : null;
return e ? `a custom ${e} object` : "an object";
}
}
return "function" == typeof t ? "a function" : L();
}(t);
throw new j(K.INVALID_ARGUMENT, `Expected type '${e.name}', but it was: ${n}`);
}
}
@ -5620,11 +5612,6 @@
return this._byteString.isEqual(t._byteString);
}
}
class Za {
constructor(t){
this._methodName = t;
}
}
class tu {
constructor(t, e){
if (!isFinite(t) || t < -90 || t > 90) throw new j(K.INVALID_ARGUMENT, "Latitude must be a number between -90 and 90, but was: " + t);
@ -5651,19 +5638,6 @@
}
}
const eu = /^__.*__$/;
function iu(t) {
switch(t){
case 0:
case 2:
case 1:
return !0;
case 3:
case 4:
return !1;
default:
throw L();
}
}
class ru {
constructor(t, e, n, s, i, r){
this.settings = t, this.databaseId = e, this.N = n, this.ignoreUndefinedProperties = s, void 0 === i && this.xc(), this.fieldTransforms = i || [], this.fieldMask = r || [];
@ -5710,7 +5684,19 @@
}
Mc(t) {
if (0 === t.length) throw this.Uc("Document fields must not be empty");
if (iu(this.kc) && eu.test(t)) throw this.Uc('Document fields cannot begin and end with "__"');
if (function(t) {
switch(t){
case 0:
case 2:
case 1:
return !0;
case 3:
case 4:
return !1;
default:
throw L();
}
}(this.kc) && eu.test(t)) throw this.Uc('Document fields cannot begin and end with "__"');
}
}
class uu extends null {
@ -5730,99 +5716,6 @@
return t instanceof lu;
}
}
function yu(t, e) {
if (Tu(t = getModularInstance(t))) return Eu("Unsupported field value:", e, t), pu(t, e);
if (t instanceof Za) return function(t, e) {
if (!iu(e.kc)) throw e.Uc(`${t._methodName}() can only be used with update() and set()`);
if (!e.path) throw e.Uc(`${t._methodName}() is not currently supported inside arrays`);
const n = t._toFieldTransform(e);
n && e.fieldTransforms.push(n);
}(t, e), null;
if (void 0 === t && e.ignoreUndefinedProperties) return null;
if (e.path && e.fieldMask.push(e.path), t instanceof Array) {
if (e.settings.Fc && 4 !== e.kc) throw e.Uc("Nested arrays are not supported");
return function(t, e) {
const n = [];
let s = 0;
for (const i of t){
let t1 = yu(i, e.Bc(s));
null == t1 && (t1 = {
nullValue: "NULL_VALUE"
}), n.push(t1), s++;
}
return {
arrayValue: {
values: n
}
};
}(t, e);
}
return function(t, e) {
if (null === (t = getModularInstance(t))) return {
nullValue: "NULL_VALUE"
};
if ("number" == typeof t) {
var t1, e1;
return t1 = e.N, bt(e1 = t) ? De(e1) : Se(t1, e1);
}
if ("boolean" == typeof t) return {
booleanValue: t
};
if ("string" == typeof t) return {
stringValue: t
};
if (t instanceof Date) {
const n = it.fromDate(t);
return {
timestampValue: Un(e.N, n)
};
}
if (t instanceof it) {
const n1 = new it(t.seconds, 1e3 * Math.floor(t.nanoseconds / 1e3));
return {
timestampValue: Un(e.N, n1)
};
}
if (t instanceof tu) return {
geoPointValue: {
latitude: t.latitude,
longitude: t.longitude
}
};
if (t instanceof Xa) return {
bytesValue: qn(e.N, t._byteString)
};
if (t instanceof Ia) {
const n2 = e.databaseId, s = t.firestore._databaseId;
if (!s.isEqual(n2)) throw e.Uc(`Document reference is for database ${s.projectId}/${s.database} but should be for database ${n2.projectId}/${n2.database}`);
return {
referenceValue: Qn(t.firestore._databaseId || e.databaseId, t._key.path)
};
}
throw e.Uc(`Unsupported field value: ${ma(t)}`);
}(t, e);
}
function pu(t, e) {
const n = {};
return at(t) ? e.path && e.path.length > 0 && e.fieldMask.push(e.path) : ct(t, (t, s)=>{
const i = yu(s, e.Oc(t));
null != i && (n[t] = i);
}), {
mapValue: {
fields: n
}
};
}
function Tu(t) {
return !("object" != typeof t || null === t || t instanceof Array || t instanceof Date || t instanceof it || t instanceof tu || t instanceof Xa || t instanceof Ia || t instanceof Za);
}
function Eu(t, e, n) {
var t1;
if (!Tu(n) || "object" != typeof (t1 = n) || null === t1 || Object.getPrototypeOf(t1) !== Object.prototype && null !== Object.getPrototypeOf(t1)) {
const s = ma(n);
throw "an object" === s ? e.Uc(t + " a custom object") : e.Uc(t + " " + s);
}
}
const Au = RegExp("[~\\*/\\[\\]]");
function bu(t, e, n, s, i) {
const r = s && !s.isEmpty(), o = void 0 !== i;

View File

@ -89,7 +89,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,
@ -129,7 +129,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: false,
@ -169,7 +169,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,
@ -363,12 +363,12 @@ 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: 1,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},

View File

@ -5,7 +5,7 @@ export function treeSubTree(tree, pathObj) {
children: {},
childCount: 0
};
child = new Tree(next, child, childNode), path = pathPopFront(path), next = pathGetFront(path);
child = new Tree(next, child, childNode), next = pathGetFront(path = pathPopFront(path));
}
return child;
}

View File

@ -1607,9 +1607,9 @@ 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,
usage_count: 3,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
@ -8179,7 +8179,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: 11,
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,9 +9941,9 @@ 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,
usage_count: 2,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
@ -12359,12 +12359,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -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,9 +34795,9 @@ 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,
usage_count: 4,
reassigned_with_assignment: true,
reassigned_with_var_decl: false,
mutated: true,
@ -39109,7 +39109,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,
@ -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,9 +41631,9 @@ 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,
usage_count: 6,
reassigned_with_assignment: true,
reassigned_with_var_decl: false,
mutated: true,
@ -43963,12 +43963,12 @@ 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: 8,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -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

@ -854,7 +854,7 @@
}
function createLocalOrUTC(input, format, locale, strict, isUTC) {
var config, res, c = {};
return (!0 === format || !1 === format) && (strict = format, format = void 0), (!0 === locale || !1 === locale) && (strict = locale, locale = void 0), (isObject(input) && isObjectEmpty(input) || isArray(input) && 0 === input.length) && (input = void 0), c._isAMomentObject = !0, c._useUTC = c._isUTC = isUTC, c._l = locale, c._i = input, c._f = format, c._strict = strict, config = c, (res = new Moment(checkOverflow(prepareConfig(config))))._nextDay && (res.add(1, "d"), res._nextDay = void 0), res;
return (!0 === format || !1 === format) && (strict = format, format = void 0), (!0 === locale || !1 === locale) && (strict = locale, locale = void 0), (isObject(input) && isObjectEmpty(input) || isArray(input) && 0 === input.length) && (input = void 0), c._isAMomentObject = !0, c._useUTC = c._isUTC = isUTC, c._l = locale, c._i = input, c._f = format, c._strict = strict, config = c, res = new Moment(checkOverflow(prepareConfig(config))), res._nextDay && (res.add(1, "d"), res._nextDay = void 0), res;
}
function createLocal(input, format, locale, strict) {
return createLocalOrUTC(input, format, locale, strict, !1);
@ -996,8 +996,8 @@
}
function monthDiff(a, b) {
if (a.date() < b.date()) return -monthDiff(b, a);
var adjust, wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()), anchor = a.clone().add(wholeMonthDiff, "months");
return adjust = b - anchor < 0 ? (b - anchor) / (anchor - a.clone().add(wholeMonthDiff - 1, "months")) : (b - anchor) / (a.clone().add(wholeMonthDiff + 1, "months") - anchor), -(wholeMonthDiff + adjust) || 0;
var anchor2, adjust, wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()), anchor = a.clone().add(wholeMonthDiff, "months");
return b - anchor < 0 ? (anchor2 = a.clone().add(wholeMonthDiff - 1, "months"), adjust = (b - anchor) / (anchor - anchor2)) : (anchor2 = a.clone().add(wholeMonthDiff + 1, "months"), adjust = (b - anchor) / (anchor2 - anchor)), -(wholeMonthDiff + adjust) || 0;
}
function locale(key) {
var newLocaleData;
@ -1035,7 +1035,7 @@
}
function getSetWeekYearHelper(input, week, weekday, dow, doy) {
var weeksTarget;
return null == input ? weekOfYear(this, dow, doy).year : (weeksTarget = weeksInYear(input, dow, doy), week > weeksTarget && (week = weeksTarget), setWeekAll.call(this, input, week, weekday, dow, doy));
return null == input ? weekOfYear(this, dow, doy).year : (week > (weeksTarget = weeksInYear(input, dow, doy)) && (week = weeksTarget), setWeekAll.call(this, input, week, weekday, dow, doy));
}
function setWeekAll(weekYear, week, weekday, dow, doy) {
var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
@ -1243,7 +1243,7 @@
return new Moment(this);
}, proto.diff = function(input, units, asFloat) {
var that, zoneDelta, output;
if (!this.isValid() || !(that = cloneWithOffset(input, this)).isValid()) return NaN;
if (!this.isValid() || (that = cloneWithOffset(input, this), !that.isValid())) return NaN;
switch(zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4, units = normalizeUnits(units)){
case "year":
output = monthDiff(this, that) / 12;
@ -1538,7 +1538,7 @@
}), proto.isDSTShifted = deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", function() {
if (!isUndefined(this._isDSTShifted)) return this._isDSTShifted;
var other, c = {};
return copyConfig(c, this), (c = prepareConfig(c))._a ? (other = c._isUTC ? createUTC(c._a) : createLocal(c._a), this._isDSTShifted = this.isValid() && function(array1, array2, dontConvert) {
return copyConfig(c, this), c = prepareConfig(c), c._a ? (other = c._isUTC ? createUTC(c._a) : createLocal(c._a), this._isDSTShifted = this.isValid() && function(array1, array2, dontConvert) {
var i, len = Math.min(array1.length, array2.length), lengthDiff = Math.abs(array1.length - array2.length), diffs = 0;
for(i = 0; i < len; i++)(dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) && diffs++;
return diffs + lengthDiff;
@ -1738,7 +1738,7 @@
var minutes, hours, years, s, totalSign, ymSign, daysSign, hmsSign, seconds = abs$1(this._milliseconds) / 1000, days = abs$1(this._days), months = abs$1(this._months), total = this.asSeconds();
return total ? (minutes = absFloor(seconds / 60), hours = absFloor(minutes / 60), seconds %= 60, minutes %= 60, years = absFloor(months / 12), months %= 12, s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, "") : "", totalSign = total < 0 ? "-" : "", ymSign = sign(this._months) !== sign(total) ? "-" : "", daysSign = sign(this._days) !== sign(total) ? "-" : "", hmsSign = sign(this._milliseconds) !== sign(total) ? "-" : "", totalSign + "P" + (years ? ymSign + years + "Y" : "") + (months ? ymSign + months + "M" : "") + (days ? daysSign + days + "D" : "") + (hours || minutes || seconds ? "T" : "") + (hours ? hmsSign + hours + "H" : "") + (minutes ? hmsSign + minutes + "M" : "") + (seconds ? hmsSign + s + "S" : "")) : "P0D";
}
var proto$2 = Duration.prototype;
var callback, proto$2 = Duration.prototype;
return proto$2.isValid = function() {
return this._isValid;
}, proto$2.abs = function() {
@ -1779,7 +1779,7 @@
return this.isValid() ? this._milliseconds + 864e5 * this._days + this._months % 12 * 2592e6 + 31536e6 * toInt(this._months / 12) : NaN;
}, proto$2._bubble = function() {
var seconds, minutes, hours, years, monthsFromDays, milliseconds = this._milliseconds, days = this._days, months = this._months, data = this._data;
return milliseconds >= 0 && days >= 0 && months >= 0 || milliseconds <= 0 && days <= 0 && months <= 0 || (milliseconds += 864e5 * absCeil(monthsToDays(months) + days), days = 0, months = 0), data.milliseconds = milliseconds % 1000, seconds = absFloor(milliseconds / 1000), data.seconds = seconds % 60, minutes = absFloor(seconds / 60), data.minutes = minutes % 60, hours = absFloor(minutes / 60), data.hours = hours % 24, days += absFloor(hours / 24), monthsFromDays = absFloor(daysToMonths(days)), months += monthsFromDays, days -= absCeil(monthsToDays(monthsFromDays)), years = absFloor(months / 12), months %= 12, data.days = days, data.months = months, data.years = years, this;
return milliseconds >= 0 && days >= 0 && months >= 0 || milliseconds <= 0 && days <= 0 && months <= 0 || (milliseconds += 864e5 * absCeil(monthsToDays(months) + days), days = 0, months = 0), data.milliseconds = milliseconds % 1000, seconds = absFloor(milliseconds / 1000), data.seconds = seconds % 60, minutes = absFloor(seconds / 60), data.minutes = minutes % 60, hours = absFloor(minutes / 60), data.hours = hours % 24, days += absFloor(hours / 24), months += monthsFromDays = absFloor(daysToMonths(days)), days -= absCeil(monthsToDays(monthsFromDays)), years = absFloor(months / 12), months %= 12, data.days = days, data.months = months, data.years = years, this;
}, proto$2.clone = function() {
return createDuration(this);
}, proto$2.get = function(units) {
@ -1830,7 +1830,7 @@
config._d = new Date(1000 * parseFloat(input));
}), addParseToken("x", function(input, array, config) {
config._d = new Date(toInt(input));
}), hooks.version = "2.29.1", hookCallback = createLocal, hooks.fn = proto, hooks.min = function() {
}), hooks.version = "2.29.1", callback = createLocal, hookCallback = callback, hooks.fn = proto, hooks.min = function() {
var args = [].slice.call(arguments, 0);
return pickBy("isBefore", args);
}, hooks.max = function() {

View File

@ -249,12 +249,12 @@ 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: 9,
usage_count: 8,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},

View File

@ -1209,8 +1209,8 @@
function(module1, exports1) {
var objectProto = Object.prototype;
module1.exports = function(value) {
var Ctor = value && value.constructor, proto = "function" == typeof Ctor && Ctor.prototype || objectProto;
return value === proto;
var Ctor = value && value.constructor;
return value === ("function" == typeof Ctor && Ctor.prototype || objectProto);
};
},
function(module1, exports1, __webpack_require__) {
@ -1733,7 +1733,9 @@
var assocIndexOf = __webpack_require__(25), splice = Array.prototype.splice;
module1.exports = function(key) {
var data = this.__data__, index = assocIndexOf(data, key);
return !(index < 0) && (index == data.length - 1 ? data.pop() : splice.call(data, index, 1), --this.size, !0);
if (index < 0) return !1;
var lastIndex = data.length - 1;
return index == lastIndex ? data.pop() : splice.call(data, index, 1), --this.size, !0;
};
},
function(module1, exports1, __webpack_require__) {
@ -2185,11 +2187,11 @@
};
},
function(module1, exports1) {
var HOT_SPAN = 16, nativeNow = Date.now;
var nativeNow = Date.now;
module1.exports = function(func) {
var count = 0, lastCalled = 0;
return function() {
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
var stamp = nativeNow(), remaining = 16 - (stamp - lastCalled);
if (lastCalled = stamp, remaining > 0) {
if (++count >= 800) return arguments[0];
} else count = 0;
@ -3270,7 +3272,7 @@
};
var BarcodeDirection1, bresenham = Bresenham, image_debug = __webpack_require__(9), classCallCheck = __webpack_require__(3), classCallCheck_default = __webpack_require__.n(classCallCheck), createClass = __webpack_require__(4), createClass_default = __webpack_require__.n(createClass), assertThisInitialized = __webpack_require__(1), assertThisInitialized_default = __webpack_require__.n(assertThisInitialized), inherits = __webpack_require__(6), inherits_default = __webpack_require__.n(inherits), possibleConstructorReturn = __webpack_require__(5), possibleConstructorReturn_default = __webpack_require__.n(possibleConstructorReturn), getPrototypeOf = __webpack_require__(2), getPrototypeOf_default = __webpack_require__.n(getPrototypeOf), defineProperty = __webpack_require__(0), defineProperty_default = __webpack_require__.n(defineProperty), array_helper = __webpack_require__(10);
(BarcodeDirection1 = BarcodeDirection || (BarcodeDirection = {}))[BarcodeDirection1.Forward = 1] = "Forward", BarcodeDirection1[BarcodeDirection1.Reverse = -1] = "Reverse";
var barcode_reader_BarcodeReader = function() {
var barcode_reader = function() {
function BarcodeReader(config, supplements) {
return classCallCheck_default()(this, BarcodeReader), defineProperty_default()(this, "_row", []), defineProperty_default()(this, "config", {}), defineProperty_default()(this, "supplements", []), defineProperty_default()(this, "SINGLE_CODE_ERROR", 0), defineProperty_default()(this, "FORMAT", "unknown"), defineProperty_default()(this, "CONFIG_KEYS", {}), this._row = [], this.config = config || {}, supplements && (this.supplements = supplements), this;
}
@ -3360,7 +3362,7 @@
}
},
]), BarcodeReader;
}(), barcode_reader = barcode_reader_BarcodeReader, code_128_reader = function(_BarcodeReader) {
}(), code_128_reader = function(_BarcodeReader) {
inherits_default()(Code128Reader, _BarcodeReader);
var Derived, hasNativeReflectConstruct, _super = (Derived = Code128Reader, hasNativeReflectConstruct = function() {
if ("undefined" == typeof Reflect || !Reflect.construct || Reflect.construct.sham) return !1;

View File

@ -321,7 +321,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: 26,
reassigned_with_assignment: false,
@ -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

@ -115,9 +115,9 @@ var ItemsList = function(_Component) {
if (!(instance instanceof Constructor)) throw TypeError("Cannot call a class as a function");
}(this, ItemsList);
for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
return _this = _super.call.apply(_super, [
return _defineProperty(_assertThisInitialized(_this = _super.call.apply(_super, [
this
].concat(args)), _defineProperty(_assertThisInitialized(_this), "storeHighlightedItemReference", function(highlightedItem) {
].concat(args))), "storeHighlightedItemReference", function(highlightedItem) {
_this.props.onHighlightedItemChange(null === highlightedItem ? null : highlightedItem.item);
}), _this;
}

View File

@ -321,12 +321,12 @@ 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: 2,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -397,12 +397,12 @@ 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: 4,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -2725,12 +2725,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -2805,12 +2805,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -3155,12 +3155,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -3307,7 +3307,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: 17,
reassigned_with_assignment: false,
@ -3345,12 +3345,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -3385,12 +3385,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -3779,12 +3779,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -4249,12 +4249,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -4867,7 +4867,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,
@ -4985,7 +4985,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,
@ -5103,12 +5103,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -5971,12 +5971,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -6477,12 +6477,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -6751,12 +6751,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -7557,12 +7557,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -7755,7 +7755,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,
@ -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,12 +9487,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -9603,7 +9603,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,
@ -10347,7 +10347,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: 11,
reassigned_with_assignment: true,
@ -10387,12 +10387,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -10547,12 +10547,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -10665,12 +10665,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -11409,12 +11409,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -11449,12 +11449,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -11567,12 +11567,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -11607,12 +11607,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -11723,7 +11723,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,
@ -11961,7 +11961,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,
@ -12895,7 +12895,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,
@ -12975,7 +12975,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,
@ -13169,7 +13169,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,
@ -14003,7 +14003,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,
@ -14987,12 +14987,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -17525,7 +17525,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,
@ -18387,7 +18387,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,

View File

@ -95,7 +95,7 @@
}();
}
exports.default = function(_param) {
var sizerSvg, src = _param.src, sizes = _param.sizes, _unoptimized = _param.unoptimized, unoptimized = void 0 !== _unoptimized && _unoptimized, _priority = _param.priority, priority = void 0 !== _priority && _priority, loading = _param.loading, _lazyBoundary = _param.lazyBoundary, lazyBoundary = void 0 === _lazyBoundary ? "200px" : _lazyBoundary, className = _param.className, quality = _param.quality, width = _param.width, height = _param.height, objectFit = _param.objectFit, objectPosition = _param.objectPosition, onLoadingComplete = _param.onLoadingComplete, _loader = _param.loader, loader = void 0 === _loader ? defaultImageLoader : _loader, _placeholder = _param.placeholder, placeholder = void 0 === _placeholder ? "empty" : _placeholder, blurDataURL = _param.blurDataURL, all = function(source, excluded) {
var sizerSvg, src = _param.src, sizes = _param.sizes, _unoptimized = _param.unoptimized, unoptimized = void 0 !== _unoptimized && _unoptimized, _priority = _param.priority, priority = void 0 !== _priority && _priority, loading = _param.loading, _lazyBoundary = _param.lazyBoundary, className = _param.className, quality = _param.quality, width = _param.width, height = _param.height, objectFit = _param.objectFit, objectPosition = _param.objectPosition, onLoadingComplete = _param.onLoadingComplete, _loader = _param.loader, loader = void 0 === _loader ? defaultImageLoader : _loader, _placeholder = _param.placeholder, placeholder = void 0 === _placeholder ? "empty" : _placeholder, blurDataURL = _param.blurDataURL, all = function(source, excluded) {
if (null == source) return {};
var key, i, target = _objectWithoutPropertiesLoose(source, excluded);
if (Object.getOwnPropertySymbols) {
@ -134,7 +134,7 @@
var arr, ref2 = function(arr) {
if (Array.isArray(arr)) return arr;
}(arr = _useIntersection.useIntersection({
rootMargin: lazyBoundary,
rootMargin: void 0 === _lazyBoundary ? "200px" : _lazyBoundary,
disabled: !isLazy
})) || function(arr, i) {
var _arr = [], _n = !0, _d = !1, _e = void 0;

View File

@ -169,12 +169,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},

View File

@ -5531,12 +5531,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -5571,12 +5571,12 @@ 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: 22,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},

View File

@ -5685,12 +5685,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -5725,12 +5725,12 @@ 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: 22,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},

View File

@ -7041,12 +7041,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -7081,12 +7081,12 @@ 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: 22,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},

View File

@ -235,7 +235,7 @@ export default function createInstantSearchManager(param) {
addAlgoliaAgents(searchClient), helper.on("search", handleNewSearch).on("result", handleSearchSuccess({
indexId: indexName
})).on("error", handleSearchError);
var results, state, listeners, skip = !1, stalledSearchTimer = null, initialSearchParameters = helper.state, widgetsManager = createWidgetsManager(onWidgetsUpdate);
var results, initialState, state, listeners, skip = !1, stalledSearchTimer = null, initialSearchParameters = helper.state, widgetsManager = createWidgetsManager(onWidgetsUpdate);
!function(client, results) {
if (results && (client.transporter && !client._cacheHydrated || client._useCache && "function" == typeof client.addAlgoliaAgent)) {
if (client.transporter && !client._cacheHydrated) {
@ -277,7 +277,7 @@ export default function createInstantSearchManager(param) {
hydrateSearchClientWithSingleIndexRequest(client, results);
}
}(searchClient, resultsState);
var store = (state = {
var store = (initialState = {
widgets: void 0 === _initialState ? {} : _initialState,
metadata: hydrateMetadata(resultsState),
results: (results = resultsState) ? Array.isArray(results.results) ? results.results.reduce(function(acc, result) {
@ -287,7 +287,7 @@ export default function createInstantSearchManager(param) {
searching: !1,
isSearchStalled: !0,
searchingForFacetValues: !1
}, listeners = [], {
}, state = initialState, listeners = [], {
getState: function() {
return state;
},

View File

@ -3,6 +3,6 @@ import { useRouter } from "next/router";
import { useProject } from "@swr/use-project";
import useTeam from "@swr/use-team";
export default function MyComp() {
var projectName = useRouter().query.project, projectInfo = useProject(projectName).data;
return useTeam().teamSlug, useProjectBranches(null == projectInfo ? void 0 : projectInfo.id).data, _jsx(_Fragment, {});
var _query = useRouter().query, ref = useProject(_query.project), projectInfo = ref.data, ref1 = useTeam();
return ref1.teamSlug, useProjectBranches(null == projectInfo ? void 0 : projectInfo.id).data, _jsx(_Fragment, {});
};

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,585 @@
var ts;
!function(ts) {
ts.transformModule = function(context) {
var currentSourceFile, currentModuleInfo, needUMDDynamicImportHelper, factory = context.factory, emitHelpers = context.getEmitHelperFactory, startLexicalEnvironment = context.startLexicalEnvironment, endLexicalEnvironment = context.endLexicalEnvironment, hoistVariableDeclaration = context.hoistVariableDeclaration, compilerOptions = context.getCompilerOptions(), resolver = context.getEmitResolver(), host = context.getEmitHost(), languageVersion = ts.getEmitScriptTarget(compilerOptions), moduleKind = ts.getEmitModuleKind(compilerOptions), previousOnSubstituteNode = context.onSubstituteNode, previousOnEmitNode = context.onEmitNode;
context.onSubstituteNode = function(hint, node) {
return (node = previousOnSubstituteNode(hint, node)).id && noSubstitution[node.id] ? node : 1 === hint ? substituteExpression(node) : ts.isShorthandPropertyAssignment(node) ? substituteShorthandPropertyAssignment(node) : node;
}, context.onEmitNode = function(hint, node, emitCallback) {
303 === node.kind ? (currentSourceFile = node, currentModuleInfo = moduleInfoMap[ts.getOriginalNodeId(currentSourceFile)], previousOnEmitNode(hint, node, emitCallback), currentSourceFile = void 0, currentModuleInfo = void 0) : previousOnEmitNode(hint, node, emitCallback);
}, context.enableSubstitution(207), context.enableSubstitution(209), context.enableSubstitution(79), context.enableSubstitution(220), context.enableSubstitution(295), context.enableEmitNotification(303);
var moduleInfoMap = [], deferredExports = [], noSubstitution = [];
return ts.chainBundle(context, function(node) {
if (node.isDeclarationFile || !(ts.isEffectiveExternalModule(node, compilerOptions) || 4194304 & node.transformFlags || ts.isJsonSourceFile(node) && ts.hasJsonModuleEmitEnabled(compilerOptions) && ts.outFile(compilerOptions))) return node;
currentSourceFile = node, currentModuleInfo = ts.collectExternalModuleInfo(context, node, resolver, compilerOptions), moduleInfoMap[ts.getOriginalNodeId(node)] = currentModuleInfo;
var updated = (function(moduleKind) {
switch(moduleKind){
case ts.ModuleKind.AMD:
return transformAMDModule;
case ts.ModuleKind.UMD:
return transformUMDModule;
default:
return transformCommonJSModule;
}
})(moduleKind)(node);
return currentSourceFile = void 0, currentModuleInfo = void 0, needUMDDynamicImportHelper = !1, updated;
});
function shouldEmitUnderscoreUnderscoreESModule() {
return !!(!currentModuleInfo.exportEquals && ts.isExternalModule(currentSourceFile));
}
function transformCommonJSModule(node) {
startLexicalEnvironment();
var statements = [], ensureUseStrict = ts.getStrictOptionValue(compilerOptions, "alwaysStrict") || !compilerOptions.noImplicitUseStrict && ts.isExternalModule(currentSourceFile), statementOffset = factory.copyPrologue(node.statements, statements, ensureUseStrict && !ts.isJsonSourceFile(node), topLevelVisitor);
if (shouldEmitUnderscoreUnderscoreESModule() && ts.append(statements, createUnderscoreUnderscoreESModule()), ts.length(currentModuleInfo.exportedNames)) for(var i = 0; i < currentModuleInfo.exportedNames.length; i += 50)ts.append(statements, factory.createExpressionStatement(ts.reduceLeft(currentModuleInfo.exportedNames.slice(i, i + 50), function(prev, nextId) {
return factory.createAssignment(factory.createPropertyAccessExpression(factory.createIdentifier("exports"), factory.createIdentifier(ts.idText(nextId))), prev);
}, factory.createVoidZero())));
ts.append(statements, ts.visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, ts.isStatement)), ts.addRange(statements, ts.visitNodes(node.statements, topLevelVisitor, ts.isStatement, statementOffset)), addExportEqualsIfNeeded(statements, !1), ts.insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());
var updated = factory.updateSourceFile(node, ts.setTextRange(factory.createNodeArray(statements), node.statements));
return ts.addEmitHelpers(updated, context.readEmitHelpers()), updated;
}
function transformAMDModule(node) {
var define = factory.createIdentifier("define"), moduleName = ts.tryGetModuleNameFromFile(factory, node, host, compilerOptions), jsonSourceFile = ts.isJsonSourceFile(node) && node, _a = collectAsynchronousDependencies(node, !0), aliasedModuleNames = _a.aliasedModuleNames, unaliasedModuleNames = _a.unaliasedModuleNames, importAliasNames = _a.importAliasNames, updated = factory.updateSourceFile(node, ts.setTextRange(factory.createNodeArray([
factory.createExpressionStatement(factory.createCallExpression(define, void 0, __spreadArray(__spreadArray([], moduleName ? [
moduleName
] : [], !0), [
factory.createArrayLiteralExpression(jsonSourceFile ? ts.emptyArray : __spreadArray(__spreadArray([
factory.createStringLiteral("require"),
factory.createStringLiteral("exports")
], aliasedModuleNames, !0), unaliasedModuleNames, !0)),
jsonSourceFile ? jsonSourceFile.statements.length ? jsonSourceFile.statements[0].expression : factory.createObjectLiteralExpression() : factory.createFunctionExpression(void 0, void 0, void 0, void 0, __spreadArray([
factory.createParameterDeclaration(void 0, void 0, void 0, "require"),
factory.createParameterDeclaration(void 0, void 0, void 0, "exports")
], importAliasNames, !0), void 0, transformAsynchronousModuleBody(node))
], !1)))
]), node.statements));
return ts.addEmitHelpers(updated, context.readEmitHelpers()), updated;
}
function transformUMDModule(node) {
var _a = collectAsynchronousDependencies(node, !1), aliasedModuleNames = _a.aliasedModuleNames, unaliasedModuleNames = _a.unaliasedModuleNames, importAliasNames = _a.importAliasNames, moduleName = ts.tryGetModuleNameFromFile(factory, node, host, compilerOptions), umdHeader = factory.createFunctionExpression(void 0, void 0, void 0, void 0, [
factory.createParameterDeclaration(void 0, void 0, void 0, "factory")
], void 0, ts.setTextRange(factory.createBlock([
factory.createIfStatement(factory.createLogicalAnd(factory.createTypeCheck(factory.createIdentifier("module"), "object"), factory.createTypeCheck(factory.createPropertyAccessExpression(factory.createIdentifier("module"), "exports"), "object")), factory.createBlock([
factory.createVariableStatement(void 0, [
factory.createVariableDeclaration("v", void 0, void 0, factory.createCallExpression(factory.createIdentifier("factory"), void 0, [
factory.createIdentifier("require"),
factory.createIdentifier("exports")
]))
]),
ts.setEmitFlags(factory.createIfStatement(factory.createStrictInequality(factory.createIdentifier("v"), factory.createIdentifier("undefined")), factory.createExpressionStatement(factory.createAssignment(factory.createPropertyAccessExpression(factory.createIdentifier("module"), "exports"), factory.createIdentifier("v")))), 1)
]), factory.createIfStatement(factory.createLogicalAnd(factory.createTypeCheck(factory.createIdentifier("define"), "function"), factory.createPropertyAccessExpression(factory.createIdentifier("define"), "amd")), factory.createBlock([
factory.createExpressionStatement(factory.createCallExpression(factory.createIdentifier("define"), void 0, __spreadArray(__spreadArray([], moduleName ? [
moduleName
] : [], !0), [
factory.createArrayLiteralExpression(__spreadArray(__spreadArray([
factory.createStringLiteral("require"),
factory.createStringLiteral("exports")
], aliasedModuleNames, !0), unaliasedModuleNames, !0)),
factory.createIdentifier("factory")
], !1)))
])))
], !0), void 0)), updated = factory.updateSourceFile(node, ts.setTextRange(factory.createNodeArray([
factory.createExpressionStatement(factory.createCallExpression(umdHeader, void 0, [
factory.createFunctionExpression(void 0, void 0, void 0, void 0, __spreadArray([
factory.createParameterDeclaration(void 0, void 0, void 0, "require"),
factory.createParameterDeclaration(void 0, void 0, void 0, "exports")
], importAliasNames, !0), void 0, transformAsynchronousModuleBody(node))
]))
]), node.statements));
return ts.addEmitHelpers(updated, context.readEmitHelpers()), updated;
}
function collectAsynchronousDependencies(node, includeNonAmdDependencies) {
for(var aliasedModuleNames = [], unaliasedModuleNames = [], importAliasNames = [], _i = 0, _a = node.amdDependencies; _i < _a.length; _i++){
var amdDependency = _a[_i];
amdDependency.name ? (aliasedModuleNames.push(factory.createStringLiteral(amdDependency.path)), importAliasNames.push(factory.createParameterDeclaration(void 0, void 0, void 0, amdDependency.name))) : unaliasedModuleNames.push(factory.createStringLiteral(amdDependency.path));
}
for(var _b = 0, _c = currentModuleInfo.externalImports; _b < _c.length; _b++){
var importNode = _c[_b], externalModuleName = ts.getExternalModuleNameLiteral(factory, importNode, currentSourceFile, host, resolver, compilerOptions), importAliasName = ts.getLocalNameForExternalImport(factory, importNode, currentSourceFile);
externalModuleName && (includeNonAmdDependencies && importAliasName ? (ts.setEmitFlags(importAliasName, 4), aliasedModuleNames.push(externalModuleName), importAliasNames.push(factory.createParameterDeclaration(void 0, void 0, void 0, importAliasName))) : unaliasedModuleNames.push(externalModuleName));
}
return {
aliasedModuleNames: aliasedModuleNames,
unaliasedModuleNames: unaliasedModuleNames,
importAliasNames: importAliasNames
};
}
function getAMDImportExpressionForImport(node) {
if (!(ts.isImportEqualsDeclaration(node) || ts.isExportDeclaration(node)) && ts.getExternalModuleNameLiteral(factory, node, currentSourceFile, host, resolver, compilerOptions)) {
var name = ts.getLocalNameForExternalImport(factory, node, currentSourceFile), expr = getHelperExpressionForImport(node, name);
if (expr !== name) return factory.createExpressionStatement(factory.createAssignment(name, expr));
}
}
function transformAsynchronousModuleBody(node) {
startLexicalEnvironment();
var statements = [], statementOffset = factory.copyPrologue(node.statements, statements, !compilerOptions.noImplicitUseStrict, topLevelVisitor);
shouldEmitUnderscoreUnderscoreESModule() && ts.append(statements, createUnderscoreUnderscoreESModule()), ts.length(currentModuleInfo.exportedNames) && ts.append(statements, factory.createExpressionStatement(ts.reduceLeft(currentModuleInfo.exportedNames, function(prev, nextId) {
return factory.createAssignment(factory.createPropertyAccessExpression(factory.createIdentifier("exports"), factory.createIdentifier(ts.idText(nextId))), prev);
}, factory.createVoidZero()))), ts.append(statements, ts.visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, ts.isStatement)), moduleKind === ts.ModuleKind.AMD && ts.addRange(statements, ts.mapDefined(currentModuleInfo.externalImports, getAMDImportExpressionForImport)), ts.addRange(statements, ts.visitNodes(node.statements, topLevelVisitor, ts.isStatement, statementOffset)), addExportEqualsIfNeeded(statements, !0), ts.insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());
var body = factory.createBlock(statements, !0);
return needUMDDynamicImportHelper && ts.addEmitHelper(body, dynamicImportUMDHelper), body;
}
function addExportEqualsIfNeeded(statements, emitAsReturn) {
if (currentModuleInfo.exportEquals) {
var expressionResult = ts.visitNode(currentModuleInfo.exportEquals.expression, visitor);
if (expressionResult) if (emitAsReturn) {
var statement = factory.createReturnStatement(expressionResult);
ts.setTextRange(statement, currentModuleInfo.exportEquals), ts.setEmitFlags(statement, 1920), statements.push(statement);
} else {
var statement = factory.createExpressionStatement(factory.createAssignment(factory.createPropertyAccessExpression(factory.createIdentifier("module"), "exports"), expressionResult));
ts.setTextRange(statement, currentModuleInfo.exportEquals), ts.setEmitFlags(statement, 1536), statements.push(statement);
}
}
}
function topLevelVisitor(node) {
switch(node.kind){
case 265:
return visitImportDeclaration(node);
case 264:
return visitImportEqualsDeclaration(node);
case 271:
return visitExportDeclaration(node);
case 270:
return visitExportAssignment(node);
case 236:
return visitVariableStatement(node);
case 255:
return visitFunctionDeclaration(node);
case 256:
return visitClassDeclaration(node);
case 350:
return visitMergeDeclarationMarker(node);
case 351:
return visitEndOfDeclarationMarker(node);
default:
return visitor(node);
}
}
function visitorWorker(node, valueIsDiscarded) {
if (!(71307264 & node.transformFlags)) return node;
switch(node.kind){
case 241:
return visitForStatement(node);
case 237:
return visitExpressionStatement(node);
case 211:
return visitParenthesizedExpression(node, valueIsDiscarded);
case 348:
return visitPartiallyEmittedExpression(node, valueIsDiscarded);
case 207:
if (ts.isImportCall(node) && void 0 === currentSourceFile.impliedNodeFormat) return visitImportCallExpression(node);
break;
case 220:
if (ts.isDestructuringAssignment(node)) return visitDestructuringAssignment(node, valueIsDiscarded);
break;
case 218:
case 219:
return visitPreOrPostfixUnaryExpression(node, valueIsDiscarded);
}
return ts.visitEachChild(node, visitor, context);
}
function visitor(node) {
return visitorWorker(node, !1);
}
function discardedValueVisitor(node) {
return visitorWorker(node, !0);
}
function visitDestructuringAssignment(node, valueIsDiscarded) {
return !function destructuringNeedsFlattening(node) {
if (ts.isObjectLiteralExpression(node)) for(var _i = 0, _a = node.properties; _i < _a.length; _i++){
var elem = _a[_i];
switch(elem.kind){
case 294:
if (destructuringNeedsFlattening(elem.initializer)) return !0;
break;
case 295:
if (destructuringNeedsFlattening(elem.name)) return !0;
break;
case 296:
if (destructuringNeedsFlattening(elem.expression)) return !0;
break;
case 168:
case 171:
case 172:
return !1;
default:
ts.Debug.assertNever(elem, "Unhandled object member kind");
}
}
else if (ts.isArrayLiteralExpression(node)) for(var _b = 0, _c = node.elements; _b < _c.length; _b++){
var elem = _c[_b];
if (ts.isSpreadElement(elem)) {
if (destructuringNeedsFlattening(elem.expression)) return !0;
} else if (destructuringNeedsFlattening(elem)) return !0;
}
else if (ts.isIdentifier(node)) return ts.length(getExports(node)) > (ts.isExportName(node) ? 1 : 0);
return !1;
}(node.left) ? ts.visitEachChild(node, visitor, context) : ts.flattenDestructuringAssignment(node, visitor, context, 0, !valueIsDiscarded, createAllExportExpressions);
}
function visitForStatement(node) {
return factory.updateForStatement(node, ts.visitNode(node.initializer, discardedValueVisitor, ts.isForInitializer), ts.visitNode(node.condition, visitor, ts.isExpression), ts.visitNode(node.incrementor, discardedValueVisitor, ts.isExpression), ts.visitIterationBody(node.statement, visitor, context));
}
function visitExpressionStatement(node) {
return factory.updateExpressionStatement(node, ts.visitNode(node.expression, discardedValueVisitor, ts.isExpression));
}
function visitParenthesizedExpression(node, valueIsDiscarded) {
return factory.updateParenthesizedExpression(node, ts.visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, ts.isExpression));
}
function visitPartiallyEmittedExpression(node, valueIsDiscarded) {
return factory.updatePartiallyEmittedExpression(node, ts.visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, ts.isExpression));
}
function visitPreOrPostfixUnaryExpression(node, valueIsDiscarded) {
if ((45 === node.operator || 46 === node.operator) && ts.isIdentifier(node.operand) && !ts.isGeneratedIdentifier(node.operand) && !ts.isLocalName(node.operand) && !ts.isDeclarationNameOfEnumOrNamespace(node.operand)) {
var exportedNames = getExports(node.operand);
if (exportedNames) {
var temp = void 0, expression = ts.visitNode(node.operand, visitor, ts.isExpression);
ts.isPrefixUnaryExpression(node) ? expression = factory.updatePrefixUnaryExpression(node, expression) : (expression = factory.updatePostfixUnaryExpression(node, expression), valueIsDiscarded || (temp = factory.createTempVariable(hoistVariableDeclaration), expression = factory.createAssignment(temp, expression), ts.setTextRange(expression, node)), expression = factory.createComma(expression, factory.cloneNode(node.operand)), ts.setTextRange(expression, node));
for(var _i = 0, exportedNames_1 = exportedNames; _i < exportedNames_1.length; _i++){
var exportName = exportedNames_1[_i];
noSubstitution[ts.getNodeId(expression)] = !0, expression = createExportExpression(exportName, expression), ts.setTextRange(expression, node);
}
return temp && (noSubstitution[ts.getNodeId(expression)] = !0, expression = factory.createComma(expression, temp), ts.setTextRange(expression, node)), expression;
}
}
return ts.visitEachChild(node, visitor, context);
}
function visitImportCallExpression(node) {
var externalModuleName = ts.getExternalModuleNameLiteral(factory, node, currentSourceFile, host, resolver, compilerOptions), firstArgument = ts.visitNode(ts.firstOrUndefined(node.arguments), visitor), argument = !externalModuleName || firstArgument && ts.isStringLiteral(firstArgument) && firstArgument.text === externalModuleName.text ? firstArgument : externalModuleName, containsLexicalThis = !!(8192 & node.transformFlags);
switch(compilerOptions.module){
case ts.ModuleKind.AMD:
return createImportCallExpressionAMD(argument, containsLexicalThis);
case ts.ModuleKind.UMD:
return createImportCallExpressionUMD(null != argument ? argument : factory.createVoidZero(), containsLexicalThis);
case ts.ModuleKind.CommonJS:
default:
return createImportCallExpressionCommonJS(argument, containsLexicalThis);
}
}
function createImportCallExpressionUMD(arg, containsLexicalThis) {
if (needUMDDynamicImportHelper = !0, ts.isSimpleCopiableExpression(arg)) {
var argClone = ts.isGeneratedIdentifier(arg) ? arg : ts.isStringLiteral(arg) ? factory.createStringLiteralFromNode(arg) : ts.setEmitFlags(ts.setTextRange(factory.cloneNode(arg), arg), 1536);
return factory.createConditionalExpression(factory.createIdentifier("__syncRequire"), void 0, createImportCallExpressionCommonJS(arg, containsLexicalThis), void 0, createImportCallExpressionAMD(argClone, containsLexicalThis));
}
var temp = factory.createTempVariable(hoistVariableDeclaration);
return factory.createComma(factory.createAssignment(temp, arg), factory.createConditionalExpression(factory.createIdentifier("__syncRequire"), void 0, createImportCallExpressionCommonJS(temp, containsLexicalThis), void 0, createImportCallExpressionAMD(temp, containsLexicalThis)));
}
function createImportCallExpressionAMD(arg, containsLexicalThis) {
var func, resolve = factory.createUniqueName("resolve"), reject = factory.createUniqueName("reject"), parameters = [
factory.createParameterDeclaration(void 0, void 0, void 0, resolve),
factory.createParameterDeclaration(void 0, void 0, void 0, reject)
], body = factory.createBlock([
factory.createExpressionStatement(factory.createCallExpression(factory.createIdentifier("require"), void 0, [
factory.createArrayLiteralExpression([
arg || factory.createOmittedExpression()
]),
resolve,
reject
]))
]);
languageVersion >= 2 ? func = factory.createArrowFunction(void 0, void 0, parameters, void 0, void 0, body) : (func = factory.createFunctionExpression(void 0, void 0, void 0, void 0, parameters, void 0, body), containsLexicalThis && ts.setEmitFlags(func, 8));
var promise = factory.createNewExpression(factory.createIdentifier("Promise"), void 0, [
func
]);
return ts.getESModuleInterop(compilerOptions) ? factory.createCallExpression(factory.createPropertyAccessExpression(promise, factory.createIdentifier("then")), void 0, [
emitHelpers().createImportStarCallbackHelper()
]) : promise;
}
function createImportCallExpressionCommonJS(arg, containsLexicalThis) {
var func, promiseResolveCall = factory.createCallExpression(factory.createPropertyAccessExpression(factory.createIdentifier("Promise"), "resolve"), void 0, []), requireCall = factory.createCallExpression(factory.createIdentifier("require"), void 0, arg ? [
arg
] : []);
return ts.getESModuleInterop(compilerOptions) && (requireCall = emitHelpers().createImportStarHelper(requireCall)), languageVersion >= 2 ? func = factory.createArrowFunction(void 0, void 0, [], void 0, void 0, requireCall) : (func = factory.createFunctionExpression(void 0, void 0, void 0, void 0, [], void 0, factory.createBlock([
factory.createReturnStatement(requireCall)
])), containsLexicalThis && ts.setEmitFlags(func, 8)), factory.createCallExpression(factory.createPropertyAccessExpression(promiseResolveCall, "then"), void 0, [
func
]);
}
function getHelperExpressionForImport(node, innerExpr) {
return !ts.getESModuleInterop(compilerOptions) || 67108864 & ts.getEmitFlags(node) ? innerExpr : ts.getImportNeedsImportStarHelper(node) ? emitHelpers().createImportStarHelper(innerExpr) : ts.getImportNeedsImportDefaultHelper(node) ? emitHelpers().createImportDefaultHelper(innerExpr) : innerExpr;
}
function visitImportDeclaration(node) {
var statements, namespaceDeclaration = ts.getNamespaceDeclarationNode(node);
if (moduleKind !== ts.ModuleKind.AMD) {
if (!node.importClause) return ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(createRequireCall(node)), node), node);
var variables = [];
namespaceDeclaration && !ts.isDefaultImport(node) ? variables.push(factory.createVariableDeclaration(factory.cloneNode(namespaceDeclaration.name), void 0, void 0, getHelperExpressionForImport(node, createRequireCall(node)))) : (variables.push(factory.createVariableDeclaration(factory.getGeneratedNameForNode(node), void 0, void 0, getHelperExpressionForImport(node, createRequireCall(node)))), namespaceDeclaration && ts.isDefaultImport(node) && variables.push(factory.createVariableDeclaration(factory.cloneNode(namespaceDeclaration.name), void 0, void 0, factory.getGeneratedNameForNode(node)))), statements = ts.append(statements, ts.setOriginalNode(ts.setTextRange(factory.createVariableStatement(void 0, factory.createVariableDeclarationList(variables, languageVersion >= 2 ? 2 : 0)), node), node));
} else namespaceDeclaration && ts.isDefaultImport(node) && (statements = ts.append(statements, factory.createVariableStatement(void 0, factory.createVariableDeclarationList([
ts.setOriginalNode(ts.setTextRange(factory.createVariableDeclaration(factory.cloneNode(namespaceDeclaration.name), void 0, void 0, factory.getGeneratedNameForNode(node)), node), node)
], languageVersion >= 2 ? 2 : 0))));
if (hasAssociatedEndOfDeclarationMarker(node)) {
var id = ts.getOriginalNodeId(node);
deferredExports[id] = appendExportsOfImportDeclaration(deferredExports[id], node);
} else statements = appendExportsOfImportDeclaration(statements, node);
return ts.singleOrMany(statements);
}
function createRequireCall(importNode) {
var moduleName = ts.getExternalModuleNameLiteral(factory, importNode, currentSourceFile, host, resolver, compilerOptions), args = [];
return moduleName && args.push(moduleName), factory.createCallExpression(factory.createIdentifier("require"), void 0, args);
}
function visitImportEqualsDeclaration(node) {
if (ts.Debug.assert(ts.isExternalModuleImportEqualsDeclaration(node), "import= for internal module references should be handled in an earlier transformer."), moduleKind !== ts.ModuleKind.AMD ? statements = ts.hasSyntacticModifier(node, 1) ? ts.append(statements, ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(createExportExpression(node.name, createRequireCall(node))), node), node)) : ts.append(statements, ts.setOriginalNode(ts.setTextRange(factory.createVariableStatement(void 0, factory.createVariableDeclarationList([
factory.createVariableDeclaration(factory.cloneNode(node.name), void 0, void 0, createRequireCall(node))
], languageVersion >= 2 ? 2 : 0)), node), node)) : ts.hasSyntacticModifier(node, 1) && (statements = ts.append(statements, ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(createExportExpression(factory.getExportName(node), factory.getLocalName(node))), node), node))), hasAssociatedEndOfDeclarationMarker(node)) {
var statements, id = ts.getOriginalNodeId(node);
deferredExports[id] = appendExportsOfImportEqualsDeclaration(deferredExports[id], node);
} else statements = appendExportsOfImportEqualsDeclaration(statements, node);
return ts.singleOrMany(statements);
}
function visitExportDeclaration(node) {
if (node.moduleSpecifier) {
var generatedName = factory.getGeneratedNameForNode(node);
if (node.exportClause && ts.isNamedExports(node.exportClause)) {
var statements = [];
moduleKind !== ts.ModuleKind.AMD && statements.push(ts.setOriginalNode(ts.setTextRange(factory.createVariableStatement(void 0, factory.createVariableDeclarationList([
factory.createVariableDeclaration(generatedName, void 0, void 0, createRequireCall(node))
])), node), node));
for(var _i = 0, _a = node.exportClause.elements; _i < _a.length; _i++){
var specifier = _a[_i];
if (0 === languageVersion) statements.push(ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(emitHelpers().createCreateBindingHelper(generatedName, factory.createStringLiteralFromNode(specifier.propertyName || specifier.name), specifier.propertyName ? factory.createStringLiteralFromNode(specifier.name) : void 0)), specifier), specifier));
else {
var exportNeedsImportDefault = !!ts.getESModuleInterop(compilerOptions) && !(67108864 & ts.getEmitFlags(node)) && "default" === ts.idText(specifier.propertyName || specifier.name), exportedValue = factory.createPropertyAccessExpression(exportNeedsImportDefault ? emitHelpers().createImportDefaultHelper(generatedName) : generatedName, specifier.propertyName || specifier.name);
statements.push(ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(createExportExpression(factory.getExportName(specifier), exportedValue, void 0, !0)), specifier), specifier));
}
}
return ts.singleOrMany(statements);
}
if (!node.exportClause) return ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(emitHelpers().createExportStarHelper(moduleKind !== ts.ModuleKind.AMD ? createRequireCall(node) : generatedName)), node), node);
var node1, innerExpr, statements = [];
return statements.push(ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(createExportExpression(factory.cloneNode(node.exportClause.name), (node1 = node, innerExpr = moduleKind !== ts.ModuleKind.AMD ? createRequireCall(node) : ts.isExportNamespaceAsDefaultDeclaration(node) ? generatedName : factory.createIdentifier(ts.idText(node.exportClause.name)), !ts.getESModuleInterop(compilerOptions) || 67108864 & ts.getEmitFlags(node1) ? innerExpr : ts.getExportNeedsImportStarHelper(node1) ? emitHelpers().createImportStarHelper(innerExpr) : innerExpr))), node), node)), ts.singleOrMany(statements);
}
}
function visitExportAssignment(node) {
if (!node.isExportEquals) {
var statements, original = node.original;
if (original && hasAssociatedEndOfDeclarationMarker(original)) {
var id = ts.getOriginalNodeId(node);
deferredExports[id] = appendExportStatement(deferredExports[id], factory.createIdentifier("default"), ts.visitNode(node.expression, visitor), node, !0);
} else statements = appendExportStatement(statements, factory.createIdentifier("default"), ts.visitNode(node.expression, visitor), node, !0);
return ts.singleOrMany(statements);
}
}
function visitFunctionDeclaration(node) {
var statements;
if (statements = ts.hasSyntacticModifier(node, 1) ? ts.append(statements, ts.setOriginalNode(ts.setTextRange(factory.createFunctionDeclaration(void 0, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), node.asteriskToken, factory.getDeclarationName(node, !0, !0), void 0, ts.visitNodes(node.parameters, visitor), void 0, ts.visitEachChild(node.body, visitor, context)), node), node)) : ts.append(statements, ts.visitEachChild(node, visitor, context)), hasAssociatedEndOfDeclarationMarker(node)) {
var id = ts.getOriginalNodeId(node);
deferredExports[id] = appendExportsOfHoistedDeclaration(deferredExports[id], node);
} else statements = appendExportsOfHoistedDeclaration(statements, node);
return ts.singleOrMany(statements);
}
function visitClassDeclaration(node) {
var statements;
if (statements = ts.hasSyntacticModifier(node, 1) ? ts.append(statements, ts.setOriginalNode(ts.setTextRange(factory.createClassDeclaration(void 0, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), factory.getDeclarationName(node, !0, !0), void 0, ts.visitNodes(node.heritageClauses, visitor), ts.visitNodes(node.members, visitor)), node), node)) : ts.append(statements, ts.visitEachChild(node, visitor, context)), hasAssociatedEndOfDeclarationMarker(node)) {
var id = ts.getOriginalNodeId(node);
deferredExports[id] = appendExportsOfHoistedDeclaration(deferredExports[id], node);
} else statements = appendExportsOfHoistedDeclaration(statements, node);
return ts.singleOrMany(statements);
}
function visitVariableStatement(node) {
if (ts.hasSyntacticModifier(node, 1)) {
for(var statements, variables, expressions, modifiers = void 0, removeCommentsOnExpressions = !1, _i = 0, _a = node.declarationList.declarations; _i < _a.length; _i++){
var variable = _a[_i];
if (ts.isIdentifier(variable.name) && ts.isLocalName(variable.name)) modifiers || (modifiers = ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier)), variables = ts.append(variables, variable);
else if (variable.initializer) if (!ts.isBindingPattern(variable.name) && (ts.isArrowFunction(variable.initializer) || ts.isFunctionExpression(variable.initializer) || ts.isClassExpression(variable.initializer))) {
var expression = factory.createAssignment(ts.setTextRange(factory.createPropertyAccessExpression(factory.createIdentifier("exports"), variable.name), variable.name), factory.createIdentifier(ts.getTextOfIdentifierOrLiteral(variable.name))), updatedVariable = factory.createVariableDeclaration(variable.name, variable.exclamationToken, variable.type, ts.visitNode(variable.initializer, visitor));
variables = ts.append(variables, updatedVariable), expressions = ts.append(expressions, expression), removeCommentsOnExpressions = !0;
} else expressions = ts.append(expressions, transformInitializedVariable(variable));
}
if (variables && (statements = ts.append(statements, factory.updateVariableStatement(node, modifiers, factory.updateVariableDeclarationList(node.declarationList, variables)))), expressions) {
var statement = ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(factory.inlineExpressions(expressions)), node), node);
removeCommentsOnExpressions && ts.removeAllComments(statement), statements = ts.append(statements, statement);
}
} else statements = ts.append(statements, ts.visitEachChild(node, visitor, context));
if (hasAssociatedEndOfDeclarationMarker(node)) {
var id = ts.getOriginalNodeId(node);
deferredExports[id] = appendExportsOfVariableStatement(deferredExports[id], node);
} else statements = appendExportsOfVariableStatement(statements, node);
return ts.singleOrMany(statements);
}
function createAllExportExpressions(name, value, location) {
var exportedNames = getExports(name);
if (exportedNames) {
for(var expression = ts.isExportName(name) ? value : factory.createAssignment(name, value), _i = 0, exportedNames_2 = exportedNames; _i < exportedNames_2.length; _i++){
var exportName = exportedNames_2[_i];
ts.setEmitFlags(expression, 4), expression = createExportExpression(exportName, expression, location);
}
return expression;
}
return factory.createAssignment(name, value);
}
function transformInitializedVariable(node) {
return ts.isBindingPattern(node.name) ? ts.flattenDestructuringAssignment(ts.visitNode(node, visitor), void 0, context, 0, !1, createAllExportExpressions) : factory.createAssignment(ts.setTextRange(factory.createPropertyAccessExpression(factory.createIdentifier("exports"), node.name), node.name), node.initializer ? ts.visitNode(node.initializer, visitor) : factory.createVoidZero());
}
function visitMergeDeclarationMarker(node) {
if (hasAssociatedEndOfDeclarationMarker(node) && 236 === node.original.kind) {
var id = ts.getOriginalNodeId(node);
deferredExports[id] = appendExportsOfVariableStatement(deferredExports[id], node.original);
}
return node;
}
function hasAssociatedEndOfDeclarationMarker(node) {
return (4194304 & ts.getEmitFlags(node)) != 0;
}
function visitEndOfDeclarationMarker(node) {
var id = ts.getOriginalNodeId(node), statements = deferredExports[id];
return statements ? (delete deferredExports[id], ts.append(statements, node)) : node;
}
function appendExportsOfImportDeclaration(statements, decl) {
if (currentModuleInfo.exportEquals) return statements;
var importClause = decl.importClause;
if (!importClause) return statements;
importClause.name && (statements = appendExportsOfDeclaration(statements, importClause));
var namedBindings = importClause.namedBindings;
if (namedBindings) switch(namedBindings.kind){
case 267:
statements = appendExportsOfDeclaration(statements, namedBindings);
break;
case 268:
for(var _i = 0, _a = namedBindings.elements; _i < _a.length; _i++)statements = appendExportsOfDeclaration(statements, _a[_i], !0);
}
return statements;
}
function appendExportsOfImportEqualsDeclaration(statements, decl) {
return currentModuleInfo.exportEquals ? statements : appendExportsOfDeclaration(statements, decl);
}
function appendExportsOfVariableStatement(statements, node) {
if (currentModuleInfo.exportEquals) return statements;
for(var _i = 0, _a = node.declarationList.declarations; _i < _a.length; _i++)statements = appendExportsOfBindingElement(statements, _a[_i]);
return statements;
}
function appendExportsOfBindingElement(statements, decl) {
if (currentModuleInfo.exportEquals) return statements;
if (ts.isBindingPattern(decl.name)) for(var _i = 0, _a = decl.name.elements; _i < _a.length; _i++){
var element = _a[_i];
ts.isOmittedExpression(element) || (statements = appendExportsOfBindingElement(statements, element));
}
else ts.isGeneratedIdentifier(decl.name) || (statements = appendExportsOfDeclaration(statements, decl));
return statements;
}
function appendExportsOfHoistedDeclaration(statements, decl) {
return currentModuleInfo.exportEquals || (ts.hasSyntacticModifier(decl, 1) && (statements = appendExportStatement(statements, ts.hasSyntacticModifier(decl, 512) ? factory.createIdentifier("default") : factory.getDeclarationName(decl), factory.getLocalName(decl), decl)), decl.name && (statements = appendExportsOfDeclaration(statements, decl))), statements;
}
function appendExportsOfDeclaration(statements, decl, liveBinding) {
var name = factory.getDeclarationName(decl), exportSpecifiers = currentModuleInfo.exportSpecifiers.get(ts.idText(name));
if (exportSpecifiers) for(var _i = 0, exportSpecifiers_1 = exportSpecifiers; _i < exportSpecifiers_1.length; _i++){
var exportSpecifier = exportSpecifiers_1[_i];
statements = appendExportStatement(statements, exportSpecifier.name, name, exportSpecifier.name, void 0, liveBinding);
}
return statements;
}
function appendExportStatement(statements, exportName, expression, location, allowComments, liveBinding) {
return statements = ts.append(statements, createExportStatement(exportName, expression, location, allowComments, liveBinding));
}
function createUnderscoreUnderscoreESModule() {
var statement;
return statement = 0 === languageVersion ? factory.createExpressionStatement(createExportExpression(factory.createIdentifier("__esModule"), factory.createTrue())) : factory.createExpressionStatement(factory.createCallExpression(factory.createPropertyAccessExpression(factory.createIdentifier("Object"), "defineProperty"), void 0, [
factory.createIdentifier("exports"),
factory.createStringLiteral("__esModule"),
factory.createObjectLiteralExpression([
factory.createPropertyAssignment("value", factory.createTrue())
])
])), ts.setEmitFlags(statement, 1048576), statement;
}
function createExportStatement(name, value, location, allowComments, liveBinding) {
var statement = ts.setTextRange(factory.createExpressionStatement(createExportExpression(name, value, void 0, liveBinding)), location);
return ts.startOnNewLine(statement), allowComments || ts.setEmitFlags(statement, 1536), statement;
}
function createExportExpression(name, value, location, liveBinding) {
return ts.setTextRange(liveBinding && 0 !== languageVersion ? factory.createCallExpression(factory.createPropertyAccessExpression(factory.createIdentifier("Object"), "defineProperty"), void 0, [
factory.createIdentifier("exports"),
factory.createStringLiteralFromNode(name),
factory.createObjectLiteralExpression([
factory.createPropertyAssignment("enumerable", factory.createTrue()),
factory.createPropertyAssignment("get", factory.createFunctionExpression(void 0, void 0, void 0, void 0, [], void 0, factory.createBlock([
factory.createReturnStatement(value)
])))
])
]) : factory.createAssignment(factory.createPropertyAccessExpression(factory.createIdentifier("exports"), factory.cloneNode(name)), value), location);
}
function modifierVisitor(node) {
switch(node.kind){
case 93:
case 88:
return;
}
return node;
}
function substituteShorthandPropertyAssignment(node) {
var name = node.name, exportedOrImportedName = substituteExpressionIdentifier(name);
if (exportedOrImportedName !== name) {
if (node.objectAssignmentInitializer) {
var initializer = factory.createAssignment(exportedOrImportedName, node.objectAssignmentInitializer);
return ts.setTextRange(factory.createPropertyAssignment(name, initializer), node);
}
return ts.setTextRange(factory.createPropertyAssignment(name, exportedOrImportedName), node);
}
return node;
}
function substituteExpression(node) {
switch(node.kind){
case 79:
return substituteExpressionIdentifier(node);
case 207:
return substituteCallExpression(node);
case 209:
return substituteTaggedTemplateExpression(node);
case 220:
return substituteBinaryExpression(node);
}
return node;
}
function substituteCallExpression(node) {
if (ts.isIdentifier(node.expression)) {
var expression = substituteExpressionIdentifier(node.expression);
if (noSubstitution[ts.getNodeId(expression)] = !0, !ts.isIdentifier(expression) && !(4096 & ts.getEmitFlags(node.expression))) return ts.addEmitFlags(factory.updateCallExpression(node, expression, void 0, node.arguments), 536870912);
}
return node;
}
function substituteTaggedTemplateExpression(node) {
if (ts.isIdentifier(node.tag)) {
var tag = substituteExpressionIdentifier(node.tag);
if (noSubstitution[ts.getNodeId(tag)] = !0, !ts.isIdentifier(tag) && !(4096 & ts.getEmitFlags(node.tag))) return ts.addEmitFlags(factory.updateTaggedTemplateExpression(node, tag, void 0, node.template), 536870912);
}
return node;
}
function substituteExpressionIdentifier(node) {
var _a, _b;
if (4096 & ts.getEmitFlags(node)) {
var externalHelpersModuleName = ts.getExternalHelpersModuleName(currentSourceFile);
if (externalHelpersModuleName) return factory.createPropertyAccessExpression(externalHelpersModuleName, node);
} else if (!(ts.isGeneratedIdentifier(node) && !(64 & node.autoGenerateFlags)) && !ts.isLocalName(node)) {
var exportContainer = resolver.getReferencedExportContainer(node, ts.isExportName(node));
if (exportContainer && 303 === exportContainer.kind) return ts.setTextRange(factory.createPropertyAccessExpression(factory.createIdentifier("exports"), factory.cloneNode(node)), node);
var importDeclaration = resolver.getReferencedImportDeclaration(node);
if (importDeclaration) {
if (ts.isImportClause(importDeclaration)) return ts.setTextRange(factory.createPropertyAccessExpression(factory.getGeneratedNameForNode(importDeclaration.parent), factory.createIdentifier("default")), node);
if (ts.isImportSpecifier(importDeclaration)) {
var name = importDeclaration.propertyName || importDeclaration.name;
return ts.setTextRange(factory.createPropertyAccessExpression(factory.getGeneratedNameForNode((null === (_b = null === (_a = importDeclaration.parent) || void 0 === _a ? void 0 : _a.parent) || void 0 === _b ? void 0 : _b.parent) || importDeclaration), factory.cloneNode(name)), node);
}
}
}
return node;
}
function substituteBinaryExpression(node) {
if (ts.isAssignmentOperator(node.operatorToken.kind) && ts.isIdentifier(node.left) && !ts.isGeneratedIdentifier(node.left) && !ts.isLocalName(node.left) && !ts.isDeclarationNameOfEnumOrNamespace(node.left)) {
var exportedNames = getExports(node.left);
if (exportedNames) {
for(var expression = node, _i = 0, exportedNames_3 = exportedNames; _i < exportedNames_3.length; _i++){
var exportName = exportedNames_3[_i];
noSubstitution[ts.getNodeId(expression)] = !0, expression = createExportExpression(exportName, expression, node);
}
return expression;
}
}
return node;
}
function getExports(name) {
if (!ts.isGeneratedIdentifier(name)) {
var valueDeclaration = resolver.getReferencedImportDeclaration(name) || resolver.getReferencedValueDeclaration(name);
if (valueDeclaration) return currentModuleInfo && currentModuleInfo.exportedBindings[ts.getOriginalNodeId(valueDeclaration)];
}
}
};
var dynamicImportUMDHelper = {
name: "typescript:dynamicimport-sync-require",
scoped: !0,
text: "\n var __syncRequire = typeof module === \"object\" && typeof module.exports === \"object\";"
};
}(ts || (ts = {}));

View File

@ -0,0 +1,964 @@
var e;
(function(e) {
function t(t) {
function a(t) {
switch(t){
case e.ModuleKind.AMD:
return M;
case e.ModuleKind.UMD:
return D;
default:
return A;
}
}
var i = t.factory, n = t.getEmitHelperFactory, s = t.startLexicalEnvironment, o = t.endLexicalEnvironment, c = t.hoistVariableDeclaration;
var l = t.getCompilerOptions();
var u = t.getEmitResolver();
var d = t.getEmitHost();
var p = e.getEmitScriptTarget(l);
var f = e.getEmitModuleKind(l);
var m = t.onSubstituteNode;
var g = t.onEmitNode;
t.onSubstituteNode = eN;
t.onEmitNode = eE;
t.enableSubstitution(207);
t.enableSubstitution(209);
t.enableSubstitution(79);
t.enableSubstitution(220);
t.enableSubstitution(295);
t.enableEmitNotification(303);
var x = [];
var v = [];
var E;
var N;
var I = [];
var S;
return e.chainBundle(t, y);
function y(r) {
if (r.isDeclarationFile || !(e.isEffectiveExternalModule(r, l) || r.transformFlags & 4194304 || (e.isJsonSourceFile(r) && e.hasJsonModuleEmitEnabled(l) && e.outFile(l)))) {
return r;
}
E = r;
N = e.collectExternalModuleInfo(t, r, u, l);
x[e.getOriginalNodeId(r)] = N;
var i = a(f);
var n = i(r);
E = undefined;
N = undefined;
S = false;
return n;
}
function h() {
if (!N.exportEquals && e.isExternalModule(E)) {
return true;
}
return false;
}
function A(r) {
s();
var a = [];
var n = e.getStrictOptionValue(l, "alwaysStrict") || (!l.noImplicitUseStrict && e.isExternalModule(E));
var c = i.copyPrologue(r.statements, a, n && !e.isJsonSourceFile(r), O);
if (h()) {
e.append(a, em());
}
if (e.length(N.exportedNames)) {
var u = 50;
for(var d = 0; d < N.exportedNames.length; d += u){
e.append(a, i.createExpressionStatement(e.reduceLeft(N.exportedNames.slice(d, d + u), function(t, r) {
return i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("exports"), i.createIdentifier(e.idText(r))), t);
}, i.createVoidZero())));
}
}
e.append(a, e.visitNode(N.externalHelpersImportDeclaration, O, e.isStatement));
e.addRange(a, e.visitNodes(r.statements, O, e.isStatement, c));
T(a, false);
e.insertStatementsAfterStandardPrologue(a, o());
var p = i.updateSourceFile(r, e.setTextRange(i.createNodeArray(a), r.statements));
e.addEmitHelpers(p, t.readEmitHelpers());
return p;
}
function M(r) {
var a = i.createIdentifier("define");
var n = e.tryGetModuleNameFromFile(i, r, d, l);
var s = e.isJsonSourceFile(r) && r;
var o = b(r, true), c = o.aliasedModuleNames, u = o.unaliasedModuleNames, p = o.importAliasNames;
var f = i.updateSourceFile(r, e.setTextRange(i.createNodeArray([
i.createExpressionStatement(i.createCallExpression(a, undefined, __spreadArray(__spreadArray([], (n ? [
n
] : []), true), [
i.createArrayLiteralExpression(s ? e.emptyArray : __spreadArray(__spreadArray([
i.createStringLiteral("require"),
i.createStringLiteral("exports")
], c, true), u, true)),
s ? s.statements.length ? s.statements[0].expression : i.createObjectLiteralExpression() : i.createFunctionExpression(undefined, undefined, undefined, undefined, __spreadArray([
i.createParameterDeclaration(undefined, undefined, undefined, "require"),
i.createParameterDeclaration(undefined, undefined, undefined, "exports")
], p, true), undefined, $(r))
], false)))
]), r.statements));
e.addEmitHelpers(f, t.readEmitHelpers());
return f;
}
function D(r) {
var a = b(r, false), n = a.aliasedModuleNames, s = a.unaliasedModuleNames, o = a.importAliasNames;
var c = e.tryGetModuleNameFromFile(i, r, d, l);
var u = i.createFunctionExpression(undefined, undefined, undefined, undefined, [
i.createParameterDeclaration(undefined, undefined, undefined, "factory")
], undefined, e.setTextRange(i.createBlock([
i.createIfStatement(i.createLogicalAnd(i.createTypeCheck(i.createIdentifier("module"), "object"), i.createTypeCheck(i.createPropertyAccessExpression(i.createIdentifier("module"), "exports"), "object")), i.createBlock([
i.createVariableStatement(undefined, [
i.createVariableDeclaration("v", undefined, undefined, i.createCallExpression(i.createIdentifier("factory"), undefined, [
i.createIdentifier("require"),
i.createIdentifier("exports")
]))
]),
e.setEmitFlags(i.createIfStatement(i.createStrictInequality(i.createIdentifier("v"), i.createIdentifier("undefined")), i.createExpressionStatement(i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("module"), "exports"), i.createIdentifier("v")))), 1)
]), i.createIfStatement(i.createLogicalAnd(i.createTypeCheck(i.createIdentifier("define"), "function"), i.createPropertyAccessExpression(i.createIdentifier("define"), "amd")), i.createBlock([
i.createExpressionStatement(i.createCallExpression(i.createIdentifier("define"), undefined, __spreadArray(__spreadArray([], (c ? [
c
] : []), true), [
i.createArrayLiteralExpression(__spreadArray(__spreadArray([
i.createStringLiteral("require"),
i.createStringLiteral("exports")
], n, true), s, true)),
i.createIdentifier("factory")
], false)))
])))
], true), undefined));
var p = i.updateSourceFile(r, e.setTextRange(i.createNodeArray([
i.createExpressionStatement(i.createCallExpression(u, undefined, [
i.createFunctionExpression(undefined, undefined, undefined, undefined, __spreadArray([
i.createParameterDeclaration(undefined, undefined, undefined, "require"),
i.createParameterDeclaration(undefined, undefined, undefined, "exports")
], o, true), undefined, $(r))
]))
]), r.statements));
e.addEmitHelpers(p, t.readEmitHelpers());
return p;
}
function b(t, r) {
var a = [];
var n = [];
var s = [];
for(var o = 0, c = t.amdDependencies; o < c.length; o++){
var p = c[o];
if (p.name) {
a.push(i.createStringLiteral(p.path));
s.push(i.createParameterDeclaration(undefined, undefined, undefined, p.name));
} else {
n.push(i.createStringLiteral(p.path));
}
}
for(var f = 0, m = N.externalImports; f < m.length; f++){
var g = m[f];
var x = e.getExternalModuleNameLiteral(i, g, E, d, u, l);
var v = e.getLocalNameForExternalImport(i, g, E);
if (x) {
if (r && v) {
e.setEmitFlags(v, 4);
a.push(x);
s.push(i.createParameterDeclaration(undefined, undefined, undefined, v));
} else {
n.push(x);
}
}
}
return {
aliasedModuleNames: a,
unaliasedModuleNames: n,
importAliasNames: s
};
}
function F(t) {
if (e.isImportEqualsDeclaration(t) || e.isExportDeclaration(t) || !e.getExternalModuleNameLiteral(i, t, E, d, u, l)) {
return undefined;
}
var r = e.getLocalNameForExternalImport(i, t, E);
var a = U(t, r);
if (a === r) {
return undefined;
}
return i.createExpressionStatement(i.createAssignment(r, a));
}
function $(t) {
s();
var a = [];
var n = i.copyPrologue(t.statements, a, !l.noImplicitUseStrict, O);
if (h()) {
e.append(a, em());
}
if (e.length(N.exportedNames)) {
e.append(a, i.createExpressionStatement(e.reduceLeft(N.exportedNames, function(t, r) {
return i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("exports"), i.createIdentifier(e.idText(r))), t);
}, i.createVoidZero())));
}
e.append(a, e.visitNode(N.externalHelpersImportDeclaration, O, e.isStatement));
if (f === e.ModuleKind.AMD) {
e.addRange(a, e.mapDefined(N.externalImports, F));
}
e.addRange(a, e.visitNodes(t.statements, O, e.isStatement, n));
T(a, true);
e.insertStatementsAfterStandardPrologue(a, o());
var c = i.createBlock(a, true);
if (S) {
e.addEmitHelper(c, r);
}
return c;
}
function T(t, r) {
if (N.exportEquals) {
var a = e.visitNode(N.exportEquals.expression, L);
if (a) {
if (r) {
var n = i.createReturnStatement(a);
e.setTextRange(n, N.exportEquals);
e.setEmitFlags(n, 384 | 1536);
t.push(n);
} else {
var n = i.createExpressionStatement(i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("module"), "exports"), a));
e.setTextRange(n, N.exportEquals);
e.setEmitFlags(n, 1536);
t.push(n);
}
}
}
}
function O(e) {
switch(e.kind){
case 265:
return J(e);
case 264:
return Q(e);
case 271:
return W(e);
case 270:
return X(e);
case 236:
return et(e);
case 255:
return Y(e);
case 256:
return ee(e);
case 350:
return ei(e);
case 351:
return es(e);
default:
return L(e);
}
}
function P(r, a) {
if (!(r.transformFlags & (4194304 | 4096 | 67108864))) {
return r;
}
switch(r.kind){
case 241:
return k(r);
case 237:
return q(r);
case 211:
return V(r, a);
case 348:
return H(r, a);
case 207:
if (e.isImportCall(r) && E.impliedNodeFormat === undefined) {
return G(r);
}
break;
case 220:
if (e.isDestructuringAssignment(r)) {
return _(r, a);
}
break;
case 218:
case 219:
return B(r, a);
}
return e.visitEachChild(r, L, t);
}
function L(e) {
return P(e, false);
}
function C(e) {
return P(e, true);
}
function R(t) {
if (e.isObjectLiteralExpression(t)) {
for(var r = 0, a = t.properties; r < a.length; r++){
var i = a[r];
switch(i.kind){
case 294:
if (R(i.initializer)) {
return true;
}
break;
case 295:
if (R(i.name)) {
return true;
}
break;
case 296:
if (R(i.expression)) {
return true;
}
break;
case 168:
case 171:
case 172:
return false;
default:
e.Debug.assertNever(i, "Unhandled object member kind");
}
}
} else if (e.isArrayLiteralExpression(t)) {
for(var n = 0, s = t.elements; n < s.length; n++){
var i = s[n];
if (e.isSpreadElement(i)) {
if (R(i.expression)) {
return true;
}
} else if (R(i)) {
return true;
}
}
} else if (e.isIdentifier(t)) {
return e.length(eD(t)) > (e.isExportName(t) ? 1 : 0);
}
return false;
}
function _(r, a) {
if (R(r.left)) {
return e.flattenDestructuringAssignment(r, L, t, 0, !a, er);
}
return e.visitEachChild(r, L, t);
}
function k(r) {
return i.updateForStatement(r, e.visitNode(r.initializer, C, e.isForInitializer), e.visitNode(r.condition, L, e.isExpression), e.visitNode(r.incrementor, C, e.isExpression), e.visitIterationBody(r.statement, L, t));
}
function q(t) {
return i.updateExpressionStatement(t, e.visitNode(t.expression, C, e.isExpression));
}
function V(t, r) {
return i.updateParenthesizedExpression(t, e.visitNode(t.expression, r ? C : L, e.isExpression));
}
function H(t, r) {
return i.updatePartiallyEmittedExpression(t, e.visitNode(t.expression, r ? C : L, e.isExpression));
}
function B(r, a) {
if ((r.operator === 45 || r.operator === 46) && e.isIdentifier(r.operand) && !e.isGeneratedIdentifier(r.operand) && !e.isLocalName(r.operand) && !e.isDeclarationNameOfEnumOrNamespace(r.operand)) {
var n = eD(r.operand);
if (n) {
var s = void 0;
var o = e.visitNode(r.operand, L, e.isExpression);
if (e.isPrefixUnaryExpression(r)) {
o = i.updatePrefixUnaryExpression(r, o);
} else {
o = i.updatePostfixUnaryExpression(r, o);
if (!a) {
s = i.createTempVariable(c);
o = i.createAssignment(s, o);
e.setTextRange(o, r);
}
o = i.createComma(o, i.cloneNode(r.operand));
e.setTextRange(o, r);
}
for(var l = 0, u = n; l < u.length; l++){
var d = u[l];
I[e.getNodeId(o)] = true;
o = ex(d, o);
e.setTextRange(o, r);
}
if (s) {
I[e.getNodeId(o)] = true;
o = i.createComma(o, s);
e.setTextRange(o, r);
}
return o;
}
}
return e.visitEachChild(r, L, t);
}
function G(t) {
var r = e.getExternalModuleNameLiteral(i, t, E, d, u, l);
var a = e.visitNode(e.firstOrUndefined(t.arguments), L);
var n = r && (!a || !e.isStringLiteral(a) || a.text !== r.text) ? r : a;
var s = !!(t.transformFlags & 8192);
switch(l.module){
case e.ModuleKind.AMD:
return w(n, s);
case e.ModuleKind.UMD:
return j(n !== null && n !== void 0 ? n : i.createVoidZero(), s);
case e.ModuleKind.CommonJS:
default:
return z(n, s);
}
}
function j(t, r) {
S = true;
if (e.isSimpleCopiableExpression(t)) {
var a = e.isGeneratedIdentifier(t) ? t : e.isStringLiteral(t) ? i.createStringLiteralFromNode(t) : e.setEmitFlags(e.setTextRange(i.cloneNode(t), t), 1536);
return i.createConditionalExpression(i.createIdentifier("__syncRequire"), undefined, z(t, r), undefined, w(a, r));
} else {
var n = i.createTempVariable(c);
return i.createComma(i.createAssignment(n, t), i.createConditionalExpression(i.createIdentifier("__syncRequire"), undefined, z(n, r), undefined, w(n, r)));
}
}
function w(t, r) {
var a = i.createUniqueName("resolve");
var s = i.createUniqueName("reject");
var o = [
i.createParameterDeclaration(undefined, undefined, undefined, a),
i.createParameterDeclaration(undefined, undefined, undefined, s)
];
var c = i.createBlock([
i.createExpressionStatement(i.createCallExpression(i.createIdentifier("require"), undefined, [
i.createArrayLiteralExpression([
t || i.createOmittedExpression()
]),
a,
s
]))
]);
var u;
if (p >= 2) {
u = i.createArrowFunction(undefined, undefined, o, undefined, undefined, c);
} else {
u = i.createFunctionExpression(undefined, undefined, undefined, undefined, o, undefined, c);
if (r) {
e.setEmitFlags(u, 8);
}
}
var d = i.createNewExpression(i.createIdentifier("Promise"), undefined, [
u
]);
if (e.getESModuleInterop(l)) {
return i.createCallExpression(i.createPropertyAccessExpression(d, i.createIdentifier("then")), undefined, [
n().createImportStarCallbackHelper()
]);
}
return d;
}
function z(t, r) {
var a = i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Promise"), "resolve"), undefined, []);
var s = i.createCallExpression(i.createIdentifier("require"), undefined, t ? [
t
] : []);
if (e.getESModuleInterop(l)) {
s = n().createImportStarHelper(s);
}
var o;
if (p >= 2) {
o = i.createArrowFunction(undefined, undefined, [], undefined, undefined, s);
} else {
o = i.createFunctionExpression(undefined, undefined, undefined, undefined, [], undefined, i.createBlock([
i.createReturnStatement(s)
]));
if (r) {
e.setEmitFlags(o, 8);
}
}
return i.createCallExpression(i.createPropertyAccessExpression(a, "then"), undefined, [
o
]);
}
function K(t, r) {
if (!e.getESModuleInterop(l) || e.getEmitFlags(t) & 67108864) {
return r;
}
if (e.getExportNeedsImportStarHelper(t)) {
return n().createImportStarHelper(r);
}
return r;
}
function U(t, r) {
if (!e.getESModuleInterop(l) || e.getEmitFlags(t) & 67108864) {
return r;
}
if (e.getImportNeedsImportStarHelper(t)) {
return n().createImportStarHelper(r);
}
if (e.getImportNeedsImportDefaultHelper(t)) {
return n().createImportDefaultHelper(r);
}
return r;
}
function J(t) {
var r;
var a = e.getNamespaceDeclarationNode(t);
if (f !== e.ModuleKind.AMD) {
if (!t.importClause) {
return e.setOriginalNode(e.setTextRange(i.createExpressionStatement(Z(t)), t), t);
} else {
var n = [];
if (a && !e.isDefaultImport(t)) {
n.push(i.createVariableDeclaration(i.cloneNode(a.name), undefined, undefined, U(t, Z(t))));
} else {
n.push(i.createVariableDeclaration(i.getGeneratedNameForNode(t), undefined, undefined, U(t, Z(t))));
if (a && e.isDefaultImport(t)) {
n.push(i.createVariableDeclaration(i.cloneNode(a.name), undefined, undefined, i.getGeneratedNameForNode(t)));
}
}
r = e.append(r, e.setOriginalNode(e.setTextRange(i.createVariableStatement(undefined, i.createVariableDeclarationList(n, p >= 2 ? 2 : 0)), t), t));
}
} else if (a && e.isDefaultImport(t)) {
r = e.append(r, i.createVariableStatement(undefined, i.createVariableDeclarationList([
e.setOriginalNode(e.setTextRange(i.createVariableDeclaration(i.cloneNode(a.name), undefined, undefined, i.getGeneratedNameForNode(t)), t), t)
], p >= 2 ? 2 : 0)));
}
if (en(t)) {
var s = e.getOriginalNodeId(t);
v[s] = eo(v[s], t);
} else {
r = eo(r, t);
}
return e.singleOrMany(r);
}
function Z(t) {
var r = e.getExternalModuleNameLiteral(i, t, E, d, u, l);
var a = [];
if (r) {
a.push(r);
}
return i.createCallExpression(i.createIdentifier("require"), undefined, a);
}
function Q(t) {
e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t), "import= for internal module references should be handled in an earlier transformer.");
var r;
if (f !== e.ModuleKind.AMD) {
if (e.hasSyntacticModifier(t, 1)) {
r = e.append(r, e.setOriginalNode(e.setTextRange(i.createExpressionStatement(ex(t.name, Z(t))), t), t));
} else {
r = e.append(r, e.setOriginalNode(e.setTextRange(i.createVariableStatement(undefined, i.createVariableDeclarationList([
i.createVariableDeclaration(i.cloneNode(t.name), undefined, undefined, Z(t))
], p >= 2 ? 2 : 0)), t), t));
}
} else {
if (e.hasSyntacticModifier(t, 1)) {
r = e.append(r, e.setOriginalNode(e.setTextRange(i.createExpressionStatement(ex(i.getExportName(t), i.getLocalName(t))), t), t));
}
}
if (en(t)) {
var a = e.getOriginalNodeId(t);
v[a] = ec(v[a], t);
} else {
r = ec(r, t);
}
return e.singleOrMany(r);
}
function W(t) {
if (!t.moduleSpecifier) {
return undefined;
}
var r = i.getGeneratedNameForNode(t);
if (t.exportClause && e.isNamedExports(t.exportClause)) {
var a = [];
if (f !== e.ModuleKind.AMD) {
a.push(e.setOriginalNode(e.setTextRange(i.createVariableStatement(undefined, i.createVariableDeclarationList([
i.createVariableDeclaration(r, undefined, undefined, Z(t))
])), t), t));
}
for(var s = 0, o = t.exportClause.elements; s < o.length; s++){
var c = o[s];
if (p === 0) {
a.push(e.setOriginalNode(e.setTextRange(i.createExpressionStatement(n().createCreateBindingHelper(r, i.createStringLiteralFromNode(c.propertyName || c.name), c.propertyName ? i.createStringLiteralFromNode(c.name) : undefined)), c), c));
} else {
var u = !!e.getESModuleInterop(l) && !(e.getEmitFlags(t) & 67108864) && e.idText(c.propertyName || c.name) === "default";
var d = i.createPropertyAccessExpression(u ? n().createImportDefaultHelper(r) : r, c.propertyName || c.name);
a.push(e.setOriginalNode(e.setTextRange(i.createExpressionStatement(ex(i.getExportName(c), d, undefined, true)), c), c));
}
}
return e.singleOrMany(a);
} else if (t.exportClause) {
var a = [];
a.push(e.setOriginalNode(e.setTextRange(i.createExpressionStatement(ex(i.cloneNode(t.exportClause.name), K(t, f !== e.ModuleKind.AMD ? Z(t) : e.isExportNamespaceAsDefaultDeclaration(t) ? r : i.createIdentifier(e.idText(t.exportClause.name))))), t), t));
return e.singleOrMany(a);
} else {
return e.setOriginalNode(e.setTextRange(i.createExpressionStatement(n().createExportStarHelper(f !== e.ModuleKind.AMD ? Z(t) : r)), t), t);
}
}
function X(t) {
if (t.isExportEquals) {
return undefined;
}
var r;
var a = t.original;
if (a && en(a)) {
var n = e.getOriginalNodeId(t);
v[n] = ef(v[n], i.createIdentifier("default"), e.visitNode(t.expression, L), t, true);
} else {
r = ef(r, i.createIdentifier("default"), e.visitNode(t.expression, L), t, true);
}
return e.singleOrMany(r);
}
function Y(r) {
var a;
if (e.hasSyntacticModifier(r, 1)) {
a = e.append(a, e.setOriginalNode(e.setTextRange(i.createFunctionDeclaration(undefined, e.visitNodes(r.modifiers, ev, e.isModifier), r.asteriskToken, i.getDeclarationName(r, true, true), undefined, e.visitNodes(r.parameters, L), undefined, e.visitEachChild(r.body, L, t)), r), r));
} else {
a = e.append(a, e.visitEachChild(r, L, t));
}
if (en(r)) {
var n = e.getOriginalNodeId(r);
v[n] = ed(v[n], r);
} else {
a = ed(a, r);
}
return e.singleOrMany(a);
}
function ee(r) {
var a;
if (e.hasSyntacticModifier(r, 1)) {
a = e.append(a, e.setOriginalNode(e.setTextRange(i.createClassDeclaration(undefined, e.visitNodes(r.modifiers, ev, e.isModifier), i.getDeclarationName(r, true, true), undefined, e.visitNodes(r.heritageClauses, L), e.visitNodes(r.members, L)), r), r));
} else {
a = e.append(a, e.visitEachChild(r, L, t));
}
if (en(r)) {
var n = e.getOriginalNodeId(r);
v[n] = ed(v[n], r);
} else {
a = ed(a, r);
}
return e.singleOrMany(a);
}
function et(r) {
var a;
var n;
var s;
if (e.hasSyntacticModifier(r, 1)) {
var o = void 0;
var c = false;
for(var l = 0, u = r.declarationList.declarations; l < u.length; l++){
var d = u[l];
if (e.isIdentifier(d.name) && e.isLocalName(d.name)) {
if (!o) {
o = e.visitNodes(r.modifiers, ev, e.isModifier);
}
n = e.append(n, d);
} else if (d.initializer) {
if (!e.isBindingPattern(d.name) && (e.isArrowFunction(d.initializer) || e.isFunctionExpression(d.initializer) || e.isClassExpression(d.initializer))) {
var p = i.createAssignment(e.setTextRange(i.createPropertyAccessExpression(i.createIdentifier("exports"), d.name), d.name), i.createIdentifier(e.getTextOfIdentifierOrLiteral(d.name)));
var f = i.createVariableDeclaration(d.name, d.exclamationToken, d.type, e.visitNode(d.initializer, L));
n = e.append(n, f);
s = e.append(s, p);
c = true;
} else {
s = e.append(s, ea(d));
}
}
}
if (n) {
a = e.append(a, i.updateVariableStatement(r, o, i.updateVariableDeclarationList(r.declarationList, n)));
}
if (s) {
var m = e.setOriginalNode(e.setTextRange(i.createExpressionStatement(i.inlineExpressions(s)), r), r);
if (c) {
e.removeAllComments(m);
}
a = e.append(a, m);
}
} else {
a = e.append(a, e.visitEachChild(r, L, t));
}
if (en(r)) {
var g = e.getOriginalNodeId(r);
v[g] = el(v[g], r);
} else {
a = el(a, r);
}
return e.singleOrMany(a);
}
function er(t, r, a) {
var n = eD(t);
if (n) {
var s = e.isExportName(t) ? r : i.createAssignment(t, r);
for(var o = 0, c = n; o < c.length; o++){
var l = c[o];
e.setEmitFlags(s, 4);
s = ex(l, s, a);
}
return s;
}
return i.createAssignment(t, r);
}
function ea(r) {
if (e.isBindingPattern(r.name)) {
return e.flattenDestructuringAssignment(e.visitNode(r, L), undefined, t, 0, false, er);
} else {
return i.createAssignment(e.setTextRange(i.createPropertyAccessExpression(i.createIdentifier("exports"), r.name), r.name), r.initializer ? e.visitNode(r.initializer, L) : i.createVoidZero());
}
}
function ei(t) {
if (en(t) && t.original.kind === 236) {
var r = e.getOriginalNodeId(t);
v[r] = el(v[r], t.original);
}
return t;
}
function en(t) {
return (e.getEmitFlags(t) & 4194304) !== 0;
}
function es(t) {
var r = e.getOriginalNodeId(t);
var a = v[r];
if (a) {
delete v[r];
return e.append(a, t);
}
return t;
}
function eo(e, t) {
if (N.exportEquals) {
return e;
}
var r = t.importClause;
if (!r) {
return e;
}
if (r.name) {
e = ep(e, r);
}
var a = r.namedBindings;
if (a) {
switch(a.kind){
case 267:
e = ep(e, a);
break;
case 268:
for(var i = 0, n = a.elements; i < n.length; i++){
var s = n[i];
e = ep(e, s, true);
}
break;
}
}
return e;
}
function ec(e, t) {
if (N.exportEquals) {
return e;
}
return ep(e, t);
}
function el(e, t) {
if (N.exportEquals) {
return e;
}
for(var r = 0, a = t.declarationList.declarations; r < a.length; r++){
var i = a[r];
e = eu(e, i);
}
return e;
}
function eu(t, r) {
if (N.exportEquals) {
return t;
}
if (e.isBindingPattern(r.name)) {
for(var a = 0, i = r.name.elements; a < i.length; a++){
var n = i[a];
if (!e.isOmittedExpression(n)) {
t = eu(t, n);
}
}
} else if (!e.isGeneratedIdentifier(r.name)) {
t = ep(t, r);
}
return t;
}
function ed(t, r) {
if (N.exportEquals) {
return t;
}
if (e.hasSyntacticModifier(r, 1)) {
var a = e.hasSyntacticModifier(r, 512) ? i.createIdentifier("default") : i.getDeclarationName(r);
t = ef(t, a, i.getLocalName(r), r);
}
if (r.name) {
t = ep(t, r);
}
return t;
}
function ep(t, r, a) {
var n = i.getDeclarationName(r);
var s = N.exportSpecifiers.get(e.idText(n));
if (s) {
for(var o = 0, c = s; o < c.length; o++){
var l = c[o];
t = ef(t, l.name, n, l.name, undefined, a);
}
}
return t;
}
function ef(t, r, a, i, n, s) {
t = e.append(t, eg(r, a, i, n, s));
return t;
}
function em() {
var t;
if (p === 0) {
t = i.createExpressionStatement(ex(i.createIdentifier("__esModule"), i.createTrue()));
} else {
t = i.createExpressionStatement(i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Object"), "defineProperty"), undefined, [
i.createIdentifier("exports"),
i.createStringLiteral("__esModule"),
i.createObjectLiteralExpression([
i.createPropertyAssignment("value", i.createTrue())
])
]));
}
e.setEmitFlags(t, 1048576);
return t;
}
function eg(t, r, a, n, s) {
var o = e.setTextRange(i.createExpressionStatement(ex(t, r, undefined, s)), a);
e.startOnNewLine(o);
if (!n) {
e.setEmitFlags(o, 1536);
}
return o;
}
function ex(t, r, a, n) {
return e.setTextRange(n && p !== 0 ? i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Object"), "defineProperty"), undefined, [
i.createIdentifier("exports"),
i.createStringLiteralFromNode(t),
i.createObjectLiteralExpression([
i.createPropertyAssignment("enumerable", i.createTrue()),
i.createPropertyAssignment("get", i.createFunctionExpression(undefined, undefined, undefined, undefined, [], undefined, i.createBlock([
i.createReturnStatement(r)
])))
])
]) : i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("exports"), i.cloneNode(t)), r), a);
}
function ev(e) {
switch(e.kind){
case 93:
case 88:
return undefined;
}
return e;
}
function eE(t, r, a) {
if (r.kind === 303) {
E = r;
N = x[e.getOriginalNodeId(E)];
g(t, r, a);
E = undefined;
N = undefined;
} else {
g(t, r, a);
}
}
function eN(t, r) {
r = m(t, r);
if (r.id && I[r.id]) {
return r;
}
if (t === 1) {
return eS(r);
} else if (e.isShorthandPropertyAssignment(r)) {
return eI(r);
}
return r;
}
function eI(t) {
var r = t.name;
var a = eA(r);
if (a !== r) {
if (t.objectAssignmentInitializer) {
var n = i.createAssignment(a, t.objectAssignmentInitializer);
return e.setTextRange(i.createPropertyAssignment(r, n), t);
}
return e.setTextRange(i.createPropertyAssignment(r, a), t);
}
return t;
}
function eS(e) {
switch(e.kind){
case 79:
return eA(e);
case 207:
return ey(e);
case 209:
return eh(e);
case 220:
return eM(e);
}
return e;
}
function ey(t) {
if (e.isIdentifier(t.expression)) {
var r = eA(t.expression);
I[e.getNodeId(r)] = true;
if (!e.isIdentifier(r) && !(e.getEmitFlags(t.expression) & 4096)) {
return e.addEmitFlags(i.updateCallExpression(t, r, undefined, t.arguments), 536870912);
}
}
return t;
}
function eh(t) {
if (e.isIdentifier(t.tag)) {
var r = eA(t.tag);
I[e.getNodeId(r)] = true;
if (!e.isIdentifier(r) && !(e.getEmitFlags(t.tag) & 4096)) {
return e.addEmitFlags(i.updateTaggedTemplateExpression(t, r, undefined, t.template), 536870912);
}
}
return t;
}
function eA(t) {
var r, a;
if (e.getEmitFlags(t) & 4096) {
var n = e.getExternalHelpersModuleName(E);
if (n) {
return i.createPropertyAccessExpression(n, t);
}
return t;
} else if (!(e.isGeneratedIdentifier(t) && !(t.autoGenerateFlags & 64)) && !e.isLocalName(t)) {
var s = u.getReferencedExportContainer(t, e.isExportName(t));
if (s && s.kind === 303) {
return e.setTextRange(i.createPropertyAccessExpression(i.createIdentifier("exports"), i.cloneNode(t)), t);
}
var o = u.getReferencedImportDeclaration(t);
if (o) {
if (e.isImportClause(o)) {
return e.setTextRange(i.createPropertyAccessExpression(i.getGeneratedNameForNode(o.parent), i.createIdentifier("default")), t);
} else if (e.isImportSpecifier(o)) {
var c = o.propertyName || o.name;
return e.setTextRange(i.createPropertyAccessExpression(i.getGeneratedNameForNode(((a = (r = o.parent) === null || r === void 0 ? void 0 : r.parent) === null || a === void 0 ? void 0 : a.parent) || o), i.cloneNode(c)), t);
}
}
}
return t;
}
function eM(t) {
if (e.isAssignmentOperator(t.operatorToken.kind) && e.isIdentifier(t.left) && !e.isGeneratedIdentifier(t.left) && !e.isLocalName(t.left) && !e.isDeclarationNameOfEnumOrNamespace(t.left)) {
var r = eD(t.left);
if (r) {
var a = t;
for(var i = 0, n = r; i < n.length; i++){
var s = n[i];
I[e.getNodeId(a)] = true;
a = ex(s, a, t);
}
return a;
}
}
return t;
}
function eD(t) {
if (!e.isGeneratedIdentifier(t)) {
var r = u.getReferencedImportDeclaration(t) || u.getReferencedValueDeclaration(t);
if (r) {
return N && N.exportedBindings[e.getOriginalNodeId(r)];
}
}
}
}
e.transformModule = t;
var r = {
name: "typescript:dynamicimport-sync-require",
scoped: true,
text: "\n var __syncRequire = typeof module === \"object\" && typeof module.exports === \"object\";"
};
})(e || (e = {}));

View File

@ -1279,13 +1279,11 @@
}
firstChild = wrap.firstChild;
}
firstChild && 1 == firstChild.nodeType && firstChild.setAttribute("data-pm-slice", openStart + " " + openEnd + " " + JSON.stringify(context));
var text = view.someProp("clipboardTextSerializer", function(f) {
return f(slice);
}) || slice.content.textBetween(0, slice.content.size, "\n\n");
return {
return firstChild && 1 == firstChild.nodeType && firstChild.setAttribute("data-pm-slice", openStart + " " + openEnd + " " + JSON.stringify(context)), {
dom: wrap,
text: text
text: view.someProp("clipboardTextSerializer", function(f) {
return f(slice);
}) || slice.content.textBetween(0, slice.content.size, "\n\n")
};
}
function parseFromClipboard(view, text, html, plainText, $context) {
@ -1326,24 +1324,24 @@
}
function normalizeSiblings(fragment, $context) {
if (fragment.childCount < 2) return fragment;
for(var loop = function(d) {
var match = $context.node(d).contentMatchAt($context.index(d)), lastWrap = void 0, result = [];
if (fragment.forEach(function(node) {
if (result) {
var inLast, wrap = match.findWrapping(node.type);
if (!wrap) return result = null;
if (inLast = result.length && lastWrap.length && addToSibling(wrap, lastWrap, node, result[result.length - 1], 0)) result[result.length - 1] = inLast;
else {
result.length && (result[result.length - 1] = closeRight(result[result.length - 1], lastWrap.length));
var wrapped = withWrappers(node, wrap);
result.push(wrapped), match = match.matchType(wrapped.type, wrapped.attrs), lastWrap = wrap;
for(var d = $context.depth; d >= 0; d--){
var returned = function(d) {
var match = $context.node(d).contentMatchAt($context.index(d)), lastWrap = void 0, result = [];
if (fragment.forEach(function(node) {
if (result) {
var inLast, wrap = match.findWrapping(node.type);
if (!wrap) return result = null;
if (inLast = result.length && lastWrap.length && addToSibling(wrap, lastWrap, node, result[result.length - 1], 0)) result[result.length - 1] = inLast;
else {
result.length && (result[result.length - 1] = closeRight(result[result.length - 1], lastWrap.length));
var wrapped = withWrappers(node, wrap);
result.push(wrapped), match = match.matchType(wrapped.type, wrapped.attrs), lastWrap = wrap;
}
}
}
}), result) return {
v: prosemirror_model__WEBPACK_IMPORTED_MODULE_1__.Fragment.from(result)
};
}, d = $context.depth; d >= 0; d--){
var returned = loop(d);
}), result) return {
v: prosemirror_model__WEBPACK_IMPORTED_MODULE_1__.Fragment.from(result)
};
}(d);
if (returned) return returned.v;
}
return fragment;
@ -1557,10 +1555,10 @@
var ref = mut.addedNodes[i$1], previousSibling = ref.previousSibling, nextSibling = ref.nextSibling;
(!previousSibling || 0 > Array.prototype.indexOf.call(mut.addedNodes, previousSibling)) && (prev = previousSibling), (!nextSibling || 0 > Array.prototype.indexOf.call(mut.addedNodes, nextSibling)) && (next = nextSibling);
}
var fromOffset = prev && prev.parentNode == mut.target ? domIndex(prev) + 1 : 0, from = desc.localPosFromDOM(mut.target, fromOffset, -1), toOffset = next && next.parentNode == mut.target ? domIndex(next) : mut.target.childNodes.length, to = desc.localPosFromDOM(mut.target, toOffset, 1);
var fromOffset = prev && prev.parentNode == mut.target ? domIndex(prev) + 1 : 0, from = desc.localPosFromDOM(mut.target, fromOffset, -1), toOffset = next && next.parentNode == mut.target ? domIndex(next) : mut.target.childNodes.length;
return {
from: from,
to: to
to: desc.localPosFromDOM(mut.target, toOffset, 1)
};
}
return "attributes" == mut.type ? {
@ -2109,7 +2107,7 @@
} else mustRebuild = !0;
}
if (mustRebuild) {
var decorations = mapAndGatherRemainingDecorations(children, oldChildren, newLocal || [], mapping, offset, oldOffset, options), built = buildTree(decorations, node, 0, options);
var built = buildTree(mapAndGatherRemainingDecorations(children, oldChildren, newLocal || [], mapping, offset, oldOffset, options), node, 0, options);
newLocal = built.local;
for(var i$2 = 0; i$2 < children.length; i$2 += 3)children[i$2 + 1] < 0 && (children.splice(i$2, 3), i$2 -= 3);
for(var i$3 = 0, j = 0; i$3 < built.children.length; i$3 += 3){

View File

@ -14,9 +14,10 @@
return !(index <= -1) && (hooks_[type] = hooks_[type].slice(), hooks_[type].splice(index, 1), !0);
}, hookOnce = function(type, fn) {
hooks(type, [].concat(fn).map(function(original) {
return function wrapper() {
var wrapper = function wrapper() {
return removeHook(type, wrapper), original.apply(void 0, arguments);
};
return wrapper;
}));
}, FullscreenApi = {
prefixed: !0
@ -161,7 +162,7 @@
if (!match) return null;
var major = match[1] && parseFloat(match[1]), minor = match[2] && parseFloat(match[2]);
return major && minor ? parseFloat(match[1] + "." + match[2]) : major || null;
}(), IS_NATIVE_ANDROID = IS_ANDROID && ANDROID_VERSION < 5 && appleWebkitVersion < 537, IS_FIREFOX = /Firefox/i.test(USER_AGENT), IS_EDGE = /Edg/i.test(USER_AGENT), IS_CHROME = !IS_EDGE && (/Chrome/i.test(USER_AGENT) || /CriOS/i.test(USER_AGENT)), CHROME_VERSION = (match1 = USER_AGENT.match(/(Chrome|CriOS)\/(\d+)/)) && match1[2] ? parseFloat(match1[2]) : null, IE_VERSION = (!(version = (result = /MSIE\s(\d+)\.\d/.exec(USER_AGENT)) && parseFloat(result[1])) && /Trident\/7.0/i.test(USER_AGENT) && /rv:11.0/.test(USER_AGENT) && (version = 11.0), version), IS_SAFARI = /Safari/i.test(USER_AGENT) && !IS_CHROME && !IS_ANDROID && !IS_EDGE, IS_WINDOWS = /Windows/i.test(USER_AGENT), TOUCH_ENABLED = Boolean(isReal() && ("ontouchstart" in global_window__WEBPACK_IMPORTED_MODULE_0___default() || global_window__WEBPACK_IMPORTED_MODULE_0___default().navigator.maxTouchPoints || global_window__WEBPACK_IMPORTED_MODULE_0___default().DocumentTouch && global_window__WEBPACK_IMPORTED_MODULE_0___default().document instanceof global_window__WEBPACK_IMPORTED_MODULE_0___default().DocumentTouch)), IS_IPAD = /iPad/i.test(USER_AGENT) || IS_SAFARI && TOUCH_ENABLED && !/iPhone/i.test(USER_AGENT), IS_IPHONE = /iPhone/i.test(USER_AGENT) && !IS_IPAD, IS_IOS = IS_IPHONE || IS_IPAD || IS_IPOD, IS_ANY_SAFARI = (IS_SAFARI || IS_IOS) && !IS_CHROME, browser = Object.freeze({
}(), IS_NATIVE_ANDROID = IS_ANDROID && ANDROID_VERSION < 5 && appleWebkitVersion < 537, IS_FIREFOX = /Firefox/i.test(USER_AGENT), IS_EDGE = /Edg/i.test(USER_AGENT), IS_CHROME = !IS_EDGE && (/Chrome/i.test(USER_AGENT) || /CriOS/i.test(USER_AGENT)), CHROME_VERSION = (match1 = USER_AGENT.match(/(Chrome|CriOS)\/(\d+)/)) && match1[2] ? parseFloat(match1[2]) : null, IE_VERSION = (version = (result = /MSIE\s(\d+)\.\d/.exec(USER_AGENT)) && parseFloat(result[1]), !version && /Trident\/7.0/i.test(USER_AGENT) && /rv:11.0/.test(USER_AGENT) && (version = 11.0), version), IS_SAFARI = /Safari/i.test(USER_AGENT) && !IS_CHROME && !IS_ANDROID && !IS_EDGE, IS_WINDOWS = /Windows/i.test(USER_AGENT), TOUCH_ENABLED = Boolean(isReal() && ("ontouchstart" in global_window__WEBPACK_IMPORTED_MODULE_0___default() || global_window__WEBPACK_IMPORTED_MODULE_0___default().navigator.maxTouchPoints || global_window__WEBPACK_IMPORTED_MODULE_0___default().DocumentTouch && global_window__WEBPACK_IMPORTED_MODULE_0___default().document instanceof global_window__WEBPACK_IMPORTED_MODULE_0___default().DocumentTouch)), IS_IPAD = /iPad/i.test(USER_AGENT) || IS_SAFARI && TOUCH_ENABLED && !/iPhone/i.test(USER_AGENT), IS_IPHONE = /iPhone/i.test(USER_AGENT) && !IS_IPAD, IS_IOS = IS_IPHONE || IS_IPAD || IS_IPOD, IS_ANY_SAFARI = (IS_SAFARI || IS_IOS) && !IS_CHROME, browser = Object.freeze({
__proto__: null,
IS_IPOD: IS_IPOD,
IOS_VERSION: IOS_VERSION,
@ -857,7 +858,7 @@
if ("function" != typeof ComponentClass) return null;
component = new ComponentClass(this.player_ || this, options);
} else component = child;
if (component.parentComponent_ && component.parentComponent_.removeChild(component), this.children_.splice(index, 0, component), component.parentComponent_ = this, "function" == typeof component.id && (this.childIndex_[component.id()] = component), (componentName = componentName || component.name && toTitleCase$1(component.name())) && (this.childNameIndex_[componentName] = component, this.childNameIndex_[toLowerCase(componentName)] = component), "function" == typeof component.el && component.el()) {
if (component.parentComponent_ && component.parentComponent_.removeChild(component), this.children_.splice(index, 0, component), component.parentComponent_ = this, "function" == typeof component.id && (this.childIndex_[component.id()] = component), componentName = componentName || component.name && toTitleCase$1(component.name()), componentName && (this.childNameIndex_[componentName] = component, this.childNameIndex_[toLowerCase(componentName)] = component), "function" == typeof component.el && component.el()) {
var refNode = null;
this.children_[index + 1] && (this.children_[index + 1].el_ ? refNode = this.children_[index + 1].el_ : isEl(this.children_[index + 1]) && (refNode = this.children_[index + 1])), this.contentEl().insertBefore(component.el(), refNode);
}
@ -885,7 +886,7 @@
newChild && (_this[name] = newChild);
}
}, Tech = Component.getComponent("Tech");
(workingChildren = Array.isArray(children) ? children : Object.keys(children)).concat(Object.keys(this.options_).filter(function(child) {
workingChildren = Array.isArray(children) ? children : Object.keys(children), workingChildren.concat(Object.keys(this.options_).filter(function(child) {
return !workingChildren.some(function(wchild) {
return "string" == typeof wchild ? child === wchild : child === wchild.name;
});
@ -960,7 +961,7 @@
}, _proto.currentDimension = function(widthOrHeight) {
var computedWidthOrHeight = 0;
if ("width" !== widthOrHeight && "height" !== widthOrHeight) throw Error("currentDimension only accepts width or height value");
if (computedWidthOrHeight = computedStyle(this.el_, widthOrHeight), 0 === (computedWidthOrHeight = parseFloat(computedWidthOrHeight)) || isNaN(computedWidthOrHeight)) {
if (computedWidthOrHeight = computedStyle(this.el_, widthOrHeight), computedWidthOrHeight = parseFloat(computedWidthOrHeight), 0 === computedWidthOrHeight || isNaN(computedWidthOrHeight)) {
var rule = "offset" + toTitleCase$1(widthOrHeight);
computedWidthOrHeight = this.el_[rule];
}
@ -1000,7 +1001,10 @@
couldBeTap = !1;
};
this.on("touchleave", noTap), this.on("touchcancel", noTap), this.on("touchend", function(event) {
firstTouch = null, !0 === couldBeTap && global_window__WEBPACK_IMPORTED_MODULE_0___default().performance.now() - touchStart < 200 && (event.preventDefault(), this.trigger("tap"));
if (firstTouch = null, !0 === couldBeTap) {
var touchTime = global_window__WEBPACK_IMPORTED_MODULE_0___default().performance.now() - touchStart;
touchTime < 200 && (event.preventDefault(), this.trigger("tap"));
}
});
}, _proto.enableTouchActivity = function() {
if (this.player() && this.player().reportUserActivity) {
@ -1152,7 +1156,7 @@
isPromise(value) && value.then(null, function(e) {});
}
var trackToJson_ = function(track) {
return [
var ret = [
"kind",
"label",
"language",
@ -1172,15 +1176,16 @@
};
})
});
return ret;
}, textTrackConverter = {
textTracksToJson: function(tech) {
var trackEls = tech.$$("track"), trackObjs = Array.prototype.map.call(trackEls, function(t) {
return t.track;
});
return Array.prototype.map.call(trackEls, function(trackEl) {
}), tracks = Array.prototype.map.call(trackEls, function(trackEl) {
var json = trackToJson_(trackEl.track);
return trackEl.src && (json.src = trackEl.src), json;
}).concat(Array.prototype.filter.call(tech.textTracks(), function(track) {
});
return tracks.concat(Array.prototype.filter.call(tech.textTracks(), function(track) {
return -1 === trackObjs.indexOf(track);
}).map(trackToJson_));
},
@ -2180,10 +2185,11 @@
return _proto.dispose = function() {
this.player().off("posterchange", this.update_), _ClickableComponent.prototype.dispose.call(this);
}, _proto.createEl = function() {
return createEl("div", {
var el = createEl("div", {
className: "vjs-poster",
tabIndex: -1
});
return el;
}, _proto.update = function(event) {
var url = this.player().poster();
this.setSrc(url), url ? this.show() : this.hide();
@ -2319,7 +2325,9 @@
function LoadingSpinner() {
return _Component.apply(this, arguments) || this;
}
return (0, _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_16__.Z)(LoadingSpinner, _Component), LoadingSpinner.prototype.createEl = function() {
(0, _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_16__.Z)(LoadingSpinner, _Component);
var _proto = LoadingSpinner.prototype;
return _proto.createEl = function() {
var isAudio = this.player_.isAudio(), playerType = this.localize(isAudio ? "Audio Player" : "Video Player"), controlText = createEl("span", {
className: "vjs-control-text",
textContent: this.localize("{1} is loading.", [
@ -2453,8 +2461,8 @@
}(Button);
PlayToggle.prototype.controlText_ = "Play", Component$1.registerComponent("PlayToggle", PlayToggle);
var defaultImplementation = function(seconds, guide) {
var s = Math.floor((seconds = seconds < 0 ? 0 : seconds) % 60), m = Math.floor(seconds / 60 % 60), h = Math.floor(seconds / 3600), gm = Math.floor(guide / 60 % 60), gh = Math.floor(guide / 3600);
return (isNaN(seconds) || seconds === 1 / 0) && (h = m = s = "-"), m = (((h = h > 0 || gh > 0 ? h + ":" : "") || gm >= 10) && m < 10 ? "0" + m : m) + ":", s = s < 10 ? "0" + s : s, h + m + s;
var s = Math.floor((seconds = seconds < 0 ? 0 : seconds) % 60), m = Math.floor(seconds / 60 % 60), h = Math.floor(seconds / 3600);
return (isNaN(seconds) || seconds === 1 / 0) && (h = m = s = "-"), m = (((h = h > 0 || Math.floor(guide / 3600) > 0 ? h + ":" : "") || Math.floor(guide / 60 % 60) >= 10) && m < 10 ? "0" + m : m) + ":", h + m + (s = s < 10 ? "0" + s : s);
}, implementation = defaultImplementation;
function setFormatTime(customImplementation) {
implementation = customImplementation;
@ -2538,7 +2546,9 @@
function TimeDivider() {
return _Component.apply(this, arguments) || this;
}
return (0, _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_16__.Z)(TimeDivider, _Component), TimeDivider.prototype.createEl = function() {
(0, _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_16__.Z)(TimeDivider, _Component);
var _proto = TimeDivider.prototype;
return _proto.createEl = function() {
var el = _Component.prototype.createEl.call(this, "div", {
className: "vjs-time-control vjs-time-divider"
}, {
@ -3056,7 +3066,9 @@
function VolumeLevel() {
return _Component.apply(this, arguments) || this;
}
return (0, _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_16__.Z)(VolumeLevel, _Component), VolumeLevel.prototype.createEl = function() {
(0, _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_16__.Z)(VolumeLevel, _Component);
var _proto = VolumeLevel.prototype;
return _proto.createEl = function() {
var el = _Component.prototype.createEl.call(this, "div", {
className: "vjs-volume-level"
});
@ -3543,7 +3555,7 @@
if ("object" != typeof global_window__WEBPACK_IMPORTED_MODULE_0___default().Event) try {
event = new (global_window__WEBPACK_IMPORTED_MODULE_0___default()).Event("change");
} catch (err) {}
event || (event = global_document__WEBPACK_IMPORTED_MODULE_1___default().createEvent("Event")).initEvent("change", !0, !0), tracks.dispatchEvent(event);
event || (event = global_document__WEBPACK_IMPORTED_MODULE_1___default().createEvent("Event"), event.initEvent("change", !0, !0)), tracks.dispatchEvent(event);
}), _this.handleTracksChange(), _this;
}
(0, _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_16__.Z)(TextTrackMenuItem, _MenuItem);
@ -3785,7 +3797,9 @@
function SubsCapsMenuItem() {
return _TextTrackMenuItem.apply(this, arguments) || this;
}
return (0, _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_16__.Z)(SubsCapsMenuItem, _TextTrackMenuItem), SubsCapsMenuItem.prototype.createEl = function(type, props, attrs) {
(0, _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_16__.Z)(SubsCapsMenuItem, _TextTrackMenuItem);
var _proto = SubsCapsMenuItem.prototype;
return _proto.createEl = function(type, props, attrs) {
var el = _TextTrackMenuItem.prototype.createEl.call(this, type, props, attrs), parentSpan = el.querySelector(".vjs-menu-item-text");
return "captions" === this.options_.track.kind && (parentSpan.appendChild(createEl("span", {
className: "vjs-icon-placeholder"
@ -3982,7 +3996,9 @@
function ControlBar() {
return _Component.apply(this, arguments) || this;
}
return (0, _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_16__.Z)(ControlBar, _Component), ControlBar.prototype.createEl = function() {
(0, _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_16__.Z)(ControlBar, _Component);
var _proto = ControlBar.prototype;
return _proto.createEl = function() {
return _Component.prototype.createEl.call(this, "div", {
className: "vjs-control-bar",
dir: "ltr"
@ -4760,7 +4776,7 @@
el.parentNode && el.parentNode.insertBefore(clone, el), Html5.disposeMediaElement(el), el = clone;
} else {
el = global_document__WEBPACK_IMPORTED_MODULE_1___default().createElement("video");
var tagAttributes = this.options_.tag && getAttributes(this.options_.tag), attributes = mergeOptions$3({}, tagAttributes);
var attributes = mergeOptions$3({}, this.options_.tag && getAttributes(this.options_.tag));
TOUCH_ENABLED && !0 === this.options_.nativeControlsForTouch || delete attributes.controls, setAttributes(el, assign(attributes, {
id: this.options_.techId,
class: "vjs-tech"
@ -5167,7 +5183,7 @@
huge: 1 / 0
}, Player = function(_Component) {
function Player(tag, options, ready) {
if (tag.id = tag.id || options.id || "vjs_video_" + newGUID(), (options = assign(Player.getTagSettings(tag), options)).initChildren = !1, options.createEl = !1, options.evented = !1, options.reportTouchActivity = !1, !options.language) {
if (tag.id = tag.id || options.id || "vjs_video_" + newGUID(), options = assign(Player.getTagSettings(tag), options), options.initChildren = !1, options.createEl = !1, options.evented = !1, options.reportTouchActivity = !1, !options.language) {
if ("function" == typeof tag.closest) {
var _this, closest = tag.closest("[lang]");
closest && closest.getAttribute && (options.language = closest.getAttribute("lang"));
@ -5516,9 +5532,12 @@
}, _proto.handleTechClick_ = function(event) {
this.controls_ && (void 0 === this.options_ || void 0 === this.options_.userActions || void 0 === this.options_.userActions.click || !1 !== this.options_.userActions.click) && (void 0 !== this.options_ && void 0 !== this.options_.userActions && "function" == typeof this.options_.userActions.click ? this.options_.userActions.click.call(this, event) : this.paused() ? silencePromise(this.play()) : this.pause());
}, _proto.handleTechDoubleClick_ = function(event) {
this.controls_ && (Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"), function(el) {
return el.contains(event.target);
}) || void 0 !== this.options_ && void 0 !== this.options_.userActions && void 0 !== this.options_.userActions.doubleClick && !1 === this.options_.userActions.doubleClick || (void 0 !== this.options_ && void 0 !== this.options_.userActions && "function" == typeof this.options_.userActions.doubleClick ? this.options_.userActions.doubleClick.call(this, event) : this.isFullscreen() ? this.exitFullscreen() : this.requestFullscreen()));
if (this.controls_) {
var inAllowedEls = Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"), function(el) {
return el.contains(event.target);
});
inAllowedEls || void 0 !== this.options_ && void 0 !== this.options_.userActions && void 0 !== this.options_.userActions.doubleClick && !1 === this.options_.userActions.doubleClick || (void 0 !== this.options_ && void 0 !== this.options_.userActions && "function" == typeof this.options_.userActions.doubleClick ? this.options_.userActions.doubleClick.call(this, event) : this.isFullscreen() ? this.exitFullscreen() : this.requestFullscreen());
}
}, _proto.handleTechTap_ = function() {
this.userActive(!this.userActive());
}, _proto.handleTechTouchStart_ = function() {
@ -5654,7 +5673,7 @@
this.currentTime(this.cache_.initTime);
}, _proto.duration = function(seconds) {
if (void 0 === seconds) return void 0 !== this.cache_.duration ? this.cache_.duration : NaN;
(seconds = parseFloat(seconds)) < 0 && (seconds = 1 / 0), seconds === this.cache_.duration || (this.cache_.duration = seconds, seconds === 1 / 0 ? this.addClass("vjs-live") : this.removeClass("vjs-live"), isNaN(seconds) || this.trigger("durationchange"));
seconds = parseFloat(seconds), seconds < 0 && (seconds = 1 / 0), seconds === this.cache_.duration || (this.cache_.duration = seconds, seconds === 1 / 0 ? this.addClass("vjs-live") : this.removeClass("vjs-live"), isNaN(seconds) || this.trigger("durationchange"));
}, _proto.remainingTime = function() {
return this.duration() - this.currentTime();
}, _proto.remainingTimeDisplay = function() {
@ -5796,11 +5815,19 @@
event.preventDefault(), event.stopPropagation();
var FSToggle = Component$1.getComponent("FullscreenToggle");
!1 !== global_document__WEBPACK_IMPORTED_MODULE_1___default()[this.fsApi_.fullscreenEnabled] && FSToggle.prototype.handleClick.call(this, event);
} else (void 0 === _hotkeys$muteKey ? function(keydownEvent) {
} else if ((void 0 === _hotkeys$muteKey ? function(keydownEvent) {
return keycode__WEBPACK_IMPORTED_MODULE_3___default().isEventKey(keydownEvent, "m");
} : _hotkeys$muteKey).call(this, event) ? (event.preventDefault(), event.stopPropagation(), Component$1.getComponent("MuteToggle").prototype.handleClick.call(this, event)) : (void 0 === _hotkeys$playPauseKey ? function(keydownEvent) {
} : _hotkeys$muteKey).call(this, event)) {
event.preventDefault(), event.stopPropagation();
var MuteToggle = Component$1.getComponent("MuteToggle");
MuteToggle.prototype.handleClick.call(this, event);
} else if ((void 0 === _hotkeys$playPauseKey ? function(keydownEvent) {
return keycode__WEBPACK_IMPORTED_MODULE_3___default().isEventKey(keydownEvent, "k") || keycode__WEBPACK_IMPORTED_MODULE_3___default().isEventKey(keydownEvent, "Space");
} : _hotkeys$playPauseKey).call(this, event) && (event.preventDefault(), event.stopPropagation(), Component$1.getComponent("PlayToggle").prototype.handleClick.call(this, event));
} : _hotkeys$playPauseKey).call(this, event)) {
event.preventDefault(), event.stopPropagation();
var PlayToggle = Component$1.getComponent("PlayToggle");
PlayToggle.prototype.handleClick.call(this, event);
}
}, _proto.canPlayType = function(type) {
for(var can, i = 0, j = this.options_.techOrder; i < j.length; i++){
var techName = j[i], tech = Tech.getTech(techName);
@ -6082,7 +6109,7 @@
options.tracks = [];
for(var i = 0; i < tracks.length; i++){
var track = tracks[i];
(track = mergeOptions$3(track)).player = void 0, options.tracks[i] = track;
track = mergeOptions$3(track), track.player = void 0, options.tracks[i] = track;
}
return options;
}, _proto.createModal = function(content, options) {
@ -6128,16 +6155,16 @@
}
}, _proto.getMedia = function() {
if (!this.cache_.media) {
var poster = this.poster(), media = {
src: this.currentSources(),
textTracks: Array.prototype.map.call(this.remoteTextTracks(), function(tt) {
return {
kind: tt.kind,
label: tt.label,
language: tt.language,
src: tt.src
};
})
var poster = this.poster(), src = this.currentSources(), textTracks = Array.prototype.map.call(this.remoteTextTracks(), function(tt) {
return {
kind: tt.kind,
label: tt.label,
language: tt.language,
src: tt.src
};
}), media = {
src: src,
textTracks: textTracks
};
return poster && (media.poster = poster, media.artwork = [
{
@ -6324,14 +6351,16 @@
if (player) return options && log$1.warn('Player "' + id + '" is already initialised. Options will not be applied.'), ready && player.ready(ready), player;
var el = "string" == typeof id ? $("#" + normalizeId(id)) : id;
if (!isEl(el)) throw TypeError("The element or ID supplied is not valid. (videojs)");
return el.ownerDocument.defaultView && el.ownerDocument.body.contains(el) || log$1.warn("The element supplied is not included in the DOM"), options = options || {}, hooks("beforesetup").forEach(function(hookFunction) {
el.ownerDocument.defaultView && el.ownerDocument.body.contains(el) || log$1.warn("The element supplied is not included in the DOM"), options = options || {}, hooks("beforesetup").forEach(function(hookFunction) {
var opts = hookFunction(el, mergeOptions$3(options));
if (!isObject(opts) || Array.isArray(opts)) {
log$1.error("please return an object in beforesetup hooks");
return;
}
options = mergeOptions$3(options, opts);
}), player = new (Component$1.getComponent("Player"))(el, options, ready), hooks("setup").forEach(function(hookFunction) {
});
var PlayerComponent = Component$1.getComponent("Player");
return player = new PlayerComponent(el, options, ready), hooks("setup").forEach(function(hookFunction) {
return hookFunction(player);
}), player;
}
@ -6602,69 +6631,6 @@
expired = expired || 0;
var lastSegmentEndTime = intervalDuration(playlist, playlist.mediaSequence + playlist.segments.length, expired);
return useSafeLiveEnd && (liveEdgePadding = "number" == typeof liveEdgePadding ? liveEdgePadding : liveEdgeDelay(null, playlist), lastSegmentEndTime -= liveEdgePadding), Math.max(0, lastSegmentEndTime);
}, seekable = function(playlist, expired, liveEdgePadding) {
var seekableEnd = playlistEnd(playlist, expired, !0, liveEdgePadding);
return null === seekableEnd ? createTimeRange() : createTimeRange(expired || 0, seekableEnd);
}, getMediaInfoForTime = function(_ref4) {
for(var playlist = _ref4.playlist, currentTime = _ref4.currentTime, startingSegmentIndex = _ref4.startingSegmentIndex, startingPartIndex = _ref4.startingPartIndex, startTime = _ref4.startTime, experimentalExactManifestTimings = _ref4.experimentalExactManifestTimings, time = currentTime - startTime, partsAndSegments = getPartsAndSegments(playlist), startIndex = 0, i = 0; i < partsAndSegments.length; i++){
var partAndSegment = partsAndSegments[i];
if (startingSegmentIndex === partAndSegment.segmentIndex && ("number" != typeof startingPartIndex || "number" != typeof partAndSegment.partIndex || startingPartIndex === partAndSegment.partIndex)) {
startIndex = i;
break;
}
}
if (time < 0) {
if (startIndex > 0) for(var _i2 = startIndex - 1; _i2 >= 0; _i2--){
var _partAndSegment = partsAndSegments[_i2];
if (time += _partAndSegment.duration, experimentalExactManifestTimings) {
if (time < 0) continue;
} else if (time + TIME_FUDGE_FACTOR <= 0) continue;
return {
partIndex: _partAndSegment.partIndex,
segmentIndex: _partAndSegment.segmentIndex,
startTime: startTime - sumDurations({
defaultDuration: playlist.targetDuration,
durationList: partsAndSegments,
startIndex: startIndex,
endIndex: _i2
})
};
}
return {
partIndex: partsAndSegments[0] && partsAndSegments[0].partIndex || null,
segmentIndex: partsAndSegments[0] && partsAndSegments[0].segmentIndex || 0,
startTime: currentTime
};
}
if (startIndex < 0) {
for(var _i3 = startIndex; _i3 < 0; _i3++)if ((time -= playlist.targetDuration) < 0) return {
partIndex: partsAndSegments[0] && partsAndSegments[0].partIndex || null,
segmentIndex: partsAndSegments[0] && partsAndSegments[0].segmentIndex || 0,
startTime: currentTime
};
startIndex = 0;
}
for(var _i4 = startIndex; _i4 < partsAndSegments.length; _i4++){
var _partAndSegment2 = partsAndSegments[_i4];
if (time -= _partAndSegment2.duration, experimentalExactManifestTimings) {
if (time > 0) continue;
} else if (time - TIME_FUDGE_FACTOR >= 0) continue;
return {
partIndex: _partAndSegment2.partIndex,
segmentIndex: _partAndSegment2.segmentIndex,
startTime: startTime + sumDurations({
defaultDuration: playlist.targetDuration,
durationList: partsAndSegments,
startIndex: startIndex,
endIndex: _i4
})
};
}
return {
segmentIndex: partsAndSegments[partsAndSegments.length - 1].segmentIndex,
partIndex: partsAndSegments[partsAndSegments.length - 1].partIndex,
startTime: currentTime
};
}, isBlacklisted = function(playlist) {
return playlist.excludeUntil && playlist.excludeUntil > Date.now();
}, isIncompatible = function(playlist) {
@ -6712,8 +6678,71 @@
}, Playlist = {
liveEdgeDelay: liveEdgeDelay,
duration: duration,
seekable: seekable,
getMediaInfoForTime: getMediaInfoForTime,
seekable: function(playlist, expired, liveEdgePadding) {
var seekableEnd = playlistEnd(playlist, expired, !0, liveEdgePadding);
return null === seekableEnd ? createTimeRange() : createTimeRange(expired || 0, seekableEnd);
},
getMediaInfoForTime: function(_ref4) {
for(var playlist = _ref4.playlist, currentTime = _ref4.currentTime, startingSegmentIndex = _ref4.startingSegmentIndex, startingPartIndex = _ref4.startingPartIndex, startTime = _ref4.startTime, experimentalExactManifestTimings = _ref4.experimentalExactManifestTimings, time = currentTime - startTime, partsAndSegments = getPartsAndSegments(playlist), startIndex = 0, i = 0; i < partsAndSegments.length; i++){
var partAndSegment = partsAndSegments[i];
if (startingSegmentIndex === partAndSegment.segmentIndex && ("number" != typeof startingPartIndex || "number" != typeof partAndSegment.partIndex || startingPartIndex === partAndSegment.partIndex)) {
startIndex = i;
break;
}
}
if (time < 0) {
if (startIndex > 0) for(var _i2 = startIndex - 1; _i2 >= 0; _i2--){
var _partAndSegment = partsAndSegments[_i2];
if (time += _partAndSegment.duration, experimentalExactManifestTimings) {
if (time < 0) continue;
} else if (time + TIME_FUDGE_FACTOR <= 0) continue;
return {
partIndex: _partAndSegment.partIndex,
segmentIndex: _partAndSegment.segmentIndex,
startTime: startTime - sumDurations({
defaultDuration: playlist.targetDuration,
durationList: partsAndSegments,
startIndex: startIndex,
endIndex: _i2
})
};
}
return {
partIndex: partsAndSegments[0] && partsAndSegments[0].partIndex || null,
segmentIndex: partsAndSegments[0] && partsAndSegments[0].segmentIndex || 0,
startTime: currentTime
};
}
if (startIndex < 0) {
for(var _i3 = startIndex; _i3 < 0; _i3++)if ((time -= playlist.targetDuration) < 0) return {
partIndex: partsAndSegments[0] && partsAndSegments[0].partIndex || null,
segmentIndex: partsAndSegments[0] && partsAndSegments[0].segmentIndex || 0,
startTime: currentTime
};
startIndex = 0;
}
for(var _i4 = startIndex; _i4 < partsAndSegments.length; _i4++){
var _partAndSegment2 = partsAndSegments[_i4];
if (time -= _partAndSegment2.duration, experimentalExactManifestTimings) {
if (time > 0) continue;
} else if (time - TIME_FUDGE_FACTOR >= 0) continue;
return {
partIndex: _partAndSegment2.partIndex,
segmentIndex: _partAndSegment2.segmentIndex,
startTime: startTime + sumDurations({
defaultDuration: playlist.targetDuration,
durationList: partsAndSegments,
startIndex: startIndex,
endIndex: _i4
})
};
}
return {
segmentIndex: partsAndSegments[partsAndSegments.length - 1].segmentIndex,
partIndex: partsAndSegments[partsAndSegments.length - 1].partIndex,
startTime: currentTime
};
},
isEnabled: isEnabled,
isDisabled: function(playlist) {
return playlist.disabled;
@ -7107,7 +7136,7 @@
var newOptions = beforeRequest(options);
newOptions && (options = newOptions);
}
var request = (!0 === videojs.Vhs.xhr.original ? videojsXHR : videojs.Vhs.xhr)(options, function(error, response) {
var xhrMethod = !0 === videojs.Vhs.xhr.original ? videojsXHR : videojs.Vhs.xhr, request = xhrMethod(options, function(error, response) {
return callbackWrapper(request, error, response, callback);
}), originalAbort = request.abort;
return request.abort = function() {
@ -7183,8 +7212,8 @@
var nextSegmentStart = playlist.segments[i + 1].dateTimeObject;
if (dateTimeObject < nextSegmentStart) break;
}
var videoTimingInfo, lastSegment = playlist.segments[playlist.segments.length - 1], lastSegmentStart = lastSegment.dateTimeObject, lastSegmentDuration = lastSegment.videoTimingInfo ? (videoTimingInfo = lastSegment.videoTimingInfo).transmuxedPresentationEnd - videoTimingInfo.transmuxedPresentationStart - videoTimingInfo.transmuxerPrependedSeconds : lastSegment.duration + 0.25 * lastSegment.duration, lastSegmentEnd = new Date(lastSegmentStart.getTime() + 1000 * lastSegmentDuration);
return dateTimeObject > lastSegmentEnd ? null : (dateTimeObject > lastSegmentStart && (segment = lastSegment), {
var videoTimingInfo, lastSegment = playlist.segments[playlist.segments.length - 1], lastSegmentStart = lastSegment.dateTimeObject, lastSegmentDuration = lastSegment.videoTimingInfo ? (videoTimingInfo = lastSegment.videoTimingInfo).transmuxedPresentationEnd - videoTimingInfo.transmuxedPresentationStart - videoTimingInfo.transmuxerPrependedSeconds : lastSegment.duration + 0.25 * lastSegment.duration;
return dateTimeObject > new Date(lastSegmentStart.getTime() + 1000 * lastSegmentDuration) ? null : (dateTimeObject > lastSegmentStart && (segment = lastSegment), {
segment: segment,
estimatedStart: segment.videoTimingInfo ? segment.videoTimingInfo.transmuxedPresentationStart : Playlist.duration(playlist, playlist.mediaSequence + playlist.segments.indexOf(segment)),
type: segment.videoTimingInfo ? "accurate" : "estimate"
@ -8412,11 +8441,11 @@
];
}, videoTrun = function(track, offset) {
var bytesOffest, bytes, header, samples, sample, i;
for(offset += 20 + 16 * (samples = track.samples || []).length, header = trunHeader(samples, offset), (bytes = new Uint8Array(header.length + 16 * samples.length)).set(header), bytesOffest = header.length, i = 0; i < samples.length; i++)sample = samples[i], bytes[bytesOffest++] = (0xff000000 & sample.duration) >>> 24, bytes[bytesOffest++] = (0xff0000 & sample.duration) >>> 16, bytes[bytesOffest++] = (0xff00 & sample.duration) >>> 8, bytes[bytesOffest++] = 0xff & sample.duration, bytes[bytesOffest++] = (0xff000000 & sample.size) >>> 24, bytes[bytesOffest++] = (0xff0000 & sample.size) >>> 16, bytes[bytesOffest++] = (0xff00 & sample.size) >>> 8, bytes[bytesOffest++] = 0xff & sample.size, bytes[bytesOffest++] = sample.flags.isLeading << 2 | sample.flags.dependsOn, bytes[bytesOffest++] = sample.flags.isDependedOn << 6 | sample.flags.hasRedundancy << 4 | sample.flags.paddingValue << 1 | sample.flags.isNonSyncSample, bytes[bytesOffest++] = 61440 & sample.flags.degradationPriority, bytes[bytesOffest++] = 0x0f & sample.flags.degradationPriority, bytes[bytesOffest++] = (0xff000000 & sample.compositionTimeOffset) >>> 24, bytes[bytesOffest++] = (0xff0000 & sample.compositionTimeOffset) >>> 16, bytes[bytesOffest++] = (0xff00 & sample.compositionTimeOffset) >>> 8, bytes[bytesOffest++] = 0xff & sample.compositionTimeOffset;
for(offset += 20 + 16 * (samples = track.samples || []).length, header = trunHeader(samples, offset), bytes = new Uint8Array(header.length + 16 * samples.length), bytes.set(header), bytesOffest = header.length, i = 0; i < samples.length; i++)sample = samples[i], bytes[bytesOffest++] = (0xff000000 & sample.duration) >>> 24, bytes[bytesOffest++] = (0xff0000 & sample.duration) >>> 16, bytes[bytesOffest++] = (0xff00 & sample.duration) >>> 8, bytes[bytesOffest++] = 0xff & sample.duration, bytes[bytesOffest++] = (0xff000000 & sample.size) >>> 24, bytes[bytesOffest++] = (0xff0000 & sample.size) >>> 16, bytes[bytesOffest++] = (0xff00 & sample.size) >>> 8, bytes[bytesOffest++] = 0xff & sample.size, bytes[bytesOffest++] = sample.flags.isLeading << 2 | sample.flags.dependsOn, bytes[bytesOffest++] = sample.flags.isDependedOn << 6 | sample.flags.hasRedundancy << 4 | sample.flags.paddingValue << 1 | sample.flags.isNonSyncSample, bytes[bytesOffest++] = 61440 & sample.flags.degradationPriority, bytes[bytesOffest++] = 0x0f & sample.flags.degradationPriority, bytes[bytesOffest++] = (0xff000000 & sample.compositionTimeOffset) >>> 24, bytes[bytesOffest++] = (0xff0000 & sample.compositionTimeOffset) >>> 16, bytes[bytesOffest++] = (0xff00 & sample.compositionTimeOffset) >>> 8, bytes[bytesOffest++] = 0xff & sample.compositionTimeOffset;
return box(types.trun, bytes);
}, audioTrun = function(track, offset) {
var bytes, bytesOffest, header, samples, sample, i;
for(offset += 20 + 8 * (samples = track.samples || []).length, header = trunHeader(samples, offset), (bytes = new Uint8Array(header.length + 8 * samples.length)).set(header), bytesOffest = header.length, i = 0; i < samples.length; i++)sample = samples[i], bytes[bytesOffest++] = (0xff000000 & sample.duration) >>> 24, bytes[bytesOffest++] = (0xff0000 & sample.duration) >>> 16, bytes[bytesOffest++] = (0xff00 & sample.duration) >>> 8, bytes[bytesOffest++] = 0xff & sample.duration, bytes[bytesOffest++] = (0xff000000 & sample.size) >>> 24, bytes[bytesOffest++] = (0xff0000 & sample.size) >>> 16, bytes[bytesOffest++] = (0xff00 & sample.size) >>> 8, bytes[bytesOffest++] = 0xff & sample.size;
for(offset += 20 + 8 * (samples = track.samples || []).length, header = trunHeader(samples, offset), bytes = new Uint8Array(header.length + 8 * samples.length), bytes.set(header), bytesOffest = header.length, i = 0; i < samples.length; i++)sample = samples[i], bytes[bytesOffest++] = (0xff000000 & sample.duration) >>> 24, bytes[bytesOffest++] = (0xff0000 & sample.duration) >>> 16, bytes[bytesOffest++] = (0xff00 & sample.duration) >>> 8, bytes[bytesOffest++] = 0xff & sample.duration, bytes[bytesOffest++] = (0xff000000 & sample.size) >>> 24, bytes[bytesOffest++] = (0xff0000 & sample.size) >>> 16, bytes[bytesOffest++] = (0xff00 & sample.size) >>> 8, bytes[bytesOffest++] = 0xff & sample.size;
return box(types.trun, bytes);
}, trun$1 = function(track, offset) {
return "audio" === track.type ? audioTrun(track, offset) : videoTrun(track, offset);
@ -8428,7 +8457,7 @@
moov: moov,
initSegment: function(tracks) {
var result, fileType = ftyp(), movie = moov(tracks);
return (result = new Uint8Array(fileType.byteLength + movie.byteLength)).set(fileType), result.set(movie, fileType.byteLength), result;
return result = new Uint8Array(fileType.byteLength + movie.byteLength), result.set(fileType), result.set(movie, fileType.byteLength), result;
}
}, sampleForFrame = function(frame, dataOffset) {
var sample = {
@ -9182,7 +9211,7 @@
0x033f: 0x2518
}, getCharFromCode = function(code) {
return null === code ? "" : String.fromCharCode(code = CHARACTER_TRANSLATION[code] || code);
}, BOTTOM_ROW = 14, ROWS = [
}, ROWS = [
0x1100,
0x1120,
0x1200,
@ -9199,7 +9228,7 @@
0x1400,
0x1420,
], createDisplayBuffer = function() {
for(var result = [], i = BOTTOM_ROW + 1; i--;)result.push("");
for(var result = [], i = 15; i--;)result.push("");
return result;
}, Cea608Stream = function Cea608Stream(field, dataChannel) {
Cea608Stream.prototype.init.call(this), this.field_ = field || 0, this.dataChannel_ = dataChannel || 0, this.name_ = "CC" + ((this.field_ << 1 | this.dataChannel_) + 1), this.setConstants(), this.reset(), this.push = function(packet) {
@ -9256,7 +9285,7 @@
stream: this.name_
});
}, Cea608Stream.prototype.reset = function() {
this.mode_ = "popOn", this.topRow_ = 0, this.startPts_ = 0, this.displayed_ = createDisplayBuffer(), this.nonDisplayed_ = createDisplayBuffer(), this.lastControlCode_ = null, this.column_ = 0, this.row_ = BOTTOM_ROW, this.rollUpRows_ = 2, this.formatting_ = [];
this.mode_ = "popOn", this.topRow_ = 0, this.startPts_ = 0, this.displayed_ = createDisplayBuffer(), this.nonDisplayed_ = createDisplayBuffer(), this.lastControlCode_ = null, this.column_ = 0, this.row_ = 14, this.rollUpRows_ = 2, this.formatting_ = [];
}, Cea608Stream.prototype.setConstants = function() {
0 === this.dataChannel_ ? (this.BASE_ = 0x10, this.EXT_ = 0x11, this.CONTROL_ = (0x14 | this.field_) << 8, this.OFFSET_ = 0x17) : 1 === this.dataChannel_ && (this.BASE_ = 0x18, this.EXT_ = 0x19, this.CONTROL_ = (0x1c | this.field_) << 8, this.OFFSET_ = 0x1f), this.PADDING_ = 0x0000, this.RESUME_CAPTION_LOADING_ = 0x20 | this.CONTROL_, this.END_OF_CAPTION_ = 0x2f | this.CONTROL_, this.ROLL_UP_2_ROWS_ = 0x25 | this.CONTROL_, this.ROLL_UP_3_ROWS_ = 0x26 | this.CONTROL_, this.ROLL_UP_4_ROWS_ = 0x27 | this.CONTROL_, this.CARRIAGE_RETURN_ = 0x2d | this.CONTROL_, this.RESUME_DIRECT_CAPTIONING_ = 0x29 | this.CONTROL_, this.BACKSPACE_ = 0x21 | this.CONTROL_, this.ERASE_DISPLAYED_MEMORY_ = 0x2c | this.CONTROL_, this.ERASE_NON_DISPLAYED_MEMORY_ = 0x2e | this.CONTROL_;
}, Cea608Stream.prototype.isSpecialCharacter = function(char0, char1) {
@ -9274,7 +9303,7 @@
}, Cea608Stream.prototype.isNormalChar = function(_char2) {
return _char2 >= 0x20 && _char2 <= 0x7f;
}, Cea608Stream.prototype.setRollUp = function(pts, newBaseRow) {
if ("rollUp" !== this.mode_ && (this.row_ = BOTTOM_ROW, this.mode_ = "rollUp", this.flushDisplayed(pts), this.nonDisplayed_ = createDisplayBuffer(), this.displayed_ = createDisplayBuffer()), void 0 !== newBaseRow && newBaseRow !== this.row_) for(var i = 0; i < this.rollUpRows_; i++)this.displayed_[newBaseRow - i] = this.displayed_[this.row_ - i], this.displayed_[this.row_ - i] = "";
if ("rollUp" !== this.mode_ && (this.row_ = 14, this.mode_ = "rollUp", this.flushDisplayed(pts), this.nonDisplayed_ = createDisplayBuffer(), this.displayed_ = createDisplayBuffer()), void 0 !== newBaseRow && newBaseRow !== this.row_) for(var i = 0; i < this.rollUpRows_; i++)this.displayed_[newBaseRow - i] = this.displayed_[this.row_ - i], this.displayed_[this.row_ - i] = "";
void 0 === newBaseRow && (newBaseRow = this.row_), this.topRow_ = newBaseRow - this.rollUpRows_ + 1;
}, Cea608Stream.prototype.addFormatting = function(pts, format) {
this.formatting_ = this.formatting_.concat(format);
@ -9298,7 +9327,7 @@
}, Cea608Stream.prototype.shiftRowsUp_ = function() {
var i;
for(i = 0; i < this.topRow_; i++)this.displayed_[i] = "";
for(i = this.row_ + 1; i < BOTTOM_ROW + 1; i++)this.displayed_[i] = "";
for(i = this.row_ + 1; i < 15; i++)this.displayed_[i] = "";
for(i = this.topRow_; i < this.row_; i++)this.displayed_[i] = this.displayed_[i + 1];
this.displayed_[this.row_] = "";
}, Cea608Stream.prototype.paintOn = function(pts, text) {
@ -9422,7 +9451,7 @@
var buffer = new Uint8Array(188), bytesInBuffer = 0;
_TransportPacketStream.prototype.init.call(this), this.push = function(bytes) {
var everything, startIndex = 0, endIndex = 188;
for(bytesInBuffer ? ((everything = new Uint8Array(bytes.byteLength + bytesInBuffer)).set(buffer.subarray(0, bytesInBuffer)), everything.set(bytes, bytesInBuffer), bytesInBuffer = 0) : everything = bytes; endIndex < everything.byteLength;){
for(bytesInBuffer ? (everything = new Uint8Array(bytes.byteLength + bytesInBuffer), everything.set(buffer.subarray(0, bytesInBuffer)), everything.set(bytes, bytesInBuffer), bytesInBuffer = 0) : everything = bytes; endIndex < everything.byteLength;){
if (0x47 === everything[startIndex] && 0x47 === everything[endIndex]) {
this.trigger("data", everything.subarray(startIndex, endIndex)), startIndex += 188, endIndex += 188;
continue;
@ -9603,7 +9632,7 @@
}, this.push = function(packet) {
var skip, frameLength, protectionSkipBytes, oldBuffer, sampleCount, adtsFrameDuration, i = 0;
if (handlePartialSegments || (frameNum = 0), "audio" === packet.type) {
for(buffer && buffer.length ? (oldBuffer = buffer, (buffer = new Uint8Array(oldBuffer.byteLength + packet.data.byteLength)).set(oldBuffer), buffer.set(packet.data, oldBuffer.byteLength)) : buffer = packet.data; i + 7 < buffer.length;){
for(buffer && buffer.length ? (oldBuffer = buffer, buffer = new Uint8Array(oldBuffer.byteLength + packet.data.byteLength), buffer.set(oldBuffer), buffer.set(packet.data, oldBuffer.byteLength)) : buffer = packet.data; i + 7 < buffer.length;){
if (0xff !== buffer[i] || (0xf6 & buffer[i + 1]) != 0xf0) {
"number" != typeof skip && (skip = i), i++;
continue;
@ -9670,7 +9699,7 @@
(_NalByteStream = function() {
var i, buffer, syncPoint = 0;
_NalByteStream.prototype.init.call(this), this.push = function(data) {
buffer ? ((swapBuffer = new Uint8Array(buffer.byteLength + data.data.byteLength)).set(buffer), swapBuffer.set(data.data, buffer.byteLength), buffer = swapBuffer) : buffer = data.data;
buffer ? (swapBuffer = new Uint8Array(buffer.byteLength + data.data.byteLength), swapBuffer.set(buffer), swapBuffer.set(data.data, buffer.byteLength), buffer = swapBuffer) : buffer = data.data;
for(var swapBuffer, len = buffer.byteLength; syncPoint < len - 3; syncPoint++)if (1 === buffer[syncPoint + 2]) {
i = syncPoint + 5;
break;
@ -9926,24 +9955,6 @@
var i, result = "";
for(i = start; i < end; i++)result += "%" + ("00" + bytes[i].toString(16)).slice(-2);
return result;
}, parseAacTimestamp = function(packet) {
var frameStart, frameSize, frame;
frameStart = 10, 0x40 & packet[5] && (frameStart += 4, frameStart += parseSyncSafeInteger(packet.subarray(10, 14)));
do {
if ((frameSize = parseSyncSafeInteger(packet.subarray(frameStart + 4, frameStart + 8))) < 1) break;
if ("PRIV" === String.fromCharCode(packet[frameStart], packet[frameStart + 1], packet[frameStart + 2], packet[frameStart + 3])) {
frame = packet.subarray(frameStart + 10, frameStart + frameSize + 10);
for(var i = 0; i < frame.byteLength; i++)if (0 === frame[i]) {
if ("com.apple.streaming.transportStreamTimestamp" === unescape(percentEncode(frame, 0, i))) {
var d = frame.subarray(i + 1), size = (0x01 & d[3]) << 30 | d[4] << 22 | d[5] << 14 | d[6] << 6 | d[7] >>> 2;
return size *= 4, size += 0x03 & d[7];
}
break;
}
}
frameStart += 10, frameStart += frameSize;
}while (frameStart < packet.byteLength)
return null;
}, utils = {
isLikelyAacData: function(data) {
var offset = function getId3Offset(data, offset) {
@ -9969,7 +9980,25 @@
}
return null;
},
parseAacTimestamp: parseAacTimestamp
parseAacTimestamp: function(packet) {
var frameStart, frameSize, frame;
frameStart = 10, 0x40 & packet[5] && (frameStart += 4, frameStart += parseSyncSafeInteger(packet.subarray(10, 14)));
do {
if ((frameSize = parseSyncSafeInteger(packet.subarray(frameStart + 4, frameStart + 8))) < 1) break;
if ("PRIV" === String.fromCharCode(packet[frameStart], packet[frameStart + 1], packet[frameStart + 2], packet[frameStart + 3])) {
frame = packet.subarray(frameStart + 10, frameStart + frameSize + 10);
for(var i = 0; i < frame.byteLength; i++)if (0 === frame[i]) {
if ("com.apple.streaming.transportStreamTimestamp" === unescape(percentEncode(frame, 0, i))) {
var d = frame.subarray(i + 1), size = (0x01 & d[3]) << 30 | d[4] << 22 | d[5] << 14 | d[6] << 6 | d[7] >>> 2;
return size *= 4, size += 0x03 & d[7];
}
break;
}
}
frameStart += 10, frameStart += frameSize;
}while (frameStart < packet.byteLength)
return null;
}
};
(_AacStream = function() {
var everything = new Uint8Array(), timeStamp = 0;
@ -9977,7 +10006,7 @@
timeStamp = timestamp;
}, this.push = function(bytes) {
var chunk, packet, tempLength, frameSize = 0, byteIndex = 0;
for(everything.length ? (tempLength = everything.length, (everything = new Uint8Array(bytes.byteLength + tempLength)).set(everything.subarray(0, tempLength)), everything.set(bytes, tempLength)) : everything = bytes; everything.length - byteIndex >= 3;){
for(everything.length ? (tempLength = everything.length, everything = new Uint8Array(bytes.byteLength + tempLength), everything.set(everything.subarray(0, tempLength)), everything.set(bytes, tempLength)) : everything = bytes; everything.length - byteIndex >= 3;){
if (73 === everything[byteIndex] && 68 === everything[byteIndex + 1] && 51 === everything[byteIndex + 2]) {
if (everything.length - byteIndex < 10 || (frameSize = utils.parseId3TagSize(everything, byteIndex), byteIndex + frameSize > everything.length)) break;
chunk = {
@ -10373,14 +10402,14 @@
traf: matchingTraf
});
}), mdatTrafPairs.forEach(function(pair) {
var samples, result, mdat = pair.mdat, traf = pair.traf, tfhd = findBox_1(traf, [
var result, mdat = pair.mdat, traf = pair.traf, tfhd = findBox_1(traf, [
"tfhd"
]), headerInfo = parseTfhd(tfhd[0]), trackId = headerInfo.trackId, tfdt = findBox_1(traf, [
"tfdt"
]), baseMediaDecodeTime = tfdt.length > 0 ? parseTfdt(tfdt[0]).baseMediaDecodeTime : 0, truns = findBox_1(traf, [
"trun"
]);
videoTrackId === trackId && truns.length > 0 && (samples = parseSamples(truns, baseMediaDecodeTime, headerInfo), result = findSeiNals(mdat, samples, trackId), captionNals[trackId] || (captionNals[trackId] = {
videoTrackId === trackId && truns.length > 0 && (result = findSeiNals(mdat, parseSamples(truns, baseMediaDecodeTime, headerInfo), trackId), captionNals[trackId] || (captionNals[trackId] = {
seiNals: [],
logs: []
}), captionNals[trackId].seiNals = captionNals[trackId].seiNals.concat(result.seiNals), captionNals[trackId].logs = captionNals[trackId].logs.concat(result.logs));
@ -10465,12 +10494,12 @@
"tfhd"
]).map(function(tfhd) {
var scale, baseTime;
return scale = timescale[toUnsigned(tfhd[4] << 24 | tfhd[5] << 16 | tfhd[6] << 8 | tfhd[7])] || 90e3, (baseTime = "number" != typeof (baseTime = findBox_1(traf, [
return scale = timescale[toUnsigned(tfhd[4] << 24 | tfhd[5] << 16 | tfhd[6] << 8 | tfhd[7])] || 90e3, baseTime = "number" != typeof (baseTime = findBox_1(traf, [
"tfdt"
]).map(function(tfdt) {
var version, result;
return version = tfdt[0], result = toUnsigned(tfdt[4] << 24 | tfdt[5] << 16 | tfdt[6] << 8 | tfdt[7]), 1 === version && (result *= 4294967296, result += toUnsigned(tfdt[8] << 24 | tfdt[9] << 16 | tfdt[10] << 8 | tfdt[11])), result;
})[0]) || isNaN(baseTime) ? 1 / 0 : baseTime) / scale;
})[0]) || isNaN(baseTime) ? 1 / 0 : baseTime, baseTime / scale;
});
})), isFinite(result = Math.min.apply(null, baseTimes)) ? result : 0;
}, compositionStartTime = function(timescales, fragment) {
@ -10658,8 +10687,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":
@ -10671,30 +10700,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;){
@ -10711,15 +10740,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--;
@ -11049,31 +11078,31 @@
return;
}
transmuxer.transmuxQueue.push(processAction.bind(null, transmuxer, action));
}, reset = function(transmuxer) {
enqueueAction("reset", transmuxer);
}, endTimeline = function(transmuxer) {
enqueueAction("endTimeline", transmuxer);
}, transmux = function(options) {
if (!options.transmuxer.currentTransmux) {
options.transmuxer.currentTransmux = options, processTransmux(options);
return;
}
options.transmuxer.transmuxQueue.push(options);
}, createTransmuxer = function(options) {
var transmuxer = new TransmuxWorker();
transmuxer.currentTransmux = null, transmuxer.transmuxQueue = [];
var term = transmuxer.terminate;
return transmuxer.terminate = function() {
return transmuxer.currentTransmux = null, transmuxer.transmuxQueue.length = 0, term.call(transmuxer);
}, transmuxer.postMessage({
action: "init",
options: options
}), transmuxer;
}, segmentTransmuxer = {
reset: reset,
endTimeline: endTimeline,
reset: function(transmuxer) {
enqueueAction("reset", transmuxer);
},
endTimeline: function(transmuxer) {
enqueueAction("endTimeline", transmuxer);
},
transmux: transmux,
createTransmuxer: createTransmuxer
createTransmuxer: function(options) {
var transmuxer = new TransmuxWorker();
transmuxer.currentTransmux = null, transmuxer.transmuxQueue = [];
var term = transmuxer.terminate;
return transmuxer.terminate = function() {
return transmuxer.currentTransmux = null, transmuxer.transmuxQueue.length = 0, term.call(transmuxer);
}, transmuxer.postMessage({
action: "init",
options: options
}), transmuxer;
}
}, workerCallback = function(options) {
var transmuxer = options.transmuxer, endAction = options.endAction || options.action, callback = options.callback, message = (0, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_15__.Z)({}, options, {
endAction: null,
@ -11446,7 +11475,7 @@
var keyRequestOptions = videojs.mergeOptions(xhrOptions, {
uri: segment.key.resolvedUri,
responseType: "arraybuffer"
}), keyRequestCallback = handleKeyResponse(segment, objects, finishProcessingFn), keyXhr = xhr(keyRequestOptions, keyRequestCallback);
}), keyXhr = xhr(keyRequestOptions, handleKeyResponse(segment, objects, finishProcessingFn));
activeXhrs.push(keyXhr);
}
if (segment.map && !segment.map.bytes) {
@ -11454,19 +11483,19 @@
var mapKeyRequestOptions = videojs.mergeOptions(xhrOptions, {
uri: segment.map.key.resolvedUri,
responseType: "arraybuffer"
}), mapKeyRequestCallback = handleKeyResponse(segment, [
}), mapKeyXhr = xhr(mapKeyRequestOptions, handleKeyResponse(segment, [
segment.map.key
], finishProcessingFn), mapKeyXhr = xhr(mapKeyRequestOptions, mapKeyRequestCallback);
], finishProcessingFn));
activeXhrs.push(mapKeyXhr);
}
var initSegmentOptions = videojs.mergeOptions(xhrOptions, {
uri: segment.map.resolvedUri,
responseType: "arraybuffer",
headers: segmentXhrHeaders(segment.map)
}), initSegmentRequestCallback = handleInitSegmentResponse({
}), initSegmentXhr = xhr(initSegmentOptions, handleInitSegmentResponse({
segment: segment,
finishProcessingFn: finishProcessingFn
}), initSegmentXhr = xhr(initSegmentOptions, initSegmentRequestCallback);
}));
activeXhrs.push(initSegmentXhr);
}
var segmentRequestOptions = videojs.mergeOptions(xhrOptions, {
@ -11570,9 +11599,9 @@
}, playlists = master.playlists;
Playlist.isAudioOnly(master) && (playlists = masterPlaylistController.getAudioTrackPlaylists_(), options.audioOnly = !0);
var sortedPlaylistReps = playlists.map(function(playlist) {
var width = playlist.attributes && playlist.attributes.RESOLUTION && playlist.attributes.RESOLUTION.width, height = playlist.attributes && playlist.attributes.RESOLUTION && playlist.attributes.RESOLUTION.height;
return {
bandwidth: playlist.attributes && playlist.attributes.BANDWIDTH || global_window__WEBPACK_IMPORTED_MODULE_0___default().Number.MAX_VALUE,
var bandwidth, width = playlist.attributes && playlist.attributes.RESOLUTION && playlist.attributes.RESOLUTION.width, height = playlist.attributes && playlist.attributes.RESOLUTION && playlist.attributes.RESOLUTION.height;
return bandwidth = (bandwidth = playlist.attributes && playlist.attributes.BANDWIDTH) || global_window__WEBPACK_IMPORTED_MODULE_0___default().Number.MAX_VALUE, {
bandwidth: bandwidth,
width: width,
height: height,
playlist: playlist
@ -13088,9 +13117,9 @@
continue;
}
cue.endTime += segment.duration;
} else if ("cueOut" in segment && ((cue = new (global_window__WEBPACK_IMPORTED_MODULE_0___default()).VTTCue(mediaTime, mediaTime + segment.duration, segment.cueOut)).adStartTime = mediaTime, cue.adEndTime = mediaTime + parseFloat(segment.cueOut), track.addCue(cue)), "cueOutCont" in segment) {
} else if ("cueOut" in segment && (cue = new (global_window__WEBPACK_IMPORTED_MODULE_0___default()).VTTCue(mediaTime, mediaTime + segment.duration, segment.cueOut), cue.adStartTime = mediaTime, cue.adEndTime = mediaTime + parseFloat(segment.cueOut), track.addCue(cue)), "cueOutCont" in segment) {
var _segment$cueOutCont$s = segment.cueOutCont.split("/").map(parseFloat), adOffset = _segment$cueOutCont$s[0], adTotal = _segment$cueOutCont$s[1];
(cue = new (global_window__WEBPACK_IMPORTED_MODULE_0___default()).VTTCue(mediaTime, mediaTime + segment.duration, "")).adStartTime = mediaTime - adOffset, cue.adEndTime = cue.adStartTime + adTotal, track.addCue(cue);
cue = new (global_window__WEBPACK_IMPORTED_MODULE_0___default()).VTTCue(mediaTime, mediaTime + segment.duration, ""), cue.adStartTime = mediaTime - adOffset, cue.adEndTime = cue.adStartTime + adTotal, track.addCue(cue);
}
mediaTime += segment.duration;
}
@ -13320,13 +13349,13 @@
}, TimelineChangeController;
}(videojs.EventTarget), workerCode = transform(getWorkerString(function() {
function createCommonjsModule(fn, basedir, module) {
return module = {
return fn(module = {
path: basedir,
exports: {},
require: function(path, base) {
return commonjsRequire(path, null == base ? module.path : base);
}
}, fn(module, module.exports), module.exports;
}, module.exports), module.exports;
}
function commonjsRequire() {
throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
@ -13461,7 +13490,8 @@
done(null, (padded = decrypted).subarray(0, padded.byteLength - padded[padded.byteLength - 1]));
});
}
return Decrypter.prototype.decryptChunk_ = function(encrypted, key, initVector, decrypted) {
var _proto = Decrypter.prototype;
return _proto.decryptChunk_ = function(encrypted, key, initVector, decrypted) {
return function() {
var bytes = decrypt(encrypted, key, initVector);
decrypted.set(bytes, encrypted.byteOffset);
@ -14784,7 +14814,7 @@
}, Vhs.isSupported = function() {
return videojs.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.");
};
var VhsHandler = function(_Component) {
var Component = videojs.getComponent("Component"), VhsHandler = function(_Component) {
function VhsHandler(source, tech, options) {
var _this;
if (_this = _Component.call(this, tech, videojs.mergeOptions(options.hls, options.vhs)) || this, options.hls && Object.keys(options.hls).length && videojs.log.warn("Using hls options is deprecated. Use vhs instead."), "number" == typeof options.initialBandwidth && (_this.options_.bandwidth = options.initialBandwidth), _this.logger_ = logger("VhsHandler"), tech.options_ && tech.options_.playerId) {
@ -15169,7 +15199,7 @@
callback: callback
});
}, VhsHandler;
}(videojs.getComponent("Component")), VhsSourceHandler = {
}(Component), VhsSourceHandler = {
name: "videojs-http-streaming",
VERSION: version$4,
canHandleSource: function(srcObj, options) {
@ -15189,11 +15219,11 @@
},
canPlayType: function(type, options) {
void 0 === options && (options = {});
var _videojs$mergeOptions2 = videojs.mergeOptions(videojs.options, options).vhs.overrideNative, overrideNative = void 0 === _videojs$mergeOptions2 ? !videojs.browser.IS_ANY_SAFARI : _videojs$mergeOptions2, supportedType = (0, _videojs_vhs_utils_es_media_types_js__WEBPACK_IMPORTED_MODULE_20__.t)(type);
var _videojs$mergeOptions = videojs.mergeOptions(videojs.options, options), _videojs$mergeOptions2 = _videojs$mergeOptions.vhs.overrideNative, overrideNative = void 0 === _videojs$mergeOptions2 ? !videojs.browser.IS_ANY_SAFARI : _videojs$mergeOptions2, supportedType = (0, _videojs_vhs_utils_es_media_types_js__WEBPACK_IMPORTED_MODULE_20__.t)(type);
return supportedType && (!Vhs.supportsTypeNatively(supportedType) || overrideNative) ? "maybe" : "";
}
};
(0, _videojs_vhs_utils_es_codecs_js__WEBPACK_IMPORTED_MODULE_8__.p7)("avc1.4d400d,mp4a.40.2") && videojs.getTech("Html5").registerSourceHandler(VhsSourceHandler, 0), videojs.VhsHandler = VhsHandler, Object.defineProperty(videojs, "HlsHandler", {
if ((0, _videojs_vhs_utils_es_codecs_js__WEBPACK_IMPORTED_MODULE_8__.p7)("avc1.4d400d,mp4a.40.2") && videojs.getTech("Html5").registerSourceHandler(VhsSourceHandler, 0), videojs.VhsHandler = VhsHandler, Object.defineProperty(videojs, "HlsHandler", {
get: function() {
return videojs.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."), VhsHandler;
},
@ -15208,7 +15238,11 @@
return videojs.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."), Vhs;
},
configurable: !0
}), videojs.use || (videojs.registerComponent("Hls", Vhs), videojs.registerComponent("Vhs", Vhs)), videojs.options.vhs = videojs.options.vhs || {}, videojs.options.hls = videojs.options.hls || {}, videojs.getPlugin && videojs.getPlugin("reloadSourceOnError") || (videojs.registerPlugin || videojs.plugin)("reloadSourceOnError", reloadSourceOnError), __webpack_exports__.Z = videojs;
}), videojs.use || (videojs.registerComponent("Hls", Vhs), videojs.registerComponent("Vhs", Vhs)), videojs.options.vhs = videojs.options.vhs || {}, videojs.options.hls = videojs.options.hls || {}, !videojs.getPlugin || !videojs.getPlugin("reloadSourceOnError")) {
var registerPlugin = videojs.registerPlugin || videojs.plugin;
registerPlugin("reloadSourceOnError", reloadSourceOnError);
}
__webpack_exports__.Z = videojs;
}
},
]);

View File

@ -71,8 +71,8 @@
return Number(number);
}), numberToBytes = function(number, _temp2) {
var _ref2$le = (void 0 === _temp2 ? {} : _temp2).le, le = void 0 !== _ref2$le && _ref2$le;
("bigint" != typeof number && "number" != typeof number || "number" == typeof number && number != number) && (number = 0), number = BigInt(number);
for(var byteCount = Math.ceil(number.toString(2).length / 8), bytes = new Uint8Array(new ArrayBuffer(byteCount)), i = 0; i < byteCount; i++){
("bigint" != typeof number && "number" != typeof number || "number" == typeof number && number != number) && (number = 0);
for(var byteCount = Math.ceil((number = BigInt(number)).toString(2).length / 8), bytes = new Uint8Array(new ArrayBuffer(byteCount)), i = 0; i < byteCount; i++){
var byteIndex = le ? i : Math.abs(i + 1 - bytes.length);
bytes[byteIndex] = Number(number / BYTE_TABLE[i] & BigInt(0xff)), number < 0 && (bytes[byteIndex] = Math.abs(~bytes[byteIndex]), bytes[byteIndex] -= 0 === i ? 1 : 2);
}
@ -245,12 +245,6 @@
]);
var normalizePath = function(path) {
return "string" == typeof path ? (0, byte_helpers.qX)(path) : path;
}, normalizePaths = function(paths) {
return Array.isArray(paths) ? paths.map(function(p) {
return normalizePath(p);
}) : [
normalizePath(paths)
];
}, parseDescriptors = function(bytes) {
bytes = (0, byte_helpers.Ki)(bytes);
for(var results = [], i = 0; bytes.length > i;){
@ -323,8 +317,12 @@
},
];
var findBox = function findBox(bytes, paths, complete) {
void 0 === complete && (complete = !1), paths = normalizePaths(paths), bytes = (0, byte_helpers.Ki)(bytes);
var results = [];
void 0 === complete && (complete = !1), paths = Array.isArray(paths1 = paths) ? paths1.map(function(p) {
return normalizePath(p);
}) : [
normalizePath(paths1)
], bytes = (0, byte_helpers.Ki)(bytes);
var paths1, results = [];
if (!paths.length) return results;
for(var i = 0; i < bytes.length;){
var size = (bytes[i] << 24 | bytes[i + 1] << 16 | bytes[i + 2] << 8 | bytes[i + 3]) >>> 0, type = bytes.subarray(i + 4, i + 8);
@ -855,9 +853,9 @@
}
function loadFunc() {
if (!aborted) {
clearTimeout(timeoutTimer);
clearTimeout(timeoutTimer), status = options.useXDR && void 0 === xhr.status ? 200 : 1223 === xhr.status ? 204 : xhr.status;
var status, response = failureResponse, err = null;
return 0 !== (status = options.useXDR && void 0 === xhr.status ? 200 : 1223 === xhr.status ? 204 : xhr.status) ? (response = {
return 0 !== status ? (response = {
body: function() {
var body = void 0;
if (body = xhr.response ? xhr.response : xhr.responseText || getXml(xhr), isJson) try {
@ -1647,7 +1645,8 @@
this.replaceData(offset, count, "");
},
replaceData: function(offset, count, text) {
text = this.data.substring(0, offset) + text + this.data.substring(offset + count), this.nodeValue = this.data = text, this.length = text.length;
var start = this.data.substring(0, offset), end = this.data.substring(offset + count);
text = start + text + end, this.nodeValue = this.data = text, this.length = text.length;
}
}, _extends(CharacterData, Node), Text.prototype = {
nodeName: "#text",
@ -2389,10 +2388,8 @@
}(Stream), parseByterange = function(byterangeString) {
var match = /([0-9.]*)?@?([0-9.]*)?/.exec(byterangeString || ""), result = {};
return match[1] && (result.length = parseInt(match[1], 10)), match[2] && (result.offset = parseInt(match[2], 10)), result;
}, attributeSeparator = function() {
return RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))');
}, parseAttributes = function(attributes) {
for(var attr, attrs = attributes.split(attributeSeparator()), result = {}, i = attrs.length; i--;)"" !== attrs[i] && ((attr = /([^=]*)=(.*)/.exec(attrs[i]).slice(1))[0] = attr[0].replace(/^\s+|\s+$/g, ""), attr[1] = attr[1].replace(/^\s+|\s+$/g, ""), attr[1] = attr[1].replace(/^['"](.*)['"]$/g, "$1"), result[attr[0]] = attr[1]);
for(var attr, attrs = attributes.split(RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')), result = {}, i = attrs.length; i--;)"" !== attrs[i] && ((attr = /([^=]*)=(.*)/.exec(attrs[i]).slice(1))[0] = attr[0].replace(/^\s+|\s+$/g, ""), attr[1] = attr[1].replace(/^\s+|\s+$/g, ""), attr[1] = attr[1].replace(/^['"](.*)['"]$/g, "$1"), result[attr[0]] = attr[1]);
return result;
}, ParseStream = function(_Stream) {
function ParseStream() {
@ -3486,33 +3483,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;
@ -3545,9 +3515,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
}));
@ -3574,7 +3569,7 @@
}));
var adaptationSetAttributes1, adaptationSetBaseUrls1, adaptationSetSegmentInfo, segmentInfo = getSegmentInformation(adaptationSet), representations = findChildren(adaptationSet, "Representation"), adaptationSetSegmentInfo1 = merge(periodSegmentInfo, segmentInfo);
return flatten(representations.map((adaptationSetAttributes1 = attrs, adaptationSetBaseUrls1 = adaptationSetBaseUrls, adaptationSetSegmentInfo = adaptationSetSegmentInfo1, function(representation) {
var repBaseUrlElements = findChildren(representation, "BaseURL"), repBaseUrls = buildBaseUrls(adaptationSetBaseUrls1, repBaseUrlElements), attributes = merge(adaptationSetAttributes1, parseAttributes(representation)), representationSegmentInfo = getSegmentInformation(representation);
var repBaseUrls = buildBaseUrls(adaptationSetBaseUrls1, findChildren(representation, "BaseURL")), attributes = merge(adaptationSetAttributes1, parseAttributes(representation)), representationSegmentInfo = getSegmentInformation(representation);
return repBaseUrls.map(function(baseUrl) {
return {
segmentInfo: merge(adaptationSetSegmentInfo, representationSegmentInfo),
@ -3620,8 +3615,8 @@
return attributes;
}, parse = function(manifestString, options) {
void 0 === options && (options = {});
var parsedManifestInfo = inheritAttributes(stringToMpdXml(manifestString), options), playlists = (0, parsedManifestInfo.representationInfo).map(generateSegments);
return toM3u8(playlists, parsedManifestInfo.locations, options.sidxMapping);
var parsedManifestInfo = inheritAttributes(stringToMpdXml(manifestString), options);
return toM3u8((0, parsedManifestInfo.representationInfo).map(generateSegments), parsedManifestInfo.locations, options.sidxMapping);
}, parseUTCTiming = function(manifestString) {
return parseUTCTimingScheme(stringToMpdXml(manifestString));
};

View File

@ -787,12 +787,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -827,7 +827,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,
@ -867,12 +867,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -907,12 +907,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -1065,7 +1065,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,
@ -1573,9 +1573,9 @@ 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: 6,
usage_count: 5,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
@ -1771,7 +1771,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,
@ -1811,12 +1811,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -1851,12 +1851,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -1891,12 +1891,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -1931,7 +1931,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,
@ -1971,12 +1971,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -2011,12 +2011,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -2089,12 +2089,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -2513,7 +2513,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,
@ -2551,7 +2551,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: 4,
reassigned_with_assignment: false,
@ -2741,7 +2741,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,
@ -2781,7 +2781,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: 4,
reassigned_with_assignment: true,
@ -2821,7 +2821,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,
@ -2861,7 +2861,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,
@ -2901,7 +2901,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: 4,
reassigned_with_assignment: true,
@ -2941,7 +2941,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: 4,
reassigned_with_assignment: true,
@ -2981,7 +2981,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,
@ -3725,12 +3725,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -3845,7 +3845,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: 1,
usage_count: 2,
reassigned_with_assignment: true,
@ -3923,7 +3923,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: 1,
usage_count: 5,
reassigned_with_assignment: true,
@ -4593,7 +4593,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: 1,
usage_count: 2,
reassigned_with_assignment: true,
@ -4749,12 +4749,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -5845,7 +5845,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,
@ -6419,7 +6419,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,
@ -6495,12 +6495,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -6989,7 +6989,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,
@ -7027,7 +7027,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: 4,
reassigned_with_assignment: false,
@ -7257,12 +7257,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -7297,7 +7297,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

@ -749,12 +749,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -1877,12 +1877,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -1997,12 +1997,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -2037,7 +2037,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: 18,
reassigned_with_assignment: false,
@ -2075,7 +2075,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: 23,
reassigned_with_assignment: false,
@ -2113,12 +2113,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -2153,12 +2153,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -2473,12 +2473,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -2707,12 +2707,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -2983,7 +2983,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,
@ -3063,7 +3063,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,
@ -3221,12 +3221,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -3261,12 +3261,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -3419,12 +3419,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -3773,12 +3773,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -5057,7 +5057,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,
@ -5137,12 +5137,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -5651,7 +5651,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,
@ -5771,7 +5771,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,
@ -6049,7 +6049,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,
@ -6203,12 +6203,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -6281,12 +6281,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -6557,7 +6557,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: 8,
reassigned_with_assignment: true,
@ -6713,7 +6713,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: 6,
reassigned_with_assignment: false,
@ -6793,12 +6793,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -6833,12 +6833,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -7071,12 +7071,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -7229,12 +7229,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -7775,12 +7775,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -7853,7 +7853,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,
@ -7967,12 +7967,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -8007,12 +8007,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -8205,12 +8205,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -8245,12 +8245,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -8285,7 +8285,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,
@ -8403,7 +8403,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,
@ -8519,7 +8519,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,
@ -9377,12 +9377,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -9455,7 +9455,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,
@ -9575,7 +9575,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,
@ -9615,7 +9615,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,
@ -9855,12 +9855,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -10415,7 +10415,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: 9,
reassigned_with_assignment: false,
@ -10455,7 +10455,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,
@ -10729,7 +10729,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,
@ -10849,7 +10849,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,
@ -11009,12 +11009,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -11677,7 +11677,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,
@ -11797,7 +11797,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,
@ -11953,7 +11953,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: 0,
usage_count: 2,
reassigned_with_assignment: true,
@ -12033,12 +12033,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -12465,7 +12465,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,
@ -12783,12 +12783,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},

View File

@ -31,7 +31,7 @@
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.default = function(_param) {
var sizerSvgUrl, _obj, src = _param.src, sizes = _param.sizes, _unoptimized = _param.unoptimized, unoptimized = void 0 !== _unoptimized && _unoptimized, _priority = _param.priority, priority = void 0 !== _priority && _priority, loading = _param.loading, _lazyRoot = _param.lazyRoot, lazyRoot = void 0 === _lazyRoot ? null : _lazyRoot, lazyBoundary = _param.lazyBoundary, className = _param.className, quality = _param.quality, width = _param.width, height = _param.height, style = _param.style, objectFit = _param.objectFit, objectPosition = _param.objectPosition, onLoadingComplete = _param.onLoadingComplete, _placeholder = _param.placeholder, placeholder = void 0 === _placeholder ? "empty" : _placeholder, blurDataURL = _param.blurDataURL, all = _object_without_properties_loose(_param, [
var sizerSvgUrl, _obj, src = _param.src, sizes = _param.sizes, _unoptimized = _param.unoptimized, unoptimized = void 0 !== _unoptimized && _unoptimized, _priority = _param.priority, priority = void 0 !== _priority && _priority, loading = _param.loading, _lazyRoot = _param.lazyRoot, lazyBoundary = _param.lazyBoundary, className = _param.className, quality = _param.quality, width = _param.width, height = _param.height, style = _param.style, objectFit = _param.objectFit, objectPosition = _param.objectPosition, onLoadingComplete = _param.onLoadingComplete, _placeholder = _param.placeholder, placeholder = void 0 === _placeholder ? "empty" : _placeholder, blurDataURL = _param.blurDataURL, all = _object_without_properties_loose(_param, [
"src",
"sizes",
"unoptimized",
@ -68,11 +68,9 @@
if (rest.loader) {
var customImageLoader = rest.loader;
loader = function(obj) {
obj.config;
var opts = _object_without_properties_loose(obj, [
return obj.config, customImageLoader(_object_without_properties_loose(obj, [
"config"
]);
return customImageLoader(opts);
]));
};
}
delete rest.loader;
@ -83,11 +81,10 @@
if (!staticImageData.src) throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(staticImageData)));
if (blurDataURL = blurDataURL || staticImageData.blurDataURL, staticSrc = staticImageData.src, (!layout || "fill" !== layout) && (height = height || staticImageData.height, width = width || staticImageData.width, !staticImageData.height || !staticImageData.width)) throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(staticImageData)));
}
src = "string" == typeof src ? src : staticSrc;
var isLazy = !priority && ("lazy" === loading || void 0 === loading);
(src.startsWith("data:") || src.startsWith("blob:")) && (unoptimized = !0, isLazy = !1), loadedImageURLs.has(src) && (isLazy = !1), experimentalUnoptimized && (unoptimized = !0);
((src = "string" == typeof src ? src : staticSrc).startsWith("data:") || src.startsWith("blob:")) && (unoptimized = !0, isLazy = !1), loadedImageURLs.has(src) && (isLazy = !1), experimentalUnoptimized && (unoptimized = !0);
var ref = _slicedToArray(_react.useState(!1), 2), blurComplete = ref[0], setBlurComplete = ref[1], ref1 = _slicedToArray(_useIntersection.useIntersection({
rootRef: lazyRoot,
rootRef: void 0 === _lazyRoot ? null : _lazyRoot,
rootMargin: lazyBoundary || "200px",
disabled: !isLazy
}), 3), setIntersection = ref1[0], isIntersected = ref1[1], resetIntersected = ref1[2], isVisible = !isLazy || isIntersected, wrapperStyle = {
@ -472,7 +469,7 @@
value: !0
}), exports.useIntersection = function(param) {
var rootRef = param.rootRef, rootMargin = param.rootMargin, isDisabled = param.disabled || !hasIntersectionObserver, unobserve = _react.useRef(), ref = _slicedToArray(_react.useState(!1), 2), visible = ref[0], setVisible = ref[1], ref1 = _slicedToArray(_react.useState(null), 2), element = ref1[0], setElement = ref1[1];
_react.useEffect(function() {
return _react.useEffect(function() {
if (hasIntersectionObserver) {
if (unobserve.current && (unobserve.current(), unobserve.current = void 0), !isDisabled && !visible) return element && element.tagName && (unobserve.current = observe(element, function(isVisible) {
return isVisible && setVisible(isVisible);
@ -496,14 +493,12 @@
rootMargin,
rootRef,
visible
]);
var resetVisible = _react.useCallback(function() {
setVisible(!1);
}, []);
return [
]), [
setElement,
visible,
resetVisible
_react.useCallback(function() {
setVisible(!1);
}, [])
];
};
var _react = __webpack_require__(959), _requestIdleCallback = __webpack_require__(6501), hasIntersectionObserver = "function" == typeof IntersectionObserver, observers = new Map(), idList = [];
@ -527,15 +522,15 @@
return obj.root === id.root && obj.margin === id.margin;
});
if (existing && (instance = observers.get(existing))) return instance;
var elements = new Map(), observer = new IntersectionObserver(function(entries) {
entries.forEach(function(entry) {
var callback = elements.get(entry.target), isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
callback && isVisible && callback(isVisible);
});
}, options);
var elements = new Map();
return instance = {
id: id,
observer: observer,
observer: new IntersectionObserver(function(entries) {
entries.forEach(function(entry) {
var callback = elements.get(entry.target), isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
callback && isVisible && callback(isVisible);
});
}, options),
elements: elements
}, idList.push(id), observers.set(id, instance), instance;
}

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,12 +235383,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -235396,8 +235396,8 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: true,
used_in_cond: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: Some(
"const",
),
@ -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,
@ -2793,7 +2793,7 @@ TestSnapshot {
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: 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,
@ -4091,7 +4091,7 @@ TestSnapshot {
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: 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,
@ -29867,7 +29867,7 @@ TestSnapshot {
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
used_in_cond: false,
var_kind: Some(
"var",
),
@ -33097,12 +33097,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -33111,7 +33111,7 @@ TestSnapshot {
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: false,
@ -33363,12 +33363,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -33377,7 +33377,7 @@ TestSnapshot {
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: false,
@ -35567,7 +35567,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: 1,
usage_count: 1,
reassigned_with_assignment: false,
@ -35581,7 +35581,7 @@ TestSnapshot {
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: false,
@ -38515,12 +38515,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -40807,12 +40807,12 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 9,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 11,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -41553,12 +41553,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -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,
@ -46957,7 +46957,7 @@ TestSnapshot {
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
used_in_cond: false,
var_kind: Some(
"var",
),
@ -51589,12 +51589,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -51603,7 +51603,7 @@ TestSnapshot {
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: false,
@ -55259,7 +55259,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: 2,
reassigned_with_assignment: true,
@ -55339,7 +55339,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: 1,
usage_count: 1,
reassigned_with_assignment: true,
@ -55419,12 +55419,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -55433,7 +55433,7 @@ TestSnapshot {
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
used_in_cond: false,
var_kind: Some(
"var",
),

View File

@ -321,7 +321,7 @@
return "string" == typeof n && -1 !== n.indexOf("%");
}
function boundAlpha(a) {
return a = parseFloat(a), (isNaN(a) || a < 0 || a > 1) && (a = 1), a;
return (isNaN(a = parseFloat(a)) || a < 0 || a > 1) && (a = 1), a;
}
function convertToPercentage(n) {
return n <= 1 ? "".concat(100 * Number(n), "%") : n;
@ -330,8 +330,7 @@
return 1 === c.length ? "0" + c : String(c);
}
function rgbToHsl(r, g, b) {
r = bound01(r, 255), g = bound01(g, 255), b = bound01(b, 255);
var max = Math.max(r, g, b), min = Math.min(r, g, b), h = 0, s = 0, l = (max + min) / 2;
var max = Math.max(r = bound01(r, 255), g = bound01(g, 255), b = bound01(b, 255)), min = Math.min(r, g, b), h = 0, s = 0, l = (max + min) / 2;
if (max === min) s = 0, h = 0;
else {
var d = max - min;
@ -357,8 +356,7 @@
return (t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6) ? p + (q - p) * (6 * t) : t < 0.5 ? q : t < 2 / 3 ? p + (q - p) * (2 / 3 - t) * 6 : p;
}
function rgbToHsv(r, g, b) {
r = bound01(r, 255), g = bound01(g, 255), b = bound01(b, 255);
var max = Math.max(r, g, b), min = Math.min(r, g, b), h = 0, d = max - min;
var max = Math.max(r = bound01(r, 255), g = bound01(g, 255), b = bound01(b, 255)), min = Math.min(r, g, b), h = 0, d = max - min;
if (max === min) h = 0;
else {
switch(max){
@ -1618,7 +1616,7 @@
for(options.count = void 0; totalColors > colors.length;)options.count = null, options.seed && (options.seed += 1), colors.push(random(options));
return options.count = totalColors, colors;
}
var hue, seed, hueRange, res, h = (hue = options.hue, seed = options.seed, hueRange = function(colorInput) {
var hue, seed, res, h = (hue = options.hue, seed = options.seed, res = randomWithin(function(colorInput) {
var num = parseInt(colorInput, 10);
if (!Number.isNaN(num) && num < 360 && num > 0) return [
num,
@ -1645,7 +1643,7 @@
0,
360
];
}(hue), res = randomWithin(hueRange, seed), res < 0 && (res = 360 + res), res), s = function(hue, options) {
}(hue), seed), res < 0 && (res = 360 + res), res), s = function(hue, options) {
if ("monochrome" === options.hue) return 0;
if ("random" === options.luminosity) return randomWithin([
0,
@ -4345,9 +4343,9 @@
__css: styles.title
}));
}), AlertDescription = (0, chakra_ui_system_esm.Gp)(function(props, ref) {
var styles = useStyles(), descriptionStyles = chakra_ui_alert_esm_extends({
var descriptionStyles = chakra_ui_alert_esm_extends({
display: "inline"
}, styles.description);
}, useStyles().description);
return react.createElement(chakra_ui_system_esm.m$.div, chakra_ui_alert_esm_extends({
ref: ref
}, props, {

View File

@ -1210,7 +1210,7 @@
}
function prepareMeasureForLine(cm, line) {
var cm1, line1, lineN, view, built, lineN1 = lineNo(line), view1 = findViewForLine(cm, lineN1);
view1 && !view1.text ? view1 = null : view1 && view1.changes && (updateLineForChanges(cm, view1, lineN1, getDimensions(cm)), cm.curOp.forceUpdate = !0), view1 || (view1 = (cm1 = cm, line1 = visualLine(line1 = line), lineN = lineNo(line1), (view = cm1.display.externalMeasured = new LineView(cm1.doc, line1, lineN)).lineN = lineN, built = view.built = buildLineContent(cm1, view), view.text = built.pre, removeChildrenAndAdd(cm1.display.lineMeasure, built.pre), view));
view1 && !view1.text ? view1 = null : view1 && view1.changes && (updateLineForChanges(cm, view1, lineN1, getDimensions(cm)), cm.curOp.forceUpdate = !0), view1 || (view1 = (cm1 = cm, lineN = lineNo(line1 = visualLine(line1 = line)), view = cm1.display.externalMeasured = new LineView(cm1.doc, line1, lineN), view.lineN = lineN, built = view.built = buildLineContent(cm1, view), view.text = built.pre, removeChildrenAndAdd(cm1.display.lineMeasure, built.pre), view));
var info = mapFromLineView(view1, line, lineN1);
return {
line: line,
@ -1451,7 +1451,7 @@
var coords = cursorCoords(cm, Pos(lineNo, ch, sticky), "line", lineObj, preparedMeasure);
baseX = coords.left, outside = y < coords.top ? -1 : y >= coords.bottom ? 1 : 0;
}
return ch = skipExtendingChars(lineObj.text, ch, 1), PosWithInfo(lineNo, ch, sticky, outside, x - baseX);
return PosWithInfo(lineNo, ch = skipExtendingChars(lineObj.text, ch, 1), sticky, outside, x - baseX);
}
function coordsBidiPart(cm, lineObj, lineNo, preparedMeasure, order, x, y) {
var index = findFirst(function(i) {
@ -2363,16 +2363,6 @@
function offsetPos(pos, old, nw) {
return pos.line == old.line ? Pos(nw.line, pos.ch - old.ch + nw.ch) : Pos(nw.line + (pos.line - old.line), pos.ch);
}
function computeReplacedSel(doc, changes, hint) {
for(var out = [], oldPrev = Pos(doc.first, 0), newPrev = oldPrev, i = 0; i < changes.length; i++){
var change = changes[i], from = offsetPos(change.from, oldPrev, newPrev), to = offsetPos(changeEnd(change), oldPrev, newPrev);
if (oldPrev = change.to, newPrev = to, "around" == hint) {
var range = doc.sel.ranges[i], inv = 0 > cmp(range.head, range.anchor);
out[i] = new Range(inv ? to : from, inv ? from : to);
} else out[i] = new Range(from, from);
}
return new Selection(out, doc.sel.primIndex);
}
function loadMode(cm) {
cm.doc.mode = getMode(cm.options, cm.doc.modeOption), resetModeState(cm);
}
@ -2608,8 +2598,8 @@
return pos;
}
function skipAtomic(doc, pos, oldPos, bias, mayClear) {
var dir = bias || 1;
return skipAtomicInner(doc, pos, oldPos, dir, mayClear) || !mayClear && skipAtomicInner(doc, pos, oldPos, dir, !0) || skipAtomicInner(doc, pos, oldPos, -dir, mayClear) || !mayClear && skipAtomicInner(doc, pos, oldPos, -dir, !0) || (doc.cantEdit = !0, Pos(doc.first, 0));
var dir = bias || 1, found = skipAtomicInner(doc, pos, oldPos, dir, mayClear) || !mayClear && skipAtomicInner(doc, pos, oldPos, dir, !0) || skipAtomicInner(doc, pos, oldPos, -dir, mayClear) || !mayClear && skipAtomicInner(doc, pos, oldPos, -dir, !0);
return found || (doc.cantEdit = !0, Pos(doc.first, 0));
}
function movePos(doc, pos, dir, line) {
return dir < 0 && 0 == pos.ch ? pos.line > doc.first ? clipPos(doc, Pos(pos.line - 1)) : null : dir > 0 && pos.ch == (line || getLine(doc, pos.line)).text.length ? pos.line < doc.first + doc.size - 1 ? Pos(pos.line + 1, 0) : null : new Pos(pos.line, pos.ch + dir);
@ -2717,21 +2707,21 @@
changes: antiChanges,
generation: hist.generation
}), hist.generation = event.generation || ++hist.maxGeneration;
for(var filter = hasHandler(doc, "beforeChange") || doc.cm && hasHandler(doc.cm, "beforeChange"), loop = function(i) {
var change = event.changes[i];
if (change.origin = type, filter && !filterChange(doc, change, !1)) return source.length = 0, {};
antiChanges.push(historyChangeFromChange(doc, change));
var after = i ? computeSelAfterChange(doc, change) : lst(source);
makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change)), !i && doc.cm && doc.cm.scrollIntoView({
from: change.from,
to: changeEnd(change)
});
var rebased = [];
linkedDocs(doc, function(doc, sharedHist) {
sharedHist || -1 != indexOf(rebased, doc.history) || (rebaseHist(doc.history, change), rebased.push(doc.history)), makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));
});
}, i$1 = event.changes.length - 1; i$1 >= 0; --i$1){
var returned = loop(i$1);
for(var filter = hasHandler(doc, "beforeChange") || doc.cm && hasHandler(doc.cm, "beforeChange"), i$1 = event.changes.length - 1; i$1 >= 0; --i$1){
var returned = function(i) {
var change = event.changes[i];
if (change.origin = type, filter && !filterChange(doc, change, !1)) return source.length = 0, {};
antiChanges.push(historyChangeFromChange(doc, change));
var after = i ? computeSelAfterChange(doc, change) : lst(source);
makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change)), !i && doc.cm && doc.cm.scrollIntoView({
from: change.from,
to: changeEnd(change)
});
var rebased = [];
linkedDocs(doc, function(doc, sharedHist) {
sharedHist || -1 != indexOf(rebased, doc.history) || (rebaseHist(doc.history, change), rebased.push(doc.history)), makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));
});
}(i$1);
if (returned) return returned.v;
}
}
@ -3058,7 +3048,7 @@
}, TextMarker.prototype.changed = function() {
var this$1 = this, pos = this.find(-1, !0), widget = this, cm = this.doc.cm;
pos && cm && runInOp(cm, function() {
var line = pos.line, lineN = lineNo(pos.line), view = findViewForLine(cm, lineN);
var line = pos.line, view = findViewForLine(cm, lineNo(pos.line));
if (view && (clearLineMeasurementCacheFor(view), cm.curOp.selectionChanged = cm.curOp.forceUpdate = !0), cm.curOp.updateMaxLine = !0, !lineIsHidden(widget.doc, line) && null != widget.height) {
var oldHeight = widget.height;
widget.height = null;
@ -3257,7 +3247,16 @@
origin: origin
};
}
for(var newSel = collapse && "end" != collapse && computeReplacedSel(this, changes, collapse), i$1 = changes.length - 1; i$1 >= 0; i$1--)makeChange(this, changes[i$1]);
for(var newSel = collapse && "end" != collapse && function(doc, changes, hint) {
for(var out = [], oldPrev = Pos(doc.first, 0), newPrev = oldPrev, i = 0; i < changes.length; i++){
var change = changes[i], from = offsetPos(change.from, oldPrev, newPrev), to = offsetPos(changeEnd(change), oldPrev, newPrev);
if (oldPrev = change.to, newPrev = to, "around" == hint) {
var range = doc.sel.ranges[i], inv = 0 > cmp(range.head, range.anchor);
out[i] = new Range(inv ? to : from, inv ? from : to);
} else out[i] = new Range(from, from);
}
return new Selection(out, doc.sel.primIndex);
}(this, changes, collapse), i$1 = changes.length - 1; i$1 >= 0; i$1--)makeChange(this, changes[i$1]);
newSel ? setSelectionReplaceHistory(this, newSel) : this.cm && ensureCursorVisible(this.cm);
}),
undo: docMethodOp(function() {
@ -3429,7 +3428,8 @@
}), clipPos(this, Pos(lineNo, ch));
},
indexFromPos: function(coords) {
var index = (coords = clipPos(this, coords)).ch;
coords = clipPos(this, coords);
var index = coords.ch;
if (coords.line < this.first || coords.ch < 0) return 0;
var sepSize = this.lineSeparator().length;
return this.iter(this.first, coords.line, function(line) {
@ -3515,8 +3515,9 @@
if (!(!pos || cm.isReadOnly())) {
if (files && files.length && window.FileReader && window.File) for(var n = files.length, text = Array(n), read = 0, markAsReadAndPasteIfAllFilesAreRead = function() {
++read == n && operation(cm, function() {
pos = clipPos(cm.doc, pos);
var change = {
from: pos = clipPos(cm.doc, pos),
from: pos,
to: pos,
text: cm.doc.splitLines(text.filter(function(t) {
return null != t;
@ -3723,7 +3724,9 @@
if (order) {
var ch, part = dir < 0 ? lst(order) : order[0], sticky = dir < 0 == (1 == part.level) ? "after" : "before";
if (part.level > 0 || "rtl" == cm.doc.direction) {
var prep = prepareMeasureForLine(cm, lineObj), targetTop = measureCharPrepared(cm, prep, ch = dir < 0 ? lineObj.text.length - 1 : 0).top;
var prep = prepareMeasureForLine(cm, lineObj);
ch = dir < 0 ? lineObj.text.length - 1 : 0;
var targetTop = measureCharPrepared(cm, prep, ch).top;
ch = findFirst(function(ch) {
return measureCharPrepared(cm, prep, ch).top == targetTop;
}, dir < 0 == (1 == part.level) ? part.from : part.to - 1, ch), "before" == sticky && (ch = moveCharLogically(lineObj, ch, 1));
@ -4627,11 +4630,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;
@ -4663,7 +4664,7 @@
var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight), moveAmount = Math.max(pageSize - 0.5 * textHeight(cm.display), 3);
y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;
} else "line" == unit && (y = dir > 0 ? pos.bottom + 3 : pos.top - 3);
for(; (target = coordsChar(cm, x, y)).outside;){
for(; target = coordsChar(cm, x, y), target.outside;){
if (dir < 0 ? y <= 0 : y >= doc.height) {
target.hitSide = !0;
break;
@ -4686,42 +4687,6 @@
function badPos(pos, bad) {
return bad && (pos.bad = !0), pos;
}
function domTextBetween(cm, from, to, fromLine, toLine) {
var text = "", closing = !1, lineSep = cm.doc.lineSeparator(), extraLinebreak = !1;
function close() {
closing && (text += lineSep, extraLinebreak && (text += lineSep), closing = extraLinebreak = !1);
}
function addText(str) {
str && (close(), text += str);
}
function walk(node) {
if (1 == node.nodeType) {
var cmText = node.getAttribute("cm-text");
if (cmText) {
addText(cmText);
return;
}
var range, markerID = node.getAttribute("cm-marker");
if (markerID) {
var id, found = cm.findMarks(Pos(fromLine, 0), Pos(toLine + 1, 0), (id = +markerID, function(marker) {
return marker.id == id;
}));
found.length && (range = found[0].find(0)) && addText(getBetween(cm.doc, range.from, range.to).join(lineSep));
return;
}
if ("false" != node.getAttribute("contenteditable")) {
var isBlock = /^(pre|div|p|li|table|br)$/i.test(node.nodeName);
if (/^br$/i.test(node.nodeName) || 0 != node.textContent.length) {
isBlock && close();
for(var i = 0; i < node.childNodes.length; i++)walk(node.childNodes[i]);
/^(pre|p)$/i.test(node.nodeName) && (extraLinebreak = !0), isBlock && (closing = !0);
}
}
} else 3 == node.nodeType && addText(node.nodeValue.replace(/\u200b/g, "").replace(/\u00a0/g, " "));
}
for(; walk(from), from != to;)from = from.nextSibling, extraLinebreak = !1;
return text;
}
function domToPos(cm, node, offset) {
var lineNode;
if (node == cm.display.lineDiv) {
@ -4933,7 +4898,42 @@
from.line == display.viewFrom || 0 == (fromIndex = findViewIndex(cm, from.line)) ? (fromLine = lineNo(display.view[0].line), fromNode = display.view[0].node) : (fromLine = lineNo(display.view[fromIndex].line), fromNode = display.view[fromIndex - 1].node.nextSibling);
var toIndex = findViewIndex(cm, to.line);
if (toIndex == display.view.length - 1 ? (toLine = display.viewTo - 1, toNode = display.lineDiv.lastChild) : (toLine = lineNo(display.view[toIndex + 1].line) - 1, toNode = display.view[toIndex + 1].node.previousSibling), !fromNode) return !1;
for(var newText = cm.doc.splitLines(domTextBetween(cm, fromNode, toNode, fromLine, toLine)), oldText = getBetween(cm.doc, Pos(fromLine, 0), Pos(toLine, getLine(cm.doc, toLine).text.length)); newText.length > 1 && oldText.length > 1;)if (lst(newText) == lst(oldText)) newText.pop(), oldText.pop(), toLine--;
for(var newText = cm.doc.splitLines(function(cm, from, to, fromLine, toLine) {
var text = "", closing = !1, lineSep = cm.doc.lineSeparator(), extraLinebreak = !1;
function close() {
closing && (text += lineSep, extraLinebreak && (text += lineSep), closing = extraLinebreak = !1);
}
function addText(str) {
str && (close(), text += str);
}
function walk(node) {
if (1 == node.nodeType) {
var cmText = node.getAttribute("cm-text");
if (cmText) {
addText(cmText);
return;
}
var range, markerID = node.getAttribute("cm-marker");
if (markerID) {
var id, found = cm.findMarks(Pos(fromLine, 0), Pos(toLine + 1, 0), (id = +markerID, function(marker) {
return marker.id == id;
}));
found.length && (range = found[0].find(0)) && addText(getBetween(cm.doc, range.from, range.to).join(lineSep));
return;
}
if ("false" != node.getAttribute("contenteditable")) {
var isBlock = /^(pre|div|p|li|table|br)$/i.test(node.nodeName);
if (/^br$/i.test(node.nodeName) || 0 != node.textContent.length) {
isBlock && close();
for(var i = 0; i < node.childNodes.length; i++)walk(node.childNodes[i]);
/^(pre|p)$/i.test(node.nodeName) && (extraLinebreak = !0), isBlock && (closing = !0);
}
}
} else 3 == node.nodeType && addText(node.nodeValue.replace(/\u200b/g, "").replace(/\u00a0/g, " "));
}
for(; walk(from), from != to;)from = from.nextSibling, extraLinebreak = !1;
return text;
}(cm, fromNode, toNode, fromLine, toLine)), oldText = getBetween(cm.doc, Pos(fromLine, 0), Pos(toLine, getLine(cm.doc, toLine).text.length)); newText.length > 1 && oldText.length > 1;)if (lst(newText) == lst(oldText)) newText.pop(), oldText.pop(), toLine--;
else if (newText[0] == oldText[0]) newText.shift(), oldText.shift(), fromLine++;
else break;
for(var cutFront = 0, cutEnd = 0, newTop = newText[0], oldTop = oldText[0], maxCutFront = Math.min(newTop.length, oldTop.length); cutFront < maxCutFront && newTop.charCodeAt(cutFront) == oldTop.charCodeAt(cutFront);)++cutFront;
@ -5191,7 +5191,7 @@
}), option("autofocus", null), option("direction", "ltr", function(cm, val) {
return cm.doc.setDirection(val);
}, !0), option("phrases", null);
}(CodeMirror2), optionHandlers = (CodeMirror = CodeMirror2).optionHandlers, helpers = CodeMirror.helpers = {}, CodeMirror.prototype = {
}(CodeMirror2), CodeMirror = CodeMirror2, optionHandlers = CodeMirror.optionHandlers, helpers = CodeMirror.helpers = {}, CodeMirror.prototype = {
constructor: CodeMirror,
focus: function() {
window.focus(), this.display.input.focus();
@ -5299,7 +5299,7 @@
},
getStateAfter: function(line, precise) {
var doc = this.doc;
return line = clipLine(doc, null == line ? doc.first + doc.size - 1 : line), getContextBefore(this, line + 1, precise).state;
return getContextBefore(this, (line = clipLine(doc, null == line ? doc.first + doc.size - 1 : line)) + 1, precise).state;
},
cursorCoords: function(start, mode) {
var pos, range = this.doc.sel.primary();
@ -5309,7 +5309,7 @@
return charCoords(this, clipPos(this.doc, pos), mode || "page");
},
coordsChar: function(coords, mode) {
return coords = fromCoordSystem(this, coords, mode || "page"), coordsChar(this, coords.left, coords.top);
return coordsChar(this, (coords = fromCoordSystem(this, coords, mode || "page")).left, coords.top);
},
lineAtHeight: function(height, mode) {
return height = fromCoordSystem(this, {
@ -5341,18 +5341,20 @@
};
},
addWidget: function(pos, node, scroll, vert, horiz) {
var cm, rect, scrollPos, display = this.display, top = (pos = cursorCoords(this, clipPos(this.doc, pos))).bottom, left = pos.left;
var cm, scrollPos, display = this.display;
pos = cursorCoords(this, clipPos(this.doc, pos));
var top = pos.bottom, left = pos.left;
if (node.style.position = "absolute", node.setAttribute("cm-ignore-events", "true"), this.display.input.setUneditable(node), display.sizer.appendChild(node), "over" == vert) top = pos.top;
else if ("above" == vert || "near" == vert) {
var vspace = Math.max(display.wrapper.clientHeight, this.doc.height), hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);
("above" == vert || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight ? top = pos.top - node.offsetHeight : pos.bottom + node.offsetHeight <= vspace && (top = pos.bottom), left + node.offsetWidth > hspace && (left = hspace - node.offsetWidth);
}
node.style.top = top + "px", node.style.left = node.style.right = "", "right" == horiz ? (left = display.sizer.clientWidth - node.offsetWidth, node.style.right = "0px") : ("left" == horiz ? left = 0 : "middle" == horiz && (left = (display.sizer.clientWidth - node.offsetWidth) / 2), node.style.left = left + "px"), scroll && (cm = this, rect = {
node.style.top = top + "px", node.style.left = node.style.right = "", "right" == horiz ? (left = display.sizer.clientWidth - node.offsetWidth, node.style.right = "0px") : ("left" == horiz ? left = 0 : "middle" == horiz && (left = (display.sizer.clientWidth - node.offsetWidth) / 2), node.style.left = left + "px"), scroll && (cm = this, null != (scrollPos = calculateScrollPos(cm, {
left: left,
top: top,
right: left + node.offsetWidth,
bottom: top + node.offsetHeight
}, null != (scrollPos = calculateScrollPos(cm, rect)).scrollTop && updateScrollTop(cm, scrollPos.scrollTop), null != scrollPos.scrollLeft && setScrollLeft(cm, scrollPos.scrollLeft));
})).scrollTop && updateScrollTop(cm, scrollPos.scrollTop), null != scrollPos.scrollLeft && setScrollLeft(cm, scrollPos.scrollLeft));
},
triggerOnKeyDown: methodOp(onKeyDown),
triggerOnKeyPress: methodOp(onKeyPress),
@ -5367,7 +5369,7 @@
findPosH: function(from, amount, unit, visually) {
var dir = 1;
amount < 0 && (dir = -1, amount = -amount);
for(var cur = clipPos(this.doc, from), i = 0; i < amount && !(cur = findPosH(this.doc, cur, dir, unit, visually)).hitSide; ++i);
for(var cur = clipPos(this.doc, from), i = 0; i < amount && (cur = findPosH(this.doc, cur, dir, unit, visually), !cur.hitSide); ++i);
return cur;
},
moveH: methodOp(function(dir, unit) {
@ -5394,7 +5396,7 @@
amount < 0 && (dir = -1, amount = -amount);
for(var cur = clipPos(this.doc, from), i = 0; i < amount; ++i){
var coords = cursorCoords(this, cur, "div");
if (null == x ? x = coords.left : coords.left = x, (cur = findPosV(this, coords, dir, unit)).hitSide) break;
if (null == x ? x = coords.left : coords.left = x, cur = findPosV(this, coords, dir, unit), cur.hitSide) break;
}
return cur;
},
@ -5570,7 +5572,7 @@
return textarea.parentNode.insertBefore(node, textarea.nextSibling);
}, options);
return cm;
}, (CodeMirror1 = CodeMirror2).off = off, CodeMirror1.on = on, CodeMirror1.wheelEventPixels = function(e) {
}, CodeMirror1 = CodeMirror2, CodeMirror1.off = off, CodeMirror1.on = on, CodeMirror1.wheelEventPixels = function(e) {
var delta = wheelEventDelta(e);
return delta.x *= wheelPixelsPerUnit, delta.y *= wheelPixelsPerUnit, delta;
}, CodeMirror1.Doc = Doc, CodeMirror1.splitLines = splitLinesAuto, CodeMirror1.countColumn = countColumn, CodeMirror1.findColumn = findColumn, CodeMirror1.isWordChar = isWordCharBasic, CodeMirror1.Pass = Pass, CodeMirror1.signal = signal, CodeMirror1.Line = Line, CodeMirror1.changeEnd = changeEnd, CodeMirror1.scrollbarModel = scrollbarModel, CodeMirror1.Pos = Pos, CodeMirror1.cmpPos = cmp, CodeMirror1.modes = modes, CodeMirror1.mimeModes = mimeModes, CodeMirror1.resolveMode = resolveMode, CodeMirror1.getMode = getMode, CodeMirror1.modeExtensions = modeExtensions, CodeMirror1.extendMode = function(mode, properties) {

View File

@ -1325,12 +1325,12 @@ 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: 9,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -1338,7 +1338,7 @@ TestSnapshot {
used_above_decl: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: None,
var_initialized: false,
@ -1401,12 +1401,12 @@ TestSnapshot {
declared_count: 0,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 8,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 33,
usage_count: 28,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -1414,7 +1414,7 @@ TestSnapshot {
used_above_decl: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: None,
var_initialized: false,
@ -1515,7 +1515,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: 1,
usage_count: 8,
reassigned_with_assignment: false,
@ -1528,7 +1528,7 @@ TestSnapshot {
used_above_decl: true,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: None,
var_initialized: false,
@ -1753,12 +1753,12 @@ 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: 67,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -2413,7 +2413,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: 5,
usage_count: 22,
reassigned_with_assignment: false,
@ -4613,12 +4613,12 @@ 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: 6,
usage_count: 2,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -4626,7 +4626,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: Some(
"var",
@ -4893,12 +4893,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -5173,7 +5173,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: 3,
reassigned_with_assignment: true,
@ -5605,7 +5605,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: 17,
usage_count: 46,
reassigned_with_assignment: false,
@ -6371,7 +6371,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,
@ -6643,9 +6643,9 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 3,
mutation_by_call_count: 0,
usage_count: 7,
usage_count: 6,
reassigned_with_assignment: true,
reassigned_with_var_decl: false,
mutated: true,
@ -6683,9 +6683,9 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 5,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 11,
usage_count: 6,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
@ -6696,7 +6696,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: Some(
"var",
@ -8665,12 +8665,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -8679,7 +8679,7 @@ TestSnapshot {
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: false,
used_in_cond: true,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: false,
@ -10729,12 +10729,12 @@ 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: 9,
usage_count: 8,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -11299,9 +11299,9 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 5,
usage_count: 4,
reassigned_with_assignment: true,
reassigned_with_var_decl: false,
mutated: true,
@ -11337,9 +11337,9 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 2,
assign_count: 1,
mutation_by_call_count: 1,
usage_count: 5,
usage_count: 4,
reassigned_with_assignment: true,
reassigned_with_var_decl: false,
mutated: true,
@ -13011,12 +13011,12 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 7,
usage_count: 3,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -14017,12 +14017,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -14837,7 +14837,7 @@ TestSnapshot {
declared_count: 2,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 7,
assign_count: 6,
mutation_by_call_count: 1,
usage_count: 10,
reassigned_with_assignment: true,
@ -15263,7 +15263,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,
@ -17493,9 +17493,9 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 3,
assign_count: 2,
mutation_by_call_count: 0,
usage_count: 4,
usage_count: 3,
reassigned_with_assignment: true,
reassigned_with_var_decl: false,
mutated: true,
@ -18071,9 +18071,9 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 0,
mutation_by_call_count: 2,
usage_count: 8,
usage_count: 4,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
@ -18084,7 +18084,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: None,
var_initialized: false,
@ -18109,12 +18109,12 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 5,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 7,
usage_count: 2,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -18122,8 +18122,8 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
used_in_cond: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: false,
@ -19239,12 +19239,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -20225,12 +20225,12 @@ 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: 9,
usage_count: 4,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -20238,7 +20238,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: Some(
"var",
@ -21095,12 +21095,12 @@ 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,
usage_count: 8,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -21847,12 +21847,12 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 5,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 7,
usage_count: 2,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -21860,7 +21860,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: None,
var_initialized: false,
@ -22285,7 +22285,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,
@ -22685,7 +22685,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,
@ -26053,12 +26053,12 @@ 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: 7,
usage_count: 3,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -26093,12 +26093,12 @@ 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: 7,
usage_count: 2,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -26106,7 +26106,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: Some(
"var",
@ -27987,7 +27987,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,
@ -28000,7 +28000,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: Some(
"var",
@ -28067,7 +28067,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,
@ -28080,7 +28080,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: Some(
"var",
@ -28145,12 +28145,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -28158,7 +28158,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: Some(
"var",
@ -28185,12 +28185,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -28385,12 +28385,12 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 6,
usage_count: 2,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -28398,7 +28398,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: None,
var_initialized: false,
@ -28423,9 +28423,9 @@ 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: 12,
usage_count: 8,
reassigned_with_assignment: true,
reassigned_with_var_decl: false,
mutated: true,
@ -29255,7 +29255,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,
@ -29268,8 +29268,8 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: false,
used_by_nested_fn: true,
executed_multiple_time: true,
used_in_cond: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: Some(
"var",
),
@ -31717,12 +31717,12 @@ 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: 6,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -32739,9 +32739,9 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: false,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 1,
mutation_by_call_count: 0,
usage_count: 7,
usage_count: 4,
reassigned_with_assignment: true,
reassigned_with_var_decl: false,
mutated: true,
@ -32752,7 +32752,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: Some(
"var",
@ -32779,9 +32779,9 @@ 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: 8,
usage_count: 5,
reassigned_with_assignment: true,
reassigned_with_var_decl: false,
mutated: true,
@ -32939,12 +32939,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -33571,12 +33571,12 @@ 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: 10,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -33803,12 +33803,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -33961,12 +33961,12 @@ 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,
usage_count: 1,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -33974,8 +33974,8 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
used_in_cond: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: false,
@ -35461,12 +35461,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -35474,8 +35474,8 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
used_in_cond: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: false,
@ -35499,12 +35499,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -35512,8 +35512,8 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
used_in_cond: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: 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,
@ -35550,7 +35550,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: None,
var_initialized: false,
@ -35993,9 +35993,9 @@ 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: 5,
usage_count: 4,
reassigned_with_assignment: true,
reassigned_with_var_decl: false,
mutated: true,
@ -37555,12 +37555,12 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 7,
usage_count: 3,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -38627,7 +38627,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,
@ -41783,7 +41783,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,
@ -41796,8 +41796,8 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
used_in_cond: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: false,
@ -41859,12 +41859,12 @@ 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: 0,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -41872,8 +41872,8 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
used_in_cond: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: true,
@ -45677,12 +45677,12 @@ 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: 6,
usage_count: 2,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -45690,7 +45690,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: Some(
"var",
@ -45717,9 +45717,9 @@ 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: 7,
usage_count: 4,
reassigned_with_assignment: true,
reassigned_with_var_decl: false,
mutated: true,
@ -48895,7 +48895,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: 5,
reassigned_with_assignment: true,
@ -48908,7 +48908,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: None,
var_initialized: false,
@ -49161,7 +49161,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,
@ -49174,7 +49174,7 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
executed_multiple_time: false,
used_in_cond: true,
var_kind: None,
var_initialized: false,
@ -49929,12 +49929,12 @@ TestSnapshot {
declared_count: 1,
declared_as_fn_param: true,
declared_as_fn_expr: false,
assign_count: 4,
assign_count: 0,
mutation_by_call_count: 0,
usage_count: 6,
usage_count: 2,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -49942,8 +49942,8 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
used_in_cond: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: false,
@ -50897,7 +50897,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,
@ -52291,7 +52291,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,
@ -53615,9 +53615,9 @@ 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: 4,
usage_count: 3,
reassigned_with_assignment: true,
reassigned_with_var_decl: false,
mutated: true,
@ -53775,12 +53775,12 @@ 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: 6,
usage_count: 2,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -53788,8 +53788,8 @@ TestSnapshot {
used_above_decl: false,
is_fn_local: true,
used_by_nested_fn: true,
executed_multiple_time: true,
used_in_cond: true,
executed_multiple_time: false,
used_in_cond: false,
var_kind: Some(
"var",
),
@ -56029,9 +56029,9 @@ 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: 8,
usage_count: 3,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
@ -56429,7 +56429,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: 4,
reassigned_with_assignment: true,

View File

@ -1763,11 +1763,7 @@
var t = new __webpack_require__.g[r]();
if (!(Symbol.toStringTag in t)) throw EvalError("this engine has support for Symbol.toStringTag, but " + r + " does not have the property! Please report this.");
var e = d(t), o = l(e, Symbol.toStringTag);
if (!o) {
var n = d(e);
o = l(n, Symbol.toStringTag);
}
c[r] = o.get;
o || (o = l(d(e), Symbol.toStringTag)), c[r] = o.get;
});
var g = function(r) {
var t = !1;
@ -1778,12 +1774,7 @@
}), t;
};
r.exports = function(r) {
if (!r || "object" != typeof r) return !1;
if (!p) {
var t = s(a(r), 8, -1);
return u(f, t) > -1;
}
return !!l && g(r);
return !!r && "object" == typeof r && (p ? !!l && g(r) : u(f, s(a(r), 8, -1)) > -1);
};
},
982: function(r, t, e) {
@ -2195,8 +2186,8 @@
}
t.log = function() {
var r, t1;
console.log("%s - %s", (r = new Date(), t1 = [
pad(r.getHours()),
console.log("%s - %s", (t1 = [
pad((r = new Date()).getHours()),
pad(r.getMinutes()),
pad(r.getSeconds()),
].join(":"), [
@ -2275,11 +2266,7 @@
var t = new __webpack_require__.g[r]();
if (!(Symbol.toStringTag in t)) throw EvalError("this engine has support for Symbol.toStringTag, but " + r + " does not have the property! Please report this.");
var e = l(t), o = c(e, Symbol.toStringTag);
if (!o) {
var n = l(e);
o = c(n, Symbol.toStringTag);
}
s[r] = o.get;
o || (o = c(l(e), Symbol.toStringTag)), s[r] = o.get;
}
});
var d = function(r) {

View File

@ -48,10 +48,10 @@
uri: "",
exports: exports,
packaged: !0
}, req = function(module, callback) {
return _require(moduleName, module, callback);
};
exports = module(req, exports, mod) || mod.exports, define.modules[moduleName] = exports, delete define.payloads[moduleName];
exports = module(function(module, callback) {
return _require(moduleName, module, callback);
}, exports, mod) || mod.exports, define.modules[moduleName] = exports, delete define.payloads[moduleName];
}
module = define.modules[moduleName] = exports || module;
}
@ -6191,7 +6191,7 @@
var line, column, docRow = 0, docColumn = 0, row = 0, rowLength = 0, rowCache = this.$screenRowCache, i = this.$getRowCacheIndex(rowCache, screenRow), l = rowCache.length;
if (l && i >= 0) var row = rowCache[i], docRow = this.$docRowCache[i], doCache = screenRow > rowCache[l - 1];
else var doCache = !l;
for(var maxRow = this.getLength() - 1, foldLine = this.getNextFoldLine(docRow), foldStart = foldLine ? foldLine.start.row : 1 / 0; row <= screenRow && (rowLength = this.getRowLength(docRow), !(row + rowLength > screenRow) && !(docRow >= maxRow));)row += rowLength, ++docRow > foldStart && (docRow = foldLine.end.row + 1, foldStart = (foldLine = this.getNextFoldLine(docRow, foldLine)) ? foldLine.start.row : 1 / 0), doCache && (this.$docRowCache.push(docRow), this.$screenRowCache.push(row));
for(var maxRow = this.getLength() - 1, foldLine = this.getNextFoldLine(docRow), foldStart = foldLine ? foldLine.start.row : 1 / 0; row <= screenRow && !(row + (rowLength = this.getRowLength(docRow)) > screenRow) && !(docRow >= maxRow);)row += rowLength, ++docRow > foldStart && (docRow = foldLine.end.row + 1, foldStart = (foldLine = this.getNextFoldLine(docRow, foldLine)) ? foldLine.start.row : 1 / 0), doCache && (this.$docRowCache.push(docRow), this.$screenRowCache.push(row));
if (foldLine && foldLine.start.row <= docRow) line = this.getFoldDisplayLine(foldLine), docRow = foldLine.start.row;
else {
if (row + rowLength <= screenRow || docRow > maxRow) return {
@ -9495,29 +9495,29 @@
rparen: !0,
lparen: !0
}, this.$renderToken = function(parent, screenColumn, token, value) {
for(var m, self1 = this, re = /(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g, valueFragment = this.dom.createFragment(this.element), i = 0; m = re.exec(value);){
for(var m, re = /(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g, valueFragment = this.dom.createFragment(this.element), i = 0; m = re.exec(value);){
var tab = m[1], simpleSpace = m[2], controlCharacter = m[3], cjkSpace = m[4], cjk = m[5];
if (self1.showSpaces || !simpleSpace) {
if (this.showSpaces || !simpleSpace) {
var before = i != m.index ? value.slice(i, m.index) : "";
if (i = m.index + m[0].length, before && valueFragment.appendChild(this.dom.createTextNode(before, this.element)), tab) {
var tabSize = self1.session.getScreenTabSize(screenColumn + m.index);
valueFragment.appendChild(self1.$tabStrings[tabSize].cloneNode(!0)), screenColumn += tabSize - 1;
var tabSize = this.session.getScreenTabSize(screenColumn + m.index);
valueFragment.appendChild(this.$tabStrings[tabSize].cloneNode(!0)), screenColumn += tabSize - 1;
} else if (simpleSpace) {
if (self1.showSpaces) {
if (this.showSpaces) {
var span = this.dom.createElement("span");
span.className = "ace_invisible ace_invisible_space", span.textContent = lang.stringRepeat(self1.SPACE_CHAR, simpleSpace.length), valueFragment.appendChild(span);
span.className = "ace_invisible ace_invisible_space", span.textContent = lang.stringRepeat(this.SPACE_CHAR, simpleSpace.length), valueFragment.appendChild(span);
} else valueFragment.appendChild(this.com.createTextNode(simpleSpace, this.element));
} else if (controlCharacter) {
var span = this.dom.createElement("span");
span.className = "ace_invisible ace_invisible_space ace_invalid", span.textContent = lang.stringRepeat(self1.SPACE_CHAR, controlCharacter.length), valueFragment.appendChild(span);
span.className = "ace_invisible ace_invisible_space ace_invalid", span.textContent = lang.stringRepeat(this.SPACE_CHAR, controlCharacter.length), valueFragment.appendChild(span);
} else if (cjkSpace) {
screenColumn += 1;
var span = this.dom.createElement("span");
span.style.width = 2 * self1.config.characterWidth + "px", span.className = self1.showSpaces ? "ace_cjk ace_invisible ace_invisible_space" : "ace_cjk", span.textContent = self1.showSpaces ? self1.SPACE_CHAR : cjkSpace, valueFragment.appendChild(span);
span.style.width = 2 * this.config.characterWidth + "px", span.className = this.showSpaces ? "ace_cjk ace_invisible ace_invisible_space" : "ace_cjk", span.textContent = this.showSpaces ? this.SPACE_CHAR : cjkSpace, valueFragment.appendChild(span);
} else if (cjk) {
screenColumn += 1;
var span = this.dom.createElement("span");
span.style.width = 2 * self1.config.characterWidth + "px", span.className = "ace_cjk", span.textContent = cjk, valueFragment.appendChild(span);
span.style.width = 2 * this.config.characterWidth + "px", span.className = "ace_cjk", span.textContent = cjk, valueFragment.appendChild(span);
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1060,7 +1060,7 @@
}
var hd = null;
function Xc(a, b, c, d) {
if (hd = null, a = wb(d), null !== (a = Vc(a))) {
if (hd = null, null !== (a = Vc(a = wb(d)))) {
if (null === (b = Ub(a))) a = null;
else if (13 === (c = b.tag)) {
if (null !== (a = Vb(b))) return a;
@ -1237,21 +1237,21 @@
movementY: function(a) {
return "movementY" in a ? a.movementY : wd;
}
}), Ad = qd(zd), Bd = A({}, zd, {
}), Ad = qd(zd), Cd = qd(A({}, zd, {
dataTransfer: 0
}), Cd = qd(Bd), Dd = A({}, td, {
})), Ed = qd(A({}, td, {
relatedTarget: 0
}), Ed = qd(Dd), Fd = A({}, rd, {
})), Gd = qd(A({}, rd, {
animationName: 0,
elapsedTime: 0,
pseudoElement: 0
}), Gd = qd(Fd), Hd = A({}, rd, {
})), Id = qd(A({}, rd, {
clipboardData: function(a) {
return "clipboardData" in a ? a.clipboardData : window.clipboardData;
}
}), Id = qd(Hd), Jd = A({}, rd, {
})), Kd = qd(A({}, rd, {
data: 0
}), Kd = qd(Jd), Ld = {
})), Ld = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
@ -1314,7 +1314,7 @@
function yd() {
return Od;
}
var Pd = A({}, td, {
var Qd = qd(A({}, td, {
key: function(a) {
if (a.key) {
var b = Ld[a.key] || a.key;
@ -1340,7 +1340,7 @@
which: function(a) {
return "keypress" === a.type ? nd(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0;
}
}), Qd = qd(Pd), Rd = A({}, zd, {
})), Sd = qd(A({}, zd, {
pointerId: 0,
width: 0,
height: 0,
@ -1351,7 +1351,7 @@
twist: 0,
pointerType: 0,
isPrimary: 0
}), Sd = qd(Rd), Td = A({}, td, {
})), Ud = qd(A({}, td, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
@ -1360,11 +1360,11 @@
ctrlKey: 0,
shiftKey: 0,
getModifierState: yd
}), Ud = qd(Td), Vd = A({}, rd, {
})), Wd = qd(A({}, rd, {
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0
}), Wd = qd(Vd), Xd = A({}, zd, {
})), Yd = qd(A({}, zd, {
deltaX: function(a) {
return "deltaX" in a ? a.deltaX : "wheelDeltaX" in a ? -a.wheelDeltaX : 0;
},
@ -1373,7 +1373,7 @@
},
deltaZ: 0,
deltaMode: 0
}), Yd = qd(Xd), Zd = [
})), Zd = [
9,
13,
27,
@ -1430,8 +1430,7 @@
re(a, 0);
}
function se(a) {
var b = te(a);
if (Va(b)) return a;
if (Va(te(a))) return a;
}
function ue(a, b) {
if ("change" === a) return b;
@ -2952,7 +2951,7 @@
hasEagerState: !1,
eagerState: null,
next: null
}, Di(a) ? Ei(b, c) : (Fi(a, b, c), c = Jg(), null !== (a = Lg(a, d, c)) && Gi(a, b, d));
}, Di(a) ? Ei(b, c) : (Fi(a, b, c), a = Lg(a, d, c = Jg()), null !== a && Gi(a, b, d));
}
function ni(a, b, c) {
var d = Kg(a), e = {
@ -2970,7 +2969,7 @@
var g = b.lastRenderedState, h = f(g, c);
if (e.hasEagerState = !0, e.eagerState = h, Ge(h, g)) return;
} catch (k) {} finally{}
c = Jg(), null !== (a = Lg(a, d, c)) && Gi(a, b, d);
a = Lg(a, d, c = Jg()), null !== a && Gi(a, b, d);
}
}
function Di(a) {
@ -3055,10 +3054,9 @@
];
},
useRef: function(a) {
var b = $h();
return a = {
current: a
}, b.memoizedState = a;
}, $h().memoizedState = a;
},
useState: mi,
useDebugValue: wi,
@ -3095,7 +3093,7 @@
var a = $h(), b = P.identifierPrefix;
if (I) {
var c = Zg, d = Yg;
c = (d & ~(1 << 32 - nc(d) - 1)).toString(32) + c, b = ":" + b + "R" + c, 0 < (c = Rh++) && (b += "H" + c.toString(32)), b += ":";
b = ":" + b + "R" + (c = (d & ~(1 << 32 - nc(d) - 1)).toString(32) + c), 0 < (c = Rh++) && (b += "H" + c.toString(32)), b += ":";
} else b = ":" + b + "r" + (c = Sh++).toString(32) + ":";
return a.memoizedState = b;
},
@ -3116,8 +3114,7 @@
},
useDebugValue: wi,
useDeferredValue: function(a) {
var b = ai();
return zi(b, M.memoizedState, a);
return zi(ai(), M.memoizedState, a);
},
useTransition: function() {
var a = ci(bi)[0], b = ai().memoizedState;
@ -3634,13 +3631,13 @@
var g = b.stateNode, h = b.memoizedProps;
g.props = h;
var k = g.context, l = c.contextType;
"object" == typeof l && null !== l ? l = ug(l) : (l = Yf(c) ? Wf : H.current, l = Xf(b, l));
l = "object" == typeof l && null !== l ? ug(l) : Xf(b, l = Yf(c) ? Wf : H.current);
var n = c.getDerivedStateFromProps, u = "function" == typeof n || "function" == typeof g.getSnapshotBeforeUpdate;
u || "function" != typeof g.UNSAFE_componentWillReceiveProps && "function" != typeof g.componentWillReceiveProps || (h !== d || k !== l) && Pg(b, g, d, l), wg = !1;
var q = b.memoizedState;
g.state = q, Eg(b, d, g, e), k = b.memoizedState, h !== d || q !== k || Vf.current || wg ? ("function" == typeof n && (Ig(b, c, n, d), k = b.memoizedState), (h = wg || Ng(b, c, h, d, q, k, l)) ? (u || "function" != typeof g.UNSAFE_componentWillMount && "function" != typeof g.componentWillMount || ("function" == typeof g.componentWillMount && g.componentWillMount(), "function" == typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), "function" == typeof g.componentDidMount && (b.flags |= 4194308)) : ("function" == typeof g.componentDidMount && (b.flags |= 4194308), b.memoizedProps = d, b.memoizedState = k), g.props = d, g.state = k, g.context = l, d = h) : ("function" == typeof g.componentDidMount && (b.flags |= 4194308), d = !1);
} else {
g = b.stateNode, yg(a, b), h = b.memoizedProps, l = b.type === b.elementType ? h : kg(b.type, h), g.props = l, u = b.pendingProps, q = g.context, k = c.contextType, "object" == typeof k && null !== k ? k = ug(k) : (k = Yf(c) ? Wf : H.current, k = Xf(b, k));
g = b.stateNode, yg(a, b), h = b.memoizedProps, l = b.type === b.elementType ? h : kg(b.type, h), g.props = l, u = b.pendingProps, q = g.context, k = c.contextType, k = "object" == typeof k && null !== k ? ug(k) : Xf(b, k = Yf(c) ? Wf : H.current);
var y = c.getDerivedStateFromProps;
(n = "function" == typeof y || "function" == typeof g.getSnapshotBeforeUpdate) || "function" != typeof g.UNSAFE_componentWillReceiveProps && "function" != typeof g.componentWillReceiveProps || (h !== u || q !== k) && Pg(b, g, d, k), wg = !1, q = b.memoizedState, g.state = q, Eg(b, d, g, e);
var m = b.memoizedState;
@ -4459,7 +4456,7 @@
if (2 === b && 0 !== (e = wc(a)) && (d = e, b = Mk(a, e)), 1 === b) throw c = nk, Jk(a, 0), Bk(a, d), Ck(a, B()), c;
if (6 === b) Bk(a, d);
else {
if (e = a.current.alternate, 0 == (30 & d) && !Nk(e) && (2 === (b = Hk(a, d)) && 0 !== (f = wc(a)) && (d = f, b = Mk(a, f)), 1 === b)) throw c = nk, Jk(a, 0), Bk(a, d), Ck(a, B()), c;
if (e = a.current.alternate, 0 == (30 & d) && !Nk(e) && (b = Hk(a, d), 2 === b && 0 !== (f = wc(a)) && (d = f, b = Mk(a, f)), 1 === b)) throw c = nk, Jk(a, 0), Bk(a, d), Ck(a, B()), c;
switch(a.finishedWork = e, a.finishedLanes = d, b){
case 0:
case 1:
@ -4501,7 +4498,7 @@
}
function Mk(a, b) {
var c = qk;
return a.current.memoizedState.isDehydrated && (Jk(a, b).flags |= 256), 2 !== (a = Hk(a, b)) && (b = rk, rk = c, null !== b && Zi(b)), a;
return a.current.memoizedState.isDehydrated && (Jk(a, b).flags |= 256), a = Hk(a, b), 2 !== a && (b = rk, rk = c, null !== b && Zi(b)), a;
}
function Zi(a) {
null === rk ? rk = a : rk.push.apply(rk, a);
@ -4731,7 +4728,7 @@
do {
var c = b.alternate;
if (a = b.return, 0 == (32768 & b.flags)) {
if (null !== (c = Yi(c, b, cj))) {
if (c = Yi(c, b, cj), null !== c) {
X = c;
return;
}
@ -4791,7 +4788,7 @@
C = 1;
var a1, b1, c1, h = W;
W |= 4, lk.current = null, function(a, b) {
if (Bf = cd, a = Le(), Me(a)) {
if (Bf = cd, Me(a = Le())) {
if ("selectionStart" in a) var c = {
start: a.selectionStart,
end: a.selectionEnd
@ -5030,7 +5027,7 @@
return !1;
}
function Wk(a, b, c) {
b = Hi(c, b), b = Ki(a, b, 1), Ag(a, b), b = Jg(), null !== (a = Ak(a, 1)) && (zc(a, 1, b), Ck(a, b));
b = Ki(a, b = Hi(c, b), 1), Ag(a, b), b = Jg(), a = Ak(a, 1), null !== a && (zc(a, 1, b), Ck(a, b));
}
function U(a, b, c) {
if (3 === a.tag) Wk(a, a, c);
@ -5042,7 +5039,7 @@
if (1 === b.tag) {
var d = b.stateNode;
if ("function" == typeof b.type.getDerivedStateFromError || "function" == typeof d.componentDidCatch && (null === Oi || !Oi.has(d))) {
a = Hi(c, a), a = Ni(b, a, 1), Ag(b, a), a = Jg(), null !== (b = Ak(b, 1)) && (zc(b, 1, a), Ck(b, a));
a = Ni(b, a = Hi(c, a), 1), Ag(b, a), a = Jg(), b = Ak(b, 1), null !== b && (zc(b, 1, a), Ck(b, a));
break;
}
}
@ -5189,7 +5186,7 @@
return b;
}
function dl(a, b, c, d, e, f, g, h, k) {
return (a = al(c, d, !0, a, e, f, g, h, k)).context = cl(null), c = a.current, d = Jg(), e = Kg(c), (f = zg(d, e)).callback = null != b ? b : null, Ag(c, f), a.current.lanes = e, zc(a, e, d), Ck(a, d), a;
return (a = al(c, d, !0, a, e, f, g, h, k)).context = cl(null), c = a.current, (f = zg(d = Jg(), e = Kg(c))).callback = null != b ? b : null, Ag(c, f), a.current.lanes = e, zc(a, e, d), Ck(a, d), a;
}
function el(a, b, c, d) {
var e = b.current, f = Jg(), g = Kg(e);
@ -5307,11 +5304,11 @@
pendingSuspenseBoundaries: g.pendingSuspenseBoundaries,
transitions: g.transitions
}, b.updateQueue.baseState = f, b.memoizedState = f, 256 & b.flags) {
e = Error(p(423)), b = rj(a, b, d, c, e);
b = rj(a, b, d, c, e = Error(p(423)));
break a;
}
if (d !== e) {
e = Error(p(424)), b = rj(a, b, d, c, e);
b = rj(a, b, d, c, e = Error(p(424)));
break a;
}
for(eh = Kf(b.stateNode.containerInfo.firstChild), dh = b, I = !0, fh = null, c = zh(b, null, d, c), b.child = c; c;)c.flags = -3 & c.flags | 4096, c = c.sibling;
@ -5500,10 +5497,7 @@
}), hl(a, 1);
}
}, Ec = function(a) {
if (13 === a.tag) {
var b = Jg();
Lg(a, 134217728, b), hl(a, 134217728);
}
13 === a.tag && (Lg(a, 134217728, Jg()), hl(a, 134217728));
}, Fc = function(a) {
if (13 === a.tag) {
var b = Jg(), c = Kg(a);

View File

@ -3494,8 +3494,8 @@
}
function deepmerge(target, source, options) {
(options = options || {}).arrayMerge = options.arrayMerge || defaultArrayMerge, options.isMergeableObject = options.isMergeableObject || isMergeableObject, options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
var target1, source1, options1, destination, sourceIsArray = Array.isArray(source), targetIsArray = Array.isArray(target);
return sourceIsArray !== targetIsArray ? cloneUnlessOtherwiseSpecified(source, options) : sourceIsArray ? options.arrayMerge(target, source, options) : (target1 = target, source1 = source, destination = {}, (options1 = options).isMergeableObject(target1) && getKeys(target1).forEach(function(key) {
var target1, source1, options1, destination, sourceIsArray = Array.isArray(source);
return sourceIsArray !== Array.isArray(target) ? cloneUnlessOtherwiseSpecified(source, options) : sourceIsArray ? options.arrayMerge(target, source, options) : (target1 = target, source1 = source, destination = {}, (options1 = options).isMergeableObject(target1) && getKeys(target1).forEach(function(key) {
destination[key] = cloneUnlessOtherwiseSpecified(target1[key], options1);
}), getKeys(source1).forEach(function(key) {
var target, key1;
@ -4224,7 +4224,7 @@
default:
r = O;
}
if (t = (k = M(c, r, k, g, a + 1)).length, 0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(""), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = "")), 0 < t) switch(g){
if (t = (k = M(c, r, k, g, a + 1)).length, 0 < A && (C = H(3, k, r = X(O, f, I), c, D, z, t, g, a, h), f = r.join(""), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = "")), 0 < t) switch(g){
case 115:
f = f.replace(da, ea);
case 100:

View File

@ -91,12 +91,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},
@ -105,7 +105,7 @@ TestSnapshot {
is_fn_local: true,
used_by_nested_fn: false,
executed_multiple_time: false,
used_in_cond: true,
used_in_cond: false,
var_kind: None,
var_initialized: false,
declared_as_catch_param: false,

View File

@ -13,12 +13,12 @@ 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: 2,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},

View File

@ -1,7 +1,7 @@
export const obj = {
_routeToRegExp: function(route) {
return route = route.replace(escapeRegExp, "\\$&").replace(optionalParam, "(?:$1)?").replace(namedParam, function(match, optional) {
return RegExp("^" + (route = route.replace(escapeRegExp, "\\$&").replace(optionalParam, "(?:$1)?").replace(namedParam, function(match, optional) {
return optional ? match : "([^/]+)";
}).replace(splatParam, "(.*?)"), RegExp("^" + route + "$");
}).replace(splatParam, "(.*?)")) + "$");
}
};

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,

View File

@ -91,12 +91,12 @@ 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: 4,
reassigned_with_assignment: false,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: true,
has_property_mutation: false,
accessed_props: {},

View File

@ -205,7 +205,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: 8,
reassigned_with_assignment: false,

View File

@ -519,7 +519,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: 4,
usage_count: 26,
reassigned_with_assignment: false,
@ -4737,12 +4737,12 @@ 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,
reassigned_with_var_decl: false,
mutated: true,
mutated: false,
has_property_access: false,
has_property_mutation: false,
accessed_props: {},
@ -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,

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