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