@sheetxl/studio-mui 0.4.20 → 0.4.22

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.
Files changed (98) hide show
  1. package/browser/cjs/2d2J6QkipnGWfI99.cjs +6 -0
  2. package/browser/cjs/BY09bxecVOSMwQA3.cjs +6 -0
  3. package/browser/cjs/BYJI3FMxQ-z5UGsU.cjs +6 -0
  4. package/browser/cjs/B_nvuo0kEXu5G0Gf.cjs +7 -0
  5. package/browser/cjs/BfnxiVEhzO5reOYH.cjs +42 -0
  6. package/browser/cjs/Bil3fXnJ3lk7aGF5.cjs +6 -0
  7. package/browser/cjs/{DItuuqkIamMzp7Im.cjs → BzbKSVugPof6dqQI.cjs} +1 -1
  8. package/browser/cjs/CU0utErelA1oX0n8.cjs +6 -0
  9. package/browser/cjs/CWp8_mrz0htdOXMM.cjs +20 -0
  10. package/browser/cjs/D2Cp7gwb6bRupSZY.cjs +6 -0
  11. package/browser/cjs/DC70SHoaPVkOUEHx.cjs +6 -0
  12. package/browser/cjs/DRUx3PLS_NrkJ6Yw.cjs +18 -0
  13. package/browser/cjs/index.cjs +2 -2
  14. package/browser/esm/-0XEuwqNVFTlDKEX.mjs +25 -0
  15. package/browser/esm/-AR3L_VjwMbtQVbL.mjs +62 -0
  16. package/browser/esm/BLhZj1SgWlsmeviw.mjs +4443 -0
  17. package/browser/esm/{BW3_mz5_8i9VLBYB.mjs → BXNl9EEQzO53Hoh5.mjs} +87 -85
  18. package/browser/esm/BqnVpwK0Q2fKGA2S.mjs +53 -0
  19. package/browser/esm/D4rFOqwrrtVMpgbc.mjs +49 -0
  20. package/browser/esm/DEbllEGmvtLkCug_.mjs +2156 -0
  21. package/browser/esm/{C60ZnLCvtztDLuoT.mjs → DXRFs7VZM4IShMju.mjs} +100 -98
  22. package/browser/esm/{C5xUbwpUPDeNua-i.mjs → DeGATuYv4-5bhQcD.mjs} +1 -1
  23. package/browser/esm/{5u-JEG1IfQBstjq0.mjs → EMqbYi0X_krk5yOL.mjs} +11 -10
  24. package/browser/esm/fWsCG2WBM3kCpC5p.mjs +46 -0
  25. package/browser/esm/index.mjs +29 -29
  26. package/browser/esm/{CxXpPYi4eOFhBNt2.mjs → pARZF2O230qNvxWd.mjs} +27 -26
  27. package/licenses/dependencies.txt +0 -271
  28. package/node/esm/{D6A_o47zvz5ITIJK.mjs → 0JTY0jNrXiIiOqWY.mjs} +79 -78
  29. package/node/esm/{Ds5dinNcyNdC8ta6.mjs → BqQ6JNhQ1K321g9U.mjs} +13 -11
  30. package/node/esm/{CrDbLKJh9omVo_TF.mjs → Bu58psaOsDy_zPOJ.mjs} +29 -28
  31. package/node/esm/BzBHqe1ThbCP-l_d.mjs +88 -0
  32. package/node/esm/CE_I2ijQF8MeexHD.mjs +63 -0
  33. package/node/esm/{Bv12-Yyv0C86Iquy.mjs → CuomeW-4DDc1ywFW.mjs} +7 -6
  34. package/node/esm/DRt8kMDuCJn53CIE.mjs +46 -0
  35. package/node/esm/{CH6p2H0CMCoz4NgJ.mjs → DgHCTCARk1Gv_msN.mjs} +23 -22
  36. package/node/esm/{Bn5TJPQAEMY-lGpF.mjs → Do7y7aKPA48-93AV.mjs} +4 -3
  37. package/node/esm/{rlqvGCJlj4a2UcSM.mjs → X11ONmg6R1Y6hfue.mjs} +11 -10
  38. package/node/esm/index.mjs +2381 -18514
  39. package/package.json +8 -8
  40. package/browser/cjs/-Z37a-mzY5SKXy--.cjs +0 -6
  41. package/browser/cjs/B384kb1_rsiCsdZG.cjs +0 -6
  42. package/browser/cjs/B8nWvy4zDv1CZsr_.cjs +0 -110
  43. package/browser/cjs/BBnMJiXp9lru0Rcq.cjs +0 -6
  44. package/browser/cjs/BFbHTu65n1oE-l0N.cjs +0 -6
  45. package/browser/cjs/BQMSHnQdWtqeakER.cjs +0 -6
  46. package/browser/cjs/BvjA0ybox6653eb5.cjs +0 -6
  47. package/browser/cjs/Cocgl4ghzWE9yVYS.cjs +0 -161
  48. package/browser/cjs/D21Q1NdM1zQ7uFlH.cjs +0 -6
  49. package/browser/cjs/D4LmaKqYiwjxp0Hs.cjs +0 -15
  50. package/browser/cjs/D6egUillMqBwTaEq.cjs +0 -6
  51. package/browser/cjs/D9lY6pd9tRxPeLKs.cjs +0 -18
  52. package/browser/cjs/DNqIYSqRYZkUpFxW.cjs +0 -7
  53. package/browser/cjs/DUImSlPsM-OipgBZ.cjs +0 -6
  54. package/browser/cjs/DUVLcBcwkTsuLb6q.cjs +0 -6
  55. package/browser/cjs/Db7IyKXFzo8IocDa.cjs +0 -145
  56. package/browser/cjs/DsHPj69dMFG09uD_.cjs +0 -16
  57. package/browser/cjs/DypblOPNMRx5Twgx.cjs +0 -12
  58. package/browser/cjs/QK7YNBstmN86K-xL.cjs +0 -6
  59. package/browser/cjs/VNWvn2kP6ZF0Snzw.cjs +0 -11
  60. package/browser/cjs/dc1YAArM3bSHvRcF.cjs +0 -7
  61. package/browser/cjs/mInXvB8P6r6q7pRY.cjs +0 -11
  62. package/browser/cjs/nop6N-Oi_LKy1Bpc.cjs +0 -42
  63. package/browser/cjs/s45oNHeIvJVeRjn5.cjs +0 -6
  64. package/browser/esm/1y10o01h14oGJtKG.mjs +0 -43
  65. package/browser/esm/BFpc8KBa-fb0nLSt.mjs +0 -46
  66. package/browser/esm/Bmjhrc6YMmfx_1Yi.mjs +0 -1703
  67. package/browser/esm/BnlJVFlQeWerd3KW.mjs +0 -3803
  68. package/browser/esm/BpuH_QvBidPOXgAR.mjs +0 -392
  69. package/browser/esm/CAiWSkkPRgUjk8CN.mjs +0 -424
  70. package/browser/esm/CW8taieVozHhyBOC.mjs +0 -1467
  71. package/browser/esm/CzyEerZmfWrW3i3U.mjs +0 -59
  72. package/browser/esm/D0FBHwm0Oz_wf0tR.mjs +0 -12
  73. package/browser/esm/DM9GPrZpbCcKOnyU.mjs +0 -1352
  74. package/browser/esm/DO1doKZhwYiL7vbF.mjs +0 -1672
  75. package/browser/esm/DS3anstzAV3EJBRw.mjs +0 -84
  76. package/browser/esm/DuEmdSQsXlkCWZIB.mjs +0 -1366
  77. package/browser/esm/FvK-pQsicRjtrKoS.mjs +0 -48
  78. package/browser/esm/KCTJzQeDChqf1yBO.mjs +0 -52
  79. package/browser/esm/P-3pIbidOtRCNsw3.mjs +0 -23
  80. package/browser/esm/W3EFMOPLR1aNXWvF.mjs +0 -2250
  81. package/browser/esm/Z_Sh-N3xHHWLCbEw.mjs +0 -23412
  82. package/browser/esm/mOmzoYDWAtgYndCA.mjs +0 -13391
  83. package/browser/esm/tnJECoiQzUzgUQZE.mjs +0 -44
  84. package/node/esm/54SjtcD6mOreKcCy.mjs +0 -1719
  85. package/node/esm/B2BlMiDOVpIp1FDQ.mjs +0 -1706
  86. package/node/esm/BNEvR1srnnwBgnrF.mjs +0 -1479
  87. package/node/esm/BZ20_F64yjZgn-_G.mjs +0 -1246
  88. package/node/esm/BfzRLuswtxg9uDsX.mjs +0 -78
  89. package/node/esm/C0ZBbkFa-24tJTnw.mjs +0 -60
  90. package/node/esm/CEVO60fX3MAPG0Hg.mjs +0 -1378
  91. package/node/esm/CdFmhVFplZFgBvTo.mjs +0 -44
  92. package/node/esm/Cx4mn0YEVkG-M1VL.mjs +0 -553
  93. package/node/esm/DDWek3aquTe_okr_.mjs +0 -392
  94. package/node/esm/DSLWcwr4qgHARs36.mjs +0 -13464
  95. package/node/esm/iXG86MN0JrtJkpqe.mjs +0 -44
  96. package/node/esm/m2teXjBzZLfLDFPx.mjs +0 -46
  97. package/node/esm/oykDy4erHC0NNHHq.mjs +0 -3776
  98. package/node/esm/sVOd1y3oNBREsKJ7.mjs +0 -86
@@ -0,0 +1,2156 @@
1
+ import { jsxs as Me, jsx as G } from "react/jsx-runtime";
2
+ import { Box as se, TextField as qt, InputAdornment as $t, IconButton as Xt, FormControlLabel as Yt, Checkbox as Jt, Typography as Zt, TableCell as Le, DialogContent as Qt } from "@mui/material";
3
+ import { KeyCodes as pt } from "@sheetxl/utils-react";
4
+ import { toShortcutElements as eo, InternalWindow as to } from "@sheetxl/utils-mui";
5
+ import * as C from "react";
6
+ import mt, { cloneElement as oo, useState as ae, useMemo as no, useEffect as Ge } from "react";
7
+ import { _ as ro, b as N, d as U, e as io, f as ge } from "./BLhZj1SgWlsmeviw.mjs";
8
+ import { alpha as ce, getOverlayAlpha as de, styled as lo } from "@mui/material/styles";
9
+ import { Close as so } from "@mui/icons-material";
10
+ import { CommonUtils as ao } from "@sheetxl/utils";
11
+ /**
12
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.22
13
+ *
14
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
15
+ * License: The license can be found at https://www.sheetxl.com/license.
16
+ */
17
+ function M(n, e) {
18
+ if (!(n instanceof e)) throw new TypeError("Cannot call a class as a function");
19
+ }
20
+ function K(n) {
21
+ return K = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
22
+ return typeof e;
23
+ } : function(e) {
24
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
25
+ }, K(n);
26
+ }
27
+ function gt(n) {
28
+ var e = function(t, o) {
29
+ if (K(t) != "object" || !t) return t;
30
+ var r = t[Symbol.toPrimitive];
31
+ if (r !== void 0) {
32
+ var l = r.call(t, o);
33
+ if (K(l) != "object") return l;
34
+ throw new TypeError("@@toPrimitive must return a primitive value.");
35
+ }
36
+ return String(t);
37
+ }(n, "string");
38
+ return K(e) == "symbol" ? e : e + "";
39
+ }
40
+ function Ae(n, e) {
41
+ for (var t = 0; t < e.length; t++) {
42
+ var o = e[t];
43
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(n, gt(o.key), o);
44
+ }
45
+ }
46
+ function L(n, e, t) {
47
+ return e && Ae(n.prototype, e), t && Ae(n, t), Object.defineProperty(n, "prototype", { writable: !1 }), n;
48
+ }
49
+ function W(n, e) {
50
+ if (e && (K(e) == "object" || typeof e == "function")) return e;
51
+ if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
52
+ return function(t) {
53
+ if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
54
+ return t;
55
+ }(n);
56
+ }
57
+ function T(n) {
58
+ return T = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
59
+ return e.__proto__ || Object.getPrototypeOf(e);
60
+ }, T(n);
61
+ }
62
+ function H(n, e) {
63
+ if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
64
+ n.prototype = Object.create(e && e.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), e && ro(n, e);
65
+ }
66
+ function p(n, e, t) {
67
+ return (e = gt(e)) in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
68
+ }
69
+ function vt() {
70
+ var n = this.constructor.getDerivedStateFromProps(this.props, this.state);
71
+ n != null && this.setState(n);
72
+ }
73
+ function _t(n) {
74
+ this.setState(function(e) {
75
+ var t = this.constructor.getDerivedStateFromProps(n, e);
76
+ return t ?? null;
77
+ }.bind(this));
78
+ }
79
+ function St(n, e) {
80
+ try {
81
+ var t = this.props, o = this.state;
82
+ this.props = n, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(t, o);
83
+ } finally {
84
+ this.props = t, this.state = o;
85
+ }
86
+ }
87
+ function le(n) {
88
+ var e = n.prototype;
89
+ if (!e || !e.isReactComponent) throw new Error("Can only polyfill class components");
90
+ if (typeof n.getDerivedStateFromProps != "function" && typeof e.getSnapshotBeforeUpdate != "function") return n;
91
+ var t = null, o = null, r = null;
92
+ if (typeof e.componentWillMount == "function" ? t = "componentWillMount" : typeof e.UNSAFE_componentWillMount == "function" && (t = "UNSAFE_componentWillMount"), typeof e.componentWillReceiveProps == "function" ? o = "componentWillReceiveProps" : typeof e.UNSAFE_componentWillReceiveProps == "function" && (o = "UNSAFE_componentWillReceiveProps"), typeof e.componentWillUpdate == "function" ? r = "componentWillUpdate" : typeof e.UNSAFE_componentWillUpdate == "function" && (r = "UNSAFE_componentWillUpdate"), t !== null || o !== null || r !== null) {
93
+ var l = n.displayName || n.name, i = typeof n.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
94
+ throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
95
+
96
+ ` + l + " uses " + i + " but also contains the following legacy lifecycles:" + (t !== null ? `
97
+ ` + t : "") + (o !== null ? `
98
+ ` + o : "") + (r !== null ? `
99
+ ` + r : "") + `
100
+
101
+ The above lifecycles should be removed. Learn more about this warning here:
102
+ https://fb.me/react-async-component-lifecycle-hooks`);
103
+ }
104
+ if (typeof n.getDerivedStateFromProps == "function" && (e.componentWillMount = vt, e.componentWillReceiveProps = _t), typeof e.getSnapshotBeforeUpdate == "function") {
105
+ if (typeof e.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");
106
+ e.componentWillUpdate = St;
107
+ var a = e.componentDidUpdate;
108
+ e.componentDidUpdate = function(s, c, d) {
109
+ var u = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
110
+ a.call(this, s, c, u);
111
+ };
112
+ }
113
+ return n;
114
+ }
115
+ function Ee(n, e) {
116
+ var t = Object.keys(n);
117
+ if (Object.getOwnPropertySymbols) {
118
+ var o = Object.getOwnPropertySymbols(n);
119
+ e && (o = o.filter(function(r) {
120
+ return Object.getOwnPropertyDescriptor(n, r).enumerable;
121
+ })), t.push.apply(t, o);
122
+ }
123
+ return t;
124
+ }
125
+ function We(n) {
126
+ for (var e = 1; e < arguments.length; e++) {
127
+ var t = arguments[e] != null ? arguments[e] : {};
128
+ e % 2 ? Ee(Object(t), !0).forEach(function(o) {
129
+ p(n, o, t[o]);
130
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Ee(Object(t)).forEach(function(o) {
131
+ Object.defineProperty(n, o, Object.getOwnPropertyDescriptor(t, o));
132
+ });
133
+ }
134
+ return n;
135
+ }
136
+ function yt() {
137
+ try {
138
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
139
+ }));
140
+ } catch {
141
+ }
142
+ return (yt = function() {
143
+ return !!n;
144
+ })();
145
+ }
146
+ vt.__suppressDeprecationWarning = !0, _t.__suppressDeprecationWarning = !0, St.__suppressDeprecationWarning = !0;
147
+ var He = function() {
148
+ function n() {
149
+ var e, t, o, r;
150
+ M(this, n);
151
+ for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
152
+ return t = this, o = n, r = [].concat(i), o = T(o), p(e = W(t, yt() ? Reflect.construct(o, r || [], T(t).constructor) : o.apply(t, r)), "state", { scrollToColumn: 0, scrollToRow: 0, instanceProps: { prevScrollToColumn: 0, prevScrollToRow: 0 } }), p(e, "_columnStartIndex", 0), p(e, "_columnStopIndex", 0), p(e, "_rowStartIndex", 0), p(e, "_rowStopIndex", 0), p(e, "_onKeyDown", function(s) {
153
+ var c = e.props, d = c.columnCount, u = c.disabled, f = c.mode, h = c.rowCount;
154
+ if (!u) {
155
+ var v = e._getScrollState(), g = v.scrollToColumn, _ = v.scrollToRow, S = e._getScrollState(), m = S.scrollToColumn, y = S.scrollToRow;
156
+ switch (s.key) {
157
+ case "ArrowDown":
158
+ y = Math.min(f === "cells" ? y + 1 : e._rowStopIndex + 1, h - 1);
159
+ break;
160
+ case "ArrowLeft":
161
+ m = Math.max(f === "cells" ? m - 1 : e._columnStartIndex - 1, 0);
162
+ break;
163
+ case "ArrowRight":
164
+ m = Math.min(f === "cells" ? m + 1 : e._columnStopIndex + 1, d - 1);
165
+ break;
166
+ case "ArrowUp":
167
+ y = Math.max(f === "cells" ? y - 1 : e._rowStartIndex - 1, 0);
168
+ }
169
+ m === g && y === _ || (s.preventDefault(), e._updateScrollState({ scrollToColumn: m, scrollToRow: y }));
170
+ }
171
+ }), p(e, "_onSectionRendered", function(s) {
172
+ var c = s.columnStartIndex, d = s.columnStopIndex, u = s.rowStartIndex, f = s.rowStopIndex;
173
+ e._columnStartIndex = c, e._columnStopIndex = d, e._rowStartIndex = u, e._rowStopIndex = f;
174
+ }), e;
175
+ }
176
+ return H(n, C.PureComponent), L(n, [{ key: "setScrollIndexes", value: function(e) {
177
+ var t = e.scrollToColumn, o = e.scrollToRow;
178
+ this.setState({ scrollToRow: o, scrollToColumn: t });
179
+ } }, { key: "render", value: function() {
180
+ var e = this.props, t = e.className, o = e.children, r = this._getScrollState(), l = r.scrollToColumn, i = r.scrollToRow;
181
+ return C.createElement("div", { className: t, onKeyDown: this._onKeyDown }, o({ onSectionRendered: this._onSectionRendered, scrollToColumn: l, scrollToRow: i }));
182
+ } }, { key: "_getScrollState", value: function() {
183
+ return this.props.isControlled ? this.props : this.state;
184
+ } }, { key: "_updateScrollState", value: function(e) {
185
+ var t = e.scrollToColumn, o = e.scrollToRow, r = this.props, l = r.isControlled, i = r.onScrollToChange;
186
+ typeof i == "function" && i({ scrollToColumn: t, scrollToRow: o }), l || this.setState({ scrollToColumn: t, scrollToRow: o });
187
+ } }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
188
+ return e.isControlled ? {} : e.scrollToColumn !== t.instanceProps.prevScrollToColumn || e.scrollToRow !== t.instanceProps.prevScrollToRow ? We(We({}, t), {}, { scrollToColumn: e.scrollToColumn, scrollToRow: e.scrollToRow, instanceProps: { prevScrollToColumn: e.scrollToColumn, prevScrollToRow: e.scrollToRow } }) : {};
189
+ } }]);
190
+ }();
191
+ function wt(n, e) {
192
+ var t, o = (t = e !== void 0 ? e : typeof window < "u" ? window : typeof self < "u" ? self : global).document !== void 0 && t.document.attachEvent;
193
+ if (!o) {
194
+ var r = function() {
195
+ var m = t.requestAnimationFrame || t.mozRequestAnimationFrame || t.webkitRequestAnimationFrame || function(y) {
196
+ return t.setTimeout(y, 20);
197
+ };
198
+ return function(y) {
199
+ return m(y);
200
+ };
201
+ }(), l = function() {
202
+ var m = t.cancelAnimationFrame || t.mozCancelAnimationFrame || t.webkitCancelAnimationFrame || t.clearTimeout;
203
+ return function(y) {
204
+ return m(y);
205
+ };
206
+ }(), i = function(m) {
207
+ var y = m.__resizeTriggers__, w = y.firstElementChild, x = y.lastElementChild, b = w.firstElementChild;
208
+ x.scrollLeft = x.scrollWidth, x.scrollTop = x.scrollHeight, b.style.width = w.offsetWidth + 1 + "px", b.style.height = w.offsetHeight + 1 + "px", w.scrollLeft = w.scrollWidth, w.scrollTop = w.scrollHeight;
209
+ }, a = function(m) {
210
+ if (!(m.target.className && typeof m.target.className.indexOf == "function" && m.target.className.indexOf("contract-trigger") < 0 && m.target.className.indexOf("expand-trigger") < 0)) {
211
+ var y = this;
212
+ i(this), this.__resizeRAF__ && l(this.__resizeRAF__), this.__resizeRAF__ = r(function() {
213
+ (function(w) {
214
+ return w.offsetWidth != w.__resizeLast__.width || w.offsetHeight != w.__resizeLast__.height;
215
+ })(y) && (y.__resizeLast__.width = y.offsetWidth, y.__resizeLast__.height = y.offsetHeight, y.__resizeListeners__.forEach(function(w) {
216
+ w.call(y, m);
217
+ }));
218
+ });
219
+ }
220
+ }, s = !1, c = "", d = "animationstart", u = "Webkit Moz O ms".split(" "), f = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), h = t.document.createElement("fakeelement");
221
+ if (h.style.animationName !== void 0 && (s = !0), s === !1) {
222
+ for (var v = 0; v < u.length; v++) if (h.style[u[v] + "AnimationName"] !== void 0) {
223
+ c = "-" + u[v].toLowerCase() + "-", d = f[v], s = !0;
224
+ break;
225
+ }
226
+ }
227
+ var g = "resizeanim", _ = "@" + c + "keyframes " + g + " { from { opacity: 0; } to { opacity: 0; } } ", S = c + "animation: 1ms " + g + "; ";
228
+ }
229
+ return { addResizeListener: function(m, y) {
230
+ if (o) m.attachEvent("onresize", y);
231
+ else {
232
+ if (!m.__resizeTriggers__) {
233
+ var w = m.ownerDocument, x = t.getComputedStyle(m);
234
+ x && x.position == "static" && (m.style.position = "relative"), function(R) {
235
+ if (!R.getElementById("detectElementResize")) {
236
+ var P = (_ || "") + ".resize-triggers { " + (S || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', k = R.head || R.getElementsByTagName("head")[0], I = R.createElement("style");
237
+ I.id = "detectElementResize", I.type = "text/css", n != null && I.setAttribute("nonce", n), I.styleSheet ? I.styleSheet.cssText = P : I.appendChild(R.createTextNode(P)), k.appendChild(I);
238
+ }
239
+ }(w), m.__resizeLast__ = {}, m.__resizeListeners__ = [], (m.__resizeTriggers__ = w.createElement("div")).className = "resize-triggers";
240
+ var b = w.createElement("div");
241
+ b.className = "expand-trigger", b.appendChild(w.createElement("div"));
242
+ var z = w.createElement("div");
243
+ z.className = "contract-trigger", m.__resizeTriggers__.appendChild(b), m.__resizeTriggers__.appendChild(z), m.appendChild(m.__resizeTriggers__), i(m), m.addEventListener("scroll", a, !0), d && (m.__resizeTriggers__.__animationListener__ = function(R) {
244
+ R.animationName == g && i(m);
245
+ }, m.__resizeTriggers__.addEventListener(d, m.__resizeTriggers__.__animationListener__));
246
+ }
247
+ m.__resizeListeners__.push(y);
248
+ }
249
+ }, removeResizeListener: function(m, y) {
250
+ if (o) m.detachEvent("onresize", y);
251
+ else if (m.__resizeListeners__.splice(m.__resizeListeners__.indexOf(y), 1), !m.__resizeListeners__.length) {
252
+ m.removeEventListener("scroll", a, !0), m.__resizeTriggers__.__animationListener__ && (m.__resizeTriggers__.removeEventListener(d, m.__resizeTriggers__.__animationListener__), m.__resizeTriggers__.__animationListener__ = null);
253
+ try {
254
+ m.__resizeTriggers__ = !m.removeChild(m.__resizeTriggers__);
255
+ } catch {
256
+ }
257
+ }
258
+ } };
259
+ }
260
+ function De(n, e) {
261
+ var t = Object.keys(n);
262
+ if (Object.getOwnPropertySymbols) {
263
+ var o = Object.getOwnPropertySymbols(n);
264
+ e && (o = o.filter(function(r) {
265
+ return Object.getOwnPropertyDescriptor(n, r).enumerable;
266
+ })), t.push.apply(t, o);
267
+ }
268
+ return t;
269
+ }
270
+ function je(n) {
271
+ for (var e = 1; e < arguments.length; e++) {
272
+ var t = arguments[e] != null ? arguments[e] : {};
273
+ e % 2 ? De(Object(t), !0).forEach(function(o) {
274
+ p(n, o, t[o]);
275
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : De(Object(t)).forEach(function(o) {
276
+ Object.defineProperty(n, o, Object.getOwnPropertyDescriptor(t, o));
277
+ });
278
+ }
279
+ return n;
280
+ }
281
+ function Ct() {
282
+ try {
283
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
284
+ }));
285
+ } catch {
286
+ }
287
+ return (Ct = function() {
288
+ return !!n;
289
+ })();
290
+ }
291
+ p(He, "defaultProps", { disabled: !1, isControlled: !1, mode: "edges", scrollToColumn: 0, scrollToRow: 0 }), le(He);
292
+ var xt = function() {
293
+ function n() {
294
+ var e, t, o, r;
295
+ M(this, n);
296
+ for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
297
+ return t = this, o = n, r = [].concat(i), o = T(o), p(e = W(t, Ct() ? Reflect.construct(o, r || [], T(t).constructor) : o.apply(t, r)), "state", { height: e.props.defaultHeight || 0, width: e.props.defaultWidth || 0 }), p(e, "_parentNode", void 0), p(e, "_autoSizer", void 0), p(e, "_window", void 0), p(e, "_detectElementResize", void 0), p(e, "_onResize", function() {
298
+ var s = e.props, c = s.disableHeight, d = s.disableWidth, u = s.onResize;
299
+ if (e._parentNode) {
300
+ var f = e._parentNode.offsetHeight || 0, h = e._parentNode.offsetWidth || 0, v = (e._window || window).getComputedStyle(e._parentNode) || {}, g = parseInt(v.paddingLeft, 10) || 0, _ = parseInt(v.paddingRight, 10) || 0, S = parseInt(v.paddingTop, 10) || 0, m = parseInt(v.paddingBottom, 10) || 0, y = f - S - m, w = h - g - _;
301
+ (!c && e.state.height !== y || !d && e.state.width !== w) && (e.setState({ height: f - S - m, width: h - g - _ }), u({ height: f, width: h }));
302
+ }
303
+ }), p(e, "_setRef", function(s) {
304
+ e._autoSizer = s;
305
+ }), e;
306
+ }
307
+ return H(n, C.Component), L(n, [{ key: "componentDidMount", value: function() {
308
+ var e = this.props.nonce;
309
+ this._autoSizer && this._autoSizer.parentNode && this._autoSizer.parentNode.ownerDocument && this._autoSizer.parentNode.ownerDocument.defaultView && this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement && (this._parentNode = this._autoSizer.parentNode, this._window = this._autoSizer.parentNode.ownerDocument.defaultView, this._detectElementResize = wt(e, this._window), this._detectElementResize.addResizeListener(this._parentNode, this._onResize), this._onResize());
310
+ } }, { key: "componentWillUnmount", value: function() {
311
+ this._detectElementResize && this._parentNode && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);
312
+ } }, { key: "render", value: function() {
313
+ var e = this.props, t = e.children, o = e.className, r = e.disableHeight, l = e.disableWidth, i = e.style, a = this.state, s = a.height, c = a.width, d = { overflow: "visible" }, u = {};
314
+ return r || (d.height = 0, u.height = s), l || (d.width = 0, u.width = c), C.createElement("div", { className: o, ref: this._setRef, style: je(je({}, d), i) }, t(u));
315
+ } }]);
316
+ }();
317
+ function Rt() {
318
+ try {
319
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
320
+ }));
321
+ } catch {
322
+ }
323
+ return (Rt = function() {
324
+ return !!n;
325
+ })();
326
+ }
327
+ p(xt, "defaultProps", { onResize: function() {
328
+ }, disableHeight: !1, disableWidth: !1, style: {} });
329
+ var co = function() {
330
+ function n() {
331
+ var e, t, o, r;
332
+ M(this, n);
333
+ for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
334
+ return t = this, o = n, r = [].concat(i), o = T(o), p(e = W(t, Rt() ? Reflect.construct(o, r || [], T(t).constructor) : o.apply(t, r)), "_child", C.createRef()), p(e, "_measure", function() {
335
+ var s = e.props, c = s.cache, d = s.columnIndex, u = d === void 0 ? 0 : d, f = s.parent, h = s.rowIndex, v = h === void 0 ? e.props.index || 0 : h, g = e._getCellMeasurements(), _ = g.height, S = g.width;
336
+ _ === c.getHeight(v, u) && S === c.getWidth(v, u) || (c.set(v, u, S, _), f && typeof f.recomputeGridSize == "function" && f.recomputeGridSize({ columnIndex: u, rowIndex: v }));
337
+ }), p(e, "_registerChild", function(s) {
338
+ !s || s instanceof Element || console.warn("CellMeasurer registerChild expects to be passed Element or null"), e._child.current = s, s && e._maybeMeasureCell();
339
+ }), e;
340
+ }
341
+ return H(n, C.PureComponent), L(n, [{ key: "componentDidMount", value: function() {
342
+ this._maybeMeasureCell();
343
+ } }, { key: "componentDidUpdate", value: function() {
344
+ this._maybeMeasureCell();
345
+ } }, { key: "render", value: function() {
346
+ var e = this, t = this.props.children, o = typeof t == "function" ? t({ measure: this._measure, registerChild: this._registerChild }) : t;
347
+ return o === null ? o : oo(o, { ref: function(r) {
348
+ typeof o.ref == "function" ? o.ref(r) : o.ref && (o.ref.current = r), e._child.current = r;
349
+ } });
350
+ } }, { key: "_getCellMeasurements", value: function() {
351
+ var e = this.props.cache, t = this._child.current;
352
+ if (t && t.ownerDocument && t.ownerDocument.defaultView && t instanceof t.ownerDocument.defaultView.HTMLElement) {
353
+ var o = t.style.width, r = t.style.height;
354
+ e.hasFixedWidth() || (t.style.width = "auto"), e.hasFixedHeight() || (t.style.height = "auto");
355
+ var l = Math.ceil(t.offsetHeight), i = Math.ceil(t.offsetWidth);
356
+ return o && (t.style.width = o), r && (t.style.height = r), { height: l, width: i };
357
+ }
358
+ return { height: 0, width: 0 };
359
+ } }, { key: "_maybeMeasureCell", value: function() {
360
+ var e = this.props, t = e.cache, o = e.columnIndex, r = o === void 0 ? 0 : o, l = e.parent, i = e.rowIndex, a = i === void 0 ? this.props.index || 0 : i;
361
+ if (!t.has(a, r)) {
362
+ var s = this._getCellMeasurements(), c = s.height, d = s.width;
363
+ t.set(a, r, d, c), l && typeof l.invalidateCellSizeAfterRender == "function" && l.invalidateCellSizeAfterRender({ columnIndex: r, rowIndex: a });
364
+ }
365
+ } }]);
366
+ }();
367
+ function Y() {
368
+ var n = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0], e = {};
369
+ return function(t) {
370
+ var o = t.callback, r = t.indices, l = Object.keys(r), i = !n || l.every(function(s) {
371
+ var c = r[s];
372
+ return Array.isArray(c) ? c.length > 0 : c >= 0;
373
+ }), a = l.length !== Object.keys(e).length || l.some(function(s) {
374
+ var c = e[s], d = r[s];
375
+ return Array.isArray(d) ? c.join(",") !== d.join(",") : c !== d;
376
+ });
377
+ e = r, i && a && o(r);
378
+ };
379
+ }
380
+ p(co, "__internalCellMeasurerFlag", !1);
381
+ const uo = !(typeof window > "u" || !window.document || !window.document.createElement);
382
+ var ue;
383
+ function we(n) {
384
+ if ((!ue && ue !== 0 || n) && uo) {
385
+ var e = document.createElement("div");
386
+ e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e), ue = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
387
+ }
388
+ return ue;
389
+ }
390
+ function Fe(n, e) {
391
+ var t = Object.keys(n);
392
+ if (Object.getOwnPropertySymbols) {
393
+ var o = Object.getOwnPropertySymbols(n);
394
+ e && (o = o.filter(function(r) {
395
+ return Object.getOwnPropertyDescriptor(n, r).enumerable;
396
+ })), t.push.apply(t, o);
397
+ }
398
+ return t;
399
+ }
400
+ function Ne(n) {
401
+ for (var e = 1; e < arguments.length; e++) {
402
+ var t = arguments[e] != null ? arguments[e] : {};
403
+ e % 2 ? Fe(Object(t), !0).forEach(function(o) {
404
+ p(n, o, t[o]);
405
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Fe(Object(t)).forEach(function(o) {
406
+ Object.defineProperty(n, o, Object.getOwnPropertyDescriptor(t, o));
407
+ });
408
+ }
409
+ return n;
410
+ }
411
+ function bt() {
412
+ try {
413
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
414
+ }));
415
+ } catch {
416
+ }
417
+ return (bt = function() {
418
+ return !!n;
419
+ })();
420
+ }
421
+ var ho = "observed", Z = "requested", fe = function() {
422
+ function n() {
423
+ var e, t, o, r;
424
+ M(this, n);
425
+ for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
426
+ return t = this, o = n, r = [].concat(i), o = T(o), p(e = W(t, bt() ? Reflect.construct(o, r || [], T(t).constructor) : o.apply(t, r)), "state", { isScrolling: !1, scrollLeft: 0, scrollTop: 0 }), p(e, "_calculateSizeAndPositionDataOnNextUpdate", !1), p(e, "_onSectionRenderedMemoizer", Y()), p(e, "_onScrollMemoizer", Y(!1)), p(e, "_invokeOnSectionRenderedHelper", function() {
427
+ var s = e.props, c = s.cellLayoutManager, d = s.onSectionRendered;
428
+ e._onSectionRenderedMemoizer({ callback: d, indices: { indices: c.getLastRenderedIndices() } });
429
+ }), p(e, "_setScrollingContainerRef", function(s) {
430
+ e._scrollingContainer = s;
431
+ }), p(e, "_updateScrollPositionForScrollToCell", function() {
432
+ var s = e.props, c = s.cellLayoutManager, d = s.height, u = s.scrollToAlignment, f = s.scrollToCell, h = s.width, v = e.state, g = v.scrollLeft, _ = v.scrollTop;
433
+ if (f >= 0) {
434
+ var S = c.getScrollPositionForCell({ align: u, cellIndex: f, height: d, scrollLeft: g, scrollTop: _, width: h });
435
+ S.scrollLeft === g && S.scrollTop === _ || e._setScrollPosition(S);
436
+ }
437
+ }), p(e, "_onScroll", function(s) {
438
+ if (s.target === e._scrollingContainer) {
439
+ e._enablePointerEventsAfterDelay();
440
+ var c = e.props, d = c.cellLayoutManager, u = c.height, f = c.isScrollingChange, h = c.width, v = e._scrollbarSize, g = d.getTotalSize(), _ = g.height, S = g.width, m = Math.max(0, Math.min(S - h + v, s.target.scrollLeft)), y = Math.max(0, Math.min(_ - u + v, s.target.scrollTop));
441
+ if (e.state.scrollLeft !== m || e.state.scrollTop !== y) {
442
+ var w = s.cancelable ? ho : Z;
443
+ e.state.isScrolling || f(!0), e.setState({ isScrolling: !0, scrollLeft: m, scrollPositionChangeReason: w, scrollTop: y });
444
+ }
445
+ e._invokeOnScrollMemoizer({ scrollLeft: m, scrollTop: y, totalWidth: S, totalHeight: _ });
446
+ }
447
+ }), e._scrollbarSize = we(), e._scrollbarSize === void 0 ? (e._scrollbarSizeMeasured = !1, e._scrollbarSize = 0) : e._scrollbarSizeMeasured = !0, e;
448
+ }
449
+ return H(n, C.PureComponent), L(n, [{ key: "recomputeCellSizesAndPositions", value: function() {
450
+ this._calculateSizeAndPositionDataOnNextUpdate = !0, this.forceUpdate();
451
+ } }, { key: "componentDidMount", value: function() {
452
+ var e = this.props, t = e.cellLayoutManager, o = e.scrollLeft, r = e.scrollToCell, l = e.scrollTop;
453
+ this._scrollbarSizeMeasured || (this._scrollbarSize = we(), this._scrollbarSizeMeasured = !0, this.setState({})), r >= 0 ? this._updateScrollPositionForScrollToCell() : (o >= 0 || l >= 0) && this._setScrollPosition({ scrollLeft: o, scrollTop: l }), this._invokeOnSectionRenderedHelper();
454
+ var i = t.getTotalSize(), a = i.height, s = i.width;
455
+ this._invokeOnScrollMemoizer({ scrollLeft: o || 0, scrollTop: l || 0, totalHeight: a, totalWidth: s });
456
+ } }, { key: "componentDidUpdate", value: function(e, t) {
457
+ var o = this.props, r = o.height, l = o.scrollToAlignment, i = o.scrollToCell, a = o.width, s = this.state, c = s.scrollLeft, d = s.scrollPositionChangeReason, u = s.scrollTop;
458
+ d === Z && (c >= 0 && c !== t.scrollLeft && c !== this._scrollingContainer.scrollLeft && (this._scrollingContainer.scrollLeft = c), u >= 0 && u !== t.scrollTop && u !== this._scrollingContainer.scrollTop && (this._scrollingContainer.scrollTop = u)), r === e.height && l === e.scrollToAlignment && i === e.scrollToCell && a === e.width || this._updateScrollPositionForScrollToCell(), this._invokeOnSectionRenderedHelper();
459
+ } }, { key: "componentWillUnmount", value: function() {
460
+ this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId);
461
+ } }, { key: "render", value: function() {
462
+ var e = this.props, t = e.autoHeight, o = e.cellCount, r = e.cellLayoutManager, l = e.className, i = e.height, a = e.horizontalOverscanSize, s = e.id, c = e.noContentRenderer, d = e.style, u = e.verticalOverscanSize, f = e.width, h = this.state, v = h.isScrolling, g = h.scrollLeft, _ = h.scrollTop;
463
+ (this._lastRenderedCellCount !== o || this._lastRenderedCellLayoutManager !== r || this._calculateSizeAndPositionDataOnNextUpdate) && (this._lastRenderedCellCount = o, this._lastRenderedCellLayoutManager = r, this._calculateSizeAndPositionDataOnNextUpdate = !1, r.calculateSizeAndPositionData());
464
+ var S = r.getTotalSize(), m = S.height, y = S.width, w = Math.max(0, g - a), x = Math.max(0, _ - u), b = Math.min(y, g + f + a), z = Math.min(m, _ + i + u), R = i > 0 && f > 0 ? r.cellRenderers({ height: z - x, isScrolling: v, width: b - w, x: w, y: x }) : [], P = { boxSizing: "border-box", direction: "ltr", height: t ? "auto" : i, position: "relative", WebkitOverflowScrolling: "touch", width: f, willChange: "transform" }, k = m > i ? this._scrollbarSize : 0, I = y > f ? this._scrollbarSize : 0;
465
+ return P.overflowX = y + k <= f ? "hidden" : "auto", P.overflowY = m + I <= i ? "hidden" : "auto", C.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Collection", l), id: s, onScroll: this._onScroll, role: "grid", style: Ne(Ne({}, P), d), tabIndex: 0 }, o > 0 && C.createElement("div", { className: "ReactVirtualized__Collection__innerScrollContainer", style: { height: m, maxHeight: m, maxWidth: y, overflow: "hidden", pointerEvents: v ? "none" : "", width: y } }, R), o === 0 && c());
466
+ } }, { key: "_enablePointerEventsAfterDelay", value: function() {
467
+ var e = this;
468
+ this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = setTimeout(function() {
469
+ (0, e.props.isScrollingChange)(!1), e._disablePointerEventsTimeoutId = null, e.setState({ isScrolling: !1 });
470
+ }, 150);
471
+ } }, { key: "_invokeOnScrollMemoizer", value: function(e) {
472
+ var t = this, o = e.scrollLeft, r = e.scrollTop, l = e.totalHeight, i = e.totalWidth;
473
+ this._onScrollMemoizer({ callback: function(a) {
474
+ var s = a.scrollLeft, c = a.scrollTop, d = t.props, u = d.height;
475
+ (0, d.onScroll)({ clientHeight: u, clientWidth: d.width, scrollHeight: l, scrollLeft: s, scrollTop: c, scrollWidth: i });
476
+ }, indices: { scrollLeft: o, scrollTop: r } });
477
+ } }, { key: "_setScrollPosition", value: function(e) {
478
+ var t = e.scrollLeft, o = e.scrollTop, r = { scrollPositionChangeReason: Z };
479
+ t >= 0 && (r.scrollLeft = t), o >= 0 && (r.scrollTop = o), (t >= 0 && t !== this.state.scrollLeft || o >= 0 && o !== this.state.scrollTop) && this.setState(r);
480
+ } }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
481
+ return e.cellCount !== 0 || t.scrollLeft === 0 && t.scrollTop === 0 ? e.scrollLeft !== t.scrollLeft || e.scrollTop !== t.scrollTop ? { scrollLeft: e.scrollLeft != null ? e.scrollLeft : t.scrollLeft, scrollTop: e.scrollTop != null ? e.scrollTop : t.scrollTop, scrollPositionChangeReason: Z } : null : { scrollLeft: 0, scrollTop: 0, scrollPositionChangeReason: Z };
482
+ } }]);
483
+ }();
484
+ p(fe, "defaultProps", { "aria-label": "grid", horizontalOverscanSize: 0, noContentRenderer: function() {
485
+ return null;
486
+ }, onScroll: function() {
487
+ return null;
488
+ }, onSectionRendered: function() {
489
+ return null;
490
+ }, scrollToAlignment: "auto", scrollToCell: -1, style: {}, verticalOverscanSize: 0 }), fe.propTypes = {}, le(fe);
491
+ var fo = function() {
492
+ return L(function n(e) {
493
+ var t = e.height, o = e.width, r = e.x, l = e.y;
494
+ M(this, n), this.height = t, this.width = o, this.x = r, this.y = l, this._indexMap = {}, this._indices = [];
495
+ }, [{ key: "addCellIndex", value: function(n) {
496
+ var e = n.index;
497
+ this._indexMap[e] || (this._indexMap[e] = !0, this._indices.push(e));
498
+ } }, { key: "getCellIndices", value: function() {
499
+ return this._indices;
500
+ } }, { key: "toString", value: function() {
501
+ return "".concat(this.x, ",").concat(this.y, " ").concat(this.width, "x").concat(this.height);
502
+ } }]);
503
+ }(), po = function() {
504
+ return L(function n() {
505
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 100;
506
+ M(this, n), this._sectionSize = e, this._cellMetadata = [], this._sections = {};
507
+ }, [{ key: "getCellIndices", value: function(n) {
508
+ var e = n.height, t = n.width, o = n.x, r = n.y, l = {};
509
+ return this.getSections({ height: e, width: t, x: o, y: r }).forEach(function(i) {
510
+ return i.getCellIndices().forEach(function(a) {
511
+ l[a] = a;
512
+ });
513
+ }), Object.keys(l).map(function(i) {
514
+ return l[i];
515
+ });
516
+ } }, { key: "getCellMetadata", value: function(n) {
517
+ var e = n.index;
518
+ return this._cellMetadata[e];
519
+ } }, { key: "getSections", value: function(n) {
520
+ for (var e = n.height, t = n.width, o = n.x, r = n.y, l = Math.floor(o / this._sectionSize), i = Math.floor((o + t - 1) / this._sectionSize), a = Math.floor(r / this._sectionSize), s = Math.floor((r + e - 1) / this._sectionSize), c = [], d = l; d <= i; d++) for (var u = a; u <= s; u++) {
521
+ var f = "".concat(d, ".").concat(u);
522
+ this._sections[f] || (this._sections[f] = new fo({ height: this._sectionSize, width: this._sectionSize, x: d * this._sectionSize, y: u * this._sectionSize })), c.push(this._sections[f]);
523
+ }
524
+ return c;
525
+ } }, { key: "getTotalSectionCount", value: function() {
526
+ return Object.keys(this._sections).length;
527
+ } }, { key: "toString", value: function() {
528
+ var n = this;
529
+ return Object.keys(this._sections).map(function(e) {
530
+ return n._sections[e].toString();
531
+ });
532
+ } }, { key: "registerCell", value: function(n) {
533
+ var e = n.cellMetadatum, t = n.index;
534
+ this._cellMetadata[t] = e, this.getSections(e).forEach(function(o) {
535
+ return o.addCellIndex({ index: t });
536
+ });
537
+ } }]);
538
+ }();
539
+ function Be(n) {
540
+ var e = n.align, t = e === void 0 ? "auto" : e, o = n.cellOffset, r = n.cellSize, l = n.containerSize, i = n.currentOffset, a = o, s = a - l + r;
541
+ switch (t) {
542
+ case "start":
543
+ return a;
544
+ case "end":
545
+ return s;
546
+ case "center":
547
+ return a - (l - r) / 2;
548
+ default:
549
+ return Math.max(s, Math.min(a, i));
550
+ }
551
+ }
552
+ function zt() {
553
+ try {
554
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
555
+ }));
556
+ } catch {
557
+ }
558
+ return (zt = function() {
559
+ return !!n;
560
+ })();
561
+ }
562
+ var Ue = function() {
563
+ function n(e, t) {
564
+ var o, r, l, i;
565
+ return M(this, n), r = this, i = [e, t], l = T(l = n), (o = W(r, zt() ? Reflect.construct(l, i || [], T(r).constructor) : l.apply(r, i)))._cellMetadata = [], o._lastRenderedCellIndices = [], o._cellCache = [], o._isScrollingChange = o._isScrollingChange.bind(o), o._setCollectionViewRef = o._setCollectionViewRef.bind(o), o;
566
+ }
567
+ return H(n, C.PureComponent), L(n, [{ key: "forceUpdate", value: function() {
568
+ this._collectionView !== void 0 && this._collectionView.forceUpdate();
569
+ } }, { key: "recomputeCellSizesAndPositions", value: function() {
570
+ this._cellCache = [], this._collectionView.recomputeCellSizesAndPositions();
571
+ } }, { key: "render", value: function() {
572
+ var e = U({}, (function(t) {
573
+ if (t == null) throw new TypeError("Cannot destructure " + t);
574
+ }(this.props), this.props));
575
+ return C.createElement(fe, U({ cellLayoutManager: this, isScrollingChange: this._isScrollingChange, ref: this._setCollectionViewRef }, e));
576
+ } }, { key: "calculateSizeAndPositionData", value: function() {
577
+ var e = this.props, t = function(o) {
578
+ for (var r = o.cellCount, l = o.cellSizeAndPositionGetter, i = o.sectionSize, a = [], s = new po(i), c = 0, d = 0, u = 0; u < r; u++) {
579
+ var f = l({ index: u });
580
+ if (f.height == null || isNaN(f.height) || f.width == null || isNaN(f.width) || f.x == null || isNaN(f.x) || f.y == null || isNaN(f.y)) throw Error("Invalid metadata returned for cell ".concat(u, `:
581
+ x:`).concat(f.x, ", y:").concat(f.y, ", width:").concat(f.width, ", height:").concat(f.height));
582
+ c = Math.max(c, f.y + f.height), d = Math.max(d, f.x + f.width), a[u] = f, s.registerCell({ cellMetadatum: f, index: u });
583
+ }
584
+ return { cellMetadata: a, height: c, sectionManager: s, width: d };
585
+ }({ cellCount: e.cellCount, cellSizeAndPositionGetter: e.cellSizeAndPositionGetter, sectionSize: e.sectionSize });
586
+ this._cellMetadata = t.cellMetadata, this._sectionManager = t.sectionManager, this._height = t.height, this._width = t.width;
587
+ } }, { key: "getLastRenderedIndices", value: function() {
588
+ return this._lastRenderedCellIndices;
589
+ } }, { key: "getScrollPositionForCell", value: function(e) {
590
+ var t = e.align, o = e.cellIndex, r = e.height, l = e.scrollLeft, i = e.scrollTop, a = e.width, s = this.props.cellCount;
591
+ if (o >= 0 && o < s) {
592
+ var c = this._cellMetadata[o];
593
+ l = Be({ align: t, cellOffset: c.x, cellSize: c.width, containerSize: a, currentOffset: l }), i = Be({ align: t, cellOffset: c.y, cellSize: c.height, containerSize: r, currentOffset: i });
594
+ }
595
+ return { scrollLeft: l, scrollTop: i };
596
+ } }, { key: "getTotalSize", value: function() {
597
+ return { height: this._height, width: this._width };
598
+ } }, { key: "cellRenderers", value: function(e) {
599
+ var t = this, o = e.height, r = e.isScrolling, l = e.width, i = e.x, a = e.y, s = this.props, c = s.cellGroupRenderer, d = s.cellRenderer;
600
+ return this._lastRenderedCellIndices = this._sectionManager.getCellIndices({ height: o, width: l, x: i, y: a }), c({ cellCache: this._cellCache, cellRenderer: d, cellSizeAndPositionGetter: function(u) {
601
+ var f = u.index;
602
+ return t._sectionManager.getCellMetadata({ index: f });
603
+ }, indices: this._lastRenderedCellIndices, isScrolling: r });
604
+ } }, { key: "_isScrollingChange", value: function(e) {
605
+ e || (this._cellCache = []);
606
+ } }, { key: "_setCollectionViewRef", value: function(e) {
607
+ this._collectionView = e;
608
+ } }]);
609
+ }();
610
+ function Tt() {
611
+ try {
612
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
613
+ }));
614
+ } catch {
615
+ }
616
+ return (Tt = function() {
617
+ return !!n;
618
+ })();
619
+ }
620
+ function Ve(n) {
621
+ var e = n.cellCount, t = n.cellSize, o = n.computeMetadataCallback, r = n.computeMetadataCallbackProps, l = n.nextCellsCount, i = n.nextCellSize, a = n.nextScrollToIndex, s = n.scrollToIndex, c = n.updateScrollOffsetForScrollToIndex;
622
+ e === l && (typeof t != "number" && typeof i != "number" || t === i) || (o(r), s >= 0 && s === a && c());
623
+ }
624
+ function ee(n, e) {
625
+ if (n == null) return {};
626
+ var t, o, r = io(n, e);
627
+ if (Object.getOwnPropertySymbols) {
628
+ var l = Object.getOwnPropertySymbols(n);
629
+ for (o = 0; o < l.length; o++) t = l[o], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(n, t) && (r[t] = n[t]);
630
+ }
631
+ return r;
632
+ }
633
+ p(Ue, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(n) {
634
+ var e = n.cellCache, t = n.cellRenderer, o = n.cellSizeAndPositionGetter, r = n.indices, l = n.isScrolling;
635
+ return r.map(function(i) {
636
+ var a = o({ index: i }), s = { index: i, isScrolling: l, key: i, style: { height: a.height, left: a.x, position: "absolute", top: a.y, width: a.width } };
637
+ return l ? (i in e || (e[i] = t(s)), e[i]) : t(s);
638
+ }).filter(function(i) {
639
+ return !!i;
640
+ });
641
+ } }), Ue.propTypes = {}, function() {
642
+ function n(e, t) {
643
+ var o, r, l, i;
644
+ return M(this, n), r = this, i = [e, t], l = T(l = n), (o = W(r, Tt() ? Reflect.construct(l, i || [], T(r).constructor) : l.apply(r, i)))._registerChild = o._registerChild.bind(o), o;
645
+ }
646
+ return H(n, C.PureComponent), L(n, [{ key: "componentDidUpdate", value: function(e) {
647
+ var t = this.props, o = t.columnMaxWidth, r = t.columnMinWidth, l = t.columnCount, i = t.width;
648
+ o === e.columnMaxWidth && r === e.columnMinWidth && l === e.columnCount && i === e.width || this._registeredChild && this._registeredChild.recomputeGridSize();
649
+ } }, { key: "render", value: function() {
650
+ var e = this.props, t = e.children, o = e.columnMaxWidth, r = e.columnMinWidth, l = e.columnCount, i = e.width, a = r || 1, s = o ? Math.min(o, i) : i, c = i / l;
651
+ return c = Math.max(a, c), c = Math.min(s, c), c = Math.floor(c), t({ adjustedWidth: Math.min(i, c * l), columnWidth: c, getColumnWidth: function() {
652
+ return c;
653
+ }, registerChild: this._registerChild });
654
+ } }, { key: "_registerChild", value: function(e) {
655
+ if (e && typeof e.recomputeGridSize != "function") throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");
656
+ this._registeredChild = e, this._registeredChild && this._registeredChild.recomputeGridSize();
657
+ } }]);
658
+ }().propTypes = {};
659
+ var F, mo = function() {
660
+ return L(function n(e) {
661
+ var t = e.cellCount, o = e.cellSizeGetter, r = e.estimatedCellSize;
662
+ M(this, n), p(this, "_cellSizeAndPositionData", {}), p(this, "_lastMeasuredIndex", -1), p(this, "_lastBatchedIndex", -1), p(this, "_cellCount", void 0), p(this, "_cellSizeGetter", void 0), p(this, "_estimatedCellSize", void 0), this._cellSizeGetter = o, this._cellCount = t, this._estimatedCellSize = r;
663
+ }, [{ key: "areOffsetsAdjusted", value: function() {
664
+ return !1;
665
+ } }, { key: "configure", value: function(n) {
666
+ var e = n.cellCount, t = n.estimatedCellSize, o = n.cellSizeGetter;
667
+ this._cellCount = e, this._estimatedCellSize = t, this._cellSizeGetter = o;
668
+ } }, { key: "getCellCount", value: function() {
669
+ return this._cellCount;
670
+ } }, { key: "getEstimatedCellSize", value: function() {
671
+ return this._estimatedCellSize;
672
+ } }, { key: "getLastMeasuredIndex", value: function() {
673
+ return this._lastMeasuredIndex;
674
+ } }, { key: "getOffsetAdjustment", value: function() {
675
+ return 0;
676
+ } }, { key: "getSizeAndPositionOfCell", value: function(n) {
677
+ if (n < 0 || n >= this._cellCount) throw Error("Requested index ".concat(n, " is outside of range 0..").concat(this._cellCount));
678
+ if (n > this._lastMeasuredIndex) for (var e = this.getSizeAndPositionOfLastMeasuredCell(), t = e.offset + e.size, o = this._lastMeasuredIndex + 1; o <= n; o++) {
679
+ var r = this._cellSizeGetter({ index: o });
680
+ if (r === void 0 || isNaN(r)) throw Error("Invalid size returned for cell ".concat(o, " of value ").concat(r));
681
+ r === null ? (this._cellSizeAndPositionData[o] = { offset: t, size: 0 }, this._lastBatchedIndex = n) : (this._cellSizeAndPositionData[o] = { offset: t, size: r }, t += r, this._lastMeasuredIndex = n);
682
+ }
683
+ return this._cellSizeAndPositionData[n];
684
+ } }, { key: "getSizeAndPositionOfLastMeasuredCell", value: function() {
685
+ return this._lastMeasuredIndex >= 0 ? this._cellSizeAndPositionData[this._lastMeasuredIndex] : { offset: 0, size: 0 };
686
+ } }, { key: "getTotalSize", value: function() {
687
+ var n = this.getSizeAndPositionOfLastMeasuredCell();
688
+ return n.offset + n.size + (this._cellCount - this._lastMeasuredIndex - 1) * this._estimatedCellSize;
689
+ } }, { key: "getUpdatedOffsetForIndex", value: function(n) {
690
+ var e = n.align, t = e === void 0 ? "auto" : e, o = n.containerSize, r = n.currentOffset, l = n.targetIndex;
691
+ if (o <= 0) return 0;
692
+ var i, a = this.getSizeAndPositionOfCell(l), s = a.offset, c = s - o + a.size;
693
+ switch (t) {
694
+ case "start":
695
+ i = s;
696
+ break;
697
+ case "end":
698
+ i = c;
699
+ break;
700
+ case "center":
701
+ i = s - (o - a.size) / 2;
702
+ break;
703
+ default:
704
+ i = Math.max(c, Math.min(s, r));
705
+ }
706
+ var d = this.getTotalSize();
707
+ return Math.max(0, Math.min(d - o, i));
708
+ } }, { key: "getVisibleCellRange", value: function(n) {
709
+ var e = n.containerSize, t = n.offset;
710
+ if (this.getTotalSize() === 0) return {};
711
+ var o = t + e, r = this._findNearestCell(t), l = this.getSizeAndPositionOfCell(r);
712
+ t = l.offset + l.size;
713
+ for (var i = r; t < o && i < this._cellCount - 1; ) i++, t += this.getSizeAndPositionOfCell(i).size;
714
+ return { start: r, stop: i };
715
+ } }, { key: "resetCell", value: function(n) {
716
+ this._lastMeasuredIndex = Math.min(this._lastMeasuredIndex, n - 1);
717
+ } }, { key: "_binarySearch", value: function(n, e, t) {
718
+ for (; e <= n; ) {
719
+ var o = e + Math.floor((n - e) / 2), r = this.getSizeAndPositionOfCell(o).offset;
720
+ if (r === t) return o;
721
+ r < t ? e = o + 1 : r > t && (n = o - 1);
722
+ }
723
+ return e > 0 ? e - 1 : 0;
724
+ } }, { key: "_exponentialSearch", value: function(n, e) {
725
+ for (var t = 1; n < this._cellCount && this.getSizeAndPositionOfCell(n).offset < e; ) n += t, t *= 2;
726
+ return this._binarySearch(Math.min(n, this._cellCount - 1), Math.floor(n / 2), e);
727
+ } }, { key: "_findNearestCell", value: function(n) {
728
+ if (isNaN(n)) throw Error("Invalid offset ".concat(n, " specified"));
729
+ n = Math.max(0, n);
730
+ var e = this.getSizeAndPositionOfLastMeasuredCell(), t = Math.max(0, this._lastMeasuredIndex);
731
+ return e.offset >= n ? this._binarySearch(t, 0, n) : this._exponentialSearch(t, n);
732
+ } }]);
733
+ }(), go = function() {
734
+ return typeof window < "u" && window.chrome ? 16777100 : 15e5;
735
+ }, vo = ["maxScrollSize"], Ke = function() {
736
+ return L(function n(e) {
737
+ var t = e.maxScrollSize, o = t === void 0 ? go() : t, r = ee(e, vo);
738
+ M(this, n), p(this, "_cellSizeAndPositionManager", void 0), p(this, "_maxScrollSize", void 0), this._cellSizeAndPositionManager = new mo(r), this._maxScrollSize = o;
739
+ }, [{ key: "areOffsetsAdjusted", value: function() {
740
+ return this._cellSizeAndPositionManager.getTotalSize() > this._maxScrollSize;
741
+ } }, { key: "configure", value: function(n) {
742
+ this._cellSizeAndPositionManager.configure(n);
743
+ } }, { key: "getCellCount", value: function() {
744
+ return this._cellSizeAndPositionManager.getCellCount();
745
+ } }, { key: "getEstimatedCellSize", value: function() {
746
+ return this._cellSizeAndPositionManager.getEstimatedCellSize();
747
+ } }, { key: "getLastMeasuredIndex", value: function() {
748
+ return this._cellSizeAndPositionManager.getLastMeasuredIndex();
749
+ } }, { key: "getOffsetAdjustment", value: function(n) {
750
+ var e = n.containerSize, t = n.offset, o = this._cellSizeAndPositionManager.getTotalSize(), r = this.getTotalSize(), l = this._getOffsetPercentage({ containerSize: e, offset: t, totalSize: r });
751
+ return Math.round(l * (r - o));
752
+ } }, { key: "getSizeAndPositionOfCell", value: function(n) {
753
+ return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(n);
754
+ } }, { key: "getSizeAndPositionOfLastMeasuredCell", value: function() {
755
+ return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell();
756
+ } }, { key: "getTotalSize", value: function() {
757
+ return Math.min(this._maxScrollSize, this._cellSizeAndPositionManager.getTotalSize());
758
+ } }, { key: "getUpdatedOffsetForIndex", value: function(n) {
759
+ var e = n.align, t = e === void 0 ? "auto" : e, o = n.containerSize, r = n.currentOffset, l = n.targetIndex;
760
+ r = this._safeOffsetToOffset({ containerSize: o, offset: r });
761
+ var i = this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({ align: t, containerSize: o, currentOffset: r, targetIndex: l });
762
+ return this._offsetToSafeOffset({ containerSize: o, offset: i });
763
+ } }, { key: "getVisibleCellRange", value: function(n) {
764
+ var e = n.containerSize, t = n.offset;
765
+ return t = this._safeOffsetToOffset({ containerSize: e, offset: t }), this._cellSizeAndPositionManager.getVisibleCellRange({ containerSize: e, offset: t });
766
+ } }, { key: "resetCell", value: function(n) {
767
+ this._cellSizeAndPositionManager.resetCell(n);
768
+ } }, { key: "_getOffsetPercentage", value: function(n) {
769
+ var e = n.containerSize, t = n.offset, o = n.totalSize;
770
+ return o <= e ? 0 : t / (o - e);
771
+ } }, { key: "_offsetToSafeOffset", value: function(n) {
772
+ var e = n.containerSize, t = n.offset, o = this._cellSizeAndPositionManager.getTotalSize(), r = this.getTotalSize();
773
+ if (o === r) return t;
774
+ var l = this._getOffsetPercentage({ containerSize: e, offset: t, totalSize: o });
775
+ return Math.round(l * (r - e));
776
+ } }, { key: "_safeOffsetToOffset", value: function(n) {
777
+ var e = n.containerSize, t = n.offset, o = this._cellSizeAndPositionManager.getTotalSize(), r = this.getTotalSize();
778
+ if (o === r) return t;
779
+ var l = this._getOffsetPercentage({ containerSize: e, offset: t, totalSize: r });
780
+ return Math.round(l * (o - e));
781
+ } }]);
782
+ }();
783
+ function qe(n) {
784
+ var e = n.cellSize, t = n.cellSizeAndPositionManager, o = n.previousCellsCount, r = n.previousCellSize, l = n.previousScrollToAlignment, i = n.previousScrollToIndex, a = n.previousSize, s = n.scrollOffset, c = n.scrollToAlignment, d = n.scrollToIndex, u = n.size, f = n.sizeJustIncreasedFromZero, h = n.updateScrollIndexCallback, v = t.getCellCount(), g = d >= 0 && d < v;
785
+ g && (u !== a || f || !r || typeof e == "number" && e !== r || c !== l || d !== i) ? h(d) : !g && v > 0 && (u < a || v < o) && s > t.getTotalSize() - u && h(v - 1);
786
+ }
787
+ var _o = (F = typeof window < "u" ? window : typeof self < "u" ? self : {}).requestAnimationFrame || F.webkitRequestAnimationFrame || F.mozRequestAnimationFrame || F.oRequestAnimationFrame || F.msRequestAnimationFrame || function(n) {
788
+ return F.setTimeout(n, 1e3 / 60);
789
+ }, So = F.cancelAnimationFrame || F.webkitCancelAnimationFrame || F.mozCancelAnimationFrame || F.oCancelAnimationFrame || F.msCancelAnimationFrame || function(n) {
790
+ F.clearTimeout(n);
791
+ }, $e = _o, yo = So, J = function(n) {
792
+ return yo(n.id);
793
+ }, Pe = function(n, e) {
794
+ var t;
795
+ Promise.resolve().then(function() {
796
+ t = Date.now();
797
+ });
798
+ var o = function() {
799
+ Date.now() - t >= e ? n.call() : r.id = $e(o);
800
+ }, r = { id: $e(o) };
801
+ return r;
802
+ };
803
+ function Xe(n, e) {
804
+ var t = Object.keys(n);
805
+ if (Object.getOwnPropertySymbols) {
806
+ var o = Object.getOwnPropertySymbols(n);
807
+ e && (o = o.filter(function(r) {
808
+ return Object.getOwnPropertyDescriptor(n, r).enumerable;
809
+ })), t.push.apply(t, o);
810
+ }
811
+ return t;
812
+ }
813
+ function D(n) {
814
+ for (var e = 1; e < arguments.length; e++) {
815
+ var t = arguments[e] != null ? arguments[e] : {};
816
+ e % 2 ? Xe(Object(t), !0).forEach(function(o) {
817
+ p(n, o, t[o]);
818
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Xe(Object(t)).forEach(function(o) {
819
+ Object.defineProperty(n, o, Object.getOwnPropertyDescriptor(t, o));
820
+ });
821
+ }
822
+ return n;
823
+ }
824
+ function It() {
825
+ try {
826
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
827
+ }));
828
+ } catch {
829
+ }
830
+ return (It = function() {
831
+ return !!n;
832
+ })();
833
+ }
834
+ var wo = "observed", Ye = "requested", V = function() {
835
+ function n(e) {
836
+ var t, o, r, l;
837
+ M(this, n), o = this, l = [e], r = T(r = n), p(t = W(o, It() ? Reflect.construct(r, l || [], T(o).constructor) : r.apply(o, l)), "_onGridRenderedMemoizer", Y()), p(t, "_onScrollMemoizer", Y(!1)), p(t, "_deferredInvalidateColumnIndex", null), p(t, "_deferredInvalidateRowIndex", null), p(t, "_recomputeScrollLeftFlag", !1), p(t, "_recomputeScrollTopFlag", !1), p(t, "_horizontalScrollBarSize", 0), p(t, "_verticalScrollBarSize", 0), p(t, "_scrollbarPresenceChanged", !1), p(t, "_scrollingContainer", void 0), p(t, "_childrenToDisplay", void 0), p(t, "_columnStartIndex", void 0), p(t, "_columnStopIndex", void 0), p(t, "_rowStartIndex", void 0), p(t, "_rowStopIndex", void 0), p(t, "_renderedColumnStartIndex", 0), p(t, "_renderedColumnStopIndex", 0), p(t, "_renderedRowStartIndex", 0), p(t, "_renderedRowStopIndex", 0), p(t, "_initialScrollTop", void 0), p(t, "_initialScrollLeft", void 0), p(t, "_disablePointerEventsTimeoutId", void 0), p(t, "_styleCache", {}), p(t, "_cellCache", {}), p(t, "_debounceScrollEndedCallback", function() {
838
+ t._disablePointerEventsTimeoutId = null, t.setState({ isScrolling: !1, needToResetStyleCache: !1 });
839
+ }), p(t, "_invokeOnGridRenderedHelper", function() {
840
+ var s = t.props.onSectionRendered;
841
+ t._onGridRenderedMemoizer({ callback: s, indices: { columnOverscanStartIndex: t._columnStartIndex, columnOverscanStopIndex: t._columnStopIndex, columnStartIndex: t._renderedColumnStartIndex, columnStopIndex: t._renderedColumnStopIndex, rowOverscanStartIndex: t._rowStartIndex, rowOverscanStopIndex: t._rowStopIndex, rowStartIndex: t._renderedRowStartIndex, rowStopIndex: t._renderedRowStopIndex } });
842
+ }), p(t, "_setScrollingContainerRef", function(s) {
843
+ t._scrollingContainer = s, typeof t.props.elementRef == "function" ? t.props.elementRef(s) : K(t.props.elementRef) === "object" && (t.props.elementRef.current = s);
844
+ }), p(t, "_onScroll", function(s) {
845
+ s.target === t._scrollingContainer && t.handleScrollEvent(s.target);
846
+ });
847
+ var i = new Ke({ cellCount: e.columnCount, cellSizeGetter: function(s) {
848
+ return n._wrapSizeGetter(e.columnWidth)(s);
849
+ }, estimatedCellSize: n._getEstimatedColumnSize(e) }), a = new Ke({ cellCount: e.rowCount, cellSizeGetter: function(s) {
850
+ return n._wrapSizeGetter(e.rowHeight)(s);
851
+ }, estimatedCellSize: n._getEstimatedRowSize(e) });
852
+ return t.state = { instanceProps: { columnSizeAndPositionManager: i, rowSizeAndPositionManager: a, prevColumnWidth: e.columnWidth, prevRowHeight: e.rowHeight, prevColumnCount: e.columnCount, prevRowCount: e.rowCount, prevIsScrolling: e.isScrolling === !0, prevScrollToColumn: e.scrollToColumn, prevScrollToRow: e.scrollToRow, scrollbarSize: 0, scrollbarSizeMeasured: !1 }, isScrolling: !1, scrollDirectionHorizontal: 1, scrollDirectionVertical: 1, scrollLeft: 0, scrollTop: 0, scrollPositionChangeReason: null, needToResetStyleCache: !1 }, e.scrollToRow > 0 && (t._initialScrollTop = t._getCalculatedScrollTop(e, t.state)), e.scrollToColumn > 0 && (t._initialScrollLeft = t._getCalculatedScrollLeft(e, t.state)), t;
853
+ }
854
+ return H(n, C.PureComponent), L(n, [{ key: "getOffsetForCell", value: function() {
855
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.alignment, o = t === void 0 ? this.props.scrollToAlignment : t, r = e.columnIndex, l = r === void 0 ? this.props.scrollToColumn : r, i = e.rowIndex, a = i === void 0 ? this.props.scrollToRow : i, s = D(D({}, this.props), {}, { scrollToAlignment: o, scrollToColumn: l, scrollToRow: a });
856
+ return { scrollLeft: this._getCalculatedScrollLeft(s), scrollTop: this._getCalculatedScrollTop(s) };
857
+ } }, { key: "getTotalRowsHeight", value: function() {
858
+ return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize();
859
+ } }, { key: "getTotalColumnsWidth", value: function() {
860
+ return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize();
861
+ } }, { key: "handleScrollEvent", value: function(e) {
862
+ var t = e.scrollLeft, o = t === void 0 ? 0 : t, r = e.scrollTop, l = r === void 0 ? 0 : r;
863
+ if (!(l < 0)) {
864
+ this._debounceScrollEnded();
865
+ var i = this.props, a = i.autoHeight, s = i.autoWidth, c = i.height, d = i.width, u = this.state.instanceProps, f = u.scrollbarSize, h = u.rowSizeAndPositionManager.getTotalSize(), v = u.columnSizeAndPositionManager.getTotalSize(), g = Math.min(Math.max(0, v - d + f), o), _ = Math.min(Math.max(0, h - c + f), l);
866
+ if (this.state.scrollLeft !== g || this.state.scrollTop !== _) {
867
+ var S = { isScrolling: !0, scrollDirectionHorizontal: g !== this.state.scrollLeft ? g > this.state.scrollLeft ? 1 : -1 : this.state.scrollDirectionHorizontal, scrollDirectionVertical: _ !== this.state.scrollTop ? _ > this.state.scrollTop ? 1 : -1 : this.state.scrollDirectionVertical, scrollPositionChangeReason: wo };
868
+ a || (S.scrollTop = _), s || (S.scrollLeft = g), S.needToResetStyleCache = !1, this.setState(S);
869
+ }
870
+ this._invokeOnScrollMemoizer({ scrollLeft: g, scrollTop: _, totalColumnsWidth: v, totalRowsHeight: h });
871
+ }
872
+ } }, { key: "invalidateCellSizeAfterRender", value: function(e) {
873
+ var t = e.columnIndex, o = e.rowIndex;
874
+ this._deferredInvalidateColumnIndex = typeof this._deferredInvalidateColumnIndex == "number" ? Math.min(this._deferredInvalidateColumnIndex, t) : t, this._deferredInvalidateRowIndex = typeof this._deferredInvalidateRowIndex == "number" ? Math.min(this._deferredInvalidateRowIndex, o) : o;
875
+ } }, { key: "measureAllCells", value: function() {
876
+ var e = this.props, t = e.columnCount, o = e.rowCount, r = this.state.instanceProps;
877
+ r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t - 1), r.rowSizeAndPositionManager.getSizeAndPositionOfCell(o - 1);
878
+ } }, { key: "recomputeGridSize", value: function() {
879
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, o = t === void 0 ? 0 : t, r = e.rowIndex, l = r === void 0 ? 0 : r, i = this.props, a = i.scrollToColumn, s = i.scrollToRow, c = this.state.instanceProps;
880
+ c.columnSizeAndPositionManager.resetCell(o), c.rowSizeAndPositionManager.resetCell(l), this._recomputeScrollLeftFlag = a >= 0 && (this.state.scrollDirectionHorizontal === 1 ? o <= a : o >= a), this._recomputeScrollTopFlag = s >= 0 && (this.state.scrollDirectionVertical === 1 ? l <= s : l >= s), this._styleCache = {}, this._cellCache = {}, this.forceUpdate();
881
+ } }, { key: "scrollToCell", value: function(e) {
882
+ var t = e.columnIndex, o = e.rowIndex, r = this.props.columnCount, l = this.props;
883
+ r > 1 && t !== void 0 && this._updateScrollLeftForScrollToColumn(D(D({}, l), {}, { scrollToColumn: t })), o !== void 0 && this._updateScrollTopForScrollToRow(D(D({}, l), {}, { scrollToRow: o }));
884
+ } }, { key: "componentDidMount", value: function() {
885
+ var e = this.props, t = e.getScrollbarSize, o = e.height, r = e.scrollLeft, l = e.scrollToColumn, i = e.scrollTop, a = e.scrollToRow, s = e.width, c = this.state.instanceProps;
886
+ if (this._initialScrollTop = 0, this._initialScrollLeft = 0, this._handleInvalidatedGridSize(), c.scrollbarSizeMeasured || this.setState(function(f) {
887
+ var h = D(D({}, f), {}, { needToResetStyleCache: !1 });
888
+ return h.instanceProps.scrollbarSize = t(), h.instanceProps.scrollbarSizeMeasured = !0, h;
889
+ }), typeof r == "number" && r >= 0 || typeof i == "number" && i >= 0) {
890
+ var d = n._getScrollToPositionStateUpdate({ prevState: this.state, scrollLeft: r, scrollTop: i });
891
+ d && (d.needToResetStyleCache = !1, this.setState(d));
892
+ }
893
+ this._scrollingContainer && (this._scrollingContainer.scrollLeft !== this.state.scrollLeft && (this._scrollingContainer.scrollLeft = this.state.scrollLeft), this._scrollingContainer.scrollTop !== this.state.scrollTop && (this._scrollingContainer.scrollTop = this.state.scrollTop));
894
+ var u = o > 0 && s > 0;
895
+ l >= 0 && u && this._updateScrollLeftForScrollToColumn(), a >= 0 && u && this._updateScrollTopForScrollToRow(), this._invokeOnGridRenderedHelper(), this._invokeOnScrollMemoizer({ scrollLeft: r || 0, scrollTop: i || 0, totalColumnsWidth: c.columnSizeAndPositionManager.getTotalSize(), totalRowsHeight: c.rowSizeAndPositionManager.getTotalSize() }), this._maybeCallOnScrollbarPresenceChange();
896
+ } }, { key: "componentDidUpdate", value: function(e, t) {
897
+ var o = this, r = this.props, l = r.autoHeight, i = r.autoWidth, a = r.columnCount, s = r.height, c = r.rowCount, d = r.scrollToAlignment, u = r.scrollToColumn, f = r.scrollToRow, h = r.width, v = this.state, g = v.scrollLeft, _ = v.scrollPositionChangeReason, S = v.scrollTop, m = v.instanceProps;
898
+ this._handleInvalidatedGridSize();
899
+ var y = a > 0 && e.columnCount === 0 || c > 0 && e.rowCount === 0;
900
+ _ === Ye && (!i && g >= 0 && (g !== this._scrollingContainer.scrollLeft || y) && (this._scrollingContainer.scrollLeft = g), !l && S >= 0 && (S !== this._scrollingContainer.scrollTop || y) && (this._scrollingContainer.scrollTop = S));
901
+ var w = (e.width === 0 || e.height === 0) && s > 0 && h > 0;
902
+ if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) : qe({ cellSizeAndPositionManager: m.columnSizeAndPositionManager, previousCellsCount: e.columnCount, previousCellSize: e.columnWidth, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToColumn, previousSize: e.width, scrollOffset: g, scrollToAlignment: d, scrollToIndex: u, size: h, sizeJustIncreasedFromZero: w, updateScrollIndexCallback: function() {
903
+ return o._updateScrollLeftForScrollToColumn(o.props);
904
+ } }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) : qe({ cellSizeAndPositionManager: m.rowSizeAndPositionManager, previousCellsCount: e.rowCount, previousCellSize: e.rowHeight, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToRow, previousSize: e.height, scrollOffset: S, scrollToAlignment: d, scrollToIndex: f, size: s, sizeJustIncreasedFromZero: w, updateScrollIndexCallback: function() {
905
+ return o._updateScrollTopForScrollToRow(o.props);
906
+ } }), this._invokeOnGridRenderedHelper(), g !== t.scrollLeft || S !== t.scrollTop) {
907
+ var x = m.rowSizeAndPositionManager.getTotalSize(), b = m.columnSizeAndPositionManager.getTotalSize();
908
+ this._invokeOnScrollMemoizer({ scrollLeft: g, scrollTop: S, totalColumnsWidth: b, totalRowsHeight: x });
909
+ }
910
+ this._maybeCallOnScrollbarPresenceChange();
911
+ } }, { key: "componentWillUnmount", value: function() {
912
+ this._disablePointerEventsTimeoutId && J(this._disablePointerEventsTimeoutId);
913
+ } }, { key: "render", value: function() {
914
+ var e = this.props, t = e.autoContainerWidth, o = e.autoHeight, r = e.autoWidth, l = e.className, i = e.containerProps, a = e.containerRole, s = e.containerStyle, c = e.height, d = e.id, u = e.noContentRenderer, f = e.role, h = e.style, v = e.tabIndex, g = e.width, _ = this.state, S = _.instanceProps, m = _.needToResetStyleCache, y = this._isScrolling(), w = { boxSizing: "border-box", direction: "ltr", height: o ? "auto" : c, position: "relative", width: r ? "auto" : g, WebkitOverflowScrolling: "touch", willChange: "transform" };
915
+ m && (this._styleCache = {}), this.state.isScrolling || this._resetStyleCache(), this._calculateChildrenToRender(this.props, this.state);
916
+ var x = S.columnSizeAndPositionManager.getTotalSize(), b = S.rowSizeAndPositionManager.getTotalSize(), z = b > c ? S.scrollbarSize : 0, R = x > g ? S.scrollbarSize : 0;
917
+ R === this._horizontalScrollBarSize && z === this._verticalScrollBarSize || (this._horizontalScrollBarSize = R, this._verticalScrollBarSize = z, this._scrollbarPresenceChanged = !0), w.overflowX = x + z <= g ? "hidden" : "auto", w.overflowY = b + R <= c ? "hidden" : "auto";
918
+ var P = this._childrenToDisplay, k = P.length === 0 && c > 0 && g > 0;
919
+ return C.createElement("div", U({ ref: this._setScrollingContainerRef }, i, { "aria-label": this.props["aria-label"], "aria-readonly": this.props["aria-readonly"], className: N("ReactVirtualized__Grid", l), id: d, onScroll: this._onScroll, role: f, style: D(D({}, w), h), tabIndex: v }), P.length > 0 && C.createElement("div", { className: "ReactVirtualized__Grid__innerScrollContainer", role: a, style: D({ width: t ? "auto" : x, height: b, maxWidth: x, maxHeight: b, overflow: "hidden", pointerEvents: y ? "none" : "", position: "relative" }, s) }, P), k && u());
920
+ } }, { key: "_calculateChildrenToRender", value: function() {
921
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, o = e.cellRenderer, r = e.cellRangeRenderer, l = e.columnCount, i = e.deferredMeasurementCache, a = e.height, s = e.overscanColumnCount, c = e.overscanIndicesGetter, d = e.overscanRowCount, u = e.rowCount, f = e.width, h = e.isScrollingOptOut, v = t.scrollDirectionHorizontal, g = t.scrollDirectionVertical, _ = t.instanceProps, S = this._initialScrollTop > 0 ? this._initialScrollTop : t.scrollTop, m = this._initialScrollLeft > 0 ? this._initialScrollLeft : t.scrollLeft, y = this._isScrolling(e, t);
922
+ if (this._childrenToDisplay = [], a > 0 && f > 0) {
923
+ var w = _.columnSizeAndPositionManager.getVisibleCellRange({ containerSize: f, offset: m }), x = _.rowSizeAndPositionManager.getVisibleCellRange({ containerSize: a, offset: S }), b = _.columnSizeAndPositionManager.getOffsetAdjustment({ containerSize: f, offset: m }), z = _.rowSizeAndPositionManager.getOffsetAdjustment({ containerSize: a, offset: S });
924
+ this._renderedColumnStartIndex = w.start, this._renderedColumnStopIndex = w.stop, this._renderedRowStartIndex = x.start, this._renderedRowStopIndex = x.stop;
925
+ var R = c({ direction: "horizontal", cellCount: l, overscanCellsCount: s, scrollDirection: v, startIndex: typeof w.start == "number" ? w.start : 0, stopIndex: typeof w.stop == "number" ? w.stop : -1 }), P = c({ direction: "vertical", cellCount: u, overscanCellsCount: d, scrollDirection: g, startIndex: typeof x.start == "number" ? x.start : 0, stopIndex: typeof x.stop == "number" ? x.stop : -1 }), k = R.overscanStartIndex, I = R.overscanStopIndex, A = P.overscanStartIndex, E = P.overscanStopIndex;
926
+ if (i) {
927
+ if (!i.hasFixedHeight()) {
928
+ for (var j = A; j <= E; j++) if (!i.has(j, 0)) {
929
+ k = 0, I = l - 1;
930
+ break;
931
+ }
932
+ }
933
+ if (!i.hasFixedWidth()) {
934
+ for (var me = k; me <= I; me++) if (!i.has(0, me)) {
935
+ A = 0, E = u - 1;
936
+ break;
937
+ }
938
+ }
939
+ }
940
+ this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: o, columnSizeAndPositionManager: _.columnSizeAndPositionManager, columnStartIndex: k, columnStopIndex: I, deferredMeasurementCache: i, horizontalOffsetAdjustment: b, isScrolling: y, isScrollingOptOut: h, parent: this, rowSizeAndPositionManager: _.rowSizeAndPositionManager, rowStartIndex: A, rowStopIndex: E, scrollLeft: m, scrollTop: S, styleCache: this._styleCache, verticalOffsetAdjustment: z, visibleColumnIndices: w, visibleRowIndices: x }), this._columnStartIndex = k, this._columnStopIndex = I, this._rowStartIndex = A, this._rowStopIndex = E;
941
+ }
942
+ } }, { key: "_debounceScrollEnded", value: function() {
943
+ var e = this.props.scrollingResetTimeInterval;
944
+ this._disablePointerEventsTimeoutId && J(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = Pe(this._debounceScrollEndedCallback, e);
945
+ } }, { key: "_handleInvalidatedGridSize", value: function() {
946
+ if (typeof this._deferredInvalidateColumnIndex == "number" && typeof this._deferredInvalidateRowIndex == "number") {
947
+ var e = this._deferredInvalidateColumnIndex, t = this._deferredInvalidateRowIndex;
948
+ this._deferredInvalidateColumnIndex = null, this._deferredInvalidateRowIndex = null, this.recomputeGridSize({ columnIndex: e, rowIndex: t });
949
+ }
950
+ } }, { key: "_invokeOnScrollMemoizer", value: function(e) {
951
+ var t = this, o = e.scrollLeft, r = e.scrollTop, l = e.totalColumnsWidth, i = e.totalRowsHeight;
952
+ this._onScrollMemoizer({ callback: function(a) {
953
+ var s = a.scrollLeft, c = a.scrollTop, d = t.props, u = d.height;
954
+ (0, d.onScroll)({ clientHeight: u, clientWidth: d.width, scrollHeight: i, scrollLeft: s, scrollTop: c, scrollWidth: l });
955
+ }, indices: { scrollLeft: o, scrollTop: r } });
956
+ } }, { key: "_isScrolling", value: function() {
957
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state;
958
+ return Object.hasOwnProperty.call(e, "isScrolling") ? !!e.isScrolling : !!t.isScrolling;
959
+ } }, { key: "_maybeCallOnScrollbarPresenceChange", value: function() {
960
+ if (this._scrollbarPresenceChanged) {
961
+ var e = this.props.onScrollbarPresenceChange;
962
+ this._scrollbarPresenceChanged = !1, e({ horizontal: this._horizontalScrollBarSize > 0, size: this.state.instanceProps.scrollbarSize, vertical: this._verticalScrollBarSize > 0 });
963
+ }
964
+ } }, { key: "scrollToPosition", value: function(e) {
965
+ var t = e.scrollLeft, o = e.scrollTop, r = n._getScrollToPositionStateUpdate({ prevState: this.state, scrollLeft: t, scrollTop: o });
966
+ r && (r.needToResetStyleCache = !1, this.setState(r));
967
+ } }, { key: "_getCalculatedScrollLeft", value: function() {
968
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state;
969
+ return n._getCalculatedScrollLeft(e, t);
970
+ } }, { key: "_updateScrollLeftForScrollToColumn", value: function() {
971
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, o = n._getScrollLeftForScrollToColumnStateUpdate(e, t);
972
+ o && (o.needToResetStyleCache = !1, this.setState(o));
973
+ } }, { key: "_getCalculatedScrollTop", value: function() {
974
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state;
975
+ return n._getCalculatedScrollTop(e, t);
976
+ } }, { key: "_resetStyleCache", value: function() {
977
+ var e = this._styleCache, t = this._cellCache, o = this.props.isScrollingOptOut;
978
+ this._cellCache = {}, this._styleCache = {};
979
+ for (var r = this._rowStartIndex; r <= this._rowStopIndex; r++) for (var l = this._columnStartIndex; l <= this._columnStopIndex; l++) {
980
+ var i = "".concat(r, "-").concat(l);
981
+ this._styleCache[i] = e[i], o && (this._cellCache[i] = t[i]);
982
+ }
983
+ } }, { key: "_updateScrollTopForScrollToRow", value: function() {
984
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, o = n._getScrollTopForScrollToRowStateUpdate(e, t);
985
+ o && (o.needToResetStyleCache = !1, this.setState(o));
986
+ } }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
987
+ var o = {};
988
+ e.columnCount === 0 && t.scrollLeft !== 0 || e.rowCount === 0 && t.scrollTop !== 0 ? (o.scrollLeft = 0, o.scrollTop = 0) : (e.scrollLeft !== t.scrollLeft && e.scrollToColumn < 0 || e.scrollTop !== t.scrollTop && e.scrollToRow < 0) && Object.assign(o, n._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: e.scrollLeft, scrollTop: e.scrollTop }));
989
+ var r, l, i = t.instanceProps;
990
+ return o.needToResetStyleCache = !1, e.columnWidth === i.prevColumnWidth && e.rowHeight === i.prevRowHeight || (o.needToResetStyleCache = !0), i.columnSizeAndPositionManager.configure({ cellCount: e.columnCount, estimatedCellSize: n._getEstimatedColumnSize(e), cellSizeGetter: n._wrapSizeGetter(e.columnWidth) }), i.rowSizeAndPositionManager.configure({ cellCount: e.rowCount, estimatedCellSize: n._getEstimatedRowSize(e), cellSizeGetter: n._wrapSizeGetter(e.rowHeight) }), i.prevColumnCount !== 0 && i.prevRowCount !== 0 || (i.prevColumnCount = 0, i.prevRowCount = 0), e.autoHeight && e.isScrolling === !1 && i.prevIsScrolling === !0 && Object.assign(o, { isScrolling: !1 }), Ve({ cellCount: i.prevColumnCount, cellSize: typeof i.prevColumnWidth == "number" ? i.prevColumnWidth : null, computeMetadataCallback: function() {
991
+ return i.columnSizeAndPositionManager.resetCell(0);
992
+ }, computeMetadataCallbackProps: e, nextCellsCount: e.columnCount, nextCellSize: typeof e.columnWidth == "number" ? e.columnWidth : null, nextScrollToIndex: e.scrollToColumn, scrollToIndex: i.prevScrollToColumn, updateScrollOffsetForScrollToIndex: function() {
993
+ r = n._getScrollLeftForScrollToColumnStateUpdate(e, t);
994
+ } }), Ve({ cellCount: i.prevRowCount, cellSize: typeof i.prevRowHeight == "number" ? i.prevRowHeight : null, computeMetadataCallback: function() {
995
+ return i.rowSizeAndPositionManager.resetCell(0);
996
+ }, computeMetadataCallbackProps: e, nextCellsCount: e.rowCount, nextCellSize: typeof e.rowHeight == "number" ? e.rowHeight : null, nextScrollToIndex: e.scrollToRow, scrollToIndex: i.prevScrollToRow, updateScrollOffsetForScrollToIndex: function() {
997
+ l = n._getScrollTopForScrollToRowStateUpdate(e, t);
998
+ } }), i.prevColumnCount = e.columnCount, i.prevColumnWidth = e.columnWidth, i.prevIsScrolling = e.isScrolling === !0, i.prevRowCount = e.rowCount, i.prevRowHeight = e.rowHeight, i.prevScrollToColumn = e.scrollToColumn, i.prevScrollToRow = e.scrollToRow, i.scrollbarSize = e.getScrollbarSize(), i.scrollbarSize === void 0 ? (i.scrollbarSizeMeasured = !1, i.scrollbarSize = 0) : i.scrollbarSizeMeasured = !0, o.instanceProps = i, D(D(D({}, o), r), l);
999
+ } }, { key: "_getEstimatedColumnSize", value: function(e) {
1000
+ return typeof e.columnWidth == "number" ? e.columnWidth : e.estimatedColumnSize;
1001
+ } }, { key: "_getEstimatedRowSize", value: function(e) {
1002
+ return typeof e.rowHeight == "number" ? e.rowHeight : e.estimatedRowSize;
1003
+ } }, { key: "_getScrollToPositionStateUpdate", value: function(e) {
1004
+ var t = e.prevState, o = e.scrollLeft, r = e.scrollTop, l = { scrollPositionChangeReason: Ye };
1005
+ return typeof o == "number" && o >= 0 && (l.scrollDirectionHorizontal = o > t.scrollLeft ? 1 : -1, l.scrollLeft = o), typeof r == "number" && r >= 0 && (l.scrollDirectionVertical = r > t.scrollTop ? 1 : -1, l.scrollTop = r), typeof o == "number" && o >= 0 && o !== t.scrollLeft || typeof r == "number" && r >= 0 && r !== t.scrollTop ? l : {};
1006
+ } }, { key: "_wrapSizeGetter", value: function(e) {
1007
+ return typeof e == "function" ? e : function() {
1008
+ return e;
1009
+ };
1010
+ } }, { key: "_getCalculatedScrollLeft", value: function(e, t) {
1011
+ var o = e.columnCount, r = e.height, l = e.scrollToAlignment, i = e.scrollToColumn, a = e.width, s = t.scrollLeft, c = t.instanceProps;
1012
+ if (o > 0) {
1013
+ var d = o - 1, u = i < 0 ? d : Math.min(d, i), f = c.rowSizeAndPositionManager.getTotalSize(), h = c.scrollbarSizeMeasured && f > r ? c.scrollbarSize : 0;
1014
+ return c.columnSizeAndPositionManager.getUpdatedOffsetForIndex({ align: l, containerSize: a - h, currentOffset: s, targetIndex: u });
1015
+ }
1016
+ return 0;
1017
+ } }, { key: "_getScrollLeftForScrollToColumnStateUpdate", value: function(e, t) {
1018
+ var o = t.scrollLeft, r = n._getCalculatedScrollLeft(e, t);
1019
+ return typeof r == "number" && r >= 0 && o !== r ? n._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: r, scrollTop: -1 }) : {};
1020
+ } }, { key: "_getCalculatedScrollTop", value: function(e, t) {
1021
+ var o = e.height, r = e.rowCount, l = e.scrollToAlignment, i = e.scrollToRow, a = e.width, s = t.scrollTop, c = t.instanceProps;
1022
+ if (r > 0) {
1023
+ var d = r - 1, u = i < 0 ? d : Math.min(d, i), f = c.columnSizeAndPositionManager.getTotalSize(), h = c.scrollbarSizeMeasured && f > a ? c.scrollbarSize : 0;
1024
+ return c.rowSizeAndPositionManager.getUpdatedOffsetForIndex({ align: l, containerSize: o - h, currentOffset: s, targetIndex: u });
1025
+ }
1026
+ return 0;
1027
+ } }, { key: "_getScrollTopForScrollToRowStateUpdate", value: function(e, t) {
1028
+ var o = t.scrollTop, r = n._getCalculatedScrollTop(e, t);
1029
+ return typeof r == "number" && r >= 0 && o !== r ? n._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: -1, scrollTop: r }) : {};
1030
+ } }]);
1031
+ }();
1032
+ p(V, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerWidth: !1, autoHeight: !1, autoWidth: !1, cellRangeRenderer: function(n) {
1033
+ for (var e = n.cellCache, t = n.cellRenderer, o = n.columnSizeAndPositionManager, r = n.columnStartIndex, l = n.columnStopIndex, i = n.deferredMeasurementCache, a = n.horizontalOffsetAdjustment, s = n.isScrolling, c = n.isScrollingOptOut, d = n.parent, u = n.rowSizeAndPositionManager, f = n.rowStartIndex, h = n.rowStopIndex, v = n.styleCache, g = n.verticalOffsetAdjustment, _ = n.visibleColumnIndices, S = n.visibleRowIndices, m = [], y = o.areOffsetsAdjusted() || u.areOffsetsAdjusted(), w = !s && !y, x = f; x <= h; x++) for (var b = u.getSizeAndPositionOfCell(x), z = r; z <= l; z++) {
1034
+ var R = o.getSizeAndPositionOfCell(z), P = z >= _.start && z <= _.stop && x >= S.start && x <= S.stop, k = "".concat(x, "-").concat(z), I = void 0;
1035
+ w && v[k] ? I = v[k] : i && !i.has(x, z) ? I = { height: "auto", left: 0, position: "absolute", top: 0, width: "auto" } : (I = { height: b.size, left: R.offset + a, position: "absolute", top: b.offset + g, width: R.size }, v[k] = I);
1036
+ var A = { columnIndex: z, isScrolling: s, isVisible: P, key: k, parent: d, rowIndex: x, style: I }, E = void 0;
1037
+ !c && !s || a || g ? E = t(A) : (e[k] || (e[k] = t(A)), E = e[k]), E != null && E !== !1 && (E.props.role || (E = mt.cloneElement(E, { role: "gridcell" })), m.push(E));
1038
+ }
1039
+ return m;
1040
+ }, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize: we, noContentRenderer: function() {
1041
+ return null;
1042
+ }, onScroll: function() {
1043
+ }, onScrollbarPresenceChange: function() {
1044
+ }, onSectionRendered: function() {
1045
+ }, overscanColumnCount: 0, overscanIndicesGetter: function(n) {
1046
+ var e = n.cellCount, t = n.overscanCellsCount, o = n.scrollDirection, r = n.startIndex, l = n.stopIndex;
1047
+ return o === 1 ? { overscanStartIndex: Math.max(0, r), overscanStopIndex: Math.min(e - 1, l + t) } : { overscanStartIndex: Math.max(0, r - t), overscanStopIndex: Math.min(e - 1, l) };
1048
+ }, overscanRowCount: 10, role: "grid", scrollingResetTimeInterval: 150, scrollToAlignment: "auto", scrollToColumn: -1, scrollToRow: -1, style: {}, tabIndex: 0, isScrollingOptOut: !1 }), le(V);
1049
+ function Pt(n) {
1050
+ var e = n.cellCount, t = n.overscanCellsCount, o = n.scrollDirection, r = n.startIndex, l = n.stopIndex;
1051
+ return t = Math.max(1, t), o === 1 ? { overscanStartIndex: Math.max(0, r - 1), overscanStopIndex: Math.min(e - 1, l + t) } : { overscanStartIndex: Math.max(0, r - t), overscanStopIndex: Math.min(e - 1, l + 1) };
1052
+ }
1053
+ function Ce(n, e) {
1054
+ (e == null || e > n.length) && (e = n.length);
1055
+ for (var t = 0, o = Array(e); t < e; t++) o[t] = n[t];
1056
+ return o;
1057
+ }
1058
+ function Ot(n, e) {
1059
+ if (n) {
1060
+ if (typeof n == "string") return Ce(n, e);
1061
+ var t = {}.toString.call(n).slice(8, -1);
1062
+ return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Ce(n, e) : void 0;
1063
+ }
1064
+ }
1065
+ function Co(n) {
1066
+ return function(e) {
1067
+ if (Array.isArray(e)) return Ce(e);
1068
+ }(n) || function(e) {
1069
+ if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
1070
+ }(n) || Ot(n) || function() {
1071
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
1072
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1073
+ }();
1074
+ }
1075
+ function kt() {
1076
+ try {
1077
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1078
+ }));
1079
+ } catch {
1080
+ }
1081
+ return (kt = function() {
1082
+ return !!n;
1083
+ })();
1084
+ }
1085
+ var Je = function() {
1086
+ function n(e, t) {
1087
+ var o, r, l, i;
1088
+ return M(this, n), r = this, i = [e, t], l = T(l = n), (o = W(r, kt() ? Reflect.construct(l, i || [], T(r).constructor) : l.apply(r, i)))._loadMoreRowsMemoizer = Y(), o._onRowsRendered = o._onRowsRendered.bind(o), o._registerChild = o._registerChild.bind(o), o;
1089
+ }
1090
+ return H(n, C.PureComponent), L(n, [{ key: "resetLoadMoreRowsCache", value: function(e) {
1091
+ this._loadMoreRowsMemoizer = Y(), e && this._doStuff(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
1092
+ } }, { key: "render", value: function() {
1093
+ return (0, this.props.children)({ onRowsRendered: this._onRowsRendered, registerChild: this._registerChild });
1094
+ } }, { key: "_loadUnloadedRanges", value: function(e) {
1095
+ var t = this, o = this.props.loadMoreRows;
1096
+ e.forEach(function(r) {
1097
+ var l = o(r);
1098
+ l && l.then(function() {
1099
+ var i, a, s, c, d;
1100
+ i = { lastRenderedStartIndex: t._lastRenderedStartIndex, lastRenderedStopIndex: t._lastRenderedStopIndex, startIndex: r.startIndex, stopIndex: r.stopIndex }, a = i.lastRenderedStartIndex, s = i.lastRenderedStopIndex, c = i.startIndex, d = i.stopIndex, c > s || d < a || t._registeredChild && function(u) {
1101
+ var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, h = typeof u.recomputeGridSize == "function" ? u.recomputeGridSize : u.recomputeRowHeights;
1102
+ h ? h.call(u, f) : u.forceUpdate();
1103
+ }(t._registeredChild, t._lastRenderedStartIndex);
1104
+ });
1105
+ });
1106
+ } }, { key: "_onRowsRendered", value: function(e) {
1107
+ var t = e.startIndex, o = e.stopIndex;
1108
+ this._lastRenderedStartIndex = t, this._lastRenderedStopIndex = o, this._doStuff(t, o);
1109
+ } }, { key: "_doStuff", value: function(e, t) {
1110
+ var o, r = this, l = this.props, i = l.isRowLoaded, a = l.minimumBatchSize, s = l.rowCount, c = l.threshold, d = function(f) {
1111
+ for (var h = f.isRowLoaded, v = f.minimumBatchSize, g = f.rowCount, _ = f.startIndex, S = f.stopIndex, m = [], y = null, w = null, x = _; x <= S; x++)
1112
+ h({ index: x }) ? w !== null && (m.push({ startIndex: y, stopIndex: w }), y = w = null) : (w = x, y === null && (y = x));
1113
+ if (w !== null) {
1114
+ for (var b = Math.min(Math.max(w, y + v - 1), g - 1), z = w + 1; z <= b && !h({ index: z }); z++) w = z;
1115
+ m.push({ startIndex: y, stopIndex: w });
1116
+ }
1117
+ if (m.length) for (var R = m[0]; R.stopIndex - R.startIndex + 1 < v && R.startIndex > 0; ) {
1118
+ var P = R.startIndex - 1;
1119
+ if (h({ index: P })) break;
1120
+ R.startIndex = P;
1121
+ }
1122
+ return m;
1123
+ }({ isRowLoaded: i, minimumBatchSize: a, rowCount: s, startIndex: Math.max(0, e - c), stopIndex: Math.min(s - 1, t + c) }), u = (o = []).concat.apply(o, Co(d.map(function(f) {
1124
+ return [f.startIndex, f.stopIndex];
1125
+ })));
1126
+ this._loadMoreRowsMemoizer({ callback: function() {
1127
+ r._loadUnloadedRanges(d);
1128
+ }, indices: { squashedUnloadedRanges: u } });
1129
+ } }, { key: "_registerChild", value: function(e) {
1130
+ this._registeredChild = e;
1131
+ } }]);
1132
+ }();
1133
+ function Mt() {
1134
+ try {
1135
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1136
+ }));
1137
+ } catch {
1138
+ }
1139
+ return (Mt = function() {
1140
+ return !!n;
1141
+ })();
1142
+ }
1143
+ p(Je, "defaultProps", { minimumBatchSize: 10, rowCount: 0, threshold: 15 }), Je.propTypes = {};
1144
+ var xo = function() {
1145
+ function n() {
1146
+ var e, t, o, r;
1147
+ M(this, n);
1148
+ for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
1149
+ return t = this, o = n, r = [].concat(i), o = T(o), p(e = W(t, Mt() ? Reflect.construct(o, r || [], T(t).constructor) : o.apply(t, r)), "Grid", void 0), p(e, "_cellRenderer", function(s) {
1150
+ var c = s.parent, d = s.rowIndex, u = s.style, f = s.isScrolling, h = s.isVisible, v = s.key, g = e.props.rowRenderer, _ = Object.getOwnPropertyDescriptor(u, "width");
1151
+ return _ && _.writable && (u.width = "100%"), g({ index: d, style: u, isScrolling: f, isVisible: h, key: v, parent: c });
1152
+ }), p(e, "_setRef", function(s) {
1153
+ e.Grid = s;
1154
+ }), p(e, "_onScroll", function(s) {
1155
+ var c = s.clientHeight, d = s.scrollHeight, u = s.scrollTop;
1156
+ (0, e.props.onScroll)({ clientHeight: c, scrollHeight: d, scrollTop: u });
1157
+ }), p(e, "_onSectionRendered", function(s) {
1158
+ var c = s.rowOverscanStartIndex, d = s.rowOverscanStopIndex, u = s.rowStartIndex, f = s.rowStopIndex;
1159
+ (0, e.props.onRowsRendered)({ overscanStartIndex: c, overscanStopIndex: d, startIndex: u, stopIndex: f });
1160
+ }), e;
1161
+ }
1162
+ return H(n, C.PureComponent), L(n, [{ key: "forceUpdateGrid", value: function() {
1163
+ this.Grid && this.Grid.forceUpdate();
1164
+ } }, { key: "getOffsetForRow", value: function(e) {
1165
+ var t = e.alignment, o = e.index;
1166
+ return this.Grid ? this.Grid.getOffsetForCell({ alignment: t, rowIndex: o, columnIndex: 0 }).scrollTop : 0;
1167
+ } }, { key: "invalidateCellSizeAfterRender", value: function(e) {
1168
+ var t = e.columnIndex, o = e.rowIndex;
1169
+ this.Grid && this.Grid.invalidateCellSizeAfterRender({ rowIndex: o, columnIndex: t });
1170
+ } }, { key: "measureAllRows", value: function() {
1171
+ this.Grid && this.Grid.measureAllCells();
1172
+ } }, { key: "recomputeGridSize", value: function() {
1173
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, o = t === void 0 ? 0 : t, r = e.rowIndex, l = r === void 0 ? 0 : r;
1174
+ this.Grid && this.Grid.recomputeGridSize({ rowIndex: l, columnIndex: o });
1175
+ } }, { key: "recomputeRowHeights", value: function() {
1176
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1177
+ this.Grid && this.Grid.recomputeGridSize({ rowIndex: e, columnIndex: 0 });
1178
+ } }, { key: "scrollToPosition", value: function() {
1179
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1180
+ this.Grid && this.Grid.scrollToPosition({ scrollTop: e });
1181
+ } }, { key: "scrollToRow", value: function() {
1182
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1183
+ this.Grid && this.Grid.scrollToCell({ columnIndex: 0, rowIndex: e });
1184
+ } }, { key: "render", value: function() {
1185
+ var e = this.props, t = e.className, o = e.noRowsRenderer, r = e.scrollToIndex, l = e.width, i = N("ReactVirtualized__List", t);
1186
+ return C.createElement(V, U({}, this.props, { autoContainerWidth: !0, cellRenderer: this._cellRenderer, className: i, columnWidth: l, columnCount: 1, noContentRenderer: o, onScroll: this._onScroll, onSectionRendered: this._onSectionRendered, ref: this._setRef, scrollToRow: r }));
1187
+ } }]);
1188
+ }();
1189
+ function Ro(n, e) {
1190
+ return function(t) {
1191
+ if (Array.isArray(t)) return t;
1192
+ }(n) || function(t, o) {
1193
+ var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
1194
+ if (r != null) {
1195
+ var l, i, a, s, c = [], d = !0, u = !1;
1196
+ try {
1197
+ if (a = (r = r.call(t)).next, o !== 0) for (; !(d = (l = a.call(r)).done) && (c.push(l.value), c.length !== o); d = !0) ;
1198
+ } catch (f) {
1199
+ u = !0, i = f;
1200
+ } finally {
1201
+ try {
1202
+ if (!d && r.return != null && (s = r.return(), Object(s) !== s)) return;
1203
+ } finally {
1204
+ if (u) throw i;
1205
+ }
1206
+ }
1207
+ return c;
1208
+ }
1209
+ }(n, e) || Ot(n, e) || function() {
1210
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1211
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1212
+ }();
1213
+ }
1214
+ p(xo, "defaultProps", { autoHeight: !1, estimatedRowSize: 30, onScroll: function() {
1215
+ }, noRowsRenderer: function() {
1216
+ return null;
1217
+ }, onRowsRendered: function() {
1218
+ }, overscanIndicesGetter: Pt, overscanRowCount: 10, scrollToAlignment: "auto", scrollToIndex: -1, style: {} });
1219
+ const he = { ge: function(n, e, t, o, r) {
1220
+ return typeof t == "function" ? function(l, i, a, s, c) {
1221
+ for (var d = a + 1; i <= a; ) {
1222
+ var u = i + a >>> 1;
1223
+ c(l[u], s) >= 0 ? (d = u, a = u - 1) : i = u + 1;
1224
+ }
1225
+ return d;
1226
+ }(n, o === void 0 ? 0 : 0 | o, r === void 0 ? n.length - 1 : 0 | r, e, t) : function(l, i, a, s) {
1227
+ for (var c = a + 1; i <= a; ) {
1228
+ var d = i + a >>> 1;
1229
+ l[d] >= s ? (c = d, a = d - 1) : i = d + 1;
1230
+ }
1231
+ return c;
1232
+ }(n, t === void 0 ? 0 : 0 | t, o === void 0 ? n.length - 1 : 0 | o, e);
1233
+ }, gt: function(n, e, t, o, r) {
1234
+ return typeof t == "function" ? function(l, i, a, s, c) {
1235
+ for (var d = a + 1; i <= a; ) {
1236
+ var u = i + a >>> 1;
1237
+ c(l[u], s) > 0 ? (d = u, a = u - 1) : i = u + 1;
1238
+ }
1239
+ return d;
1240
+ }(n, o === void 0 ? 0 : 0 | o, r === void 0 ? n.length - 1 : 0 | r, e, t) : function(l, i, a, s) {
1241
+ for (var c = a + 1; i <= a; ) {
1242
+ var d = i + a >>> 1;
1243
+ l[d] > s ? (c = d, a = d - 1) : i = d + 1;
1244
+ }
1245
+ return c;
1246
+ }(n, t === void 0 ? 0 : 0 | t, o === void 0 ? n.length - 1 : 0 | o, e);
1247
+ }, lt: function(n, e, t, o, r) {
1248
+ return typeof t == "function" ? function(l, i, a, s, c) {
1249
+ for (var d = i - 1; i <= a; ) {
1250
+ var u = i + a >>> 1;
1251
+ c(l[u], s) < 0 ? (d = u, i = u + 1) : a = u - 1;
1252
+ }
1253
+ return d;
1254
+ }(n, o === void 0 ? 0 : 0 | o, r === void 0 ? n.length - 1 : 0 | r, e, t) : function(l, i, a, s) {
1255
+ for (var c = i - 1; i <= a; ) {
1256
+ var d = i + a >>> 1;
1257
+ l[d] < s ? (c = d, i = d + 1) : a = d - 1;
1258
+ }
1259
+ return c;
1260
+ }(n, t === void 0 ? 0 : 0 | t, o === void 0 ? n.length - 1 : 0 | o, e);
1261
+ }, le: function(n, e, t, o, r) {
1262
+ return typeof t == "function" ? function(l, i, a, s, c) {
1263
+ for (var d = i - 1; i <= a; ) {
1264
+ var u = i + a >>> 1;
1265
+ c(l[u], s) <= 0 ? (d = u, i = u + 1) : a = u - 1;
1266
+ }
1267
+ return d;
1268
+ }(n, o === void 0 ? 0 : 0 | o, r === void 0 ? n.length - 1 : 0 | r, e, t) : function(l, i, a, s) {
1269
+ for (var c = i - 1; i <= a; ) {
1270
+ var d = i + a >>> 1;
1271
+ l[d] <= s ? (c = d, i = d + 1) : a = d - 1;
1272
+ }
1273
+ return c;
1274
+ }(n, t === void 0 ? 0 : 0 | t, o === void 0 ? n.length - 1 : 0 | o, e);
1275
+ }, eq: function(n, e, t, o, r) {
1276
+ return typeof t == "function" ? function(l, i, a, s, c) {
1277
+ for (; i <= a; ) {
1278
+ var d = i + a >>> 1, u = c(l[d], s);
1279
+ if (u === 0) return d;
1280
+ u <= 0 ? i = d + 1 : a = d - 1;
1281
+ }
1282
+ return -1;
1283
+ }(n, o === void 0 ? 0 : 0 | o, r === void 0 ? n.length - 1 : 0 | r, e, t) : function(l, i, a, s) {
1284
+ for (; i <= a; ) {
1285
+ var c = i + a >>> 1, d = l[c];
1286
+ if (d === s) return c;
1287
+ d <= s ? i = c + 1 : a = c - 1;
1288
+ }
1289
+ return -1;
1290
+ }(n, t === void 0 ? 0 : 0 | t, o === void 0 ? n.length - 1 : 0 | o, e);
1291
+ } };
1292
+ function Oe(n, e, t, o, r) {
1293
+ this.mid = n, this.left = e, this.right = t, this.leftPoints = o, this.rightPoints = r, this.count = (e ? e.count : 0) + (t ? t.count : 0) + o.length;
1294
+ }
1295
+ var Q = Oe.prototype;
1296
+ function ve(n, e) {
1297
+ n.mid = e.mid, n.left = e.left, n.right = e.right, n.leftPoints = e.leftPoints, n.rightPoints = e.rightPoints, n.count = e.count;
1298
+ }
1299
+ function Lt(n, e) {
1300
+ var t = re(e);
1301
+ n.mid = t.mid, n.left = t.left, n.right = t.right, n.leftPoints = t.leftPoints, n.rightPoints = t.rightPoints, n.count = t.count;
1302
+ }
1303
+ function Ze(n, e) {
1304
+ var t = n.intervals([]);
1305
+ t.push(e), Lt(n, t);
1306
+ }
1307
+ function Qe(n, e) {
1308
+ var t = n.intervals([]), o = t.indexOf(e);
1309
+ return o < 0 ? 0 : (t.splice(o, 1), Lt(n, t), 1);
1310
+ }
1311
+ function et(n, e, t) {
1312
+ for (var o = 0; o < n.length && n[o][0] <= e; ++o) {
1313
+ var r = t(n[o]);
1314
+ if (r) return r;
1315
+ }
1316
+ }
1317
+ function tt(n, e, t) {
1318
+ for (var o = n.length - 1; o >= 0 && n[o][1] >= e; --o) {
1319
+ var r = t(n[o]);
1320
+ if (r) return r;
1321
+ }
1322
+ }
1323
+ function ot(n, e) {
1324
+ for (var t = 0; t < n.length; ++t) {
1325
+ var o = e(n[t]);
1326
+ if (o) return o;
1327
+ }
1328
+ }
1329
+ function bo(n, e) {
1330
+ return n - e;
1331
+ }
1332
+ function xe(n, e) {
1333
+ var t = n[0] - e[0];
1334
+ return t || n[1] - e[1];
1335
+ }
1336
+ function Re(n, e) {
1337
+ var t = n[1] - e[1];
1338
+ return t || n[0] - e[0];
1339
+ }
1340
+ function re(n) {
1341
+ if (n.length === 0) return null;
1342
+ for (var e = [], t = 0; t < n.length; ++t) e.push(n[t][0], n[t][1]);
1343
+ e.sort(bo);
1344
+ var o = e[e.length >> 1], r = [], l = [], i = [];
1345
+ for (t = 0; t < n.length; ++t) {
1346
+ var a = n[t];
1347
+ a[1] < o ? r.push(a) : o < a[0] ? l.push(a) : i.push(a);
1348
+ }
1349
+ var s = i, c = i.slice();
1350
+ return s.sort(xe), c.sort(Re), new Oe(o, re(r), re(l), s, c);
1351
+ }
1352
+ function Gt(n) {
1353
+ this.root = n;
1354
+ }
1355
+ Q.intervals = function(n) {
1356
+ return n.push.apply(n, this.leftPoints), this.left && this.left.intervals(n), this.right && this.right.intervals(n), n;
1357
+ }, Q.insert = function(n) {
1358
+ var e = this.count - this.leftPoints.length;
1359
+ if (this.count += 1, n[1] < this.mid) this.left ? 4 * (this.left.count + 1) > 3 * (e + 1) ? Ze(this, n) : this.left.insert(n) : this.left = re([n]);
1360
+ else if (n[0] > this.mid) this.right ? 4 * (this.right.count + 1) > 3 * (e + 1) ? Ze(this, n) : this.right.insert(n) : this.right = re([n]);
1361
+ else {
1362
+ var t = he.ge(this.leftPoints, n, xe), o = he.ge(this.rightPoints, n, Re);
1363
+ this.leftPoints.splice(t, 0, n), this.rightPoints.splice(o, 0, n);
1364
+ }
1365
+ }, Q.remove = function(n) {
1366
+ var e = this.count - this.leftPoints;
1367
+ if (n[1] < this.mid) return this.left ? 4 * (this.right ? this.right.count : 0) > 3 * (e - 1) ? Qe(this, n) : (l = this.left.remove(n)) === 2 ? (this.left = null, this.count -= 1, 1) : (l === 1 && (this.count -= 1), l) : 0;
1368
+ if (n[0] > this.mid) return this.right ? 4 * (this.left ? this.left.count : 0) > 3 * (e - 1) ? Qe(this, n) : (l = this.right.remove(n)) === 2 ? (this.right = null, this.count -= 1, 1) : (l === 1 && (this.count -= 1), l) : 0;
1369
+ if (this.count === 1) return this.leftPoints[0] === n ? 2 : 0;
1370
+ if (this.leftPoints.length === 1 && this.leftPoints[0] === n) {
1371
+ if (this.left && this.right) {
1372
+ for (var t = this, o = this.left; o.right; ) t = o, o = o.right;
1373
+ if (t === this) o.right = this.right;
1374
+ else {
1375
+ var r = this.left, l = this.right;
1376
+ t.count -= o.count, t.right = o.left, o.left = r, o.right = l;
1377
+ }
1378
+ ve(this, o), this.count = (this.left ? this.left.count : 0) + (this.right ? this.right.count : 0) + this.leftPoints.length;
1379
+ } else this.left ? ve(this, this.left) : ve(this, this.right);
1380
+ return 1;
1381
+ }
1382
+ for (r = he.ge(this.leftPoints, n, xe); r < this.leftPoints.length && this.leftPoints[r][0] === n[0]; ++r) if (this.leftPoints[r] === n) {
1383
+ for (this.count -= 1, this.leftPoints.splice(r, 1), l = he.ge(this.rightPoints, n, Re); l < this.rightPoints.length && this.rightPoints[l][1] === n[1]; ++l) if (this.rightPoints[l] === n) return this.rightPoints.splice(l, 1), 1;
1384
+ }
1385
+ return 0;
1386
+ }, Q.queryPoint = function(n, e) {
1387
+ if (n < this.mid)
1388
+ return this.left && (t = this.left.queryPoint(n, e)) ? t : et(this.leftPoints, n, e);
1389
+ if (n > this.mid) {
1390
+ var t;
1391
+ return this.right && (t = this.right.queryPoint(n, e)) ? t : tt(this.rightPoints, n, e);
1392
+ }
1393
+ return ot(this.leftPoints, e);
1394
+ }, Q.queryInterval = function(n, e, t) {
1395
+ var o;
1396
+ return n < this.mid && this.left && (o = this.left.queryInterval(n, e, t)) || e > this.mid && this.right && (o = this.right.queryInterval(n, e, t)) ? o : e < this.mid ? et(this.leftPoints, e, t) : n > this.mid ? tt(this.rightPoints, n, t) : ot(this.leftPoints, t);
1397
+ };
1398
+ var X = Gt.prototype;
1399
+ X.insert = function(n) {
1400
+ this.root ? this.root.insert(n) : this.root = new Oe(n[0], null, null, [n], [n]);
1401
+ }, X.remove = function(n) {
1402
+ if (this.root) {
1403
+ var e = this.root.remove(n);
1404
+ return e === 2 && (this.root = null), e !== 0;
1405
+ }
1406
+ return !1;
1407
+ }, X.queryPoint = function(n, e) {
1408
+ if (this.root) return this.root.queryPoint(n, e);
1409
+ }, X.queryInterval = function(n, e, t) {
1410
+ if (n <= e && this.root) return this.root.queryInterval(n, e, t);
1411
+ }, Object.defineProperty(X, "count", { get: function() {
1412
+ return this.root ? this.root.count : 0;
1413
+ } }), Object.defineProperty(X, "intervals", { get: function() {
1414
+ return this.root ? this.root.intervals([]) : [];
1415
+ } });
1416
+ var _e = function() {
1417
+ return L(function n() {
1418
+ M(this, n), p(this, "_columnSizeMap", {}), p(this, "_intervalTree", new Gt(null)), p(this, "_leftMap", {});
1419
+ }, [{ key: "estimateTotalHeight", value: function(n, e, t) {
1420
+ var o = n - this.count;
1421
+ return this.tallestColumnSize + Math.ceil(o / e) * t;
1422
+ } }, { key: "range", value: function(n, e, t) {
1423
+ var o = this;
1424
+ this._intervalTree.queryInterval(n, n + e, function(r) {
1425
+ var l = Ro(r, 3), i = l[0];
1426
+ l[1];
1427
+ var a = l[2];
1428
+ return t(a, o._leftMap[a], i);
1429
+ });
1430
+ } }, { key: "setPosition", value: function(n, e, t, o) {
1431
+ this._intervalTree.insert([t, t + o, n]), this._leftMap[n] = e;
1432
+ var r = this._columnSizeMap, l = r[e];
1433
+ r[e] = l === void 0 ? t + o : Math.max(l, t + o);
1434
+ } }, { key: "count", get: function() {
1435
+ return this._intervalTree.count;
1436
+ } }, { key: "shortestColumnSize", get: function() {
1437
+ var n = this._columnSizeMap, e = 0;
1438
+ for (var t in n) {
1439
+ var o = n[t];
1440
+ e = e === 0 ? o : Math.min(e, o);
1441
+ }
1442
+ return e;
1443
+ } }, { key: "tallestColumnSize", get: function() {
1444
+ var n = this._columnSizeMap, e = 0;
1445
+ for (var t in n) {
1446
+ var o = n[t];
1447
+ e = Math.max(e, o);
1448
+ }
1449
+ return e;
1450
+ } }]);
1451
+ }();
1452
+ function nt(n, e) {
1453
+ var t = Object.keys(n);
1454
+ if (Object.getOwnPropertySymbols) {
1455
+ var o = Object.getOwnPropertySymbols(n);
1456
+ e && (o = o.filter(function(r) {
1457
+ return Object.getOwnPropertyDescriptor(n, r).enumerable;
1458
+ })), t.push.apply(t, o);
1459
+ }
1460
+ return t;
1461
+ }
1462
+ function zo(n) {
1463
+ for (var e = 1; e < arguments.length; e++) {
1464
+ var t = arguments[e] != null ? arguments[e] : {};
1465
+ e % 2 ? nt(Object(t), !0).forEach(function(o) {
1466
+ p(n, o, t[o]);
1467
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : nt(Object(t)).forEach(function(o) {
1468
+ Object.defineProperty(n, o, Object.getOwnPropertyDescriptor(t, o));
1469
+ });
1470
+ }
1471
+ return n;
1472
+ }
1473
+ function At() {
1474
+ try {
1475
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1476
+ }));
1477
+ } catch {
1478
+ }
1479
+ return (At = function() {
1480
+ return !!n;
1481
+ })();
1482
+ }
1483
+ var rt = function() {
1484
+ function n() {
1485
+ var e, t, o, r;
1486
+ M(this, n);
1487
+ for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
1488
+ return t = this, o = n, r = [].concat(i), o = T(o), p(e = W(t, At() ? Reflect.construct(o, r || [], T(t).constructor) : o.apply(t, r)), "state", { isScrolling: !1, scrollTop: 0 }), p(e, "_debounceResetIsScrollingId", void 0), p(e, "_invalidateOnUpdateStartIndex", null), p(e, "_invalidateOnUpdateStopIndex", null), p(e, "_positionCache", new _e()), p(e, "_startIndex", null), p(e, "_startIndexMemoized", null), p(e, "_stopIndex", null), p(e, "_stopIndexMemoized", null), p(e, "_debounceResetIsScrollingCallback", function() {
1489
+ e.setState({ isScrolling: !1 });
1490
+ }), p(e, "_setScrollingContainerRef", function(s) {
1491
+ e._scrollingContainer = s;
1492
+ }), p(e, "_onScroll", function(s) {
1493
+ var c = e.props.height, d = s.currentTarget.scrollTop, u = Math.min(Math.max(0, e._getEstimatedTotalHeight() - c), d);
1494
+ d === u && (e._debounceResetIsScrolling(), e.state.scrollTop !== u && e.setState({ isScrolling: !0, scrollTop: u }));
1495
+ }), e;
1496
+ }
1497
+ return H(n, C.PureComponent), L(n, [{ key: "clearCellPositions", value: function() {
1498
+ this._positionCache = new _e(), this.forceUpdate();
1499
+ } }, { key: "invalidateCellSizeAfterRender", value: function(e) {
1500
+ var t = e.rowIndex;
1501
+ this._invalidateOnUpdateStartIndex === null ? (this._invalidateOnUpdateStartIndex = t, this._invalidateOnUpdateStopIndex = t) : (this._invalidateOnUpdateStartIndex = Math.min(this._invalidateOnUpdateStartIndex, t), this._invalidateOnUpdateStopIndex = Math.max(this._invalidateOnUpdateStopIndex, t));
1502
+ } }, { key: "recomputeCellPositions", value: function() {
1503
+ var e = this._positionCache.count - 1;
1504
+ this._positionCache = new _e(), this._populatePositionCache(0, e), this.forceUpdate();
1505
+ } }, { key: "componentDidMount", value: function() {
1506
+ this._checkInvalidateOnUpdate(), this._invokeOnScrollCallback(), this._invokeOnCellsRenderedCallback();
1507
+ } }, { key: "componentDidUpdate", value: function(e, t) {
1508
+ this._checkInvalidateOnUpdate(), this._invokeOnScrollCallback(), this._invokeOnCellsRenderedCallback(), this.props.scrollTop !== e.scrollTop && this._debounceResetIsScrolling();
1509
+ } }, { key: "componentWillUnmount", value: function() {
1510
+ this._debounceResetIsScrollingId && J(this._debounceResetIsScrollingId);
1511
+ } }, { key: "render", value: function() {
1512
+ var e, t = this, o = this.props, r = o.autoHeight, l = o.cellCount, i = o.cellMeasurerCache, a = o.cellRenderer, s = o.className, c = o.height, d = o.id, u = o.keyMapper, f = o.overscanByPixels, h = o.role, v = o.style, g = o.tabIndex, _ = o.width, S = o.rowDirection, m = this.state, y = m.isScrolling, w = m.scrollTop, x = [], b = this._getEstimatedTotalHeight(), z = this._positionCache.shortestColumnSize, R = this._positionCache.count, P = 0;
1513
+ if (this._positionCache.range(Math.max(0, w - f), c + 2 * f, function(A, E, j) {
1514
+ e === void 0 ? (P = A, e = A) : (P = Math.min(P, A), e = Math.max(e, A)), x.push(a({ index: A, isScrolling: y, key: u(A), parent: t, style: p(p(p(p({ height: i.getHeight(A) }, S === "ltr" ? "left" : "right", E), "position", "absolute"), "top", j), "width", i.getWidth(A)) }));
1515
+ }), z < w + c + f && R < l) for (var k = Math.min(l - R, Math.ceil((w + c + f - z) / i.defaultHeight * _ / i.defaultWidth)), I = R; I < R + k; I++) e = I, x.push(a({ index: I, isScrolling: y, key: u(I), parent: this, style: { width: i.getWidth(I) } }));
1516
+ return this._startIndex = P, this._stopIndex = e, C.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Masonry", s), id: d, onScroll: this._onScroll, role: h, style: zo({ boxSizing: "border-box", direction: "ltr", height: r ? "auto" : c, overflowX: "hidden", overflowY: b < c ? "hidden" : "auto", position: "relative", width: _, WebkitOverflowScrolling: "touch", willChange: "transform" }, v), tabIndex: g }, C.createElement("div", { className: "ReactVirtualized__Masonry__innerScrollContainer", style: { width: "100%", height: b, maxWidth: "100%", maxHeight: b, overflow: "hidden", pointerEvents: y ? "none" : "", position: "relative" } }, x));
1517
+ } }, { key: "_checkInvalidateOnUpdate", value: function() {
1518
+ if (typeof this._invalidateOnUpdateStartIndex == "number") {
1519
+ var e = this._invalidateOnUpdateStartIndex, t = this._invalidateOnUpdateStopIndex;
1520
+ this._invalidateOnUpdateStartIndex = null, this._invalidateOnUpdateStopIndex = null, this._populatePositionCache(e, t), this.forceUpdate();
1521
+ }
1522
+ } }, { key: "_debounceResetIsScrolling", value: function() {
1523
+ var e = this.props.scrollingResetTimeInterval;
1524
+ this._debounceResetIsScrollingId && J(this._debounceResetIsScrollingId), this._debounceResetIsScrollingId = Pe(this._debounceResetIsScrollingCallback, e);
1525
+ } }, { key: "_getEstimatedTotalHeight", value: function() {
1526
+ var e = this.props, t = e.cellCount, o = e.cellMeasurerCache, r = e.width, l = Math.max(1, Math.floor(r / o.defaultWidth));
1527
+ return this._positionCache.estimateTotalHeight(t, l, o.defaultHeight);
1528
+ } }, { key: "_invokeOnScrollCallback", value: function() {
1529
+ var e = this.props, t = e.height, o = e.onScroll, r = this.state.scrollTop;
1530
+ this._onScrollMemoized !== r && (o({ clientHeight: t, scrollHeight: this._getEstimatedTotalHeight(), scrollTop: r }), this._onScrollMemoized = r);
1531
+ } }, { key: "_invokeOnCellsRenderedCallback", value: function() {
1532
+ this._startIndexMemoized === this._startIndex && this._stopIndexMemoized === this._stopIndex || ((0, this.props.onCellsRendered)({ startIndex: this._startIndex, stopIndex: this._stopIndex }), this._startIndexMemoized = this._startIndex, this._stopIndexMemoized = this._stopIndex);
1533
+ } }, { key: "_populatePositionCache", value: function(e, t) {
1534
+ for (var o = this.props, r = o.cellMeasurerCache, l = o.cellPositioner, i = e; i <= t; i++) {
1535
+ var a = l(i), s = a.left, c = a.top;
1536
+ this._positionCache.setPosition(i, s, c, r.getHeight(i));
1537
+ }
1538
+ } }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
1539
+ return e.scrollTop !== void 0 && t.scrollTop !== e.scrollTop ? { isScrolling: !0, scrollTop: e.scrollTop } : null;
1540
+ } }]);
1541
+ }();
1542
+ function it() {
1543
+ }
1544
+ p(rt, "defaultProps", { autoHeight: !1, keyMapper: function(n) {
1545
+ return n;
1546
+ }, onCellsRendered: it, onScroll: it, overscanByPixels: 20, role: "grid", scrollingResetTimeInterval: 150, style: {}, tabIndex: 0, rowDirection: "ltr" }), le(rt);
1547
+ var Se = function() {
1548
+ return L(function n() {
1549
+ var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1550
+ M(this, n), p(this, "_cellMeasurerCache", void 0), p(this, "_columnIndexOffset", void 0), p(this, "_rowIndexOffset", void 0), p(this, "columnWidth", function(s) {
1551
+ var c = s.index;
1552
+ e._cellMeasurerCache.columnWidth({ index: c + e._columnIndexOffset });
1553
+ }), p(this, "rowHeight", function(s) {
1554
+ var c = s.index;
1555
+ e._cellMeasurerCache.rowHeight({ index: c + e._rowIndexOffset });
1556
+ });
1557
+ var o = t.cellMeasurerCache, r = t.columnIndexOffset, l = r === void 0 ? 0 : r, i = t.rowIndexOffset, a = i === void 0 ? 0 : i;
1558
+ this._cellMeasurerCache = o, this._columnIndexOffset = l, this._rowIndexOffset = a;
1559
+ }, [{ key: "clear", value: function(n, e) {
1560
+ this._cellMeasurerCache.clear(n + this._rowIndexOffset, e + this._columnIndexOffset);
1561
+ } }, { key: "clearAll", value: function() {
1562
+ this._cellMeasurerCache.clearAll();
1563
+ } }, { key: "defaultHeight", get: function() {
1564
+ return this._cellMeasurerCache.defaultHeight;
1565
+ } }, { key: "defaultWidth", get: function() {
1566
+ return this._cellMeasurerCache.defaultWidth;
1567
+ } }, { key: "hasFixedHeight", value: function() {
1568
+ return this._cellMeasurerCache.hasFixedHeight();
1569
+ } }, { key: "hasFixedWidth", value: function() {
1570
+ return this._cellMeasurerCache.hasFixedWidth();
1571
+ } }, { key: "getHeight", value: function(n) {
1572
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1573
+ return this._cellMeasurerCache.getHeight(n + this._rowIndexOffset, e + this._columnIndexOffset);
1574
+ } }, { key: "getWidth", value: function(n) {
1575
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1576
+ return this._cellMeasurerCache.getWidth(n + this._rowIndexOffset, e + this._columnIndexOffset);
1577
+ } }, { key: "has", value: function(n) {
1578
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1579
+ return this._cellMeasurerCache.has(n + this._rowIndexOffset, e + this._columnIndexOffset);
1580
+ } }, { key: "set", value: function(n, e, t, o) {
1581
+ this._cellMeasurerCache.set(n + this._rowIndexOffset, e + this._columnIndexOffset, t, o);
1582
+ } }]);
1583
+ }(), To = ["rowIndex"], Io = ["columnIndex", "rowIndex"], Po = ["columnIndex"], Oo = ["onScroll", "onSectionRendered", "onScrollbarPresenceChange", "scrollLeft", "scrollToColumn", "scrollTop", "scrollToRow"];
1584
+ function lt(n, e) {
1585
+ var t = Object.keys(n);
1586
+ if (Object.getOwnPropertySymbols) {
1587
+ var o = Object.getOwnPropertySymbols(n);
1588
+ e && (o = o.filter(function(r) {
1589
+ return Object.getOwnPropertyDescriptor(n, r).enumerable;
1590
+ })), t.push.apply(t, o);
1591
+ }
1592
+ return t;
1593
+ }
1594
+ function O(n) {
1595
+ for (var e = 1; e < arguments.length; e++) {
1596
+ var t = arguments[e] != null ? arguments[e] : {};
1597
+ e % 2 ? lt(Object(t), !0).forEach(function(o) {
1598
+ p(n, o, t[o]);
1599
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : lt(Object(t)).forEach(function(o) {
1600
+ Object.defineProperty(n, o, Object.getOwnPropertyDescriptor(t, o));
1601
+ });
1602
+ }
1603
+ return n;
1604
+ }
1605
+ function Et() {
1606
+ try {
1607
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1608
+ }));
1609
+ } catch {
1610
+ }
1611
+ return (Et = function() {
1612
+ return !!n;
1613
+ })();
1614
+ }
1615
+ var ye = function() {
1616
+ function n(e, t) {
1617
+ var o, r, l, i;
1618
+ M(this, n), r = this, i = [e, t], l = T(l = n), p(o = W(r, Et() ? Reflect.construct(l, i || [], T(r).constructor) : l.apply(r, i)), "state", { scrollLeft: 0, scrollTop: 0, scrollbarSize: 0, showHorizontalScrollbar: !1, showVerticalScrollbar: !1 }), p(o, "_deferredInvalidateColumnIndex", null), p(o, "_deferredInvalidateRowIndex", null), p(o, "_bottomLeftGridRef", function(d) {
1619
+ o._bottomLeftGrid = d;
1620
+ }), p(o, "_bottomRightGridRef", function(d) {
1621
+ o._bottomRightGrid = d;
1622
+ }), p(o, "_cellRendererBottomLeftGrid", function(d) {
1623
+ var u = d.rowIndex, f = ee(d, To), h = o.props, v = h.cellRenderer, g = h.fixedRowCount;
1624
+ return u === h.rowCount - g ? C.createElement("div", { key: f.key, style: O(O({}, f.style), {}, { height: 20 }) }) : v(O(O({}, f), {}, { parent: o, rowIndex: u + g }));
1625
+ }), p(o, "_cellRendererBottomRightGrid", function(d) {
1626
+ var u = d.columnIndex, f = d.rowIndex, h = ee(d, Io), v = o.props, g = v.cellRenderer, _ = v.fixedColumnCount, S = v.fixedRowCount;
1627
+ return g(O(O({}, h), {}, { columnIndex: u + _, parent: o, rowIndex: f + S }));
1628
+ }), p(o, "_cellRendererTopRightGrid", function(d) {
1629
+ var u = d.columnIndex, f = ee(d, Po), h = o.props, v = h.cellRenderer, g = h.columnCount, _ = h.fixedColumnCount;
1630
+ return u === g - _ ? C.createElement("div", { key: f.key, style: O(O({}, f.style), {}, { width: 20 }) }) : v(O(O({}, f), {}, { columnIndex: u + _, parent: o }));
1631
+ }), p(o, "_columnWidthRightGrid", function(d) {
1632
+ var u = d.index, f = o.props, h = f.columnCount, v = f.fixedColumnCount, g = f.columnWidth, _ = o.state, S = _.scrollbarSize;
1633
+ return _.showHorizontalScrollbar && u === h - v ? S : typeof g == "function" ? g({ index: u + v }) : g;
1634
+ }), p(o, "_onScroll", function(d) {
1635
+ var u = d.scrollLeft, f = d.scrollTop;
1636
+ o.setState({ scrollLeft: u, scrollTop: f });
1637
+ var h = o.props.onScroll;
1638
+ h && h(d);
1639
+ }), p(o, "_onScrollbarPresenceChange", function(d) {
1640
+ var u = d.horizontal, f = d.size, h = d.vertical, v = o.state, g = v.showHorizontalScrollbar, _ = v.showVerticalScrollbar;
1641
+ if (u !== g || h !== _) {
1642
+ o.setState({ scrollbarSize: f, showHorizontalScrollbar: u, showVerticalScrollbar: h });
1643
+ var S = o.props.onScrollbarPresenceChange;
1644
+ typeof S == "function" && S({ horizontal: u, size: f, vertical: h });
1645
+ }
1646
+ }), p(o, "_onScrollLeft", function(d) {
1647
+ var u = d.scrollLeft;
1648
+ o._onScroll({ scrollLeft: u, scrollTop: o.state.scrollTop });
1649
+ }), p(o, "_onScrollTop", function(d) {
1650
+ var u = d.scrollTop;
1651
+ o._onScroll({ scrollTop: u, scrollLeft: o.state.scrollLeft });
1652
+ }), p(o, "_rowHeightBottomGrid", function(d) {
1653
+ var u = d.index, f = o.props, h = f.fixedRowCount, v = f.rowCount, g = f.rowHeight, _ = o.state, S = _.scrollbarSize;
1654
+ return _.showVerticalScrollbar && u === v - h ? S : typeof g == "function" ? g({ index: u + h }) : g;
1655
+ }), p(o, "_topLeftGridRef", function(d) {
1656
+ o._topLeftGrid = d;
1657
+ }), p(o, "_topRightGridRef", function(d) {
1658
+ o._topRightGrid = d;
1659
+ });
1660
+ var a = e.deferredMeasurementCache, s = e.fixedColumnCount, c = e.fixedRowCount;
1661
+ return o._maybeCalculateCachedStyles(!0), a && (o._deferredMeasurementCacheBottomLeftGrid = c > 0 ? new Se({ cellMeasurerCache: a, columnIndexOffset: 0, rowIndexOffset: c }) : a, o._deferredMeasurementCacheBottomRightGrid = s > 0 || c > 0 ? new Se({ cellMeasurerCache: a, columnIndexOffset: s, rowIndexOffset: c }) : a, o._deferredMeasurementCacheTopRightGrid = s > 0 ? new Se({ cellMeasurerCache: a, columnIndexOffset: s, rowIndexOffset: 0 }) : a), o;
1662
+ }
1663
+ return H(n, C.PureComponent), L(n, [{ key: "forceUpdateGrids", value: function() {
1664
+ this._bottomLeftGrid && this._bottomLeftGrid.forceUpdate(), this._bottomRightGrid && this._bottomRightGrid.forceUpdate(), this._topLeftGrid && this._topLeftGrid.forceUpdate(), this._topRightGrid && this._topRightGrid.forceUpdate();
1665
+ } }, { key: "invalidateCellSizeAfterRender", value: function() {
1666
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, o = t === void 0 ? 0 : t, r = e.rowIndex, l = r === void 0 ? 0 : r;
1667
+ this._deferredInvalidateColumnIndex = typeof this._deferredInvalidateColumnIndex == "number" ? Math.min(this._deferredInvalidateColumnIndex, o) : o, this._deferredInvalidateRowIndex = typeof this._deferredInvalidateRowIndex == "number" ? Math.min(this._deferredInvalidateRowIndex, l) : l;
1668
+ } }, { key: "measureAllCells", value: function() {
1669
+ this._bottomLeftGrid && this._bottomLeftGrid.measureAllCells(), this._bottomRightGrid && this._bottomRightGrid.measureAllCells(), this._topLeftGrid && this._topLeftGrid.measureAllCells(), this._topRightGrid && this._topRightGrid.measureAllCells();
1670
+ } }, { key: "recomputeGridSize", value: function() {
1671
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, o = t === void 0 ? 0 : t, r = e.rowIndex, l = r === void 0 ? 0 : r, i = this.props, a = i.fixedColumnCount, s = i.fixedRowCount, c = Math.max(0, o - a), d = Math.max(0, l - s);
1672
+ this._bottomLeftGrid && this._bottomLeftGrid.recomputeGridSize({ columnIndex: o, rowIndex: d }), this._bottomRightGrid && this._bottomRightGrid.recomputeGridSize({ columnIndex: c, rowIndex: d }), this._topLeftGrid && this._topLeftGrid.recomputeGridSize({ columnIndex: o, rowIndex: l }), this._topRightGrid && this._topRightGrid.recomputeGridSize({ columnIndex: c, rowIndex: l }), this._leftGridWidth = null, this._topGridHeight = null, this._maybeCalculateCachedStyles(!0);
1673
+ } }, { key: "componentDidMount", value: function() {
1674
+ var e = this.props, t = e.scrollLeft, o = e.scrollTop;
1675
+ if (t > 0 || o > 0) {
1676
+ var r = {};
1677
+ t > 0 && (r.scrollLeft = t), o > 0 && (r.scrollTop = o), this.setState(r);
1678
+ }
1679
+ this._handleInvalidatedGridSize();
1680
+ } }, { key: "componentDidUpdate", value: function() {
1681
+ this._handleInvalidatedGridSize();
1682
+ } }, { key: "render", value: function() {
1683
+ var e = this.props, t = e.onScroll, o = e.onSectionRendered;
1684
+ e.onScrollbarPresenceChange, e.scrollLeft;
1685
+ var r = e.scrollToColumn;
1686
+ e.scrollTop;
1687
+ var l = e.scrollToRow, i = ee(e, Oo);
1688
+ if (this._prepareForRender(), this.props.width === 0 || this.props.height === 0) return null;
1689
+ var a = this.state, s = a.scrollLeft, c = a.scrollTop;
1690
+ return C.createElement("div", { style: this._containerOuterStyle }, C.createElement("div", { style: this._containerTopStyle }, this._renderTopLeftGrid(i), this._renderTopRightGrid(O(O({}, i), {}, { onScroll: t, scrollLeft: s }))), C.createElement("div", { style: this._containerBottomStyle }, this._renderBottomLeftGrid(O(O({}, i), {}, { onScroll: t, scrollTop: c })), this._renderBottomRightGrid(O(O({}, i), {}, { onScroll: t, onSectionRendered: o, scrollLeft: s, scrollToColumn: r, scrollToRow: l, scrollTop: c }))));
1691
+ } }, { key: "_getBottomGridHeight", value: function(e) {
1692
+ return e.height - this._getTopGridHeight(e);
1693
+ } }, { key: "_getLeftGridWidth", value: function(e) {
1694
+ var t = e.fixedColumnCount, o = e.columnWidth;
1695
+ if (this._leftGridWidth == null) if (typeof o == "function") {
1696
+ for (var r = 0, l = 0; l < t; l++) r += o({ index: l });
1697
+ this._leftGridWidth = r;
1698
+ } else this._leftGridWidth = o * t;
1699
+ return this._leftGridWidth;
1700
+ } }, { key: "_getRightGridWidth", value: function(e) {
1701
+ return e.width - this._getLeftGridWidth(e);
1702
+ } }, { key: "_getTopGridHeight", value: function(e) {
1703
+ var t = e.fixedRowCount, o = e.rowHeight;
1704
+ if (this._topGridHeight == null) if (typeof o == "function") {
1705
+ for (var r = 0, l = 0; l < t; l++) r += o({ index: l });
1706
+ this._topGridHeight = r;
1707
+ } else this._topGridHeight = o * t;
1708
+ return this._topGridHeight;
1709
+ } }, { key: "_handleInvalidatedGridSize", value: function() {
1710
+ if (typeof this._deferredInvalidateColumnIndex == "number") {
1711
+ var e = this._deferredInvalidateColumnIndex, t = this._deferredInvalidateRowIndex;
1712
+ this._deferredInvalidateColumnIndex = null, this._deferredInvalidateRowIndex = null, this.recomputeGridSize({ columnIndex: e, rowIndex: t }), this.forceUpdate();
1713
+ }
1714
+ } }, { key: "_maybeCalculateCachedStyles", value: function(e) {
1715
+ var t = this.props, o = t.columnWidth, r = t.enableFixedColumnScroll, l = t.enableFixedRowScroll, i = t.height, a = t.fixedColumnCount, s = t.fixedRowCount, c = t.rowHeight, d = t.style, u = t.styleBottomLeftGrid, f = t.styleBottomRightGrid, h = t.styleTopLeftGrid, v = t.styleTopRightGrid, g = t.width, _ = e || i !== this._lastRenderedHeight || g !== this._lastRenderedWidth, S = e || o !== this._lastRenderedColumnWidth || a !== this._lastRenderedFixedColumnCount, m = e || s !== this._lastRenderedFixedRowCount || c !== this._lastRenderedRowHeight;
1716
+ (e || _ || d !== this._lastRenderedStyle) && (this._containerOuterStyle = O({ height: i, overflow: "visible", width: g }, d)), (e || _ || m) && (this._containerTopStyle = { height: this._getTopGridHeight(this.props), position: "relative", width: g }, this._containerBottomStyle = { height: i - this._getTopGridHeight(this.props), overflow: "visible", position: "relative", width: g }), (e || u !== this._lastRenderedStyleBottomLeftGrid) && (this._bottomLeftGridStyle = O({ left: 0, overflowX: "hidden", overflowY: r ? "auto" : "hidden", position: "absolute" }, u)), (e || S || f !== this._lastRenderedStyleBottomRightGrid) && (this._bottomRightGridStyle = O({ left: this._getLeftGridWidth(this.props), position: "absolute" }, f)), (e || h !== this._lastRenderedStyleTopLeftGrid) && (this._topLeftGridStyle = O({ left: 0, overflowX: "hidden", overflowY: "hidden", position: "absolute", top: 0 }, h)), (e || S || v !== this._lastRenderedStyleTopRightGrid) && (this._topRightGridStyle = O({ left: this._getLeftGridWidth(this.props), overflowX: l ? "auto" : "hidden", overflowY: "hidden", position: "absolute", top: 0 }, v)), this._lastRenderedColumnWidth = o, this._lastRenderedFixedColumnCount = a, this._lastRenderedFixedRowCount = s, this._lastRenderedHeight = i, this._lastRenderedRowHeight = c, this._lastRenderedStyle = d, this._lastRenderedStyleBottomLeftGrid = u, this._lastRenderedStyleBottomRightGrid = f, this._lastRenderedStyleTopLeftGrid = h, this._lastRenderedStyleTopRightGrid = v, this._lastRenderedWidth = g;
1717
+ } }, { key: "_prepareForRender", value: function() {
1718
+ this._lastRenderedColumnWidth === this.props.columnWidth && this._lastRenderedFixedColumnCount === this.props.fixedColumnCount || (this._leftGridWidth = null), this._lastRenderedFixedRowCount === this.props.fixedRowCount && this._lastRenderedRowHeight === this.props.rowHeight || (this._topGridHeight = null), this._maybeCalculateCachedStyles(), this._lastRenderedColumnWidth = this.props.columnWidth, this._lastRenderedFixedColumnCount = this.props.fixedColumnCount, this._lastRenderedFixedRowCount = this.props.fixedRowCount, this._lastRenderedRowHeight = this.props.rowHeight;
1719
+ } }, { key: "_renderBottomLeftGrid", value: function(e) {
1720
+ var t = e.enableFixedColumnScroll, o = e.fixedColumnCount, r = e.fixedRowCount, l = e.rowCount, i = e.hideBottomLeftGridScrollbar, a = this.state.showVerticalScrollbar;
1721
+ if (!o) return null;
1722
+ var s = a ? 1 : 0, c = this._getBottomGridHeight(e), d = this._getLeftGridWidth(e), u = this.state.showVerticalScrollbar ? this.state.scrollbarSize : 0, f = i ? d + u : d, h = C.createElement(V, U({}, e, { cellRenderer: this._cellRendererBottomLeftGrid, className: this.props.classNameBottomLeftGrid, columnCount: o, deferredMeasurementCache: this._deferredMeasurementCacheBottomLeftGrid, height: c, onScroll: t ? this._onScrollTop : void 0, ref: this._bottomLeftGridRef, rowCount: Math.max(0, l - r) + s, rowHeight: this._rowHeightBottomGrid, style: this._bottomLeftGridStyle, tabIndex: null, width: f }));
1723
+ return i ? C.createElement("div", { className: "BottomLeftGrid_ScrollWrapper", style: O(O({}, this._bottomLeftGridStyle), {}, { height: c, width: d, overflowY: "hidden" }) }, h) : h;
1724
+ } }, { key: "_renderBottomRightGrid", value: function(e) {
1725
+ var t = e.columnCount, o = e.fixedColumnCount, r = e.fixedRowCount, l = e.rowCount, i = e.scrollToColumn, a = e.scrollToRow;
1726
+ return C.createElement(V, U({}, e, { cellRenderer: this._cellRendererBottomRightGrid, className: this.props.classNameBottomRightGrid, columnCount: Math.max(0, t - o), columnWidth: this._columnWidthRightGrid, deferredMeasurementCache: this._deferredMeasurementCacheBottomRightGrid, height: this._getBottomGridHeight(e), onScroll: this._onScroll, onScrollbarPresenceChange: this._onScrollbarPresenceChange, ref: this._bottomRightGridRef, rowCount: Math.max(0, l - r), rowHeight: this._rowHeightBottomGrid, scrollToColumn: i - o, scrollToRow: a - r, style: this._bottomRightGridStyle, width: this._getRightGridWidth(e) }));
1727
+ } }, { key: "_renderTopLeftGrid", value: function(e) {
1728
+ var t = e.fixedColumnCount, o = e.fixedRowCount;
1729
+ return t && o ? C.createElement(V, U({}, e, { className: this.props.classNameTopLeftGrid, columnCount: t, height: this._getTopGridHeight(e), ref: this._topLeftGridRef, rowCount: o, style: this._topLeftGridStyle, tabIndex: null, width: this._getLeftGridWidth(e) })) : null;
1730
+ } }, { key: "_renderTopRightGrid", value: function(e) {
1731
+ var t = e.columnCount, o = e.enableFixedRowScroll, r = e.fixedColumnCount, l = e.fixedRowCount, i = e.scrollLeft, a = e.hideTopRightGridScrollbar, s = this.state, c = s.showHorizontalScrollbar, d = s.scrollbarSize;
1732
+ if (!l) return null;
1733
+ var u = c ? 1 : 0, f = this._getTopGridHeight(e), h = this._getRightGridWidth(e), v = c ? d : 0, g = f, _ = this._topRightGridStyle;
1734
+ a && (g = f + v, _ = O(O({}, this._topRightGridStyle), {}, { left: 0 }));
1735
+ var S = C.createElement(V, U({}, e, { cellRenderer: this._cellRendererTopRightGrid, className: this.props.classNameTopRightGrid, columnCount: Math.max(0, t - r) + u, columnWidth: this._columnWidthRightGrid, deferredMeasurementCache: this._deferredMeasurementCacheTopRightGrid, height: g, onScroll: o ? this._onScrollLeft : void 0, ref: this._topRightGridRef, rowCount: l, scrollLeft: i, style: _, tabIndex: null, width: h }));
1736
+ return a ? C.createElement("div", { className: "TopRightGrid_ScrollWrapper", style: O(O({}, this._topRightGridStyle), {}, { height: f, width: h, overflowX: "hidden" }) }, S) : S;
1737
+ } }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
1738
+ return e.scrollLeft !== t.scrollLeft || e.scrollTop !== t.scrollTop ? { scrollLeft: e.scrollLeft != null && e.scrollLeft >= 0 ? e.scrollLeft : t.scrollLeft, scrollTop: e.scrollTop != null && e.scrollTop >= 0 ? e.scrollTop : t.scrollTop } : null;
1739
+ } }]);
1740
+ }();
1741
+ function Wt() {
1742
+ try {
1743
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1744
+ }));
1745
+ } catch {
1746
+ }
1747
+ return (Wt = function() {
1748
+ return !!n;
1749
+ })();
1750
+ }
1751
+ p(ye, "defaultProps", { classNameBottomLeftGrid: "", classNameBottomRightGrid: "", classNameTopLeftGrid: "", classNameTopRightGrid: "", enableFixedColumnScroll: !1, enableFixedRowScroll: !1, fixedColumnCount: 0, fixedRowCount: 0, scrollToColumn: -1, scrollToRow: -1, style: {}, styleBottomLeftGrid: {}, styleBottomRightGrid: {}, styleTopLeftGrid: {}, styleTopRightGrid: {}, hideTopRightGridScrollbar: !1, hideBottomLeftGridScrollbar: !1 }), ye.propTypes = {}, le(ye), function() {
1752
+ function n(e, t) {
1753
+ var o, r, l, i;
1754
+ return M(this, n), r = this, i = [e, t], l = T(l = n), (o = W(r, Wt() ? Reflect.construct(l, i || [], T(r).constructor) : l.apply(r, i))).state = { clientHeight: 0, clientWidth: 0, scrollHeight: 0, scrollLeft: 0, scrollTop: 0, scrollWidth: 0 }, o._onScroll = o._onScroll.bind(o), o;
1755
+ }
1756
+ return H(n, C.PureComponent), L(n, [{ key: "render", value: function() {
1757
+ var e = this.props.children, t = this.state, o = t.clientHeight, r = t.clientWidth, l = t.scrollHeight, i = t.scrollLeft, a = t.scrollTop, s = t.scrollWidth;
1758
+ return e({ clientHeight: o, clientWidth: r, onScroll: this._onScroll, scrollHeight: l, scrollLeft: i, scrollTop: a, scrollWidth: s });
1759
+ } }, { key: "_onScroll", value: function(e) {
1760
+ var t = e.clientHeight, o = e.clientWidth, r = e.scrollHeight, l = e.scrollLeft, i = e.scrollTop, a = e.scrollWidth;
1761
+ this.setState({ clientHeight: t, clientWidth: o, scrollHeight: r, scrollLeft: l, scrollTop: i, scrollWidth: a });
1762
+ } }]);
1763
+ }().propTypes = {};
1764
+ var ie = "ASC", be = "DESC";
1765
+ function Ht(n) {
1766
+ var e = n.sortDirection, t = N("ReactVirtualized__Table__sortableHeaderIcon", { "ReactVirtualized__Table__sortableHeaderIcon--ASC": e === ie, "ReactVirtualized__Table__sortableHeaderIcon--DESC": e === be });
1767
+ return C.createElement("svg", { className: t, width: 18, height: 18, viewBox: "0 0 24 24" }, e === ie ? C.createElement("path", { d: "M7 14l5-5 5 5z" }) : C.createElement("path", { d: "M7 10l5 5 5-5z" }), C.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }));
1768
+ }
1769
+ function Dt() {
1770
+ try {
1771
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1772
+ }));
1773
+ } catch {
1774
+ }
1775
+ return (Dt = function() {
1776
+ return !!n;
1777
+ })();
1778
+ }
1779
+ Ht.propTypes = {};
1780
+ var pe = function() {
1781
+ function n() {
1782
+ return M(this, n), e = this, o = arguments, t = T(t = n), W(e, Dt() ? Reflect.construct(t, o || [], T(e).constructor) : t.apply(e, o));
1783
+ var e, t, o;
1784
+ }
1785
+ return H(n, C.Component), L(n);
1786
+ }();
1787
+ function st(n, e) {
1788
+ var t = Object.keys(n);
1789
+ if (Object.getOwnPropertySymbols) {
1790
+ var o = Object.getOwnPropertySymbols(n);
1791
+ e && (o = o.filter(function(r) {
1792
+ return Object.getOwnPropertyDescriptor(n, r).enumerable;
1793
+ })), t.push.apply(t, o);
1794
+ }
1795
+ return t;
1796
+ }
1797
+ function B(n) {
1798
+ for (var e = 1; e < arguments.length; e++) {
1799
+ var t = arguments[e] != null ? arguments[e] : {};
1800
+ e % 2 ? st(Object(t), !0).forEach(function(o) {
1801
+ p(n, o, t[o]);
1802
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : st(Object(t)).forEach(function(o) {
1803
+ Object.defineProperty(n, o, Object.getOwnPropertyDescriptor(t, o));
1804
+ });
1805
+ }
1806
+ return n;
1807
+ }
1808
+ function jt() {
1809
+ try {
1810
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1811
+ }));
1812
+ } catch {
1813
+ }
1814
+ return (jt = function() {
1815
+ return !!n;
1816
+ })();
1817
+ }
1818
+ p(pe, "defaultProps", { cellDataGetter: function(n) {
1819
+ var e = n.dataKey, t = n.rowData;
1820
+ return typeof t.get == "function" ? t.get(e) : t[e];
1821
+ }, cellRenderer: function(n) {
1822
+ var e = n.cellData;
1823
+ return e == null ? "" : String(e);
1824
+ }, defaultSortDirection: ie, flexGrow: 0, flexShrink: 1, headerRenderer: function(n) {
1825
+ var e = n.dataKey, t = n.label, o = n.sortBy, r = n.sortDirection, l = o === e, i = [C.createElement("span", { className: "ReactVirtualized__Table__headerTruncatedText", key: "label", title: typeof t == "string" ? t : null }, t)];
1826
+ return l && i.push(C.createElement(Ht, { key: "SortIndicator", sortDirection: r })), i;
1827
+ }, style: {} }), pe.propTypes = {};
1828
+ var ze = function() {
1829
+ function n(e) {
1830
+ var t, o, r, l;
1831
+ return M(this, n), o = this, l = [e], r = T(r = n), (t = W(o, jt() ? Reflect.construct(r, l || [], T(o).constructor) : r.apply(o, l))).state = { scrollbarWidth: 0 }, t._createColumn = t._createColumn.bind(t), t._createRow = t._createRow.bind(t), t._onScroll = t._onScroll.bind(t), t._onSectionRendered = t._onSectionRendered.bind(t), t._setRef = t._setRef.bind(t), t._setGridElementRef = t._setGridElementRef.bind(t), t;
1832
+ }
1833
+ return H(n, C.PureComponent), L(n, [{ key: "forceUpdateGrid", value: function() {
1834
+ this.Grid && this.Grid.forceUpdate();
1835
+ } }, { key: "getOffsetForRow", value: function(e) {
1836
+ var t = e.alignment, o = e.index;
1837
+ return this.Grid ? this.Grid.getOffsetForCell({ alignment: t, rowIndex: o }).scrollTop : 0;
1838
+ } }, { key: "invalidateCellSizeAfterRender", value: function(e) {
1839
+ var t = e.columnIndex, o = e.rowIndex;
1840
+ this.Grid && this.Grid.invalidateCellSizeAfterRender({ rowIndex: o, columnIndex: t });
1841
+ } }, { key: "measureAllRows", value: function() {
1842
+ this.Grid && this.Grid.measureAllCells();
1843
+ } }, { key: "recomputeGridSize", value: function() {
1844
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, o = t === void 0 ? 0 : t, r = e.rowIndex, l = r === void 0 ? 0 : r;
1845
+ this.Grid && this.Grid.recomputeGridSize({ rowIndex: l, columnIndex: o });
1846
+ } }, { key: "recomputeRowHeights", value: function() {
1847
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1848
+ this.Grid && this.Grid.recomputeGridSize({ rowIndex: e });
1849
+ } }, { key: "scrollToPosition", value: function() {
1850
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1851
+ this.Grid && this.Grid.scrollToPosition({ scrollTop: e });
1852
+ } }, { key: "scrollToRow", value: function() {
1853
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1854
+ this.Grid && this.Grid.scrollToCell({ columnIndex: 0, rowIndex: e });
1855
+ } }, { key: "getScrollbarWidth", value: function() {
1856
+ if (this.GridElement) {
1857
+ var e = this.GridElement, t = e.clientWidth || 0;
1858
+ return (e.offsetWidth || 0) - t;
1859
+ }
1860
+ return 0;
1861
+ } }, { key: "componentDidMount", value: function() {
1862
+ this._setScrollbarWidth();
1863
+ } }, { key: "componentDidUpdate", value: function() {
1864
+ this._setScrollbarWidth();
1865
+ } }, { key: "render", value: function() {
1866
+ var e = this, t = this.props, o = t.children, r = t.className, l = t.disableHeader, i = t.gridClassName, a = t.gridStyle, s = t.headerHeight, c = t.headerRowRenderer, d = t.height, u = t.id, f = t.noRowsRenderer, h = t.rowClassName, v = t.rowStyle, g = t.scrollToIndex, _ = t.style, S = t.width, m = this.state.scrollbarWidth, y = l ? d : d - s, w = typeof h == "function" ? h({ index: -1 }) : h, x = typeof v == "function" ? v({ index: -1 }) : v;
1867
+ return this._cachedColumnStyles = [], C.Children.toArray(o).forEach(function(b, z) {
1868
+ var R = e._getFlexStyleForColumn(b, b.props.style || pe.defaultProps.style);
1869
+ e._cachedColumnStyles[z] = B({ overflow: "hidden" }, R);
1870
+ }), C.createElement("div", { "aria-label": this.props["aria-label"], "aria-labelledby": this.props["aria-labelledby"], "aria-colcount": C.Children.toArray(o).length, "aria-rowcount": this.props.rowCount, className: N("ReactVirtualized__Table", r), id: u, role: "grid", style: _ }, !l && c({ className: N("ReactVirtualized__Table__headerRow", w), columns: this._getHeaderColumns(), style: B({ height: s, overflow: "hidden", paddingRight: m, width: S }, x) }), C.createElement(V, U({}, this.props, { elementRef: this._setGridElementRef, "aria-readonly": null, autoContainerWidth: !0, className: N("ReactVirtualized__Table__Grid", i), cellRenderer: this._createRow, columnWidth: S, columnCount: 1, height: y, id: void 0, noContentRenderer: f, onScroll: this._onScroll, onSectionRendered: this._onSectionRendered, ref: this._setRef, role: "rowgroup", scrollbarWidth: m, scrollToRow: g, style: B(B({}, a), {}, { overflowX: "hidden" }) })));
1871
+ } }, { key: "_createColumn", value: function(e) {
1872
+ var t = e.column, o = e.columnIndex, r = e.isScrolling, l = e.parent, i = e.rowData, a = e.rowIndex, s = this.props.onColumnClick, c = t.props, d = c.cellDataGetter, u = c.cellRenderer, f = c.className, h = c.columnData, v = c.dataKey, g = c.id, _ = u({ cellData: d({ columnData: h, dataKey: v, rowData: i }), columnData: h, columnIndex: o, dataKey: v, isScrolling: r, parent: l, rowData: i, rowIndex: a }), S = this._cachedColumnStyles[o], m = typeof _ == "string" ? _ : null;
1873
+ return C.createElement("div", { "aria-colindex": o + 1, "aria-describedby": g, className: N("ReactVirtualized__Table__rowColumn", f), key: "Row" + a + "-Col" + o, onClick: function(y) {
1874
+ s && s({ columnData: h, dataKey: v, event: y });
1875
+ }, role: "gridcell", style: S, title: m }, _);
1876
+ } }, { key: "_createHeader", value: function(e) {
1877
+ var t, o, r, l, i, a = e.column, s = e.index, c = this.props, d = c.headerClassName, u = c.headerStyle, f = c.onHeaderClick, h = c.sort, v = c.sortBy, g = c.sortDirection, _ = a.props, S = _.columnData, m = _.dataKey, y = _.defaultSortDirection, w = _.disableSort, x = _.headerRenderer, b = _.id, z = _.label, R = !w && h, P = N("ReactVirtualized__Table__headerColumn", d, a.props.headerClassName, { ReactVirtualized__Table__sortableHeaderColumn: R }), k = this._getFlexStyleForColumn(a, B(B({}, u), a.props.headerStyle)), I = x({ columnData: S, dataKey: m, disableSort: w, label: z, sortBy: v, sortDirection: g });
1878
+ if (R || f) {
1879
+ var A = v !== m ? y : g === be ? ie : be, E = function(j) {
1880
+ R && h({ defaultSortDirection: y, event: j, sortBy: m, sortDirection: A }), f && f({ columnData: S, dataKey: m, event: j });
1881
+ };
1882
+ i = a.props["aria-label"] || z || m, l = "none", r = 0, t = E, o = function(j) {
1883
+ j.key !== "Enter" && j.key !== " " || E(j);
1884
+ };
1885
+ }
1886
+ return v === m && (l = g === ie ? "ascending" : "descending"), C.createElement("div", { "aria-label": i, "aria-sort": l, className: P, id: b, key: "Header-Col" + s, onClick: t, onKeyDown: o, role: "columnheader", style: k, tabIndex: r }, I);
1887
+ } }, { key: "_createRow", value: function(e) {
1888
+ var t = this, o = e.rowIndex, r = e.isScrolling, l = e.key, i = e.parent, a = e.style, s = this.props, c = s.children, d = s.onRowClick, u = s.onRowDoubleClick, f = s.onRowRightClick, h = s.onRowMouseOver, v = s.onRowMouseOut, g = s.rowClassName, _ = s.rowGetter, S = s.rowRenderer, m = s.rowStyle, y = this.state.scrollbarWidth, w = typeof g == "function" ? g({ index: o }) : g, x = typeof m == "function" ? m({ index: o }) : m, b = _({ index: o }), z = C.Children.toArray(c).map(function(k, I) {
1889
+ return t._createColumn({ column: k, columnIndex: I, isScrolling: r, parent: i, rowData: b, rowIndex: o, scrollbarWidth: y });
1890
+ }), R = N("ReactVirtualized__Table__row", w), P = B(B({}, a), {}, { height: this._getRowHeight(o), overflow: "hidden", paddingRight: y }, x);
1891
+ return S({ className: R, columns: z, index: o, isScrolling: r, key: l, onRowClick: d, onRowDoubleClick: u, onRowRightClick: f, onRowMouseOver: h, onRowMouseOut: v, rowData: b, style: P });
1892
+ } }, { key: "_getFlexStyleForColumn", value: function(e) {
1893
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = "".concat(e.props.flexGrow, " ").concat(e.props.flexShrink, " ").concat(e.props.width, "px"), r = B(B({}, t), {}, { flex: o, msFlex: o, WebkitFlex: o });
1894
+ return e.props.maxWidth && (r.maxWidth = e.props.maxWidth), e.props.minWidth && (r.minWidth = e.props.minWidth), r;
1895
+ } }, { key: "_getHeaderColumns", value: function() {
1896
+ var e = this, t = this.props, o = t.children;
1897
+ return (t.disableHeader ? [] : C.Children.toArray(o)).map(function(r, l) {
1898
+ return e._createHeader({ column: r, index: l });
1899
+ });
1900
+ } }, { key: "_getRowHeight", value: function(e) {
1901
+ var t = this.props.rowHeight;
1902
+ return typeof t == "function" ? t({ index: e }) : t;
1903
+ } }, { key: "_onScroll", value: function(e) {
1904
+ var t = e.clientHeight, o = e.scrollHeight, r = e.scrollTop;
1905
+ (0, this.props.onScroll)({ clientHeight: t, scrollHeight: o, scrollTop: r });
1906
+ } }, { key: "_onSectionRendered", value: function(e) {
1907
+ var t = e.rowOverscanStartIndex, o = e.rowOverscanStopIndex, r = e.rowStartIndex, l = e.rowStopIndex;
1908
+ (0, this.props.onRowsRendered)({ overscanStartIndex: t, overscanStopIndex: o, startIndex: r, stopIndex: l });
1909
+ } }, { key: "_setRef", value: function(e) {
1910
+ this.Grid = e;
1911
+ } }, { key: "_setGridElementRef", value: function(e) {
1912
+ this.GridElement = e;
1913
+ } }, { key: "_setScrollbarWidth", value: function() {
1914
+ var e = this.getScrollbarWidth();
1915
+ this.setState({ scrollbarWidth: e });
1916
+ } }]);
1917
+ }();
1918
+ p(ze, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0, headerStyle: {}, noRowsRenderer: function() {
1919
+ return null;
1920
+ }, onRowsRendered: function() {
1921
+ return null;
1922
+ }, onScroll: function() {
1923
+ return null;
1924
+ }, overscanIndicesGetter: Pt, overscanRowCount: 10, rowRenderer: function(n) {
1925
+ var e = n.className, t = n.columns, o = n.index, r = n.key, l = n.onRowClick, i = n.onRowDoubleClick, a = n.onRowMouseOut, s = n.onRowMouseOver, c = n.onRowRightClick, d = n.rowData, u = n.style, f = { "aria-rowindex": o + 1 };
1926
+ return (l || i || a || s || c) && (f["aria-label"] = "row", f.tabIndex = 0, l && (f.onClick = function(h) {
1927
+ return l({ event: h, index: o, rowData: d });
1928
+ }), i && (f.onDoubleClick = function(h) {
1929
+ return i({ event: h, index: o, rowData: d });
1930
+ }), a && (f.onMouseOut = function(h) {
1931
+ return a({ event: h, index: o, rowData: d });
1932
+ }), s && (f.onMouseOver = function(h) {
1933
+ return s({ event: h, index: o, rowData: d });
1934
+ }), c && (f.onContextMenu = function(h) {
1935
+ return c({ event: h, index: o, rowData: d });
1936
+ })), C.createElement("div", U({}, f, { className: e, key: r, role: "row", style: u }), t);
1937
+ }, headerRowRenderer: function(n) {
1938
+ var e = n.className, t = n.columns, o = n.style;
1939
+ return C.createElement("div", { className: e, role: "row", style: o }, t);
1940
+ }, rowStyle: {}, scrollToAlignment: "auto", scrollToIndex: -1, style: {} }), ze.propTypes = {};
1941
+ var $ = [], ne = null, q = null;
1942
+ function Ft() {
1943
+ q && (q = null, document.body && ne != null && (document.body.style.pointerEvents = ne), ne = null);
1944
+ }
1945
+ function ko() {
1946
+ Ft(), $.forEach(function(n) {
1947
+ return n.__resetIsScrolling();
1948
+ });
1949
+ }
1950
+ function Nt(n) {
1951
+ n.currentTarget === window && ne == null && document.body && (ne = document.body.style.pointerEvents, document.body.style.pointerEvents = "none"), function() {
1952
+ q && J(q);
1953
+ var e = 0;
1954
+ $.forEach(function(t) {
1955
+ e = Math.max(e, t.props.scrollingResetTimeInterval);
1956
+ }), q = Pe(ko, e);
1957
+ }(), $.forEach(function(e) {
1958
+ e.props.scrollElement === n.currentTarget && e.__handleWindowScrollEvent();
1959
+ });
1960
+ }
1961
+ function at(n, e) {
1962
+ $.some(function(t) {
1963
+ return t.props.scrollElement === e;
1964
+ }) || e.addEventListener("scroll", Nt), $.push(n);
1965
+ }
1966
+ function ct(n, e) {
1967
+ ($ = $.filter(function(t) {
1968
+ return t !== n;
1969
+ })).length || (e.removeEventListener("scroll", Nt), q && (J(q), Ft()));
1970
+ }
1971
+ var ke = function(n) {
1972
+ return n === window;
1973
+ }, te = function(n) {
1974
+ return n.getBoundingClientRect();
1975
+ };
1976
+ function dt(n, e) {
1977
+ if (n) {
1978
+ if (ke(n)) {
1979
+ var t = window, o = t.innerHeight, r = t.innerWidth;
1980
+ return { height: typeof o == "number" ? o : 0, width: typeof r == "number" ? r : 0 };
1981
+ }
1982
+ return te(n);
1983
+ }
1984
+ return { height: e.serverHeight, width: e.serverWidth };
1985
+ }
1986
+ function ut(n) {
1987
+ return ke(n) && document.documentElement ? { top: "scrollY" in window ? window.scrollY : document.documentElement.scrollTop, left: "scrollX" in window ? window.scrollX : document.documentElement.scrollLeft } : { top: n.scrollTop, left: n.scrollLeft };
1988
+ }
1989
+ function ht(n, e) {
1990
+ var t = Object.keys(n);
1991
+ if (Object.getOwnPropertySymbols) {
1992
+ var o = Object.getOwnPropertySymbols(n);
1993
+ e && (o = o.filter(function(r) {
1994
+ return Object.getOwnPropertyDescriptor(n, r).enumerable;
1995
+ })), t.push.apply(t, o);
1996
+ }
1997
+ return t;
1998
+ }
1999
+ function ft(n) {
2000
+ for (var e = 1; e < arguments.length; e++) {
2001
+ var t = arguments[e] != null ? arguments[e] : {};
2002
+ e % 2 ? ht(Object(t), !0).forEach(function(o) {
2003
+ p(n, o, t[o]);
2004
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : ht(Object(t)).forEach(function(o) {
2005
+ Object.defineProperty(n, o, Object.getOwnPropertyDescriptor(t, o));
2006
+ });
2007
+ }
2008
+ return n;
2009
+ }
2010
+ function Bt() {
2011
+ try {
2012
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
2013
+ }));
2014
+ } catch {
2015
+ }
2016
+ return (Bt = function() {
2017
+ return !!n;
2018
+ })();
2019
+ }
2020
+ var Ut = function() {
2021
+ return typeof window < "u" ? window : void 0;
2022
+ }, Mo = function() {
2023
+ function n() {
2024
+ var e, t, o, r;
2025
+ M(this, n);
2026
+ for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
2027
+ return t = this, o = n, r = [].concat(i), o = T(o), p(e = W(t, Bt() ? Reflect.construct(o, r || [], T(t).constructor) : o.apply(t, r)), "_window", Ut()), p(e, "_isMounted", !1), p(e, "_positionFromTop", 0), p(e, "_positionFromLeft", 0), p(e, "_detectElementResize", void 0), p(e, "_child", void 0), p(e, "_windowScrollerRef", C.createRef()), p(e, "state", ft(ft({}, dt(e.props.scrollElement, e.props)), {}, { isScrolling: !1, scrollLeft: 0, scrollTop: 0 })), p(e, "_registerChild", function(s) {
2028
+ !s || s instanceof Element || console.warn("WindowScroller registerChild expects to be passed Element or null"), e._child = s, e.updatePosition();
2029
+ }), p(e, "_onChildScroll", function(s) {
2030
+ var c = s.scrollTop;
2031
+ if (e.state.scrollTop !== c) {
2032
+ var d = e.props.scrollElement;
2033
+ d && (typeof d.scrollTo == "function" ? d.scrollTo(0, c + e._positionFromTop) : d.scrollTop = c + e._positionFromTop);
2034
+ }
2035
+ }), p(e, "_registerResizeListener", function(s) {
2036
+ s === window ? window.addEventListener("resize", e._onResize, !1) : e._detectElementResize.addResizeListener(s, e._onResize);
2037
+ }), p(e, "_unregisterResizeListener", function(s) {
2038
+ s === window ? window.removeEventListener("resize", e._onResize, !1) : s && e._detectElementResize.removeResizeListener(s, e._onResize);
2039
+ }), p(e, "_onResize", function() {
2040
+ e.updatePosition();
2041
+ }), p(e, "__handleWindowScrollEvent", function() {
2042
+ if (e._isMounted) {
2043
+ var s = e.props.onScroll, c = e.props.scrollElement;
2044
+ if (c) {
2045
+ var d = ut(c), u = Math.max(0, d.left - e._positionFromLeft), f = Math.max(0, d.top - e._positionFromTop);
2046
+ e.setState({ isScrolling: !0, scrollLeft: u, scrollTop: f }), s({ scrollLeft: u, scrollTop: f });
2047
+ }
2048
+ }
2049
+ }), p(e, "__resetIsScrolling", function() {
2050
+ e.setState({ isScrolling: !1 });
2051
+ }), e;
2052
+ }
2053
+ return H(n, C.PureComponent), L(n, [{ key: "updatePosition", value: function() {
2054
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props.scrollElement, t = this.props.onResize, o = this.state, r = o.height, l = o.width, i = this._child || this._windowScrollerRef.current;
2055
+ if (i instanceof Element && e) {
2056
+ var a = function(c, d) {
2057
+ if (ke(d) && document.documentElement) {
2058
+ var u = document.documentElement, f = te(c), h = te(u);
2059
+ return { top: f.top - h.top, left: f.left - h.left };
2060
+ }
2061
+ var v = ut(d), g = te(c), _ = te(d);
2062
+ return { top: g.top + v.top - _.top, left: g.left + v.left - _.left };
2063
+ }(i, e);
2064
+ this._positionFromTop = a.top, this._positionFromLeft = a.left;
2065
+ }
2066
+ var s = dt(e, this.props);
2067
+ r === s.height && l === s.width || (this.setState({ height: s.height, width: s.width }), t({ height: s.height, width: s.width })), this.props.updateScrollTopOnUpdatePosition === !0 && (this.__handleWindowScrollEvent(), this.__resetIsScrolling());
2068
+ } }, { key: "componentDidMount", value: function() {
2069
+ var e = this.props.scrollElement;
2070
+ this._detectElementResize = wt(), this.updatePosition(e), e && (at(this, e), this._registerResizeListener(e)), this._isMounted = !0;
2071
+ } }, { key: "componentDidUpdate", value: function(e, t) {
2072
+ var o = this.props.scrollElement, r = e.scrollElement;
2073
+ r !== o && r != null && o != null && (this.updatePosition(o), ct(this, r), at(this, o), this._unregisterResizeListener(r), this._registerResizeListener(o));
2074
+ } }, { key: "componentWillUnmount", value: function() {
2075
+ var e = this.props.scrollElement;
2076
+ e && (ct(this, e), this._unregisterResizeListener(e)), this._isMounted = !1;
2077
+ } }, { key: "render", value: function() {
2078
+ var e = this.props.children, t = this.state, o = t.isScrolling, r = t.scrollTop, l = t.scrollLeft, i = t.height, a = t.width;
2079
+ return C.createElement("div", { ref: this._windowScrollerRef }, e({ onChildScroll: this._onChildScroll, registerChild: this._registerChild, height: i, isScrolling: o, scrollLeft: l, scrollTop: r, width: a }));
2080
+ } }]);
2081
+ }();
2082
+ p(Mo, "defaultProps", { onResize: function() {
2083
+ }, onScroll: function() {
2084
+ }, scrollingResetTimeInterval: 150, scrollElement: Ut(), serverHeight: 0, serverWidth: 0 });
2085
+ const oe = "ReactVirtualizedDemo-flexContainer", Vt = "ReactVirtualizedDemo-tableRow", Kt = "ReactVirtualizedDemo-tableRowHover", Te = "ReactVirtualizedDemo-tableCell", Ie = "ReactVirtualizedDemo-noClick";
2086
+ class Lo extends mt.PureComponent {
2087
+ constructor() {
2088
+ super(...arguments), this.getRowClassName = ({ index: e }) => {
2089
+ const { onRowClick: t } = this.props;
2090
+ return ge(Vt, oe, { [Kt]: e !== -1 && t != null });
2091
+ }, this.cellRenderer = ({ cellData: e, dataKey: t, columnIndex: o, width: r }) => {
2092
+ const { columns: l, rowHeight: i, onRowClick: a } = this.props;
2093
+ let s = e, c = { height: i, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${r}px`, maxWidth: `${r}px` };
2094
+ return t === "shortcut" ? s = eo(e) : t === "description" && (c = { ...c, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), G(Le, { component: "div", className: ge(Te, oe, { [Ie]: a == null }), variant: "body", style: c, align: o != null && l[o].numeric ? "right" : "left", children: s });
2095
+ }, this.headerRenderer = ({ label: e, columnIndex: t, width: o }) => {
2096
+ const { headerHeight: r, columns: l } = this.props, i = l[t];
2097
+ return G(Le, { component: "div", className: ge(Te, oe, Ie), variant: "head", sx: { width: o, height: r, backgroundColor: (a) => a.palette.grey[300] }, align: i.numeric ? "right" : "left", children: G("span", { children: i.label }) });
2098
+ };
2099
+ }
2100
+ static {
2101
+ this.defaultProps = { headerHeight: 40, rowHeight: 48 };
2102
+ }
2103
+ render() {
2104
+ const { columns: e, rowHeight: t, headerHeight: o, ...r } = this.props;
2105
+ return G(xt, { children: ({ height: l, width: i }) => G(ze, { height: l, width: i, rowHeight: t, gridStyle: { direction: "inherit" }, headerHeight: o, ...r, rowClassName: this.getRowClassName, children: e.map(({ dataKey: a, width: s, widthLess: c, ...d }, u) => {
2106
+ const f = c ? i - c : s;
2107
+ return G(pe, { style: { flex: `1 1 ${f}px` }, headerRenderer: (h) => this.headerRenderer({ ...h, width: f, columnIndex: u }), className: oe, cellDataGetter: ({ rowData: h, columnData: v, dataKey: g }) => h[g], cellRenderer: (h) => this.cellRenderer({ ...h, width: f, columnIndex: u }), dataKey: a, width: f, ...d }, a);
2108
+ }) }) });
2109
+ }
2110
+ }
2111
+ const Go = lo(Lo)(({ theme: n }) => ({ "& .ReactVirtualized__Table__headerRow": { ...n.direction === "rtl" && { paddingLeft: "0 !important" }, ...n.direction !== "rtl" && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${oe}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${Vt}`]: { cursor: "pointer" }, [`& .${Kt}`]: { "&:hover:not([disabled])": { backgroundColor: n.palette.grey[200] } }, [`& .${Te}`]: { flex: 1 }, [`& .${Ie}`]: { cursor: "initial" } }));
2112
+ function Ao(n) {
2113
+ const { commands: e, ...t } = n, [o, r] = ae(!1), [l, i] = ae(""), a = no(() => {
2114
+ let h = e.getAllCommands();
2115
+ o || (h = h.filter((_) => _.command.shortcut())), h.sort((_, S) => _.command.label().localeCompare(S.command.label()));
2116
+ const v = [], g = (_) => _.replace(/\n\n/g, `
2117
+ `);
2118
+ for (let _ = 0; _ < h.length; _++) {
2119
+ const S = h[_].command, m = S.shortcut();
2120
+ if (Array.isArray(m)) {
2121
+ const y = m;
2122
+ for (let w = 0; w < y.length; w++) v.push({ label: S.label(), description: g(S.description()), shortcut: y[w] });
2123
+ } else v.push({ label: S.label(), description: g(S.description()), shortcut: S.shortcut() });
2124
+ }
2125
+ return v;
2126
+ }, [o, e]), [s, c] = ae(null);
2127
+ Ge(() => {
2128
+ import("./DeGATuYv4-5bhQcD.mjs").then((h) => {
2129
+ c(new h.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
2130
+ });
2131
+ }, [a]);
2132
+ const [d, u] = ae(a), f = l.length > 0 && d.length === 0;
2133
+ return Ge(() => {
2134
+ s && ao.debounce(() => {
2135
+ if (l.trim().length === 0) return void u(a);
2136
+ const h = s.search(l.trim()), v = new Array(h.length);
2137
+ for (let g = 0; g < h.length; g++) v[g] = h[g].item;
2138
+ u(v);
2139
+ }, 90)();
2140
+ }, [s, l]), Me(se, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...t, children: [Me(se, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (h) => h.spacing(2), color: (h) => h.palette.text.secondary }, children: [G(qt, { InputProps: { sx: { backgroundImage: `linear-gradient(${ce("#fff", de(5))}, ${ce("#fff", de(5))})` }, inputProps: { className: "input", autoFocus: !0, spellCheck: !1, placeholder: "Type to search key bindings", autoComplete: "off", sx: { paddingTop: (h) => h.spacing(1), paddingBottom: (h) => h.spacing(1) } }, endAdornment: G($t, { sx: { opacity: l.length > 0 ? 1 : 0, display: l.length > 0 ? "flex" : "none" }, position: "end", children: G(Xt, { "aria-label": "clear search", onClick: () => i(""), edge: "end", children: G(so, {}) }) }) }, sx: { flex: "1 1 40%", marginRight: (h) => h.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (h) => f ? `${h.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (h) => f ? `${h.palette.error.main} !important` : void 0 } }, value: l, onChange: (h) => {
2141
+ i(h.target.value);
2142
+ }, onKeyDown: (h) => {
2143
+ h.which === pt.Escape && l.length > 0 && (i(""), h.stopPropagation(), h.preventDefault());
2144
+ }, onContextMenu: (h) => {
2145
+ h.stopPropagation();
2146
+ } }), G(Yt, { sx: { flex: "1 1 60%" }, control: G(Jt, { checked: o, onChange: () => r(!o) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), G(se, { sx: { flex: "1 1 100%", borderRadius: (h) => `${h.shape.borderRadius}px`, border: (h) => `solid ${h.palette.divider} 1px`, paddingRight: "1px", overflow: "hidden", "* .MuiTableCell-head": { background: (h) => h.palette.background.paper, backgroundImage: `linear-gradient(${ce("#fff", de(5))}, ${ce("#fff", de(5))})` } }, children: G(Go, { rowCount: d.length, rowGetter: (h) => d[h.index], columns: [{ width: 180, label: "Command", dataKey: "label" }, { width: 260, label: "Key Binding", dataKey: "shortcut" }, { width: 240, label: "Description", dataKey: "description", widthLess: 440 }] }) }), G(se, { sx: { display: "flex", flexShrink: "0", paddingLeft: (h) => h.spacing(1), paddingTop: (h) => h.spacing(1), paddingRight: (h) => h.spacing(1), userSelect: "none", justifyContent: "flex-end" }, children: G(Zt, { noWrap: !0, component: "div", sx: { color: (h) => f ? h.palette.error.main : h.palette.text.secondary }, children: `${d.length === 0 ? "No" : d.length} shortcut key${d.length === 1 ? "" : "s"}${l.length > 0 ? " found" : ""}` }) })] });
2147
+ }
2148
+ const Vo = (n) => {
2149
+ const { title: e = "Shortcut Keys", commands: t, sx: o, ...r } = n;
2150
+ return G(to, { isModal: !0, onKeyDown: (l) => {
2151
+ l.keyCode === pt.F1 && l.preventDefault();
2152
+ }, sx: { width: "780px", ...o }, title: e, autoFocusSel: ".input", ...r, children: G(Qt, { dividers: !0, children: G(Ao, { commands: t, sx: { marginBottom: "8px" } }) }) });
2153
+ };
2154
+ export {
2155
+ Vo as default
2156
+ };