@scalant/career-hub 3.13.0-alpha.0 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/career-hub.es.js +1049 -986
- package/dist/career-hub.umd.js +57 -57
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/career-hub.es.js
CHANGED
|
@@ -5075,13 +5075,13 @@ function useStatus(C, $, F, V) {
|
|
|
5075
5075
|
function Ve() {
|
|
5076
5076
|
Ie(STATUS_NONE), Oe(null, !0);
|
|
5077
5077
|
}
|
|
5078
|
-
var Xe = useEvent(function(
|
|
5078
|
+
var Xe = useEvent(function(Je) {
|
|
5079
5079
|
var ct = $e();
|
|
5080
5080
|
if (ct !== STATUS_NONE) {
|
|
5081
5081
|
var dt = je();
|
|
5082
|
-
if (!(
|
|
5082
|
+
if (!(Je && !Je.deadline && Je.target !== dt)) {
|
|
5083
5083
|
var vt = ze.current, ht;
|
|
5084
|
-
ct === STATUS_APPEAR && vt ? ht = ce == null ? void 0 : ce(dt,
|
|
5084
|
+
ct === STATUS_APPEAR && vt ? ht = ce == null ? void 0 : ce(dt, Je) : ct === STATUS_ENTER && vt ? ht = fe == null ? void 0 : fe(dt, Je) : ct === STATUS_LEAVE && vt && (ht = ye == null ? void 0 : ye(dt, Je)), vt && ht !== !1 && Ve();
|
|
5085
5085
|
}
|
|
5086
5086
|
}
|
|
5087
5087
|
}), Ye = useDomMotionEvents(Xe), at = _slicedToArray(Ye, 1), Ue = at[0], Le = function(ct) {
|
|
@@ -5097,8 +5097,8 @@ function useStatus(C, $, F, V) {
|
|
|
5097
5097
|
}
|
|
5098
5098
|
}, Te = React.useMemo(function() {
|
|
5099
5099
|
return Le(we);
|
|
5100
|
-
}, [we]), Pe = useStepQueue(we, !C, function(
|
|
5101
|
-
if (
|
|
5100
|
+
}, [we]), Pe = useStepQueue(we, !C, function(Je) {
|
|
5101
|
+
if (Je === STEP_PREPARE) {
|
|
5102
5102
|
var ct = Te[STEP_PREPARE];
|
|
5103
5103
|
return ct ? ct(je()) : SkipStep;
|
|
5104
5104
|
}
|
|
@@ -5117,10 +5117,10 @@ function useStatus(C, $, F, V) {
|
|
|
5117
5117
|
useIsomorphicLayoutEffect$1(function() {
|
|
5118
5118
|
if (!(Ae.current && rt.current === $)) {
|
|
5119
5119
|
Ee($);
|
|
5120
|
-
var
|
|
5120
|
+
var Je = Ae.current;
|
|
5121
5121
|
Ae.current = !0;
|
|
5122
5122
|
var ct;
|
|
5123
|
-
!
|
|
5123
|
+
!Je && $ && te && (ct = STATUS_APPEAR), Je && $ && J && (ct = STATUS_ENTER), (Je && !$ && re || !Je && oe && !$ && re) && (ct = STATUS_LEAVE);
|
|
5124
5124
|
var dt = Le(ct);
|
|
5125
5125
|
ct && (C || dt[STEP_PREPARE]) ? (Ie(ct), He()) : Ie(STATUS_NONE), rt.current = $;
|
|
5126
5126
|
}
|
|
@@ -5445,7 +5445,7 @@ const setGlobalConfig = (C) => {
|
|
|
5445
5445
|
avatar: rt,
|
|
5446
5446
|
message: lt,
|
|
5447
5447
|
tag: it,
|
|
5448
|
-
table:
|
|
5448
|
+
table: Je,
|
|
5449
5449
|
card: ct,
|
|
5450
5450
|
tabs: dt,
|
|
5451
5451
|
timeline: vt,
|
|
@@ -5533,7 +5533,7 @@ const setGlobalConfig = (C) => {
|
|
|
5533
5533
|
avatar: rt,
|
|
5534
5534
|
message: lt,
|
|
5535
5535
|
tag: it,
|
|
5536
|
-
table:
|
|
5536
|
+
table: Je,
|
|
5537
5537
|
card: ct,
|
|
5538
5538
|
tabs: dt,
|
|
5539
5539
|
timeline: vt,
|
|
@@ -5569,7 +5569,7 @@ const setGlobalConfig = (C) => {
|
|
|
5569
5569
|
}, At.button));
|
|
5570
5570
|
const Ht = useMemo(() => At, At, (qt, sn) => {
|
|
5571
5571
|
const _n = Object.keys(qt), Wt = Object.keys(sn);
|
|
5572
|
-
return _n.length !== Wt.length || _n.some((
|
|
5572
|
+
return _n.length !== Wt.length || _n.some((Jt) => qt[Jt] !== sn[Jt]);
|
|
5573
5573
|
}), {
|
|
5574
5574
|
layer: Gt
|
|
5575
5575
|
} = React.useContext(CssInJsStyleContext), zt = React.useMemo(() => ({
|
|
@@ -5599,7 +5599,7 @@ const setGlobalConfig = (C) => {
|
|
|
5599
5599
|
algorithm: sn,
|
|
5600
5600
|
token: _n,
|
|
5601
5601
|
components: Wt,
|
|
5602
|
-
cssVar:
|
|
5602
|
+
cssVar: Jt
|
|
5603
5603
|
} = qt, dn = __rest$12(qt, ["algorithm", "token", "components", "cssVar"]), ln = sn && (!Array.isArray(sn) || sn.length > 0) ? createTheme(sn) : defaultTheme$1, gn = {};
|
|
5604
5604
|
Object.entries(Wt || {}).forEach((Ot) => {
|
|
5605
5605
|
let [pt, St] = Ot;
|
|
@@ -5614,7 +5614,7 @@ const setGlobalConfig = (C) => {
|
|
|
5614
5614
|
override: Object.assign({
|
|
5615
5615
|
override: mt
|
|
5616
5616
|
}, gn),
|
|
5617
|
-
cssVar:
|
|
5617
|
+
cssVar: Jt
|
|
5618
5618
|
});
|
|
5619
5619
|
}, [Tt]);
|
|
5620
5620
|
return he && (Dt = /* @__PURE__ */ React.createElement(DesignTokenContext.Provider, {
|
|
@@ -7032,8 +7032,8 @@ var KeyCode = {
|
|
|
7032
7032
|
var We, Ke, rt;
|
|
7033
7033
|
Pe.height = xe ? (We = le.current[ze]) === null || We === void 0 ? void 0 : We.offsetHeight : se == null ? void 0 : se.offsetHeight;
|
|
7034
7034
|
for (var lt = 0, it = 0; it < ke; it++) {
|
|
7035
|
-
var
|
|
7036
|
-
lt += ((
|
|
7035
|
+
var Je;
|
|
7036
|
+
lt += ((Je = le.current[fe[fe.length - 1 - it].key]) === null || Je === void 0 ? void 0 : Je.offsetHeight) + _e;
|
|
7037
7037
|
}
|
|
7038
7038
|
var ct = (xe ? lt : ke * Ce) * (V.startsWith("top") ? 1 : -1), dt = !xe && se !== null && se !== void 0 && se.offsetWidth && (Ke = le.current[ze]) !== null && Ke !== void 0 && Ke.offsetWidth ? ((se == null ? void 0 : se.offsetWidth) - Ce * 2 * (ke < 3 ? ke : 3)) / ((rt = le.current[ze]) === null || rt === void 0 ? void 0 : rt.offsetWidth) : 1;
|
|
7039
7039
|
Pe.transform = "translate3d(".concat(He, ", ").concat(ct, "px, 0) scaleX(").concat(dt, ")");
|
|
@@ -10334,7 +10334,7 @@ const ButtonTypeMap = {
|
|
|
10334
10334
|
}), useEffect(() => {
|
|
10335
10335
|
ge && Ke.current && Ke.current.focus();
|
|
10336
10336
|
}, []);
|
|
10337
|
-
const
|
|
10337
|
+
const Je = React__default.useCallback((qe) => {
|
|
10338
10338
|
var ot;
|
|
10339
10339
|
if (Pe || Ue) {
|
|
10340
10340
|
qe.preventDefault();
|
|
@@ -10392,7 +10392,7 @@ const ButtonTypeMap = {
|
|
|
10392
10392
|
}),
|
|
10393
10393
|
href: Ue ? void 0 : wt.href,
|
|
10394
10394
|
style: ut,
|
|
10395
|
-
onClick:
|
|
10395
|
+
onClick: Je,
|
|
10396
10396
|
ref: rt,
|
|
10397
10397
|
tabIndex: Ue ? -1 : 0
|
|
10398
10398
|
}), Ze, nt));
|
|
@@ -10400,7 +10400,7 @@ const ButtonTypeMap = {
|
|
|
10400
10400
|
type: ce,
|
|
10401
10401
|
className: st,
|
|
10402
10402
|
style: ut,
|
|
10403
|
-
onClick:
|
|
10403
|
+
onClick: Je,
|
|
10404
10404
|
disabled: Ue,
|
|
10405
10405
|
ref: rt
|
|
10406
10406
|
}), Ze, nt, dt && /* @__PURE__ */ React__default.createElement(Compact, {
|
|
@@ -15718,7 +15718,7 @@ function defaultRenderRest(C) {
|
|
|
15718
15718
|
function Overflow(C, $) {
|
|
15719
15719
|
var F = C.prefixCls, V = F === void 0 ? "rc-overflow" : F, K = C.data, J = K === void 0 ? [] : K, ee = C.renderItem, te = C.renderRawItem, ne = C.itemKey, re = C.itemWidth, ae = re === void 0 ? 10 : re, oe = C.ssr, ie = C.style, le = C.className, ue = C.maxCount, de = C.renderRest, se = C.renderRawRest, ve = C.suffix, me = C.component, he = me === void 0 ? "div" : me, pe = C.itemComponent, ce = C.onVisibleChange, fe = _objectWithoutProperties(C, _excluded$H), ye = oe === "full", Se = useBatcher(), ge = useEffectState(Se, null), be = _slicedToArray(ge, 2), Ce = be[0], Ee = be[1], _e = Ce || 0, xe = useEffectState(Se, /* @__PURE__ */ new Map()), $e = _slicedToArray(xe, 2), Ie = $e[0], De = $e[1], Ne = useEffectState(Se, 0), Fe = _slicedToArray(Ne, 2), Oe = Fe[0], we = Fe[1], Ae = useEffectState(Se, 0), Me = _slicedToArray(Ae, 2), je = Me[0], ze = Me[1], Ve = useEffectState(Se, 0), Xe = _slicedToArray(Ve, 2), Ye = Xe[0], at = Xe[1], Ue = useState(null), Le = _slicedToArray(Ue, 2), Te = Le[0], Pe = Le[1], ke = useState(null), He = _slicedToArray(ke, 2), We = He[0], Ke = He[1], rt = React.useMemo(function() {
|
|
15720
15720
|
return We === null && ye ? Number.MAX_SAFE_INTEGER : We || 0;
|
|
15721
|
-
}, [We, Ce]), lt = useState(!1), it = _slicedToArray(lt, 2),
|
|
15721
|
+
}, [We, Ce]), lt = useState(!1), it = _slicedToArray(lt, 2), Je = it[0], ct = it[1], dt = "".concat(V, "-item"), vt = Math.max(Oe, je), ht = ue === RESPONSIVE, bt = J.length && ht, Rt = ue === INVALIDATE, wt = bt || typeof ue == "number" && J.length > ue, st = useMemo$1(function() {
|
|
15722
15722
|
var Tt = J;
|
|
15723
15723
|
return bt ? Ce === null && ye ? Tt = J : Tt = J.slice(0, Math.min(J.length, _e / ae)) : typeof ue == "number" && (Tt = J.slice(0, ue)), Tt;
|
|
15724
15724
|
}, [J, ae, Ce, ue, bt]), ut = useMemo$1(function() {
|
|
@@ -15776,7 +15776,7 @@ function Overflow(C, $) {
|
|
|
15776
15776
|
ve && ft(0) + Ye > _e && Pe(null);
|
|
15777
15777
|
}
|
|
15778
15778
|
}, [_e, Ie, je, Ye, Ge, st]);
|
|
15779
|
-
var yt =
|
|
15779
|
+
var yt = Je && !!ut.length, $t = {};
|
|
15780
15780
|
Te !== null && bt && ($t = {
|
|
15781
15781
|
position: "absolute",
|
|
15782
15782
|
left: Te,
|
|
@@ -15925,11 +15925,11 @@ var onPreventMouseDown = function($) {
|
|
|
15925
15925
|
customizeIcon: ve
|
|
15926
15926
|
}, "×"));
|
|
15927
15927
|
}, at = function(He, We, Ke, rt, lt, it) {
|
|
15928
|
-
var
|
|
15928
|
+
var Je = function(dt) {
|
|
15929
15929
|
onPreventMouseDown(dt), ye(!J);
|
|
15930
15930
|
};
|
|
15931
15931
|
return /* @__PURE__ */ React.createElement("span", {
|
|
15932
|
-
onMouseDown:
|
|
15932
|
+
onMouseDown: Je
|
|
15933
15933
|
}, fe({
|
|
15934
15934
|
label: We,
|
|
15935
15935
|
value: He,
|
|
@@ -15941,8 +15941,8 @@ var onPreventMouseDown = function($) {
|
|
|
15941
15941
|
}, Ue = function(He) {
|
|
15942
15942
|
var We = He.disabled, Ke = He.label, rt = He.value, lt = !ae && !We, it = Ke;
|
|
15943
15943
|
if (typeof he == "number" && (typeof Ke == "string" || typeof Ke == "number")) {
|
|
15944
|
-
var
|
|
15945
|
-
|
|
15944
|
+
var Je = String(it);
|
|
15945
|
+
Je.length > he && (it = "".concat(Je.slice(0, he), "..."));
|
|
15946
15946
|
}
|
|
15947
15947
|
var ct = function(vt) {
|
|
15948
15948
|
vt && vt.stopPropagation(), Se(He);
|
|
@@ -16206,10 +16206,10 @@ var Popup$1 = /* @__PURE__ */ React.forwardRef(function(C, $) {
|
|
|
16206
16206
|
se == null || (lt = se.onVisibleChanged) === null || lt === void 0 || lt.call(se, rt), te(rt);
|
|
16207
16207
|
}
|
|
16208
16208
|
}), function(Ke, rt) {
|
|
16209
|
-
var lt = Ke.className, it = Ke.style,
|
|
16209
|
+
var lt = Ke.className, it = Ke.style, Je = classNames(K, lt, V);
|
|
16210
16210
|
return /* @__PURE__ */ React.createElement("div", {
|
|
16211
16211
|
ref: composeRef(We, $, rt),
|
|
16212
|
-
className:
|
|
16212
|
+
className: Je,
|
|
16213
16213
|
style: _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
16214
16214
|
"--arrow-x": "".concat(ue.x || 0, "px"),
|
|
16215
16215
|
"--arrow-y": "".concat(ue.y || 0, "px")
|
|
@@ -16356,7 +16356,7 @@ function useAlign(C, $, F, V, K, J, ee) {
|
|
|
16356
16356
|
var de = useEvent(function() {
|
|
16357
16357
|
if ($ && F && C) {
|
|
16358
16358
|
let zn = function(ur, Yn) {
|
|
16359
|
-
var
|
|
16359
|
+
var Jn = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : vt, dr = je.x + ur, mr = je.y + Yn, jr = dr + Pe, Tr = mr + Te, Pr = Math.max(dr, Jn.left), fn = Math.max(mr, Jn.top), Rn = Math.min(jr, Jn.right), Vn = Math.min(Tr, Jn.bottom);
|
|
16360
16360
|
return Math.max(0, (Rn - Pr) * (Vn - fn));
|
|
16361
16361
|
}, Gn = function() {
|
|
16362
16362
|
ln = je.y + At, gn = ln + Te, mt = je.x + _t, Ot = mt + Pe;
|
|
@@ -16394,7 +16394,7 @@ function useAlign(C, $, F, V, K, J, ee) {
|
|
|
16394
16394
|
bottom: at - Ue
|
|
16395
16395
|
}, rt = Ne.htmlRegion, lt = "visible", it = "visibleFirst";
|
|
16396
16396
|
rt !== "scroll" && rt !== it && (rt = lt);
|
|
16397
|
-
var
|
|
16397
|
+
var Je = rt === it, ct = getVisibleArea(Ke, ie), dt = getVisibleArea(We, ie), vt = rt === lt ? dt : ct, ht = Je ? dt : vt;
|
|
16398
16398
|
fe.style.left = "auto", fe.style.top = "auto", fe.style.right = "0", fe.style.bottom = "0";
|
|
16399
16399
|
var bt = fe.getBoundingClientRect();
|
|
16400
16400
|
fe.style.left = _e, fe.style.top = xe, fe.style.right = $e, fe.style.bottom = Ie, fe.style.overflow = De, (ce = fe.parentElement) === null || ce === void 0 || ce.removeChild(Fe);
|
|
@@ -16403,7 +16403,7 @@ function useAlign(C, $, F, V, K, J, ee) {
|
|
|
16403
16403
|
return;
|
|
16404
16404
|
var st = Ne.offset, ut = Ne.targetOffset, Ge = getNumberOffset(je, st), et = _slicedToArray(Ge, 2), Ze = et[0], nt = et[1], tt = getNumberOffset(Oe, ut), qe = _slicedToArray(tt, 2), ot = qe[0], ft = qe[1];
|
|
16405
16405
|
Oe.x -= ot, Oe.y -= ft;
|
|
16406
|
-
var yt = Ne.points || [], $t = _slicedToArray(yt, 2), Mt = $t[0], Ft = $t[1], Ct = splitPoints(Ft), Bt = splitPoints(Mt), It = getAlignPoint(Oe, Ct), Pt = getAlignPoint(je, Bt), Tt = _objectSpread2({}, Ne), _t = It.x - Pt.x + Ze, At = It.y - Pt.y + nt, Ht = zn(_t, At), Gt = zn(_t, At, dt), zt = getAlignPoint(Oe, ["t", "l"]), Dt = getAlignPoint(je, ["t", "l"]), Vt = getAlignPoint(Oe, ["b", "r"]), Kt = getAlignPoint(je, ["b", "r"]), qt = Ne.overflow || {}, sn = qt.adjustX, _n = qt.adjustY, Wt = qt.shiftX,
|
|
16406
|
+
var yt = Ne.points || [], $t = _slicedToArray(yt, 2), Mt = $t[0], Ft = $t[1], Ct = splitPoints(Ft), Bt = splitPoints(Mt), It = getAlignPoint(Oe, Ct), Pt = getAlignPoint(je, Bt), Tt = _objectSpread2({}, Ne), _t = It.x - Pt.x + Ze, At = It.y - Pt.y + nt, Ht = zn(_t, At), Gt = zn(_t, At, dt), zt = getAlignPoint(Oe, ["t", "l"]), Dt = getAlignPoint(je, ["t", "l"]), Vt = getAlignPoint(Oe, ["b", "r"]), Kt = getAlignPoint(je, ["b", "r"]), qt = Ne.overflow || {}, sn = qt.adjustX, _n = qt.adjustY, Wt = qt.shiftX, Jt = qt.shiftY, dn = function(Yn) {
|
|
16407
16407
|
return typeof Yn == "boolean" ? Yn : Yn >= 0;
|
|
16408
16408
|
}, ln, gn, mt, Ot;
|
|
16409
16409
|
Gn();
|
|
@@ -16413,7 +16413,7 @@ function useAlign(C, $, F, V, K, J, ee) {
|
|
|
16413
16413
|
St ? Et -= Te - ke : Et = zt.y - Kt.y - nt;
|
|
16414
16414
|
var Nt = zn(_t, Et), kt = zn(_t, Et, dt);
|
|
16415
16415
|
// Of course use larger one
|
|
16416
|
-
Nt > Ht || Nt === Ht && (!
|
|
16416
|
+
Nt > Ht || Nt === Ht && (!Je || // Choose recommend one
|
|
16417
16417
|
kt >= Gt) ? (le.current.bt = !0, At = Et, nt = -nt, Tt.points = [reversePoints(Bt, 0), reversePoints(Ct, 0)]) : le.current.bt = !1;
|
|
16418
16418
|
}
|
|
16419
16419
|
if (pt && Bt[0] === "b" && (ln < ht.top || le.current.tb)) {
|
|
@@ -16421,30 +16421,30 @@ function useAlign(C, $, F, V, K, J, ee) {
|
|
|
16421
16421
|
St ? Lt += Te - ke : Lt = Vt.y - Dt.y - nt;
|
|
16422
16422
|
var Xt = zn(_t, Lt), vn = zn(_t, Lt, dt);
|
|
16423
16423
|
// Of course use larger one
|
|
16424
|
-
Xt > Ht || Xt === Ht && (!
|
|
16424
|
+
Xt > Ht || Xt === Ht && (!Je || // Choose recommend one
|
|
16425
16425
|
vn >= Gt) ? (le.current.tb = !0, At = Lt, nt = -nt, Tt.points = [reversePoints(Bt, 0), reversePoints(Ct, 0)]) : le.current.tb = !1;
|
|
16426
16426
|
}
|
|
16427
16427
|
var bn = dn(sn), Sn = Bt[1] === Ct[1];
|
|
16428
16428
|
if (bn && Bt[1] === "l" && (Ot > ht.right || le.current.rl)) {
|
|
16429
16429
|
var Nn = _t;
|
|
16430
16430
|
Sn ? Nn -= Pe - He : Nn = zt.x - Kt.x - Ze;
|
|
16431
|
-
var Tn = zn(Nn, At),
|
|
16431
|
+
var Tn = zn(Nn, At), Qt = zn(Nn, At, dt);
|
|
16432
16432
|
// Of course use larger one
|
|
16433
|
-
Tn > Ht || Tn === Ht && (!
|
|
16434
|
-
|
|
16433
|
+
Tn > Ht || Tn === Ht && (!Je || // Choose recommend one
|
|
16434
|
+
Qt >= Gt) ? (le.current.rl = !0, _t = Nn, Ze = -Ze, Tt.points = [reversePoints(Bt, 1), reversePoints(Ct, 1)]) : le.current.rl = !1;
|
|
16435
16435
|
}
|
|
16436
16436
|
if (bn && Bt[1] === "r" && (mt < ht.left || le.current.lr)) {
|
|
16437
16437
|
var Yt = _t;
|
|
16438
16438
|
Sn ? Yt += Pe - He : Yt = Vt.x - Dt.x - Ze;
|
|
16439
16439
|
var wn = zn(Yt, At), Dn = zn(Yt, At, dt);
|
|
16440
16440
|
// Of course use larger one
|
|
16441
|
-
wn > Ht || wn === Ht && (!
|
|
16441
|
+
wn > Ht || wn === Ht && (!Je || // Choose recommend one
|
|
16442
16442
|
Dn >= Gt) ? (le.current.lr = !0, _t = Yt, Ze = -Ze, Tt.points = [reversePoints(Bt, 1), reversePoints(Ct, 1)]) : le.current.lr = !1;
|
|
16443
16443
|
}
|
|
16444
16444
|
Gn();
|
|
16445
16445
|
var Ln = Wt === !0 ? 0 : Wt;
|
|
16446
16446
|
typeof Ln == "number" && (mt < dt.left && (_t -= mt - dt.left - Ze, Oe.x + He < dt.left + Ln && (_t += Oe.x - dt.left + He - Ln)), Ot > dt.right && (_t -= Ot - dt.right - Ze, Oe.x > dt.right - Ln && (_t += Oe.x - dt.right + Ln)));
|
|
16447
|
-
var Hn =
|
|
16447
|
+
var Hn = Jt === !0 ? 0 : Jt;
|
|
16448
16448
|
typeof Hn == "number" && (ln < dt.top && (At -= ln - dt.top - nt, Oe.y + ke < dt.top + Hn && (At += Oe.y - dt.top + ke - Hn)), gn > dt.bottom && (At -= gn - dt.bottom - nt, Oe.y > dt.bottom - Hn && (At += Oe.y - dt.bottom + Hn)));
|
|
16449
16449
|
var er = je.x + _t, Wn = er + Pe, Pn = je.y + At, tr = Pn + Te, or = Oe.x, En = or + He, Zt = Oe.y, Cn = Zt + ke, $n = Math.max(er, or), On = Math.min(Wn, En), An = ($n + On) / 2, Kn = An - er, Xn = Math.max(Pn, Zt), rr = Math.min(tr, Cn), ir = (Xn + rr) / 2, sr = ir - Pn;
|
|
16450
16450
|
ee == null || ee($, Tt);
|
|
@@ -16537,14 +16537,14 @@ function generateTrigger() {
|
|
|
16537
16537
|
useLayoutEffect$1(function() {
|
|
16538
16538
|
lt(isMobile());
|
|
16539
16539
|
}, []);
|
|
16540
|
-
var it = React.useRef({}),
|
|
16540
|
+
var it = React.useRef({}), Je = React.useContext(TriggerContext), ct = React.useMemo(function() {
|
|
16541
16541
|
return {
|
|
16542
16542
|
registerSubPopup: function(Rn, Vn) {
|
|
16543
|
-
it.current[Rn] = Vn,
|
|
16543
|
+
it.current[Rn] = Vn, Je == null || Je.registerSubPopup(Rn, Vn);
|
|
16544
16544
|
}
|
|
16545
16545
|
};
|
|
16546
|
-
}, [
|
|
16547
|
-
wt.current = fn, isDOM(fn) && bt !== fn && Rt(fn),
|
|
16546
|
+
}, [Je]), dt = useId$2(), vt = React.useState(null), ht = _slicedToArray(vt, 2), bt = ht[0], Rt = ht[1], wt = React.useRef(null), st = useEvent(function(fn) {
|
|
16547
|
+
wt.current = fn, isDOM(fn) && bt !== fn && Rt(fn), Je == null || Je.registerSubPopup(dt, fn);
|
|
16548
16548
|
}), ut = React.useState(null), Ge = _slicedToArray(ut, 2), et = Ge[0], Ze = Ge[1], nt = React.useRef(null), tt = useEvent(function(fn) {
|
|
16549
16549
|
isDOM(fn) && et !== fn && (Ze(fn), nt.current = fn);
|
|
16550
16550
|
}), qe = React.Children.only(ee), ot = (qe == null ? void 0 : qe.props) || {}, ft = {}, yt = useEvent(function(fn) {
|
|
@@ -16580,9 +16580,9 @@ function generateTrigger() {
|
|
|
16580
16580
|
useLayoutEffect$1(function(fn) {
|
|
16581
16581
|
(!fn || Pt) && sn(!0);
|
|
16582
16582
|
}, [Pt]);
|
|
16583
|
-
var _n = React.useState(null), Wt = _slicedToArray(_n, 2),
|
|
16583
|
+
var _n = React.useState(null), Wt = _slicedToArray(_n, 2), Jt = Wt[0], dn = Wt[1], ln = React.useState(null), gn = _slicedToArray(ln, 2), mt = gn[0], Ot = gn[1], pt = function(Rn) {
|
|
16584
16584
|
Ot([Rn.clientX, Rn.clientY]);
|
|
16585
|
-
}, St = useAlign(Pt, bt, Ae && mt !== null ? mt : et, xe, Ie, De, je), Et = _slicedToArray(St, 11), Nt = Et[0], kt = Et[1], Lt = Et[2], Xt = Et[3], vn = Et[4], bn = Et[5], Sn = Et[6], Nn = Et[7], Tn = Et[8],
|
|
16585
|
+
}, St = useAlign(Pt, bt, Ae && mt !== null ? mt : et, xe, Ie, De, je), Et = _slicedToArray(St, 11), Nt = Et[0], kt = Et[1], Lt = Et[2], Xt = Et[3], vn = Et[4], bn = Et[5], Sn = Et[6], Nn = Et[7], Tn = Et[8], Qt = Et[9], Yt = Et[10], wn = useAction(rt, ne, re, ae), Dn = _slicedToArray(wn, 2), Ln = Dn[0], Hn = Dn[1], er = Ln.has("click"), Wn = Hn.has("click") || Hn.has("contextMenu"), Pn = useEvent(function() {
|
|
16586
16586
|
qt || Yt();
|
|
16587
16587
|
}), tr = function() {
|
|
16588
16588
|
_t.current && Ae && Wn && Dt(!1);
|
|
@@ -16593,9 +16593,9 @@ function generateTrigger() {
|
|
|
16593
16593
|
Pt && !(Ie != null && Ie[xe]) && Pn();
|
|
16594
16594
|
}, [JSON.stringify(De)]);
|
|
16595
16595
|
var or = React.useMemo(function() {
|
|
16596
|
-
var fn = getAlignPopupClassName(Ie, J,
|
|
16597
|
-
return classNames(fn, Oe == null ? void 0 : Oe(
|
|
16598
|
-
}, [
|
|
16596
|
+
var fn = getAlignPopupClassName(Ie, J, Qt, Ae);
|
|
16597
|
+
return classNames(fn, Oe == null ? void 0 : Oe(Qt));
|
|
16598
|
+
}, [Qt, Oe, Ie, J, Ae]);
|
|
16599
16599
|
React.useImperativeHandle(V, function() {
|
|
16600
16600
|
return {
|
|
16601
16601
|
nativeElement: nt.current,
|
|
@@ -16620,8 +16620,8 @@ function generateTrigger() {
|
|
|
16620
16620
|
});
|
|
16621
16621
|
};
|
|
16622
16622
|
useLayoutEffect$1(function() {
|
|
16623
|
-
|
|
16624
|
-
}, [
|
|
16623
|
+
Jt && (Yt(), Jt(), dn(null));
|
|
16624
|
+
}, [Jt]);
|
|
16625
16625
|
function yn(fn, Rn, Vn, nr) {
|
|
16626
16626
|
ft[fn] = function(qn) {
|
|
16627
16627
|
var fr;
|
|
@@ -16657,15 +16657,15 @@ function generateTrigger() {
|
|
|
16657
16657
|
nr[qn - 1] = arguments[qn];
|
|
16658
16658
|
(Rn = ot.onContextMenu) === null || Rn === void 0 || Rn.call.apply(Rn, [ot, fn].concat(nr));
|
|
16659
16659
|
}), Te && (ft.className = classNames(ot.className, Te));
|
|
16660
|
-
var
|
|
16660
|
+
var Jn = _objectSpread2(_objectSpread2({}, ot), ft), dr = {}, mr = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
|
|
16661
16661
|
mr.forEach(function(fn) {
|
|
16662
16662
|
ke[fn] && (dr[fn] = function() {
|
|
16663
16663
|
for (var Rn, Vn = arguments.length, nr = new Array(Vn), qn = 0; qn < Vn; qn++)
|
|
16664
16664
|
nr[qn] = arguments[qn];
|
|
16665
|
-
(Rn =
|
|
16665
|
+
(Rn = Jn[fn]) === null || Rn === void 0 || Rn.call.apply(Rn, [Jn].concat(nr)), ke[fn].apply(ke, nr);
|
|
16666
16666
|
});
|
|
16667
16667
|
});
|
|
16668
|
-
var jr = /* @__PURE__ */ React.cloneElement(qe, _objectSpread2(_objectSpread2({},
|
|
16668
|
+
var jr = /* @__PURE__ */ React.cloneElement(qe, _objectSpread2(_objectSpread2({}, Jn), dr)), Tr = {
|
|
16669
16669
|
x: bn,
|
|
16670
16670
|
y: Sn
|
|
16671
16671
|
}, Pr = ze ? _objectSpread2({}, ze !== !0 ? ze : {}) : null;
|
|
@@ -16702,7 +16702,7 @@ function generateTrigger() {
|
|
|
16702
16702
|
forceRender: Se,
|
|
16703
16703
|
autoDestroy: He,
|
|
16704
16704
|
getPopupContainer: ye,
|
|
16705
|
-
align:
|
|
16705
|
+
align: Qt,
|
|
16706
16706
|
arrow: Pr,
|
|
16707
16707
|
arrowPos: Tr,
|
|
16708
16708
|
ready: Nt,
|
|
@@ -16888,11 +16888,11 @@ function Polite(C) {
|
|
|
16888
16888
|
var _excluded$D = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction", "omitDomProps", "displayValues", "onDisplayValuesChange", "emptyOptions", "notFoundContent", "onClear", "mode", "disabled", "loading", "getInputElement", "getRawInputElement", "open", "defaultOpen", "onDropdownVisibleChange", "activeValue", "onActiveValueChange", "activeDescendantId", "searchValue", "autoClearSearchValue", "onSearch", "onSearchSplit", "tokenSeparators", "allowClear", "prefix", "suffixIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "builtinPlacements", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"], DEFAULT_OMIT_PROPS = ["value", "onChange", "removeIcon", "placeholder", "autoFocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex"], isMultiple = function($) {
|
|
16889
16889
|
return $ === "tags" || $ === "multiple";
|
|
16890
16890
|
}, BaseSelect = /* @__PURE__ */ React.forwardRef(function(C, $) {
|
|
16891
|
-
var F, V = C.id, K = C.prefixCls, J = C.className, ee = C.showSearch, te = C.tagRender, ne = C.direction, re = C.omitDomProps, ae = C.displayValues, oe = C.onDisplayValuesChange, ie = C.emptyOptions, le = C.notFoundContent, ue = le === void 0 ? "Not Found" : le, de = C.onClear, se = C.mode, ve = C.disabled, me = C.loading, he = C.getInputElement, pe = C.getRawInputElement, ce = C.open, fe = C.defaultOpen, ye = C.onDropdownVisibleChange, Se = C.activeValue, ge = C.onActiveValueChange, be = C.activeDescendantId, Ce = C.searchValue, Ee = C.autoClearSearchValue, _e = C.onSearch, xe = C.onSearchSplit, $e = C.tokenSeparators, Ie = C.allowClear, De = C.prefix, Ne = C.suffixIcon, Fe = C.clearIcon, Oe = C.OptionList, we = C.animation, Ae = C.transitionName, Me = C.dropdownStyle, je = C.dropdownClassName, ze = C.dropdownMatchSelectWidth, Ve = C.dropdownRender, Xe = C.dropdownAlign, Ye = C.placement, at = C.builtinPlacements, Ue = C.getPopupContainer, Le = C.showAction, Te = Le === void 0 ? [] : Le, Pe = C.onFocus, ke = C.onBlur, He = C.onKeyUp, We = C.onKeyDown, Ke = C.onMouseDown, rt = _objectWithoutProperties(C, _excluded$D), lt = isMultiple(se), it = (ee !== void 0 ? ee : lt) || se === "combobox",
|
|
16891
|
+
var F, V = C.id, K = C.prefixCls, J = C.className, ee = C.showSearch, te = C.tagRender, ne = C.direction, re = C.omitDomProps, ae = C.displayValues, oe = C.onDisplayValuesChange, ie = C.emptyOptions, le = C.notFoundContent, ue = le === void 0 ? "Not Found" : le, de = C.onClear, se = C.mode, ve = C.disabled, me = C.loading, he = C.getInputElement, pe = C.getRawInputElement, ce = C.open, fe = C.defaultOpen, ye = C.onDropdownVisibleChange, Se = C.activeValue, ge = C.onActiveValueChange, be = C.activeDescendantId, Ce = C.searchValue, Ee = C.autoClearSearchValue, _e = C.onSearch, xe = C.onSearchSplit, $e = C.tokenSeparators, Ie = C.allowClear, De = C.prefix, Ne = C.suffixIcon, Fe = C.clearIcon, Oe = C.OptionList, we = C.animation, Ae = C.transitionName, Me = C.dropdownStyle, je = C.dropdownClassName, ze = C.dropdownMatchSelectWidth, Ve = C.dropdownRender, Xe = C.dropdownAlign, Ye = C.placement, at = C.builtinPlacements, Ue = C.getPopupContainer, Le = C.showAction, Te = Le === void 0 ? [] : Le, Pe = C.onFocus, ke = C.onBlur, He = C.onKeyUp, We = C.onKeyDown, Ke = C.onMouseDown, rt = _objectWithoutProperties(C, _excluded$D), lt = isMultiple(se), it = (ee !== void 0 ? ee : lt) || se === "combobox", Je = _objectSpread2({}, rt);
|
|
16892
16892
|
DEFAULT_OMIT_PROPS.forEach(function(En) {
|
|
16893
|
-
delete
|
|
16893
|
+
delete Je[En];
|
|
16894
16894
|
}), re == null || re.forEach(function(En) {
|
|
16895
|
-
delete
|
|
16895
|
+
delete Je[En];
|
|
16896
16896
|
});
|
|
16897
16897
|
var ct = React.useState(!1), dt = _slicedToArray(ct, 2), vt = dt[0], ht = dt[1];
|
|
16898
16898
|
React.useEffect(function() {
|
|
@@ -16954,7 +16954,7 @@ var _excluded$D = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
|
|
|
16954
16954
|
}, [At]), React.useEffect(function() {
|
|
16955
16955
|
Tt && ve && _t(!1), ve && !Ge.current && tt(!1);
|
|
16956
16956
|
}, [ve]);
|
|
16957
|
-
var Wt = useLock(),
|
|
16957
|
+
var Wt = useLock(), Jt = _slicedToArray(Wt, 2), dn = Jt[0], ln = Jt[1], gn = React.useRef(!1), mt = function(Zt) {
|
|
16958
16958
|
var Cn = dn(), $n = Zt.key, On = $n === "Enter";
|
|
16959
16959
|
if (On && (se !== "combobox" && Zt.preventDefault(), At || zt(!0)), ln(!!ot), $n === "Backspace" && !Cn && lt && !ot && ae.length) {
|
|
16960
16960
|
for (var An = _toConsumableArray(ae), Kn = null, Xn = An.length - 1; Xn >= 0; Xn -= 1) {
|
|
@@ -17038,7 +17038,7 @@ var _excluded$D = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
|
|
|
17038
17038
|
var En;
|
|
17039
17039
|
return [bt.current, (En = wt.current) === null || En === void 0 ? void 0 : En.getPopupElement()];
|
|
17040
17040
|
}, Gt, zt, !!yt);
|
|
17041
|
-
var
|
|
17041
|
+
var Qt = React.useMemo(function() {
|
|
17042
17042
|
return _objectSpread2(_objectSpread2({}, C), {}, {
|
|
17043
17043
|
notFoundContent: ue,
|
|
17044
17044
|
open: At,
|
|
@@ -17123,7 +17123,7 @@ var _excluded$D = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
|
|
|
17123
17123
|
}))), or;
|
|
17124
17124
|
return yt ? or = tr : or = /* @__PURE__ */ React.createElement("div", _extends({
|
|
17125
17125
|
className: Pn
|
|
17126
|
-
},
|
|
17126
|
+
}, Je, {
|
|
17127
17127
|
ref: bt,
|
|
17128
17128
|
onMouseDown: Xt,
|
|
17129
17129
|
onKeyDown: mt,
|
|
@@ -17134,7 +17134,7 @@ var _excluded$D = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
|
|
|
17134
17134
|
visible: nt && !At,
|
|
17135
17135
|
values: ae
|
|
17136
17136
|
}), tr, wn, Hn && er), /* @__PURE__ */ React.createElement(BaseSelectContext.Provider, {
|
|
17137
|
-
value:
|
|
17137
|
+
value: Qt
|
|
17138
17138
|
}, or);
|
|
17139
17139
|
});
|
|
17140
17140
|
process.env.NODE_ENV !== "production" && (BaseSelect.displayName = "BaseSelect");
|
|
@@ -17571,9 +17571,9 @@ var ScrollBar = /* @__PURE__ */ React.forwardRef(function(C, $) {
|
|
|
17571
17571
|
var Le, Te = function(He) {
|
|
17572
17572
|
var We = je.current, Ke = We.dragging, rt = We.pageY, lt = We.startTop;
|
|
17573
17573
|
wrapperRaf.cancel(Le);
|
|
17574
|
-
var it = Ee.current.getBoundingClientRect(),
|
|
17574
|
+
var it = Ee.current.getBoundingClientRect(), Je = oe / (re ? it.width : it.height);
|
|
17575
17575
|
if (Ke) {
|
|
17576
|
-
var ct = (getPageXY(He, re) - rt) *
|
|
17576
|
+
var ct = (getPageXY(He, re) - rt) * Je, dt = lt;
|
|
17577
17577
|
!Ce && re ? dt -= ct : dt += ct;
|
|
17578
17578
|
var vt = Ve.current, ht = Xe.current, bt = ht ? dt / ht : 0, Rt = Math.ceil(bt * vt);
|
|
17579
17579
|
Rt = Math.max(Rt, 0), Rt = Math.min(Rt, vt), Le = wrapperRaf(function() {
|
|
@@ -17648,7 +17648,7 @@ function RawList(C, $) {
|
|
|
17648
17648
|
rt(!0);
|
|
17649
17649
|
}, it = function() {
|
|
17650
17650
|
rt(!1);
|
|
17651
|
-
},
|
|
17651
|
+
}, Je = {
|
|
17652
17652
|
getKey: Ce
|
|
17653
17653
|
};
|
|
17654
17654
|
function ct(Et) {
|
|
@@ -17682,8 +17682,8 @@ function RawList(C, $) {
|
|
|
17682
17682
|
};
|
|
17683
17683
|
}
|
|
17684
17684
|
for (var Nt = 0, kt, Lt, Xt, vn = Me.length, bn = 0; bn < vn; bn += 1) {
|
|
17685
|
-
var Sn = Me[bn], Nn = Ce(Sn), Tn = Ie.get(Nn),
|
|
17686
|
-
|
|
17685
|
+
var Sn = Me[bn], Nn = Ce(Sn), Tn = Ie.get(Nn), Qt = Nt + (Tn === void 0 ? ee : Tn);
|
|
17686
|
+
Qt >= at && kt === void 0 && (kt = bn, Lt = Nt), Qt > at + J && Xt === void 0 && (Xt = bn), Nt = Qt;
|
|
17687
17687
|
}
|
|
17688
17688
|
return kt === void 0 && (kt = 0, Lt = 0, Xt = Math.ceil(J / ee)), Xt === void 0 && (Xt = Me.length - 1), Xt = Math.min(Xt + 1, Me.length - 1), {
|
|
17689
17689
|
scrollHeight: Nt,
|
|
@@ -17760,7 +17760,7 @@ function RawList(C, $) {
|
|
|
17760
17760
|
var Lt = kt + Et;
|
|
17761
17761
|
return Lt;
|
|
17762
17762
|
});
|
|
17763
|
-
}), sn = useFrameWheel(Ne, It, Pt, Tt, _t, !!de, qt), _n = _slicedToArray(sn, 2), Wt = _n[0],
|
|
17763
|
+
}), sn = useFrameWheel(Ne, It, Pt, Tt, _t, !!de, qt), _n = _slicedToArray(sn, 2), Wt = _n[0], Jt = _n[1];
|
|
17764
17764
|
useMobileTouchMove(Ne, je, function(Et, Nt, kt, Lt) {
|
|
17765
17765
|
var Xt = Lt;
|
|
17766
17766
|
return At(Et, Nt, kt) ? !1 : !Xt || !Xt._virtualHandled ? (Xt && (Xt._virtualHandled = !0), Wt({
|
|
@@ -17781,12 +17781,12 @@ function RawList(C, $) {
|
|
|
17781
17781
|
var Nt = je.current;
|
|
17782
17782
|
return Nt.addEventListener("wheel", Wt, {
|
|
17783
17783
|
passive: !1
|
|
17784
|
-
}), Nt.addEventListener("DOMMouseScroll",
|
|
17784
|
+
}), Nt.addEventListener("DOMMouseScroll", Jt, {
|
|
17785
17785
|
passive: !0
|
|
17786
17786
|
}), Nt.addEventListener("MozMousePixelScroll", Et, {
|
|
17787
17787
|
passive: !1
|
|
17788
17788
|
}), function() {
|
|
17789
|
-
Nt.removeEventListener("wheel", Wt), Nt.removeEventListener("DOMMouseScroll",
|
|
17789
|
+
Nt.removeEventListener("wheel", Wt), Nt.removeEventListener("DOMMouseScroll", Jt), Nt.removeEventListener("MozMousePixelScroll", Et);
|
|
17790
17790
|
};
|
|
17791
17791
|
}, [Ne, It, Pt]), useLayoutEffect$1(function() {
|
|
17792
17792
|
if (de) {
|
|
@@ -17827,7 +17827,7 @@ function RawList(C, $) {
|
|
|
17827
17827
|
offsetY: et,
|
|
17828
17828
|
rtl: we,
|
|
17829
17829
|
getSize: gn
|
|
17830
|
-
}), Ot = useChildren$1(Me, ut, Ge, de, Pe, xe, oe,
|
|
17830
|
+
}), Ot = useChildren$1(Me, ut, Ge, de, Pe, xe, oe, Je), pt = null;
|
|
17831
17831
|
J && (pt = _objectSpread2(_defineProperty({}, ne ? "height" : "maxHeight", J), ScrollStyle), Ne && (pt.overflowY = "hidden", de && (pt.overflowX = "hidden"), Ke && (pt.pointerEvents = "none")));
|
|
17832
17832
|
var St = {};
|
|
17833
17833
|
return we && (St.dir = "rtl"), /* @__PURE__ */ React.createElement("div", _extends({
|
|
@@ -18055,9 +18055,9 @@ var OptionList = function($, F) {
|
|
|
18055
18055
|
title: it
|
|
18056
18056
|
}, We !== void 0 ? We : rt);
|
|
18057
18057
|
}
|
|
18058
|
-
var
|
|
18058
|
+
var Je = He.disabled, ct = He.title;
|
|
18059
18059
|
He.children;
|
|
18060
|
-
var dt = He.style, vt = He.className, ht = _objectWithoutProperties(He, _excluded$B), bt = omit(ht, Ve), Rt = De(Ke), wt =
|
|
18060
|
+
var dt = He.style, vt = He.className, ht = _objectWithoutProperties(He, _excluded$B), bt = omit(ht, Ve), Rt = De(Ke), wt = Je || !Rt && xe, st = "".concat(Ce, "-option"), ut = classNames(Ce, st, vt, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(st, "-grouped"), ke), "".concat(st, "-active"), we === Te && !wt), "".concat(st, "-disabled"), wt), "".concat(st, "-selected"), Rt)), Ge = Xe(Le), et = !he || typeof he == "function" || Rt, Ze = typeof Ge == "number" ? Ge : Ge || Ke, nt = isTitleType(Ze) ? Ze.toString() : void 0;
|
|
18061
18061
|
return ct !== void 0 && (nt = ct), /* @__PURE__ */ React.createElement("div", _extends({}, pickAttrs(bt), fe ? {} : Ye(Le, Te), {
|
|
18062
18062
|
"aria-selected": je(Ke),
|
|
18063
18063
|
className: ut,
|
|
@@ -18281,8 +18281,8 @@ var Select$2 = /* @__PURE__ */ React.forwardRef(function(C, $) {
|
|
|
18281
18281
|
if (isRawValue(Vt))
|
|
18282
18282
|
Kt = Vt;
|
|
18283
18283
|
else {
|
|
18284
|
-
var
|
|
18285
|
-
sn = Vt.key, qt = Vt.label, Kt = (
|
|
18284
|
+
var Jt;
|
|
18285
|
+
sn = Vt.key, qt = Vt.label, Kt = (Jt = Vt.value) !== null && Jt !== void 0 ? Jt : sn;
|
|
18286
18286
|
}
|
|
18287
18287
|
var dn = Pe.get(Kt);
|
|
18288
18288
|
if (dn) {
|
|
@@ -18302,10 +18302,10 @@ var Select$2 = /* @__PURE__ */ React.forwardRef(function(C, $) {
|
|
|
18302
18302
|
});
|
|
18303
18303
|
}, [Xe, pe, Pe]), Ke = useMergedState(Ne, {
|
|
18304
18304
|
value: De
|
|
18305
|
-
}), rt = _slicedToArray(Ke, 2), lt = rt[0], it = rt[1],
|
|
18305
|
+
}), rt = _slicedToArray(Ke, 2), lt = rt[0], it = rt[1], Je = React.useMemo(function() {
|
|
18306
18306
|
var zt, Dt = je && lt === null ? [] : lt, Vt = We(Dt);
|
|
18307
18307
|
return V === "combobox" && isComboNoValue((zt = Vt[0]) === null || zt === void 0 ? void 0 : zt.value) ? [] : Vt;
|
|
18308
|
-
}, [lt, We, V, je]), ct = useCache(
|
|
18308
|
+
}, [lt, We, V, je]), ct = useCache(Je, Pe), dt = _slicedToArray(ct, 2), vt = dt[0], ht = dt[1], bt = React.useMemo(function() {
|
|
18309
18309
|
if (!V && vt.length === 1) {
|
|
18310
18310
|
var zt = vt[0];
|
|
18311
18311
|
if (zt.value === null && (zt.label === null || zt.label === void 0))
|
|
@@ -18399,8 +18399,8 @@ var Select$2 = /* @__PURE__ */ React.forwardRef(function(C, $) {
|
|
|
18399
18399
|
} : Dt, injectPropsWithOption(St)];
|
|
18400
18400
|
};
|
|
18401
18401
|
if (Vt && le) {
|
|
18402
|
-
var sn = qt(), _n = _slicedToArray(sn, 2), Wt = _n[0],
|
|
18403
|
-
le(Wt,
|
|
18402
|
+
var sn = qt(), _n = _slicedToArray(sn, 2), Wt = _n[0], Jt = _n[1];
|
|
18403
|
+
le(Wt, Jt);
|
|
18404
18404
|
} else if (!Vt && ue && Kt !== "clear") {
|
|
18405
18405
|
var dn = qt(), ln = _slicedToArray(dn, 2), gn = ln[0], mt = ln[1];
|
|
18406
18406
|
ue(gn, mt);
|
|
@@ -19949,7 +19949,7 @@ const SECRET_COMBOBOX_MODE_DO_NOT_USE = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Inter
|
|
|
19949
19949
|
className: ke,
|
|
19950
19950
|
classNames: He
|
|
19951
19951
|
} = useComponentConfig("select"), [, We] = useToken(), Ke = se != null ? se : We == null ? void 0 : We.controlHeight, rt = ze("select", te), lt = ze(), it = Se != null ? Se : Xe, {
|
|
19952
|
-
compactSize:
|
|
19952
|
+
compactSize: Je,
|
|
19953
19953
|
compactItemClassnames: ct
|
|
19954
19954
|
} = useCompactItemContext(rt, it), [dt, vt] = useVariant$1("select", Ce, ne), ht = useCSSVarCls$1(rt), [bt, Rt, wt] = useSelectStyle(rt, ht), st = React.useMemo(() => {
|
|
19955
19955
|
const {
|
|
@@ -19985,7 +19985,7 @@ const SECRET_COMBOBOX_MODE_DO_NOT_USE = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Inter
|
|
|
19985
19985
|
[`${rt}-dropdown-${it}`]: it === "rtl"
|
|
19986
19986
|
}, ae, He.root, Ae == null ? void 0 : Ae.root, wt, ht, Rt), At = useSize$1((Kt) => {
|
|
19987
19987
|
var qt;
|
|
19988
|
-
return (qt = ve != null ? ve :
|
|
19988
|
+
return (qt = ve != null ? ve : Je) !== null && qt !== void 0 ? qt : Kt;
|
|
19989
19989
|
}), Ht = React.useContext(DisabledContext$1), Gt = me != null ? me : Ht, zt = classNames({
|
|
19990
19990
|
[`${rt}-lg`]: At === "large",
|
|
19991
19991
|
[`${rt}-sm`]: At === "small",
|
|
@@ -21095,7 +21095,7 @@ const InternalTooltip = /* @__PURE__ */ React.forwardRef((C, $) => {
|
|
|
21095
21095
|
}, typeof Te == "function" ? Te() : Te), ke = Ne("tooltip", K), He = Ne(), We = C["data-popover-inject"];
|
|
21096
21096
|
let Ke = Xe;
|
|
21097
21097
|
!("open" in C) && !("visible" in C) && at && (Ke = !1);
|
|
21098
|
-
const rt = /* @__PURE__ */ React.isValidElement(re) && !isFragment(re) ? re : /* @__PURE__ */ React.createElement("span", null, re), lt = rt.props, it = !lt.className || typeof lt.className == "string" ? classNames(lt.className, J || `${ke}-open`) : lt.className, [
|
|
21098
|
+
const rt = /* @__PURE__ */ React.isValidElement(re) && !isFragment(re) ? re : /* @__PURE__ */ React.createElement("span", null, re), lt = rt.props, it = !lt.className || typeof lt.className == "string" ? classNames(lt.className, J || `${ke}-open`) : lt.className, [Je, ct, dt] = useStyle$q(ke, !We), vt = parseColor(ke, te), ht = vt.arrowStyle, bt = classNames(Ce, {
|
|
21099
21099
|
[`${ke}-rtl`]: Fe === "rtl"
|
|
21100
21100
|
}, vt.className, be, ct, dt, Oe, Ae.root, _e == null ? void 0 : _e.root), Rt = classNames(Ae.body, _e == null ? void 0 : _e.body), [wt, st] = useZIndex("Tooltip", xe.zIndex), ut = /* @__PURE__ */ React.createElement(Tooltip$3, Object.assign({}, xe, {
|
|
21101
21101
|
zIndex: wt,
|
|
@@ -21131,7 +21131,7 @@ const InternalTooltip = /* @__PURE__ */ React.forwardRef((C, $) => {
|
|
|
21131
21131
|
}), Ke ? cloneElement(rt, {
|
|
21132
21132
|
className: it
|
|
21133
21133
|
}) : rt);
|
|
21134
|
-
return
|
|
21134
|
+
return Je(/* @__PURE__ */ React.createElement(zIndexContext$1.Provider, {
|
|
21135
21135
|
value: st
|
|
21136
21136
|
}, ut));
|
|
21137
21137
|
}), Tooltip = InternalTooltip;
|
|
@@ -22203,15 +22203,15 @@ function InlineSubMenuList(C) {
|
|
|
22203
22203
|
var _excluded$s = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], _excluded2$2 = ["active"], InternalSubMenu = /* @__PURE__ */ React.forwardRef(function(C, $) {
|
|
22204
22204
|
var F = C.style, V = C.className, K = C.title, J = C.eventKey, ee = C.warnKey, te = C.disabled, ne = C.internalPopupClose, re = C.children, ae = C.itemIcon, oe = C.expandIcon, ie = C.popupClassName, le = C.popupOffset, ue = C.popupStyle, de = C.onClick, se = C.onMouseEnter, ve = C.onMouseLeave, me = C.onTitleClick, he = C.onTitleMouseEnter, pe = C.onTitleMouseLeave, ce = _objectWithoutProperties(C, _excluded$s), fe = useMenuId(J), ye = React.useContext(MenuContext$2), Se = ye.prefixCls, ge = ye.mode, be = ye.openKeys, Ce = ye.disabled, Ee = ye.overflowDisabled, _e = ye.activeKey, xe = ye.selectedKeys, $e = ye.itemIcon, Ie = ye.expandIcon, De = ye.onItemClick, Ne = ye.onOpenChange, Fe = ye.onActive, Oe = React.useContext(PrivateContext), we = Oe._internalRenderSubMenuItem, Ae = React.useContext(PathUserContext), Me = Ae.isSubPathKey, je = useFullPath(), ze = "".concat(Se, "-submenu"), Ve = Ce || te, Xe = React.useRef(), Ye = React.useRef();
|
|
22205
22205
|
process.env.NODE_ENV !== "production" && ee && warningOnce(!1, "SubMenu should not leave undefined `key`.");
|
|
22206
|
-
var at = ae != null ? ae : $e, Ue = oe != null ? oe : Ie, Le = be.includes(J), Te = !Ee && Le, Pe = Me(xe, J), ke = useActive(J, Ve, he, pe), He = ke.active, We = _objectWithoutProperties(ke, _excluded2$2), Ke = React.useState(!1), rt = _slicedToArray(Ke, 2), lt = rt[0], it = rt[1],
|
|
22206
|
+
var at = ae != null ? ae : $e, Ue = oe != null ? oe : Ie, Le = be.includes(J), Te = !Ee && Le, Pe = Me(xe, J), ke = useActive(J, Ve, he, pe), He = ke.active, We = _objectWithoutProperties(ke, _excluded2$2), Ke = React.useState(!1), rt = _slicedToArray(Ke, 2), lt = rt[0], it = rt[1], Je = function(ot) {
|
|
22207
22207
|
Ve || it(ot);
|
|
22208
22208
|
}, ct = function(ot) {
|
|
22209
|
-
|
|
22209
|
+
Je(!0), se == null || se({
|
|
22210
22210
|
key: J,
|
|
22211
22211
|
domEvent: ot
|
|
22212
22212
|
});
|
|
22213
22213
|
}, dt = function(ot) {
|
|
22214
|
-
|
|
22214
|
+
Je(!1), ve == null || ve({
|
|
22215
22215
|
key: J,
|
|
22216
22216
|
domEvent: ot
|
|
22217
22217
|
});
|
|
@@ -22392,9 +22392,9 @@ function parseItems(C, $, F, V, K) {
|
|
|
22392
22392
|
return $ && (J = convertItemsToNodes($, ee, K)), parseChildren(J, F);
|
|
22393
22393
|
}
|
|
22394
22394
|
var _excluded$p = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], EMPTY_LIST$3 = [], Menu$2 = /* @__PURE__ */ React.forwardRef(function(C, $) {
|
|
22395
|
-
var F, V = C, K = V.prefixCls, J = K === void 0 ? "rc-menu" : K, ee = V.rootClassName, te = V.style, ne = V.className, re = V.tabIndex, ae = re === void 0 ? 0 : re, oe = V.items, ie = V.children, le = V.direction, ue = V.id, de = V.mode, se = de === void 0 ? "vertical" : de, ve = V.inlineCollapsed, me = V.disabled, he = V.disabledOverflow, pe = V.subMenuOpenDelay, ce = pe === void 0 ? 0.1 : pe, fe = V.subMenuCloseDelay, ye = fe === void 0 ? 0.1 : fe, Se = V.forceSubMenuRender, ge = V.defaultOpenKeys, be = V.openKeys, Ce = V.activeKey, Ee = V.defaultActiveFirst, _e = V.selectable, xe = _e === void 0 ? !0 : _e, $e = V.multiple, Ie = $e === void 0 ? !1 : $e, De = V.defaultSelectedKeys, Ne = V.selectedKeys, Fe = V.onSelect, Oe = V.onDeselect, we = V.inlineIndent, Ae = we === void 0 ? 24 : we, Me = V.motion, je = V.defaultMotions, ze = V.triggerSubMenuAction, Ve = ze === void 0 ? "hover" : ze, Xe = V.builtinPlacements, Ye = V.itemIcon, at = V.expandIcon, Ue = V.overflowedIndicator, Le = Ue === void 0 ? "..." : Ue, Te = V.overflowedIndicatorPopupClassName, Pe = V.getPopupContainer, ke = V.onClick, He = V.onOpenChange, We = V.onKeyDown, Ke = V.openAnimation, rt = V.openTransitionName, lt = V._internalRenderMenuItem, it = V._internalRenderSubMenuItem,
|
|
22396
|
-
return [parseItems(ie, oe, EMPTY_LIST$3,
|
|
22397
|
-
}, [ie, oe,
|
|
22395
|
+
var F, V = C, K = V.prefixCls, J = K === void 0 ? "rc-menu" : K, ee = V.rootClassName, te = V.style, ne = V.className, re = V.tabIndex, ae = re === void 0 ? 0 : re, oe = V.items, ie = V.children, le = V.direction, ue = V.id, de = V.mode, se = de === void 0 ? "vertical" : de, ve = V.inlineCollapsed, me = V.disabled, he = V.disabledOverflow, pe = V.subMenuOpenDelay, ce = pe === void 0 ? 0.1 : pe, fe = V.subMenuCloseDelay, ye = fe === void 0 ? 0.1 : fe, Se = V.forceSubMenuRender, ge = V.defaultOpenKeys, be = V.openKeys, Ce = V.activeKey, Ee = V.defaultActiveFirst, _e = V.selectable, xe = _e === void 0 ? !0 : _e, $e = V.multiple, Ie = $e === void 0 ? !1 : $e, De = V.defaultSelectedKeys, Ne = V.selectedKeys, Fe = V.onSelect, Oe = V.onDeselect, we = V.inlineIndent, Ae = we === void 0 ? 24 : we, Me = V.motion, je = V.defaultMotions, ze = V.triggerSubMenuAction, Ve = ze === void 0 ? "hover" : ze, Xe = V.builtinPlacements, Ye = V.itemIcon, at = V.expandIcon, Ue = V.overflowedIndicator, Le = Ue === void 0 ? "..." : Ue, Te = V.overflowedIndicatorPopupClassName, Pe = V.getPopupContainer, ke = V.onClick, He = V.onOpenChange, We = V.onKeyDown, Ke = V.openAnimation, rt = V.openTransitionName, lt = V._internalRenderMenuItem, it = V._internalRenderSubMenuItem, Je = V._internalComponents, ct = _objectWithoutProperties(V, _excluded$p), dt = React.useMemo(function() {
|
|
22396
|
+
return [parseItems(ie, oe, EMPTY_LIST$3, Je, J), parseItems(ie, oe, EMPTY_LIST$3, {}, J)];
|
|
22397
|
+
}, [ie, oe, Je]), vt = _slicedToArray(dt, 2), ht = vt[0], bt = vt[1], Rt = React.useState(!1), wt = _slicedToArray(Rt, 2), st = wt[0], ut = wt[1], Ge = React.useRef(), et = useUUID(ue), Ze = le === "rtl";
|
|
22398
22398
|
process.env.NODE_ENV !== "production" && warningOnce(!Ke && !rt, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
|
|
22399
22399
|
var nt = useMergedState(ge, {
|
|
22400
22400
|
value: be,
|
|
@@ -22413,7 +22413,7 @@ var _excluded$p = ["prefixCls", "rootClassName", "style", "className", "tabIndex
|
|
|
22413
22413
|
React.useEffect(function() {
|
|
22414
22414
|
zt(Pt), qt(Tt), Ct.current && (_t ? ot(Mt) : ft(EMPTY_LIST$3));
|
|
22415
22415
|
}, [Pt, Tt]);
|
|
22416
|
-
var sn = React.useState(0), _n = _slicedToArray(sn, 2), Wt = _n[0],
|
|
22416
|
+
var sn = React.useState(0), _n = _slicedToArray(sn, 2), Wt = _n[0], Jt = _n[1], dn = Wt >= ht.length - 1 || Gt !== "horizontal" || he;
|
|
22417
22417
|
React.useEffect(function() {
|
|
22418
22418
|
_t && Ft(qe);
|
|
22419
22419
|
}, [qe]), React.useEffect(function() {
|
|
@@ -22457,13 +22457,13 @@ var _excluded$p = ["prefixCls", "rootClassName", "style", "className", "tabIndex
|
|
|
22457
22457
|
}
|
|
22458
22458
|
};
|
|
22459
22459
|
});
|
|
22460
|
-
var
|
|
22460
|
+
var Qt = useMergedState(De || [], {
|
|
22461
22461
|
value: Ne,
|
|
22462
22462
|
// Legacy convert key to array
|
|
22463
22463
|
postState: function(Cn) {
|
|
22464
22464
|
return Array.isArray(Cn) ? Cn : Cn == null ? EMPTY_LIST$3 : [Cn];
|
|
22465
22465
|
}
|
|
22466
|
-
}), Yt = _slicedToArray(
|
|
22466
|
+
}), Yt = _slicedToArray(Qt, 2), wn = Yt[0], Dn = Yt[1], Ln = function(Cn) {
|
|
22467
22467
|
if (xe) {
|
|
22468
22468
|
var $n = Cn.key, On = wn.includes($n), An;
|
|
22469
22469
|
Ie ? On ? An = wn.filter(function(Xn) {
|
|
@@ -22542,7 +22542,7 @@ var _excluded$p = ["prefixCls", "rootClassName", "style", "className", "tabIndex
|
|
|
22542
22542
|
ssr: "full",
|
|
22543
22543
|
"data-menu-list": !0,
|
|
22544
22544
|
onVisibleChange: function(Cn) {
|
|
22545
|
-
|
|
22545
|
+
Jt(Cn);
|
|
22546
22546
|
},
|
|
22547
22547
|
onKeyDown: Pn
|
|
22548
22548
|
}, ct));
|
|
@@ -24512,8 +24512,8 @@ const Menu$1 = Menu, genStatusStyle = (C) => {
|
|
|
24512
24512
|
dropdownRender: "popupRender",
|
|
24513
24513
|
destroyPopupOnHide: "destroyOnHidden"
|
|
24514
24514
|
}).forEach((lt) => {
|
|
24515
|
-
let [it,
|
|
24516
|
-
$e.deprecated(!(it in C), it,
|
|
24515
|
+
let [it, Je] = lt;
|
|
24516
|
+
$e.deprecated(!(it in C), it, Je);
|
|
24517
24517
|
}), ce.includes("Center") && $e.deprecated(!ce.includes("Center"), `placement: ${ce}`, `placement: ${ce.slice(0, ce.indexOf("Center"))}`));
|
|
24518
24518
|
const Ie = React.useMemo(() => {
|
|
24519
24519
|
const rt = Ce();
|
|
@@ -26674,7 +26674,7 @@ var TabNode = function($) {
|
|
|
26674
26674
|
!Ce && de && de({
|
|
26675
26675
|
direction: kt > Lt ? "top" : "bottom"
|
|
26676
26676
|
});
|
|
26677
|
-
}), De = _slicedToArray(Ie, 2), Ne = De[0], Fe = De[1], Oe = useState([0, 0]), we = _slicedToArray(Oe, 2), Ae = we[0], Me = we[1], je = useState([0, 0]), ze = _slicedToArray(je, 2), Ve = ze[0], Xe = ze[1], Ye = useState([0, 0]), at = _slicedToArray(Ye, 2), Ue = at[0], Le = at[1], Te = useState([0, 0]), Pe = _slicedToArray(Te, 2), ke = Pe[0], He = Pe[1], We = useUpdateState(/* @__PURE__ */ new Map()), Ke = _slicedToArray(We, 2), rt = Ke[0], lt = Ke[1], it = useOffsets(he, rt, Ve[0]),
|
|
26677
|
+
}), De = _slicedToArray(Ie, 2), Ne = De[0], Fe = De[1], Oe = useState([0, 0]), we = _slicedToArray(Oe, 2), Ae = we[0], Me = we[1], je = useState([0, 0]), ze = _slicedToArray(je, 2), Ve = ze[0], Xe = ze[1], Ye = useState([0, 0]), at = _slicedToArray(Ye, 2), Ue = at[0], Le = at[1], Te = useState([0, 0]), Pe = _slicedToArray(Te, 2), ke = Pe[0], He = Pe[1], We = useUpdateState(/* @__PURE__ */ new Map()), Ke = _slicedToArray(We, 2), rt = Ke[0], lt = Ke[1], it = useOffsets(he, rt, Ve[0]), Je = getUnitValue(Ae, Ce), ct = getUnitValue(Ve, Ce), dt = getUnitValue(Ue, Ce), vt = getUnitValue(ke, Ce), ht = Math.floor(Je) < Math.floor(ct + dt), bt = ht ? Je - vt : Je - dt, Rt = "".concat(me, "-nav-operations-hidden"), wt = 0, st = 0;
|
|
26678
26678
|
Ce && te ? (wt = 0, st = Math.max(0, ct - bt)) : (wt = Math.min(0, bt - ct), st = 0);
|
|
26679
26679
|
function ut(kt) {
|
|
26680
26680
|
return kt < wt ? wt : kt > st ? st : kt;
|
|
@@ -26772,8 +26772,8 @@ var TabNode = function($) {
|
|
|
26772
26772
|
case "Delete": {
|
|
26773
26773
|
var Nn = Gt.indexOf(It), Tn = he.find(function(Yt) {
|
|
26774
26774
|
return Yt.key === It;
|
|
26775
|
-
}),
|
|
26776
|
-
|
|
26775
|
+
}), Qt = getRemovable(Tn == null ? void 0 : Tn.closable, Tn == null ? void 0 : Tn.closeIcon, re, Tn == null ? void 0 : Tn.disabled);
|
|
26776
|
+
Qt && (Lt.preventDefault(), Lt.stopPropagation(), re.onEdit("remove", {
|
|
26777
26777
|
key: It,
|
|
26778
26778
|
event: Lt
|
|
26779
26779
|
}), Nn === Gt.length - 1 ? zt(-1) : zt(1));
|
|
@@ -26821,7 +26821,7 @@ var TabNode = function($) {
|
|
|
26821
26821
|
return he.forEach(function(bn) {
|
|
26822
26822
|
var Sn, Nn = bn.key, Tn = (Sn = Se.current) === null || Sn === void 0 ? void 0 : Sn.querySelector('[data-node-key="'.concat(genDataNodeKey(Nn), '"]'));
|
|
26823
26823
|
if (Tn) {
|
|
26824
|
-
var
|
|
26824
|
+
var Qt = getTabSize(Tn, vn), Yt = _slicedToArray(Qt, 4), wn = Yt[0], Dn = Yt[1], Ln = Yt[2], Hn = Yt[3];
|
|
26825
26825
|
Xt.set(Nn, {
|
|
26826
26826
|
width: wn,
|
|
26827
26827
|
height: Dn,
|
|
@@ -26846,7 +26846,7 @@ var TabNode = function($) {
|
|
|
26846
26846
|
He(bn);
|
|
26847
26847
|
var Sn = getSize$1(Se);
|
|
26848
26848
|
Xe([Sn[0] - vn[0], Sn[1] - vn[1]]), qt();
|
|
26849
|
-
}), _n = he.slice(0, $t), Wt = he.slice(Mt + 1),
|
|
26849
|
+
}), _n = he.slice(0, $t), Wt = he.slice(Mt + 1), Jt = [].concat(_toConsumableArray(_n), _toConsumableArray(Wt)), dn = it.get(ee), ln = useIndicator({
|
|
26850
26850
|
activeTabOffset: dn,
|
|
26851
26851
|
horizontal: Ce,
|
|
26852
26852
|
indicator: se,
|
|
@@ -26857,7 +26857,7 @@ var TabNode = function($) {
|
|
|
26857
26857
|
}, [ee, wt, st, stringify(dn), stringify(it), Ce]), useEffect(function() {
|
|
26858
26858
|
sn();
|
|
26859
26859
|
}, [te]);
|
|
26860
|
-
var mt = !!
|
|
26860
|
+
var mt = !!Jt.length, Ot = "".concat(me, "-nav-wrap"), pt, St, Et, Nt;
|
|
26861
26861
|
return Ce ? te ? (St = xe > 0, pt = xe !== st) : (pt = xe < 0, St = xe !== wt) : (Et = Ne < 0, Nt = Ne !== wt), /* @__PURE__ */ React.createElement(RefResizeObserver, {
|
|
26862
26862
|
onResize: sn
|
|
26863
26863
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
@@ -26903,7 +26903,7 @@ var TabNode = function($) {
|
|
|
26903
26903
|
removeAriaLabel: ae == null ? void 0 : ae.removeAriaLabel,
|
|
26904
26904
|
ref: ge,
|
|
26905
26905
|
prefixCls: me,
|
|
26906
|
-
tabs:
|
|
26906
|
+
tabs: Jt,
|
|
26907
26907
|
className: !mt && Rt,
|
|
26908
26908
|
tabMoving: !!nt
|
|
26909
26909
|
})), /* @__PURE__ */ React.createElement(ExtraContent, {
|
|
@@ -28518,24 +28518,24 @@ const ActionNode = (C) => {
|
|
|
28518
28518
|
} = React.useContext(ConfigContext), [xe] = useVariant$1("card", ie, oe);
|
|
28519
28519
|
if (process.env.NODE_ENV !== "production") {
|
|
28520
28520
|
const it = devUseWarning("Card");
|
|
28521
|
-
[["headStyle", "styles.header"], ["bodyStyle", "styles.body"], ["bordered", "variant"]].forEach((
|
|
28522
|
-
let [ct, dt] =
|
|
28521
|
+
[["headStyle", "styles.header"], ["bodyStyle", "styles.body"], ["bordered", "variant"]].forEach((Je) => {
|
|
28522
|
+
let [ct, dt] = Je;
|
|
28523
28523
|
it.deprecated(!(ct in C), ct, dt);
|
|
28524
28524
|
});
|
|
28525
28525
|
}
|
|
28526
28526
|
const $e = (it) => {
|
|
28527
|
-
var
|
|
28528
|
-
(
|
|
28527
|
+
var Je;
|
|
28528
|
+
(Je = C.onTabChange) === null || Je === void 0 || Je.call(C, it);
|
|
28529
28529
|
}, Ie = (it) => {
|
|
28530
|
-
var
|
|
28531
|
-
return classNames((
|
|
28530
|
+
var Je;
|
|
28531
|
+
return classNames((Je = _e == null ? void 0 : _e.classNames) === null || Je === void 0 ? void 0 : Je[it], Se == null ? void 0 : Se[it]);
|
|
28532
28532
|
}, De = (it) => {
|
|
28533
|
-
var
|
|
28534
|
-
return Object.assign(Object.assign({}, (
|
|
28533
|
+
var Je;
|
|
28534
|
+
return Object.assign(Object.assign({}, (Je = _e == null ? void 0 : _e.styles) === null || Je === void 0 ? void 0 : Je[it]), ge == null ? void 0 : ge[it]);
|
|
28535
28535
|
}, Ne = React.useMemo(() => {
|
|
28536
28536
|
let it = !1;
|
|
28537
|
-
return React.Children.forEach(me, (
|
|
28538
|
-
(
|
|
28537
|
+
return React.Children.forEach(me, (Je) => {
|
|
28538
|
+
(Je == null ? void 0 : Je.type) === Grid$2 && (it = !0);
|
|
28539
28539
|
}), it;
|
|
28540
28540
|
}, [me]), Fe = Ce("card", F), [Oe, we, Ae] = useStyle$h(Fe), Me = /* @__PURE__ */ React.createElement(Skeleton$1, {
|
|
28541
28541
|
loading: !0,
|
|
@@ -28556,22 +28556,22 @@ const ActionNode = (C) => {
|
|
|
28556
28556
|
onChange: $e,
|
|
28557
28557
|
items: ve.map((it) => {
|
|
28558
28558
|
var {
|
|
28559
|
-
tab:
|
|
28559
|
+
tab: Je
|
|
28560
28560
|
} = it, ct = __rest$E(it, ["tab"]);
|
|
28561
28561
|
return Object.assign({
|
|
28562
|
-
label:
|
|
28562
|
+
label: Je
|
|
28563
28563
|
}, ct);
|
|
28564
28564
|
})
|
|
28565
28565
|
})) : null;
|
|
28566
28566
|
if (re || ee || at) {
|
|
28567
|
-
const it = classNames(`${Fe}-head`, Ie("header")),
|
|
28567
|
+
const it = classNames(`${Fe}-head`, Ie("header")), Je = classNames(`${Fe}-head-title`, Ie("title")), ct = classNames(`${Fe}-extra`, Ie("extra")), dt = Object.assign(Object.assign({}, te), De("header"));
|
|
28568
28568
|
Ve = /* @__PURE__ */ React.createElement("div", {
|
|
28569
28569
|
className: it,
|
|
28570
28570
|
style: dt
|
|
28571
28571
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
28572
28572
|
className: `${Fe}-head-wrapper`
|
|
28573
28573
|
}, re && /* @__PURE__ */ React.createElement("div", {
|
|
28574
|
-
className:
|
|
28574
|
+
className: Je,
|
|
28575
28575
|
style: De("title")
|
|
28576
28576
|
}, re), ee && /* @__PURE__ */ React.createElement("div", {
|
|
28577
28577
|
className: ct,
|
|
@@ -29896,7 +29896,7 @@ var _excluded$i = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
|
|
|
29896
29896
|
$e.current && ($e.current = !1), _e(!1), J == null || J(vt);
|
|
29897
29897
|
}, lt = function(vt) {
|
|
29898
29898
|
Ae(""), Ne(), Ie.current && resolveOnChange(Ie.current, vt, V);
|
|
29899
|
-
}, it = Le && "".concat(ae, "-out-of-range"),
|
|
29899
|
+
}, it = Le && "".concat(ae, "-out-of-range"), Je = function() {
|
|
29900
29900
|
var vt = omit(C, [
|
|
29901
29901
|
"prefixCls",
|
|
29902
29902
|
"onPressEnter",
|
|
@@ -29962,7 +29962,7 @@ var _excluded$i = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
|
|
|
29962
29962
|
classNames: ce,
|
|
29963
29963
|
styles: fe,
|
|
29964
29964
|
ref: De
|
|
29965
|
-
}),
|
|
29965
|
+
}), Je());
|
|
29966
29966
|
});
|
|
29967
29967
|
const getAllowClear = (C) => {
|
|
29968
29968
|
let $;
|
|
@@ -30172,8 +30172,8 @@ function DrawerPopup(C, $) {
|
|
|
30172
30172
|
};
|
|
30173
30173
|
React.useEffect(function() {
|
|
30174
30174
|
if (ee && oe) {
|
|
30175
|
-
var
|
|
30176
|
-
(
|
|
30175
|
+
var Je;
|
|
30176
|
+
(Je = Me.current) === null || Je === void 0 || Je.focus({
|
|
30177
30177
|
preventScroll: !0
|
|
30178
30178
|
});
|
|
30179
30179
|
}
|
|
@@ -30195,24 +30195,24 @@ function DrawerPopup(C, $) {
|
|
|
30195
30195
|
}, [Pe]);
|
|
30196
30196
|
React.useEffect(function() {
|
|
30197
30197
|
if (ee) {
|
|
30198
|
-
var
|
|
30199
|
-
Le == null || (
|
|
30198
|
+
var Je;
|
|
30199
|
+
Le == null || (Je = Le.push) === null || Je === void 0 || Je.call(Le);
|
|
30200
30200
|
} else {
|
|
30201
30201
|
var ct;
|
|
30202
30202
|
Le == null || (ct = Le.pull) === null || ct === void 0 || ct.call(Le);
|
|
30203
30203
|
}
|
|
30204
30204
|
}, [ee]), React.useEffect(function() {
|
|
30205
30205
|
return function() {
|
|
30206
|
-
var
|
|
30207
|
-
Le == null || (
|
|
30206
|
+
var Je;
|
|
30207
|
+
Le == null || (Je = Le.pull) === null || Je === void 0 || Je.call(Le);
|
|
30208
30208
|
};
|
|
30209
30209
|
}, []);
|
|
30210
30210
|
var He = Se && /* @__PURE__ */ React.createElement(CSSMotion, _extends({
|
|
30211
30211
|
key: "mask"
|
|
30212
30212
|
}, be, {
|
|
30213
30213
|
visible: ee
|
|
30214
|
-
}), function(
|
|
30215
|
-
var dt =
|
|
30214
|
+
}), function(Je, ct) {
|
|
30215
|
+
var dt = Je.className, vt = Je.style;
|
|
30216
30216
|
return /* @__PURE__ */ React.createElement("div", {
|
|
30217
30217
|
className: classNames("".concat(J, "-mask"), dt, le == null ? void 0 : le.mask, Ce),
|
|
30218
30218
|
style: _objectSpread2(_objectSpread2(_objectSpread2({}, vt), Ee), we == null ? void 0 : we.mask),
|
|
@@ -30253,8 +30253,8 @@ function DrawerPopup(C, $) {
|
|
|
30253
30253
|
},
|
|
30254
30254
|
removeOnLeave: !1,
|
|
30255
30255
|
leavedClassName: "".concat(J, "-content-wrapper-hidden")
|
|
30256
|
-
}), function(
|
|
30257
|
-
var dt =
|
|
30256
|
+
}), function(Je, ct) {
|
|
30257
|
+
var dt = Je.className, vt = Je.style, ht = /* @__PURE__ */ React.createElement(DrawerPanel$2, _extends({
|
|
30258
30258
|
id: me,
|
|
30259
30259
|
containerRef: ct,
|
|
30260
30260
|
prefixCls: J,
|
|
@@ -32436,9 +32436,9 @@ function InternalFormItem(C) {
|
|
|
32436
32436
|
}
|
|
32437
32437
|
Me.length > 0 && (We["aria-invalid"] = "true"), Pe && (We["aria-required"] = "true"), supportRef(he) && (We.ref = ze(Le, he)), new Set([].concat(_toConsumableArray(toArray$2(ie)), _toConsumableArray(toArray$2(ye)))).forEach((lt) => {
|
|
32438
32438
|
We[lt] = function() {
|
|
32439
|
-
for (var it,
|
|
32439
|
+
for (var it, Je, ct, dt, vt, ht = arguments.length, bt = new Array(ht), Rt = 0; Rt < ht; Rt++)
|
|
32440
32440
|
bt[Rt] = arguments[Rt];
|
|
32441
|
-
(ct = ke[lt]) === null || ct === void 0 || (it = ct).call.apply(it, [ke].concat(bt)), (vt = (dt = he.props)[lt]) === null || vt === void 0 || (
|
|
32441
|
+
(ct = ke[lt]) === null || ct === void 0 || (it = ct).call.apply(it, [ke].concat(bt)), (vt = (dt = he.props)[lt]) === null || vt === void 0 || (Je = vt).call.apply(Je, [dt].concat(bt));
|
|
32442
32442
|
};
|
|
32443
32443
|
});
|
|
32444
32444
|
const rt = [We["aria-required"], We["aria-invalid"], We["aria-describedby"]];
|
|
@@ -33108,7 +33108,7 @@ var _excluded$g = ["prefixCls", "defaultValue", "value", "autoSize", "onResize",
|
|
|
33108
33108
|
(Ze = Ue()).setSelectionRange.apply(Ze, _toConsumableArray(ke));
|
|
33109
33109
|
}
|
|
33110
33110
|
}, [ke]);
|
|
33111
|
-
var We = useCount(se, de), Ke = (F = We.max) !== null && F !== void 0 ? F : re, rt = Number(Ke) > 0, lt = We.strategy(Ne), it = !!Ke && lt > Ke,
|
|
33111
|
+
var We = useCount(se, de), Ke = (F = We.max) !== null && F !== void 0 ? F : re, rt = Number(Ke) > 0, lt = We.strategy(Ne), it = !!Ke && lt > Ke, Je = function(nt, tt) {
|
|
33112
33112
|
var qe = tt;
|
|
33113
33113
|
!Me.current && We.exceedFormatter && We.max && We.strategy(tt) > We.max && (qe = We.exceedFormatter(tt, {
|
|
33114
33114
|
max: We.max
|
|
@@ -33116,9 +33116,9 @@ var _excluded$g = ["prefixCls", "defaultValue", "value", "autoSize", "onResize",
|
|
|
33116
33116
|
}, ct = function(nt) {
|
|
33117
33117
|
Me.current = !0, ae == null || ae(nt);
|
|
33118
33118
|
}, dt = function(nt) {
|
|
33119
|
-
Me.current = !1,
|
|
33119
|
+
Me.current = !1, Je(nt, nt.currentTarget.value), oe == null || oe(nt);
|
|
33120
33120
|
}, vt = function(nt) {
|
|
33121
|
-
|
|
33121
|
+
Je(nt, nt.target.value);
|
|
33122
33122
|
}, ht = function(nt) {
|
|
33123
33123
|
nt.key === "Enter" && ge && ge(nt), Ee == null || Ee(nt);
|
|
33124
33124
|
}, bt = function(nt) {
|
|
@@ -33646,35 +33646,35 @@ var Pagination$2 = function($) {
|
|
|
33646
33646
|
postState: function(Yt) {
|
|
33647
33647
|
return Math.max(1, Math.min(Yt, calculatePage(void 0, Te, oe)));
|
|
33648
33648
|
}
|
|
33649
|
-
}), He = _slicedToArray(ke, 2), We = He[0], Ke = He[1], rt = React__default.useState(We), lt = _slicedToArray(rt, 2), it = lt[0],
|
|
33649
|
+
}), He = _slicedToArray(ke, 2), We = He[0], Ke = He[1], rt = React__default.useState(We), lt = _slicedToArray(rt, 2), it = lt[0], Je = lt[1];
|
|
33650
33650
|
useEffect(function() {
|
|
33651
|
-
|
|
33651
|
+
Je(We);
|
|
33652
33652
|
}, [We]);
|
|
33653
33653
|
var ct = se !== noop$1, dt = "current" in $;
|
|
33654
33654
|
process.env.NODE_ENV !== "production" && warningOnce(dt ? ct : !0, "You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");
|
|
33655
33655
|
var vt = Math.max(1, We - (fe ? 3 : 5)), ht = Math.min(calculatePage(void 0, Te, oe), We + (fe ? 3 : 5));
|
|
33656
|
-
function bt(
|
|
33657
|
-
var wn =
|
|
33656
|
+
function bt(Qt, Yt) {
|
|
33657
|
+
var wn = Qt || /* @__PURE__ */ React__default.createElement("button", {
|
|
33658
33658
|
type: "button",
|
|
33659
33659
|
"aria-label": Yt,
|
|
33660
33660
|
className: "".concat(V, "-item-link")
|
|
33661
33661
|
});
|
|
33662
|
-
return typeof
|
|
33662
|
+
return typeof Qt == "function" && (wn = /* @__PURE__ */ React__default.createElement(Qt, _objectSpread2({}, $))), wn;
|
|
33663
33663
|
}
|
|
33664
|
-
function Rt(
|
|
33665
|
-
var Yt =
|
|
33664
|
+
function Rt(Qt) {
|
|
33665
|
+
var Yt = Qt.target.value, wn = calculatePage(void 0, Te, oe), Dn;
|
|
33666
33666
|
return Yt === "" ? Dn = Yt : Number.isNaN(Number(Yt)) ? Dn = it : Yt >= wn ? Dn = wn : Dn = Number(Yt), Dn;
|
|
33667
33667
|
}
|
|
33668
|
-
function wt(
|
|
33669
|
-
return isInteger(
|
|
33668
|
+
function wt(Qt) {
|
|
33669
|
+
return isInteger(Qt) && Qt !== We && isInteger(oe) && oe > 0;
|
|
33670
33670
|
}
|
|
33671
33671
|
var st = oe > Te ? ce : !1;
|
|
33672
|
-
function ut(
|
|
33673
|
-
(
|
|
33672
|
+
function ut(Qt) {
|
|
33673
|
+
(Qt.keyCode === KeyCode.UP || Qt.keyCode === KeyCode.DOWN) && Qt.preventDefault();
|
|
33674
33674
|
}
|
|
33675
|
-
function Ge(
|
|
33676
|
-
var Yt = Rt(
|
|
33677
|
-
switch (Yt !== it &&
|
|
33675
|
+
function Ge(Qt) {
|
|
33676
|
+
var Yt = Rt(Qt);
|
|
33677
|
+
switch (Yt !== it && Je(Yt), Qt.keyCode) {
|
|
33678
33678
|
case KeyCode.ENTER:
|
|
33679
33679
|
nt(Yt);
|
|
33680
33680
|
break;
|
|
@@ -33686,17 +33686,17 @@ var Pagination$2 = function($) {
|
|
|
33686
33686
|
break;
|
|
33687
33687
|
}
|
|
33688
33688
|
}
|
|
33689
|
-
function et(
|
|
33690
|
-
nt(Rt(
|
|
33689
|
+
function et(Qt) {
|
|
33690
|
+
nt(Rt(Qt));
|
|
33691
33691
|
}
|
|
33692
|
-
function Ze(
|
|
33693
|
-
var Yt = calculatePage(
|
|
33694
|
-
Pe(
|
|
33692
|
+
function Ze(Qt) {
|
|
33693
|
+
var Yt = calculatePage(Qt, Te, oe), wn = We > Yt && Yt !== 0 ? Yt : We;
|
|
33694
|
+
Pe(Qt), Je(wn), be == null || be(We, Qt), Ke(wn), se == null || se(wn, Qt);
|
|
33695
33695
|
}
|
|
33696
|
-
function nt(
|
|
33697
|
-
if (wt(
|
|
33698
|
-
var Yt = calculatePage(void 0, Te, oe), wn =
|
|
33699
|
-
return
|
|
33696
|
+
function nt(Qt) {
|
|
33697
|
+
if (wt(Qt) && !Ie) {
|
|
33698
|
+
var Yt = calculatePage(void 0, Te, oe), wn = Qt;
|
|
33699
|
+
return Qt > Yt ? wn = Yt : Qt < 1 && (wn = 1), wn !== it && Je(wn), Ke(wn), se == null || se(wn, Te), wn;
|
|
33700
33700
|
}
|
|
33701
33701
|
return We;
|
|
33702
33702
|
}
|
|
@@ -33713,39 +33713,39 @@ var Pagination$2 = function($) {
|
|
|
33713
33713
|
function $t() {
|
|
33714
33714
|
nt(ht);
|
|
33715
33715
|
}
|
|
33716
|
-
function Mt(
|
|
33717
|
-
if (
|
|
33716
|
+
function Mt(Qt, Yt) {
|
|
33717
|
+
if (Qt.key === "Enter" || Qt.charCode === KeyCode.ENTER || Qt.keyCode === KeyCode.ENTER) {
|
|
33718
33718
|
for (var wn = arguments.length, Dn = new Array(wn > 2 ? wn - 2 : 0), Ln = 2; Ln < wn; Ln++)
|
|
33719
33719
|
Dn[Ln - 2] = arguments[Ln];
|
|
33720
33720
|
Yt.apply(void 0, Dn);
|
|
33721
33721
|
}
|
|
33722
33722
|
}
|
|
33723
|
-
function Ft(
|
|
33724
|
-
Mt(
|
|
33723
|
+
function Ft(Qt) {
|
|
33724
|
+
Mt(Qt, ot);
|
|
33725
33725
|
}
|
|
33726
|
-
function Ct(
|
|
33727
|
-
Mt(
|
|
33726
|
+
function Ct(Qt) {
|
|
33727
|
+
Mt(Qt, ft);
|
|
33728
33728
|
}
|
|
33729
|
-
function Bt(
|
|
33730
|
-
Mt(
|
|
33729
|
+
function Bt(Qt) {
|
|
33730
|
+
Mt(Qt, yt);
|
|
33731
33731
|
}
|
|
33732
|
-
function It(
|
|
33733
|
-
Mt(
|
|
33732
|
+
function It(Qt) {
|
|
33733
|
+
Mt(Qt, $t);
|
|
33734
33734
|
}
|
|
33735
|
-
function Pt(
|
|
33736
|
-
var Yt = je(
|
|
33735
|
+
function Pt(Qt) {
|
|
33736
|
+
var Yt = je(Qt, "prev", bt(Xe, "prev page"));
|
|
33737
33737
|
return /* @__PURE__ */ React__default.isValidElement(Yt) ? /* @__PURE__ */ React__default.cloneElement(Yt, {
|
|
33738
33738
|
disabled: !tt
|
|
33739
33739
|
}) : Yt;
|
|
33740
33740
|
}
|
|
33741
|
-
function Tt(
|
|
33742
|
-
var Yt = je(
|
|
33741
|
+
function Tt(Qt) {
|
|
33742
|
+
var Yt = je(Qt, "next", bt(Ye, "next page"));
|
|
33743
33743
|
return /* @__PURE__ */ React__default.isValidElement(Yt) ? /* @__PURE__ */ React__default.cloneElement(Yt, {
|
|
33744
33744
|
disabled: !qe
|
|
33745
33745
|
}) : Yt;
|
|
33746
33746
|
}
|
|
33747
|
-
function _t(
|
|
33748
|
-
(
|
|
33747
|
+
function _t(Qt) {
|
|
33748
|
+
(Qt.type === "click" || Qt.keyCode === KeyCode.ENTER) && nt(it);
|
|
33749
33749
|
}
|
|
33750
33750
|
var At = null, Ht = pickAttrs($, {
|
|
33751
33751
|
aria: !0,
|
|
@@ -33762,18 +33762,18 @@ var Pagination$2 = function($) {
|
|
|
33762
33762
|
showTitle: Se,
|
|
33763
33763
|
itemRender: je,
|
|
33764
33764
|
page: -1
|
|
33765
|
-
}, qt = We - 1 > 0 ? We - 1 : 0, sn = We + 1 < Dt ? We + 1 : Dt, _n = ce && ce.goButton, Wt = _typeof(De) === "object" ? De.readOnly : !De,
|
|
33766
|
-
De && (_n && (typeof _n == "boolean" ?
|
|
33765
|
+
}, qt = We - 1 > 0 ? We - 1 : 0, sn = We + 1 < Dt ? We + 1 : Dt, _n = ce && ce.goButton, Wt = _typeof(De) === "object" ? De.readOnly : !De, Jt = _n, dn = null;
|
|
33766
|
+
De && (_n && (typeof _n == "boolean" ? Jt = /* @__PURE__ */ React__default.createElement("button", {
|
|
33767
33767
|
type: "button",
|
|
33768
33768
|
onClick: _t,
|
|
33769
33769
|
onKeyUp: _t
|
|
33770
|
-
}, Ee.jump_to_confirm) :
|
|
33770
|
+
}, Ee.jump_to_confirm) : Jt = /* @__PURE__ */ React__default.createElement("span", {
|
|
33771
33771
|
onClick: _t,
|
|
33772
33772
|
onKeyUp: _t
|
|
33773
|
-
}, _n),
|
|
33773
|
+
}, _n), Jt = /* @__PURE__ */ React__default.createElement("li", {
|
|
33774
33774
|
title: Se ? "".concat(Ee.jump_to).concat(We, "/").concat(Dt) : null,
|
|
33775
33775
|
className: "".concat(V, "-simple-pager")
|
|
33776
|
-
},
|
|
33776
|
+
}, Jt)), dn = /* @__PURE__ */ React__default.createElement("li", {
|
|
33777
33777
|
title: Se ? "".concat(We, "/").concat(Dt) : null,
|
|
33778
33778
|
className: "".concat(V, "-simple-pager")
|
|
33779
33779
|
}, Wt ? it : /* @__PURE__ */ React__default.createElement("input", {
|
|
@@ -33881,7 +33881,7 @@ var Pagination$2 = function($) {
|
|
|
33881
33881
|
pageSize: Te,
|
|
33882
33882
|
pageSizeOptions: Ae,
|
|
33883
33883
|
quickGo: st ? nt : null,
|
|
33884
|
-
goButton:
|
|
33884
|
+
goButton: Jt,
|
|
33885
33885
|
showSizeChanger: Oe,
|
|
33886
33886
|
sizeChangerRender: we
|
|
33887
33887
|
}));
|
|
@@ -38206,9 +38206,9 @@ function Cell(C) {
|
|
|
38206
38206
|
rowType: fe,
|
|
38207
38207
|
ellipsis: oe,
|
|
38208
38208
|
children: Ve
|
|
38209
|
-
}), it = classNames(Fe, ue, (ne = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ne, "".concat(Fe, "-fix-left"), at && we), "".concat(Fe, "-fix-left-first"), Ce && we), "".concat(Fe, "-fix-left-last"), Ee && we), "".concat(Fe, "-fix-left-all"), Ee && Ae && we), "".concat(Fe, "-fix-right"), Ue && we), "".concat(Fe, "-fix-right-first"), _e && we), "".concat(Fe, "-fix-right-last"), xe && we), "".concat(Fe, "-ellipsis"), oe), "".concat(Fe, "-with-append"), $e), "".concat(Fe, "-fix-sticky"), (at || Ue) && Ne && we), _defineProperty(ne, "".concat(Fe, "-row-hover"), !Xe && He)), De.className, Xe == null ? void 0 : Xe.className),
|
|
38210
|
-
de && (
|
|
38211
|
-
var ct = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, Xe == null ? void 0 : Xe.style), Ye),
|
|
38209
|
+
}), it = classNames(Fe, ue, (ne = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ne, "".concat(Fe, "-fix-left"), at && we), "".concat(Fe, "-fix-left-first"), Ce && we), "".concat(Fe, "-fix-left-last"), Ee && we), "".concat(Fe, "-fix-left-all"), Ee && Ae && we), "".concat(Fe, "-fix-right"), Ue && we), "".concat(Fe, "-fix-right-first"), _e && we), "".concat(Fe, "-fix-right-last"), xe && we), "".concat(Fe, "-ellipsis"), oe), "".concat(Fe, "-with-append"), $e), "".concat(Fe, "-fix-sticky"), (at || Ue) && Ne && we), _defineProperty(ne, "".concat(Fe, "-row-hover"), !Xe && He)), De.className, Xe == null ? void 0 : Xe.className), Je = {};
|
|
38210
|
+
de && (Je.textAlign = de);
|
|
38211
|
+
var ct = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, Xe == null ? void 0 : Xe.style), Ye), Je), De.style), dt = Ve;
|
|
38212
38212
|
return _typeof(dt) === "object" && !Array.isArray(dt) && !/* @__PURE__ */ React.isValidElement(dt) && (dt = null), oe && (Ee || _e) && (dt = /* @__PURE__ */ React.createElement("span", {
|
|
38213
38213
|
className: "".concat(Fe, "-content")
|
|
38214
38214
|
}, dt)), /* @__PURE__ */ React.createElement(re, _extends({}, Xe, De, {
|
|
@@ -39155,12 +39155,12 @@ function Table$2(C, $) {
|
|
|
39155
39155
|
direction: oe,
|
|
39156
39156
|
scrollWidth: De && be && typeof ke == "number" ? ke : null,
|
|
39157
39157
|
clientWidth: Ke
|
|
39158
|
-
}), De ? Se : null), it = _slicedToArray(lt, 4),
|
|
39158
|
+
}), De ? Se : null), it = _slicedToArray(lt, 4), Je = it[0], ct = it[1], dt = it[2], vt = it[3], ht = dt != null ? dt : ke, bt = React.useMemo(function() {
|
|
39159
39159
|
return {
|
|
39160
|
-
columns:
|
|
39160
|
+
columns: Je,
|
|
39161
39161
|
flattenColumns: ct
|
|
39162
39162
|
};
|
|
39163
|
-
}, [
|
|
39163
|
+
}, [Je, ct]), Rt = React.useRef(), wt = React.useRef(), st = React.useRef(), ut = React.useRef();
|
|
39164
39164
|
React.useImperativeHandle($, function() {
|
|
39165
39165
|
return {
|
|
39166
39166
|
nativeElement: Rt.current,
|
|
@@ -39174,8 +39174,8 @@ function Table$2(C, $) {
|
|
|
39174
39174
|
top: Gn
|
|
39175
39175
|
});
|
|
39176
39176
|
} else {
|
|
39177
|
-
var
|
|
39178
|
-
(
|
|
39177
|
+
var Jn, dr = ur != null ? ur : Fe($e[zn]);
|
|
39178
|
+
(Jn = st.current.querySelector('[data-row-key="'.concat(dr, '"]'))) === null || Jn === void 0 || Jn.scrollIntoView();
|
|
39179
39179
|
}
|
|
39180
39180
|
} else
|
|
39181
39181
|
(Bn = st.current) !== null && Bn !== void 0 && Bn.scrollTo && st.current.scrollTo(yn);
|
|
@@ -39191,7 +39191,7 @@ function Table$2(C, $) {
|
|
|
39191
39191
|
return yn;
|
|
39192
39192
|
}), Gt = React.useRef(), zt = useSticky(Ee, V), Dt = zt.isSticky, Vt = zt.offsetHeader, Kt = zt.offsetSummary, qt = zt.offsetScroll, sn = zt.stickyClassName, _n = zt.container, Wt = React.useMemo(function() {
|
|
39193
39193
|
return ue == null ? void 0 : ue($e);
|
|
39194
|
-
}, [ue, $e]),
|
|
39194
|
+
}, [ue, $e]), Jt = (_t || Dt) && /* @__PURE__ */ React.isValidElement(Wt) && Wt.type === Summary && Wt.props.fixed, dn, ln, gn;
|
|
39195
39195
|
_t && (ln = {
|
|
39196
39196
|
overflowY: Ie ? "scroll" : "auto",
|
|
39197
39197
|
maxHeight: re.y
|
|
@@ -39223,12 +39223,12 @@ function Table$2(C, $) {
|
|
|
39223
39223
|
var Yn;
|
|
39224
39224
|
St(ur), Nt(Gn, wt.current), Nt(Gn, st.current), Nt(Gn, Ge.current), Nt(Gn, (Yn = Gt.current) === null || Yn === void 0 ? void 0 : Yn.setScrollLeft);
|
|
39225
39225
|
}
|
|
39226
|
-
var
|
|
39227
|
-
if (
|
|
39226
|
+
var Jn = yn || wt.current;
|
|
39227
|
+
if (Jn) {
|
|
39228
39228
|
var dr = (
|
|
39229
39229
|
// Should use mergedScrollX in virtual table(useInternalHooks && tailor === true)
|
|
39230
|
-
De && be && typeof ht == "number" ? ht :
|
|
39231
|
-
), mr =
|
|
39230
|
+
De && be && typeof ht == "number" ? ht : Jn.scrollWidth
|
|
39231
|
+
), mr = Jn.clientWidth;
|
|
39232
39232
|
if (dr === mr) {
|
|
39233
39233
|
tt(!1), yt(!1);
|
|
39234
39234
|
return;
|
|
@@ -39254,18 +39254,18 @@ function Table$2(C, $) {
|
|
|
39254
39254
|
}, bn = React.useRef(!1);
|
|
39255
39255
|
React.useEffect(function() {
|
|
39256
39256
|
bn.current && Xt();
|
|
39257
|
-
}, [At, te,
|
|
39257
|
+
}, [At, te, Je.length]), React.useEffect(function() {
|
|
39258
39258
|
bn.current = !0;
|
|
39259
39259
|
}, []);
|
|
39260
|
-
var Sn = React.useState(0), Nn = _slicedToArray(Sn, 2), Tn = Nn[0],
|
|
39260
|
+
var Sn = React.useState(0), Nn = _slicedToArray(Sn, 2), Tn = Nn[0], Qt = Nn[1], Yt = React.useState(!0), wn = _slicedToArray(Yt, 2), Dn = wn[0], Ln = wn[1];
|
|
39261
39261
|
useLayoutEffect$1(function() {
|
|
39262
|
-
(!be || !De) && (st.current instanceof Element ?
|
|
39262
|
+
(!be || !De) && (st.current instanceof Element ? Qt(getTargetScrollBarSize(st.current).width) : Qt(getTargetScrollBarSize(ut.current).width)), Ln(isStyleSupport("position", "sticky"));
|
|
39263
39263
|
}, []), React.useEffect(function() {
|
|
39264
39264
|
De && ge && (ge.body.current = st.current);
|
|
39265
39265
|
});
|
|
39266
39266
|
var Hn = React.useCallback(function(hn) {
|
|
39267
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Header$2, hn),
|
|
39268
|
-
}, [
|
|
39267
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Header$2, hn), Jt === "top" && /* @__PURE__ */ React.createElement(Footer$2, hn, Wt));
|
|
39268
|
+
}, [Jt, Wt]), er = React.useCallback(function(hn) {
|
|
39269
39269
|
return /* @__PURE__ */ React.createElement(Footer$2, hn, Wt);
|
|
39270
39270
|
}, [Wt]), Wn = Ne(["table"], "table"), Pn = React.useMemo(function() {
|
|
39271
39271
|
return ae || (Ht ? ht === "max-content" ? "auto" : "fixed" : _t || Dt || ct.some(function(hn) {
|
|
@@ -39315,7 +39315,7 @@ function Table$2(C, $) {
|
|
|
39315
39315
|
style: _objectSpread2(_objectSpread2({}, gn), {}, {
|
|
39316
39316
|
tableLayout: Pn
|
|
39317
39317
|
})
|
|
39318
|
-
}, An), $n, Cn, Zt, !
|
|
39318
|
+
}, An), $n, Cn, Zt, !Jt && Wt && /* @__PURE__ */ React.createElement(Footer$2, {
|
|
39319
39319
|
stickyOffsets: Tt,
|
|
39320
39320
|
flattenColumns: ct
|
|
39321
39321
|
}, Wt)));
|
|
@@ -39331,7 +39331,7 @@ function Table$2(C, $) {
|
|
|
39331
39331
|
stickyTopOffset: Vt,
|
|
39332
39332
|
className: "".concat(V, "-header"),
|
|
39333
39333
|
ref: wt
|
|
39334
|
-
}), Hn), Kn,
|
|
39334
|
+
}), Hn), Kn, Jt && Jt !== "top" && /* @__PURE__ */ React.createElement(FixedHolder$1, _extends({}, Xn, {
|
|
39335
39335
|
stickyBottomOffset: Kt,
|
|
39336
39336
|
className: "".concat(V, "-summary"),
|
|
39337
39337
|
ref: Ge
|
|
@@ -39405,7 +39405,7 @@ function Table$2(C, $) {
|
|
|
39405
39405
|
}),
|
|
39406
39406
|
emptyNode: En,
|
|
39407
39407
|
// Column
|
|
39408
|
-
columns:
|
|
39408
|
+
columns: Je,
|
|
39409
39409
|
flattenColumns: ct,
|
|
39410
39410
|
onColumnResize: mt,
|
|
39411
39411
|
// Row
|
|
@@ -39447,7 +39447,7 @@ function Table$2(C, $) {
|
|
|
39447
39447
|
Ye.indentSize,
|
|
39448
39448
|
En,
|
|
39449
39449
|
// Column
|
|
39450
|
-
|
|
39450
|
+
Je,
|
|
39451
39451
|
ct,
|
|
39452
39452
|
mt,
|
|
39453
39453
|
// Row
|
|
@@ -39847,7 +39847,7 @@ var _excluded$4 = ["eventKey", "className", "style", "dragOver", "dragOverGapTop
|
|
|
39847
39847
|
}, Ge);
|
|
39848
39848
|
}, [De, se, ve, Ie, $.disableCheckbox, $.title]), it = React__default.useMemo(function() {
|
|
39849
39849
|
return He ? null : ue ? ICON_OPEN : ICON_CLOSE;
|
|
39850
|
-
}, [He, ue]),
|
|
39850
|
+
}, [He, ue]), Je = React__default.useMemo(function() {
|
|
39851
39851
|
return /* @__PURE__ */ React__default.createElement("span", {
|
|
39852
39852
|
className: classNames("".concat(ge.prefixCls, "-iconEle"), "".concat(ge.prefixCls, "-icon__").concat(it || "docu"), _defineProperty({}, "".concat(ge.prefixCls, "-icon_loading"), me))
|
|
39853
39853
|
});
|
|
@@ -39866,9 +39866,9 @@ var _excluded$4 = ["eventKey", "className", "style", "dragOver", "dragOverGapTop
|
|
|
39866
39866
|
var tt = $.icon || ge.icon;
|
|
39867
39867
|
nt = tt ? /* @__PURE__ */ React__default.createElement("span", {
|
|
39868
39868
|
className: classNames("".concat(ge.prefixCls, "-iconEle"), "".concat(ge.prefixCls, "-icon__customize"))
|
|
39869
|
-
}, typeof tt == "function" ? tt($) : tt) :
|
|
39869
|
+
}, typeof tt == "function" ? tt($) : tt) : Je;
|
|
39870
39870
|
} else
|
|
39871
|
-
ge.loadData && me && (nt =
|
|
39871
|
+
ge.loadData && me && (nt = Je);
|
|
39872
39872
|
var qe;
|
|
39873
39873
|
return typeof et == "function" ? qe = et(ce) : ge.titleRender ? qe = ge.titleRender(ce) : qe = et, /* @__PURE__ */ React__default.createElement("span", {
|
|
39874
39874
|
ref: Ce,
|
|
@@ -39882,7 +39882,7 @@ var _excluded$4 = ["eventKey", "className", "style", "dragOver", "dragOverGapTop
|
|
|
39882
39882
|
}, nt, /* @__PURE__ */ React__default.createElement("span", {
|
|
39883
39883
|
className: "".concat(ge.prefixCls, "-title")
|
|
39884
39884
|
}, qe), ct);
|
|
39885
|
-
}, [ge.prefixCls, ge.showIcon, $, ge.icon,
|
|
39885
|
+
}, [ge.prefixCls, ge.showIcon, $, ge.icon, Je, ge.titleRender, ce, it, Me, je, ze, we, Ae]), vt = pickAttrs(Se, {
|
|
39886
39886
|
aria: !0,
|
|
39887
39887
|
data: !0
|
|
39888
39888
|
}), ht = getEntity(ge.keyEntities, J) || {}, bt = ht.level, Rt = le[le.length - 1], wt = !Ie && Ve, st = ge.draggingNodeKey === J, ut = ye !== void 0 ? {
|
|
@@ -40265,8 +40265,8 @@ const SELECTION_COLUMN = {}, SELECTION_ALL = "SELECT_ALL", SELECTION_INVERT = "S
|
|
|
40265
40265
|
className: `${he}-selection`
|
|
40266
40266
|
}, it, ut);
|
|
40267
40267
|
}
|
|
40268
|
-
let
|
|
40269
|
-
le === "radio" ?
|
|
40268
|
+
let Je;
|
|
40269
|
+
le === "radio" ? Je = (ut, Ge, et) => {
|
|
40270
40270
|
const Ze = ye(Ge, et), nt = ke.has(Ze), tt = we.get(Ze);
|
|
40271
40271
|
return {
|
|
40272
40272
|
node: /* @__PURE__ */ React.createElement(Radio$1, Object.assign({}, tt, {
|
|
@@ -40282,7 +40282,7 @@ const SELECTION_COLUMN = {}, SELECTION_ALL = "SELECT_ALL", SELECTION_INVERT = "S
|
|
|
40282
40282
|
})),
|
|
40283
40283
|
checked: nt
|
|
40284
40284
|
};
|
|
40285
|
-
} :
|
|
40285
|
+
} : Je = (ut, Ge, et) => {
|
|
40286
40286
|
var Ze;
|
|
40287
40287
|
const nt = ye(Ge, et), tt = ke.has(nt), qe = Ve.has(nt), ot = we.get(nt);
|
|
40288
40288
|
let ft;
|
|
@@ -40336,7 +40336,7 @@ const SELECTION_COLUMN = {}, SELECTION_ALL = "SELECT_ALL", SELECTION_INVERT = "S
|
|
|
40336
40336
|
const {
|
|
40337
40337
|
node: Ze,
|
|
40338
40338
|
checked: nt
|
|
40339
|
-
} =
|
|
40339
|
+
} = Je(ut, Ge, et);
|
|
40340
40340
|
return se ? se(nt, Ge, et, Ze) : Ze;
|
|
40341
40341
|
};
|
|
40342
40342
|
if (!Pe.includes(SELECTION_COLUMN))
|
|
@@ -40626,24 +40626,24 @@ var NodeList = /* @__PURE__ */ React.forwardRef(function(C, $) {
|
|
|
40626
40626
|
var De = React.useState(K), Ne = _slicedToArray(De, 2), Fe = Ne[0], Oe = Ne[1], we = React.useState(V), Ae = _slicedToArray(we, 2), Me = Ae[0], je = Ae[1], ze = React.useState(V), Ve = _slicedToArray(ze, 2), Xe = Ve[0], Ye = Ve[1], at = React.useState([]), Ue = _slicedToArray(at, 2), Le = Ue[0], Te = Ue[1], Pe = React.useState(null), ke = _slicedToArray(Pe, 2), He = ke[0], We = ke[1], Ke = React.useRef(V);
|
|
40627
40627
|
Ke.current = V;
|
|
40628
40628
|
function rt() {
|
|
40629
|
-
var
|
|
40630
|
-
je(
|
|
40629
|
+
var Je = Ke.current;
|
|
40630
|
+
je(Je), Ye(Je), Te([]), We(null), _e();
|
|
40631
40631
|
}
|
|
40632
40632
|
useLayoutEffect$1(function() {
|
|
40633
40633
|
Oe(K);
|
|
40634
|
-
var
|
|
40635
|
-
if (
|
|
40636
|
-
if (
|
|
40634
|
+
var Je = findExpandedKeys(Fe, K);
|
|
40635
|
+
if (Je.key !== null)
|
|
40636
|
+
if (Je.add) {
|
|
40637
40637
|
var ct = Me.findIndex(function(wt) {
|
|
40638
40638
|
var st = wt.key;
|
|
40639
|
-
return st ===
|
|
40640
|
-
}), dt = getMinimumRangeTransitionRange(getExpandRange(Me, V,
|
|
40639
|
+
return st === Je.key;
|
|
40640
|
+
}), dt = getMinimumRangeTransitionRange(getExpandRange(Me, V, Je.key), me, se, ve), vt = Me.slice();
|
|
40641
40641
|
vt.splice(ct + 1, 0, MotionFlattenData), Ye(vt), Te(dt), We("show");
|
|
40642
40642
|
} else {
|
|
40643
40643
|
var ht = V.findIndex(function(wt) {
|
|
40644
40644
|
var st = wt.key;
|
|
40645
|
-
return st ===
|
|
40646
|
-
}), bt = getMinimumRangeTransitionRange(getExpandRange(V, Me,
|
|
40645
|
+
return st === Je.key;
|
|
40646
|
+
}), bt = getMinimumRangeTransitionRange(getExpandRange(V, Me, Je.key), me, se, ve), Rt = V.slice();
|
|
40647
40647
|
Rt.splice(ht + 1, 0, MotionFlattenData), Ye(Rt), Te(bt), We("hide");
|
|
40648
40648
|
}
|
|
40649
40649
|
else
|
|
@@ -40708,15 +40708,15 @@ var NodeList = /* @__PURE__ */ React.forwardRef(function(C, $) {
|
|
|
40708
40708
|
return itemKey(dt) !== MOTION_KEY;
|
|
40709
40709
|
}) && rt();
|
|
40710
40710
|
}
|
|
40711
|
-
}), function(
|
|
40712
|
-
var ct =
|
|
40711
|
+
}), function(Je) {
|
|
40712
|
+
var ct = Je.pos, dt = Object.assign({}, (_objectDestructuringEmpty(Je.data), Je.data)), vt = Je.title, ht = Je.key, bt = Je.isStart, Rt = Je.isEnd, wt = getKey(ht, ct);
|
|
40713
40713
|
delete dt.key, delete dt.children;
|
|
40714
40714
|
var st = getTreeNodeProps(wt, it);
|
|
40715
40715
|
return /* @__PURE__ */ React.createElement(MotionTreeNode, _extends({}, dt, st, {
|
|
40716
40716
|
title: vt,
|
|
40717
40717
|
active: !!ce && ht === ce.key,
|
|
40718
40718
|
pos: ct,
|
|
40719
|
-
data:
|
|
40719
|
+
data: Je.data,
|
|
40720
40720
|
isStart: bt,
|
|
40721
40721
|
isEnd: Rt,
|
|
40722
40722
|
motion: de,
|
|
@@ -42185,29 +42185,29 @@ const FilterDropdown = (C) => {
|
|
|
42185
42185
|
filterDropdownVisible: Se,
|
|
42186
42186
|
onFilterDropdownVisibleChange: ge,
|
|
42187
42187
|
onFilterDropdownOpenChange: be
|
|
42188
|
-
} = te, [Ce, Ee] = React.useState(!1), _e = !!(ue && (!(($ = ue.filteredKeys) === null || $ === void 0) && $.length || ue.forceFiltered)), xe = (
|
|
42188
|
+
} = te, [Ce, Ee] = React.useState(!1), _e = !!(ue && (!(($ = ue.filteredKeys) === null || $ === void 0) && $.length || ue.forceFiltered)), xe = (Je) => {
|
|
42189
42189
|
var ct;
|
|
42190
|
-
Ee(
|
|
42190
|
+
Ee(Je), (ct = fe.onOpenChange) === null || ct === void 0 || ct.call(fe, Je), be == null || be(Je), ge == null || ge(Je);
|
|
42191
42191
|
};
|
|
42192
42192
|
if (process.env.NODE_ENV !== "production") {
|
|
42193
|
-
const
|
|
42193
|
+
const Je = devUseWarning("Table");
|
|
42194
42194
|
[["filterDropdownOpen", "filterDropdownProps.open"], ["filterDropdownVisible", "filterDropdownProps.open"], ["onFilterDropdownOpenChange", "filterDropdownProps.onOpenChange"], ["onFilterDropdownVisibleChange", "filterDropdownProps.onOpenChange"]].forEach((dt) => {
|
|
42195
42195
|
let [vt, ht] = dt;
|
|
42196
|
-
|
|
42197
|
-
}),
|
|
42196
|
+
Je.deprecated(!(vt in te), vt, ht);
|
|
42197
|
+
}), Je.deprecated(!("filterCheckall" in se), "filterCheckall", "locale.filterCheckAll");
|
|
42198
42198
|
}
|
|
42199
|
-
const $e = (K = (V = (F = fe.open) !== null && F !== void 0 ? F : ye) !== null && V !== void 0 ? V : Se) !== null && K !== void 0 ? K : Ce, Ie = ue == null ? void 0 : ue.filteredKeys, [De, Ne] = useSyncState(wrapStringListType(Ie)), Fe = (
|
|
42199
|
+
const $e = (K = (V = (F = fe.open) !== null && F !== void 0 ? F : ye) !== null && V !== void 0 ? V : Se) !== null && K !== void 0 ? K : Ce, Ie = ue == null ? void 0 : ue.filteredKeys, [De, Ne] = useSyncState(wrapStringListType(Ie)), Fe = (Je) => {
|
|
42200
42200
|
let {
|
|
42201
42201
|
selectedKeys: ct
|
|
42202
|
-
} =
|
|
42202
|
+
} = Je;
|
|
42203
42203
|
Ne(ct);
|
|
42204
|
-
}, Oe = (
|
|
42204
|
+
}, Oe = (Je, ct) => {
|
|
42205
42205
|
let {
|
|
42206
42206
|
node: dt,
|
|
42207
42207
|
checked: vt
|
|
42208
42208
|
} = ct;
|
|
42209
42209
|
Fe(oe ? {
|
|
42210
|
-
selectedKeys:
|
|
42210
|
+
selectedKeys: Je
|
|
42211
42211
|
} : {
|
|
42212
42212
|
selectedKeys: vt && dt.key ? [dt.key] : []
|
|
42213
42213
|
});
|
|
@@ -42217,19 +42217,19 @@ const FilterDropdown = (C) => {
|
|
|
42217
42217
|
selectedKeys: wrapStringListType(Ie)
|
|
42218
42218
|
});
|
|
42219
42219
|
}, [Ie]);
|
|
42220
|
-
const [we, Ae] = React.useState([]), Me = (
|
|
42221
|
-
Ae(
|
|
42222
|
-
}, [je, ze] = React.useState(""), Ve = (
|
|
42220
|
+
const [we, Ae] = React.useState([]), Me = (Je) => {
|
|
42221
|
+
Ae(Je);
|
|
42222
|
+
}, [je, ze] = React.useState(""), Ve = (Je) => {
|
|
42223
42223
|
const {
|
|
42224
42224
|
value: ct
|
|
42225
|
-
} =
|
|
42225
|
+
} = Je.target;
|
|
42226
42226
|
ze(ct);
|
|
42227
42227
|
};
|
|
42228
42228
|
React.useEffect(() => {
|
|
42229
42229
|
Ce || ze("");
|
|
42230
42230
|
}, [Ce]);
|
|
42231
|
-
const Xe = (
|
|
42232
|
-
const ct =
|
|
42231
|
+
const Xe = (Je) => {
|
|
42232
|
+
const ct = Je != null && Je.length ? Je : null;
|
|
42233
42233
|
if (ct === null && (!ue || !ue.filteredKeys) || isEqual(ct, ue == null ? void 0 : ue.filteredKeys, !0))
|
|
42234
42234
|
return null;
|
|
42235
42235
|
de({
|
|
@@ -42241,34 +42241,34 @@ const FilterDropdown = (C) => {
|
|
|
42241
42241
|
xe(!1), Xe(De());
|
|
42242
42242
|
}, at = function() {
|
|
42243
42243
|
let {
|
|
42244
|
-
confirm:
|
|
42244
|
+
confirm: Je,
|
|
42245
42245
|
closeDropdown: ct
|
|
42246
42246
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
42247
42247
|
confirm: !1,
|
|
42248
42248
|
closeDropdown: !1
|
|
42249
42249
|
};
|
|
42250
|
-
|
|
42250
|
+
Je && Xe([]), ct && xe(!1), ze(""), Ne(pe ? (ce || []).map((dt) => String(dt)) : []);
|
|
42251
42251
|
}, Ue = function() {
|
|
42252
42252
|
let {
|
|
42253
|
-
closeDropdown:
|
|
42253
|
+
closeDropdown: Je
|
|
42254
42254
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
42255
42255
|
closeDropdown: !0
|
|
42256
42256
|
};
|
|
42257
|
-
|
|
42258
|
-
}, Le = (
|
|
42259
|
-
ct.source === "trigger" && (
|
|
42257
|
+
Je && xe(!1), Xe(De());
|
|
42258
|
+
}, Le = (Je, ct) => {
|
|
42259
|
+
ct.source === "trigger" && (Je && Ie !== void 0 && Ne(wrapStringListType(Ie)), xe(Je), !Je && !te.filterDropdown && ae && Ye());
|
|
42260
42260
|
}, Te = classNames({
|
|
42261
42261
|
[`${ne}-menu-without-submenu`]: !hasSubMenu(te.filters || [])
|
|
42262
|
-
}), Pe = (
|
|
42263
|
-
if (
|
|
42262
|
+
}), Pe = (Je) => {
|
|
42263
|
+
if (Je.target.checked) {
|
|
42264
42264
|
const ct = flattenKeys(te == null ? void 0 : te.filters).map((dt) => String(dt));
|
|
42265
42265
|
Ne(ct);
|
|
42266
42266
|
} else
|
|
42267
42267
|
Ne([]);
|
|
42268
|
-
}, ke = (
|
|
42268
|
+
}, ke = (Je) => {
|
|
42269
42269
|
let {
|
|
42270
42270
|
filters: ct
|
|
42271
|
-
} =
|
|
42271
|
+
} = Je;
|
|
42272
42272
|
return (ct || []).map((dt, vt) => {
|
|
42273
42273
|
const ht = String(dt.value), bt = {
|
|
42274
42274
|
title: dt.text,
|
|
@@ -42278,12 +42278,12 @@ const FilterDropdown = (C) => {
|
|
|
42278
42278
|
filters: dt.children
|
|
42279
42279
|
})), bt;
|
|
42280
42280
|
});
|
|
42281
|
-
}, He = (
|
|
42281
|
+
}, He = (Je) => {
|
|
42282
42282
|
var ct;
|
|
42283
|
-
return Object.assign(Object.assign({},
|
|
42284
|
-
text:
|
|
42285
|
-
value:
|
|
42286
|
-
children: ((ct =
|
|
42283
|
+
return Object.assign(Object.assign({}, Je), {
|
|
42284
|
+
text: Je.title,
|
|
42285
|
+
value: Je.key,
|
|
42286
|
+
children: ((ct = Je.children) === null || ct === void 0 ? void 0 : ct.map((dt) => He(dt))) || []
|
|
42287
42287
|
});
|
|
42288
42288
|
};
|
|
42289
42289
|
let We;
|
|
@@ -42294,8 +42294,8 @@ const FilterDropdown = (C) => {
|
|
|
42294
42294
|
if (typeof te.filterDropdown == "function")
|
|
42295
42295
|
We = te.filterDropdown({
|
|
42296
42296
|
prefixCls: `${ne}-custom`,
|
|
42297
|
-
setSelectedKeys: (
|
|
42298
|
-
selectedKeys:
|
|
42297
|
+
setSelectedKeys: (Je) => Fe({
|
|
42298
|
+
selectedKeys: Je
|
|
42299
42299
|
}),
|
|
42300
42300
|
selectedKeys: De(),
|
|
42301
42301
|
confirm: Ue,
|
|
@@ -42309,7 +42309,7 @@ const FilterDropdown = (C) => {
|
|
|
42309
42309
|
else if (te.filterDropdown)
|
|
42310
42310
|
We = te.filterDropdown;
|
|
42311
42311
|
else {
|
|
42312
|
-
const
|
|
42312
|
+
const Je = De() || [], ct = () => {
|
|
42313
42313
|
var vt, ht;
|
|
42314
42314
|
const bt = (vt = rt == null ? void 0 : rt("Table.filter")) !== null && vt !== void 0 ? vt : /* @__PURE__ */ React.createElement(Empty$1, {
|
|
42315
42315
|
image: Empty$1.PRESENTED_IMAGE_SIMPLE,
|
|
@@ -42336,8 +42336,8 @@ const FilterDropdown = (C) => {
|
|
|
42336
42336
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
42337
42337
|
className: `${J}-filter-dropdown-tree`
|
|
42338
42338
|
}, oe ? /* @__PURE__ */ React.createElement(Checkbox$1, {
|
|
42339
|
-
checked:
|
|
42340
|
-
indeterminate:
|
|
42339
|
+
checked: Je.length === flattenKeys(te.filters).length,
|
|
42340
|
+
indeterminate: Je.length > 0 && Je.length < flattenKeys(te.filters).length,
|
|
42341
42341
|
className: `${J}-filter-dropdown-checkall`,
|
|
42342
42342
|
onChange: Pe
|
|
42343
42343
|
}, (ht = se == null ? void 0 : se.filterCheckall) !== null && ht !== void 0 ? ht : se == null ? void 0 : se.filterCheckAll) : null, /* @__PURE__ */ React.createElement(Tree$1, {
|
|
@@ -42348,8 +42348,8 @@ const FilterDropdown = (C) => {
|
|
|
42348
42348
|
checkStrictly: !oe,
|
|
42349
42349
|
className: `${ne}-menu`,
|
|
42350
42350
|
onCheck: Oe,
|
|
42351
|
-
checkedKeys:
|
|
42352
|
-
selectedKeys:
|
|
42351
|
+
checkedKeys: Je,
|
|
42352
|
+
selectedKeys: Je,
|
|
42353
42353
|
showIcon: !1,
|
|
42354
42354
|
treeData: ke({
|
|
42355
42355
|
filters: te.filters
|
|
@@ -42379,13 +42379,13 @@ const FilterDropdown = (C) => {
|
|
|
42379
42379
|
className: Te,
|
|
42380
42380
|
onSelect: Fe,
|
|
42381
42381
|
onDeselect: Fe,
|
|
42382
|
-
selectedKeys:
|
|
42382
|
+
selectedKeys: Je,
|
|
42383
42383
|
getPopupContainer: me,
|
|
42384
42384
|
openKeys: we,
|
|
42385
42385
|
onOpenChange: Me,
|
|
42386
42386
|
items: Rt
|
|
42387
42387
|
}));
|
|
42388
|
-
}, dt = () => pe ? isEqual((ce || []).map((vt) => String(vt)),
|
|
42388
|
+
}, dt = () => pe ? isEqual((ce || []).map((vt) => String(vt)), Je, !0) : Je.length === 0;
|
|
42389
42389
|
We = /* @__PURE__ */ React.createElement(React.Fragment, null, ct(), /* @__PURE__ */ React.createElement("div", {
|
|
42390
42390
|
className: `${ee}-dropdown-btns`
|
|
42391
42391
|
}, /* @__PURE__ */ React.createElement(Button$2, {
|
|
@@ -42408,8 +42408,8 @@ const FilterDropdown = (C) => {
|
|
|
42408
42408
|
trigger: ["click"],
|
|
42409
42409
|
placement: Ke === "rtl" ? "bottomLeft" : "bottomRight",
|
|
42410
42410
|
children: (() => {
|
|
42411
|
-
let
|
|
42412
|
-
return typeof te.filterIcon == "function" ?
|
|
42411
|
+
let Je;
|
|
42412
|
+
return typeof te.filterIcon == "function" ? Je = te.filterIcon(_e) : te.filterIcon ? Je = te.filterIcon : Je = /* @__PURE__ */ React.createElement(FilterFilled$1, null), /* @__PURE__ */ React.createElement("span", {
|
|
42413
42413
|
role: "button",
|
|
42414
42414
|
tabIndex: -1,
|
|
42415
42415
|
className: classNames(`${ee}-trigger`, {
|
|
@@ -42418,7 +42418,7 @@ const FilterDropdown = (C) => {
|
|
|
42418
42418
|
onClick: (ct) => {
|
|
42419
42419
|
ct.stopPropagation();
|
|
42420
42420
|
}
|
|
42421
|
-
},
|
|
42421
|
+
}, Je);
|
|
42422
42422
|
})(),
|
|
42423
42423
|
getPopupContainer: me
|
|
42424
42424
|
}, Object.assign(Object.assign({}, fe), {
|
|
@@ -44230,8 +44230,8 @@ const ASCEND = "ascend", DESCEND = "descend", getMultiplePriority = (C) => typeo
|
|
|
44230
44230
|
} = C, Ie = devUseWarning("Table");
|
|
44231
44231
|
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && Ie(!(typeof ue == "function" && ue.length > 1), "usage", "`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");
|
|
44232
44232
|
const De = React.useMemo(() => se || convertChildrenToColumns(ve), [se, ve]), Ne = React.useMemo(() => De.some((Wt) => Wt.responsive), [De]), Fe = useBreakpoint(Ne), Oe = React.useMemo(() => {
|
|
44233
|
-
const Wt = new Set(Object.keys(Fe).filter((
|
|
44234
|
-
return De.filter((
|
|
44233
|
+
const Wt = new Set(Object.keys(Fe).filter((Jt) => Fe[Jt]));
|
|
44234
|
+
return De.filter((Jt) => !Jt.responsive || Jt.responsive.some((dn) => Wt.has(dn)));
|
|
44235
44235
|
}, [De, Fe]), we = omit(C, ["className", "style", "columns"]), {
|
|
44236
44236
|
locale: Ae = defaultLocale,
|
|
44237
44237
|
direction: Me,
|
|
@@ -44246,26 +44246,26 @@ const ASCEND = "ascend", DESCEND = "descend", getMultiplePriority = (C) => typeo
|
|
|
44246
44246
|
expandIcon: (F = ye == null ? void 0 : ye.expandIcon) !== null && F !== void 0 ? F : (V = je == null ? void 0 : je.expandable) === null || V === void 0 ? void 0 : V.expandIcon
|
|
44247
44247
|
}), {
|
|
44248
44248
|
childrenColumnName: lt = "children"
|
|
44249
|
-
} = rt, it = React.useMemo(() => Ue.some((Wt) => Wt == null ? void 0 : Wt[lt]) ? "nest" : Se || ye != null && ye.expandedRowRender ? "row" : null, [Ue]),
|
|
44249
|
+
} = rt, it = React.useMemo(() => Ue.some((Wt) => Wt == null ? void 0 : Wt[lt]) ? "nest" : Se || ye != null && ye.expandedRowRender ? "row" : null, [Ue]), Je = {
|
|
44250
44250
|
body: React.useRef(null)
|
|
44251
44251
|
}, ct = useContainerWidth(Le), dt = React.useRef(null), vt = React.useRef(null);
|
|
44252
44252
|
useProxyImperativeHandle($, () => Object.assign(Object.assign({}, vt.current), {
|
|
44253
44253
|
nativeElement: dt.current
|
|
44254
44254
|
}));
|
|
44255
|
-
const ht = React.useMemo(() => typeof ue == "function" ? ue : (Wt) => Wt == null ? void 0 : Wt[ue], [ue]), [bt] = useLazyKVMap$1(Ue, lt, ht), Rt = {}, wt = function(Wt,
|
|
44255
|
+
const ht = React.useMemo(() => typeof ue == "function" ? ue : (Wt) => Wt == null ? void 0 : Wt[ue], [ue]), [bt] = useLazyKVMap$1(Ue, lt, ht), Rt = {}, wt = function(Wt, Jt) {
|
|
44256
44256
|
let dn = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
44257
44257
|
var ln, gn, mt, Ot;
|
|
44258
44258
|
const pt = Object.assign(Object.assign({}, Rt), Wt);
|
|
44259
|
-
dn && ((ln = Rt.resetPagination) === null || ln === void 0 || ln.call(Rt), !((gn = pt.pagination) === null || gn === void 0) && gn.current && (pt.pagination.current = 1), ie && ((mt = ie.onChange) === null || mt === void 0 || mt.call(ie, 1, (Ot = pt.pagination) === null || Ot === void 0 ? void 0 : Ot.pageSize))), Ce && Ce.scrollToFirstRowOnChange !== !1 &&
|
|
44260
|
-
getContainer: () =>
|
|
44259
|
+
dn && ((ln = Rt.resetPagination) === null || ln === void 0 || ln.call(Rt), !((gn = pt.pagination) === null || gn === void 0) && gn.current && (pt.pagination.current = 1), ie && ((mt = ie.onChange) === null || mt === void 0 || mt.call(ie, 1, (Ot = pt.pagination) === null || Ot === void 0 ? void 0 : Ot.pageSize))), Ce && Ce.scrollToFirstRowOnChange !== !1 && Je.body.current && scrollTo(0, {
|
|
44260
|
+
getContainer: () => Je.body.current
|
|
44261
44261
|
}), he == null || he(pt.pagination, pt.filters, pt.sorter, {
|
|
44262
44262
|
currentDataSource: getFilterData(getSortData(Ue, pt.sorterStates, lt), pt.filterStates, lt),
|
|
44263
|
-
action:
|
|
44263
|
+
action: Jt
|
|
44264
44264
|
});
|
|
44265
|
-
}, st = (Wt,
|
|
44265
|
+
}, st = (Wt, Jt) => {
|
|
44266
44266
|
wt({
|
|
44267
44267
|
sorter: Wt,
|
|
44268
|
-
sorterStates:
|
|
44268
|
+
sorterStates: Jt
|
|
44269
44269
|
}, "sort", !1);
|
|
44270
44270
|
}, [ut, Ge, et, Ze] = useSorter({
|
|
44271
44271
|
prefixCls: Le,
|
|
@@ -44276,10 +44276,10 @@ const ASCEND = "ascend", DESCEND = "descend", getMultiplePriority = (C) => typeo
|
|
|
44276
44276
|
showSorterTooltip: xe
|
|
44277
44277
|
}), nt = React.useMemo(() => getSortData(Ue, Ge, lt), [Ue, Ge]);
|
|
44278
44278
|
Rt.sorter = Ze(), Rt.sorterStates = Ge;
|
|
44279
|
-
const tt = (Wt,
|
|
44279
|
+
const tt = (Wt, Jt) => {
|
|
44280
44280
|
wt({
|
|
44281
44281
|
filters: Wt,
|
|
44282
|
-
filterStates:
|
|
44282
|
+
filterStates: Jt
|
|
44283
44283
|
}, "filter", !0);
|
|
44284
44284
|
}, [qe, ot, ft] = useFilter$1({
|
|
44285
44285
|
prefixCls: Le,
|
|
@@ -44293,16 +44293,16 @@ const ASCEND = "ascend", DESCEND = "descend", getMultiplePriority = (C) => typeo
|
|
|
44293
44293
|
Rt.filters = ft, Rt.filterStates = ot;
|
|
44294
44294
|
const $t = React.useMemo(() => {
|
|
44295
44295
|
const Wt = {};
|
|
44296
|
-
return Object.keys(ft).forEach((
|
|
44297
|
-
ft[
|
|
44296
|
+
return Object.keys(ft).forEach((Jt) => {
|
|
44297
|
+
ft[Jt] !== null && (Wt[Jt] = ft[Jt]);
|
|
44298
44298
|
}), Object.assign(Object.assign({}, et), {
|
|
44299
44299
|
filters: Wt
|
|
44300
44300
|
});
|
|
44301
|
-
}, [et, ft]), [Mt] = useTitleColumns$1($t), Ft = (Wt,
|
|
44301
|
+
}, [et, ft]), [Mt] = useTitleColumns$1($t), Ft = (Wt, Jt) => {
|
|
44302
44302
|
wt({
|
|
44303
44303
|
pagination: Object.assign(Object.assign({}, Rt.pagination), {
|
|
44304
44304
|
current: Wt,
|
|
44305
|
-
pageSize:
|
|
44305
|
+
pageSize: Jt
|
|
44306
44306
|
})
|
|
44307
44307
|
}, "paginate");
|
|
44308
44308
|
}, [Ct, Bt] = usePagination(yt.length, Ft, ie);
|
|
@@ -44312,10 +44312,10 @@ const ASCEND = "ascend", DESCEND = "descend", getMultiplePriority = (C) => typeo
|
|
|
44312
44312
|
return yt;
|
|
44313
44313
|
const {
|
|
44314
44314
|
current: Wt = 1,
|
|
44315
|
-
total:
|
|
44315
|
+
total: Jt,
|
|
44316
44316
|
pageSize: dn = DEFAULT_PAGE_SIZE
|
|
44317
44317
|
} = Ct;
|
|
44318
|
-
return process.env.NODE_ENV !== "production" && Ie(Wt > 0, "usage", "`current` should be positive number."), yt.length <
|
|
44318
|
+
return process.env.NODE_ENV !== "production" && Ie(Wt > 0, "usage", "`current` should be positive number."), yt.length < Jt ? yt.length > dn ? (process.env.NODE_ENV !== "production" && Ie(!1, "usage", "`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."), yt.slice((Wt - 1) * dn, Wt * dn)) : yt : yt.slice((Wt - 1) * dn, Wt * dn);
|
|
44319
44319
|
}, [!!ie, yt, Ct == null ? void 0 : Ct.current, Ct == null ? void 0 : Ct.pageSize, Ct == null ? void 0 : Ct.total]), [Pt, Tt] = useSelection({
|
|
44320
44320
|
prefixCls: Le,
|
|
44321
44321
|
data: yt,
|
|
@@ -44326,10 +44326,10 @@ const ASCEND = "ascend", DESCEND = "descend", getMultiplePriority = (C) => typeo
|
|
|
44326
44326
|
childrenColumnName: lt,
|
|
44327
44327
|
locale: at,
|
|
44328
44328
|
getPopupContainer: pe || Xe
|
|
44329
|
-
}, le), _t = (Wt,
|
|
44329
|
+
}, le), _t = (Wt, Jt, dn) => {
|
|
44330
44330
|
let ln;
|
|
44331
|
-
return typeof de == "function" ? ln = classNames(de(Wt,
|
|
44332
|
-
[`${Le}-row-selected`]: Tt.has(ht(Wt,
|
|
44331
|
+
return typeof de == "function" ? ln = classNames(de(Wt, Jt, dn)) : ln = classNames(de), classNames({
|
|
44332
|
+
[`${Le}-row-selected`]: Tt.has(ht(Wt, Jt))
|
|
44333
44333
|
}, ln);
|
|
44334
44334
|
};
|
|
44335
44335
|
rt.__PARENT_RENDER_ICON__ = rt.expandIcon, rt.expandIcon = rt.expandIcon || fe || renderExpandIcon(at), it === "nest" && rt.expandIconColumnIndex === void 0 ? rt.expandIconColumnIndex = le ? 1 : 0 : rt.expandIconColumnIndex > 0 && le && (rt.expandIconColumnIndex -= 1), typeof rt.indentSize != "number" && (rt.indentSize = typeof be == "number" ? be : 15);
|
|
@@ -44338,7 +44338,7 @@ const ASCEND = "ascend", DESCEND = "descend", getMultiplePriority = (C) => typeo
|
|
|
44338
44338
|
if (ie !== !1 && (Ct != null && Ct.total)) {
|
|
44339
44339
|
let Wt;
|
|
44340
44340
|
Ct.size ? Wt = Ct.size : Wt = Ye === "small" || Ye === "middle" ? "small" : void 0;
|
|
44341
|
-
const
|
|
44341
|
+
const Jt = (gn) => /* @__PURE__ */ React.createElement(Pagination$1, Object.assign({}, Ct, {
|
|
44342
44342
|
className: classNames(`${Le}-pagination ${Le}-pagination-${gn}`, Ct.className),
|
|
44343
44343
|
size: Wt
|
|
44344
44344
|
})), dn = Me === "rtl" ? "left" : "right", {
|
|
@@ -44346,9 +44346,9 @@ const ASCEND = "ascend", DESCEND = "descend", getMultiplePriority = (C) => typeo
|
|
|
44346
44346
|
} = Ct;
|
|
44347
44347
|
if (ln !== null && Array.isArray(ln)) {
|
|
44348
44348
|
const gn = ln.find((pt) => pt.includes("top")), mt = ln.find((pt) => pt.includes("bottom")), Ot = ln.every((pt) => `${pt}` == "none");
|
|
44349
|
-
!gn && !mt && !Ot && (Gt =
|
|
44349
|
+
!gn && !mt && !Ot && (Gt = Jt(dn)), gn && (Ht = Jt(gn.toLowerCase().replace("top", ""))), mt && (Gt = Jt(mt.toLowerCase().replace("bottom", "")));
|
|
44350
44350
|
} else
|
|
44351
|
-
Gt =
|
|
44351
|
+
Gt = Jt(dn);
|
|
44352
44352
|
}
|
|
44353
44353
|
let zt;
|
|
44354
44354
|
typeof ce == "boolean" ? zt = {
|
|
@@ -44363,12 +44363,12 @@ const ASCEND = "ascend", DESCEND = "descend", getMultiplePriority = (C) => typeo
|
|
|
44363
44363
|
}), qt = $e ? RcVirtualTable$1 : RcTable$1, sn = {}, _n = React.useMemo(() => {
|
|
44364
44364
|
const {
|
|
44365
44365
|
fontSize: Wt,
|
|
44366
|
-
lineHeight:
|
|
44366
|
+
lineHeight: Jt,
|
|
44367
44367
|
lineWidth: dn,
|
|
44368
44368
|
padding: ln,
|
|
44369
44369
|
paddingXS: gn,
|
|
44370
44370
|
paddingSM: mt
|
|
44371
|
-
} = Pe, Ot = Math.floor(Wt *
|
|
44371
|
+
} = Pe, Ot = Math.floor(Wt * Jt);
|
|
44372
44372
|
switch (Ye) {
|
|
44373
44373
|
case "middle":
|
|
44374
44374
|
return mt * 2 + Ot + dn;
|
|
@@ -44402,7 +44402,7 @@ const ASCEND = "ascend", DESCEND = "descend", getMultiplePriority = (C) => typeo
|
|
|
44402
44402
|
emptyText: Kt,
|
|
44403
44403
|
// Internal
|
|
44404
44404
|
internalHooks: INTERNAL_HOOKS,
|
|
44405
|
-
internalRefs:
|
|
44405
|
+
internalRefs: Je,
|
|
44406
44406
|
transformColumns: At,
|
|
44407
44407
|
getContainerWidth: ct
|
|
44408
44408
|
})), Gt)));
|
|
@@ -45475,7 +45475,7 @@ const ELLIPSIS_STR = "...", Base = /* @__PURE__ */ React.forwardRef((C, $) => {
|
|
|
45475
45475
|
useLayoutEffect$1(() => {
|
|
45476
45476
|
lt(it && He);
|
|
45477
45477
|
}, [it, He]);
|
|
45478
|
-
const
|
|
45478
|
+
const Je = He && (rt ? Xe : ze), ct = He && We === 1 && rt, dt = He && We > 1 && rt, vt = (qe, ot) => {
|
|
45479
45479
|
var ft;
|
|
45480
45480
|
ke(ot.expanded), (ft = Te.onExpand) === null || ft === void 0 || ft.call(Te, qe, ot);
|
|
45481
45481
|
}, [ht, bt] = React.useState(0), Rt = (qe) => {
|
|
@@ -45507,7 +45507,7 @@ const ELLIPSIS_STR = "...", Base = /* @__PURE__ */ React.forwardRef((C, $) => {
|
|
|
45507
45507
|
const st = useTooltipProps$1(Te.tooltip, ye.text, ne), ut = React.useMemo(() => {
|
|
45508
45508
|
if (!(!Le || rt))
|
|
45509
45509
|
return [ye.text, ne, le, st.title].find(isValidText);
|
|
45510
|
-
}, [Le, rt, le, st.title,
|
|
45510
|
+
}, [Le, rt, le, st.title, Je]);
|
|
45511
45511
|
if (Se)
|
|
45512
45512
|
return /* @__PURE__ */ React.createElement(Editable$1, {
|
|
45513
45513
|
value: (F = ye.text) !== null && F !== void 0 ? F : typeof ne == "string" ? ne : "",
|
|
@@ -45577,7 +45577,7 @@ const ELLIPSIS_STR = "...", Base = /* @__PURE__ */ React.forwardRef((C, $) => {
|
|
|
45577
45577
|
}, (qe) => /* @__PURE__ */ React.createElement(EllipsisTooltip$1, {
|
|
45578
45578
|
tooltipProps: st,
|
|
45579
45579
|
enableEllipsis: He,
|
|
45580
|
-
isEllipsis:
|
|
45580
|
+
isEllipsis: Je
|
|
45581
45581
|
}, /* @__PURE__ */ React.createElement(OriginTypography, Object.assign({
|
|
45582
45582
|
className: classNames({
|
|
45583
45583
|
[`${pe}-${ee}`]: ee,
|
|
@@ -47234,14 +47234,14 @@ const LIST_IGNORE = `__LIST_IGNORE_${Date.now()}__`, InternalUpload = (C, $) =>
|
|
|
47234
47234
|
});
|
|
47235
47235
|
delete He.className, delete He.style, (!pe || Ie) && delete He.id;
|
|
47236
47236
|
const We = `${ke}-wrapper`, [Ke, rt, lt] = useStyle(ke, We), [it] = useLocale$1("Upload", defaultLocale.Upload), {
|
|
47237
|
-
showRemoveIcon:
|
|
47237
|
+
showRemoveIcon: Je,
|
|
47238
47238
|
showPreviewIcon: ct,
|
|
47239
47239
|
showDownloadIcon: dt,
|
|
47240
47240
|
removeIcon: vt,
|
|
47241
47241
|
previewIcon: ht,
|
|
47242
47242
|
downloadIcon: bt,
|
|
47243
47243
|
extra: Rt
|
|
47244
|
-
} = typeof J == "boolean" ? {} : J, wt = typeof
|
|
47244
|
+
} = typeof J == "boolean" ? {} : J, wt = typeof Je == "undefined" ? !Ie : Je, st = (nt, tt) => J ? /* @__PURE__ */ React.createElement(UploadList$1, {
|
|
47245
47245
|
prefixCls: ke,
|
|
47246
47246
|
listType: ee,
|
|
47247
47247
|
items: De,
|
|
@@ -48152,8 +48152,8 @@ function fetchBaseQuery(C) {
|
|
|
48152
48152
|
type: ge
|
|
48153
48153
|
})];
|
|
48154
48154
|
case 1:
|
|
48155
|
-
ze.headers = it.sent() || xe, Ve = function(
|
|
48156
|
-
return typeof
|
|
48155
|
+
ze.headers = it.sent() || xe, Ve = function(Je) {
|
|
48156
|
+
return typeof Je == "object" && (isPlainObject$2(Je) || Array.isArray(Je) || typeof Je.toJSON == "function");
|
|
48157
48157
|
}, !je.headers.has("content-type") && Ve(je.body) && je.headers.set("content-type", ie), Ve(je.body) && ae(je.headers) && (je.body = JSON.stringify(je.body, le)), Ie && (Xe = ~Ee.indexOf("?") ? "&" : "?", Ye = ne ? ne(Ie) : new URLSearchParams(stripUndefined(Ie)), Ee += Xe + Ye), Ee = joinUrls(V, Ee), at = new Request(Ee, je), Ue = at.clone(), be = { request: Ue }, Te = !1, Pe = Ae && setTimeout(function() {
|
|
48158
48158
|
Te = !0, he.abort();
|
|
48159
48159
|
}, Ae), it.label = 2;
|
|
@@ -48178,13 +48178,13 @@ function fetchBaseQuery(C) {
|
|
|
48178
48178
|
He = Le.clone(), be.response = He, Ke = "", it.label = 7;
|
|
48179
48179
|
case 7:
|
|
48180
48180
|
return it.trys.push([7, 9, , 10]), [4, Promise.all([
|
|
48181
|
-
ve(Le, Ne).then(function(
|
|
48182
|
-
return We =
|
|
48183
|
-
}, function(
|
|
48184
|
-
return rt =
|
|
48181
|
+
ve(Le, Ne).then(function(Je) {
|
|
48182
|
+
return We = Je;
|
|
48183
|
+
}, function(Je) {
|
|
48184
|
+
return rt = Je;
|
|
48185
48185
|
}),
|
|
48186
|
-
He.text().then(function(
|
|
48187
|
-
return Ke =
|
|
48186
|
+
He.text().then(function(Je) {
|
|
48187
|
+
return Ke = Je;
|
|
48188
48188
|
}, function() {
|
|
48189
48189
|
})
|
|
48190
48190
|
])];
|
|
@@ -50015,7 +50015,7 @@ const JOB_CARD_CONFIG = {
|
|
|
50015
50015
|
}, [C]);
|
|
50016
50016
|
}, initialState$7 = {
|
|
50017
50017
|
per_page: 18,
|
|
50018
|
-
tab: "
|
|
50018
|
+
tab: "relevant",
|
|
50019
50019
|
filters: {
|
|
50020
50020
|
keyword: ""
|
|
50021
50021
|
},
|
|
@@ -50595,7 +50595,134 @@ const JOB_CARD_CONFIG = {
|
|
|
50595
50595
|
datePostedOptions: oe,
|
|
50596
50596
|
skillRatings: ie
|
|
50597
50597
|
};
|
|
50598
|
-
},
|
|
50598
|
+
}, initialState$5 = {
|
|
50599
|
+
selectedJobId: null
|
|
50600
|
+
}, layoutSlice = createSlice({
|
|
50601
|
+
name: "layout",
|
|
50602
|
+
initialState: initialState$5,
|
|
50603
|
+
reducers: {
|
|
50604
|
+
setSelectedJobId: (C, $) => {
|
|
50605
|
+
C.selectedJobId = $.payload;
|
|
50606
|
+
},
|
|
50607
|
+
clearSelectedJobId: (C) => {
|
|
50608
|
+
C.selectedJobId = null;
|
|
50609
|
+
}
|
|
50610
|
+
}
|
|
50611
|
+
}), { setSelectedJobId, clearSelectedJobId } = layoutSlice.actions, layoutReducer = layoutSlice.reducer, serializeFiltersToQueryParams = (C) => {
|
|
50612
|
+
const $ = new URLSearchParams();
|
|
50613
|
+
return !C || typeof C != "object" || Object.keys(C).forEach((F) => {
|
|
50614
|
+
const V = C[F];
|
|
50615
|
+
if (!(V == null || V === ""))
|
|
50616
|
+
if (Array.isArray(V))
|
|
50617
|
+
V.length > 0 && $.append(F, V.join(","));
|
|
50618
|
+
else if (typeof V == "object")
|
|
50619
|
+
try {
|
|
50620
|
+
$.append(F, JSON.stringify(V));
|
|
50621
|
+
} catch (K) {
|
|
50622
|
+
}
|
|
50623
|
+
else
|
|
50624
|
+
$.append(F, String(V));
|
|
50625
|
+
}), $;
|
|
50626
|
+
}, deserializeQueryParamsToFilters = (C) => {
|
|
50627
|
+
const $ = {};
|
|
50628
|
+
return (typeof C == "string" ? (
|
|
50629
|
+
// eslint-disable-next-line no-undef
|
|
50630
|
+
new URLSearchParams(C)
|
|
50631
|
+
) : C).forEach((V, K) => {
|
|
50632
|
+
try {
|
|
50633
|
+
const J = JSON.parse(V);
|
|
50634
|
+
if (typeof J == "object") {
|
|
50635
|
+
$[K] = J;
|
|
50636
|
+
return;
|
|
50637
|
+
}
|
|
50638
|
+
} catch (J) {
|
|
50639
|
+
}
|
|
50640
|
+
if (V.includes(","))
|
|
50641
|
+
$[K] = V.split(",").filter((J) => J.trim() !== "");
|
|
50642
|
+
else if (!isNaN(V) && V !== "") {
|
|
50643
|
+
const J = Number(V);
|
|
50644
|
+
isNaN(J) ? $[K] = V : $[K] = J;
|
|
50645
|
+
} else
|
|
50646
|
+
$[K] = V;
|
|
50647
|
+
}), $;
|
|
50648
|
+
}, updateURLWithFilters = (C) => {
|
|
50649
|
+
if (typeof window == "undefined")
|
|
50650
|
+
return;
|
|
50651
|
+
const $ = serializeFiltersToQueryParams(C), F = $.toString() ? (
|
|
50652
|
+
// eslint-disable-next-line no-undef
|
|
50653
|
+
`${window.location.pathname}?${$.toString()}`
|
|
50654
|
+
) : (
|
|
50655
|
+
// eslint-disable-next-line no-undef
|
|
50656
|
+
window.location.pathname
|
|
50657
|
+
);
|
|
50658
|
+
window.history.replaceState({}, "", F);
|
|
50659
|
+
}, getFiltersFromURL = () => typeof window == "undefined" ? {} : deserializeQueryParamsToFilters(window.location.search), updateURLWithJobId = (C) => {
|
|
50660
|
+
if (typeof window == "undefined")
|
|
50661
|
+
return;
|
|
50662
|
+
const $ = new URLSearchParams(window.location.search);
|
|
50663
|
+
C ? $.set("job_ids", String(C)) : $.delete("job_ids");
|
|
50664
|
+
const F = $.toString() ? (
|
|
50665
|
+
// eslint-disable-next-line no-undef
|
|
50666
|
+
`${window.location.pathname}?${$.toString()}`
|
|
50667
|
+
) : (
|
|
50668
|
+
// eslint-disable-next-line no-undef
|
|
50669
|
+
window.location.pathname
|
|
50670
|
+
);
|
|
50671
|
+
window.history.replaceState({}, "", F);
|
|
50672
|
+
}, getJobIdFromURL = () => typeof window == "undefined" ? null : new URLSearchParams(window.location.search).get("job_ids") || null, updateURLWithTab = (C) => {
|
|
50673
|
+
if (typeof window == "undefined")
|
|
50674
|
+
return;
|
|
50675
|
+
const $ = new URLSearchParams(window.location.search);
|
|
50676
|
+
C ? $.set("tab", String(C)) : $.delete("tab");
|
|
50677
|
+
const F = $.toString() ? (
|
|
50678
|
+
// eslint-disable-next-line no-undef
|
|
50679
|
+
`${window.location.pathname}?${$.toString()}`
|
|
50680
|
+
) : (
|
|
50681
|
+
// eslint-disable-next-line no-undef
|
|
50682
|
+
window.location.pathname
|
|
50683
|
+
);
|
|
50684
|
+
window.history.replaceState({}, "", F);
|
|
50685
|
+
}, getTabFromURL = () => typeof window == "undefined" ? null : new URLSearchParams(window.location.search).get("tab") || null;
|
|
50686
|
+
function useJobQueryParams({ syncToURL: C = !0, syncFromURL: $ = !0 } = {}) {
|
|
50687
|
+
const F = useDispatch(), V = useSelector(
|
|
50688
|
+
(ae) => ae.scalantCareerHub.layout.selectedJobId
|
|
50689
|
+
), K = useSelector(
|
|
50690
|
+
(ae) => {
|
|
50691
|
+
var oe, ie;
|
|
50692
|
+
return ((ie = (oe = ae.scalantCareerHub) == null ? void 0 : oe.filter) == null ? void 0 : ie.tab) || TAG_TO_TAB_MAPPING.relevant;
|
|
50693
|
+
}
|
|
50694
|
+
), J = useRef(!1), ee = useRef(!1);
|
|
50695
|
+
useEffect(() => {
|
|
50696
|
+
if (!$ || J.current)
|
|
50697
|
+
return;
|
|
50698
|
+
ee.current = !0;
|
|
50699
|
+
const ae = getTabFromURL(), oe = getJobIdFromURL();
|
|
50700
|
+
if (ae && Object.values(TAG_TO_TAB_MAPPING).includes(ae) && F(setTab(ae)), oe) {
|
|
50701
|
+
const ie = Number(oe);
|
|
50702
|
+
isNaN(ie) || F(setSelectedJobId(ie));
|
|
50703
|
+
}
|
|
50704
|
+
J.current = !0, ee.current = !1;
|
|
50705
|
+
}, [F, $]), useEffect(() => {
|
|
50706
|
+
!C || ee.current || !J.current || updateURLWithTab(K);
|
|
50707
|
+
}, [K, C]), useEffect(() => {
|
|
50708
|
+
!C || ee.current || !J.current || updateURLWithJobId(V || null);
|
|
50709
|
+
}, [V, C]);
|
|
50710
|
+
const te = (ae) => {
|
|
50711
|
+
F(ae ? setSelectedJobId(ae) : clearSelectedJobId()), C && updateURLWithJobId(ae);
|
|
50712
|
+
}, ne = (ae) => {
|
|
50713
|
+
Object.values(TAG_TO_TAB_MAPPING).includes(ae) && (F(setTab(ae)), C && updateURLWithTab(ae));
|
|
50714
|
+
};
|
|
50715
|
+
return {
|
|
50716
|
+
currentTab: K,
|
|
50717
|
+
selectedJobId: V,
|
|
50718
|
+
updateJobId: te,
|
|
50719
|
+
updateTab: ne,
|
|
50720
|
+
updateTabAndJobId: (ae, oe) => {
|
|
50721
|
+
ne(ae), te(oe);
|
|
50722
|
+
}
|
|
50723
|
+
};
|
|
50724
|
+
}
|
|
50725
|
+
const countPendingSteps = (C, $) => {
|
|
50599
50726
|
let F = 0;
|
|
50600
50727
|
return C != null && C.data && Object.values(C.data).forEach((V) => {
|
|
50601
50728
|
V.contests && V.contests.cleared === !1 && (F += 1), V.skills && V.skills.cleared === !1 && (F += 1);
|
|
@@ -50841,20 +50968,7 @@ function combineReducers(C) {
|
|
|
50841
50968
|
return ie = ie || J.length !== Object.keys(re).length, ie ? le : re;
|
|
50842
50969
|
};
|
|
50843
50970
|
}
|
|
50844
|
-
const initialState$
|
|
50845
|
-
selectedJobId: null
|
|
50846
|
-
}, layoutSlice = createSlice({
|
|
50847
|
-
name: "layout",
|
|
50848
|
-
initialState: initialState$5,
|
|
50849
|
-
reducers: {
|
|
50850
|
-
setSelectedJobId: (C, $) => {
|
|
50851
|
-
C.selectedJobId = $.payload;
|
|
50852
|
-
},
|
|
50853
|
-
clearSelectedJobId: (C) => {
|
|
50854
|
-
C.selectedJobId = null;
|
|
50855
|
-
}
|
|
50856
|
-
}
|
|
50857
|
-
}), { setSelectedJobId, clearSelectedJobId } = layoutSlice.actions, layoutReducer = layoutSlice.reducer, initialState$4 = {
|
|
50971
|
+
const initialState$4 = {
|
|
50858
50972
|
processCounts: DEFAULT_PROCESS_COUNTS,
|
|
50859
50973
|
userProfileData: null,
|
|
50860
50974
|
filterModalOpen: !1,
|
|
@@ -52164,41 +52278,40 @@ const metaDataReducer = metaDataSlice.reducer, initialState$1 = {
|
|
|
52164
52278
|
icon
|
|
52165
52279
|
};
|
|
52166
52280
|
function TagsSection() {
|
|
52167
|
-
const
|
|
52168
|
-
|
|
52169
|
-
|
|
52170
|
-
|
|
52171
|
-
|
|
52172
|
-
|
|
52173
|
-
|
|
52174
|
-
|
|
52175
|
-
|
|
52176
|
-
|
|
52177
|
-
|
|
52178
|
-
|
|
52179
|
-
|
|
52180
|
-
|
|
52181
|
-
|
|
52182
|
-
|
|
52183
|
-
|
|
52184
|
-
|
|
52185
|
-
return F[te] || 0;
|
|
52281
|
+
const { currentTab: C, updateTab: $ } = useJobQueryParams({
|
|
52282
|
+
syncToURL: !0,
|
|
52283
|
+
syncFromURL: !1
|
|
52284
|
+
// Don't sync from URL here, let JobsPage handle initialization
|
|
52285
|
+
}), F = C || TAG_TO_TAB_MAPPING.relevant, V = useSelector(
|
|
52286
|
+
(te) => {
|
|
52287
|
+
var ne, re;
|
|
52288
|
+
return ((re = (ne = te.scalantCareerHub) == null ? void 0 : ne.dashboard) == null ? void 0 : re.processCounts) || {};
|
|
52289
|
+
}
|
|
52290
|
+
), K = (te) => {
|
|
52291
|
+
const ne = TAG_TO_TAB_MAPPING[te];
|
|
52292
|
+
ne && $(ne);
|
|
52293
|
+
}, J = (te) => {
|
|
52294
|
+
const ne = TAG_TO_TAB_MAPPING[te];
|
|
52295
|
+
return F === ne;
|
|
52296
|
+
}, ee = (te) => {
|
|
52297
|
+
const ne = COUNT_TO_TAB_MAPPING[te];
|
|
52298
|
+
return V[ne] || 0;
|
|
52186
52299
|
};
|
|
52187
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: styles$E.tagsSection }, Object.keys(JOB_FILTER_TAGS).map((
|
|
52300
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: styles$E.tagsSection }, Object.keys(JOB_FILTER_TAGS).map((te) => /* @__PURE__ */ React__default.createElement(
|
|
52188
52301
|
Tag$1,
|
|
52189
52302
|
{
|
|
52190
52303
|
className: classNames(styles$E.tag, {
|
|
52191
|
-
[styles$E.activeTag]:
|
|
52304
|
+
[styles$E.activeTag]: J(te)
|
|
52192
52305
|
}),
|
|
52193
|
-
key:
|
|
52194
|
-
onClick: () =>
|
|
52306
|
+
key: te,
|
|
52307
|
+
onClick: () => K(te)
|
|
52195
52308
|
},
|
|
52196
|
-
React__default.createElement(JOB_FILTER_TAGS[
|
|
52309
|
+
React__default.createElement(JOB_FILTER_TAGS[te].icon, {
|
|
52197
52310
|
className: styles$E.icon
|
|
52198
52311
|
}),
|
|
52199
|
-
JOB_FILTER_TAGS[
|
|
52312
|
+
JOB_FILTER_TAGS[te].label,
|
|
52200
52313
|
" ",
|
|
52201
|
-
/* @__PURE__ */ React__default.createElement("span", { className: styles$E.count }, "(",
|
|
52314
|
+
/* @__PURE__ */ React__default.createElement("span", { className: styles$E.count }, "(", ee(te), ")")
|
|
52202
52315
|
)));
|
|
52203
52316
|
}
|
|
52204
52317
|
const jobAlert = "_jobAlert_kiep6_1", styles$D = {
|
|
@@ -54054,9 +54167,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
54054
54167
|
it.open("GET", Te, !0), Pe && (it.responseType = "arraybuffer"), it.onreadystatechange = function() {
|
|
54055
54168
|
if (it.readyState === XMLHttpRequest.DONE) {
|
|
54056
54169
|
if (it.status === 200 || it.status === 0) {
|
|
54057
|
-
var
|
|
54058
|
-
if (Pe && it.response ?
|
|
54059
|
-
rt(
|
|
54170
|
+
var Je;
|
|
54171
|
+
if (Pe && it.response ? Je = new Uint8Array(it.response) : !Pe && it.responseText && (Je = (0, J.stringToBytes)(it.responseText)), Je) {
|
|
54172
|
+
rt(Je);
|
|
54060
54173
|
return;
|
|
54061
54174
|
}
|
|
54062
54175
|
}
|
|
@@ -54120,7 +54233,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
54120
54233
|
$.DOMSVGFactory = $e;
|
|
54121
54234
|
var Ie = /* @__PURE__ */ function() {
|
|
54122
54235
|
function Le(Te) {
|
|
54123
|
-
var Pe = Te.viewBox, ke = Te.scale, He = Te.rotation, We = Te.offsetX, Ke = We === void 0 ? 0 : We, rt = Te.offsetY, lt = rt === void 0 ? 0 : rt, it = Te.dontFlip,
|
|
54236
|
+
var Pe = Te.viewBox, ke = Te.scale, He = Te.rotation, We = Te.offsetX, Ke = We === void 0 ? 0 : We, rt = Te.offsetY, lt = rt === void 0 ? 0 : rt, it = Te.dontFlip, Je = it === void 0 ? !1 : it;
|
|
54124
54237
|
le(this, Le), this.viewBox = Pe, this.scale = ke, this.rotation = He, this.offsetX = Ke, this.offsetY = lt;
|
|
54125
54238
|
var ct = (Pe[2] + Pe[0]) / 2, dt = (Pe[3] + Pe[1]) / 2, vt, ht, bt, Rt;
|
|
54126
54239
|
switch (He %= 360, He < 0 && (He += 360), He) {
|
|
@@ -54139,20 +54252,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
54139
54252
|
default:
|
|
54140
54253
|
throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.");
|
|
54141
54254
|
}
|
|
54142
|
-
|
|
54255
|
+
Je && (bt = -bt, Rt = -Rt);
|
|
54143
54256
|
var wt, st, ut, Ge;
|
|
54144
54257
|
vt === 0 ? (wt = Math.abs(dt - Pe[1]) * ke + Ke, st = Math.abs(ct - Pe[0]) * ke + lt, ut = Math.abs(Pe[3] - Pe[1]) * ke, Ge = Math.abs(Pe[2] - Pe[0]) * ke) : (wt = Math.abs(ct - Pe[0]) * ke + Ke, st = Math.abs(dt - Pe[1]) * ke + lt, ut = Math.abs(Pe[2] - Pe[0]) * ke, Ge = Math.abs(Pe[3] - Pe[1]) * ke), this.transform = [vt * ke, ht * ke, bt * ke, Rt * ke, wt - vt * ke * ct - bt * ke * dt, st - ht * ke * ct - Rt * ke * dt], this.width = ut, this.height = Ge;
|
|
54145
54258
|
}
|
|
54146
54259
|
return de(Le, [{
|
|
54147
54260
|
key: "clone",
|
|
54148
54261
|
value: function() {
|
|
54149
|
-
var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, ke = Pe.scale, He = ke === void 0 ? this.scale : ke, We = Pe.rotation, Ke = We === void 0 ? this.rotation : We, rt = Pe.offsetX, lt = rt === void 0 ? this.offsetX : rt, it = Pe.offsetY,
|
|
54262
|
+
var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, ke = Pe.scale, He = ke === void 0 ? this.scale : ke, We = Pe.rotation, Ke = We === void 0 ? this.rotation : We, rt = Pe.offsetX, lt = rt === void 0 ? this.offsetX : rt, it = Pe.offsetY, Je = it === void 0 ? this.offsetY : it, ct = Pe.dontFlip, dt = ct === void 0 ? !1 : ct;
|
|
54150
54263
|
return new Le({
|
|
54151
54264
|
viewBox: this.viewBox.slice(),
|
|
54152
54265
|
scale: He,
|
|
54153
54266
|
rotation: Ke,
|
|
54154
54267
|
offsetX: lt,
|
|
54155
|
-
offsetY:
|
|
54268
|
+
offsetY: Je,
|
|
54156
54269
|
dontFlip: dt
|
|
54157
54270
|
});
|
|
54158
54271
|
}
|
|
@@ -54280,8 +54393,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
54280
54393
|
var lt = ne(this.times), it;
|
|
54281
54394
|
try {
|
|
54282
54395
|
for (lt.s(); !(it = lt.n()).done; ) {
|
|
54283
|
-
var
|
|
54284
|
-
Pe.push("".concat(
|
|
54396
|
+
var Je = it.value, ct = Je.end - Je.start;
|
|
54397
|
+
Pe.push("".concat(Je.name.padEnd(ke), " ").concat(ct, `ms
|
|
54285
54398
|
`));
|
|
54286
54399
|
}
|
|
54287
54400
|
} catch (dt) {
|
|
@@ -54339,10 +54452,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
54339
54452
|
lt = lt >= 0 && lt <= 59 ? lt : 0;
|
|
54340
54453
|
var it = parseInt(ke[6], 10);
|
|
54341
54454
|
it = it >= 0 && it <= 59 ? it : 0;
|
|
54342
|
-
var
|
|
54455
|
+
var Je = ke[7] || "Z", ct = parseInt(ke[8], 10);
|
|
54343
54456
|
ct = ct >= 0 && ct <= 23 ? ct : 0;
|
|
54344
54457
|
var dt = parseInt(ke[9], 10) || 0;
|
|
54345
|
-
return dt = dt >= 0 && dt <= 59 ? dt : 0,
|
|
54458
|
+
return dt = dt >= 0 && dt <= 59 ? dt : 0, Je === "-" ? (rt += ct, lt += dt) : Je === "+" && (rt -= ct, lt -= dt), new Date(Date.UTC(He, We, Ke, rt, lt, it));
|
|
54346
54459
|
}
|
|
54347
54460
|
}]), Le;
|
|
54348
54461
|
}();
|
|
@@ -54704,7 +54817,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
54704
54817
|
(C, $, F) => {
|
|
54705
54818
|
Object.defineProperty($, "__esModule", {
|
|
54706
54819
|
value: !0
|
|
54707
|
-
}), $.VerbosityLevel = $.Util = $.UnknownErrorException = $.UnexpectedResponseException = $.UNSUPPORTED_FEATURES = $.TextRenderingMode = $.StreamType = $.RenderingIntentFlag = $.PermissionFlag = $.PasswordResponses = $.PasswordException = $.PageActionEventType = $.OPS = $.MissingPDFException = $.IsLittleEndianCached = $.IsEvalSupportedCached = $.InvalidPDFException = $.ImageKind = $.IDENTITY_MATRIX = $.FormatError = $.FontType = $.FONT_IDENTITY_MATRIX = $.DocumentActionEventType = $.CMapCompressionType = $.BaseException = $.AnnotationType = $.AnnotationStateModelType = $.AnnotationReviewState = $.AnnotationReplyType = $.AnnotationMode = $.AnnotationMarkedState = $.AnnotationFlag = $.AnnotationFieldFlag = $.AnnotationBorderStyleType = $.AnnotationActionEventType = $.AbortException = void 0, $.arrayByteLength = ft, $.arraysToBytes = yt, $.assert = it, $.bytesToString = qe, $.createObjectURL = gn, $.createPromiseCapability = ln, $.createValidAbsoluteUrl = dt, $.escapeString = Gt, $.getModificationDate = dn, $.getVerbosityLevel = We, $.info = Ke, $.isArrayBuffer = Wt, $.isArrayEqual =
|
|
54820
|
+
}), $.VerbosityLevel = $.Util = $.UnknownErrorException = $.UnexpectedResponseException = $.UNSUPPORTED_FEATURES = $.TextRenderingMode = $.StreamType = $.RenderingIntentFlag = $.PermissionFlag = $.PasswordResponses = $.PasswordException = $.PageActionEventType = $.OPS = $.MissingPDFException = $.IsLittleEndianCached = $.IsEvalSupportedCached = $.InvalidPDFException = $.ImageKind = $.IDENTITY_MATRIX = $.FormatError = $.FontType = $.FONT_IDENTITY_MATRIX = $.DocumentActionEventType = $.CMapCompressionType = $.BaseException = $.AnnotationType = $.AnnotationStateModelType = $.AnnotationReviewState = $.AnnotationReplyType = $.AnnotationMode = $.AnnotationMarkedState = $.AnnotationFlag = $.AnnotationFieldFlag = $.AnnotationBorderStyleType = $.AnnotationActionEventType = $.AbortException = void 0, $.arrayByteLength = ft, $.arraysToBytes = yt, $.assert = it, $.bytesToString = qe, $.createObjectURL = gn, $.createPromiseCapability = ln, $.createValidAbsoluteUrl = dt, $.escapeString = Gt, $.getModificationDate = dn, $.getVerbosityLevel = We, $.info = Ke, $.isArrayBuffer = Wt, $.isArrayEqual = Jt, $.isAscii = zt, $.isBool = qt, $.isNum = sn, $.isSameOrigin = Je, $.isString = _n, $.objectFromMap = Ft, $.objectSize = Mt, $.removeNullCharacters = tt, $.setVerbosityLevel = He, $.shadow = vt, $.string32 = $t, $.stringToBytes = ot, $.stringToPDFString = Ht, $.stringToUTF16BEString = Dt, $.stringToUTF8String = Vt, $.unreachable = lt, $.utf8StringToString = Kt, $.warn = rt, F(5);
|
|
54708
54821
|
function V(mt, Ot) {
|
|
54709
54822
|
for (var pt = 0; pt < Ot.length; pt++) {
|
|
54710
54823
|
var St = Ot[pt];
|
|
@@ -55232,7 +55345,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
55232
55345
|
function it(mt, Ot) {
|
|
55233
55346
|
mt || lt(Ot);
|
|
55234
55347
|
}
|
|
55235
|
-
function
|
|
55348
|
+
function Je(mt, Ot) {
|
|
55236
55349
|
var pt;
|
|
55237
55350
|
try {
|
|
55238
55351
|
if (pt = new URL(mt), !pt.origin || pt.origin === "null")
|
|
@@ -55522,14 +55635,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
55522
55635
|
}, {
|
|
55523
55636
|
key: "bezierBoundingBox",
|
|
55524
55637
|
value: function(pt, St, Et, Nt, kt, Lt, Xt, vn) {
|
|
55525
|
-
for (var bn = [], Sn = [[], []], Nn, Tn,
|
|
55526
|
-
if (er === 0 ? (Tn = 6 * pt - 12 * Et + 6 * kt, Nn = -3 * pt + 9 * Et - 9 * kt + 3 * Xt,
|
|
55638
|
+
for (var bn = [], Sn = [[], []], Nn, Tn, Qt, Yt, wn, Dn, Ln, Hn, er = 0; er < 2; ++er) {
|
|
55639
|
+
if (er === 0 ? (Tn = 6 * pt - 12 * Et + 6 * kt, Nn = -3 * pt + 9 * Et - 9 * kt + 3 * Xt, Qt = 3 * Et - 3 * pt) : (Tn = 6 * St - 12 * Nt + 6 * Lt, Nn = -3 * St + 9 * Nt - 9 * Lt + 3 * vn, Qt = 3 * Nt - 3 * St), Math.abs(Nn) < 1e-12) {
|
|
55527
55640
|
if (Math.abs(Tn) < 1e-12)
|
|
55528
55641
|
continue;
|
|
55529
|
-
Yt = -
|
|
55642
|
+
Yt = -Qt / Tn, 0 < Yt && Yt < 1 && bn.push(Yt);
|
|
55530
55643
|
continue;
|
|
55531
55644
|
}
|
|
55532
|
-
Ln = Tn * Tn - 4 *
|
|
55645
|
+
Ln = Tn * Tn - 4 * Qt * Nn, Hn = Math.sqrt(Ln), !(Ln < 0) && (wn = (-Tn + Hn) / (2 * Nn), 0 < wn && wn < 1 && bn.push(wn), Dn = (-Tn - Hn) / (2 * Nn), 0 < Dn && Dn < 1 && bn.push(Dn));
|
|
55533
55646
|
}
|
|
55534
55647
|
for (var Wn = bn.length, Pn, tr = Wn; Wn--; )
|
|
55535
55648
|
Yt = bn[Wn], Pn = 1 - Yt, Sn[0][Wn] = Pn * Pn * Pn * pt + 3 * Pn * Pn * Yt * Et + 3 * Pn * Yt * Yt * kt + Yt * Yt * Yt * Xt, Sn[1][Wn] = Pn * Pn * Pn * St + 3 * Pn * Pn * Yt * Nt + 3 * Pn * Yt * Yt * Lt + Yt * Yt * Yt * vn;
|
|
@@ -55588,7 +55701,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
55588
55701
|
function Wt(mt) {
|
|
55589
55702
|
return se(mt) === "object" && mt !== null && mt.byteLength !== void 0;
|
|
55590
55703
|
}
|
|
55591
|
-
function
|
|
55704
|
+
function Jt(mt, Ot) {
|
|
55592
55705
|
if (mt.length !== Ot.length)
|
|
55593
55706
|
return !1;
|
|
55594
55707
|
for (var pt = 0, St = mt.length; pt < St; pt++)
|
|
@@ -57054,7 +57167,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57054
57167
|
/* 107 */
|
|
57055
57168
|
/***/
|
|
57056
57169
|
(C, $, F) => {
|
|
57057
|
-
var V = F(9), K = F(39), J = F(10), ee = F(27), te = F(14), ne = F(108), re = F(50), ae = F(109), oe = F(84), ie = F(83), le = F(110), ue = F(34), de = F(25), se = F(24), ve = F(111), me = F(51), he = F(87), pe = F(112), ce = F(113), fe = F(116).set, ye = F(121), Se = F(124), ge = F(126), be = F(125), Ce = F(127), Ee = F(52), _e = F(68), xe = F(37), $e = F(128), Ie = F(120), De = F(31), Ne = xe("species"), Fe = "Promise", Oe = Ee.getterFor(Fe), we = Ee.set, Ae = Ee.getterFor(Fe), Me = ne && ne.prototype, je = ne, ze = Me, Ve = J.TypeError, Xe = J.document, Ye = J.process, at = be.f, Ue = at, Le = !!(Xe && Xe.createEvent && J.dispatchEvent), Te = de(J.PromiseRejectionEvent), Pe = "unhandledrejection", ke = "rejectionhandled", He = 0, We = 1, Ke = 2, rt = 1, lt = 2, it = !1,
|
|
57170
|
+
var V = F(9), K = F(39), J = F(10), ee = F(27), te = F(14), ne = F(108), re = F(50), ae = F(109), oe = F(84), ie = F(83), le = F(110), ue = F(34), de = F(25), se = F(24), ve = F(111), me = F(51), he = F(87), pe = F(112), ce = F(113), fe = F(116).set, ye = F(121), Se = F(124), ge = F(126), be = F(125), Ce = F(127), Ee = F(52), _e = F(68), xe = F(37), $e = F(128), Ie = F(120), De = F(31), Ne = xe("species"), Fe = "Promise", Oe = Ee.getterFor(Fe), we = Ee.set, Ae = Ee.getterFor(Fe), Me = ne && ne.prototype, je = ne, ze = Me, Ve = J.TypeError, Xe = J.document, Ye = J.process, at = be.f, Ue = at, Le = !!(Xe && Xe.createEvent && J.dispatchEvent), Te = de(J.PromiseRejectionEvent), Pe = "unhandledrejection", ke = "rejectionhandled", He = 0, We = 1, Ke = 2, rt = 1, lt = 2, it = !1, Je, ct, dt, vt, ht = _e(Fe, function() {
|
|
57058
57171
|
var qe = me(je), ot = qe !== String(je);
|
|
57059
57172
|
if (!ot && De === 66 || K && !ze.finally)
|
|
57060
57173
|
return !0;
|
|
@@ -57139,14 +57252,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57139
57252
|
}
|
|
57140
57253
|
};
|
|
57141
57254
|
if (ht && (je = function(ot) {
|
|
57142
|
-
ve(this, ze), ue(ot), te(
|
|
57255
|
+
ve(this, ze), ue(ot), te(Je, this);
|
|
57143
57256
|
var ft = Oe(this);
|
|
57144
57257
|
try {
|
|
57145
57258
|
ot(Ze(tt, ft), Ze(nt, ft));
|
|
57146
57259
|
} catch (yt) {
|
|
57147
57260
|
nt(ft, yt);
|
|
57148
57261
|
}
|
|
57149
|
-
}, ze = je.prototype,
|
|
57262
|
+
}, ze = je.prototype, Je = function(ot) {
|
|
57150
57263
|
we(this, {
|
|
57151
57264
|
type: Fe,
|
|
57152
57265
|
done: !1,
|
|
@@ -57157,7 +57270,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57157
57270
|
state: He,
|
|
57158
57271
|
value: void 0
|
|
57159
57272
|
});
|
|
57160
|
-
},
|
|
57273
|
+
}, Je.prototype = ae(ze, {
|
|
57161
57274
|
then: function(ot, ft) {
|
|
57162
57275
|
var yt = Ae(this), $t = yt.reactions, Mt = at(ce(this, je));
|
|
57163
57276
|
return Mt.ok = de(ot) ? ot : !0, Mt.fail = de(ft) && ft, Mt.domain = Ie ? Ye.domain : void 0, yt.parent = !0, $t[$t.length] = Mt, yt.state != He && wt(yt, !1), Mt.promise;
|
|
@@ -57166,7 +57279,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57166
57279
|
return this.then(void 0, qe);
|
|
57167
57280
|
}
|
|
57168
57281
|
}), ct = function() {
|
|
57169
|
-
var qe = new
|
|
57282
|
+
var qe = new Je(), ot = Oe(qe);
|
|
57170
57283
|
this.promise = qe, this.resolve = Ze(tt, ot), this.reject = Ze(nt, ot);
|
|
57171
57284
|
}, be.f = at = function(qe) {
|
|
57172
57285
|
return qe === je || qe === dt ? new ct(qe) : Ue(qe);
|
|
@@ -57684,11 +57797,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57684
57797
|
function de(Re) {
|
|
57685
57798
|
return ie(Re);
|
|
57686
57799
|
}
|
|
57687
|
-
function se(Re, Be,
|
|
57688
|
-
return ae.call(Re, Be,
|
|
57800
|
+
function se(Re, Be, Qe) {
|
|
57801
|
+
return ae.call(Re, Be, Qe);
|
|
57689
57802
|
}
|
|
57690
|
-
function ve(Re, Be,
|
|
57691
|
-
se(se(Re, Be,
|
|
57803
|
+
function ve(Re, Be, Qe) {
|
|
57804
|
+
se(se(Re, Be, Qe), void 0, ne);
|
|
57692
57805
|
}
|
|
57693
57806
|
function me(Re, Be) {
|
|
57694
57807
|
ve(Re, Be);
|
|
@@ -57696,8 +57809,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57696
57809
|
function he(Re, Be) {
|
|
57697
57810
|
ve(Re, void 0, Be);
|
|
57698
57811
|
}
|
|
57699
|
-
function pe(Re, Be,
|
|
57700
|
-
return se(Re, Be,
|
|
57812
|
+
function pe(Re, Be, Qe) {
|
|
57813
|
+
return se(Re, Be, Qe);
|
|
57701
57814
|
}
|
|
57702
57815
|
function ce(Re) {
|
|
57703
57816
|
se(Re, void 0, ne);
|
|
@@ -57707,18 +57820,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57707
57820
|
if (typeof Re == "function")
|
|
57708
57821
|
return Re;
|
|
57709
57822
|
var Be = ue(void 0);
|
|
57710
|
-
return function(
|
|
57711
|
-
return se(Be,
|
|
57823
|
+
return function(Qe) {
|
|
57824
|
+
return se(Be, Qe);
|
|
57712
57825
|
};
|
|
57713
57826
|
}();
|
|
57714
|
-
function ye(Re, Be,
|
|
57827
|
+
function ye(Re, Be, Qe) {
|
|
57715
57828
|
if (typeof Re != "function")
|
|
57716
57829
|
throw new TypeError("Argument is not a function");
|
|
57717
|
-
return Function.prototype.apply.call(Re, Be,
|
|
57830
|
+
return Function.prototype.apply.call(Re, Be, Qe);
|
|
57718
57831
|
}
|
|
57719
|
-
function Se(Re, Be,
|
|
57832
|
+
function Se(Re, Be, Qe) {
|
|
57720
57833
|
try {
|
|
57721
|
-
return ue(ye(Re, Be,
|
|
57834
|
+
return ue(ye(Re, Be, Qe));
|
|
57722
57835
|
} catch (gt) {
|
|
57723
57836
|
return de(gt);
|
|
57724
57837
|
}
|
|
@@ -57737,28 +57850,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57737
57850
|
enumerable: !1,
|
|
57738
57851
|
configurable: !0
|
|
57739
57852
|
}), Re.prototype.push = function(Be) {
|
|
57740
|
-
var
|
|
57741
|
-
|
|
57853
|
+
var Qe = this._back, gt = Qe;
|
|
57854
|
+
Qe._elements.length === ge - 1 && (gt = {
|
|
57742
57855
|
_elements: [],
|
|
57743
57856
|
_next: void 0
|
|
57744
|
-
}),
|
|
57857
|
+
}), Qe._elements.push(Be), gt !== Qe && (this._back = gt, Qe._next = gt), ++this._size;
|
|
57745
57858
|
}, Re.prototype.shift = function() {
|
|
57746
|
-
var Be = this._front,
|
|
57747
|
-
return xt === ge && (
|
|
57859
|
+
var Be = this._front, Qe = Be, gt = this._cursor, xt = gt + 1, jt = Be._elements, Ut = jt[gt];
|
|
57860
|
+
return xt === ge && (Qe = Be._next, xt = 0), --this._size, this._cursor = xt, Be !== Qe && (this._front = Qe), jt[gt] = void 0, Ut;
|
|
57748
57861
|
}, Re.prototype.forEach = function(Be) {
|
|
57749
|
-
for (var
|
|
57750
|
-
Be(xt[
|
|
57862
|
+
for (var Qe = this._cursor, gt = this._front, xt = gt._elements; (Qe !== xt.length || gt._next !== void 0) && !(Qe === xt.length && (gt = gt._next, xt = gt._elements, Qe = 0, xt.length === 0)); )
|
|
57863
|
+
Be(xt[Qe]), ++Qe;
|
|
57751
57864
|
}, Re.prototype.peek = function() {
|
|
57752
|
-
var Be = this._front,
|
|
57753
|
-
return Be._elements[
|
|
57865
|
+
var Be = this._front, Qe = this._cursor;
|
|
57866
|
+
return Be._elements[Qe];
|
|
57754
57867
|
}, Re;
|
|
57755
57868
|
}();
|
|
57756
57869
|
function Ce(Re, Be) {
|
|
57757
57870
|
Re._ownerReadableStream = Be, Be._reader = Re, Be._state === "readable" ? $e(Re) : Be._state === "closed" ? De(Re) : Ie(Re, Be._storedError);
|
|
57758
57871
|
}
|
|
57759
57872
|
function Ee(Re, Be) {
|
|
57760
|
-
var
|
|
57761
|
-
return vr(
|
|
57873
|
+
var Qe = Re._ownerReadableStream;
|
|
57874
|
+
return vr(Qe, Be);
|
|
57762
57875
|
}
|
|
57763
57876
|
function _e(Re) {
|
|
57764
57877
|
Re._ownerReadableStream._state === "readable" ? Ne(Re, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")) : Fe(Re, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")), Re._ownerReadableStream._reader = void 0, Re._ownerReadableStream = void 0;
|
|
@@ -57767,8 +57880,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57767
57880
|
return new TypeError("Cannot " + Re + " a stream using a released reader");
|
|
57768
57881
|
}
|
|
57769
57882
|
function $e(Re) {
|
|
57770
|
-
Re._closedPromise = le(function(Be,
|
|
57771
|
-
Re._closedPromise_resolve = Be, Re._closedPromise_reject =
|
|
57883
|
+
Re._closedPromise = le(function(Be, Qe) {
|
|
57884
|
+
Re._closedPromise_resolve = Be, Re._closedPromise_reject = Qe;
|
|
57772
57885
|
});
|
|
57773
57886
|
}
|
|
57774
57887
|
function Ie(Re, Be) {
|
|
@@ -57809,13 +57922,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57809
57922
|
if (!Ue(Re))
|
|
57810
57923
|
throw new TypeError(Be + " is not an object.");
|
|
57811
57924
|
}
|
|
57812
|
-
function Te(Re, Be,
|
|
57925
|
+
function Te(Re, Be, Qe) {
|
|
57813
57926
|
if (Re === void 0)
|
|
57814
|
-
throw new TypeError("Parameter " + Be + " is required in '" +
|
|
57927
|
+
throw new TypeError("Parameter " + Be + " is required in '" + Qe + "'.");
|
|
57815
57928
|
}
|
|
57816
|
-
function Pe(Re, Be,
|
|
57929
|
+
function Pe(Re, Be, Qe) {
|
|
57817
57930
|
if (Re === void 0)
|
|
57818
|
-
throw new TypeError(Be + " is required in '" +
|
|
57931
|
+
throw new TypeError(Be + " is required in '" + Qe + "'.");
|
|
57819
57932
|
}
|
|
57820
57933
|
function ke(Re) {
|
|
57821
57934
|
return Number(Re);
|
|
@@ -57827,11 +57940,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57827
57940
|
return He(Ve(Re));
|
|
57828
57941
|
}
|
|
57829
57942
|
function Ke(Re, Be) {
|
|
57830
|
-
var
|
|
57943
|
+
var Qe = 0, gt = Number.MAX_SAFE_INTEGER, xt = Number(Re);
|
|
57831
57944
|
if (xt = He(xt), !ze(xt))
|
|
57832
57945
|
throw new TypeError(Be + " is not a finite number");
|
|
57833
|
-
if (xt = We(xt), xt <
|
|
57834
|
-
throw new TypeError(Be + " is outside the accepted range of " +
|
|
57946
|
+
if (xt = We(xt), xt < Qe || xt > gt)
|
|
57947
|
+
throw new TypeError(Be + " is outside the accepted range of " + Qe + " to " + gt + ", inclusive");
|
|
57835
57948
|
return !ze(xt) || xt === 0 ? 0 : xt;
|
|
57836
57949
|
}
|
|
57837
57950
|
function rt(Re, Be) {
|
|
@@ -57844,9 +57957,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57844
57957
|
function it(Re, Be) {
|
|
57845
57958
|
Re._reader._readRequests.push(Be);
|
|
57846
57959
|
}
|
|
57847
|
-
function
|
|
57960
|
+
function Je(Re, Be, Qe) {
|
|
57848
57961
|
var gt = Re._reader, xt = gt._readRequests.shift();
|
|
57849
|
-
|
|
57962
|
+
Qe ? xt._closeSteps() : xt._chunkSteps(Be);
|
|
57850
57963
|
}
|
|
57851
57964
|
function ct(Re) {
|
|
57852
57965
|
return Re._reader._readRequests.length;
|
|
@@ -57874,8 +57987,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57874
57987
|
return de(Rt("read"));
|
|
57875
57988
|
if (this._ownerReadableStream === void 0)
|
|
57876
57989
|
return de(xe("read from"));
|
|
57877
|
-
var Be,
|
|
57878
|
-
Be = jt,
|
|
57990
|
+
var Be, Qe, gt = le(function(jt, Ut) {
|
|
57991
|
+
Be = jt, Qe = Ut;
|
|
57879
57992
|
}), xt = {
|
|
57880
57993
|
_chunkSteps: function(jt) {
|
|
57881
57994
|
return Be({
|
|
@@ -57890,7 +58003,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57890
58003
|
});
|
|
57891
58004
|
},
|
|
57892
58005
|
_errorSteps: function(jt) {
|
|
57893
|
-
return
|
|
58006
|
+
return Qe(jt);
|
|
57894
58007
|
}
|
|
57895
58008
|
};
|
|
57896
58009
|
return bt(this, xt), gt;
|
|
@@ -57917,8 +58030,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57917
58030
|
return !te(Re) || !Object.prototype.hasOwnProperty.call(Re, "_readRequests") ? !1 : Re instanceof vt;
|
|
57918
58031
|
}
|
|
57919
58032
|
function bt(Re, Be) {
|
|
57920
|
-
var
|
|
57921
|
-
|
|
58033
|
+
var Qe = Re._ownerReadableStream;
|
|
58034
|
+
Qe._disturbed = !0, Qe._state === "closed" ? Be._closeSteps() : Qe._state === "errored" ? Be._errorSteps(Qe._storedError) : Qe._readableStreamController[je](Be);
|
|
57922
58035
|
}
|
|
57923
58036
|
function Rt(Re) {
|
|
57924
58037
|
return new TypeError("ReadableStreamDefaultReader.prototype." + Re + " can only be used on a ReadableStreamDefaultReader");
|
|
@@ -57928,17 +58041,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57928
58041
|
return this;
|
|
57929
58042
|
}, wt), Object.defineProperty(st, V.asyncIterator, { enumerable: !1 }));
|
|
57930
58043
|
var ut = function() {
|
|
57931
|
-
function Re(Be,
|
|
57932
|
-
this._ongoingPromise = void 0, this._isFinished = !1, this._reader = Be, this._preventCancel =
|
|
58044
|
+
function Re(Be, Qe) {
|
|
58045
|
+
this._ongoingPromise = void 0, this._isFinished = !1, this._reader = Be, this._preventCancel = Qe;
|
|
57933
58046
|
}
|
|
57934
58047
|
return Re.prototype.next = function() {
|
|
57935
|
-
var Be = this,
|
|
58048
|
+
var Be = this, Qe = function() {
|
|
57936
58049
|
return Be._nextSteps();
|
|
57937
58050
|
};
|
|
57938
|
-
return this._ongoingPromise = this._ongoingPromise ? pe(this._ongoingPromise,
|
|
58051
|
+
return this._ongoingPromise = this._ongoingPromise ? pe(this._ongoingPromise, Qe, Qe) : Qe(), this._ongoingPromise;
|
|
57939
58052
|
}, Re.prototype.return = function(Be) {
|
|
57940
|
-
var
|
|
57941
|
-
return
|
|
58053
|
+
var Qe = this, gt = function() {
|
|
58054
|
+
return Qe._returnSteps(Be);
|
|
57942
58055
|
};
|
|
57943
58056
|
return this._ongoingPromise ? pe(this._ongoingPromise, gt, gt) : gt();
|
|
57944
58057
|
}, Re.prototype._nextSteps = function() {
|
|
@@ -57948,8 +58061,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57948
58061
|
value: void 0,
|
|
57949
58062
|
done: !0
|
|
57950
58063
|
});
|
|
57951
|
-
var
|
|
57952
|
-
if (
|
|
58064
|
+
var Qe = this._reader;
|
|
58065
|
+
if (Qe._ownerReadableStream === void 0)
|
|
57953
58066
|
return de(xe("iterate"));
|
|
57954
58067
|
var gt, xt, jt = le(function(mn, In) {
|
|
57955
58068
|
gt = mn, xt = In;
|
|
@@ -57963,16 +58076,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57963
58076
|
});
|
|
57964
58077
|
},
|
|
57965
58078
|
_closeSteps: function() {
|
|
57966
|
-
Be._ongoingPromise = void 0, Be._isFinished = !0, _e(
|
|
58079
|
+
Be._ongoingPromise = void 0, Be._isFinished = !0, _e(Qe), gt({
|
|
57967
58080
|
value: void 0,
|
|
57968
58081
|
done: !0
|
|
57969
58082
|
});
|
|
57970
58083
|
},
|
|
57971
58084
|
_errorSteps: function(mn) {
|
|
57972
|
-
Be._ongoingPromise = void 0, Be._isFinished = !0, _e(
|
|
58085
|
+
Be._ongoingPromise = void 0, Be._isFinished = !0, _e(Qe), xt(mn);
|
|
57973
58086
|
}
|
|
57974
58087
|
};
|
|
57975
|
-
return bt(
|
|
58088
|
+
return bt(Qe, Ut), jt;
|
|
57976
58089
|
}, Re.prototype._returnSteps = function(Be) {
|
|
57977
58090
|
if (this._isFinished)
|
|
57978
58091
|
return Promise.resolve({
|
|
@@ -57980,19 +58093,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57980
58093
|
done: !0
|
|
57981
58094
|
});
|
|
57982
58095
|
this._isFinished = !0;
|
|
57983
|
-
var
|
|
57984
|
-
if (
|
|
58096
|
+
var Qe = this._reader;
|
|
58097
|
+
if (Qe._ownerReadableStream === void 0)
|
|
57985
58098
|
return de(xe("finish iterating"));
|
|
57986
58099
|
if (!this._preventCancel) {
|
|
57987
|
-
var gt = Ee(
|
|
57988
|
-
return _e(
|
|
58100
|
+
var gt = Ee(Qe, Be);
|
|
58101
|
+
return _e(Qe), pe(gt, function() {
|
|
57989
58102
|
return {
|
|
57990
58103
|
value: Be,
|
|
57991
58104
|
done: !0
|
|
57992
58105
|
};
|
|
57993
58106
|
});
|
|
57994
58107
|
}
|
|
57995
|
-
return _e(
|
|
58108
|
+
return _e(Qe), ue({
|
|
57996
58109
|
value: Be,
|
|
57997
58110
|
done: !0
|
|
57998
58111
|
});
|
|
@@ -58007,7 +58120,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58007
58120
|
};
|
|
58008
58121
|
st !== void 0 && Object.setPrototypeOf(Ge, st);
|
|
58009
58122
|
function et(Re, Be) {
|
|
58010
|
-
var
|
|
58123
|
+
var Qe = lt(Re), gt = new ut(Qe, Be), xt = Object.create(Ge);
|
|
58011
58124
|
return xt._asyncIteratorImpl = gt, xt;
|
|
58012
58125
|
}
|
|
58013
58126
|
function Ze(Re) {
|
|
@@ -58028,8 +58141,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58028
58141
|
function qe(Re) {
|
|
58029
58142
|
return Re.slice();
|
|
58030
58143
|
}
|
|
58031
|
-
function ot(Re, Be,
|
|
58032
|
-
new Uint8Array(Re).set(new Uint8Array(
|
|
58144
|
+
function ot(Re, Be, Qe, gt, xt) {
|
|
58145
|
+
new Uint8Array(Re).set(new Uint8Array(Qe, gt, xt), Be);
|
|
58033
58146
|
}
|
|
58034
58147
|
function ft(Re) {
|
|
58035
58148
|
return Re;
|
|
@@ -58037,10 +58150,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58037
58150
|
function yt(Re) {
|
|
58038
58151
|
return !1;
|
|
58039
58152
|
}
|
|
58040
|
-
function $t(Re, Be,
|
|
58153
|
+
function $t(Re, Be, Qe) {
|
|
58041
58154
|
if (Re.slice)
|
|
58042
|
-
return Re.slice(Be,
|
|
58043
|
-
var gt =
|
|
58155
|
+
return Re.slice(Be, Qe);
|
|
58156
|
+
var gt = Qe - Be, xt = new ArrayBuffer(gt);
|
|
58044
58157
|
return ot(xt, 0, Re, Be, gt), xt;
|
|
58045
58158
|
}
|
|
58046
58159
|
function Mt(Re) {
|
|
@@ -58054,13 +58167,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58054
58167
|
var Be = Re._queue.shift();
|
|
58055
58168
|
return Re._queueTotalSize -= Be.size, Re._queueTotalSize < 0 && (Re._queueTotalSize = 0), Be.value;
|
|
58056
58169
|
}
|
|
58057
|
-
function Bt(Re, Be,
|
|
58058
|
-
if (!Mt(
|
|
58170
|
+
function Bt(Re, Be, Qe) {
|
|
58171
|
+
if (!Mt(Qe) || Qe === 1 / 0)
|
|
58059
58172
|
throw new RangeError("Size must be a finite, non-NaN, non-negative number.");
|
|
58060
58173
|
Re._queue.push({
|
|
58061
58174
|
value: Be,
|
|
58062
|
-
size:
|
|
58063
|
-
}), Re._queueTotalSize +=
|
|
58175
|
+
size: Qe
|
|
58176
|
+
}), Re._queueTotalSize += Qe;
|
|
58064
58177
|
}
|
|
58065
58178
|
function It(Re) {
|
|
58066
58179
|
var Be = Re._queue.peek();
|
|
@@ -58076,20 +58189,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58076
58189
|
return Object.defineProperty(Re.prototype, "view", {
|
|
58077
58190
|
get: function() {
|
|
58078
58191
|
if (!Ht(this))
|
|
58079
|
-
throw
|
|
58192
|
+
throw Qt("view");
|
|
58080
58193
|
return this._view;
|
|
58081
58194
|
},
|
|
58082
58195
|
enumerable: !1,
|
|
58083
58196
|
configurable: !0
|
|
58084
58197
|
}), Re.prototype.respond = function(Be) {
|
|
58085
58198
|
if (!Ht(this))
|
|
58086
|
-
throw
|
|
58199
|
+
throw Qt("respond");
|
|
58087
58200
|
if (Te(Be, 1, "respond"), Be = Ke(Be, "First parameter"), this._associatedReadableByteStreamController === void 0)
|
|
58088
58201
|
throw new TypeError("This BYOB request has been invalidated");
|
|
58089
58202
|
yt(this._view.buffer), vn(this._associatedReadableByteStreamController, Be);
|
|
58090
58203
|
}, Re.prototype.respondWithNewView = function(Be) {
|
|
58091
58204
|
if (!Ht(this))
|
|
58092
|
-
throw
|
|
58205
|
+
throw Qt("respondWithNewView");
|
|
58093
58206
|
if (Te(Be, 1, "respondWithNewView"), !ArrayBuffer.isView(Be))
|
|
58094
58207
|
throw new TypeError("You can only respond with array buffer views");
|
|
58095
58208
|
if (this._associatedReadableByteStreamController === void 0)
|
|
@@ -58145,9 +58258,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58145
58258
|
throw new TypeError("chunk's buffer must have non-zero byteLength");
|
|
58146
58259
|
if (this._closeRequested)
|
|
58147
58260
|
throw new TypeError("stream is closed or draining");
|
|
58148
|
-
var
|
|
58149
|
-
if (
|
|
58150
|
-
throw new TypeError("The stream (in " +
|
|
58261
|
+
var Qe = this._controlledReadableByteStream._state;
|
|
58262
|
+
if (Qe !== "readable")
|
|
58263
|
+
throw new TypeError("The stream (in " + Qe + " state) is not in the readable state and cannot be enqueued to");
|
|
58151
58264
|
Nt(this, Be);
|
|
58152
58265
|
}, Re.prototype.error = function(Be) {
|
|
58153
58266
|
if (Be === void 0 && (Be = void 0), !At(this))
|
|
@@ -58155,10 +58268,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58155
58268
|
kt(this, Be);
|
|
58156
58269
|
}, Re.prototype[Me] = function(Be) {
|
|
58157
58270
|
zt(this), Pt(this);
|
|
58158
|
-
var
|
|
58159
|
-
return St(this),
|
|
58271
|
+
var Qe = this._cancelAlgorithm(Be);
|
|
58272
|
+
return St(this), Qe;
|
|
58160
58273
|
}, Re.prototype[je] = function(Be) {
|
|
58161
|
-
var
|
|
58274
|
+
var Qe = this._controlledReadableByteStream;
|
|
58162
58275
|
if (this._queueTotalSize > 0) {
|
|
58163
58276
|
var gt = this._queue.shift();
|
|
58164
58277
|
this._queueTotalSize -= gt.byteLength, _n(this);
|
|
@@ -58187,7 +58300,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58187
58300
|
};
|
|
58188
58301
|
this._pendingPullIntos.push(mn);
|
|
58189
58302
|
}
|
|
58190
|
-
it(
|
|
58303
|
+
it(Qe, Be), Gt(this);
|
|
58191
58304
|
}, Re;
|
|
58192
58305
|
}();
|
|
58193
58306
|
Object.defineProperties(_t.prototype, {
|
|
@@ -58214,8 +58327,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58214
58327
|
return;
|
|
58215
58328
|
}
|
|
58216
58329
|
Re._pulling = !0;
|
|
58217
|
-
var
|
|
58218
|
-
ve(
|
|
58330
|
+
var Qe = Re._pullAlgorithm();
|
|
58331
|
+
ve(Qe, function() {
|
|
58219
58332
|
Re._pulling = !1, Re._pullAgain && (Re._pullAgain = !1, Gt(Re));
|
|
58220
58333
|
}, function(gt) {
|
|
58221
58334
|
kt(Re, gt);
|
|
@@ -58226,24 +58339,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58226
58339
|
Wt(Re), Re._pendingPullIntos = new be();
|
|
58227
58340
|
}
|
|
58228
58341
|
function Dt(Re, Be) {
|
|
58229
|
-
var
|
|
58230
|
-
Re._state === "closed" && (
|
|
58342
|
+
var Qe = !1;
|
|
58343
|
+
Re._state === "closed" && (Qe = !0);
|
|
58231
58344
|
var gt = Vt(Be);
|
|
58232
|
-
Be.readerType === "default" ?
|
|
58345
|
+
Be.readerType === "default" ? Je(Re, gt, Qe) : Ln(Re, gt, Qe);
|
|
58233
58346
|
}
|
|
58234
58347
|
function Vt(Re) {
|
|
58235
|
-
var Be = Re.bytesFilled,
|
|
58236
|
-
return new Re.viewConstructor(Re.buffer, Re.byteOffset, Be /
|
|
58348
|
+
var Be = Re.bytesFilled, Qe = Re.elementSize;
|
|
58349
|
+
return new Re.viewConstructor(Re.buffer, Re.byteOffset, Be / Qe);
|
|
58237
58350
|
}
|
|
58238
|
-
function Kt(Re, Be,
|
|
58351
|
+
function Kt(Re, Be, Qe, gt) {
|
|
58239
58352
|
Re._queue.push({
|
|
58240
58353
|
buffer: Be,
|
|
58241
|
-
byteOffset:
|
|
58354
|
+
byteOffset: Qe,
|
|
58242
58355
|
byteLength: gt
|
|
58243
58356
|
}), Re._queueTotalSize += gt;
|
|
58244
58357
|
}
|
|
58245
58358
|
function qt(Re, Be) {
|
|
58246
|
-
var
|
|
58359
|
+
var Qe = Be.elementSize, gt = Be.bytesFilled - Be.bytesFilled % Qe, xt = Math.min(Re._queueTotalSize, Be.byteLength - Be.bytesFilled), jt = Be.bytesFilled + xt, Ut = jt - jt % Qe, mn = xt, In = !1;
|
|
58247
58360
|
Ut > gt && (mn = Ut - Be.bytesFilled, In = !0);
|
|
58248
58361
|
for (var Mn = Re._queue; mn > 0; ) {
|
|
58249
58362
|
var kn = Mn.peek(), Fn = Math.min(mn, kn.byteLength), ar = Be.byteOffset + Be.bytesFilled;
|
|
@@ -58251,8 +58364,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58251
58364
|
}
|
|
58252
58365
|
return In;
|
|
58253
58366
|
}
|
|
58254
|
-
function sn(Re, Be,
|
|
58255
|
-
|
|
58367
|
+
function sn(Re, Be, Qe) {
|
|
58368
|
+
Qe.bytesFilled += Be;
|
|
58256
58369
|
}
|
|
58257
58370
|
function _n(Re) {
|
|
58258
58371
|
Re._queueTotalSize === 0 && Re._closeRequested ? (St(Re), Ur(Re._controlledReadableByteStream)) : Gt(Re);
|
|
@@ -58260,7 +58373,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58260
58373
|
function Wt(Re) {
|
|
58261
58374
|
Re._byobRequest !== null && (Re._byobRequest._associatedReadableByteStreamController = void 0, Re._byobRequest._view = null, Re._byobRequest = null);
|
|
58262
58375
|
}
|
|
58263
|
-
function
|
|
58376
|
+
function Jt(Re) {
|
|
58264
58377
|
for (; Re._pendingPullIntos.length > 0; ) {
|
|
58265
58378
|
if (Re._queueTotalSize === 0)
|
|
58266
58379
|
return;
|
|
@@ -58268,7 +58381,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58268
58381
|
qt(Re, Be) && (Ot(Re), Dt(Re._controlledReadableByteStream, Be));
|
|
58269
58382
|
}
|
|
58270
58383
|
}
|
|
58271
|
-
function dn(Re, Be,
|
|
58384
|
+
function dn(Re, Be, Qe) {
|
|
58272
58385
|
var gt = Re._controlledReadableByteStream, xt = 1;
|
|
58273
58386
|
Be.constructor !== DataView && (xt = Be.constructor.BYTES_PER_ELEMENT);
|
|
58274
58387
|
var jt = Be.constructor, Ut = Be.buffer, mn = {
|
|
@@ -58282,52 +58395,52 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58282
58395
|
readerType: "byob"
|
|
58283
58396
|
};
|
|
58284
58397
|
if (Re._pendingPullIntos.length > 0) {
|
|
58285
|
-
Re._pendingPullIntos.push(mn), Dn(gt,
|
|
58398
|
+
Re._pendingPullIntos.push(mn), Dn(gt, Qe);
|
|
58286
58399
|
return;
|
|
58287
58400
|
}
|
|
58288
58401
|
if (gt._state === "closed") {
|
|
58289
58402
|
var In = new jt(mn.buffer, mn.byteOffset, 0);
|
|
58290
|
-
|
|
58403
|
+
Qe._closeSteps(In);
|
|
58291
58404
|
return;
|
|
58292
58405
|
}
|
|
58293
58406
|
if (Re._queueTotalSize > 0) {
|
|
58294
58407
|
if (qt(Re, mn)) {
|
|
58295
58408
|
var Mn = Vt(mn);
|
|
58296
|
-
_n(Re),
|
|
58409
|
+
_n(Re), Qe._chunkSteps(Mn);
|
|
58297
58410
|
return;
|
|
58298
58411
|
}
|
|
58299
58412
|
if (Re._closeRequested) {
|
|
58300
58413
|
var kn = new TypeError("Insufficient bytes to fill elements in the given buffer");
|
|
58301
|
-
kt(Re, kn),
|
|
58414
|
+
kt(Re, kn), Qe._errorSteps(kn);
|
|
58302
58415
|
return;
|
|
58303
58416
|
}
|
|
58304
58417
|
}
|
|
58305
|
-
Re._pendingPullIntos.push(mn), Dn(gt,
|
|
58418
|
+
Re._pendingPullIntos.push(mn), Dn(gt, Qe), Gt(Re);
|
|
58306
58419
|
}
|
|
58307
58420
|
function ln(Re, Be) {
|
|
58308
|
-
var
|
|
58309
|
-
if (er(
|
|
58310
|
-
for (; Hn(
|
|
58421
|
+
var Qe = Re._controlledReadableByteStream;
|
|
58422
|
+
if (er(Qe))
|
|
58423
|
+
for (; Hn(Qe) > 0; ) {
|
|
58311
58424
|
var gt = Ot(Re);
|
|
58312
|
-
Dt(
|
|
58425
|
+
Dt(Qe, gt);
|
|
58313
58426
|
}
|
|
58314
58427
|
}
|
|
58315
|
-
function gn(Re, Be,
|
|
58316
|
-
if (sn(Re, Be,
|
|
58428
|
+
function gn(Re, Be, Qe) {
|
|
58429
|
+
if (sn(Re, Be, Qe), !(Qe.bytesFilled < Qe.elementSize)) {
|
|
58317
58430
|
Ot(Re);
|
|
58318
|
-
var gt =
|
|
58431
|
+
var gt = Qe.bytesFilled % Qe.elementSize;
|
|
58319
58432
|
if (gt > 0) {
|
|
58320
|
-
var xt =
|
|
58433
|
+
var xt = Qe.byteOffset + Qe.bytesFilled, jt = $t(Qe.buffer, xt - gt, xt);
|
|
58321
58434
|
Kt(Re, jt, 0, jt.byteLength);
|
|
58322
58435
|
}
|
|
58323
|
-
|
|
58436
|
+
Qe.bytesFilled -= gt, Dt(Re._controlledReadableByteStream, Qe), Jt(Re);
|
|
58324
58437
|
}
|
|
58325
58438
|
}
|
|
58326
58439
|
function mt(Re, Be) {
|
|
58327
|
-
var
|
|
58440
|
+
var Qe = Re._pendingPullIntos.peek();
|
|
58328
58441
|
Wt(Re);
|
|
58329
58442
|
var gt = Re._controlledReadableByteStream._state;
|
|
58330
|
-
gt === "closed" ? ln(Re) : gn(Re, Be,
|
|
58443
|
+
gt === "closed" ? ln(Re) : gn(Re, Be, Qe), Gt(Re);
|
|
58331
58444
|
}
|
|
58332
58445
|
function Ot(Re) {
|
|
58333
58446
|
var Be = Re._pendingPullIntos.shift();
|
|
@@ -58339,8 +58452,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58339
58452
|
return !1;
|
|
58340
58453
|
if (dt(Be) && ct(Be) > 0 || er(Be) && Hn(Be) > 0)
|
|
58341
58454
|
return !0;
|
|
58342
|
-
var
|
|
58343
|
-
return
|
|
58455
|
+
var Qe = Xt(Re);
|
|
58456
|
+
return Qe > 0;
|
|
58344
58457
|
}
|
|
58345
58458
|
function St(Re) {
|
|
58346
58459
|
Re._pullAlgorithm = void 0, Re._cancelAlgorithm = void 0;
|
|
@@ -58353,8 +58466,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58353
58466
|
return;
|
|
58354
58467
|
}
|
|
58355
58468
|
if (Re._pendingPullIntos.length > 0) {
|
|
58356
|
-
var
|
|
58357
|
-
if (
|
|
58469
|
+
var Qe = Re._pendingPullIntos.peek();
|
|
58470
|
+
if (Qe.bytesFilled > 0) {
|
|
58358
58471
|
var gt = new TypeError("Insufficient bytes to fill elements in the given buffer");
|
|
58359
58472
|
throw kt(Re, gt), gt;
|
|
58360
58473
|
}
|
|
@@ -58363,34 +58476,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58363
58476
|
}
|
|
58364
58477
|
}
|
|
58365
58478
|
function Nt(Re, Be) {
|
|
58366
|
-
var
|
|
58367
|
-
if (!(Re._closeRequested ||
|
|
58479
|
+
var Qe = Re._controlledReadableByteStream;
|
|
58480
|
+
if (!(Re._closeRequested || Qe._state !== "readable")) {
|
|
58368
58481
|
var gt = Be.buffer, xt = Be.byteOffset, jt = Be.byteLength, Ut = gt;
|
|
58369
58482
|
if (Re._pendingPullIntos.length > 0) {
|
|
58370
58483
|
var mn = Re._pendingPullIntos.peek();
|
|
58371
58484
|
yt(mn.buffer), mn.buffer = mn.buffer;
|
|
58372
58485
|
}
|
|
58373
|
-
if (Wt(Re), dt(
|
|
58374
|
-
if (ct(
|
|
58486
|
+
if (Wt(Re), dt(Qe))
|
|
58487
|
+
if (ct(Qe) === 0)
|
|
58375
58488
|
Kt(Re, Ut, xt, jt);
|
|
58376
58489
|
else {
|
|
58377
58490
|
Re._pendingPullIntos.length > 0 && Ot(Re);
|
|
58378
58491
|
var In = new Uint8Array(Ut, xt, jt);
|
|
58379
|
-
Qe
|
|
58492
|
+
Je(Qe, In, !1);
|
|
58380
58493
|
}
|
|
58381
58494
|
else
|
|
58382
|
-
er(
|
|
58495
|
+
er(Qe) ? (Kt(Re, Ut, xt, jt), Jt(Re)) : Kt(Re, Ut, xt, jt);
|
|
58383
58496
|
Gt(Re);
|
|
58384
58497
|
}
|
|
58385
58498
|
}
|
|
58386
58499
|
function kt(Re, Be) {
|
|
58387
|
-
var
|
|
58388
|
-
|
|
58500
|
+
var Qe = Re._controlledReadableByteStream;
|
|
58501
|
+
Qe._state === "readable" && (zt(Re), Pt(Re), St(Re), Va(Qe, Be));
|
|
58389
58502
|
}
|
|
58390
58503
|
function Lt(Re) {
|
|
58391
58504
|
if (Re._byobRequest === null && Re._pendingPullIntos.length > 0) {
|
|
58392
|
-
var Be = Re._pendingPullIntos.peek(),
|
|
58393
|
-
Tn(gt, Re,
|
|
58505
|
+
var Be = Re._pendingPullIntos.peek(), Qe = new Uint8Array(Be.buffer, Be.byteOffset + Be.bytesFilled, Be.byteLength - Be.bytesFilled), gt = Object.create(Tt.prototype);
|
|
58506
|
+
Tn(gt, Re, Qe), Re._byobRequest = gt;
|
|
58394
58507
|
}
|
|
58395
58508
|
return Re._byobRequest;
|
|
58396
58509
|
}
|
|
@@ -58399,44 +58512,44 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58399
58512
|
return Be === "errored" ? null : Be === "closed" ? 0 : Re._strategyHWM - Re._queueTotalSize;
|
|
58400
58513
|
}
|
|
58401
58514
|
function vn(Re, Be) {
|
|
58402
|
-
var
|
|
58515
|
+
var Qe = Re._pendingPullIntos.peek(), gt = Re._controlledReadableByteStream._state;
|
|
58403
58516
|
if (gt === "closed") {
|
|
58404
58517
|
if (Be !== 0)
|
|
58405
58518
|
throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");
|
|
58406
58519
|
} else {
|
|
58407
58520
|
if (Be === 0)
|
|
58408
58521
|
throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");
|
|
58409
|
-
if (
|
|
58522
|
+
if (Qe.bytesFilled + Be > Qe.byteLength)
|
|
58410
58523
|
throw new RangeError("bytesWritten out of range");
|
|
58411
58524
|
}
|
|
58412
|
-
|
|
58525
|
+
Qe.buffer = Qe.buffer, mt(Re, Be);
|
|
58413
58526
|
}
|
|
58414
58527
|
function bn(Re, Be) {
|
|
58415
|
-
var
|
|
58528
|
+
var Qe = Re._pendingPullIntos.peek(), gt = Re._controlledReadableByteStream._state;
|
|
58416
58529
|
if (gt === "closed") {
|
|
58417
58530
|
if (Be.byteLength !== 0)
|
|
58418
58531
|
throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream");
|
|
58419
58532
|
} else if (Be.byteLength === 0)
|
|
58420
58533
|
throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");
|
|
58421
|
-
if (
|
|
58534
|
+
if (Qe.byteOffset + Qe.bytesFilled !== Be.byteOffset)
|
|
58422
58535
|
throw new RangeError("The region specified by view does not match byobRequest");
|
|
58423
|
-
if (
|
|
58536
|
+
if (Qe.bufferByteLength !== Be.buffer.byteLength)
|
|
58424
58537
|
throw new RangeError("The buffer of view has different capacity than byobRequest");
|
|
58425
|
-
if (
|
|
58538
|
+
if (Qe.bytesFilled + Be.byteLength > Qe.byteLength)
|
|
58426
58539
|
throw new RangeError("The region specified by view is larger than byobRequest");
|
|
58427
58540
|
var xt = Be.byteLength;
|
|
58428
|
-
|
|
58541
|
+
Qe.buffer = Be.buffer, mt(Re, xt);
|
|
58429
58542
|
}
|
|
58430
|
-
function Sn(Re, Be,
|
|
58543
|
+
function Sn(Re, Be, Qe, gt, xt, jt, Ut) {
|
|
58431
58544
|
Be._controlledReadableByteStream = Re, Be._pullAgain = !1, Be._pulling = !1, Be._byobRequest = null, Be._queue = Be._queueTotalSize = void 0, Pt(Be), Be._closeRequested = !1, Be._started = !1, Be._strategyHWM = jt, Be._pullAlgorithm = gt, Be._cancelAlgorithm = xt, Be._autoAllocateChunkSize = Ut, Be._pendingPullIntos = new be(), Re._readableStreamController = Be;
|
|
58432
|
-
var mn =
|
|
58545
|
+
var mn = Qe();
|
|
58433
58546
|
ve(ue(mn), function() {
|
|
58434
58547
|
Be._started = !0, Gt(Be);
|
|
58435
58548
|
}, function(In) {
|
|
58436
58549
|
kt(Be, In);
|
|
58437
58550
|
});
|
|
58438
58551
|
}
|
|
58439
|
-
function Nn(Re, Be,
|
|
58552
|
+
function Nn(Re, Be, Qe) {
|
|
58440
58553
|
var gt = Object.create(_t.prototype), xt = function() {
|
|
58441
58554
|
}, jt = function() {
|
|
58442
58555
|
return ue(void 0);
|
|
@@ -58453,12 +58566,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58453
58566
|
var mn = Be.autoAllocateChunkSize;
|
|
58454
58567
|
if (mn === 0)
|
|
58455
58568
|
throw new TypeError("autoAllocateChunkSize must be greater than 0");
|
|
58456
|
-
Sn(Re, gt, xt, jt, Ut,
|
|
58569
|
+
Sn(Re, gt, xt, jt, Ut, Qe, mn);
|
|
58457
58570
|
}
|
|
58458
|
-
function Tn(Re, Be,
|
|
58459
|
-
Re._associatedReadableByteStreamController = Be, Re._view =
|
|
58571
|
+
function Tn(Re, Be, Qe) {
|
|
58572
|
+
Re._associatedReadableByteStreamController = Be, Re._view = Qe;
|
|
58460
58573
|
}
|
|
58461
|
-
function
|
|
58574
|
+
function Qt(Re) {
|
|
58462
58575
|
return new TypeError("ReadableStreamBYOBRequest.prototype." + Re + " can only be used on a ReadableStreamBYOBRequest");
|
|
58463
58576
|
}
|
|
58464
58577
|
function Yt(Re) {
|
|
@@ -58470,9 +58583,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58470
58583
|
function Dn(Re, Be) {
|
|
58471
58584
|
Re._reader._readIntoRequests.push(Be);
|
|
58472
58585
|
}
|
|
58473
|
-
function Ln(Re, Be,
|
|
58586
|
+
function Ln(Re, Be, Qe) {
|
|
58474
58587
|
var gt = Re._reader, xt = gt._readIntoRequests.shift();
|
|
58475
|
-
|
|
58588
|
+
Qe ? xt._closeSteps(Be) : xt._chunkSteps(Be);
|
|
58476
58589
|
}
|
|
58477
58590
|
function Hn(Re) {
|
|
58478
58591
|
return Re._reader._readIntoRequests.length;
|
|
@@ -58508,17 +58621,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58508
58621
|
return de(new TypeError("view's buffer must have non-zero byteLength"));
|
|
58509
58622
|
if (yt(Be.buffer), this._ownerReadableStream === void 0)
|
|
58510
58623
|
return de(xe("read from"));
|
|
58511
|
-
var
|
|
58512
|
-
|
|
58624
|
+
var Qe, gt, xt = le(function(Ut, mn) {
|
|
58625
|
+
Qe = Ut, gt = mn;
|
|
58513
58626
|
}), jt = {
|
|
58514
58627
|
_chunkSteps: function(Ut) {
|
|
58515
|
-
return
|
|
58628
|
+
return Qe({
|
|
58516
58629
|
value: Ut,
|
|
58517
58630
|
done: !1
|
|
58518
58631
|
});
|
|
58519
58632
|
},
|
|
58520
58633
|
_closeSteps: function(Ut) {
|
|
58521
|
-
return
|
|
58634
|
+
return Qe({
|
|
58522
58635
|
value: Ut,
|
|
58523
58636
|
done: !0
|
|
58524
58637
|
});
|
|
@@ -58550,20 +58663,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58550
58663
|
function Pn(Re) {
|
|
58551
58664
|
return !te(Re) || !Object.prototype.hasOwnProperty.call(Re, "_readIntoRequests") ? !1 : Re instanceof Wn;
|
|
58552
58665
|
}
|
|
58553
|
-
function tr(Re, Be,
|
|
58666
|
+
function tr(Re, Be, Qe) {
|
|
58554
58667
|
var gt = Re._ownerReadableStream;
|
|
58555
|
-
gt._disturbed = !0, gt._state === "errored" ?
|
|
58668
|
+
gt._disturbed = !0, gt._state === "errored" ? Qe._errorSteps(gt._storedError) : dn(gt._readableStreamController, Be, Qe);
|
|
58556
58669
|
}
|
|
58557
58670
|
function or(Re) {
|
|
58558
58671
|
return new TypeError("ReadableStreamBYOBReader.prototype." + Re + " can only be used on a ReadableStreamBYOBReader");
|
|
58559
58672
|
}
|
|
58560
58673
|
function En(Re, Be) {
|
|
58561
|
-
var
|
|
58562
|
-
if (
|
|
58674
|
+
var Qe = Re.highWaterMark;
|
|
58675
|
+
if (Qe === void 0)
|
|
58563
58676
|
return Be;
|
|
58564
|
-
if (tt(
|
|
58677
|
+
if (tt(Qe) || Qe < 0)
|
|
58565
58678
|
throw new RangeError("Invalid highWaterMark");
|
|
58566
|
-
return
|
|
58679
|
+
return Qe;
|
|
58567
58680
|
}
|
|
58568
58681
|
function Zt(Re) {
|
|
58569
58682
|
var Be = Re.size;
|
|
@@ -58573,45 +58686,45 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58573
58686
|
}
|
|
58574
58687
|
function Cn(Re, Be) {
|
|
58575
58688
|
Ye(Re, Be);
|
|
58576
|
-
var
|
|
58689
|
+
var Qe = Re == null ? void 0 : Re.highWaterMark, gt = Re == null ? void 0 : Re.size;
|
|
58577
58690
|
return {
|
|
58578
|
-
highWaterMark:
|
|
58691
|
+
highWaterMark: Qe === void 0 ? void 0 : ke(Qe),
|
|
58579
58692
|
size: gt === void 0 ? void 0 : $n(gt, Be + " has member 'size' that")
|
|
58580
58693
|
};
|
|
58581
58694
|
}
|
|
58582
58695
|
function $n(Re, Be) {
|
|
58583
|
-
return at(Re, Be), function(
|
|
58584
|
-
return ke(Re(
|
|
58696
|
+
return at(Re, Be), function(Qe) {
|
|
58697
|
+
return ke(Re(Qe));
|
|
58585
58698
|
};
|
|
58586
58699
|
}
|
|
58587
58700
|
function On(Re, Be) {
|
|
58588
58701
|
Ye(Re, Be);
|
|
58589
|
-
var
|
|
58702
|
+
var Qe = Re == null ? void 0 : Re.abort, gt = Re == null ? void 0 : Re.close, xt = Re == null ? void 0 : Re.start, jt = Re == null ? void 0 : Re.type, Ut = Re == null ? void 0 : Re.write;
|
|
58590
58703
|
return {
|
|
58591
|
-
abort:
|
|
58704
|
+
abort: Qe === void 0 ? void 0 : An(Qe, Re, Be + " has member 'abort' that"),
|
|
58592
58705
|
close: gt === void 0 ? void 0 : Kn(gt, Re, Be + " has member 'close' that"),
|
|
58593
58706
|
start: xt === void 0 ? void 0 : Xn(xt, Re, Be + " has member 'start' that"),
|
|
58594
58707
|
write: Ut === void 0 ? void 0 : rr(Ut, Re, Be + " has member 'write' that"),
|
|
58595
58708
|
type: jt
|
|
58596
58709
|
};
|
|
58597
58710
|
}
|
|
58598
|
-
function An(Re, Be,
|
|
58599
|
-
return at(Re,
|
|
58711
|
+
function An(Re, Be, Qe) {
|
|
58712
|
+
return at(Re, Qe), function(gt) {
|
|
58600
58713
|
return Se(Re, Be, [gt]);
|
|
58601
58714
|
};
|
|
58602
58715
|
}
|
|
58603
|
-
function Kn(Re, Be,
|
|
58604
|
-
return at(Re,
|
|
58716
|
+
function Kn(Re, Be, Qe) {
|
|
58717
|
+
return at(Re, Qe), function() {
|
|
58605
58718
|
return Se(Re, Be, []);
|
|
58606
58719
|
};
|
|
58607
58720
|
}
|
|
58608
|
-
function Xn(Re, Be,
|
|
58609
|
-
return at(Re,
|
|
58721
|
+
function Xn(Re, Be, Qe) {
|
|
58722
|
+
return at(Re, Qe), function(gt) {
|
|
58610
58723
|
return ye(Re, Be, [gt]);
|
|
58611
58724
|
};
|
|
58612
58725
|
}
|
|
58613
|
-
function rr(Re, Be,
|
|
58614
|
-
return at(Re,
|
|
58726
|
+
function rr(Re, Be, Qe) {
|
|
58727
|
+
return at(Re, Qe), function(gt, xt) {
|
|
58615
58728
|
return Se(Re, Be, [
|
|
58616
58729
|
gt,
|
|
58617
58730
|
xt
|
|
@@ -58637,9 +58750,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58637
58750
|
return new AbortController();
|
|
58638
58751
|
}
|
|
58639
58752
|
var Bn = function() {
|
|
58640
|
-
function Re(Be,
|
|
58641
|
-
Be === void 0 && (Be = {}),
|
|
58642
|
-
var gt = Cn(
|
|
58753
|
+
function Re(Be, Qe) {
|
|
58754
|
+
Be === void 0 && (Be = {}), Qe === void 0 && (Qe = {}), Be === void 0 ? Be = null : Le(Be, "First parameter");
|
|
58755
|
+
var gt = Cn(Qe, "Second parameter"), xt = On(Be, "First parameter");
|
|
58643
58756
|
ur(this);
|
|
58644
58757
|
var jt = xt.type;
|
|
58645
58758
|
if (jt !== void 0)
|
|
@@ -58650,18 +58763,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58650
58763
|
return Object.defineProperty(Re.prototype, "locked", {
|
|
58651
58764
|
get: function() {
|
|
58652
58765
|
if (!Yn(this))
|
|
58653
|
-
throw
|
|
58654
|
-
return
|
|
58766
|
+
throw Qr("locked");
|
|
58767
|
+
return Jn(this);
|
|
58655
58768
|
},
|
|
58656
58769
|
enumerable: !1,
|
|
58657
58770
|
configurable: !0
|
|
58658
58771
|
}), Re.prototype.abort = function(Be) {
|
|
58659
|
-
return Be === void 0 && (Be = void 0), Yn(this) ?
|
|
58772
|
+
return Be === void 0 && (Be = void 0), Yn(this) ? Jn(this) ? de(new TypeError("Cannot abort a stream that already has a writer")) : dr(this, Be) : de(Qr("abort"));
|
|
58660
58773
|
}, Re.prototype.close = function() {
|
|
58661
|
-
return Yn(this) ?
|
|
58774
|
+
return Yn(this) ? Jn(this) ? de(new TypeError("Cannot close a stream that already has a writer")) : fr(this) ? de(new TypeError("Cannot close an already-closing stream")) : mr(this) : de(Qr("close"));
|
|
58662
58775
|
}, Re.prototype.getWriter = function() {
|
|
58663
58776
|
if (!Yn(this))
|
|
58664
|
-
throw
|
|
58777
|
+
throw Qr("getWriter");
|
|
58665
58778
|
return zn(this);
|
|
58666
58779
|
}, Re;
|
|
58667
58780
|
}();
|
|
@@ -58677,14 +58790,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58677
58790
|
function zn(Re) {
|
|
58678
58791
|
return new zr(Re);
|
|
58679
58792
|
}
|
|
58680
|
-
function Gn(Re, Be,
|
|
58793
|
+
function Gn(Re, Be, Qe, gt, xt, jt) {
|
|
58681
58794
|
xt === void 0 && (xt = 1), jt === void 0 && (jt = function() {
|
|
58682
58795
|
return 1;
|
|
58683
58796
|
});
|
|
58684
58797
|
var Ut = Object.create(Bn.prototype);
|
|
58685
58798
|
ur(Ut);
|
|
58686
58799
|
var mn = Object.create(Mr.prototype);
|
|
58687
|
-
return Oa(Ut, mn, Re, Be,
|
|
58800
|
+
return Oa(Ut, mn, Re, Be, Qe, gt, xt, jt), Ut;
|
|
58688
58801
|
}
|
|
58689
58802
|
function ur(Re) {
|
|
58690
58803
|
Re._state = "writable", Re._storedError = void 0, Re._writer = void 0, Re._writableStreamController = void 0, Re._writeRequests = new be(), Re._inFlightWriteRequest = void 0, Re._closeRequest = void 0, Re._inFlightCloseRequest = void 0, Re._pendingAbortRequest = void 0, Re._backpressure = !1;
|
|
@@ -58692,14 +58805,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58692
58805
|
function Yn(Re) {
|
|
58693
58806
|
return !te(Re) || !Object.prototype.hasOwnProperty.call(Re, "_writableStreamController") ? !1 : Re instanceof Bn;
|
|
58694
58807
|
}
|
|
58695
|
-
function
|
|
58808
|
+
function Jn(Re) {
|
|
58696
58809
|
return Re._writer !== void 0;
|
|
58697
58810
|
}
|
|
58698
58811
|
function dr(Re, Be) {
|
|
58699
|
-
var
|
|
58812
|
+
var Qe;
|
|
58700
58813
|
if (Re._state === "closed" || Re._state === "errored")
|
|
58701
58814
|
return ue(void 0);
|
|
58702
|
-
Re._writableStreamController._abortReason = Be, (
|
|
58815
|
+
Re._writableStreamController._abortReason = Be, (Qe = Re._writableStreamController._abortController) === null || Qe === void 0 || Qe.abort();
|
|
58703
58816
|
var gt = Re._state;
|
|
58704
58817
|
if (gt === "closed" || gt === "errored")
|
|
58705
58818
|
return ue(void 0);
|
|
@@ -58722,19 +58835,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58722
58835
|
var Be = Re._state;
|
|
58723
58836
|
if (Be === "closed" || Be === "errored")
|
|
58724
58837
|
return de(new TypeError("The stream (in " + Be + " state) is not in the writable state and cannot be closed"));
|
|
58725
|
-
var
|
|
58838
|
+
var Qe = le(function(xt, jt) {
|
|
58726
58839
|
var Ut = {
|
|
58727
58840
|
_resolve: xt,
|
|
58728
58841
|
_reject: jt
|
|
58729
58842
|
};
|
|
58730
58843
|
Re._closeRequest = Ut;
|
|
58731
58844
|
}), gt = Re._writer;
|
|
58732
|
-
return gt !== void 0 && Re._backpressure && Be === "writable" && Sa(gt), po(Re._writableStreamController),
|
|
58845
|
+
return gt !== void 0 && Re._backpressure && Be === "writable" && Sa(gt), po(Re._writableStreamController), Qe;
|
|
58733
58846
|
}
|
|
58734
58847
|
function jr(Re) {
|
|
58735
|
-
var Be = le(function(
|
|
58848
|
+
var Be = le(function(Qe, gt) {
|
|
58736
58849
|
var xt = {
|
|
58737
|
-
_resolve:
|
|
58850
|
+
_resolve: Qe,
|
|
58738
58851
|
_reject: gt
|
|
58739
58852
|
};
|
|
58740
58853
|
Re._writeRequests.push(xt);
|
|
@@ -58742,18 +58855,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58742
58855
|
return Be;
|
|
58743
58856
|
}
|
|
58744
58857
|
function Tr(Re, Be) {
|
|
58745
|
-
var
|
|
58746
|
-
if (
|
|
58858
|
+
var Qe = Re._state;
|
|
58859
|
+
if (Qe === "writable") {
|
|
58747
58860
|
Pr(Re, Be);
|
|
58748
58861
|
return;
|
|
58749
58862
|
}
|
|
58750
58863
|
fn(Re);
|
|
58751
58864
|
}
|
|
58752
58865
|
function Pr(Re, Be) {
|
|
58753
|
-
var
|
|
58866
|
+
var Qe = Re._writableStreamController;
|
|
58754
58867
|
Re._state = "erroring", Re._storedError = Be;
|
|
58755
58868
|
var gt = Re._writer;
|
|
58756
|
-
gt !== void 0 && xa(gt, Be), !Br(Re) &&
|
|
58869
|
+
gt !== void 0 && xa(gt, Be), !Br(Re) && Qe._started && fn(Re);
|
|
58757
58870
|
}
|
|
58758
58871
|
function fn(Re) {
|
|
58759
58872
|
Re._state = "errored", Re._writableStreamController[Ae]();
|
|
@@ -58764,16 +58877,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58764
58877
|
Xr(Re);
|
|
58765
58878
|
return;
|
|
58766
58879
|
}
|
|
58767
|
-
var
|
|
58768
|
-
if (Re._pendingAbortRequest = void 0,
|
|
58769
|
-
|
|
58880
|
+
var Qe = Re._pendingAbortRequest;
|
|
58881
|
+
if (Re._pendingAbortRequest = void 0, Qe._wasAlreadyErroring) {
|
|
58882
|
+
Qe._reject(Be), Xr(Re);
|
|
58770
58883
|
return;
|
|
58771
58884
|
}
|
|
58772
|
-
var gt = Re._writableStreamController[we](
|
|
58885
|
+
var gt = Re._writableStreamController[we](Qe._reason);
|
|
58773
58886
|
ve(gt, function() {
|
|
58774
|
-
|
|
58887
|
+
Qe._resolve(), Xr(Re);
|
|
58775
58888
|
}, function(xt) {
|
|
58776
|
-
|
|
58889
|
+
Qe._reject(xt), Xr(Re);
|
|
58777
58890
|
});
|
|
58778
58891
|
}
|
|
58779
58892
|
function Rn(Re) {
|
|
@@ -58786,8 +58899,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58786
58899
|
Re._inFlightCloseRequest._resolve(void 0), Re._inFlightCloseRequest = void 0;
|
|
58787
58900
|
var Be = Re._state;
|
|
58788
58901
|
Be === "erroring" && (Re._storedError = void 0, Re._pendingAbortRequest !== void 0 && (Re._pendingAbortRequest._resolve(), Re._pendingAbortRequest = void 0)), Re._state = "closed";
|
|
58789
|
-
var
|
|
58790
|
-
|
|
58902
|
+
var Qe = Re._writer;
|
|
58903
|
+
Qe !== void 0 && Ma(Qe);
|
|
58791
58904
|
}
|
|
58792
58905
|
function qn(Re, Be) {
|
|
58793
58906
|
Re._inFlightCloseRequest._reject(Be), Re._inFlightCloseRequest = void 0, Re._pendingAbortRequest !== void 0 && (Re._pendingAbortRequest._reject(Be), Re._pendingAbortRequest = void 0), Tr(Re, Be);
|
|
@@ -58810,20 +58923,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58810
58923
|
Be !== void 0 && ya(Be, Re._storedError);
|
|
58811
58924
|
}
|
|
58812
58925
|
function pa(Re, Be) {
|
|
58813
|
-
var
|
|
58814
|
-
|
|
58926
|
+
var Qe = Re._writer;
|
|
58927
|
+
Qe !== void 0 && Be !== Re._backpressure && (Be ? So(Qe) : Sa(Qe)), Re._backpressure = Be;
|
|
58815
58928
|
}
|
|
58816
58929
|
var zr = function() {
|
|
58817
58930
|
function Re(Be) {
|
|
58818
|
-
if (Te(Be, 1, "WritableStreamDefaultWriter"), ir(Be, "First parameter"),
|
|
58931
|
+
if (Te(Be, 1, "WritableStreamDefaultWriter"), ir(Be, "First parameter"), Jn(Be))
|
|
58819
58932
|
throw new TypeError("This stream has already been locked for exclusive writing by another writer");
|
|
58820
58933
|
this._ownerWritableStream = Be, Be._writer = this;
|
|
58821
|
-
var
|
|
58822
|
-
if (
|
|
58934
|
+
var Qe = Be._state;
|
|
58935
|
+
if (Qe === "writable")
|
|
58823
58936
|
!fr(Be) && Be._backpressure ? ea(this) : ka(this), Zr(this);
|
|
58824
|
-
else if (
|
|
58937
|
+
else if (Qe === "erroring")
|
|
58825
58938
|
ba(this, Be._storedError), Zr(this);
|
|
58826
|
-
else if (
|
|
58939
|
+
else if (Qe === "closed")
|
|
58827
58940
|
ka(this), yo(this);
|
|
58828
58941
|
else {
|
|
58829
58942
|
var gt = Be._storedError;
|
|
@@ -58884,16 +58997,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58884
58997
|
return !te(Re) || !Object.prototype.hasOwnProperty.call(Re, "_ownerWritableStream") ? !1 : Re instanceof zr;
|
|
58885
58998
|
}
|
|
58886
58999
|
function lo(Re, Be) {
|
|
58887
|
-
var
|
|
58888
|
-
return dr(
|
|
59000
|
+
var Qe = Re._ownerWritableStream;
|
|
59001
|
+
return dr(Qe, Be);
|
|
58889
59002
|
}
|
|
58890
59003
|
function $a(Re) {
|
|
58891
59004
|
var Be = Re._ownerWritableStream;
|
|
58892
59005
|
return mr(Be);
|
|
58893
59006
|
}
|
|
58894
59007
|
function so(Re) {
|
|
58895
|
-
var Be = Re._ownerWritableStream,
|
|
58896
|
-
return fr(Be) ||
|
|
59008
|
+
var Be = Re._ownerWritableStream, Qe = Be._state;
|
|
59009
|
+
return fr(Be) || Qe === "closed" ? ue(void 0) : Qe === "errored" ? de(Be._storedError) : $a(Re);
|
|
58897
59010
|
}
|
|
58898
59011
|
function co(Re, Be) {
|
|
58899
59012
|
Re._closedPromiseState === "pending" ? ya(Re, Be) : bo(Re, Be);
|
|
@@ -58902,25 +59015,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58902
59015
|
Re._readyPromiseState === "pending" ? Fa(Re, Be) : Co(Re, Be);
|
|
58903
59016
|
}
|
|
58904
59017
|
function uo(Re) {
|
|
58905
|
-
var Be = Re._ownerWritableStream,
|
|
58906
|
-
return
|
|
59018
|
+
var Be = Re._ownerWritableStream, Qe = Be._state;
|
|
59019
|
+
return Qe === "errored" || Qe === "erroring" ? null : Qe === "closed" ? 0 : Ia(Be._writableStreamController);
|
|
58907
59020
|
}
|
|
58908
59021
|
function wa(Re) {
|
|
58909
|
-
var Be = Re._ownerWritableStream,
|
|
58910
|
-
xa(Re,
|
|
59022
|
+
var Be = Re._ownerWritableStream, Qe = new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");
|
|
59023
|
+
xa(Re, Qe), co(Re, Qe), Be._writer = void 0, Re._ownerWritableStream = void 0;
|
|
58911
59024
|
}
|
|
58912
59025
|
function Ta(Re, Be) {
|
|
58913
|
-
var
|
|
58914
|
-
if (
|
|
59026
|
+
var Qe = Re._ownerWritableStream, gt = Qe._writableStreamController, xt = mo(gt, Be);
|
|
59027
|
+
if (Qe !== Re._ownerWritableStream)
|
|
58915
59028
|
return de(Hr("write to"));
|
|
58916
|
-
var jt =
|
|
59029
|
+
var jt = Qe._state;
|
|
58917
59030
|
if (jt === "errored")
|
|
58918
|
-
return de(
|
|
58919
|
-
if (fr(
|
|
59031
|
+
return de(Qe._storedError);
|
|
59032
|
+
if (fr(Qe) || jt === "closed")
|
|
58920
59033
|
return de(new TypeError("The stream is closing or closed and cannot be written to"));
|
|
58921
59034
|
if (jt === "erroring")
|
|
58922
|
-
return de(
|
|
58923
|
-
var Ut = jr(
|
|
59035
|
+
return de(Qe._storedError);
|
|
59036
|
+
var Ut = jr(Qe);
|
|
58924
59037
|
return vo(gt, Be, xt), Ut;
|
|
58925
59038
|
}
|
|
58926
59039
|
var Pa = {}, Mr = function() {
|
|
@@ -58948,11 +59061,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58948
59061
|
}), Re.prototype.error = function(Be) {
|
|
58949
59062
|
if (Be === void 0 && (Be = void 0), !ma(this))
|
|
58950
59063
|
throw ha("error");
|
|
58951
|
-
var
|
|
58952
|
-
|
|
59064
|
+
var Qe = this._controlledWritableStream._state;
|
|
59065
|
+
Qe === "writable" && Aa(this, Be);
|
|
58953
59066
|
}, Re.prototype[we] = function(Be) {
|
|
58954
|
-
var
|
|
58955
|
-
return Yr(this),
|
|
59067
|
+
var Qe = this._abortAlgorithm(Be);
|
|
59068
|
+
return Yr(this), Qe;
|
|
58956
59069
|
}, Re.prototype[Ae] = function() {
|
|
58957
59070
|
Pt(this);
|
|
58958
59071
|
}, Re;
|
|
@@ -58968,18 +59081,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58968
59081
|
function ma(Re) {
|
|
58969
59082
|
return !te(Re) || !Object.prototype.hasOwnProperty.call(Re, "_controlledWritableStream") ? !1 : Re instanceof Mr;
|
|
58970
59083
|
}
|
|
58971
|
-
function Oa(Re, Be,
|
|
59084
|
+
function Oa(Re, Be, Qe, gt, xt, jt, Ut, mn) {
|
|
58972
59085
|
Be._controlledWritableStream = Re, Re._writableStreamController = Be, Be._queue = void 0, Be._queueTotalSize = void 0, Pt(Be), Be._abortReason = void 0, Be._abortController = yn(), Be._started = !1, Be._strategySizeAlgorithm = mn, Be._strategyHWM = Ut, Be._writeAlgorithm = gt, Be._closeAlgorithm = xt, Be._abortAlgorithm = jt;
|
|
58973
59086
|
var In = ga(Be);
|
|
58974
59087
|
pa(Re, In);
|
|
58975
|
-
var Mn =
|
|
59088
|
+
var Mn = Qe(), kn = ue(Mn);
|
|
58976
59089
|
ve(kn, function() {
|
|
58977
|
-
Be._started = !0,
|
|
59090
|
+
Be._started = !0, Jr(Be);
|
|
58978
59091
|
}, function(Fn) {
|
|
58979
59092
|
Be._started = !0, Tr(Re, Fn);
|
|
58980
59093
|
});
|
|
58981
59094
|
}
|
|
58982
|
-
function fo(Re, Be,
|
|
59095
|
+
function fo(Re, Be, Qe, gt) {
|
|
58983
59096
|
var xt = Object.create(Mr.prototype), jt = function() {
|
|
58984
59097
|
}, Ut = function() {
|
|
58985
59098
|
return ue(void 0);
|
|
@@ -58996,27 +59109,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58996
59109
|
return Be.close();
|
|
58997
59110
|
}), Be.abort !== void 0 && (In = function(Mn) {
|
|
58998
59111
|
return Be.abort(Mn);
|
|
58999
|
-
}), Oa(Re, xt, jt, Ut, mn, In,
|
|
59112
|
+
}), Oa(Re, xt, jt, Ut, mn, In, Qe, gt);
|
|
59000
59113
|
}
|
|
59001
59114
|
function Yr(Re) {
|
|
59002
59115
|
Re._writeAlgorithm = void 0, Re._closeAlgorithm = void 0, Re._abortAlgorithm = void 0, Re._strategySizeAlgorithm = void 0;
|
|
59003
59116
|
}
|
|
59004
59117
|
function po(Re) {
|
|
59005
|
-
Bt(Re, Pa, 0),
|
|
59118
|
+
Bt(Re, Pa, 0), Jr(Re);
|
|
59006
59119
|
}
|
|
59007
59120
|
function mo(Re, Be) {
|
|
59008
59121
|
try {
|
|
59009
59122
|
return Re._strategySizeAlgorithm(Be);
|
|
59010
|
-
} catch (
|
|
59011
|
-
return va(Re,
|
|
59123
|
+
} catch (Qe) {
|
|
59124
|
+
return va(Re, Qe), 1;
|
|
59012
59125
|
}
|
|
59013
59126
|
}
|
|
59014
59127
|
function Ia(Re) {
|
|
59015
59128
|
return Re._strategyHWM - Re._queueTotalSize;
|
|
59016
59129
|
}
|
|
59017
|
-
function vo(Re, Be,
|
|
59130
|
+
function vo(Re, Be, Qe) {
|
|
59018
59131
|
try {
|
|
59019
|
-
Bt(Re, Be,
|
|
59132
|
+
Bt(Re, Be, Qe);
|
|
59020
59133
|
} catch (jt) {
|
|
59021
59134
|
va(Re, jt);
|
|
59022
59135
|
return;
|
|
@@ -59026,13 +59139,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59026
59139
|
var xt = ga(Re);
|
|
59027
59140
|
pa(gt, xt);
|
|
59028
59141
|
}
|
|
59029
|
-
|
|
59142
|
+
Jr(Re);
|
|
59030
59143
|
}
|
|
59031
|
-
function
|
|
59144
|
+
function Jr(Re) {
|
|
59032
59145
|
var Be = Re._controlledWritableStream;
|
|
59033
59146
|
if (Re._started && Be._inFlightWriteRequest === void 0) {
|
|
59034
|
-
var
|
|
59035
|
-
if (
|
|
59147
|
+
var Qe = Be._state;
|
|
59148
|
+
if (Qe === "erroring") {
|
|
59036
59149
|
fn(Be);
|
|
59037
59150
|
return;
|
|
59038
59151
|
}
|
|
@@ -59048,27 +59161,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59048
59161
|
function go(Re) {
|
|
59049
59162
|
var Be = Re._controlledWritableStream;
|
|
59050
59163
|
qr(Be), Ct(Re);
|
|
59051
|
-
var
|
|
59052
|
-
Yr(Re), ve(
|
|
59164
|
+
var Qe = Re._closeAlgorithm();
|
|
59165
|
+
Yr(Re), ve(Qe, function() {
|
|
59053
59166
|
nr(Be);
|
|
59054
59167
|
}, function(gt) {
|
|
59055
59168
|
qn(Be, gt);
|
|
59056
59169
|
});
|
|
59057
59170
|
}
|
|
59058
59171
|
function ho(Re, Be) {
|
|
59059
|
-
var
|
|
59060
|
-
Nr(
|
|
59172
|
+
var Qe = Re._controlledWritableStream;
|
|
59173
|
+
Nr(Qe);
|
|
59061
59174
|
var gt = Re._writeAlgorithm(Be);
|
|
59062
59175
|
ve(gt, function() {
|
|
59063
|
-
Rn(
|
|
59064
|
-
var xt =
|
|
59065
|
-
if (Ct(Re), !fr(
|
|
59176
|
+
Rn(Qe);
|
|
59177
|
+
var xt = Qe._state;
|
|
59178
|
+
if (Ct(Re), !fr(Qe) && xt === "writable") {
|
|
59066
59179
|
var jt = ga(Re);
|
|
59067
|
-
pa(
|
|
59180
|
+
pa(Qe, jt);
|
|
59068
59181
|
}
|
|
59069
|
-
|
|
59182
|
+
Jr(Re);
|
|
59070
59183
|
}, function(xt) {
|
|
59071
|
-
|
|
59184
|
+
Qe._state === "writable" && Yr(Re), Vn(Qe, xt);
|
|
59072
59185
|
});
|
|
59073
59186
|
}
|
|
59074
59187
|
function ga(Re) {
|
|
@@ -59076,10 +59189,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59076
59189
|
return Be <= 0;
|
|
59077
59190
|
}
|
|
59078
59191
|
function Aa(Re, Be) {
|
|
59079
|
-
var
|
|
59080
|
-
Yr(Re), Pr(
|
|
59192
|
+
var Qe = Re._controlledWritableStream;
|
|
59193
|
+
Yr(Re), Pr(Qe, Be);
|
|
59081
59194
|
}
|
|
59082
|
-
function
|
|
59195
|
+
function Qr(Re) {
|
|
59083
59196
|
return new TypeError("WritableStream.prototype." + Re + " can only be used on a WritableStream");
|
|
59084
59197
|
}
|
|
59085
59198
|
function ha(Re) {
|
|
@@ -59092,8 +59205,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59092
59205
|
return new TypeError("Cannot " + Re + " a stream using a released writer");
|
|
59093
59206
|
}
|
|
59094
59207
|
function Zr(Re) {
|
|
59095
|
-
Re._closedPromise = le(function(Be,
|
|
59096
|
-
Re._closedPromise_resolve = Be, Re._closedPromise_reject =
|
|
59208
|
+
Re._closedPromise = le(function(Be, Qe) {
|
|
59209
|
+
Re._closedPromise_resolve = Be, Re._closedPromise_reject = Qe, Re._closedPromiseState = "pending";
|
|
59097
59210
|
});
|
|
59098
59211
|
}
|
|
59099
59212
|
function Na(Re, Be) {
|
|
@@ -59112,8 +59225,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59112
59225
|
Re._closedPromise_resolve !== void 0 && (Re._closedPromise_resolve(void 0), Re._closedPromise_resolve = void 0, Re._closedPromise_reject = void 0, Re._closedPromiseState = "resolved");
|
|
59113
59226
|
}
|
|
59114
59227
|
function ea(Re) {
|
|
59115
|
-
Re._readyPromise = le(function(Be,
|
|
59116
|
-
Re._readyPromise_resolve = Be, Re._readyPromise_reject =
|
|
59228
|
+
Re._readyPromise = le(function(Be, Qe) {
|
|
59229
|
+
Re._readyPromise_resolve = Be, Re._readyPromise_reject = Qe;
|
|
59117
59230
|
}), Re._readyPromiseState = "pending";
|
|
59118
59231
|
}
|
|
59119
59232
|
function ba(Re, Be) {
|
|
@@ -59145,8 +59258,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59145
59258
|
}
|
|
59146
59259
|
}
|
|
59147
59260
|
function Ro() {
|
|
59148
|
-
var Re = function(
|
|
59149
|
-
this.message =
|
|
59261
|
+
var Re = function(Qe, gt) {
|
|
59262
|
+
this.message = Qe || "", this.name = gt || "Error", Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
59150
59263
|
};
|
|
59151
59264
|
return Re.prototype = Object.create(Error.prototype), Object.defineProperty(Re.prototype, "constructor", {
|
|
59152
59265
|
value: Re,
|
|
@@ -59155,7 +59268,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59155
59268
|
}), Re;
|
|
59156
59269
|
}
|
|
59157
59270
|
var Eo = _o(Da) ? Da : Ro();
|
|
59158
|
-
function La(Re, Be,
|
|
59271
|
+
function La(Re, Be, Qe, gt, xt, jt) {
|
|
59159
59272
|
var Ut = lt(Re), mn = zn(Be);
|
|
59160
59273
|
Re._disturbed = !0;
|
|
59161
59274
|
var In = !1, Mn = ue(void 0);
|
|
@@ -59211,7 +59324,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59211
59324
|
return vr(Re, xn);
|
|
59212
59325
|
}, !0, xn);
|
|
59213
59326
|
}), yr(Re, Ut._closedPromise, function() {
|
|
59214
|
-
|
|
59327
|
+
Qe ? Cr() : pr(function() {
|
|
59215
59328
|
return so(mn);
|
|
59216
59329
|
});
|
|
59217
59330
|
}), fr(Be) || Be._state === "closed") {
|
|
@@ -59239,18 +59352,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59239
59352
|
In = !0, Be._state === "writable" && !fr(Be) ? me(hr(), br) : br();
|
|
59240
59353
|
function br() {
|
|
59241
59354
|
ve(xn(), function() {
|
|
59242
|
-
return
|
|
59355
|
+
return Qn(jn, Zn);
|
|
59243
59356
|
}, function(wr) {
|
|
59244
|
-
return
|
|
59357
|
+
return Qn(!0, wr);
|
|
59245
59358
|
});
|
|
59246
59359
|
}
|
|
59247
59360
|
}
|
|
59248
59361
|
function Cr(xn, jn) {
|
|
59249
59362
|
In || (In = !0, Be._state === "writable" && !fr(Be) ? me(hr(), function() {
|
|
59250
|
-
return
|
|
59251
|
-
}) :
|
|
59363
|
+
return Qn(xn, jn);
|
|
59364
|
+
}) : Qn(xn, jn));
|
|
59252
59365
|
}
|
|
59253
|
-
function
|
|
59366
|
+
function Qn(xn, jn) {
|
|
59254
59367
|
wa(mn), _e(Ut), jt !== void 0 && jt.removeEventListener("abort", ar), xn ? Fn(jn) : kn(void 0);
|
|
59255
59368
|
}
|
|
59256
59369
|
});
|
|
@@ -59285,15 +59398,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59285
59398
|
_r(this, Be);
|
|
59286
59399
|
}, Re.prototype[Me] = function(Be) {
|
|
59287
59400
|
Pt(this);
|
|
59288
|
-
var
|
|
59289
|
-
return na(this),
|
|
59401
|
+
var Qe = this._cancelAlgorithm(Be);
|
|
59402
|
+
return na(this), Qe;
|
|
59290
59403
|
}, Re.prototype[je] = function(Be) {
|
|
59291
|
-
var
|
|
59404
|
+
var Qe = this._controlledReadableStream;
|
|
59292
59405
|
if (this._queue.length > 0) {
|
|
59293
59406
|
var gt = Ct(this);
|
|
59294
|
-
this._closeRequested && this._queue.length === 0 ? (na(this), Ur(
|
|
59407
|
+
this._closeRequested && this._queue.length === 0 ? (na(this), Ur(Qe)) : Vr(this), Be._chunkSteps(gt);
|
|
59295
59408
|
} else
|
|
59296
|
-
it(
|
|
59409
|
+
it(Qe, Be), Vr(this);
|
|
59297
59410
|
}, Re;
|
|
59298
59411
|
}();
|
|
59299
59412
|
Object.defineProperties(kr.prototype, {
|
|
@@ -59316,8 +59429,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59316
59429
|
return;
|
|
59317
59430
|
}
|
|
59318
59431
|
Re._pulling = !0;
|
|
59319
|
-
var
|
|
59320
|
-
ve(
|
|
59432
|
+
var Qe = Re._pullAlgorithm();
|
|
59433
|
+
ve(Qe, function() {
|
|
59321
59434
|
Re._pulling = !1, Re._pullAgain && (Re._pullAgain = !1, Vr(Re));
|
|
59322
59435
|
}, function(gt) {
|
|
59323
59436
|
_r(Re, gt);
|
|
@@ -59330,8 +59443,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59330
59443
|
return !1;
|
|
59331
59444
|
if ($r(Be) && ct(Be) > 0)
|
|
59332
59445
|
return !0;
|
|
59333
|
-
var
|
|
59334
|
-
return
|
|
59446
|
+
var Qe = Ca(Re);
|
|
59447
|
+
return Qe > 0;
|
|
59335
59448
|
}
|
|
59336
59449
|
function na(Re) {
|
|
59337
59450
|
Re._pullAlgorithm = void 0, Re._cancelAlgorithm = void 0, Re._strategySizeAlgorithm = void 0;
|
|
@@ -59344,9 +59457,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59344
59457
|
}
|
|
59345
59458
|
function ra(Re, Be) {
|
|
59346
59459
|
if (Fr(Re)) {
|
|
59347
|
-
var
|
|
59348
|
-
if ($r(
|
|
59349
|
-
Qe
|
|
59460
|
+
var Qe = Re._controlledReadableStream;
|
|
59461
|
+
if ($r(Qe) && ct(Qe) > 0)
|
|
59462
|
+
Je(Qe, Be, !1);
|
|
59350
59463
|
else {
|
|
59351
59464
|
var gt = void 0;
|
|
59352
59465
|
try {
|
|
@@ -59364,8 +59477,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59364
59477
|
}
|
|
59365
59478
|
}
|
|
59366
59479
|
function _r(Re, Be) {
|
|
59367
|
-
var
|
|
59368
|
-
|
|
59480
|
+
var Qe = Re._controlledReadableStream;
|
|
59481
|
+
Qe._state === "readable" && (Pt(Re), na(Re), Va(Qe, Be));
|
|
59369
59482
|
}
|
|
59370
59483
|
function Ca(Re) {
|
|
59371
59484
|
var Be = Re._controlledReadableStream._state;
|
|
@@ -59378,16 +59491,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59378
59491
|
var Be = Re._controlledReadableStream._state;
|
|
59379
59492
|
return !Re._closeRequested && Be === "readable";
|
|
59380
59493
|
}
|
|
59381
|
-
function Ba(Re, Be,
|
|
59494
|
+
function Ba(Re, Be, Qe, gt, xt, jt, Ut) {
|
|
59382
59495
|
Be._controlledReadableStream = Re, Be._queue = void 0, Be._queueTotalSize = void 0, Pt(Be), Be._started = !1, Be._closeRequested = !1, Be._pullAgain = !1, Be._pulling = !1, Be._strategySizeAlgorithm = Ut, Be._strategyHWM = jt, Be._pullAlgorithm = gt, Be._cancelAlgorithm = xt, Re._readableStreamController = Be;
|
|
59383
|
-
var mn =
|
|
59496
|
+
var mn = Qe();
|
|
59384
59497
|
ve(ue(mn), function() {
|
|
59385
59498
|
Be._started = !0, Vr(Be);
|
|
59386
59499
|
}, function(In) {
|
|
59387
59500
|
_r(Be, In);
|
|
59388
59501
|
});
|
|
59389
59502
|
}
|
|
59390
|
-
function xo(Re, Be,
|
|
59503
|
+
function xo(Re, Be, Qe, gt) {
|
|
59391
59504
|
var xt = Object.create(kr.prototype), jt = function() {
|
|
59392
59505
|
}, Ut = function() {
|
|
59393
59506
|
return ue(void 0);
|
|
@@ -59400,7 +59513,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59400
59513
|
return Be.pull(xt);
|
|
59401
59514
|
}), Be.cancel !== void 0 && (mn = function(In) {
|
|
59402
59515
|
return Be.cancel(In);
|
|
59403
|
-
}), Ba(Re, xt, jt, Ut, mn,
|
|
59516
|
+
}), Ba(Re, xt, jt, Ut, mn, Qe, gt);
|
|
59404
59517
|
}
|
|
59405
59518
|
function aa(Re) {
|
|
59406
59519
|
return new TypeError("ReadableStreamDefaultController.prototype." + Re + " can only be used on a ReadableStreamDefaultController");
|
|
@@ -59409,7 +59522,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59409
59522
|
return At(Re._readableStreamController) ? Po(Re) : To(Re);
|
|
59410
59523
|
}
|
|
59411
59524
|
function To(Re, Be) {
|
|
59412
|
-
var
|
|
59525
|
+
var Qe = lt(Re), gt = !1, xt = !1, jt = !1, Ut = !1, mn, In, Mn, kn, Fn, ar = le(function(cr) {
|
|
59413
59526
|
Fn = cr;
|
|
59414
59527
|
});
|
|
59415
59528
|
function gr() {
|
|
@@ -59431,7 +59544,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59431
59544
|
gt = !1;
|
|
59432
59545
|
}
|
|
59433
59546
|
};
|
|
59434
|
-
return bt(
|
|
59547
|
+
return bt(Qe, cr), ue(void 0);
|
|
59435
59548
|
}
|
|
59436
59549
|
function Dr(cr) {
|
|
59437
59550
|
if (jt = !0, mn = cr, Ut) {
|
|
@@ -59455,7 +59568,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59455
59568
|
}
|
|
59456
59569
|
function hr() {
|
|
59457
59570
|
}
|
|
59458
|
-
return Mn = _a(hr, gr, Dr), kn = _a(hr, gr, xr), he(
|
|
59571
|
+
return Mn = _a(hr, gr, Dr), kn = _a(hr, gr, xr), he(Qe._closedPromise, function(cr) {
|
|
59459
59572
|
_r(Mn._readableStreamController, cr), _r(kn._readableStreamController, cr), (!jt || !Ut) && Fn(void 0);
|
|
59460
59573
|
}), [
|
|
59461
59574
|
Mn,
|
|
@@ -59463,17 +59576,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59463
59576
|
];
|
|
59464
59577
|
}
|
|
59465
59578
|
function Po(Re) {
|
|
59466
|
-
var Be = lt(Re),
|
|
59467
|
-
Fn =
|
|
59579
|
+
var Be = lt(Re), Qe = !1, gt = !1, xt = !1, jt = !1, Ut = !1, mn, In, Mn, kn, Fn, ar = le(function(Qn) {
|
|
59580
|
+
Fn = Qn;
|
|
59468
59581
|
});
|
|
59469
|
-
function gr(
|
|
59470
|
-
he(
|
|
59471
|
-
|
|
59582
|
+
function gr(Qn) {
|
|
59583
|
+
he(Qn._closedPromise, function(xn) {
|
|
59584
|
+
Qn === Be && (kt(Mn._readableStreamController, xn), kt(kn._readableStreamController, xn), (!jt || !Ut) && Fn(void 0));
|
|
59472
59585
|
});
|
|
59473
59586
|
}
|
|
59474
59587
|
function Dr() {
|
|
59475
59588
|
Pn(Be) && (_e(Be), Be = lt(Re), gr(Be));
|
|
59476
|
-
var
|
|
59589
|
+
var Qn = {
|
|
59477
59590
|
_chunkSteps: function(xn) {
|
|
59478
59591
|
fe(function() {
|
|
59479
59592
|
gt = !1, xt = !1;
|
|
@@ -59485,19 +59598,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59485
59598
|
kt(Mn._readableStreamController, br), kt(kn._readableStreamController, br), Fn(vr(Re, br));
|
|
59486
59599
|
return;
|
|
59487
59600
|
}
|
|
59488
|
-
jt || Nt(Mn._readableStreamController, jn), Ut || Nt(kn._readableStreamController, Zn),
|
|
59601
|
+
jt || Nt(Mn._readableStreamController, jn), Ut || Nt(kn._readableStreamController, Zn), Qe = !1, gt ? hr() : xt && cr();
|
|
59489
59602
|
});
|
|
59490
59603
|
},
|
|
59491
59604
|
_closeSteps: function() {
|
|
59492
|
-
|
|
59605
|
+
Qe = !1, jt || Et(Mn._readableStreamController), Ut || Et(kn._readableStreamController), Mn._readableStreamController._pendingPullIntos.length > 0 && vn(Mn._readableStreamController, 0), kn._readableStreamController._pendingPullIntos.length > 0 && vn(kn._readableStreamController, 0), (!jt || !Ut) && Fn(void 0);
|
|
59493
59606
|
},
|
|
59494
59607
|
_errorSteps: function() {
|
|
59495
|
-
|
|
59608
|
+
Qe = !1;
|
|
59496
59609
|
}
|
|
59497
59610
|
};
|
|
59498
|
-
bt(Be,
|
|
59611
|
+
bt(Be, Qn);
|
|
59499
59612
|
}
|
|
59500
|
-
function xr(
|
|
59613
|
+
function xr(Qn, xn) {
|
|
59501
59614
|
ht(Be) && (_e(Be), Be = wn(Re), gr(Be));
|
|
59502
59615
|
var jn = xn ? kn : Mn, Zn = xn ? Mn : kn, br = {
|
|
59503
59616
|
_chunkSteps: function(wr) {
|
|
@@ -59516,36 +59629,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59516
59629
|
}
|
|
59517
59630
|
Lr || bn(jn._readableStreamController, wr), Nt(Zn._readableStreamController, no);
|
|
59518
59631
|
}
|
|
59519
|
-
|
|
59632
|
+
Qe = !1, gt ? hr() : xt && cr();
|
|
59520
59633
|
});
|
|
59521
59634
|
},
|
|
59522
59635
|
_closeSteps: function(wr) {
|
|
59523
|
-
|
|
59636
|
+
Qe = !1;
|
|
59524
59637
|
var Lr = xn ? Ut : jt, Gr = xn ? jt : Ut;
|
|
59525
59638
|
Lr || Et(jn._readableStreamController), Gr || Et(Zn._readableStreamController), wr !== void 0 && (Lr || bn(jn._readableStreamController, wr), !Gr && Zn._readableStreamController._pendingPullIntos.length > 0 && vn(Zn._readableStreamController, 0)), (!Lr || !Gr) && Fn(void 0);
|
|
59526
59639
|
},
|
|
59527
59640
|
_errorSteps: function() {
|
|
59528
|
-
|
|
59641
|
+
Qe = !1;
|
|
59529
59642
|
}
|
|
59530
59643
|
};
|
|
59531
|
-
tr(Be,
|
|
59644
|
+
tr(Be, Qn, br);
|
|
59532
59645
|
}
|
|
59533
59646
|
function hr() {
|
|
59534
|
-
if (
|
|
59647
|
+
if (Qe)
|
|
59535
59648
|
return gt = !0, ue(void 0);
|
|
59536
|
-
|
|
59537
|
-
var
|
|
59538
|
-
return
|
|
59649
|
+
Qe = !0;
|
|
59650
|
+
var Qn = Lt(Mn._readableStreamController);
|
|
59651
|
+
return Qn === null ? Dr() : xr(Qn._view, !1), ue(void 0);
|
|
59539
59652
|
}
|
|
59540
59653
|
function cr() {
|
|
59541
|
-
if (
|
|
59654
|
+
if (Qe)
|
|
59542
59655
|
return xt = !0, ue(void 0);
|
|
59543
|
-
|
|
59544
|
-
var
|
|
59545
|
-
return
|
|
59656
|
+
Qe = !0;
|
|
59657
|
+
var Qn = Lt(kn._readableStreamController);
|
|
59658
|
+
return Qn === null ? Dr() : xr(Qn._view, !0), ue(void 0);
|
|
59546
59659
|
}
|
|
59547
|
-
function yr(
|
|
59548
|
-
if (jt = !0, mn =
|
|
59660
|
+
function yr(Qn) {
|
|
59661
|
+
if (jt = !0, mn = Qn, Ut) {
|
|
59549
59662
|
var xn = qe([
|
|
59550
59663
|
mn,
|
|
59551
59664
|
In
|
|
@@ -59554,8 +59667,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59554
59667
|
}
|
|
59555
59668
|
return ar;
|
|
59556
59669
|
}
|
|
59557
|
-
function pr(
|
|
59558
|
-
if (Ut = !0, In =
|
|
59670
|
+
function pr(Qn) {
|
|
59671
|
+
if (Ut = !0, In = Qn, jt) {
|
|
59559
59672
|
var xn = qe([
|
|
59560
59673
|
mn,
|
|
59561
59674
|
In
|
|
@@ -59573,27 +59686,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59573
59686
|
}
|
|
59574
59687
|
function Oo(Re, Be) {
|
|
59575
59688
|
Ye(Re, Be);
|
|
59576
|
-
var
|
|
59689
|
+
var Qe = Re, gt = Qe == null ? void 0 : Qe.autoAllocateChunkSize, xt = Qe == null ? void 0 : Qe.cancel, jt = Qe == null ? void 0 : Qe.pull, Ut = Qe == null ? void 0 : Qe.start, mn = Qe == null ? void 0 : Qe.type;
|
|
59577
59690
|
return {
|
|
59578
59691
|
autoAllocateChunkSize: gt === void 0 ? void 0 : Ke(gt, Be + " has member 'autoAllocateChunkSize' that"),
|
|
59579
|
-
cancel: xt === void 0 ? void 0 : Io(xt,
|
|
59580
|
-
pull: jt === void 0 ? void 0 : Ao(jt,
|
|
59581
|
-
start: Ut === void 0 ? void 0 : No(Ut,
|
|
59692
|
+
cancel: xt === void 0 ? void 0 : Io(xt, Qe, Be + " has member 'cancel' that"),
|
|
59693
|
+
pull: jt === void 0 ? void 0 : Ao(jt, Qe, Be + " has member 'pull' that"),
|
|
59694
|
+
start: Ut === void 0 ? void 0 : No(Ut, Qe, Be + " has member 'start' that"),
|
|
59582
59695
|
type: mn === void 0 ? void 0 : Mo(mn, Be + " has member 'type' that")
|
|
59583
59696
|
};
|
|
59584
59697
|
}
|
|
59585
|
-
function Io(Re, Be,
|
|
59586
|
-
return at(Re,
|
|
59698
|
+
function Io(Re, Be, Qe) {
|
|
59699
|
+
return at(Re, Qe), function(gt) {
|
|
59587
59700
|
return Se(Re, Be, [gt]);
|
|
59588
59701
|
};
|
|
59589
59702
|
}
|
|
59590
|
-
function Ao(Re, Be,
|
|
59591
|
-
return at(Re,
|
|
59703
|
+
function Ao(Re, Be, Qe) {
|
|
59704
|
+
return at(Re, Qe), function(gt) {
|
|
59592
59705
|
return Se(Re, Be, [gt]);
|
|
59593
59706
|
};
|
|
59594
59707
|
}
|
|
59595
|
-
function No(Re, Be,
|
|
59596
|
-
return at(Re,
|
|
59708
|
+
function No(Re, Be, Qe) {
|
|
59709
|
+
return at(Re, Qe), function(gt) {
|
|
59597
59710
|
return ye(Re, Be, [gt]);
|
|
59598
59711
|
};
|
|
59599
59712
|
}
|
|
@@ -59604,8 +59717,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59604
59717
|
}
|
|
59605
59718
|
function ko(Re, Be) {
|
|
59606
59719
|
Ye(Re, Be);
|
|
59607
|
-
var
|
|
59608
|
-
return { mode:
|
|
59720
|
+
var Qe = Re == null ? void 0 : Re.mode;
|
|
59721
|
+
return { mode: Qe === void 0 ? void 0 : Fo(Qe, Be + " has member 'mode' that") };
|
|
59609
59722
|
}
|
|
59610
59723
|
function Fo(Re, Be) {
|
|
59611
59724
|
if (Re = "" + Re, Re !== "byob")
|
|
@@ -59614,14 +59727,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59614
59727
|
}
|
|
59615
59728
|
function Do(Re, Be) {
|
|
59616
59729
|
Ye(Re, Be);
|
|
59617
|
-
var
|
|
59618
|
-
return { preventCancel: !!
|
|
59730
|
+
var Qe = Re == null ? void 0 : Re.preventCancel;
|
|
59731
|
+
return { preventCancel: !!Qe };
|
|
59619
59732
|
}
|
|
59620
59733
|
function za(Re, Be) {
|
|
59621
59734
|
Ye(Re, Be);
|
|
59622
|
-
var
|
|
59735
|
+
var Qe = Re == null ? void 0 : Re.preventAbort, gt = Re == null ? void 0 : Re.preventCancel, xt = Re == null ? void 0 : Re.preventClose, jt = Re == null ? void 0 : Re.signal;
|
|
59623
59736
|
return jt !== void 0 && Lo(jt, Be + " has member 'signal' that"), {
|
|
59624
|
-
preventAbort: !!
|
|
59737
|
+
preventAbort: !!Qe,
|
|
59625
59738
|
preventCancel: !!gt,
|
|
59626
59739
|
preventClose: !!xt,
|
|
59627
59740
|
signal: jt
|
|
@@ -59633,18 +59746,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59633
59746
|
}
|
|
59634
59747
|
function jo(Re, Be) {
|
|
59635
59748
|
Ye(Re, Be);
|
|
59636
|
-
var
|
|
59637
|
-
Pe(
|
|
59749
|
+
var Qe = Re == null ? void 0 : Re.readable;
|
|
59750
|
+
Pe(Qe, "readable", "ReadableWritablePair"), rt(Qe, Be + " has member 'readable' that");
|
|
59638
59751
|
var gt = Re == null ? void 0 : Re.writable;
|
|
59639
59752
|
return Pe(gt, "writable", "ReadableWritablePair"), ir(gt, Be + " has member 'writable' that"), {
|
|
59640
|
-
readable:
|
|
59753
|
+
readable: Qe,
|
|
59641
59754
|
writable: gt
|
|
59642
59755
|
};
|
|
59643
59756
|
}
|
|
59644
59757
|
var Rr = function() {
|
|
59645
|
-
function Re(Be,
|
|
59646
|
-
Be === void 0 && (Be = {}),
|
|
59647
|
-
var gt = Cn(
|
|
59758
|
+
function Re(Be, Qe) {
|
|
59759
|
+
Be === void 0 && (Be = {}), Qe === void 0 && (Qe = {}), Be === void 0 ? Be = null : Le(Be, "First parameter");
|
|
59760
|
+
var gt = Cn(Qe, "Second parameter"), xt = Oo(Be, "First parameter");
|
|
59648
59761
|
if (Ra(this), xt.type === "bytes") {
|
|
59649
59762
|
if (gt.size !== void 0)
|
|
59650
59763
|
throw new RangeError("The strategy for a byte stream cannot have a size function");
|
|
@@ -59668,21 +59781,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59668
59781
|
}, Re.prototype.getReader = function(Be) {
|
|
59669
59782
|
if (Be === void 0 && (Be = void 0), !Er(this))
|
|
59670
59783
|
throw Ar("getReader");
|
|
59671
|
-
var
|
|
59672
|
-
return
|
|
59673
|
-
}, Re.prototype.pipeThrough = function(Be,
|
|
59674
|
-
if (
|
|
59784
|
+
var Qe = ko(Be, "First parameter");
|
|
59785
|
+
return Qe.mode === void 0 ? lt(this) : wn(this);
|
|
59786
|
+
}, Re.prototype.pipeThrough = function(Be, Qe) {
|
|
59787
|
+
if (Qe === void 0 && (Qe = {}), !Er(this))
|
|
59675
59788
|
throw Ar("pipeThrough");
|
|
59676
59789
|
Te(Be, 1, "pipeThrough");
|
|
59677
|
-
var gt = jo(Be, "First parameter"), xt = za(
|
|
59790
|
+
var gt = jo(Be, "First parameter"), xt = za(Qe, "Second parameter");
|
|
59678
59791
|
if ($r(this))
|
|
59679
59792
|
throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");
|
|
59680
|
-
if (
|
|
59793
|
+
if (Jn(gt.writable))
|
|
59681
59794
|
throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");
|
|
59682
59795
|
var jt = La(this, gt.writable, xt.preventClose, xt.preventAbort, xt.preventCancel, xt.signal);
|
|
59683
59796
|
return ce(jt), gt.readable;
|
|
59684
|
-
}, Re.prototype.pipeTo = function(Be,
|
|
59685
|
-
if (
|
|
59797
|
+
}, Re.prototype.pipeTo = function(Be, Qe) {
|
|
59798
|
+
if (Qe === void 0 && (Qe = {}), !Er(this))
|
|
59686
59799
|
return de(Ar("pipeTo"));
|
|
59687
59800
|
if (Be === void 0)
|
|
59688
59801
|
return de("Parameter 1 is required in 'pipeTo'.");
|
|
@@ -59690,11 +59803,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59690
59803
|
return de(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));
|
|
59691
59804
|
var gt;
|
|
59692
59805
|
try {
|
|
59693
|
-
gt = za(
|
|
59806
|
+
gt = za(Qe, "Second parameter");
|
|
59694
59807
|
} catch (xt) {
|
|
59695
59808
|
return de(xt);
|
|
59696
59809
|
}
|
|
59697
|
-
return $r(this) ? de(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) :
|
|
59810
|
+
return $r(this) ? de(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : Jn(Be) ? de(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")) : La(this, Be, gt.preventClose, gt.preventAbort, gt.preventCancel, gt.signal);
|
|
59698
59811
|
}, Re.prototype.tee = function() {
|
|
59699
59812
|
if (!Er(this))
|
|
59700
59813
|
throw Ar("tee");
|
|
@@ -59703,8 +59816,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59703
59816
|
}, Re.prototype.values = function(Be) {
|
|
59704
59817
|
if (Be === void 0 && (Be = void 0), !Er(this))
|
|
59705
59818
|
throw Ar("values");
|
|
59706
|
-
var
|
|
59707
|
-
return et(this,
|
|
59819
|
+
var Qe = Do(Be, "First parameter");
|
|
59820
|
+
return et(this, Qe.preventCancel);
|
|
59708
59821
|
}, Re;
|
|
59709
59822
|
}();
|
|
59710
59823
|
Object.defineProperties(Rr.prototype, {
|
|
@@ -59723,20 +59836,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59723
59836
|
writable: !0,
|
|
59724
59837
|
configurable: !0
|
|
59725
59838
|
});
|
|
59726
|
-
function _a(Re, Be,
|
|
59839
|
+
function _a(Re, Be, Qe, gt, xt) {
|
|
59727
59840
|
gt === void 0 && (gt = 1), xt === void 0 && (xt = function() {
|
|
59728
59841
|
return 1;
|
|
59729
59842
|
});
|
|
59730
59843
|
var jt = Object.create(Rr.prototype);
|
|
59731
59844
|
Ra(jt);
|
|
59732
59845
|
var Ut = Object.create(kr.prototype);
|
|
59733
|
-
return Ba(jt, Ut, Re, Be,
|
|
59846
|
+
return Ba(jt, Ut, Re, Be, Qe, gt, xt), jt;
|
|
59734
59847
|
}
|
|
59735
|
-
function Ha(Re, Be,
|
|
59848
|
+
function Ha(Re, Be, Qe) {
|
|
59736
59849
|
var gt = Object.create(Rr.prototype);
|
|
59737
59850
|
Ra(gt);
|
|
59738
59851
|
var xt = Object.create(_t.prototype);
|
|
59739
|
-
return Sn(gt, xt, Re, Be,
|
|
59852
|
+
return Sn(gt, xt, Re, Be, Qe, 0, void 0), gt;
|
|
59740
59853
|
}
|
|
59741
59854
|
function Ra(Re) {
|
|
59742
59855
|
Re._state = "readable", Re._reader = void 0, Re._storedError = void 0, Re._disturbed = !1;
|
|
@@ -59753,36 +59866,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59753
59866
|
if (Re._state === "errored")
|
|
59754
59867
|
return de(Re._storedError);
|
|
59755
59868
|
Ur(Re);
|
|
59756
|
-
var
|
|
59757
|
-
|
|
59869
|
+
var Qe = Re._reader;
|
|
59870
|
+
Qe !== void 0 && Pn(Qe) && (Qe._readIntoRequests.forEach(function(xt) {
|
|
59758
59871
|
xt._closeSteps(void 0);
|
|
59759
|
-
}),
|
|
59872
|
+
}), Qe._readIntoRequests = new be());
|
|
59760
59873
|
var gt = Re._readableStreamController[Me](Be);
|
|
59761
59874
|
return pe(gt, K);
|
|
59762
59875
|
}
|
|
59763
59876
|
function Ur(Re) {
|
|
59764
59877
|
Re._state = "closed";
|
|
59765
59878
|
var Be = Re._reader;
|
|
59766
|
-
Be !== void 0 && (Oe(Be), ht(Be) && (Be._readRequests.forEach(function(
|
|
59767
|
-
|
|
59879
|
+
Be !== void 0 && (Oe(Be), ht(Be) && (Be._readRequests.forEach(function(Qe) {
|
|
59880
|
+
Qe._closeSteps();
|
|
59768
59881
|
}), Be._readRequests = new be()));
|
|
59769
59882
|
}
|
|
59770
59883
|
function Va(Re, Be) {
|
|
59771
59884
|
Re._state = "errored", Re._storedError = Be;
|
|
59772
|
-
var
|
|
59773
|
-
|
|
59885
|
+
var Qe = Re._reader;
|
|
59886
|
+
Qe !== void 0 && (Ne(Qe, Be), ht(Qe) ? (Qe._readRequests.forEach(function(gt) {
|
|
59774
59887
|
gt._errorSteps(Be);
|
|
59775
|
-
}),
|
|
59888
|
+
}), Qe._readRequests = new be()) : (Qe._readIntoRequests.forEach(function(gt) {
|
|
59776
59889
|
gt._errorSteps(Be);
|
|
59777
|
-
}),
|
|
59890
|
+
}), Qe._readIntoRequests = new be()));
|
|
59778
59891
|
}
|
|
59779
59892
|
function Ar(Re) {
|
|
59780
59893
|
return new TypeError("ReadableStream.prototype." + Re + " can only be used on a ReadableStream");
|
|
59781
59894
|
}
|
|
59782
59895
|
function Wa(Re, Be) {
|
|
59783
59896
|
Ye(Re, Be);
|
|
59784
|
-
var
|
|
59785
|
-
return Pe(
|
|
59897
|
+
var Qe = Re == null ? void 0 : Re.highWaterMark;
|
|
59898
|
+
return Pe(Qe, "highWaterMark", "QueuingStrategyInit"), { highWaterMark: ke(Qe) };
|
|
59786
59899
|
}
|
|
59787
59900
|
var Ua = function(Re) {
|
|
59788
59901
|
return Re.byteLength;
|
|
@@ -59870,27 +59983,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59870
59983
|
}
|
|
59871
59984
|
function Bo(Re, Be) {
|
|
59872
59985
|
Ye(Re, Be);
|
|
59873
|
-
var
|
|
59986
|
+
var Qe = Re == null ? void 0 : Re.flush, gt = Re == null ? void 0 : Re.readableType, xt = Re == null ? void 0 : Re.start, jt = Re == null ? void 0 : Re.transform, Ut = Re == null ? void 0 : Re.writableType;
|
|
59874
59987
|
return {
|
|
59875
|
-
flush:
|
|
59988
|
+
flush: Qe === void 0 ? void 0 : zo(Qe, Re, Be + " has member 'flush' that"),
|
|
59876
59989
|
readableType: gt,
|
|
59877
59990
|
start: xt === void 0 ? void 0 : Ho(xt, Re, Be + " has member 'start' that"),
|
|
59878
59991
|
transform: jt === void 0 ? void 0 : Vo(jt, Re, Be + " has member 'transform' that"),
|
|
59879
59992
|
writableType: Ut
|
|
59880
59993
|
};
|
|
59881
59994
|
}
|
|
59882
|
-
function zo(Re, Be,
|
|
59883
|
-
return at(Re,
|
|
59995
|
+
function zo(Re, Be, Qe) {
|
|
59996
|
+
return at(Re, Qe), function(gt) {
|
|
59884
59997
|
return Se(Re, Be, [gt]);
|
|
59885
59998
|
};
|
|
59886
59999
|
}
|
|
59887
|
-
function Ho(Re, Be,
|
|
59888
|
-
return at(Re,
|
|
60000
|
+
function Ho(Re, Be, Qe) {
|
|
60001
|
+
return at(Re, Qe), function(gt) {
|
|
59889
60002
|
return ye(Re, Be, [gt]);
|
|
59890
60003
|
};
|
|
59891
60004
|
}
|
|
59892
|
-
function Vo(Re, Be,
|
|
59893
|
-
return at(Re,
|
|
60005
|
+
function Vo(Re, Be, Qe) {
|
|
60006
|
+
return at(Re, Qe), function(gt, xt) {
|
|
59894
60007
|
return Se(Re, Be, [
|
|
59895
60008
|
gt,
|
|
59896
60009
|
xt
|
|
@@ -59898,9 +60011,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59898
60011
|
};
|
|
59899
60012
|
}
|
|
59900
60013
|
var la = function() {
|
|
59901
|
-
function Re(Be,
|
|
59902
|
-
Be === void 0 && (Be = {}),
|
|
59903
|
-
var xt = Cn(
|
|
60014
|
+
function Re(Be, Qe, gt) {
|
|
60015
|
+
Be === void 0 && (Be = {}), Qe === void 0 && (Qe = {}), gt === void 0 && (gt = {}), Be === void 0 && (Be = null);
|
|
60016
|
+
var xt = Cn(Qe, "Second parameter"), jt = Cn(gt, "Third parameter"), Ut = Bo(Be, "First parameter");
|
|
59904
60017
|
if (Ut.readableType !== void 0)
|
|
59905
60018
|
throw new RangeError("Invalid readableType specified");
|
|
59906
60019
|
if (Ut.writableType !== void 0)
|
|
@@ -59912,7 +60025,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59912
60025
|
}
|
|
59913
60026
|
return Object.defineProperty(Re.prototype, "readable", {
|
|
59914
60027
|
get: function() {
|
|
59915
|
-
if (!
|
|
60028
|
+
if (!Ja(this))
|
|
59916
60029
|
throw to("readable");
|
|
59917
60030
|
return this._readable;
|
|
59918
60031
|
},
|
|
@@ -59920,7 +60033,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59920
60033
|
configurable: !0
|
|
59921
60034
|
}), Object.defineProperty(Re.prototype, "writable", {
|
|
59922
60035
|
get: function() {
|
|
59923
|
-
if (!
|
|
60036
|
+
if (!Ja(this))
|
|
59924
60037
|
throw to("writable");
|
|
59925
60038
|
return this._writable;
|
|
59926
60039
|
},
|
|
@@ -59935,7 +60048,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59935
60048
|
value: "TransformStream",
|
|
59936
60049
|
configurable: !0
|
|
59937
60050
|
});
|
|
59938
|
-
function Wo(Re, Be,
|
|
60051
|
+
function Wo(Re, Be, Qe, gt, xt, jt) {
|
|
59939
60052
|
function Ut() {
|
|
59940
60053
|
return Be;
|
|
59941
60054
|
}
|
|
@@ -59946,29 +60059,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59946
60059
|
return Yo(Re, ar);
|
|
59947
60060
|
}
|
|
59948
60061
|
function Mn() {
|
|
59949
|
-
return
|
|
60062
|
+
return Jo(Re);
|
|
59950
60063
|
}
|
|
59951
|
-
Re._writable = Gn(Ut, mn, Mn, In,
|
|
60064
|
+
Re._writable = Gn(Ut, mn, Mn, In, Qe, gt);
|
|
59952
60065
|
function kn() {
|
|
59953
|
-
return
|
|
60066
|
+
return Qo(Re);
|
|
59954
60067
|
}
|
|
59955
60068
|
function Fn(ar) {
|
|
59956
60069
|
return ca(Re, ar), ue(void 0);
|
|
59957
60070
|
}
|
|
59958
60071
|
Re._readable = _a(Ut, kn, Fn, xt, jt), Re._backpressure = void 0, Re._backpressureChangePromise = void 0, Re._backpressureChangePromise_resolve = void 0, ua(Re, !0), Re._transformStreamController = void 0;
|
|
59959
60072
|
}
|
|
59960
|
-
function
|
|
60073
|
+
function Ja(Re) {
|
|
59961
60074
|
return !te(Re) || !Object.prototype.hasOwnProperty.call(Re, "_transformStreamController") ? !1 : Re instanceof la;
|
|
59962
60075
|
}
|
|
59963
60076
|
function sa(Re, Be) {
|
|
59964
60077
|
_r(Re._readable._readableStreamController, Be), ca(Re, Be);
|
|
59965
60078
|
}
|
|
59966
60079
|
function ca(Re, Be) {
|
|
59967
|
-
|
|
60080
|
+
Qa(Re._transformStreamController), va(Re._writable._writableStreamController, Be), Re._backpressure && ua(Re, !1);
|
|
59968
60081
|
}
|
|
59969
60082
|
function ua(Re, Be) {
|
|
59970
|
-
Re._backpressureChangePromise !== void 0 && Re._backpressureChangePromise_resolve(), Re._backpressureChangePromise = le(function(
|
|
59971
|
-
Re._backpressureChangePromise_resolve =
|
|
60083
|
+
Re._backpressureChangePromise !== void 0 && Re._backpressureChangePromise_resolve(), Re._backpressureChangePromise = le(function(Qe) {
|
|
60084
|
+
Re._backpressureChangePromise_resolve = Qe;
|
|
59972
60085
|
}), Re._backpressure = Be;
|
|
59973
60086
|
}
|
|
59974
60087
|
var Kr = function() {
|
|
@@ -60010,13 +60123,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
60010
60123
|
function da(Re) {
|
|
60011
60124
|
return !te(Re) || !Object.prototype.hasOwnProperty.call(Re, "_controlledTransformStream") ? !1 : Re instanceof Kr;
|
|
60012
60125
|
}
|
|
60013
|
-
function Uo(Re, Be,
|
|
60014
|
-
Be._controlledTransformStream = Re, Re._transformStreamController = Be, Be._transformAlgorithm =
|
|
60126
|
+
function Uo(Re, Be, Qe, gt) {
|
|
60127
|
+
Be._controlledTransformStream = Re, Re._transformStreamController = Be, Be._transformAlgorithm = Qe, Be._flushAlgorithm = gt;
|
|
60015
60128
|
}
|
|
60016
60129
|
function Ko(Re, Be) {
|
|
60017
|
-
var
|
|
60130
|
+
var Qe = Object.create(Kr.prototype), gt = function(jt) {
|
|
60018
60131
|
try {
|
|
60019
|
-
return Za(
|
|
60132
|
+
return Za(Qe, jt), ue(void 0);
|
|
60020
60133
|
} catch (Ut) {
|
|
60021
60134
|
return de(Ut);
|
|
60022
60135
|
}
|
|
@@ -60024,60 +60137,60 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
60024
60137
|
return ue(void 0);
|
|
60025
60138
|
};
|
|
60026
60139
|
Be.transform !== void 0 && (gt = function(jt) {
|
|
60027
|
-
return Be.transform(jt,
|
|
60140
|
+
return Be.transform(jt, Qe);
|
|
60028
60141
|
}), Be.flush !== void 0 && (xt = function() {
|
|
60029
|
-
return Be.flush(
|
|
60030
|
-
}), Uo(Re,
|
|
60142
|
+
return Be.flush(Qe);
|
|
60143
|
+
}), Uo(Re, Qe, gt, xt);
|
|
60031
60144
|
}
|
|
60032
|
-
function
|
|
60145
|
+
function Qa(Re) {
|
|
60033
60146
|
Re._transformAlgorithm = void 0, Re._flushAlgorithm = void 0;
|
|
60034
60147
|
}
|
|
60035
60148
|
function Za(Re, Be) {
|
|
60036
|
-
var
|
|
60149
|
+
var Qe = Re._controlledTransformStream, gt = Qe._readable._readableStreamController;
|
|
60037
60150
|
if (!Fr(gt))
|
|
60038
60151
|
throw new TypeError("Readable side is not in a state that permits enqueue");
|
|
60039
60152
|
try {
|
|
60040
60153
|
ra(gt, Be);
|
|
60041
60154
|
} catch (jt) {
|
|
60042
|
-
throw ca(
|
|
60155
|
+
throw ca(Qe, jt), Qe._readable._storedError;
|
|
60043
60156
|
}
|
|
60044
60157
|
var xt = $o(gt);
|
|
60045
|
-
xt !==
|
|
60158
|
+
xt !== Qe._backpressure && ua(Qe, !0);
|
|
60046
60159
|
}
|
|
60047
60160
|
function Go(Re, Be) {
|
|
60048
60161
|
sa(Re._controlledTransformStream, Be);
|
|
60049
60162
|
}
|
|
60050
60163
|
function eo(Re, Be) {
|
|
60051
|
-
var
|
|
60052
|
-
return pe(
|
|
60164
|
+
var Qe = Re._transformAlgorithm(Be);
|
|
60165
|
+
return pe(Qe, void 0, function(gt) {
|
|
60053
60166
|
throw sa(Re._controlledTransformStream, gt), gt;
|
|
60054
60167
|
});
|
|
60055
60168
|
}
|
|
60056
60169
|
function qo(Re) {
|
|
60057
|
-
var Be = Re._controlledTransformStream,
|
|
60058
|
-
Wr(
|
|
60170
|
+
var Be = Re._controlledTransformStream, Qe = Be._readable._readableStreamController;
|
|
60171
|
+
Wr(Qe);
|
|
60059
60172
|
var gt = new TypeError("TransformStream terminated");
|
|
60060
60173
|
ca(Be, gt);
|
|
60061
60174
|
}
|
|
60062
60175
|
function Xo(Re, Be) {
|
|
60063
|
-
var
|
|
60176
|
+
var Qe = Re._transformStreamController;
|
|
60064
60177
|
if (Re._backpressure) {
|
|
60065
60178
|
var gt = Re._backpressureChangePromise;
|
|
60066
60179
|
return pe(gt, function() {
|
|
60067
60180
|
var xt = Re._writable, jt = xt._state;
|
|
60068
60181
|
if (jt === "erroring")
|
|
60069
60182
|
throw xt._storedError;
|
|
60070
|
-
return eo(
|
|
60183
|
+
return eo(Qe, Be);
|
|
60071
60184
|
});
|
|
60072
60185
|
}
|
|
60073
|
-
return eo(
|
|
60186
|
+
return eo(Qe, Be);
|
|
60074
60187
|
}
|
|
60075
60188
|
function Yo(Re, Be) {
|
|
60076
60189
|
return sa(Re, Be), ue(void 0);
|
|
60077
60190
|
}
|
|
60078
|
-
function
|
|
60079
|
-
var Be = Re._readable,
|
|
60080
|
-
return
|
|
60191
|
+
function Jo(Re) {
|
|
60192
|
+
var Be = Re._readable, Qe = Re._transformStreamController, gt = Qe._flushAlgorithm();
|
|
60193
|
+
return Qa(Qe), pe(gt, function() {
|
|
60081
60194
|
if (Be._state === "errored")
|
|
60082
60195
|
throw Be._storedError;
|
|
60083
60196
|
Wr(Be._readableStreamController);
|
|
@@ -60085,7 +60198,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
60085
60198
|
throw sa(Re, xt), Be._storedError;
|
|
60086
60199
|
});
|
|
60087
60200
|
}
|
|
60088
|
-
function
|
|
60201
|
+
function Qo(Re) {
|
|
60089
60202
|
return ua(Re, !1), Re._backpressureChangePromise;
|
|
60090
60203
|
}
|
|
60091
60204
|
function fa(Re) {
|
|
@@ -62711,28 +62824,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
62711
62824
|
}, {
|
|
62712
62825
|
key: "_prepareFontLoadEvent",
|
|
62713
62826
|
value: function(_e, xe, $e) {
|
|
62714
|
-
function Ie(
|
|
62715
|
-
return
|
|
62827
|
+
function Ie(Je, ct) {
|
|
62828
|
+
return Je.charCodeAt(ct) << 24 | Je.charCodeAt(ct + 1) << 16 | Je.charCodeAt(ct + 2) << 8 | Je.charCodeAt(ct + 3) & 255;
|
|
62716
62829
|
}
|
|
62717
|
-
function De(
|
|
62718
|
-
var ht =
|
|
62830
|
+
function De(Je, ct, dt, vt) {
|
|
62831
|
+
var ht = Je.substring(0, ct), bt = Je.substring(ct + dt);
|
|
62719
62832
|
return ht + vt + bt;
|
|
62720
62833
|
}
|
|
62721
62834
|
var Ne, Fe, Oe = this._document.createElement("canvas");
|
|
62722
62835
|
Oe.width = 1, Oe.height = 1;
|
|
62723
62836
|
var we = Oe.getContext("2d"), Ae = 0;
|
|
62724
|
-
function Me(
|
|
62837
|
+
function Me(Je, ct) {
|
|
62725
62838
|
if (Ae++, Ae > 30) {
|
|
62726
62839
|
(0, J.warn)("Load test font never loaded."), ct();
|
|
62727
62840
|
return;
|
|
62728
62841
|
}
|
|
62729
|
-
we.font = "30px " +
|
|
62842
|
+
we.font = "30px " + Je, we.fillText(".", 0, 20);
|
|
62730
62843
|
var dt = we.getImageData(0, 0, 1, 1);
|
|
62731
62844
|
if (dt.data[3] > 0) {
|
|
62732
62845
|
ct();
|
|
62733
62846
|
return;
|
|
62734
62847
|
}
|
|
62735
|
-
setTimeout(Me.bind(null,
|
|
62848
|
+
setTimeout(Me.bind(null, Je, ct));
|
|
62736
62849
|
}
|
|
62737
62850
|
var je = "lt".concat(Date.now()).concat(this.loadTestFontId++), ze = this._loadTestFont, Ve = 976;
|
|
62738
62851
|
ze = De(ze, Ve, je.length, je);
|
|
@@ -62748,8 +62861,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
62748
62861
|
var He = ke.value;
|
|
62749
62862
|
Te.push(He.loadedName);
|
|
62750
62863
|
}
|
|
62751
|
-
} catch (
|
|
62752
|
-
Pe.e(
|
|
62864
|
+
} catch (Je) {
|
|
62865
|
+
Pe.e(Je);
|
|
62753
62866
|
} finally {
|
|
62754
62867
|
Pe.f();
|
|
62755
62868
|
}
|
|
@@ -63294,8 +63407,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63294
63407
|
}
|
|
63295
63408
|
}), Object.defineProperty(Ue, "mozCurrentTransformInverse", {
|
|
63296
63409
|
get: function() {
|
|
63297
|
-
var Pe = oe(this._transformMatrix, 6), ke = Pe[0], He = Pe[1], We = Pe[2], Ke = Pe[3], rt = Pe[4], lt = Pe[5], it = ke * Ke - He * We,
|
|
63298
|
-
return [Ke / it, He /
|
|
63410
|
+
var Pe = oe(this._transformMatrix, 6), ke = Pe[0], He = Pe[1], We = Pe[2], Ke = Pe[3], rt = Pe[4], lt = Pe[5], it = ke * Ke - He * We, Je = He * We - ke * Ke;
|
|
63411
|
+
return [Ke / it, He / Je, We / Je, ke / it, (Ke * rt - We * lt) / Je, (He * rt - ke * lt) / it];
|
|
63299
63412
|
}
|
|
63300
63413
|
}), Ue.save = function() {
|
|
63301
63414
|
var Pe = this._transformMatrix;
|
|
@@ -63343,7 +63456,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63343
63456
|
}]), Ue;
|
|
63344
63457
|
}();
|
|
63345
63458
|
function Ee(Ue) {
|
|
63346
|
-
var Le = 1e3, Te = new Uint8Array([0, 2, 4, 0, 1, 0, 5, 4, 8, 10, 0, 8, 0, 2, 1, 0]), Pe = Ue.width, ke = Ue.height, He = Pe + 1, We, Ke, rt, lt, it = new Uint8Array(He * (ke + 1)),
|
|
63459
|
+
var Le = 1e3, Te = new Uint8Array([0, 2, 4, 0, 1, 0, 5, 4, 8, 10, 0, 8, 0, 2, 1, 0]), Pe = Ue.width, ke = Ue.height, He = Pe + 1, We, Ke, rt, lt, it = new Uint8Array(He * (ke + 1)), Je = Pe + 7 & -8, ct = Ue.data, dt = new Uint8Array(Je * ke), vt = 0;
|
|
63347
63460
|
for (We = 0, Ke = ct.length; We < Ke; We++)
|
|
63348
63461
|
for (var ht = ct[We], bt = 128; bt > 0; )
|
|
63349
63462
|
dt[vt++] = ht & bt ? 0 : 255, bt >>= 1;
|
|
@@ -63351,14 +63464,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63351
63464
|
for (vt = 0, dt[vt] !== 0 && (it[0] = 1, ++Rt), rt = 1; rt < Pe; rt++)
|
|
63352
63465
|
dt[vt] !== dt[vt + 1] && (it[rt] = dt[vt] ? 2 : 1, ++Rt), vt++;
|
|
63353
63466
|
for (dt[vt] !== 0 && (it[rt] = 2, ++Rt), We = 1; We < ke; We++) {
|
|
63354
|
-
vt = We *
|
|
63355
|
-
var wt = (dt[vt] ? 4 : 0) + (dt[vt -
|
|
63467
|
+
vt = We * Je, lt = We * He, dt[vt - Je] !== dt[vt] && (it[lt] = dt[vt] ? 1 : 8, ++Rt);
|
|
63468
|
+
var wt = (dt[vt] ? 4 : 0) + (dt[vt - Je] ? 8 : 0);
|
|
63356
63469
|
for (rt = 1; rt < Pe; rt++)
|
|
63357
|
-
wt = (wt >> 2) + (dt[vt + 1] ? 4 : 0) + (dt[vt -
|
|
63358
|
-
if (dt[vt -
|
|
63470
|
+
wt = (wt >> 2) + (dt[vt + 1] ? 4 : 0) + (dt[vt - Je + 1] ? 8 : 0), Te[wt] && (it[lt + rt] = Te[wt], ++Rt), vt++;
|
|
63471
|
+
if (dt[vt - Je] !== dt[vt] && (it[lt + rt] = dt[vt] ? 2 : 4, ++Rt), Rt > Le)
|
|
63359
63472
|
return null;
|
|
63360
63473
|
}
|
|
63361
|
-
for (vt =
|
|
63474
|
+
for (vt = Je * (ke - 1), lt = We * He, dt[vt] !== 0 && (it[lt] = 8, ++Rt), rt = 1; rt < Pe; rt++)
|
|
63362
63475
|
dt[vt] !== dt[vt + 1] && (it[lt + rt] = dt[vt] ? 4 : 8, ++Rt), vt++;
|
|
63363
63476
|
if (dt[vt] !== 0 && (it[lt + rt] = 4, ++Rt), Rt > Le)
|
|
63364
63477
|
return null;
|
|
@@ -63415,8 +63528,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63415
63528
|
}, {
|
|
63416
63529
|
key: "updateCurvePathMinMax",
|
|
63417
63530
|
value: function(Te, Pe, ke, He, We, Ke, rt, lt, it) {
|
|
63418
|
-
var
|
|
63419
|
-
this.updatePathMinMax(Te,
|
|
63531
|
+
var Je = V.Util.bezierBoundingBox(Pe, ke, He, We, Ke, rt, lt, it);
|
|
63532
|
+
this.updatePathMinMax(Te, Je[0], Je[1]), this.updatePathMinMax(Te, Je[2], Je[3]);
|
|
63420
63533
|
}
|
|
63421
63534
|
}, {
|
|
63422
63535
|
key: "getPathBoundingBox",
|
|
@@ -63454,7 +63567,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63454
63567
|
Ue.putImageData(Le, 0, 0);
|
|
63455
63568
|
return;
|
|
63456
63569
|
}
|
|
63457
|
-
var Pe = Le.height, ke = Le.width, He = Pe % ye, We = (Pe - He) / ye, Ke = He === 0 ? We : We + 1, rt = Ue.createImageData(ke, ye), lt = 0, it,
|
|
63570
|
+
var Pe = Le.height, ke = Le.width, He = Pe % ye, We = (Pe - He) / ye, Ke = He === 0 ? We : We + 1, rt = Ue.createImageData(ke, ye), lt = 0, it, Je = Le.data, ct = rt.data, dt, vt, ht, bt, Rt, wt, st, ut;
|
|
63458
63571
|
if (Te)
|
|
63459
63572
|
switch (Te.length) {
|
|
63460
63573
|
case 1:
|
|
@@ -63465,7 +63578,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63465
63578
|
break;
|
|
63466
63579
|
}
|
|
63467
63580
|
if (Le.kind === V.ImageKind.GRAYSCALE_1BPP) {
|
|
63468
|
-
var Ge =
|
|
63581
|
+
var Ge = Je.byteLength, et = new Uint32Array(ct.buffer, 0, ct.byteLength >> 2), Ze = et.length, nt = ke + 7 >> 3, tt = 4294967295, qe = V.IsLittleEndianCached.value ? 4278190080 : 255;
|
|
63469
63582
|
if (ut && ut[0] === 255 && ut[255] === 0) {
|
|
63470
63583
|
var ot = [qe, tt];
|
|
63471
63584
|
tt = ot[0], qe = ot[1];
|
|
@@ -63473,9 +63586,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63473
63586
|
for (dt = 0; dt < Ke; dt++) {
|
|
63474
63587
|
for (ht = dt < We ? ye : He, it = 0, vt = 0; vt < ht; vt++) {
|
|
63475
63588
|
for (var ft = Ge - lt, yt = 0, $t = ft > nt ? ke : ft * 8 - 7, Mt = $t & -8, Ft = 0, Ct = 0; yt < Mt; yt += 8)
|
|
63476
|
-
Ct =
|
|
63589
|
+
Ct = Je[lt++], et[it++] = Ct & 128 ? tt : qe, et[it++] = Ct & 64 ? tt : qe, et[it++] = Ct & 32 ? tt : qe, et[it++] = Ct & 16 ? tt : qe, et[it++] = Ct & 8 ? tt : qe, et[it++] = Ct & 4 ? tt : qe, et[it++] = Ct & 2 ? tt : qe, et[it++] = Ct & 1 ? tt : qe;
|
|
63477
63590
|
for (; yt < $t; yt++)
|
|
63478
|
-
Ft === 0 && (Ct =
|
|
63591
|
+
Ft === 0 && (Ct = Je[lt++], Ft = 128), et[it++] = Ct & Ft ? tt : qe, Ft >>= 1;
|
|
63479
63592
|
}
|
|
63480
63593
|
for (; it < Ze; )
|
|
63481
63594
|
et[it++] = 0;
|
|
@@ -63484,13 +63597,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63484
63597
|
} else if (Le.kind === V.ImageKind.RGBA_32BPP) {
|
|
63485
63598
|
var Bt = !!(Rt || wt || st);
|
|
63486
63599
|
for (vt = 0, bt = ke * ye * 4, dt = 0; dt < We; dt++) {
|
|
63487
|
-
if (ct.set(
|
|
63600
|
+
if (ct.set(Je.subarray(lt, lt + bt)), lt += bt, Bt)
|
|
63488
63601
|
for (var It = 0; It < bt; It += 4)
|
|
63489
63602
|
Rt && (ct[It + 0] = Rt[ct[It + 0]]), wt && (ct[It + 1] = wt[ct[It + 1]]), st && (ct[It + 2] = st[ct[It + 2]]);
|
|
63490
63603
|
Ue.putImageData(rt, 0, vt), vt += ye;
|
|
63491
63604
|
}
|
|
63492
63605
|
if (dt < Ke) {
|
|
63493
|
-
if (bt = ke * He * 4, ct.set(
|
|
63606
|
+
if (bt = ke * He * 4, ct.set(Je.subarray(lt, lt + bt)), Bt)
|
|
63494
63607
|
for (var Pt = 0; Pt < bt; Pt += 4)
|
|
63495
63608
|
Rt && (ct[Pt + 0] = Rt[ct[Pt + 0]]), wt && (ct[Pt + 1] = wt[ct[Pt + 1]]), st && (ct[Pt + 2] = st[ct[Pt + 2]]);
|
|
63496
63609
|
Ue.putImageData(rt, 0, vt);
|
|
@@ -63499,7 +63612,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63499
63612
|
var Tt = !!(Rt || wt || st);
|
|
63500
63613
|
for (ht = ye, bt = ke * ht, dt = 0; dt < Ke; dt++) {
|
|
63501
63614
|
for (dt >= We && (ht = He, bt = ke * ht), it = 0, vt = bt; vt--; )
|
|
63502
|
-
ct[it++] =
|
|
63615
|
+
ct[it++] = Je[lt++], ct[it++] = Je[lt++], ct[it++] = Je[lt++], ct[it++] = 255;
|
|
63503
63616
|
if (Tt)
|
|
63504
63617
|
for (var _t = 0; _t < it; _t += 4)
|
|
63505
63618
|
Rt && (ct[_t + 0] = Rt[ct[_t + 0]]), wt && (ct[_t + 1] = wt[ct[_t + 1]]), st && (ct[_t + 2] = st[ct[_t + 2]]);
|
|
@@ -63509,11 +63622,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63509
63622
|
throw new Error("bad image kind: ".concat(Le.kind));
|
|
63510
63623
|
}
|
|
63511
63624
|
function $e(Ue, Le) {
|
|
63512
|
-
for (var Te = Le.height, Pe = Le.width, ke = Te % ye, He = (Te - ke) / ye, We = ke === 0 ? He : He + 1, Ke = Ue.createImageData(Pe, ye), rt = 0, lt = Le.data, it = Ke.data,
|
|
63513
|
-
for (var ct =
|
|
63625
|
+
for (var Te = Le.height, Pe = Le.width, ke = Te % ye, He = (Te - ke) / ye, We = ke === 0 ? He : He + 1, Ke = Ue.createImageData(Pe, ye), rt = 0, lt = Le.data, it = Ke.data, Je = 0; Je < We; Je++) {
|
|
63626
|
+
for (var ct = Je < He ? ye : ke, dt = 3, vt = 0; vt < ct; vt++)
|
|
63514
63627
|
for (var ht = void 0, bt = 0, Rt = 0; Rt < Pe; Rt++)
|
|
63515
63628
|
bt || (ht = lt[rt++], bt = 128), it[dt] = ht & bt ? 0 : 255, dt += 4, bt >>= 1;
|
|
63516
|
-
Ue.putImageData(Ke, 0,
|
|
63629
|
+
Ue.putImageData(Ke, 0, Je * ye);
|
|
63517
63630
|
}
|
|
63518
63631
|
}
|
|
63519
63632
|
function Ie(Ue, Le) {
|
|
@@ -63550,11 +63663,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63550
63663
|
}
|
|
63551
63664
|
}
|
|
63552
63665
|
function we(Ue, Le, Te, Pe, ke, He, We, Ke, rt, lt, it) {
|
|
63553
|
-
var
|
|
63666
|
+
var Je = !!He, ct = Je ? He[0] : 0, dt = Je ? He[1] : 0, vt = Je ? He[2] : 0, ht;
|
|
63554
63667
|
ke === "Luminosity" ? ht = Oe : ht = Fe;
|
|
63555
63668
|
for (var bt = 1048576, Rt = Math.min(Pe, Math.ceil(bt / Te)), wt = 0; wt < Pe; wt += Rt) {
|
|
63556
63669
|
var st = Math.min(Rt, Pe - wt), ut = Ue.getImageData(Ke - lt, wt + (rt - it), Te, st), Ge = Le.getImageData(Ke, wt + rt, Te, st);
|
|
63557
|
-
|
|
63670
|
+
Je && Ne(ut.data, ct, dt, vt), ht(ut.data, Ge.data, We), Le.putImageData(Ge, Ke, wt + rt);
|
|
63558
63671
|
}
|
|
63559
63672
|
}
|
|
63560
63673
|
function Ae(Ue, Le, Te, Pe) {
|
|
@@ -63576,8 +63689,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63576
63689
|
value: function(Te) {
|
|
63577
63690
|
var Pe = Te.transform, ke = Te.viewport, He = Te.transparency, We = He === void 0 ? !1 : He, Ke = Te.background, rt = Ke === void 0 ? null : Ke, lt = this.ctx.canvas.width, it = this.ctx.canvas.height;
|
|
63578
63691
|
if (this.ctx.save(), this.ctx.fillStyle = rt || "rgb(255, 255, 255)", this.ctx.fillRect(0, 0, lt, it), this.ctx.restore(), We) {
|
|
63579
|
-
var
|
|
63580
|
-
this.compositeCtx = this.ctx, this.transparentCanvas =
|
|
63692
|
+
var Je = this.cachedCanvases.getCanvas("transparent", lt, it, !0);
|
|
63693
|
+
this.compositeCtx = this.ctx, this.transparentCanvas = Je.canvas, this.ctx = Je.context, this.ctx.save(), this.ctx.transform.apply(this.ctx, this.compositeCtx.mozCurrentTransform);
|
|
63581
63694
|
}
|
|
63582
63695
|
this.ctx.save(), De(this.ctx), Pe && (this.ctx.transform.apply(this.ctx, Pe), this.outputScaleX = Pe[0], this.outputScaleY = Pe[0]), this.ctx.transform.apply(this.ctx, ke.transform), this.viewportScale = ke.scale, this.baseTransform = this.ctx.mozCurrentTransform.slice(), this._combinedScaleFactor = Math.hypot(this.baseTransform[0], this.baseTransform[2]), this.imageLayer && this.imageLayer.beginLayout();
|
|
63583
63696
|
}
|
|
@@ -63587,7 +63700,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63587
63700
|
var We = Te.argsArray, Ke = Te.fnArray, rt = Pe || 0, lt = We.length;
|
|
63588
63701
|
if (lt === rt)
|
|
63589
63702
|
return rt;
|
|
63590
|
-
for (var it = lt - rt > ce && typeof ke == "function",
|
|
63703
|
+
for (var it = lt - rt > ce && typeof ke == "function", Je = it ? Date.now() + pe : 0, ct = 0, dt = this.commonObjs, vt = this.objs, ht; ; ) {
|
|
63591
63704
|
if (He !== void 0 && rt === He.nextBreakPoint)
|
|
63592
63705
|
return He.breakIt(rt, ke), rt;
|
|
63593
63706
|
if (ht = Ke[rt], ht !== V.OPS.dependency)
|
|
@@ -63609,7 +63722,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63609
63722
|
if (rt++, rt === lt)
|
|
63610
63723
|
return rt;
|
|
63611
63724
|
if (it && ++ct > ce) {
|
|
63612
|
-
if (Date.now() >
|
|
63725
|
+
if (Date.now() > Je)
|
|
63613
63726
|
return ke(), rt;
|
|
63614
63727
|
ct = 0;
|
|
63615
63728
|
}
|
|
@@ -63625,9 +63738,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63625
63738
|
}, {
|
|
63626
63739
|
key: "_scaleImage",
|
|
63627
63740
|
value: function(Te, Pe) {
|
|
63628
|
-
for (var ke = Te.width, He = Te.height, We = Math.max(Math.hypot(Pe[0], Pe[1]), 1), Ke = Math.max(Math.hypot(Pe[2], Pe[3]), 1), rt = ke, lt = He, it = "prescale1",
|
|
63741
|
+
for (var ke = Te.width, He = Te.height, We = Math.max(Math.hypot(Pe[0], Pe[1]), 1), Ke = Math.max(Math.hypot(Pe[2], Pe[3]), 1), rt = ke, lt = He, it = "prescale1", Je, ct; We > 2 && rt > 1 || Ke > 2 && lt > 1; ) {
|
|
63629
63742
|
var dt = rt, vt = lt;
|
|
63630
|
-
We > 2 && rt > 1 && (dt = Math.ceil(rt / 2), We /= rt / dt), Ke > 2 && lt > 1 && (vt = Math.ceil(lt / 2), Ke /= lt / vt),
|
|
63743
|
+
We > 2 && rt > 1 && (dt = Math.ceil(rt / 2), We /= rt / dt), Ke > 2 && lt > 1 && (vt = Math.ceil(lt / 2), Ke /= lt / vt), Je = this.cachedCanvases.getCanvas(it, dt, vt), ct = Je.context, ct.clearRect(0, 0, dt, vt), ct.drawImage(Te, 0, 0, rt, lt, 0, 0, dt, vt), Te = Je.canvas, rt = dt, lt = vt, it = it === "prescale1" ? "prescale2" : "prescale1";
|
|
63631
63744
|
}
|
|
63632
63745
|
return {
|
|
63633
63746
|
img: Te,
|
|
@@ -63640,10 +63753,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63640
63753
|
value: function(Te) {
|
|
63641
63754
|
var Pe = this.ctx, ke = Te.width, He = Te.height, We = this.current.fillColor, Ke = this.current.patternFill, rt = this.cachedCanvases.getCanvas("maskCanvas", ke, He), lt = rt.context;
|
|
63642
63755
|
$e(lt, Te);
|
|
63643
|
-
var it = Pe.mozCurrentTransform,
|
|
63644
|
-
|
|
63645
|
-
var ct = V.Util.applyTransform([0, 0],
|
|
63646
|
-
wt.translate(-st, -ut), wt.transform.apply(wt,
|
|
63756
|
+
var it = Pe.mozCurrentTransform, Je = V.Util.transform(it, [1 / ke, 0, 0, -1 / He, 0, 0]);
|
|
63757
|
+
Je = V.Util.transform(Je, [1, 0, 0, 1, 0, -He]);
|
|
63758
|
+
var ct = V.Util.applyTransform([0, 0], Je), dt = V.Util.applyTransform([ke, He], Je), vt = V.Util.normalizeRect([ct[0], ct[1], dt[0], dt[1]]), ht = Math.ceil(vt[2] - vt[0]), bt = Math.ceil(vt[3] - vt[1]), Rt = this.cachedCanvases.getCanvas("fillCanvas", ht, bt, !0), wt = Rt.context, st = Math.min(ct[0], dt[0]), ut = Math.min(ct[1], dt[1]);
|
|
63759
|
+
wt.translate(-st, -ut), wt.transform.apply(wt, Je);
|
|
63647
63760
|
var Ge = this._scaleImage(rt.canvas, wt.mozCurrentTransformInverse);
|
|
63648
63761
|
wt.imageSmoothingEnabled = Me(wt.mozCurrentTransform, Te.interpolate), wt.drawImage(Ge.img, 0, 0, Ge.img.width, Ge.img.height, 0, 0, ke, He), wt.globalCompositeOperation = "source-in";
|
|
63649
63762
|
var et = V.Util.transform(wt.mozCurrentTransformInverse, [1, 0, 0, 1, -st, -ut]);
|
|
@@ -63786,27 +63899,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63786
63899
|
}, {
|
|
63787
63900
|
key: "constructPath",
|
|
63788
63901
|
value: function(Te, Pe) {
|
|
63789
|
-
for (var ke = this.ctx, He = this.current, We = He.x, Ke = He.y, rt, lt, it = 0,
|
|
63902
|
+
for (var ke = this.ctx, He = this.current, We = He.x, Ke = He.y, rt, lt, it = 0, Je = 0, ct = Te.length; it < ct; it++)
|
|
63790
63903
|
switch (Te[it] | 0) {
|
|
63791
63904
|
case V.OPS.rectangle:
|
|
63792
|
-
We = Pe[
|
|
63793
|
-
var dt = Pe[
|
|
63905
|
+
We = Pe[Je++], Ke = Pe[Je++];
|
|
63906
|
+
var dt = Pe[Je++], vt = Pe[Je++], ht = We + dt, bt = Ke + vt;
|
|
63794
63907
|
ke.moveTo(We, Ke), dt === 0 || vt === 0 ? ke.lineTo(ht, bt) : (ke.lineTo(ht, Ke), ke.lineTo(ht, bt), ke.lineTo(We, bt)), He.updatePathMinMax(ke.mozCurrentTransform, We, Ke), He.updatePathMinMax(ke.mozCurrentTransform, ht, bt), ke.closePath();
|
|
63795
63908
|
break;
|
|
63796
63909
|
case V.OPS.moveTo:
|
|
63797
|
-
We = Pe[
|
|
63910
|
+
We = Pe[Je++], Ke = Pe[Je++], ke.moveTo(We, Ke), He.updatePathMinMax(ke.mozCurrentTransform, We, Ke);
|
|
63798
63911
|
break;
|
|
63799
63912
|
case V.OPS.lineTo:
|
|
63800
|
-
We = Pe[
|
|
63913
|
+
We = Pe[Je++], Ke = Pe[Je++], ke.lineTo(We, Ke), He.updatePathMinMax(ke.mozCurrentTransform, We, Ke);
|
|
63801
63914
|
break;
|
|
63802
63915
|
case V.OPS.curveTo:
|
|
63803
|
-
rt = We, lt = Ke, We = Pe[
|
|
63916
|
+
rt = We, lt = Ke, We = Pe[Je + 4], Ke = Pe[Je + 5], ke.bezierCurveTo(Pe[Je], Pe[Je + 1], Pe[Je + 2], Pe[Je + 3], We, Ke), He.updateCurvePathMinMax(ke.mozCurrentTransform, rt, lt, Pe[Je], Pe[Je + 1], Pe[Je + 2], Pe[Je + 3], We, Ke), Je += 6;
|
|
63804
63917
|
break;
|
|
63805
63918
|
case V.OPS.curveTo2:
|
|
63806
|
-
rt = We, lt = Ke, ke.bezierCurveTo(We, Ke, Pe[
|
|
63919
|
+
rt = We, lt = Ke, ke.bezierCurveTo(We, Ke, Pe[Je], Pe[Je + 1], Pe[Je + 2], Pe[Je + 3]), He.updateCurvePathMinMax(ke.mozCurrentTransform, rt, lt, We, Ke, Pe[Je], Pe[Je + 1], Pe[Je + 2], Pe[Je + 3]), We = Pe[Je + 2], Ke = Pe[Je + 3], Je += 4;
|
|
63807
63920
|
break;
|
|
63808
63921
|
case V.OPS.curveTo3:
|
|
63809
|
-
rt = We, lt = Ke, We = Pe[
|
|
63922
|
+
rt = We, lt = Ke, We = Pe[Je + 2], Ke = Pe[Je + 3], ke.bezierCurveTo(Pe[Je], Pe[Je + 1], We, Ke, We, Ke), He.updateCurvePathMinMax(ke.mozCurrentTransform, rt, lt, Pe[Je], Pe[Je + 1], We, Ke, We, Ke), Je += 4;
|
|
63810
63923
|
break;
|
|
63811
63924
|
case V.OPS.closePath:
|
|
63812
63925
|
ke.closePath();
|
|
@@ -63974,14 +64087,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63974
64087
|
}, {
|
|
63975
64088
|
key: "paintChar",
|
|
63976
64089
|
value: function(Te, Pe, ke, He, We) {
|
|
63977
|
-
var Ke = this.ctx, rt = this.current, lt = rt.font, it = rt.textRenderingMode,
|
|
63978
|
-
if ((lt.disableFontFace || dt || vt) && (ht = lt.getPathGenerator(this.commonObjs, Te)), lt.disableFontFace || vt ? (Ke.save(), Ke.translate(Pe, ke), Ke.beginPath(), ht(Ke,
|
|
64090
|
+
var Ke = this.ctx, rt = this.current, lt = rt.font, it = rt.textRenderingMode, Je = rt.fontSize / rt.fontSizeScale, ct = it & V.TextRenderingMode.FILL_STROKE_MASK, dt = !!(it & V.TextRenderingMode.ADD_TO_PATH_FLAG), vt = rt.patternFill && !lt.missingFile, ht;
|
|
64091
|
+
if ((lt.disableFontFace || dt || vt) && (ht = lt.getPathGenerator(this.commonObjs, Te)), lt.disableFontFace || vt ? (Ke.save(), Ke.translate(Pe, ke), Ke.beginPath(), ht(Ke, Je), He && Ke.setTransform.apply(Ke, He), (ct === V.TextRenderingMode.FILL || ct === V.TextRenderingMode.FILL_STROKE) && Ke.fill(), (ct === V.TextRenderingMode.STROKE || ct === V.TextRenderingMode.FILL_STROKE) && (We && (Ke.resetTransform(), Ke.lineWidth = Math.round(this._combinedScaleFactor)), Ke.stroke()), Ke.restore()) : ((ct === V.TextRenderingMode.FILL || ct === V.TextRenderingMode.FILL_STROKE) && Ke.fillText(Te, Pe, ke), (ct === V.TextRenderingMode.STROKE || ct === V.TextRenderingMode.FILL_STROKE) && (We ? (Ke.save(), Ke.moveTo(Pe, ke), Ke.resetTransform(), Ke.lineWidth = Math.round(this._combinedScaleFactor), Ke.strokeText(Te, 0, 0), Ke.restore()) : Ke.strokeText(Te, Pe, ke))), dt) {
|
|
63979
64092
|
var bt = this.pendingTextPaths || (this.pendingTextPaths = []);
|
|
63980
64093
|
bt.push({
|
|
63981
64094
|
transform: Ke.mozCurrentTransform,
|
|
63982
64095
|
x: Pe,
|
|
63983
64096
|
y: ke,
|
|
63984
|
-
fontSize:
|
|
64097
|
+
fontSize: Je,
|
|
63985
64098
|
addToPath: ht
|
|
63986
64099
|
});
|
|
63987
64100
|
}
|
|
@@ -64006,8 +64119,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64006
64119
|
return this.showType3Text(Te);
|
|
64007
64120
|
var He = Pe.fontSize;
|
|
64008
64121
|
if (He !== 0) {
|
|
64009
|
-
var We = this.ctx, Ke = Pe.fontSizeScale, rt = Pe.charSpacing, lt = Pe.wordSpacing, it = Pe.fontDirection,
|
|
64010
|
-
We.save(), We.transform.apply(We, Pe.textMatrix), We.translate(Pe.x, Pe.y + Pe.textRise), it > 0 ? We.scale(
|
|
64122
|
+
var We = this.ctx, Ke = Pe.fontSizeScale, rt = Pe.charSpacing, lt = Pe.wordSpacing, it = Pe.fontDirection, Je = Pe.textHScale * it, ct = Te.length, dt = ke.vertical, vt = dt ? 1 : -1, ht = ke.defaultVMetrics, bt = He * Pe.fontMatrix[0], Rt = Pe.textRenderingMode === V.TextRenderingMode.FILL && !ke.disableFontFace && !Pe.patternFill;
|
|
64123
|
+
We.save(), We.transform.apply(We, Pe.textMatrix), We.translate(Pe.x, Pe.y + Pe.textRise), it > 0 ? We.scale(Je, -1) : We.scale(Je, 1);
|
|
64011
64124
|
var wt;
|
|
64012
64125
|
if (Pe.patternFill) {
|
|
64013
64126
|
We.save();
|
|
@@ -64053,17 +64166,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64053
64166
|
var Gt = void 0;
|
|
64054
64167
|
dt ? Gt = Ct * bt - ft * it : Gt = Ct * bt + ft * it, nt += Gt, ot && We.restore();
|
|
64055
64168
|
}
|
|
64056
|
-
dt ? Pe.y -= nt : Pe.x += nt *
|
|
64169
|
+
dt ? Pe.y -= nt : Pe.x += nt * Je, We.restore(), this.compose();
|
|
64057
64170
|
}
|
|
64058
64171
|
}
|
|
64059
64172
|
}, {
|
|
64060
64173
|
key: "showType3Text",
|
|
64061
64174
|
value: function(Te) {
|
|
64062
|
-
var Pe = this.ctx, ke = this.current, He = ke.font, We = ke.fontSize, Ke = ke.fontDirection, rt = He.vertical ? 1 : -1, lt = ke.charSpacing, it = ke.wordSpacing,
|
|
64175
|
+
var Pe = this.ctx, ke = this.current, He = ke.font, We = ke.fontSize, Ke = ke.fontDirection, rt = He.vertical ? 1 : -1, lt = ke.charSpacing, it = ke.wordSpacing, Je = ke.textHScale * Ke, ct = ke.fontMatrix || V.FONT_IDENTITY_MATRIX, dt = Te.length, vt = ke.textRenderingMode === V.TextRenderingMode.INVISIBLE, ht, bt, Rt, wt;
|
|
64063
64176
|
if (!(vt || We === 0)) {
|
|
64064
|
-
for (this._cachedGetSinglePixelWidth = null, Pe.save(), Pe.transform.apply(Pe, ke.textMatrix), Pe.translate(ke.x, ke.y), Pe.scale(
|
|
64177
|
+
for (this._cachedGetSinglePixelWidth = null, Pe.save(), Pe.transform.apply(Pe, ke.textMatrix), Pe.translate(ke.x, ke.y), Pe.scale(Je, Ke), ht = 0; ht < dt; ++ht) {
|
|
64065
64178
|
if (bt = Te[ht], (0, V.isNum)(bt)) {
|
|
64066
|
-
wt = rt * bt * We / 1e3, this.ctx.translate(wt, 0), ke.x += wt *
|
|
64179
|
+
wt = rt * bt * We / 1e3, this.ctx.translate(wt, 0), ke.x += wt * Je;
|
|
64067
64180
|
continue;
|
|
64068
64181
|
}
|
|
64069
64182
|
var st = (bt.isSpace ? it : 0) + lt, ut = He.charProcOperatorList[bt.operatorListId];
|
|
@@ -64073,7 +64186,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64073
64186
|
}
|
|
64074
64187
|
this.contentVisible && (this.processingType3 = bt, this.save(), Pe.scale(We, We), Pe.transform.apply(Pe, ct), this.executeOperatorList(ut), this.restore());
|
|
64075
64188
|
var Ge = V.Util.applyTransform([bt.width, 0], ct);
|
|
64076
|
-
Rt = Ge[0] * We + st, Pe.translate(Rt, 0), ke.x += Rt *
|
|
64189
|
+
Rt = Ge[0] * We + st, Pe.translate(Rt, 0), ke.x += Rt * Je;
|
|
64077
64190
|
}
|
|
64078
64191
|
Pe.restore(), this.processingType3 = null;
|
|
64079
64192
|
}
|
|
@@ -64140,7 +64253,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64140
64253
|
Pe.fillStyle = ke.getPattern(Pe, this, Pe.mozCurrentTransformInverse, K.PathType.SHADING);
|
|
64141
64254
|
var He = Pe.mozCurrentTransformInverse;
|
|
64142
64255
|
if (He) {
|
|
64143
|
-
var We = Pe.canvas, Ke = We.width, rt = We.height, lt = V.Util.applyTransform([0, 0], He), it = V.Util.applyTransform([0, rt], He),
|
|
64256
|
+
var We = Pe.canvas, Ke = We.width, rt = We.height, lt = V.Util.applyTransform([0, 0], He), it = V.Util.applyTransform([0, rt], He), Je = V.Util.applyTransform([Ke, 0], He), ct = V.Util.applyTransform([Ke, rt], He), dt = Math.min(lt[0], it[0], Je[0], ct[0]), vt = Math.min(lt[1], it[1], Je[1], ct[1]), ht = Math.max(lt[0], it[0], Je[0], ct[0]), bt = Math.max(lt[1], it[1], Je[1], ct[1]);
|
|
64144
64257
|
this.ctx.fillRect(dt, vt, ht - dt, bt - vt);
|
|
64145
64258
|
} else
|
|
64146
64259
|
this.ctx.fillRect(-1e10, -1e10, 2e10, 2e10);
|
|
@@ -64184,11 +64297,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64184
64297
|
throw new Error("Bounding box is required.");
|
|
64185
64298
|
var We = V.Util.getAxialAlignedBoundingBox(Te.bbox, ke.mozCurrentTransform), Ke = [0, 0, ke.canvas.width, ke.canvas.height];
|
|
64186
64299
|
We = V.Util.intersect(We, Ke) || [0, 0, 0, 0];
|
|
64187
|
-
var rt = Math.floor(We[0]), lt = Math.floor(We[1]), it = Math.max(Math.ceil(We[2]) - rt, 1),
|
|
64188
|
-
it > he && (ct = it / he, it = he),
|
|
64300
|
+
var rt = Math.floor(We[0]), lt = Math.floor(We[1]), it = Math.max(Math.ceil(We[2]) - rt, 1), Je = Math.max(Math.ceil(We[3]) - lt, 1), ct = 1, dt = 1;
|
|
64301
|
+
it > he && (ct = it / he, it = he), Je > he && (dt = Je / he, Je = he), this.current.startNewPathAndClipBox([0, 0, it, Je]);
|
|
64189
64302
|
var vt = "groupAt" + this.groupLevel;
|
|
64190
64303
|
Te.smask && (vt += "_smask_" + this.smaskCounter++ % 2);
|
|
64191
|
-
var ht = this.cachedCanvases.getCanvas(vt, it,
|
|
64304
|
+
var ht = this.cachedCanvases.getCanvas(vt, it, Je, !0), bt = ht.context;
|
|
64192
64305
|
bt.scale(1 / ct, 1 / dt), bt.translate(-rt, -lt), bt.transform.apply(bt, He), Te.smask ? this.smaskStack.push({
|
|
64193
64306
|
canvas: ht.canvas,
|
|
64194
64307
|
context: bt,
|
|
@@ -64240,10 +64353,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64240
64353
|
var Ke = Pe[2] - Pe[0], rt = Pe[3] - Pe[1];
|
|
64241
64354
|
if (We && this.annotationCanvasMap) {
|
|
64242
64355
|
ke = ke.slice(), ke[4] -= Pe[0], ke[5] -= Pe[1], Pe = Pe.slice(), Pe[0] = Pe[1] = 0, Pe[2] = Ke, Pe[3] = rt;
|
|
64243
|
-
var lt = V.Util.singularValueDecompose2dScale(this.ctx.mozCurrentTransform), it = oe(lt, 2),
|
|
64356
|
+
var lt = V.Util.singularValueDecompose2dScale(this.ctx.mozCurrentTransform), it = oe(lt, 2), Je = it[0], ct = it[1], dt = this.viewportScale, vt = Math.ceil(Ke * this.outputScaleX * dt), ht = Math.ceil(rt * this.outputScaleY * dt);
|
|
64244
64357
|
this.annotationCanvas = this.canvasFactory.create(vt, ht);
|
|
64245
64358
|
var bt = this.annotationCanvas, Rt = bt.canvas, wt = bt.context;
|
|
64246
|
-
Rt.style.width = "calc(".concat(Ke, "px * var(--viewport-scale-factor))"), Rt.style.height = "calc(".concat(rt, "px * var(--viewport-scale-factor))"), this.annotationCanvasMap.set(Te, Rt), this.annotationCanvas.savedCtx = this.ctx, this.ctx = wt, this.ctx.setTransform(
|
|
64359
|
+
Rt.style.width = "calc(".concat(Ke, "px * var(--viewport-scale-factor))"), Rt.style.height = "calc(".concat(rt, "px * var(--viewport-scale-factor))"), this.annotationCanvasMap.set(Te, Rt), this.annotationCanvas.savedCtx = this.ctx, this.ctx = wt, this.ctx.setTransform(Je, 0, 0, -ct, 0, rt * ct), be(this.ctx), De(this.ctx);
|
|
64247
64360
|
} else
|
|
64248
64361
|
De(this.ctx), this.ctx.rect(Pe[0], Pe[1], Ke, rt), this.clip(), this.endPath();
|
|
64249
64362
|
}
|
|
@@ -64282,8 +64395,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64282
64395
|
rt.transform(Pe, ke, He, We, 0, 0);
|
|
64283
64396
|
var it = this._createMaskCanvas(Te);
|
|
64284
64397
|
rt.setTransform(1, 0, 0, 1, 0, 0);
|
|
64285
|
-
for (var
|
|
64286
|
-
var dt = V.Util.transform(lt, [Pe, ke, He, We, Ke[
|
|
64398
|
+
for (var Je = 0, ct = Ke.length; Je < ct; Je += 2) {
|
|
64399
|
+
var dt = V.Util.transform(lt, [Pe, ke, He, We, Ke[Je], Ke[Je + 1]]), vt = V.Util.applyTransform([0, 0], dt), ht = oe(vt, 2), bt = ht[0], Rt = ht[1];
|
|
64287
64400
|
rt.drawImage(it.canvas, bt, Rt);
|
|
64288
64401
|
}
|
|
64289
64402
|
rt.restore(), this.compose();
|
|
@@ -64294,8 +64407,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64294
64407
|
value: function(Te) {
|
|
64295
64408
|
if (this.contentVisible) {
|
|
64296
64409
|
for (var Pe = this.ctx, ke = this.current.fillColor, He = this.current.patternFill, We = 0, Ke = Te.length; We < Ke; We++) {
|
|
64297
|
-
var rt = Te[We], lt = rt.width, it = rt.height,
|
|
64298
|
-
ct.save(), $e(ct, rt), ct.globalCompositeOperation = "source-in", ct.fillStyle = He ? ke.getPattern(ct, this, Pe.mozCurrentTransformInverse, K.PathType.FILL) : ke, ct.fillRect(0, 0, lt, it), ct.restore(), Pe.save(), Pe.transform.apply(Pe, rt.transform), Pe.scale(1, -1), Pe.drawImage(
|
|
64410
|
+
var rt = Te[We], lt = rt.width, it = rt.height, Je = this.cachedCanvases.getCanvas("maskCanvas", lt, it), ct = Je.context;
|
|
64411
|
+
ct.save(), $e(ct, rt), ct.globalCompositeOperation = "source-in", ct.fillStyle = He ? ke.getPattern(ct, this, Pe.mozCurrentTransformInverse, K.PathType.FILL) : ke, ct.fillRect(0, 0, lt, it), ct.restore(), Pe.save(), Pe.transform.apply(Pe, rt.transform), Pe.scale(1, -1), Pe.drawImage(Je.canvas, 0, 0, lt, it, 0, -1, 1, 1), Pe.restore();
|
|
64299
64412
|
}
|
|
64300
64413
|
this.compose();
|
|
64301
64414
|
}
|
|
@@ -64321,7 +64434,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64321
64434
|
(0, V.warn)("Dependent image isn't ready yet");
|
|
64322
64435
|
return;
|
|
64323
64436
|
}
|
|
64324
|
-
for (var Ke = We.width, rt = We.height, lt = [], it = 0,
|
|
64437
|
+
for (var Ke = We.width, rt = We.height, lt = [], it = 0, Je = He.length; it < Je; it += 2)
|
|
64325
64438
|
lt.push({
|
|
64326
64439
|
transform: [Pe, 0, 0, ke, He[it], He[it + 1]],
|
|
64327
64440
|
x: 0,
|
|
@@ -64366,9 +64479,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64366
64479
|
var ke = this.ctx, He = Te.width, We = Te.height, Ke = this.cachedCanvases.getCanvas("inlineImage", He, We), rt = Ke.context;
|
|
64367
64480
|
xe(rt, Te, this.current.transferMaps);
|
|
64368
64481
|
for (var lt = 0, it = Pe.length; lt < it; lt++) {
|
|
64369
|
-
var
|
|
64370
|
-
if (ke.save(), ke.transform.apply(ke,
|
|
64371
|
-
var ct = this.getCanvasPosition(
|
|
64482
|
+
var Je = Pe[lt];
|
|
64483
|
+
if (ke.save(), ke.transform.apply(ke, Je.transform), ke.scale(1, -1), ke.drawImage(Ke.canvas, Je.x, Je.y, Je.w, Je.h, 0, -1, 1, 1), this.imageLayer) {
|
|
64484
|
+
var ct = this.getCanvasPosition(Je.x, Je.y);
|
|
64372
64485
|
this.imageLayer.appendImage({
|
|
64373
64486
|
imgData: Te,
|
|
64374
64487
|
left: ct[0],
|
|
@@ -64660,7 +64773,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64660
64773
|
we[$e + 1] > we[Ie + 1] && (ze = $e, $e = Ie, Ie = ze, ze = Ne, Ne = Fe, Fe = ze), we[Ie + 1] > we[De + 1] && (ze = Ie, Ie = De, De = ze, ze = Fe, Fe = Oe, Oe = ze), we[$e + 1] > we[Ie + 1] && (ze = $e, $e = Ie, Ie = ze, ze = Ne, Ne = Fe, Fe = ze);
|
|
64661
64774
|
var Ve = (we[$e] + xe.offsetX) * xe.scaleX, Xe = (we[$e + 1] + xe.offsetY) * xe.scaleY, Ye = (we[Ie] + xe.offsetX) * xe.scaleX, at = (we[Ie + 1] + xe.offsetY) * xe.scaleY, Ue = (we[De] + xe.offsetX) * xe.scaleX, Le = (we[De + 1] + xe.offsetY) * xe.scaleY;
|
|
64662
64775
|
if (!(Xe >= Le))
|
|
64663
|
-
for (var Te = Ae[Ne], Pe = Ae[Ne + 1], ke = Ae[Ne + 2], He = Ae[Fe], We = Ae[Fe + 1], Ke = Ae[Fe + 2], rt = Ae[Oe], lt = Ae[Oe + 1], it = Ae[Oe + 2],
|
|
64776
|
+
for (var Te = Ae[Ne], Pe = Ae[Ne + 1], ke = Ae[Ne + 2], He = Ae[Fe], We = Ae[Fe + 1], Ke = Ae[Fe + 2], rt = Ae[Oe], lt = Ae[Oe + 1], it = Ae[Oe + 2], Je = Math.round(Xe), ct = Math.round(Le), dt, vt, ht, bt, Rt, wt, st, ut, Ge = Je; Ge <= ct; Ge++) {
|
|
64664
64777
|
if (Ge < at) {
|
|
64665
64778
|
var et = void 0;
|
|
64666
64779
|
Ge < Xe ? et = 0 : et = (Xe - Ge) / (Xe - at), dt = Ve - (Ve - Ye) * et, vt = Te - (Te - He) * et, ht = Pe - (Pe - We) * et, bt = ke - (ke - Ke) * et;
|
|
@@ -64712,10 +64825,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64712
64825
|
if (Ne)
|
|
64713
64826
|
for (var Ke = We.data, rt = 0, lt = Ke.length; rt < lt; rt += 4)
|
|
64714
64827
|
Ke[rt] = Ne[0], Ke[rt + 1] = Ne[1], Ke[rt + 2] = Ne[2], Ke[rt + 3] = 255;
|
|
64715
|
-
var it = J(this._figures),
|
|
64828
|
+
var it = J(this._figures), Je;
|
|
64716
64829
|
try {
|
|
64717
|
-
for (it.s(); !(
|
|
64718
|
-
var ct =
|
|
64830
|
+
for (it.s(); !(Je = it.n()).done; ) {
|
|
64831
|
+
var ct = Je.value;
|
|
64719
64832
|
ye(We, ct, Le);
|
|
64720
64833
|
}
|
|
64721
64834
|
} catch (vt) {
|
|
@@ -66405,7 +66518,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
66405
66518
|
case K.AnnotationType.POLYGON:
|
|
66406
66519
|
return new rt(Ge);
|
|
66407
66520
|
case K.AnnotationType.HIGHLIGHT:
|
|
66408
|
-
return new
|
|
66521
|
+
return new Je(Ge);
|
|
66409
66522
|
case K.AnnotationType.UNDERLINE:
|
|
66410
66523
|
return new ct(Ge);
|
|
66411
66524
|
case K.AnnotationType.SQUIGGLY:
|
|
@@ -66711,8 +66824,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
66711
66824
|
var sn = qt[Kt];
|
|
66712
66825
|
$t.push.apply($t, ue(sn));
|
|
66713
66826
|
}
|
|
66714
|
-
for (var _n = tt.annotationStorage, Wt = [],
|
|
66715
|
-
var ln = dn[
|
|
66827
|
+
for (var _n = tt.annotationStorage, Wt = [], Jt = 0, dn = $t; Jt < dn.length; Jt++) {
|
|
66828
|
+
var ln = dn[Jt], gn = ln.id;
|
|
66716
66829
|
switch (Wt.push(gn), ln.type) {
|
|
66717
66830
|
case "text": {
|
|
66718
66831
|
var mt = ln.defaultValue || "";
|
|
@@ -67660,7 +67773,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
67660
67773
|
return this.container.append(qe), this.container;
|
|
67661
67774
|
}
|
|
67662
67775
|
}]), Ge;
|
|
67663
|
-
}(Ae),
|
|
67776
|
+
}(Ae), Je = /* @__PURE__ */ function(st) {
|
|
67664
67777
|
me(Ge, st);
|
|
67665
67778
|
var ut = pe(Ge);
|
|
67666
67779
|
function Ge(et) {
|
|
@@ -68945,14 +69058,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
68945
69058
|
default:
|
|
68946
69059
|
throw new Error("invalid format");
|
|
68947
69060
|
}
|
|
68948
|
-
for (var it = new Uint8Array((1 + rt) * He),
|
|
68949
|
-
it[
|
|
69061
|
+
for (var it = new Uint8Array((1 + rt) * He), Je = 0, ct = 0, dt = 0; dt < He; ++dt)
|
|
69062
|
+
it[Je++] = 0, it.set(lt.subarray(ct, ct + rt), Je), ct += rt, Je += rt;
|
|
68950
69063
|
if (Le === V.ImageKind.GRAYSCALE_1BPP && Pe) {
|
|
68951
|
-
|
|
69064
|
+
Je = 0;
|
|
68952
69065
|
for (var vt = 0; vt < He; vt++) {
|
|
68953
|
-
|
|
69066
|
+
Je++;
|
|
68954
69067
|
for (var ht = 0; ht < rt; ht++)
|
|
68955
|
-
it[
|
|
69068
|
+
it[Je++] ^= 255;
|
|
68956
69069
|
}
|
|
68957
69070
|
}
|
|
68958
69071
|
var bt = new Uint8Array([ke >> 24 & 255, ke >> 16 & 255, ke >> 8 & 255, ke & 255, He >> 24 & 255, He >> 16 & 255, He >> 8 & 255, He & 255, We, Ke, 0, 0, 0]), Rt = Xe(it), wt = Ne.length + Fe * 3 + bt.length + Rt.length, st = new Uint8Array(wt), ut = 0;
|
|
@@ -69271,17 +69384,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
69271
69384
|
Pe += Ue * We * Me / 1e3;
|
|
69272
69385
|
continue;
|
|
69273
69386
|
}
|
|
69274
|
-
var Ke = (We.isSpace ? Ve : 0) + ze, rt = We.fontChar, lt = void 0, it = void 0,
|
|
69387
|
+
var Ke = (We.isSpace ? Ve : 0) + ze, rt = We.fontChar, lt = void 0, it = void 0, Je = We.width;
|
|
69275
69388
|
if (at) {
|
|
69276
69389
|
var ct = void 0, dt = We.vmetric || Le;
|
|
69277
|
-
ct = We.vmetric ? dt[1] :
|
|
69390
|
+
ct = We.vmetric ? dt[1] : Je * 0.5, ct = -ct * Te;
|
|
69278
69391
|
var vt = dt[2] * Te;
|
|
69279
|
-
|
|
69392
|
+
Je = dt ? -dt[0] : Je, lt = ct / je, it = (Pe + vt) / je;
|
|
69280
69393
|
} else
|
|
69281
69394
|
lt = Pe / je, it = 0;
|
|
69282
69395
|
(We.isInFont || Ae.missingFile) && (we.xcoords.push(we.x + lt), at && we.ycoords.push(-we.y + it), we.tspan.textContent += rt);
|
|
69283
69396
|
var ht = void 0;
|
|
69284
|
-
at ? ht =
|
|
69397
|
+
at ? ht = Je * Te - Ke * Xe : ht = Je * Te + Ke * Xe, Pe += ht;
|
|
69285
69398
|
}
|
|
69286
69399
|
} catch (st) {
|
|
69287
69400
|
ke.e(st);
|
|
@@ -69393,7 +69506,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
69393
69506
|
}, {
|
|
69394
69507
|
key: "_makeTilingPattern",
|
|
69395
69508
|
value: function(Oe) {
|
|
69396
|
-
var we = Oe[1], Ae = Oe[2], Me = Oe[3] || V.IDENTITY_MATRIX, je = ae(Oe[4], 4), ze = je[0], Ve = je[1], Xe = je[2], Ye = je[3], at = Oe[5], Ue = Oe[6], Le = Oe[7], Te = "shading".concat(De++), Pe = V.Util.normalizeRect([].concat(ee(V.Util.applyTransform([ze, Ve], Me)), ee(V.Util.applyTransform([Xe, Ye], Me)))), ke = ae(Pe, 4), He = ke[0], We = ke[1], Ke = ke[2], rt = ke[3], lt = V.Util.singularValueDecompose2dScale(Me), it = ae(lt, 2),
|
|
69509
|
+
var we = Oe[1], Ae = Oe[2], Me = Oe[3] || V.IDENTITY_MATRIX, je = ae(Oe[4], 4), ze = je[0], Ve = je[1], Xe = je[2], Ye = je[3], at = Oe[5], Ue = Oe[6], Le = Oe[7], Te = "shading".concat(De++), Pe = V.Util.normalizeRect([].concat(ee(V.Util.applyTransform([ze, Ve], Me)), ee(V.Util.applyTransform([Xe, Ye], Me)))), ke = ae(Pe, 4), He = ke[0], We = ke[1], Ke = ke[2], rt = ke[3], lt = V.Util.singularValueDecompose2dScale(Me), it = ae(lt, 2), Je = it[0], ct = it[1], dt = at * Je, vt = Ue * ct, ht = this.svgFactory.createElement("svg:pattern");
|
|
69397
69510
|
ht.setAttributeNS(null, "id", Te), ht.setAttributeNS(null, "patternUnits", "userSpaceOnUse"), ht.setAttributeNS(null, "width", dt), ht.setAttributeNS(null, "height", vt), ht.setAttributeNS(null, "x", "".concat(He)), ht.setAttributeNS(null, "y", "".concat(We));
|
|
69398
69511
|
var bt = this.svg, Rt = this.transformMatrix, wt = this.current.fillColor, st = this.current.strokeColor, ut = this.svgFactory.create(Ke - He, rt - We);
|
|
69399
69512
|
if (this.svg = ut, this.transformMatrix = Me, Le === 2) {
|
|
@@ -73748,68 +73861,7 @@ const transformJobsData = (C) => {
|
|
|
73748
73861
|
useFetchAllJobsQuery,
|
|
73749
73862
|
useFetchPipelineJobsQuery,
|
|
73750
73863
|
useFetchRelevantJobsQuery
|
|
73751
|
-
} = jobsService,
|
|
73752
|
-
const $ = new URLSearchParams();
|
|
73753
|
-
return !C || typeof C != "object" || Object.keys(C).forEach((F) => {
|
|
73754
|
-
const V = C[F];
|
|
73755
|
-
if (!(V == null || V === ""))
|
|
73756
|
-
if (Array.isArray(V))
|
|
73757
|
-
V.length > 0 && $.append(F, V.join(","));
|
|
73758
|
-
else if (typeof V == "object")
|
|
73759
|
-
try {
|
|
73760
|
-
$.append(F, JSON.stringify(V));
|
|
73761
|
-
} catch (K) {
|
|
73762
|
-
}
|
|
73763
|
-
else
|
|
73764
|
-
$.append(F, String(V));
|
|
73765
|
-
}), $;
|
|
73766
|
-
}, deserializeQueryParamsToFilters = (C) => {
|
|
73767
|
-
const $ = {};
|
|
73768
|
-
return (typeof C == "string" ? (
|
|
73769
|
-
// eslint-disable-next-line no-undef
|
|
73770
|
-
new URLSearchParams(C)
|
|
73771
|
-
) : C).forEach((V, K) => {
|
|
73772
|
-
try {
|
|
73773
|
-
const J = JSON.parse(V);
|
|
73774
|
-
if (typeof J == "object") {
|
|
73775
|
-
$[K] = J;
|
|
73776
|
-
return;
|
|
73777
|
-
}
|
|
73778
|
-
} catch (J) {
|
|
73779
|
-
}
|
|
73780
|
-
if (V.includes(","))
|
|
73781
|
-
$[K] = V.split(",").filter((J) => J.trim() !== "");
|
|
73782
|
-
else if (!isNaN(V) && V !== "") {
|
|
73783
|
-
const J = Number(V);
|
|
73784
|
-
isNaN(J) ? $[K] = V : $[K] = J;
|
|
73785
|
-
} else
|
|
73786
|
-
$[K] = V;
|
|
73787
|
-
}), $;
|
|
73788
|
-
}, updateURLWithFilters = (C) => {
|
|
73789
|
-
if (typeof window == "undefined")
|
|
73790
|
-
return;
|
|
73791
|
-
const $ = serializeFiltersToQueryParams(C), F = $.toString() ? (
|
|
73792
|
-
// eslint-disable-next-line no-undef
|
|
73793
|
-
`${window.location.pathname}?${$.toString()}`
|
|
73794
|
-
) : (
|
|
73795
|
-
// eslint-disable-next-line no-undef
|
|
73796
|
-
window.location.pathname
|
|
73797
|
-
);
|
|
73798
|
-
window.history.replaceState({}, "", F);
|
|
73799
|
-
}, getFiltersFromURL = () => typeof window == "undefined" ? {} : deserializeQueryParamsToFilters(window.location.search), updateURLWithJobId = (C) => {
|
|
73800
|
-
if (typeof window == "undefined")
|
|
73801
|
-
return;
|
|
73802
|
-
const $ = new URLSearchParams(window.location.search);
|
|
73803
|
-
C ? $.set("job_ids", String(C)) : $.delete("job_ids");
|
|
73804
|
-
const F = $.toString() ? (
|
|
73805
|
-
// eslint-disable-next-line no-undef
|
|
73806
|
-
`${window.location.pathname}?${$.toString()}`
|
|
73807
|
-
) : (
|
|
73808
|
-
// eslint-disable-next-line no-undef
|
|
73809
|
-
window.location.pathname
|
|
73810
|
-
);
|
|
73811
|
-
window.history.replaceState({}, "", F);
|
|
73812
|
-
}, getJobIdFromURL = () => typeof window == "undefined" ? null : new URLSearchParams(window.location.search).get("job_ids") || null, header$1 = "_header_akxwc_1", jobTitle = "_jobTitle_akxwc_6", titleContainer = "_titleContainer_akxwc_14", titleContainerExpanded = "_titleContainerExpanded_akxwc_19", titleContainerCollapsed = "_titleContainerCollapsed_akxwc_23", companyName = "_companyName_akxwc_27", actions = "_actions_akxwc_32", styles$d = {
|
|
73864
|
+
} = jobsService, header$1 = "_header_akxwc_1", jobTitle = "_jobTitle_akxwc_6", titleContainer = "_titleContainer_akxwc_14", titleContainerExpanded = "_titleContainerExpanded_akxwc_19", titleContainerCollapsed = "_titleContainerCollapsed_akxwc_23", companyName = "_companyName_akxwc_27", actions = "_actions_akxwc_32", styles$d = {
|
|
73813
73865
|
header: header$1,
|
|
73814
73866
|
jobTitle,
|
|
73815
73867
|
titleContainer,
|
|
@@ -74197,14 +74249,17 @@ JobCard.defaultProps = {
|
|
|
74197
74249
|
userCountry: "IN",
|
|
74198
74250
|
className: ""
|
|
74199
74251
|
};
|
|
74200
|
-
const heading = "
|
|
74252
|
+
const heading = "_heading_2zalm_1", spinner = "_spinner_2zalm_8", alert = "_alert_2zalm_14", header = "_header_2zalm_18", sentinel = "_sentinel_2zalm_23", loadingMore = "_loadingMore_2zalm_30", jobsList = "_jobsList_2zalm_39", noJobsContainer = "_noJobsContainer_2zalm_44", noJobsImage = "_noJobsImage_2zalm_54", noJobsHeading = "_noJobsHeading_2zalm_58", styles$8 = {
|
|
74201
74253
|
heading,
|
|
74202
74254
|
spinner,
|
|
74203
74255
|
alert,
|
|
74204
74256
|
header,
|
|
74205
74257
|
sentinel,
|
|
74206
74258
|
loadingMore,
|
|
74207
|
-
jobsList
|
|
74259
|
+
jobsList,
|
|
74260
|
+
noJobsContainer,
|
|
74261
|
+
noJobsImage,
|
|
74262
|
+
noJobsHeading
|
|
74208
74263
|
}, { Title, Text } = Typography$1, TAB_HEADINGS = {
|
|
74209
74264
|
[TAG_TO_TAB_MAPPING.relevant]: "Unlocked Jobs",
|
|
74210
74265
|
[TAG_TO_TAB_MAPPING.all]: "All Jobs",
|
|
@@ -74221,16 +74276,18 @@ function JobsList({
|
|
|
74221
74276
|
isFetchingMore: ee = !1,
|
|
74222
74277
|
hasMore: te = !0
|
|
74223
74278
|
}) {
|
|
74224
|
-
var
|
|
74279
|
+
var ce;
|
|
74225
74280
|
const ne = useDispatch(), re = useSelector(
|
|
74226
|
-
(
|
|
74227
|
-
|
|
74228
|
-
|
|
74229
|
-
|
|
74230
|
-
|
|
74231
|
-
|
|
74232
|
-
|
|
74233
|
-
|
|
74281
|
+
(fe) => {
|
|
74282
|
+
var ye, Se;
|
|
74283
|
+
return ((Se = (ye = fe.scalantCareerHub) == null ? void 0 : ye.dashboard) == null ? void 0 : Se.processCounts) || {};
|
|
74284
|
+
}
|
|
74285
|
+
), ae = te !== void 0 ? te : !0, [oe] = useUpdateApplicationStatusMutation(), { selectedJobId: ie, updateJobId: le, updateTab: ue } = useJobQueryParams({
|
|
74286
|
+
syncToURL: !0,
|
|
74287
|
+
syncFromURL: !1
|
|
74288
|
+
// Don't sync from URL here, let JobsPage handle initialization
|
|
74289
|
+
}), { sentinelRef: de } = useInfiniteScroll({
|
|
74290
|
+
hasMore: ae,
|
|
74234
74291
|
isLoading: K,
|
|
74235
74292
|
isFetchingMore: ee
|
|
74236
74293
|
});
|
|
@@ -74238,64 +74295,64 @@ function JobsList({
|
|
|
74238
74295
|
F && F.length > 0 && ne(initializeSavedJobs(F));
|
|
74239
74296
|
}, [F, ne]), useEffect(() => {
|
|
74240
74297
|
if (F && F.length > 0) {
|
|
74241
|
-
const
|
|
74242
|
-
if (
|
|
74243
|
-
const
|
|
74244
|
-
(
|
|
74298
|
+
const ye = new URLSearchParams(window.location.search).get("job_ids");
|
|
74299
|
+
if (ye) {
|
|
74300
|
+
const Se = Number(ye), ge = F.find(
|
|
74301
|
+
(be) => be.id === Se || be.jobProfileId === Se || String(be.id) === ye || String(be.jobProfileId) === ye
|
|
74245
74302
|
);
|
|
74246
|
-
|
|
74303
|
+
ge && ie !== ge.id && le(ge.id);
|
|
74247
74304
|
}
|
|
74248
74305
|
}
|
|
74249
|
-
}, [F,
|
|
74250
|
-
const
|
|
74251
|
-
|
|
74252
|
-
},
|
|
74253
|
-
if (
|
|
74306
|
+
}, [F, ie, le]);
|
|
74307
|
+
const se = (fe) => {
|
|
74308
|
+
le(ie === fe ? null : fe);
|
|
74309
|
+
}, ve = (fe, ye) => lr(this, null, function* () {
|
|
74310
|
+
if (ye !== "save")
|
|
74254
74311
|
return;
|
|
74255
|
-
const
|
|
74256
|
-
job_profile_id:
|
|
74257
|
-
|
|
74312
|
+
const ge = yield oe({
|
|
74313
|
+
job_profile_id: fe,
|
|
74314
|
+
update_action: "save"
|
|
74258
74315
|
}).unwrap();
|
|
74259
74316
|
return ne(
|
|
74260
74317
|
setJobSavedStatus({
|
|
74261
|
-
jobId:
|
|
74318
|
+
jobId: fe,
|
|
74262
74319
|
status: "Saved",
|
|
74263
|
-
lastUpdatedAt: (
|
|
74320
|
+
lastUpdatedAt: (ge == null ? void 0 : ge.applicationLastUpdatedAt) || (/* @__PURE__ */ new Date()).toISOString()
|
|
74264
74321
|
})
|
|
74265
|
-
),
|
|
74266
|
-
}),
|
|
74267
|
-
|
|
74322
|
+
), ge;
|
|
74323
|
+
}), me = () => {
|
|
74324
|
+
ue(TAG_TO_TAB_MAPPING.all);
|
|
74325
|
+
}, he = TAB_HEADINGS[$] || TAB_HEADINGS[TAG_TO_TAB_MAPPING.all], pe = () => re[$] || 0;
|
|
74326
|
+
return K ? /* @__PURE__ */ React__default.createElement("div", { className: C }, /* @__PURE__ */ React__default.createElement(Space$1, { direction: "vertical", className: styles$8.header }, /* @__PURE__ */ React__default.createElement(Title, { level: 4, className: styles$8.heading }, he, " ", /* @__PURE__ */ React__default.createElement(Tag$1, { color: "green" }, pe(), " Found")), /* @__PURE__ */ React__default.createElement(Text, null, "Based on your profile, preferences, and activity like applies, searches, and saves")), /* @__PURE__ */ React__default.createElement(Spin$1, { size: "large", className: styles$8.spinner })) : J ? /* @__PURE__ */ React__default.createElement("div", { className: C }, /* @__PURE__ */ React__default.createElement(Space$1, { direction: "vertical", className: styles$8.header }, /* @__PURE__ */ React__default.createElement(Title, { level: 4, className: styles$8.heading }, he, " ", /* @__PURE__ */ React__default.createElement(Tag$1, { color: "green" }, pe(), " Found")), /* @__PURE__ */ React__default.createElement(Text, null, "Based on your profile, preferences, and activity like applies, searches, and saves")), /* @__PURE__ */ React__default.createElement("div", { className: styles$8.header }, /* @__PURE__ */ React__default.createElement(
|
|
74268
74327
|
Alert$1,
|
|
74269
74328
|
{
|
|
74270
74329
|
message: "Error loading jobs",
|
|
74271
|
-
description: ((
|
|
74330
|
+
description: ((ce = J == null ? void 0 : J.data) == null ? void 0 : ce.message) || (J == null ? void 0 : J.message) || "Failed to fetch jobs. Please try again later.",
|
|
74272
74331
|
type: "error",
|
|
74273
74332
|
showIcon: !0,
|
|
74274
74333
|
className: styles$8.alert
|
|
74275
74334
|
}
|
|
74276
|
-
)) : !F || F.length === 0 ? /* @__PURE__ */ React__default.createElement("div", { className: C }, /* @__PURE__ */ React__default.createElement(Title, { level:
|
|
74277
|
-
|
|
74335
|
+
))) : !F || F.length === 0 ? /* @__PURE__ */ React__default.createElement("div", { className: C }, /* @__PURE__ */ React__default.createElement(Space$1, { direction: "vertical", className: styles$8.header }, /* @__PURE__ */ React__default.createElement(Title, { level: 4, className: styles$8.heading }, he, " ", /* @__PURE__ */ React__default.createElement(Tag$1, { color: "green" }, pe(), " Found")), /* @__PURE__ */ React__default.createElement(Text, null, "Based on your profile, preferences, and activity like applies, searches, and saves")), /* @__PURE__ */ React__default.createElement("div", { className: styles$8.noJobsContainer }, /* @__PURE__ */ React__default.createElement(
|
|
74336
|
+
"img",
|
|
74278
74337
|
{
|
|
74279
|
-
|
|
74280
|
-
|
|
74281
|
-
|
|
74282
|
-
showIcon: !0,
|
|
74283
|
-
className: styles$8.alert
|
|
74338
|
+
src: "https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/171/464/original/3cd470a8085619f7775acfa9e3f15053ee5eb687.png?1766383387",
|
|
74339
|
+
alt: "No Jobs Found",
|
|
74340
|
+
className: styles$8.noJobsImage
|
|
74284
74341
|
}
|
|
74285
|
-
)) : /* @__PURE__ */ React__default.createElement("div", { className: C }, /* @__PURE__ */ React__default.createElement(Space$1, { direction: "vertical", className: styles$8.header }, /* @__PURE__ */ React__default.createElement(Title, { level: 4, className: styles$8.heading },
|
|
74342
|
+
), /* @__PURE__ */ React__default.createElement(Title, { level: 3, className: styles$8.noJobsHeading }, "No Suitable Roles Available at the Moment"), /* @__PURE__ */ React__default.createElement(Text, { className: styles$8.noJobsText }, "Your current preferences do not match any active opportunities, Please visit the All Jobs section to explore existing job opportunities."), /* @__PURE__ */ React__default.createElement(Button$2, { type: "primary", onClick: me }, "Go to All Jobs ", /* @__PURE__ */ React__default.createElement(RightOutlined$1, null)))) : /* @__PURE__ */ React__default.createElement("div", { className: C }, /* @__PURE__ */ React__default.createElement(Space$1, { direction: "vertical", className: styles$8.header }, /* @__PURE__ */ React__default.createElement(Title, { level: 4, className: styles$8.heading }, he, " ", /* @__PURE__ */ React__default.createElement(Tag$1, { color: "green" }, pe(), " Found")), /* @__PURE__ */ React__default.createElement(Text, null, "Based on your profile, preferences, and activity like applies, searches, and saves")), /* @__PURE__ */ React__default.createElement("div", { className: styles$8.jobsList }, F.map((fe) => /* @__PURE__ */ React__default.createElement(
|
|
74286
74343
|
JobCard,
|
|
74287
74344
|
{
|
|
74288
|
-
key:
|
|
74289
|
-
jobData:
|
|
74290
|
-
isActive:
|
|
74345
|
+
key: fe.id,
|
|
74346
|
+
jobData: fe,
|
|
74347
|
+
isActive: ie === fe.id,
|
|
74291
74348
|
currentTab: $,
|
|
74292
|
-
onClick:
|
|
74293
|
-
onSave:
|
|
74349
|
+
onClick: se,
|
|
74350
|
+
onSave: ve,
|
|
74294
74351
|
companiesList: V,
|
|
74295
74352
|
userCountry: "IN",
|
|
74296
|
-
selectedJobId:
|
|
74353
|
+
selectedJobId: ie
|
|
74297
74354
|
}
|
|
74298
|
-
)),
|
|
74355
|
+
)), ae && /* @__PURE__ */ React__default.createElement("div", { ref: de, className: styles$8.sentinel }, ee && /* @__PURE__ */ React__default.createElement("div", { className: styles$8.loadingMore }, /* @__PURE__ */ React__default.createElement(Spin$1, { size: "small" }), /* @__PURE__ */ React__default.createElement("span", null, "Loading more jobs...")))));
|
|
74299
74356
|
}
|
|
74300
74357
|
JobsList.propTypes = {
|
|
74301
74358
|
className: PropTypes.string,
|
|
@@ -74309,7 +74366,7 @@ JobsList.propTypes = {
|
|
|
74309
74366
|
};
|
|
74310
74367
|
JobsList.defaultProps = {
|
|
74311
74368
|
className: "",
|
|
74312
|
-
currentTab: TAG_TO_TAB_MAPPING.
|
|
74369
|
+
currentTab: TAG_TO_TAB_MAPPING.relevant,
|
|
74313
74370
|
jobs: [],
|
|
74314
74371
|
companiesMap: {},
|
|
74315
74372
|
isLoading: !1,
|
|
@@ -75224,42 +75281,48 @@ function JobsPage({
|
|
|
75224
75281
|
openResume: F,
|
|
75225
75282
|
processCounts: V = DEFAULT_PROCESS_COUNTS,
|
|
75226
75283
|
userProfileData: K,
|
|
75227
|
-
onUploadFile: J
|
|
75284
|
+
onUploadFile: J,
|
|
75285
|
+
onViewResume: ee,
|
|
75286
|
+
onEditPreferences: te
|
|
75228
75287
|
}) {
|
|
75229
|
-
const
|
|
75230
|
-
(
|
|
75231
|
-
|
|
75232
|
-
|
|
75233
|
-
var de, se;
|
|
75234
|
-
return ((se = (de = ue.scalantCareerHub) == null ? void 0 : de.filter) == null ? void 0 : se.tab) || TAG_TO_TAB_MAPPING.all;
|
|
75235
|
-
}
|
|
75236
|
-
), re = useRef(!1);
|
|
75237
|
-
useLayoutEffect$2(() => {
|
|
75238
|
-
if (!re.current) {
|
|
75239
|
-
const ue = getFiltersFromURL(), de = getJobIdFromURL(), se = Un({}, ue);
|
|
75240
|
-
if (de) {
|
|
75241
|
-
const ve = Number(de);
|
|
75242
|
-
isNaN(ve) || (se.job_ids = [de], ee(setSelectedJobId(ve)));
|
|
75243
|
-
}
|
|
75244
|
-
Object.keys(se).length > 0 && ee(updateFiltersFromForm(se)), re.current = !0;
|
|
75288
|
+
const ne = useDispatch(), re = useSelector(
|
|
75289
|
+
(se) => {
|
|
75290
|
+
var ve, me;
|
|
75291
|
+
return ((me = (ve = se.scalantCareerHub) == null ? void 0 : ve.filter) == null ? void 0 : me.tab) || TAG_TO_TAB_MAPPING.relevant;
|
|
75245
75292
|
}
|
|
75246
|
-
|
|
75247
|
-
|
|
75248
|
-
|
|
75249
|
-
|
|
75250
|
-
}
|
|
75251
|
-
|
|
75293
|
+
), ae = useRef(!1), { selectedJobId: oe } = useJobQueryParams({
|
|
75294
|
+
syncToURL: !0,
|
|
75295
|
+
syncFromURL: !0
|
|
75296
|
+
// Read from URL on mount
|
|
75297
|
+
});
|
|
75298
|
+
useLayoutEffect$2(() => {
|
|
75299
|
+
if (!ae.current) {
|
|
75300
|
+
const se = getFiltersFromURL(), ve = Un({}, se), he = new URLSearchParams(window.location.search).get("job_ids");
|
|
75301
|
+
he && (ve.job_ids = [he]), Object.keys(ve).length > 0 && ne(updateFiltersFromForm(ve)), ae.current = !0;
|
|
75302
|
+
}
|
|
75303
|
+
}, [ne]), useEffect(() => {
|
|
75304
|
+
ne(setProcessCounts(V));
|
|
75305
|
+
}, [V, ne]), useEffect(() => {
|
|
75306
|
+
K && ne(setUserProfileData(K));
|
|
75307
|
+
}, [K, ne]);
|
|
75308
|
+
const ie = /* @__PURE__ */ React__default.createElement(JobsHeader, null), le = oe ? /* @__PURE__ */ React__default.createElement(
|
|
75252
75309
|
JobDetails,
|
|
75253
75310
|
{
|
|
75254
|
-
currentTab:
|
|
75311
|
+
currentTab: re,
|
|
75255
75312
|
onUploadFile: J,
|
|
75256
75313
|
country: C,
|
|
75257
75314
|
openMockInterviewModal: $,
|
|
75258
75315
|
openResume: F,
|
|
75259
|
-
jobId:
|
|
75316
|
+
jobId: oe
|
|
75317
|
+
}
|
|
75318
|
+
) : /* @__PURE__ */ React__default.createElement(
|
|
75319
|
+
ProfileDetails,
|
|
75320
|
+
{
|
|
75321
|
+
onViewResume: ee,
|
|
75322
|
+
onEditPreferences: te
|
|
75260
75323
|
}
|
|
75261
|
-
)
|
|
75262
|
-
switch (
|
|
75324
|
+
), ue = oe ? SIDER_WIDTH.JOB_DETAILS : SIDER_WIDTH.PROFILE_DETAILS, de = () => {
|
|
75325
|
+
switch (re) {
|
|
75263
75326
|
case TAG_TO_TAB_MAPPING.relevant:
|
|
75264
75327
|
return /* @__PURE__ */ React__default.createElement(RelevantJobsPage, null);
|
|
75265
75328
|
case TAG_TO_TAB_MAPPING.saved:
|
|
@@ -75274,12 +75337,12 @@ function JobsPage({
|
|
|
75274
75337
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
75275
75338
|
JobsLayout,
|
|
75276
75339
|
{
|
|
75277
|
-
header:
|
|
75278
|
-
sider:
|
|
75279
|
-
siderWidth:
|
|
75340
|
+
header: ie,
|
|
75341
|
+
sider: le,
|
|
75342
|
+
siderWidth: ue,
|
|
75280
75343
|
className: styles.jobsPage
|
|
75281
75344
|
},
|
|
75282
|
-
|
|
75345
|
+
de()
|
|
75283
75346
|
), /* @__PURE__ */ React__default.createElement(FilterDrawer, null), /* @__PURE__ */ React__default.createElement(JobAlertModal, null));
|
|
75284
75347
|
}
|
|
75285
75348
|
JobsPage.propTypes = {
|