feat(es/minifier): Inline into the arguments of new using seq inliner (#8127)

This commit is contained in:
Austaras 2023-10-18 11:07:14 +08:00 committed by GitHub
parent 748a7feae3
commit 4f67794223
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 177 additions and 212 deletions

View File

@ -1855,13 +1855,33 @@ impl Optimizer<'_> {
}
Expr::New(NewExpr {
callee: b_callee, ..
callee: b_callee,
args: b_args,
..
}) => {
trace_op!("seq: Try callee of new");
if self.merge_sequential_expr(a, b_callee)? {
return Ok(true);
}
if !self.is_skippable_for_seq(Some(a), b_callee) {
return Ok(false);
}
if let Some(b_args) = b_args {
for arg in b_args {
trace_op!("seq: Try arg of new exp");
if self.merge_sequential_expr(a, &mut arg.expr)? {
return Ok(true);
}
if !self.is_skippable_for_seq(Some(a), &arg.expr) {
return Ok(false);
}
}
}
return Ok(false);
}

View File

@ -1294,7 +1294,7 @@
return a <= 0 && (r = g = b = NaN), new Rgb(r, g, b, a);
}
function rgbConvert(o) {
return (o instanceof Color || (o = color(o)), o) ? (o = o.rgb(), new Rgb(o.r, o.g, o.b, o.opacity)) : new Rgb;
return (o instanceof Color || (o = color(o)), o) ? new Rgb((o = o.rgb()).r, o.g, o.b, o.opacity) : new Rgb;
}
function rgb(r, g, b, opacity) {
return 1 == arguments.length ? rgbConvert(r) : new Rgb(r, g, b, null == opacity ? 1 : opacity);
@ -1433,7 +1433,7 @@
},
rgb: function() {
var y = (this.l + 16) / 116, x = isNaN(this.a) ? y : y + this.a / 500, z = isNaN(this.b) ? y : y - this.b / 200;
return x = 0.96422 * lab2xyz(x), y = 1 * lab2xyz(y), z = 0.82521 * lab2xyz(z), new Rgb(lrgb2rgb(3.1338561 * x - 1.6168667 * y - 0.4906146 * z), lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z), lrgb2rgb(0.0719453 * x - 0.2289914 * y + 1.4052427 * z), this.opacity);
return new Rgb(lrgb2rgb(3.1338561 * (x = 0.96422 * lab2xyz(x)) - 1.6168667 * (y = 1 * lab2xyz(y)) - 0.4906146 * (z = 0.82521 * lab2xyz(z))), lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z), lrgb2rgb(0.0719453 * x - 0.2289914 * y + 1.4052427 * z), this.opacity);
}
})), define1(Hcl, hcl, extend(Color, {
brighter: function(k) {

View File

@ -2769,8 +2769,8 @@
return null == width && (width = methods$1.measureText(text, font).width, cacheOfFont.put(text, width)), width;
}
function innerGetBoundingRect(text, font, textAlign, textBaseline) {
var width = getWidth(text, font), height = getLineHeight(font), x = adjustTextX(0, width, textAlign), y = adjustTextY(0, height, textBaseline);
return new BoundingRect(x, y, width, height);
var width = getWidth(text, font), height = getLineHeight(font);
return new BoundingRect(adjustTextX(0, width, textAlign), adjustTextY(0, height, textBaseline), width, height);
}
function getBoundingRect(text, font, textAlign, textBaseline) {
var textLines = ((text || '') + '').split('\n');
@ -7359,8 +7359,8 @@
}
return val;
}, Model.prototype.getModel = function(path, parentModel) {
var hasPath = null != path, pathFinal = hasPath ? this.parsePath(path) : null, obj = hasPath ? this._doGet(pathFinal) : this.option;
return parentModel = parentModel || this.parentModel && this.parentModel.getModel(this.resolveParentPath(pathFinal)), new Model(obj, parentModel, this.ecModel);
var hasPath = null != path, pathFinal = hasPath ? this.parsePath(path) : null;
return new Model(hasPath ? this._doGet(pathFinal) : this.option, parentModel = parentModel || this.parentModel && this.parentModel.getModel(this.resolveParentPath(pathFinal)), this.ecModel);
}, Model.prototype.isEmpty = function() {
return null == this.option;
}, Model.prototype.restoreData = function() {}, Model.prototype.clone = function() {
@ -9693,15 +9693,15 @@
}(transformOption, upSourceList, {
datasetIndex: datasetModel.componentIndex
}) : null != fromTransformResult && (sourceList = [
(source = upSourceList[0], new SourceImpl({
data: source.data,
new SourceImpl({
data: (source = upSourceList[0]).data,
sourceFormat: source.sourceFormat,
seriesLayoutBy: source.seriesLayoutBy,
dimensionsDefine: clone(source.dimensionsDefine),
startIndex: source.startIndex,
dimensionsDetectedCount: source.dimensionsDetectedCount,
encodeDefine: (encodeDefine = source.encodeDefine) ? createHashMap(encodeDefine) : null
}))
})
]), {
sourceList: sourceList,
upstreamSignList: upstreamSignList
@ -12029,17 +12029,17 @@
return inheritStyle(parentGroup, g), parseAttributes(xmlNode, g, this._defsUsePending, !1, !0), this._textX += parseFloat(dx), this._textY += parseFloat(dy), g;
},
path: function(xmlNode, parentGroup) {
var str, path = (str = xmlNode.getAttribute('d') || '', new SVGPath(createPathOptions(str, void 0)));
var path = new SVGPath(createPathOptions(xmlNode.getAttribute('d') || '', void 0));
return inheritStyle(parentGroup, path), parseAttributes(xmlNode, path, this._defsUsePending, !1, !1), path.silent = !0, path;
}
}), SVGParser;
}(), paintServerParsers = {
lineargradient: function(xmlNode) {
var x1 = parseInt(xmlNode.getAttribute('x1') || '0', 10), y1 = parseInt(xmlNode.getAttribute('y1') || '0', 10), x2 = parseInt(xmlNode.getAttribute('x2') || '10', 10), y2 = parseInt(xmlNode.getAttribute('y2') || '0', 10), gradient = new LinearGradient(x1, y1, x2, y2);
var gradient = new LinearGradient(parseInt(xmlNode.getAttribute('x1') || '0', 10), parseInt(xmlNode.getAttribute('y1') || '0', 10), parseInt(xmlNode.getAttribute('x2') || '10', 10), parseInt(xmlNode.getAttribute('y2') || '0', 10));
return parsePaintServerUnit(xmlNode, gradient), parseGradientColorStops(xmlNode, gradient), gradient;
},
radialgradient: function(xmlNode) {
var cx = parseInt(xmlNode.getAttribute('cx') || '0', 10), cy = parseInt(xmlNode.getAttribute('cy') || '0', 10), r = parseInt(xmlNode.getAttribute('r') || '0', 10), gradient = new RadialGradient(cx, cy, r);
var gradient = new RadialGradient(parseInt(xmlNode.getAttribute('cx') || '0', 10), parseInt(xmlNode.getAttribute('cy') || '0', 10), parseInt(xmlNode.getAttribute('r') || '0', 10));
return parsePaintServerUnit(xmlNode, gradient), parseGradientColorStops(xmlNode, gradient), gradient;
}
};
@ -14519,8 +14519,8 @@
}
return newIndices[sampledIndex++] = this.getRawIndex(len - 1), list._count = sampledIndex, list._indices = newIndices, list.getRawIndex = getRawIndexWithIndices, list;
}, List.prototype.getItemModel = function(idx) {
var hostModel = this.hostModel, dataItem = this.getRawDataItem(idx);
return new Model(dataItem, hostModel, hostModel && hostModel.ecModel);
var hostModel = this.hostModel;
return new Model(this.getRawDataItem(idx), hostModel, hostModel && hostModel.ecModel);
}, List.prototype.diff = function(otherList) {
var thisList = this;
return new DataDiffer(otherList ? otherList.getIndices() : [], this.getIndices(), function(idx) {
@ -14576,11 +14576,7 @@
el && cb && cb.call(context, el, idx);
});
}, List.prototype.cloneShallow = function(list) {
if (!list) {
var dimensionInfoList = map(this.dimensions, this.getDimensionInfo, this);
list = new List(dimensionInfoList, this.hostModel);
}
if (list._storage = this._storage, list._storageArr = this._storageArr, transferProperties(list, this), this._indices) {
if (list || (list = new List(map(this.dimensions, this.getDimensionInfo, this), this.hostModel)), list._storage = this._storage, list._storageArr = this._storageArr, transferProperties(list, this), this._indices) {
var Ctor = this._indices.constructor;
if (Ctor === Array) {
var thisCount = this._indices.length;
@ -17674,12 +17670,12 @@
'lineStyle',
'width'
]) || 2;
x -= lineWidth / 2, y -= lineWidth / 2, width += lineWidth, height += lineWidth, x = Math.floor(x), width = Math.round(width);
x -= lineWidth / 2, y -= lineWidth / 2, width += lineWidth, height += lineWidth;
var clipPath = new Rect({
shape: {
x: x,
x: x = Math.floor(x),
y: y,
width: width,
width: width = Math.round(width),
height: height
}
});
@ -18570,9 +18566,9 @@
return rect.__dataIndex = newIndex, rect.name = 'item', animationModel && (rect.shape[isHorizontal ? 'height' : 'width'] = 0), rect;
},
polar: function(seriesModel, data, newIndex, layout, isRadial, animationModel, axisModel, isUpdate, roundCap) {
var clockwise = layout.startAngle < layout.endAngle, sector = new (!isRadial && roundCap ? SausagePath : Sector)({
var sector = new (!isRadial && roundCap ? SausagePath : Sector)({
shape: defaults({
clockwise: clockwise
clockwise: layout.startAngle < layout.endAngle
}, layout),
z2: 1
});
@ -19121,7 +19117,7 @@
opt = isArray(opt) && {
coordDimensions: opt
} || extend({}, opt);
var source = seriesModel.getSource(), dimensionsInfo = createDimensions(source, opt), list = new List(dimensionsInfo, seriesModel);
var source = seriesModel.getSource(), list = new List(createDimensions(source, opt), seriesModel);
return list.initData(source, nameList), list;
}
var LegendVisualProvider = function() {
@ -20145,8 +20141,8 @@
'axisLine',
'lineStyle',
'color'
]), tickCoord = axis.dataToCoord(tickValue), textEl = new ZRText({
x: tickCoord,
]), textEl = new ZRText({
x: axis.dataToCoord(tickValue),
y: opt.labelOffset + opt.labelDirection * labelMargin,
rotation: labelLayout.rotation,
silent: silent,
@ -21764,10 +21760,10 @@
mapModelGroupBySeries[mapType] = mapModelGroupBySeries[mapType] || [], mapModelGroupBySeries[mapType].push(seriesModel);
}
}), each(mapModelGroupBySeries, function(mapSeries, mapType) {
var nameMapList = map(mapSeries, function(singleMapSeries) {
return singleMapSeries.get('nameMap');
}), geo = new Geo(mapType, mapType, {
nameMap: mergeAll(nameMapList),
var geo = new Geo(mapType, mapType, {
nameMap: mergeAll(map(mapSeries, function(singleMapSeries) {
return singleMapSeries.get('nameMap');
})),
nameProperty: mapSeries[0].get('nameProperty'),
aspectScale: mapSeries[0].get('aspectScale')
});
@ -22488,12 +22484,12 @@
var children1 = dataNode.children;
if (children1) for(var i = 0; i < children1.length; i++)buildHierarchy(children1[i], node);
})(dataRoot), tree.root.updateDepthAndHeight(0);
var dimensionsInfo = createDimensions(listData, {
var list = new List(createDimensions(listData, {
coordDimensions: [
'value'
],
dimensionsCount: dimMax
}), list = new List(dimensionsInfo, hostModel);
}), hostModel);
return list.initData(listData), beforeLink && beforeLink(list), linkList({
mainData: list,
struct: tree,
@ -22509,7 +22505,7 @@
var root = {
name: option.name,
children: option.data
}, leaves = option.leaves || {}, leavesModel = new Model(leaves, this, this.ecModel), tree = Tree.createTree(root, this, function(nodeData) {
}, leavesModel = new Model(option.leaves || {}, this, this.ecModel), tree = Tree.createTree(root, this, function(nodeData) {
nodeData.wrapMethod('getItemModel', function(model, idx) {
var node = tree.getNodeByDataIndex(idx);
return node.children.length && node.isExpand || (model.parentModel = leavesModel), model;
@ -22737,8 +22733,8 @@
var thisValue = dataNode.value;
isArray(thisValue) && (thisValue = thisValue[0]), (null == thisValue || isNaN(thisValue)) && (thisValue = sum), thisValue < 0 && (thisValue = 0), isArray(dataNode.value) ? dataNode.value[0] = thisValue : dataNode.value = thisValue;
})(root);
var levels = option.levels || [], designatedVisualItemStyle = this.designatedVisualItemStyle = {}, designatedVisualModel = new Model({
itemStyle: designatedVisualItemStyle
var levels = option.levels || [], designatedVisualModel = new Model({
itemStyle: this.designatedVisualItemStyle = {}
}, this, ecModel), levelModels = map((levels = option.levels = function(levels, ecModel) {
var hasColorDefine, hasDecalDefine, globalColorList = normalizeToArray(ecModel.get('color')), globalDecalList = normalizeToArray(ecModel.get([
'aria',
@ -25013,11 +25009,9 @@
var coordSysCtor = CoordinateSystemManager.get(coordSys), coordDimensions = coordSysCtor && coordSysCtor.dimensions || [];
0 > indexOf(coordDimensions, 'value') && coordDimensions.concat([
'value'
]);
var dimensionNames = createDimensions(nodes, {
]), (nodeData = new List(createDimensions(nodes, {
coordDimensions: coordDimensions
});
(nodeData = new List(dimensionNames, seriesModel)).initData(nodes);
}), seriesModel)).initData(nodes);
}
var edgeData = new List([
'value'
@ -25236,11 +25230,10 @@
this._renderMain(seriesModel, ecModel, api, colorList, posInfo), this._data = seriesModel.getData();
}, GaugeView.prototype.dispose = function() {}, GaugeView.prototype._renderMain = function(seriesModel, ecModel, api, colorList, posInfo) {
for(var group = this.group, clockwise = seriesModel.get('clockwise'), startAngle = -seriesModel.get('startAngle') / 180 * Math.PI, endAngle = -seriesModel.get('endAngle') / 180 * Math.PI, axisLineModel = seriesModel.getModel('axisLine'), MainPath = axisLineModel.get('roundCap') ? SausagePath : Sector, showAxis = axisLineModel.get('show'), lineStyleModel = axisLineModel.getModel('lineStyle'), axisLineWidth = lineStyleModel.get('width'), angleRangeSpan = (endAngle - startAngle) % PI2$9 || endAngle === startAngle ? (endAngle - startAngle) % PI2$9 : PI2$9, prevEndAngle = startAngle, i = 0; showAxis && i < colorList.length; i++){
endAngle = startAngle + angleRangeSpan * Math.min(Math.max(colorList[i][0], 0), 1);
var sector = new MainPath({
shape: {
startAngle: prevEndAngle,
endAngle: endAngle,
endAngle: endAngle = startAngle + angleRangeSpan * Math.min(Math.max(colorList[i][0], 0), 1),
cx: posInfo.cx,
cy: posInfo.cy,
clockwise: clockwise,
@ -25303,11 +25296,10 @@
var distance = tickModel.get('distance');
distance = distance ? distance + axisLineWidth : axisLineWidth;
for(var j = 0; j <= subSplitNumber; j++){
unitX = Math.cos(angle), unitY = Math.sin(angle);
var tickLine = new Line({
shape: {
x1: unitX * (r - distance) + cx,
y1: unitY * (r - distance) + cy,
x1: (unitX = Math.cos(angle)) * (r - distance) + cx,
y1: (unitY = Math.sin(angle)) * (r - distance) + cy,
x2: unitX * (r - tickLen - distance) + cx,
y2: unitY * (r - tickLen - distance) + cy
},
@ -25929,9 +25921,9 @@
dataGroup.remove(line);
}).execute(), !this._initialized) {
this._initialized = !0;
var parallelModel, rect, rectEl, dim, clipPath = (parallelModel = coordSys.model, rect = coordSys.getRect(), rectEl = new Rect({
var parallelModel, rect, rectEl, dim, clipPath = (parallelModel = coordSys.model, rectEl = new Rect({
shape: {
x: rect.x,
x: (rect = coordSys.getRect()).x,
y: rect.y,
width: rect.width,
height: rect.height
@ -25968,9 +25960,9 @@
return points;
}
function addEl(data, dataGroup, dataIndex, dimensions, coordSys) {
var points = createLinePoints(data, dataIndex, dimensions, coordSys), line = new Polyline({
var line = new Polyline({
shape: {
points: points
points: createLinePoints(data, dataIndex, dimensions, coordSys)
},
z2: 10
});
@ -27257,9 +27249,9 @@
}, el.ondragend = function() {
sankeyView._focusAdjacencyDisabled = !1;
}, el.draggable = !0, el.cursor = 'move');
}), !this._data && seriesModel.isAnimationEnabled() && group.setClipPath((rect = group.getBoundingRect(), initProps(rectEl = new Rect({
}), !this._data && seriesModel.isAnimationEnabled() && group.setClipPath((initProps(rectEl = new Rect({
shape: {
x: rect.x - 10,
x: (rect = group.getBoundingRect()).x - 10,
y: rect.y - 10,
width: 0,
height: rect.height + 20
@ -28440,9 +28432,9 @@
return _this._createPolyline(lineData, idx, seriesScope), _this;
}
return __extends(Polyline$1, _super), Polyline$1.prototype._createPolyline = function(lineData, idx, seriesScope) {
var points = lineData.getItemLayout(idx), line = new Polyline({
var line = new Polyline({
shape: {
points: points
points: lineData.getItemLayout(idx)
}
});
this.add(line), this._updateCommonStl(lineData, idx, seriesScope);
@ -29468,9 +29460,9 @@
smoothConstraint: !1
},
z2: 0
}), layerGroup.add(polygon), group.add(layerGroup), seriesModel.isAnimationEnabled() && polygon.setClipPath((rect = polygon.getBoundingRect(), initProps(rectEl = new Rect({
}), layerGroup.add(polygon), group.add(layerGroup), seriesModel.isAnimationEnabled() && polygon.setClipPath((initProps(rectEl = new Rect({
shape: {
x: rect.x - 10,
x: (rect = polygon.getBoundingRect()).x - 10,
y: rect.y - 10,
width: 0,
height: rect.height + 20
@ -29543,7 +29535,7 @@
for(var axisType = this.getReferringComponents('singleAxis', SINGLE_REFERRING).models[0].get('type'), filterData = filter(option.data, function(dataItem) {
return void 0 !== dataItem[2];
}), data = this.fixData(filterData || []), nameList = [], nameMap = this.nameMap = createHashMap(), count = 0, i = 0; i < data.length; ++i)nameList.push(data[i][2]), !nameMap.get(data[i][2]) && (nameMap.set(data[i][2], count), count++);
var dimensionsInfo = createDimensions(data, {
var list = new List(createDimensions(data, {
coordDimensions: [
'single'
],
@ -29566,7 +29558,7 @@
value: 1,
itemName: 2
}
}), list = new List(dimensionsInfo, this);
}), this);
return list.initData(data), list;
}, ThemeRiverSeriesModel.prototype.getLayerSeries = function() {
for(var data = this.getData(), lenCount = data.count(), indexArr = [], i = 0; i < lenCount; ++i)indexArr[i] = i;
@ -32934,7 +32926,7 @@
], this.axisPointerEnabled = !0, this.model = axisModel, this._init(axisModel, ecModel, api);
}
return Single.prototype._init = function(axisModel, ecModel, api) {
var dim = this.dimension, axis = new SingleAxis(dim, createScaleByModel(axisModel), [
var axis = new SingleAxis(this.dimension, createScaleByModel(axisModel), [
0,
0
], axisModel.get('type'), axisModel.get('position')), isCategory = 'category' === axis.type;
@ -33385,10 +33377,10 @@
start: rangeData.start.y,
end: rangeData.end.y,
nameMap: name
}, content = this._formatterLabel(formatter, params), yearText = new ZRText({
}, yearText = new ZRText({
z2: 30,
style: createTextStyle(yearLabel, {
text: content
text: this._formatterLabel(formatter, params)
})
});
yearText.attr(this._yearTextPositionControl(yearText, posPoints[pos], orient, pos, margin)), group.add(yearText);
@ -33423,10 +33415,10 @@
MM: firstDay.m,
M: +firstDay.m,
nameMap: name_1
}, content = this._formatterLabel(formatter, params), monthText = new ZRText({
}, monthText = new ZRText({
z2: 30,
style: extend(createTextStyle(monthLabel, {
text: content
text: this._formatterLabel(formatter, params)
}), this._monthTextPositionControl(tmp, isCenter, orient, pos, margin))
});
group.add(monthText);
@ -33453,12 +33445,10 @@
for(var i = 0; i < 7; i++){
var tmpD = coordSys.getNextNDay(start, i), point = coordSys.dataToRect([
tmpD.time
], !1).center, day = i;
day = Math.abs((i + firstDayOfWeek) % 7);
var weekText = new ZRText({
], !1).center, weekText = new ZRText({
z2: 30,
style: extend(createTextStyle(dayLabel, {
text: nameMap[day]
text: nameMap[Math.abs((i + firstDayOfWeek) % 7)]
}), this._weekTextPositionControl(point, orient, pos, margin, cellSize))
});
group.add(weekText);
@ -36955,8 +36945,8 @@
]), progressLabelModel = itemModel.getModel([
'progress',
'label'
]), tickCoord = axis.dataToCoord(labelItem.tickValue), textEl = new ZRText({
x: tickCoord,
]), textEl = new ZRText({
x: axis.dataToCoord(labelItem.tickValue),
y: 0,
rotation: layoutInfo.labelRotation - layoutInfo.rotation,
onclick: bind(_this._changeTimeline, _this, dataIndex),
@ -37360,7 +37350,7 @@
mpModel && (updateMarkerLayout(mpModel.getData(), seriesModel, api), this.markerGroupMap.get(seriesModel.id).updateLayout());
}, this);
}, MarkPointView.prototype.renderSeries = function(seriesModel, mpModel, ecModel, api) {
var coordDimsInfos, mpData, dataOpt, coordSys = seriesModel.coordinateSystem, seriesId = seriesModel.id, seriesData = seriesModel.getData(), symbolDrawMap = this.markerGroupMap, symbolDraw = symbolDrawMap.get(seriesId) || symbolDrawMap.set(seriesId, new SymbolDraw()), mpData1 = (coordDimsInfos = coordSys ? map(coordSys && coordSys.dimensions, function(coordDim) {
var mpData, dataOpt, coordSys = seriesModel.coordinateSystem, seriesId = seriesModel.id, seriesData = seriesModel.getData(), symbolDrawMap = this.markerGroupMap, symbolDraw = symbolDrawMap.get(seriesId) || symbolDrawMap.set(seriesId, new SymbolDraw()), mpData1 = (mpData = new List(coordSys ? map(coordSys && coordSys.dimensions, function(coordDim) {
var info = seriesModel.getData().getDimensionInfo(seriesModel.getData().mapDimension(coordDim)) || {};
return defaults({
name: coordDim
@ -37370,7 +37360,7 @@
name: 'value',
type: 'float'
}
], mpData = new List(coordDimsInfos, mpModel), dataOpt = map(mpModel.get('data'), curry(dataTransform, seriesModel)), coordSys && (dataOpt = filter(dataOpt, curry(dataFilter$1, coordSys))), mpData.initData(dataOpt, null, coordSys ? dimValueGetter : function(item) {
], mpModel), dataOpt = map(mpModel.get('data'), curry(dataTransform, seriesModel)), coordSys && (dataOpt = filter(dataOpt, curry(dataFilter$1, coordSys))), mpData.initData(dataOpt, null, coordSys ? dimValueGetter : function(item) {
return item.value;
}), mpData);
mpModel.setData(mpData1), updateMarkerLayout(mpModel.getData(), seriesModel, api), mpData1.each(function(idx) {
@ -37529,7 +37519,7 @@
}, MarkLineView.prototype.renderSeries = function(seriesModel, mlModel, ecModel, api) {
var coordDimsInfos, fromData, toData, lineData, optData, dimValueGetter$1, coordSys = seriesModel.coordinateSystem, seriesId = seriesModel.id, seriesData = seriesModel.getData(), lineDrawMap = this.markerGroupMap, lineDraw = lineDrawMap.get(seriesId) || lineDrawMap.set(seriesId, new LineDraw());
this.group.add(lineDraw.group);
var mlData = (coordDimsInfos = coordSys ? map(coordSys && coordSys.dimensions, function(coordDim) {
var mlData = (fromData = new List(coordDimsInfos = coordSys ? map(coordSys && coordSys.dimensions, function(coordDim) {
var info = seriesModel.getData().getDimensionInfo(seriesModel.getData().mapDimension(coordDim)) || {};
return defaults({
name: coordDim
@ -37539,7 +37529,7 @@
name: 'value',
type: 'float'
}
], fromData = new List(coordDimsInfos, mlModel), toData = new List(coordDimsInfos, mlModel), lineData = new List([], mlModel), optData = map(mlModel.get('data'), curry(markLineTransform, seriesModel, coordSys, mlModel)), coordSys && (optData = filter(optData, curry(markLineFilter, coordSys))), dimValueGetter$1 = coordSys ? dimValueGetter : function(item) {
], mlModel), toData = new List(coordDimsInfos, mlModel), lineData = new List([], mlModel), optData = map(mlModel.get('data'), curry(markLineTransform, seriesModel, coordSys, mlModel)), coordSys && (optData = filter(optData, curry(markLineFilter, coordSys))), dimValueGetter$1 = coordSys ? dimValueGetter : function(item) {
return item.value;
}, fromData.initData(map(optData, function(item) {
return item[0];
@ -37742,12 +37732,12 @@
name: dim,
type: coordDimsInfos[idx % 2].type
};
}), maModel)) : (coordDimsInfos = [
}), maModel)) : areaData = new List(coordDimsInfos = [
{
name: 'value',
type: 'float'
}
], areaData = new List(coordDimsInfos, maModel)), optData = map(maModel.get('data'), curry(markAreaTransform, seriesModel, coordSys, maModel)), coordSys && (optData = filter(optData, curry(markAreaFilter, coordSys))), dimValueGetter = coordSys ? function(item, dimName, dataIndex, dimIndex) {
], maModel), optData = map(maModel.get('data'), curry(markAreaTransform, seriesModel, coordSys, maModel)), coordSys && (optData = filter(optData, curry(markAreaFilter, coordSys))), dimValueGetter = coordSys ? function(item, dimName, dataIndex, dimIndex) {
return item.coord[Math.floor(dimIndex / 2)][dimIndex % 2];
} : function(item) {
return item.value;
@ -40871,7 +40861,7 @@
}(), filterTransform = {
type: 'echarts:filter',
transform: function(params) {
for(var exprOption, getters, rawItem, upstream = params.upstream, condition = (exprOption = params.config, getters = {
for(var rawItem, upstream = params.upstream, condition = new ConditionalExpressionParsed(params.config, {
valueGetterAttrMap: createHashMap({
dimension: !0
}),
@ -40886,7 +40876,7 @@
getValue: function(param) {
return upstream.retrieveValueFromItem(rawItem, param.dimIdx);
}
}, new ConditionalExpressionParsed(exprOption, getters)), resultData = [], i = 0, len = upstream.count(); i < len; i++)rawItem = upstream.getRawDataItem(i), condition.evaluate() && resultData.push(rawItem);
}), resultData = [], i = 0, len = upstream.count(); i < len; i++)rawItem = upstream.getRawDataItem(i), condition.evaluate() && resultData.push(rawItem);
return {
data: resultData
};

View File

@ -1523,10 +1523,10 @@
}
{
const AccessorClass = "get" === accessor_type ? AST_ObjectGetter : AST_ObjectSetter;
return name = get_symbol_ast(name), new AccessorClass({
return new AccessorClass({
start,
static: is_static,
key: name,
key: name = get_symbol_ast(name),
quote: name instanceof AST_SymbolMethod ? property_token.quote : void 0,
value: create_accessor(),
end: prev()
@ -18003,7 +18003,7 @@
var entries = fs.readdirSync(dir);
} catch (ex) {}
if (entries) {
var pattern = "^" + path.basename(glob).replace(/[.+^$[\]\\(){}]/g, "\\$&").replace(/\*/g, "[^/\\\\]*").replace(/\?/g, "[^/\\\\]") + "$", mod = "win32" === process.platform ? "i" : "", rx = new RegExp(pattern, mod), results = entries.filter(function(name) {
var rx = RegExp("^" + path.basename(glob).replace(/[.+^$[\]\\(){}]/g, "\\$&").replace(/\*/g, "[^/\\\\]*").replace(/\?/g, "[^/\\\\]") + "$", "win32" === process.platform ? "i" : ""), results = entries.filter(function(name) {
return rx.test(name);
}).map(function(name) {
return path.join(dir, name);

View File

@ -7232,7 +7232,7 @@
},
clone: function(data) {
void 0 === data.arrayBuffers && (data.arrayBuffers = {}), void 0 === this.array.buffer._uuid && (this.array.buffer._uuid = MathUtils.generateUUID()), void 0 === data.arrayBuffers[this.array.buffer._uuid] && (data.arrayBuffers[this.array.buffer._uuid] = this.array.slice(0).buffer);
var array = new this.array.constructor(data.arrayBuffers[this.array.buffer._uuid]), ib = new InterleavedBuffer(array, this.stride);
var ib = new InterleavedBuffer(new this.array.constructor(data.arrayBuffers[this.array.buffer._uuid]), this.stride);
return ib.setUsage(this.usage), ib;
},
onUpload: function(callback) {
@ -7339,7 +7339,7 @@
function Sprite(material) {
if (Object3D.call(this), this.type = 'Sprite', void 0 === _geometry) {
_geometry = new BufferGeometry();
var float32Array = new Float32Array([
var interleavedBuffer = new InterleavedBuffer(new Float32Array([
-0.5,
-0.5,
0,
@ -7360,7 +7360,7 @@
0,
0,
1
]), interleavedBuffer = new InterleavedBuffer(float32Array, 5);
]), 5);
_geometry.setIndex([
0,
1,
@ -11148,9 +11148,9 @@
return this.curves.push(curve), this.currentPoint.set(aX, aY), this;
},
splineThru: function(pts) {
var npts = [
var curve = new SplineCurve([
this.currentPoint.clone()
].concat(pts), curve = new SplineCurve(npts);
].concat(pts));
return this.curves.push(curve), this.currentPoint.copy(pts[pts.length - 1]), this;
},
arc: function(aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise) {
@ -11550,7 +11550,7 @@
if (void 0 !== arrayBufferMap[uuid]) return arrayBufferMap[uuid];
var arrayBuffer = json.arrayBuffers[uuid], ab = new Uint32Array(arrayBuffer).buffer;
return arrayBufferMap[uuid] = ab, ab;
}(json, interleavedBuffer.buffer), array = getTypedArray(interleavedBuffer.type, buffer), ib = new InterleavedBuffer(array, interleavedBuffer.stride);
}(json, interleavedBuffer.buffer), ib = new InterleavedBuffer(getTypedArray(interleavedBuffer.type, buffer), interleavedBuffer.stride);
return ib.uuid = interleavedBuffer.uuid, interleavedBufferMap[uuid] = ib, ib;
}
var geometry = json.isInstancedBufferGeometry ? new InstancedBufferGeometry() : new BufferGeometry(), index = json.data.index;
@ -11561,10 +11561,8 @@
var attributes = json.data.attributes;
for(var key in attributes){
var attribute = attributes[key], bufferAttribute = void 0;
if (attribute.isInterleavedBufferAttribute) {
var interleavedBuffer = getInterleavedBuffer(json.data, attribute.data);
bufferAttribute = new InterleavedBufferAttribute(interleavedBuffer, attribute.itemSize, attribute.offset, attribute.normalized);
} else {
if (attribute.isInterleavedBufferAttribute) bufferAttribute = new InterleavedBufferAttribute(getInterleavedBuffer(json.data, attribute.data), attribute.itemSize, attribute.offset, attribute.normalized);
else {
var _typedArray = getTypedArray(attribute.type, attribute.array);
bufferAttribute = new (attribute.isInstancedBufferAttribute ? InstancedBufferAttribute : BufferAttribute)(_typedArray, attribute.itemSize, attribute.normalized);
}
@ -11574,14 +11572,7 @@
if (morphAttributes) for(var _key in morphAttributes){
for(var attributeArray = morphAttributes[_key], array = [], i = 0, il = attributeArray.length; i < il; i++){
var _attribute = attributeArray[i], _bufferAttribute = void 0;
if (_attribute.isInterleavedBufferAttribute) {
var _interleavedBuffer = getInterleavedBuffer(json.data, _attribute.data);
_bufferAttribute = new InterleavedBufferAttribute(_interleavedBuffer, _attribute.itemSize, _attribute.offset, _attribute.normalized);
} else {
var _typedArray2 = getTypedArray(_attribute.type, _attribute.array);
_bufferAttribute = new BufferAttribute(_typedArray2, _attribute.itemSize, _attribute.normalized);
}
void 0 !== _attribute.name && (_bufferAttribute.name = _attribute.name), array.push(_bufferAttribute);
_bufferAttribute = _attribute.isInterleavedBufferAttribute ? new InterleavedBufferAttribute(getInterleavedBuffer(json.data, _attribute.data), _attribute.itemSize, _attribute.offset, _attribute.normalized) : new BufferAttribute(getTypedArray(_attribute.type, _attribute.array), _attribute.itemSize, _attribute.normalized), void 0 !== _attribute.name && (_bufferAttribute.name = _attribute.name), array.push(_bufferAttribute);
}
geometry.morphAttributes[_key] = array;
}
@ -11792,8 +11783,7 @@
} : null;
}
if (void 0 !== json && json.length > 0) {
var manager = new LoadingManager(onLoad);
(loader = new ImageLoader(manager)).setCrossOrigin(this.crossOrigin);
(loader = new ImageLoader(new LoadingManager(onLoad))).setCrossOrigin(this.crossOrigin);
for(var i = 0, il = json.length; i < il; i++){
var image = json[i], url = image.url;
if (Array.isArray(url)) {
@ -11869,10 +11859,10 @@
object = new LightProbe().fromJSON(data);
break;
case 'SkinnedMesh':
geometry = getGeometry(data.geometry), material = getMaterial(data.material), object = new SkinnedMesh(geometry, material), void 0 !== data.bindMode && (object.bindMode = data.bindMode), void 0 !== data.bindMatrix && object.bindMatrix.fromArray(data.bindMatrix), void 0 !== data.skeleton && (object.skeleton = data.skeleton);
object = new SkinnedMesh(geometry = getGeometry(data.geometry), material = getMaterial(data.material)), void 0 !== data.bindMode && (object.bindMode = data.bindMode), void 0 !== data.bindMatrix && object.bindMatrix.fromArray(data.bindMatrix), void 0 !== data.skeleton && (object.skeleton = data.skeleton);
break;
case 'Mesh':
geometry = getGeometry(data.geometry), material = getMaterial(data.material), object = new Mesh(geometry, material);
object = new Mesh(geometry = getGeometry(data.geometry), material = getMaterial(data.material));
break;
case 'InstancedMesh':
geometry = getGeometry(data.geometry), material = getMaterial(data.material);
@ -13972,8 +13962,7 @@
new Vector3(-PHI, INV_PHI, 0)
], PMREMGenerator = function() {
function PMREMGenerator(renderer) {
var weights, poleAxis;
this._renderer = renderer, this._pingPongRenderTarget = null, this._blurMaterial = (weights = new Float32Array(20), poleAxis = new Vector3(0, 1, 0), new RawShaderMaterial({
this._renderer = renderer, this._pingPongRenderTarget = null, this._blurMaterial = new RawShaderMaterial({
name: 'SphericalGaussianBlur',
defines: {
n: 20
@ -13986,7 +13975,7 @@
value: 1
},
weights: {
value: weights
value: new Float32Array(20)
},
latitudinal: {
value: !1
@ -13998,7 +13987,7 @@
value: 0
},
poleAxis: {
value: poleAxis
value: new Vector3(0, 1, 0)
},
inputEncoding: {
value: ENCODINGS[3000]
@ -14012,7 +14001,7 @@
blending: 0,
depthTest: !1,
depthWrite: !1
})), this._equirectShader = null, this._cubemapShader = null, this._compileMaterial(this._blurMaterial);
}), this._equirectShader = null, this._cubemapShader = null, this._compileMaterial(this._blurMaterial);
}
var _proto = PMREMGenerator.prototype;
return _proto.fromScene = function(scene, sigma, near, far) {
@ -14119,7 +14108,6 @@
target.viewport.set(x, y, width, height), target.scissor.set(x, y, width, height);
}
function _getEquirectShader() {
var texelSize = new Vector2(1, 1);
return new RawShaderMaterial({
name: 'EquirectangularToCubeUV',
uniforms: {
@ -14127,7 +14115,7 @@
value: null
},
texelSize: {
value: texelSize
value: new Vector2(1, 1)
},
inputEncoding: {
value: ENCODINGS[3000]

View File

@ -944,7 +944,7 @@
return a <= 0 && (r = g = b = NaN), new Rgb(r, g, b, a);
}
function rgbConvert(o) {
return (o instanceof Color || (o = color(o)), o) ? (o = o.rgb(), new Rgb(o.r, o.g, o.b, o.opacity)) : new Rgb;
return (o instanceof Color || (o = color(o)), o) ? new Rgb((o = o.rgb()).r, o.g, o.b, o.opacity) : new Rgb;
}
function rgb(r, g, b, opacity) {
return 1 == arguments.length ? rgbConvert(r) : new Rgb(r, g, b, null == opacity ? 1 : opacity);
@ -8436,10 +8436,7 @@
return createChainableTypeChecker(function(props, propName, componentName, location, propFullName) {
if ('function' != typeof typeChecker) return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
var propValue = props[propName];
if (!Array.isArray(propValue)) {
var propType = getPropType(propValue);
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType) + '` supplied to `' + componentName + '`, expected an array.');
}
if (!Array.isArray(propValue)) return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + getPropType(propValue)) + '` supplied to `' + componentName + '`, expected an array.');
for(var i = 0; i < propValue.length; i++){
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
if (error instanceof Error) return error;
@ -8449,25 +8446,17 @@
},
element: createChainableTypeChecker(function(props, propName, componentName, location, propFullName) {
var propValue = props[propName];
if (!isValidElement(propValue)) {
var propType = getPropType(propValue);
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType) + '` supplied to `' + componentName + '`, expected a single ReactElement.');
}
return null;
return isValidElement(propValue) ? null : new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + getPropType(propValue)) + '` supplied to `' + componentName + '`, expected a single ReactElement.');
}),
elementType: createChainableTypeChecker(function(props, propName, componentName, location, propFullName) {
var propValue = props[propName];
if (!ReactIs.isValidElementType(propValue)) {
var propType = getPropType(propValue);
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType) + '` supplied to `' + componentName + '`, expected a single ReactElement type.');
}
return null;
return ReactIs.isValidElementType(propValue) ? null : new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + getPropType(propValue)) + '` supplied to `' + componentName + '`, expected a single ReactElement type.');
}),
instanceOf: function(expectedClass) {
return createChainableTypeChecker(function(props, propName, componentName, location, propFullName) {
if (!(props[propName] instanceof expectedClass)) {
var propValue, expectedClassName = expectedClass.name || ANONYMOUS, actualClassName = (propValue = props[propName]).constructor && propValue.constructor.name ? propValue.constructor.name : ANONYMOUS;
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName) + '` supplied to `' + componentName + "`, expected instance of `" + expectedClassName + '`.');
var propValue, expectedClassName = expectedClass.name || ANONYMOUS;
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + ((propValue = props[propName]).constructor && propValue.constructor.name ? propValue.constructor.name : ANONYMOUS)) + '` supplied to `' + componentName + "`, expected instance of `" + expectedClassName + '`.');
}
return null;
});
@ -8600,11 +8589,7 @@
function createPrimitiveTypeChecker(expectedType) {
return createChainableTypeChecker(function(props, propName, componentName, location, propFullName, secret) {
var propValue = props[propName];
if (getPropType(propValue) !== expectedType) {
var preciseType = getPreciseType(propValue);
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType) + '` supplied to `' + componentName + "`, expected `" + expectedType + '`.');
}
return null;
return getPropType(propValue) !== expectedType ? new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + getPreciseType(propValue)) + '` supplied to `' + componentName + "`, expected `" + expectedType + '`.') : null;
});
}
function getPropType(propValue) {

View File

@ -4926,7 +4926,7 @@
length = byteLength / BYTES;
} else if (isTypedArray(data)) return fromList(TypedArrayConstructor, data);
else return typedArrayFrom.call(TypedArrayConstructor, data);
} else byteLength = (length = toIndex(data)) * BYTES, buffer = new ArrayBuffer1(byteLength);
} else buffer = new ArrayBuffer1(byteLength = (length = toIndex(data)) * BYTES);
for(setInternalState(that, {
buffer: buffer,
byteOffset: byteOffset,

View File

@ -1869,9 +1869,9 @@
}
function Hn(t, e) {
var t1;
return t1 = t.databaseId, new ht([
return new ht([
"projects",
t1.projectId,
(t1 = t.databaseId).projectId,
"databases",
t1.database
]).child("documents").child(e).canonicalString();
@ -2359,8 +2359,7 @@
const s = e.collectionGroup;
let i = En;
return this.Ht.getCollectionParents(t, s).next((r)=>js.forEach(r, (r)=>{
var e1;
const o = (e1 = r.child(s), new fe(e1, null, e.explicitOrderBy.slice(), e.filters.slice(), e.limit, e.limitType, e.startAt, e.endAt));
const o = new fe(r.child(s), null, e.explicitOrderBy.slice(), e.filters.slice(), e.limit, e.limitType, e.startAt, e.endAt);
return this.Dn(t, o, n).next((t)=>{
t.forEach((t, e)=>{
i = i.insert(t, e);
@ -2508,20 +2507,20 @@
query: function(t) {
var e;
const e1 = function(t) {
var t1, t2, e, n, s, i, o, c;
let e1, e2 = function(t) {
var t1;
let e, e1 = function(t) {
const e = Wn(t);
return 4 === e.length ? ht.emptyPath() : Xn(e);
}(t.parent);
const n1 = t.structuredQuery, s1 = n1.from ? n1.from.length : 0;
let i1 = null;
if (s1 > 0) {
1 === s1 || L();
const t = n1.from[0];
t.allDescendants ? i1 = t.collectionId : e2 = e2.child(t.collectionId);
const n = t.structuredQuery, s = n.from ? n.from.length : 0;
let i = null;
if (s > 0) {
1 === s || L();
const t = n.from[0];
t.allDescendants ? i = t.collectionId : e1 = e1.child(t.collectionId);
}
let r = [];
n1.where && (r = function hs(t) {
n.where && (r = function hs(t) {
return t ? void 0 !== t.unaryFilter ? [
function(t) {
switch(t.unaryFilter.op){
@ -2577,9 +2576,9 @@
}
}(t.fieldFilter.op), t.fieldFilter.value)
] : void 0 !== t.compositeFilter ? t.compositeFilter.filters.map((t)=>hs(t)).reduce((t, e)=>t.concat(e)) : L() : [];
}(n1.where));
let o1 = [];
n1.orderBy && (o1 = n1.orderBy.map((t)=>new ae(ms(t.field), function(t) {
}(n.where));
let o = [];
n.orderBy && (o = n.orderBy.map((t)=>new ae(ms(t.field), function(t) {
switch(t){
case "ASCENDING":
return "asc";
@ -2589,12 +2588,12 @@
return;
}
}(t.direction))));
let c1 = null;
n1.limit && (c1 = At(e1 = "object" == typeof (t1 = n1.limit) ? t1.value : t1) ? null : e1);
let c = null;
n.limit && (c = At(e = "object" == typeof (t1 = n.limit) ? t1.value : t1) ? null : e);
let a = null;
n1.startAt && (a = fs(n1.startAt));
n.startAt && (a = fs(n.startAt));
let u = null;
return n1.endAt && (u = fs(n1.endAt)), t2 = e2, e = i1, n = o1, s = r, i = c1, o = a, c = u, new fe(t2, e, n, s, i, "F", o, c);
return n.endAt && (u = fs(n.endAt)), new fe(e1, i, o, r, c, "F", a, u);
}({
parent: t.parent,
structuredQuery: t.structuredQuery
@ -2896,8 +2895,7 @@
}
class Cr {
constructor(t, e){
var t1;
this.bs = {}, this.Le = new X(0), this.Be = !1, this.Be = !0, this.referenceDelegate = t(this), this.ze = new Dr(this), this.Ht = new pi(), this.He = (t1 = this.Ht, new Vr(t1, (t)=>this.referenceDelegate.Ps(t))), this.N = new ri(e), this.Je = new Rr(this.N);
this.bs = {}, this.Le = new X(0), this.Be = !1, this.Be = !0, this.referenceDelegate = t(this), this.ze = new Dr(this), this.Ht = new pi(), this.He = new Vr(this.Ht, (t)=>this.referenceDelegate.Ps(t)), this.N = new ri(e), this.Je = new Rr(this.N);
}
start() {
return Promise.resolve();
@ -4162,11 +4160,10 @@
}
function yc(t) {
for(; t.Mo.size > 0 && t.Lo.size < t.maxConcurrentLimboResolutions;){
var t1;
const e = t.Mo.values().next().value;
t.Mo.delete(e);
const n = new Pt(ht.fromString(e)), s = t.jo.next();
t.Bo.set(s, new tc(n)), t.Lo = t.Lo.insert(n, s), co(t.remoteStore, new ii(Ee((t1 = n.path, new fe(t1))), s, 2, X.T));
t.Bo.set(s, new tc(n)), t.Lo = t.Lo.insert(n, s), co(t.remoteStore, new ii(Ee(new fe(n.path)), s, 2, X.T));
}
}
async function pc(t, e, n) {
@ -4225,15 +4222,13 @@
this.synchronizeTabs = !1;
}
async initialize(t) {
var t1;
this.N = (t1 = t.databaseInfo.databaseId, new Bn(t1, !0)), this.sharedClientState = this.Ho(t), this.persistence = this.Jo(t), await this.persistence.start(), this.gcScheduler = this.Yo(t), this.localStore = this.Xo(t);
this.N = new Bn(t.databaseInfo.databaseId, !0), this.sharedClientState = this.Ho(t), this.persistence = this.Jo(t), await this.persistence.start(), this.gcScheduler = this.Yo(t), this.localStore = this.Xo(t);
}
Yo(t) {
return null;
}
Xo(t) {
var t1, e, n, s;
return t1 = this.persistence, e = new cr(), n = t.initialUser, s = this.N, new ar(t1, e, n, s);
return new ar(this.persistence, new cr(), t.initialUser, this.N);
}
Jo(t) {
return new Cr(xr.Ns, this.N);
@ -4253,13 +4248,11 @@
return new Lo();
}
createDatastore(t) {
var s, t1, t2;
const e = (t1 = t.databaseInfo.databaseId, new Bn(t1, !0)), n = (s = t.databaseInfo, new zr(s));
return t2 = t.credentials, new no(t2, n, e);
const e = new Bn(t.databaseInfo.databaseId, !0), n = new zr(t.databaseInfo);
return new no(t.credentials, n, e);
}
createRemoteStore(t) {
var e, n, s, r;
return e = this.localStore, n = this.datastore, s = t.asyncQueue, r = Qr.bt() ? new Qr() : new jr(), new io(e, n, s, (t)=>cc(this.syncEngine, t, 0), r);
return new io(this.localStore, this.datastore, t.asyncQueue, (t)=>cc(this.syncEngine, t, 0), Qr.bt() ? new Qr() : new jr());
}
createSyncEngine(t, e) {
return function(t, e, n, s, i, r, o) {
@ -4631,8 +4624,8 @@
}
}
function Ma(t) {
var e, t1, e1, n;
const n1 = t._freezeSettings(), s = (t1 = t._databaseId, e1 = (null === (e = t._app) || void 0 === e ? void 0 : e.options.appId) || "", n = t._persistenceKey, new ua(t1, e1, n, n1.host, n1.ssl, n1.experimentalForceLongPolling, n1.experimentalAutoDetectLongPolling, n1.useFetchStreams));
var e;
const n = t._freezeSettings(), s = new ua(t._databaseId, (null === (e = t._app) || void 0 === e ? void 0 : e.options.appId) || "", t._persistenceKey, n.host, n.ssl, n.experimentalForceLongPolling, n.experimentalAutoDetectLongPolling, n.useFetchStreams);
t._firestoreClient = new Kc(t._credentials, t._queue, s);
}
class Ja {

View File

@ -12500,7 +12500,7 @@
playlist: segmentInfo.playlist.id,
start: start,
end: end
}, data = JSON.stringify(value), cue = new Cue(start, end, data);
}, cue = new Cue(start, end, JSON.stringify(value));
cue.value = value, this.segmentMetadataTrack_.addCue(cue);
}
}
@ -13426,8 +13426,8 @@
}), transferable;
};
self.onmessage = function(event) {
var data = event.data, encrypted = new Uint8Array(data.encrypted.bytes, data.encrypted.byteOffset, data.encrypted.byteLength), key = new Uint32Array(data.key.bytes, data.key.byteOffset, data.key.byteLength / 4), iv = new Uint32Array(data.iv.bytes, data.iv.byteOffset, data.iv.byteLength / 4);
new Decrypter(encrypted, key, iv, function(err, bytes) {
var data = event.data;
new Decrypter(new Uint8Array(data.encrypted.bytes, data.encrypted.byteOffset, data.encrypted.byteLength), new Uint32Array(data.key.bytes, data.key.byteOffset, data.key.byteLength / 4), new Uint32Array(data.iv.bytes, data.iv.byteOffset, data.iv.byteLength / 4), function(err, bytes) {
self.postMessage(createTransferableMessage({
source: data.source,
decrypted: bytes

View File

@ -4534,7 +4534,7 @@
font: Math.round(5 * containerBox.height) / 100 + "px sans-serif"
};
!function() {
for(var styleBox, cue, i = 0; i < cues.length; i++)cue = cues[i], styleBox = new CueStyleBox(window1, cue, styleOptions), paddedOverlay.appendChild(styleBox.div), function(window1, styleBox, containerBox, boxPositions) {
for(var styleBox, cue, i = 0; i < cues.length; i++)styleBox = new CueStyleBox(window1, cue = cues[i], styleOptions), paddedOverlay.appendChild(styleBox.div), function(window1, styleBox, containerBox, boxPositions) {
var boxPosition = new BoxPosition(styleBox), cue = styleBox.cue, linePos = function(cue) {
if ("number" == typeof cue.line && (cue.snapToLines || cue.line >= 0 && cue.line <= 100)) return cue.line;
if (!cue.track || !cue.track.textTrackList || !cue.track.textTrackList.mediaElement) return -1;

View File

@ -786,13 +786,13 @@
return hsl.h = hue < 0 ? 360 + hue : hue, new TinyColor(hsl);
}, TinyColor.prototype.mix = function(color, amount) {
void 0 === amount && (amount = 50);
var rgb1 = this.toRgb(), rgb2 = new TinyColor(color).toRgb(), p = amount / 100, rgba = {
var rgb1 = this.toRgb(), rgb2 = new TinyColor(color).toRgb(), p = amount / 100;
return new TinyColor({
r: (rgb2.r - rgb1.r) * p + rgb1.r,
g: (rgb2.g - rgb1.g) * p + rgb1.g,
b: (rgb2.b - rgb1.b) * p + rgb1.b,
a: (rgb2.a - rgb1.a) * p + rgb1.a
};
return new TinyColor(rgba);
});
}, TinyColor.prototype.analogous = function(results, slices) {
void 0 === results && (results = 6), void 0 === slices && (slices = 30);
var hsl = this.toHsl(), part = 360 / slices, ret = [
@ -1190,8 +1190,7 @@
return new module_TinyColor(hex).isValid ? hex : fallback;
}, transparentize = function(color, opacity) {
return function(theme) {
var raw = getColor(theme, color);
return new module_TinyColor(raw).setAlpha(opacity).toRgbString();
return new module_TinyColor(getColor(theme, color)).setAlpha(opacity).toRgbString();
};
};
function generateStripe(size, color) {
@ -1584,7 +1583,7 @@
colorScheme: "blue"
}
}, baseStyleContainer$3 = function(props) {
var hex, list, opts, fallback, name = props.name, theme = props.theme, bg = name ? (opts = {
var list, opts, fallback, name = props.name, theme = props.theme, bg = name ? (opts = {
string: name
}, fallback = (function random(options) {
if (void 0 === options && (options = {}), void 0 !== options.count && null !== options.count) {
@ -1682,7 +1681,7 @@
for(var i = 0; i < str.length; i += 1)hash = str.charCodeAt(i) + ((hash << 5) - hash), hash &= hash;
for(var color = "#", j = 0; j < 3; j += 1)color += ("00" + (hash >> 8 * j & 255).toString(16)).substr(-2);
return color;
}(opts.string) : opts.colors && !opts.string ? (list = opts.colors)[Math.floor(Math.random() * list.length)] : fallback) : "gray.400", isBgDark = "dark" == (hex = getColor(theme, bg), new module_TinyColor(hex).isDark() ? "dark" : "light"), color = "white";
}(opts.string) : opts.colors && !opts.string ? (list = opts.colors)[Math.floor(Math.random() * list.length)] : fallback) : "gray.400", isBgDark = "dark" == (new module_TinyColor(getColor(theme, bg)).isDark() ? "dark" : "light"), color = "white";
return isBgDark || (color = "gray.800"), {
bg: bg,
color: color,

View File

@ -2864,7 +2864,7 @@
if (!(this.children.length <= 10)) {
var me = this;
do {
var spilled = me.children.splice(me.children.length - 5, 5), sibling = new BranchChunk(spilled);
var sibling = new BranchChunk(me.children.splice(me.children.length - 5, 5));
if (me.parent) {
me.size -= sibling.size, me.height -= sibling.height;
var myIndex = indexOf(me.parent.children, me);

View File

@ -464,7 +464,7 @@
}).call(commonjsGlobal), require$$8 = version$2 && version$2.default || version$2, splice = [].splice, RedisDatastore$1 = ()=>console.log('You must import the full version of Bottleneck in order to use this feature.'), Bottleneck_1 = (function() {
class Bottleneck {
constructor(options = {}, ...invalid){
var storeInstanceOptions, storeOptions;
var storeOptions;
this._addToQueue = this._addToQueue.bind(this), this._validateOptions(options, invalid), parser.load(options, this.instanceDefaults, this), this._queues = new Queues(10), this._scheduled = {}, this._states = new States([
"RECEIVED",
"QUEUED",
@ -473,8 +473,8 @@
].concat(this.trackDoneStatus ? [
"DONE"
] : [])), this._limiter = null, this.Events = new Events(this), this._submitLock = new Sync("submit", this.Promise), this._registerLock = new Sync("register", this.Promise), storeOptions = parser.load(options, this.storeDefaults, {}), this._store = (function() {
if ("redis" === this.datastore || "ioredis" === this.datastore || null != this.connection) return storeInstanceOptions = parser.load(options, this.redisStoreDefaults, {}), new RedisDatastore$1(this, storeOptions, storeInstanceOptions);
if ("local" === this.datastore) return storeInstanceOptions = parser.load(options, this.localStoreDefaults, {}), new LocalDatastore(this, storeOptions, storeInstanceOptions);
if ("redis" === this.datastore || "ioredis" === this.datastore || null != this.connection) return new RedisDatastore$1(this, storeOptions, parser.load(options, this.redisStoreDefaults, {}));
if ("local" === this.datastore) return new LocalDatastore(this, storeOptions, parser.load(options, this.localStoreDefaults, {}));
throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`);
}).call(this), this._queues.on("leftzero", ()=>{
var ref;

View File

@ -4953,8 +4953,8 @@
var pos = this.getNextFoldTo(row, column);
if (!pos || "inside" == pos.kind) return null;
var fold = pos.fold, folds = this.folds, foldData = this.foldData, i = folds.indexOf(fold), foldBefore = folds[i - 1];
this.end.row = foldBefore.end.row, this.end.column = foldBefore.end.column, folds = folds.splice(i, folds.length - i);
var newFoldLine = new FoldLine(foldData, folds);
this.end.row = foldBefore.end.row, this.end.column = foldBefore.end.column;
var newFoldLine = new FoldLine(foldData, folds = folds.splice(i, folds.length - i));
return foldData.splice(foldData.indexOf(this) + 1, 0, newFoldLine), newFoldLine;
}, this.merge = function(foldLineNext) {
for(var folds = foldLineNext.folds, i = 0; i < folds.length; i++)this.addFold(folds[i]);
@ -5105,7 +5105,7 @@
fold.setFoldLine(foldLine);
});
}, this.clone = function() {
var range = this.range.clone(), fold = new Fold(range, this.placeholder);
var fold = new Fold(this.range.clone(), this.placeholder);
return this.subFolds.forEach(function(subFold) {
fold.subFolds.push(subFold.clone());
}), fold.collapseChildren = this.collapseChildren, fold;

View File

@ -2071,13 +2071,13 @@
], tb = [
function(e) {
return e.map(function(e) {
var t, r = (t = e.attributes.font, tv.reduce(function(e, r) {
var t, r = new RegExp((t = e.attributes.font, tv.reduce(function(e, r) {
return t && t.hasGlyphForCodePoint && t.hasGlyphForCodePoint(r) ? e : [].concat(e, [
String.fromCharCode(r)
]);
}, [])), n = new RegExp(r.join("|"));
}, [])).join("|"));
return {
string: e.string.replace(n, ""),
string: e.string.replace(r, ""),
attributes: e.attributes
};
});
@ -7109,8 +7109,7 @@
{
key: "fromJS",
value: function t(t) {
var r = t.width, n = t.height;
return new e(r, n);
return new e(t.width, t.height);
}
}
]), i(e, [
@ -8517,9 +8516,7 @@
}
}), t)
};
r.url = "responseURL" in u ? u.responseURL : r.headers.get("X-Request-URL");
var n = "response" in u ? u.response : u.responseText;
i(new v(n, r));
r.url = "responseURL" in u ? u.responseURL : r.headers.get("X-Request-URL"), i(new v("response" in u ? u.response : u.responseText, r));
}, u.onerror = function() {
o(TypeError("Network request failed"));
}, u.ontimeout = function() {
@ -15438,13 +15435,13 @@
"string" == typeof e[i] && v(t[i]) && t[i].test(e[i]) || function(e, t, r, n, i, o) {
if (!(r in e) || !a(e[r], t[r])) {
if (!n) {
var u = new k(e, i), l = new k(t, i, e), s = new p({
actual: u,
expected: l,
var u = new p({
actual: new k(e, i),
expected: new k(t, i, e),
operator: "deepStrictEqual",
stackStartFn: o
});
throw s.actual = e, s.expected = t, s.operator = o.name, s;
throw u.actual = e, u.expected = t, u.operator = o.name, u;
}
x({
actual: e,
@ -21872,10 +21869,7 @@
getHighWaterMark: function(e, t, r, i) {
var o = null != t.highWaterMark ? t.highWaterMark : i ? t[r] : null;
if (null != o) {
if (!(isFinite(o) && Math.floor(o) === o) || o < 0) {
var a = i ? r : "highWaterMark";
throw new n(a, o);
}
if (!(isFinite(o) && Math.floor(o) === o) || o < 0) throw new n(i ? r : "highWaterMark", o);
return Math.floor(o);
}
return e.objectMode ? 16 : 16384;

View File

@ -4582,8 +4582,8 @@
}, t.allocateGSInstance = function(e) {
return this.gs[e] = (this.gs[e] || 0) + 1;
}, t.getTag = function() {
var e, t, n, r, o;
return this.tag || (this.tag = (n = (t = this.options).isServer, r = t.useCSSOMInjection, o = t.target, e = n ? new U(o) : r ? new $(o) : new W(o), new T(e)));
var t, n, r, o;
return this.tag || (this.tag = (n = (t = this.options).isServer, r = t.useCSSOMInjection, o = t.target, new T(n ? new U(o) : r ? new $(o) : new W(o))));
}, t.hasNameForId = function(e, t) {
return this.names.has(e) && this.names.get(e).has(t);
}, t.registerName = function(e, t) {

View File

@ -7327,7 +7327,7 @@
}, P1.squareRoot = P1.sqrt = function() {
var m1, n2, r3, rep1, t3, x3 = this, c5 = x3.c, s3 = x3.s, e1 = x3.e, dp1 = DECIMAL_PLACES1 + 4, half1 = new BigNumber1('0.5');
if (1 !== s3 || !c5 || !c5[0]) return new BigNumber1(!s3 || s3 < 0 && (!c5 || c5[0]) ? NaN : c5 ? x3 : 1 / 0);
if (0 == (s3 = Math.sqrt(+valueOf1(x3))) || s3 == 1 / 0 ? (((n2 = coeffToString1(c5)).length + e1) % 2 == 0 && (n2 += '0'), s3 = Math.sqrt(+n2), e1 = bitFloor1((e1 + 1) / 2) - (e1 < 0 || e1 % 2), n2 = s3 == 1 / 0 ? '5e' + e1 : (n2 = s3.toExponential()).slice(0, n2.indexOf('e') + 1) + e1, r3 = new BigNumber1(n2)) : r3 = new BigNumber1(s3 + ''), r3.c[0]) {
if (0 == (s3 = Math.sqrt(+valueOf1(x3))) || s3 == 1 / 0 ? (((n2 = coeffToString1(c5)).length + e1) % 2 == 0 && (n2 += '0'), s3 = Math.sqrt(+n2), e1 = bitFloor1((e1 + 1) / 2) - (e1 < 0 || e1 % 2), r3 = new BigNumber1(n2 = s3 == 1 / 0 ? '5e' + e1 : (n2 = s3.toExponential()).slice(0, n2.indexOf('e') + 1) + e1)) : r3 = new BigNumber1(s3 + ''), r3.c[0]) {
for((s3 = (e1 = r3.e) + dp1) < 3 && (s3 = 0);;)if (t3 = r3, r3 = half1.times(t3.plus(div1(x3, t3, dp1, 1))), coeffToString1(t3.c).slice(0, s3) === (n2 = coeffToString1(r3.c)).slice(0, s3)) {
if (r3.e < e1 && --s3, '9999' != (n2 = n2.slice(s3 - 3, s3 + 1)) && (rep1 || '4999' != n2)) {
+n2 && (+n2.slice(1) || '5' != n2.charAt(0)) || (round1(r3, r3.e + DECIMAL_PLACES1 + 2, 1), m1 = !r3.times(r3).eq(x3));
@ -17305,10 +17305,7 @@
function getHighWaterMark1(e1, t3, r3, i2) {
var a10 = highWaterMarkFrom1(t3, i2, r3);
if (null != a10) {
if (!(isFinite(a10) && Math.floor(a10) === a10) || a10 < 0) {
var o1 = i2 ? r3 : "highWaterMark";
throw new n2(o1, a10);
}
if (!(isFinite(a10) && Math.floor(a10) === a10) || a10 < 0) throw new n2(i2 ? r3 : "highWaterMark", a10);
return Math.floor(a10);
}
return e1.objectMode ? 16 : 16384;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -2527,8 +2527,7 @@
switch(typeof exp){
case "string":
if (cache.hasOwnProperty(exp)) return cache[exp];
var lexer = new Lexer($parseOptions);
return parsedExpression = new Parser(lexer, $filter, $parseOptions).parse(exp, !1), "hasOwnProperty" !== exp && (cache[exp] = parsedExpression), parsedExpression;
return parsedExpression = new Parser(new Lexer($parseOptions), $filter, $parseOptions).parse(exp, !1), "hasOwnProperty" !== exp && (cache[exp] = parsedExpression), parsedExpression;
case "function":
return exp;
default: