@reltio/remotes 1.4.1662 → 1.4.1663
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/1039.js +1 -1
- package/1088.js +1 -1
- package/1088.js.map +1 -1
- package/1146.js +1 -1
- package/1148.js +1 -1
- package/1334.js +1 -1
- package/1425.js +1 -1
- package/1572.js +1 -1
- package/1664.js +1 -1
- package/1707.js +1 -1
- package/1790.js +1 -1
- package/1840.js +1 -1
- package/2066.js +1 -1
- package/2300.js +1 -1
- package/2400.js +1 -1
- package/2966.js +1 -1
- package/3096.js +1 -1
- package/3348.js +1 -1
- package/3373.js +1 -1
- package/3381.js +1 -1
- package/3383.js +1 -1
- package/3463.js +1 -1
- package/3469.js +1 -1
- package/3538.js +1 -1
- package/3639.js +1 -1
- package/3854.js +1 -1
- package/3854.js.map +1 -1
- package/3912.js +1 -1
- package/415.js +1 -1
- package/4212.js +1 -1
- package/4390.js +1 -1
- package/446.js +1 -1
- package/4481.js +1 -1
- package/4583.js +1 -1
- package/4609.js +1 -1
- package/4610.js +1 -1
- package/4680.js +1 -1
- package/4780.js +1 -1
- package/4806.js +1 -1
- package/4838.js +1 -1
- package/50.js +1 -1
- package/5039.js +1 -1
- package/5053.js +1 -1
- package/5108.js +1 -1
- package/5177.js +1 -1
- package/5292.js +1 -1
- package/5368.js +1 -1
- package/5383.js +1 -1
- package/5617.js +1 -1
- package/5738.js +1 -1
- package/5738.js.map +1 -1
- package/5939.js +1 -1
- package/6287.js +1 -1
- package/636.js +1 -1
- package/658.js +1 -1
- package/{9831.css → 6774.css} +1 -1
- package/{9831.css.map → 6774.css.map} +1 -1
- package/6774.js +2 -0
- package/6774.js.map +1 -0
- package/6799.js +1 -1
- package/6844.js +1 -1
- package/6860.js +1 -1
- package/6903.js +1 -1
- package/7119.js +1 -1
- package/7128.js +1 -1
- package/7151.js +1 -1
- package/7340.js +1 -1
- package/735.js +1 -1
- package/7363.js +1 -1
- package/7422.js +1 -1
- package/7605.js +1 -1
- package/7626.js +1 -1
- package/7744.js +1 -1
- package/7896.js +1 -1
- package/820.js +1 -1
- package/8207.js +1 -1
- package/8216.js +1 -1
- package/8418.js +1 -1
- package/8462.js +1 -1
- package/8565.js +1 -1
- package/8741.js +1 -1
- package/9016.js +1 -1
- package/9050.js +1 -1
- package/9283.js +1 -1
- package/9309.js +1 -1
- package/9328.js +1 -1
- package/9387.js +1 -1
- package/9719.js +1 -1
- package/9861.js +1 -1
- package/987.js +1 -1
- package/99.js +1 -1
- package/9960.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/remoteEntry.js.map +1 -1
- package/9831.js +0 -2
- package/9831.js.map +0 -1
package/9309.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="77cc0be2-7889-4deb-a98a-711f2be87a27",e._sentryDebugIdIdentifier="sentry-dbid-77cc0be2-7889-4deb-a98a-711f2be87a27")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1663"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[9309],{56569:(e,t,o)=>{var i=o(71600);t.Z=void 0;var n=i(o(68671)),r=o(52322),l=(0,n.default)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"}),"AddCircle");t.Z=l},89323:(e,t,o)=>{var i=o(71600);t.Z=void 0;var n=i(o(68671)),r=o(52322),l=(0,n.default)((0,r.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicator");t.Z=l},29754:(e,t,o)=>{var i=o(71600);t.Z=void 0;var n=i(o(68671)),r=o(52322),l=(0,n.default)((0,r.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.Z=l},23468:(e,t,o)=>{var i=o(71600);t.Z=void 0;var n=i(o(68671)),r=o(52322),l=(0,n.default)((0,r.jsx)("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"KeyboardArrowLeft");t.Z=l},31373:(e,t,o)=>{var i=o(71600);t.Z=void 0;var n=i(o(68671)),r=o(52322),l=(0,n.default)((0,r.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");t.Z=l},67121:(e,t,o)=>{t.v7=y,t.Kx=C,t._t=R,t.ZP=function(e){var t=R(e);return function(e){return i.default.createElement(c.DragDropContextConsumer,null,(function(o){var n=o.dragDropManager;return void 0===n?null:i.default.createElement(t,p({},e,{dragDropManager:n}))}))}};var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};i.get||i.set?Object.defineProperty(t,o,i):t[o]=e[o]}return t.default=e,t}(o(24328)),n=u(o(13980)),r=o(75047),l=u(o(98357)),s=u(o(23493)),a=u(o(16017)),c=o(13896),d=u(o(73463)),h=o(9314);function u(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},p.apply(this,arguments)}function g(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e){return function(t,o){var i=t.x,n=t.w,r=t.y,l=t.h,s=Math.min(n/2,e);if(o.x>=i&&o.x<=i+n&&o.y>=r&&o.y<=r+l){if(o.x<i+s)return(o.x-i-s)/s;if(o.x>i+n-s)return-(i+n-o.x-s)/s}return 0}}function C(e){return function(t,o){var i=t.y,n=t.h,r=t.x,l=t.w,s=Math.min(n/2,e);if(o.y>=i&&o.y<=i+n&&o.x>=r&&o.x<=r+l){if(o.y<i+s)return(o.y-i-s)/s;if(o.y>i+n-s)return-(i+n-o.y-s)/s}return 0}}var w=y(150),x=C(150);function R(e){var t=function(t){function o(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?m(e):t}(this,v(o).call(this,e,t)),S(m(m(n)),"updateScrolling",(0,l.default)((function(e){var t=n.container.getBoundingClientRect(),o={x:t.left,y:t.top,w:t.width,h:t.height},i=(0,h.getCoords)(e),r=n.props,l=r.horizontalStrength,s=r.verticalStrength;n.scaleX=l(o,i),n.scaleY=s(o,i),n.frame||!n.scaleX&&!n.scaleY||n.startScrolling()}),100,{trailing:!1})),S(m(m(n)),"handleEvent",(function(e){n.dragging&&!n.attached&&(n.attach(),n.updateScrolling(e))})),n.wrappedInstance=i.default.createRef(),n.scaleX=0,n.scaleY=0,n.frame=null,n.attached=!1,n.dragging=!1,n}var n,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(o,t),n=o,(a=[{key:"componentDidMount",value:function(){var e=this;this.container=(0,r.findDOMNode)(this.wrappedInstance.current),this.container&&"function"==typeof this.container.addEventListener&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var t=this.props.dragDropManager;this.clearMonitorSubscription=t.getMonitor().subscribeToStateChange((function(){return e.handleMonitorChange()}))}},{key:"componentWillUnmount",value:function(){this.container&&"function"==typeof this.container.removeEventListener&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var e=this.props.dragDropManager.getMonitor().isDragging();!this.dragging&&e?this.dragging=!0:this.dragging&&!e&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var e=this,t=0;!function o(){var i=e.scaleX,n=e.scaleY,r=e.container,l=e.props,a=l.strengthMultiplier,c=l.onScrollChange;if(0!==a&&i+n!==0){if((t+=1)%2){var d=r.scrollLeft,u=r.scrollTop,f=r.scrollWidth,p=r.scrollHeight,g=r.clientWidth,v=r.clientHeight;c(i?r.scrollLeft=(0,h.intBetween)(0,f-g,d+i*a):d,n?r.scrollTop=(0,h.intBetween)(0,p-v,u+n*a):u)}e.frame=(0,s.default)(o)}else e.stopScrolling()}()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(s.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var t=this.props,o=(t.strengthMultiplier,t.verticalStrength,t.horizontalStrength,t.onScrollChange,function(e,t){if(null==e)return{};var o,i,n=function(e,t){if(null==e)return{};var o,i,n={},r=Object.keys(e);for(i=0;i<r.length;i++)o=r[i],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)o=r[i],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(t,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]));return i.default.createElement(e,p({ref:this.wrappedInstance},o))}}])&&g(n.prototype,a),o}(i.Component);return S(t,"displayName","Scrolling(".concat((0,a.default)(e),")")),S(t,"propTypes",{dragDropManager:n.default.object.isRequired,onScrollChange:n.default.func,verticalStrength:n.default.func,horizontalStrength:n.default.func,strengthMultiplier:n.default.number}),S(t,"defaultProps",{onScrollChange:h.noop,verticalStrength:x,horizontalStrength:w,strengthMultiplier:30}),(0,d.default)(t,e)}},9314:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.noop=function(){},t.intBetween=function(e,t,o){return Math.floor(Math.min(t,Math.max(e,o)))},t.getCoords=function(e){return"touchmove"===e.type?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:{x:e.clientX,y:e.clientY}}},16017:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}},12335:(e,t,o)=>{o.d(t,{qj:()=>q,Z8:()=>J,t1:()=>Q,aV:()=>pe});var i=o(9249),n=o(87371),r=o(11987),l=o(95058),s=o(80753),a=o(45754),c=o(56666),d=o(24328),h=o(46847),u=o(7896),f=o(6277);function p(e){var t=e.cellCount,o=e.cellSize,i=e.computeMetadataCallback,n=e.computeMetadataCallbackProps,r=e.nextCellsCount,l=e.nextCellSize,s=e.nextScrollToIndex,a=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===r&&("number"!=typeof o&&"number"!=typeof l||o===l)||(i(n),a>=0&&a===s&&c())}var g=o(59740),v=function(){function e(t){var o=t.cellCount,n=t.cellSizeGetter,r=t.estimatedCellSize;(0,i.Z)(this,e),(0,c.Z)(this,"_cellSizeAndPositionData",{}),(0,c.Z)(this,"_lastMeasuredIndex",-1),(0,c.Z)(this,"_lastBatchedIndex",-1),(0,c.Z)(this,"_cellCount",void 0),(0,c.Z)(this,"_cellSizeGetter",void 0),(0,c.Z)(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=o,this._estimatedCellSize=r}return(0,n.Z)(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,i=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=i}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),o=t.offset+t.size,i=this._lastMeasuredIndex+1;i<=e;i++){var n=this._cellSizeGetter({index:i});if(void 0===n||isNaN(n))throw Error("Invalid size returned for cell ".concat(i," of value ").concat(n));null===n?(this._cellSizeAndPositionData[i]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[i]={offset:o,size:n},o+=n,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=void 0===t?"auto":t,i=e.containerSize,n=e.currentOffset,r=e.targetIndex;if(i<=0)return 0;var l,s=this.getSizeAndPositionOfCell(r),a=s.offset,c=a-i+s.size;switch(o){case"start":l=a;break;case"end":l=c;break;case"center":l=a-(i-s.size)/2;break;default:l=Math.max(c,Math.min(a,n))}var d=this.getTotalSize();return Math.max(0,Math.min(d-i,l))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var i=o+t,n=this._findNearestCell(o),r=this.getSizeAndPositionOfCell(n);o=r.offset+r.size;for(var l=n;o<i&&l<this._cellCount-1;)l++,o+=this.getSizeAndPositionOfCell(l).size;return{start:n,stop:l}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,o){for(;t<=e;){var i=t+Math.floor((e-t)/2),n=this.getSizeAndPositionOfCell(i).offset;if(n===o)return i;n<o?t=i+1:n>o&&(e=i-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var o=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=o,o*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),o=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(o,0,e):this._exponentialSearch(o,e)}}]),e}(),_=function(){function e(t){var o=t.maxScrollSize,n=void 0===o?"undefined"!=typeof window&&window.chrome?16777100:15e5:o,r=(0,g.Z)(t,["maxScrollSize"]);(0,i.Z)(this,e),(0,c.Z)(this,"_cellSizeAndPositionManager",void 0),(0,c.Z)(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new v(r),this._maxScrollSize=n}return(0,n.Z)(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,o=e.offset,i=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize(),r=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(r*(n-i))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=void 0===t?"auto":t,i=e.containerSize,n=e.currentOffset,r=e.targetIndex;n=this._safeOffsetToOffset({containerSize:i,offset:n});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:i,currentOffset:n,targetIndex:r});return this._offsetToSafeOffset({containerSize:i,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;return o=this._safeOffsetToOffset({containerSize:t,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:o})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,o=e.offset,i=e.totalSize;return i<=t?0:o/(i-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,i=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(i===n)return o;var r=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:i});return Math.round(r*(n-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,i=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(i===n)return o;var r=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(r*(i-t))}}]),e}();function m(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(o){var i=o.callback,n=o.indices,r=Object.keys(n),l=!e||r.every((function(e){var t=n[e];return Array.isArray(t)?t.length>0:t>=0})),s=r.length!==Object.keys(t).length||r.some((function(e){var o=t[e],i=n[e];return Array.isArray(i)?o.join(",")!==i.join(","):o!==i}));t=n,l&&s&&i(n)}}function S(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,i=e.previousCellsCount,n=e.previousCellSize,r=e.previousScrollToAlignment,l=e.previousScrollToIndex,s=e.previousSize,a=e.scrollOffset,c=e.scrollToAlignment,d=e.scrollToIndex,h=e.size,u=e.sizeJustIncreasedFromZero,f=e.updateScrollIndexCallback,p=o.getCellCount(),g=d>=0&&d<p;g&&(h!==s||u||!n||"number"==typeof t&&t!==n||c!==r||d!==l)?f(d):!g&&p>0&&(h<s||p<i)&&a>o.getTotalSize()-h&&f(p-1)}const y=!("undefined"==typeof window||!window.document||!window.document.createElement);var C,w;function x(e){if((!C&&0!==C||e)&&y){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),C=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return C}var R,b,z=(w="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||w.webkitRequestAnimationFrame||w.mozRequestAnimationFrame||w.oRequestAnimationFrame||w.msRequestAnimationFrame||function(e){return w.setTimeout(e,1e3/60)},T=w.cancelAnimationFrame||w.webkitCancelAnimationFrame||w.mozCancelAnimationFrame||w.oCancelAnimationFrame||w.msCancelAnimationFrame||function(e){w.clearTimeout(e)},I=z,Z=T,M=function(e){return Z(e.id)},k=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var i={id:I((function n(){Date.now()-o>=t?e.call():i.id=I(n)}))};return i};function P(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function O(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?P(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):P(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var L="requested",G=(b=R=function(e){function t(e){var o;(0,i.Z)(this,t),o=(0,r.Z)(this,(0,l.Z)(t).call(this,e)),(0,c.Z)((0,s.Z)(o),"_onGridRenderedMemoizer",m()),(0,c.Z)((0,s.Z)(o),"_onScrollMemoizer",m(!1)),(0,c.Z)((0,s.Z)(o),"_deferredInvalidateColumnIndex",null),(0,c.Z)((0,s.Z)(o),"_deferredInvalidateRowIndex",null),(0,c.Z)((0,s.Z)(o),"_recomputeScrollLeftFlag",!1),(0,c.Z)((0,s.Z)(o),"_recomputeScrollTopFlag",!1),(0,c.Z)((0,s.Z)(o),"_horizontalScrollBarSize",0),(0,c.Z)((0,s.Z)(o),"_verticalScrollBarSize",0),(0,c.Z)((0,s.Z)(o),"_scrollbarPresenceChanged",!1),(0,c.Z)((0,s.Z)(o),"_scrollingContainer",void 0),(0,c.Z)((0,s.Z)(o),"_childrenToDisplay",void 0),(0,c.Z)((0,s.Z)(o),"_columnStartIndex",void 0),(0,c.Z)((0,s.Z)(o),"_columnStopIndex",void 0),(0,c.Z)((0,s.Z)(o),"_rowStartIndex",void 0),(0,c.Z)((0,s.Z)(o),"_rowStopIndex",void 0),(0,c.Z)((0,s.Z)(o),"_renderedColumnStartIndex",0),(0,c.Z)((0,s.Z)(o),"_renderedColumnStopIndex",0),(0,c.Z)((0,s.Z)(o),"_renderedRowStartIndex",0),(0,c.Z)((0,s.Z)(o),"_renderedRowStopIndex",0),(0,c.Z)((0,s.Z)(o),"_initialScrollTop",void 0),(0,c.Z)((0,s.Z)(o),"_initialScrollLeft",void 0),(0,c.Z)((0,s.Z)(o),"_disablePointerEventsTimeoutId",void 0),(0,c.Z)((0,s.Z)(o),"_styleCache",{}),(0,c.Z)((0,s.Z)(o),"_cellCache",{}),(0,c.Z)((0,s.Z)(o),"_debounceScrollEndedCallback",(function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})})),(0,c.Z)((0,s.Z)(o),"_invokeOnGridRenderedHelper",(function(){var e=o.props.onSectionRendered;o._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:o._columnStartIndex,columnOverscanStopIndex:o._columnStopIndex,columnStartIndex:o._renderedColumnStartIndex,columnStopIndex:o._renderedColumnStopIndex,rowOverscanStartIndex:o._rowStartIndex,rowOverscanStopIndex:o._rowStopIndex,rowStartIndex:o._renderedRowStartIndex,rowStopIndex:o._renderedRowStopIndex}})})),(0,c.Z)((0,s.Z)(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),(0,c.Z)((0,s.Z)(o),"_onScroll",(function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)}));var n=new _({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),a=new _({cellCount:e.rowCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.rowHeight)(o)},estimatedCellSize:t._getEstimatedRowSize(e)});return o.state={instanceProps:{columnSizeAndPositionManager:n,rowSizeAndPositionManager:a,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,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&&(o._initialScrollTop=o._getCalculatedScrollTop(e,o.state)),e.scrollToColumn>0&&(o._initialScrollLeft=o._getCalculatedScrollLeft(e,o.state)),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,o=void 0===t?this.props.scrollToAlignment:t,i=e.columnIndex,n=void 0===i?this.props.scrollToColumn:i,r=e.rowIndex,l=void 0===r?this.props.scrollToRow:r,s=O({},this.props,{scrollToAlignment:o,scrollToColumn:n,scrollToRow:l});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,o=void 0===t?0:t,i=e.scrollTop,n=void 0===i?0:i;if(!(n<0)){this._debounceScrollEnded();var r=this.props,l=r.autoHeight,s=r.autoWidth,a=r.height,c=r.width,d=this.state.instanceProps,h=d.scrollbarSize,u=d.rowSizeAndPositionManager.getTotalSize(),f=d.columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,f-c+h),o),g=Math.min(Math.max(0,u-a+h),n);if(this.state.scrollLeft!==p||this.state.scrollTop!==g){var v={isScrolling:!0,scrollDirectionHorizontal:p!==this.state.scrollLeft?p>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:g!==this.state.scrollTop?g>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};l||(v.scrollTop=g),s||(v.scrollLeft=p),v.needToResetStyleCache=!1,this.setState(v)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:g,totalColumnsWidth:f,totalRowsHeight:u})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,o=e.rowCount,i=this.state.instanceProps;i.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),i.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,i=e.rowIndex,n=void 0===i?0:i,r=this.props,l=r.scrollToColumn,s=r.scrollToRow,a=this.state.instanceProps;a.columnSizeAndPositionManager.resetCell(o),a.rowSizeAndPositionManager.resetCell(n),this._recomputeScrollLeftFlag=l>=0&&(1===this.state.scrollDirectionHorizontal?o<=l:o>=l),this._recomputeScrollTopFlag=s>=0&&(1===this.state.scrollDirectionVertical?n<=s:n>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,i=this.props.columnCount,n=this.props;i>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(O({},n,{scrollToColumn:t})),void 0!==o&&this._updateScrollTopForScrollToRow(O({},n,{scrollToRow:o}))}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,i=e.height,n=e.scrollLeft,r=e.scrollToColumn,l=e.scrollTop,s=e.scrollToRow,a=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=O({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof n&&n>=0||"number"==typeof l&&l>=0){var d=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:l});d&&(d.needToResetStyleCache=!1,this.setState(d))}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));var h=i>0&&a>0;r>=0&&h&&this._updateScrollLeftForScrollToColumn(),s>=0&&h&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:l||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,i=this.props,n=i.autoHeight,r=i.autoWidth,l=i.columnCount,s=i.height,a=i.rowCount,c=i.scrollToAlignment,d=i.scrollToColumn,h=i.scrollToRow,u=i.width,f=this.state,p=f.scrollLeft,g=f.scrollPositionChangeReason,v=f.scrollTop,_=f.instanceProps;this._handleInvalidatedGridSize();var m=l>0&&0===e.columnCount||a>0&&0===e.rowCount;g===L&&(!r&&p>=0&&(p!==this._scrollingContainer.scrollLeft||m)&&(this._scrollingContainer.scrollLeft=p),!n&&v>=0&&(v!==this._scrollingContainer.scrollTop||m)&&(this._scrollingContainer.scrollTop=v));var y=(0===e.width||0===e.height)&&s>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):S({cellSizeAndPositionManager:_.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:p,scrollToAlignment:c,scrollToIndex:d,size:u,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):S({cellSizeAndPositionManager:_.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:c,scrollToIndex:h,size:s,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),p!==t.scrollLeft||v!==t.scrollTop){var C=_.rowSizeAndPositionManager.getTotalSize(),w=_.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:v,totalColumnsWidth:w,totalRowsHeight:C})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&M(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,i=e.autoWidth,n=e.className,r=e.containerProps,l=e.containerRole,s=e.containerStyle,a=e.height,c=e.id,h=e.noContentRenderer,p=e.role,g=e.style,v=e.tabIndex,_=e.width,m=this.state,S=m.instanceProps,y=m.needToResetStyleCache,C=this._isScrolling(),w={boxSizing:"border-box",direction:"ltr",height:o?"auto":a,position:"relative",width:i?"auto":_,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var x=S.columnSizeAndPositionManager.getTotalSize(),R=S.rowSizeAndPositionManager.getTotalSize(),b=R>a?S.scrollbarSize:0,z=x>_?S.scrollbarSize:0;z===this._horizontalScrollBarSize&&b===this._verticalScrollBarSize||(this._horizontalScrollBarSize=z,this._verticalScrollBarSize=b,this._scrollbarPresenceChanged=!0),w.overflowX=x+b<=_?"hidden":"auto",w.overflowY=R+z<=a?"hidden":"auto";var T=this._childrenToDisplay,I=0===T.length&&a>0&&_>0;return d.createElement("div",(0,u.Z)({ref:this._setScrollingContainerRef},r,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:(0,f.default)("ReactVirtualized__Grid",n),id:c,onScroll:this._onScroll,role:p,style:O({},w,{},g),tabIndex:v}),T.length>0&&d.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:l,style:O({width:t?"auto":x,height:R,maxWidth:x,maxHeight:R,overflow:"hidden",pointerEvents:C?"none":"",position:"relative"},s)},T),I&&h())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,o=e.cellRenderer,i=e.cellRangeRenderer,n=e.columnCount,r=e.deferredMeasurementCache,l=e.height,s=e.overscanColumnCount,a=e.overscanIndicesGetter,c=e.overscanRowCount,d=e.rowCount,h=e.width,u=e.isScrollingOptOut,f=t.scrollDirectionHorizontal,p=t.scrollDirectionVertical,g=t.instanceProps,v=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,_=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,m=this._isScrolling(e,t);if(this._childrenToDisplay=[],l>0&&h>0){var S=g.columnSizeAndPositionManager.getVisibleCellRange({containerSize:h,offset:_}),y=g.rowSizeAndPositionManager.getVisibleCellRange({containerSize:l,offset:v}),C=g.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:h,offset:_}),w=g.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:l,offset:v});this._renderedColumnStartIndex=S.start,this._renderedColumnStopIndex=S.stop,this._renderedRowStartIndex=y.start,this._renderedRowStopIndex=y.stop;var x=a({direction:"horizontal",cellCount:n,overscanCellsCount:s,scrollDirection:f,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),R=a({direction:"vertical",cellCount:d,overscanCellsCount:c,scrollDirection:p,startIndex:"number"==typeof y.start?y.start:0,stopIndex:"number"==typeof y.stop?y.stop:-1}),b=x.overscanStartIndex,z=x.overscanStopIndex,T=R.overscanStartIndex,I=R.overscanStopIndex;if(r){if(!r.hasFixedHeight())for(var Z=T;Z<=I;Z++)if(!r.has(Z,0)){b=0,z=n-1;break}if(!r.hasFixedWidth())for(var M=b;M<=z;M++)if(!r.has(0,M)){T=0,I=d-1;break}}this._childrenToDisplay=i({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:g.columnSizeAndPositionManager,columnStartIndex:b,columnStopIndex:z,deferredMeasurementCache:r,horizontalOffsetAdjustment:C,isScrolling:m,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:g.rowSizeAndPositionManager,rowStartIndex:T,rowStopIndex:I,scrollLeft:_,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:w,visibleColumnIndices:S,visibleRowIndices:y}),this._columnStartIndex=b,this._columnStopIndex=z,this._rowStartIndex=T,this._rowStopIndex=I}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&M(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=k(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,i=e.scrollTop,n=e.totalColumnsWidth,r=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,i=e.scrollTop,l=t.props,s=l.height;(0,l.onScroll)({clientHeight:s,clientWidth:l.width,scrollHeight:r,scrollLeft:o,scrollTop:i,scrollWidth:n})},indices:{scrollLeft:o,scrollTop:i}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var o=e.scrollLeft,i=e.scrollTop,n=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:i});n&&(n.needToResetStyleCache=!1,this.setState(n))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,i=t._getScrollLeftForScrollToColumnStateUpdate(e,o);i&&(i.needToResetStyleCache=!1,this.setState(i))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,o)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var i=this._rowStartIndex;i<=this._rowStopIndex;i++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var r="".concat(i,"-").concat(n);this._styleCache[r]=e[r],o&&(this._cellCache[r]=t[r])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,i=t._getScrollTopForScrollToRowStateUpdate(e,o);i&&(i.needToResetStyleCache=!1,this.setState(i))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var i={};0===e.columnCount&&0!==o.scrollLeft||0===e.rowCount&&0!==o.scrollTop?(i.scrollLeft=0,i.scrollTop=0):(e.scrollLeft!==o.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==o.scrollTop&&e.scrollToRow<0)&&Object.assign(i,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var n,r,l=o.instanceProps;return i.needToResetStyleCache=!1,e.columnWidth===l.prevColumnWidth&&e.rowHeight===l.prevRowHeight||(i.needToResetStyleCache=!0),l.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),l.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==l.prevColumnCount&&0!==l.prevRowCount||(l.prevColumnCount=0,l.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===l.prevIsScrolling&&Object.assign(i,{isScrolling:!1}),p({cellCount:l.prevColumnCount,cellSize:"number"==typeof l.prevColumnWidth?l.prevColumnWidth:null,computeMetadataCallback:function(){return l.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:l.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){n=t._getScrollLeftForScrollToColumnStateUpdate(e,o)}}),p({cellCount:l.prevRowCount,cellSize:"number"==typeof l.prevRowHeight?l.prevRowHeight:null,computeMetadataCallback:function(){return l.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:l.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){r=t._getScrollTopForScrollToRowStateUpdate(e,o)}}),l.prevColumnCount=e.columnCount,l.prevColumnWidth=e.columnWidth,l.prevIsScrolling=!0===e.isScrolling,l.prevRowCount=e.rowCount,l.prevRowHeight=e.rowHeight,l.prevScrollToColumn=e.scrollToColumn,l.prevScrollToRow=e.scrollToRow,l.scrollbarSize=e.getScrollbarSize(),void 0===l.scrollbarSize?(l.scrollbarSizeMeasured=!1,l.scrollbarSize=0):l.scrollbarSizeMeasured=!0,i.instanceProps=l,O({},i,{},n,{},r)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,o=e.scrollLeft,i=e.scrollTop,n={scrollPositionChangeReason:L};return"number"==typeof o&&o>=0&&(n.scrollDirectionHorizontal=o>t.scrollLeft?1:-1,n.scrollLeft=o),"number"==typeof i&&i>=0&&(n.scrollDirectionVertical=i>t.scrollTop?1:-1,n.scrollTop=i),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof i&&i>=0&&i!==t.scrollTop?n:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,i=e.height,n=e.scrollToAlignment,r=e.scrollToColumn,l=e.width,s=t.scrollLeft,a=t.instanceProps;if(o>0){var c=o-1,d=r<0?c:Math.min(c,r),h=a.rowSizeAndPositionManager.getTotalSize(),u=a.scrollbarSizeMeasured&&h>i?a.scrollbarSize:0;return a.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:l-u,currentOffset:s,targetIndex:d})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var i=o.scrollLeft,n=t._getCalculatedScrollLeft(e,o);return"number"==typeof n&&n>=0&&i!==n?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:n,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,i=e.rowCount,n=e.scrollToAlignment,r=e.scrollToRow,l=e.width,s=t.scrollTop,a=t.instanceProps;if(i>0){var c=i-1,d=r<0?c:Math.min(c,r),h=a.columnSizeAndPositionManager.getTotalSize(),u=a.scrollbarSizeMeasured&&h>l?a.scrollbarSize:0;return a.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o-u,currentOffset:s,targetIndex:d})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var i=o.scrollTop,n=t._getCalculatedScrollTop(e,o);return"number"==typeof n&&n>=0&&i!==n?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:n}):{}}}]),t}(d.PureComponent),(0,c.Z)(R,"propTypes",null),b);(0,c.Z)(G,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,o=e.cellRenderer,i=e.columnSizeAndPositionManager,n=e.columnStartIndex,r=e.columnStopIndex,l=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,a=e.isScrolling,c=e.isScrollingOptOut,d=e.parent,h=e.rowSizeAndPositionManager,u=e.rowStartIndex,f=e.rowStopIndex,p=e.styleCache,g=e.verticalOffsetAdjustment,v=e.visibleColumnIndices,_=e.visibleRowIndices,m=[],S=i.areOffsetsAdjusted()||h.areOffsetsAdjusted(),y=!a&&!S,C=u;C<=f;C++)for(var w=h.getSizeAndPositionOfCell(C),x=n;x<=r;x++){var R=i.getSizeAndPositionOfCell(x),b=x>=v.start&&x<=v.stop&&C>=_.start&&C<=_.stop,z="".concat(C,"-").concat(x),T=void 0;y&&p[z]?T=p[z]:l&&!l.has(C,x)?T={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(T={height:w.size,left:R.offset+s,position:"absolute",top:w.offset+g,width:R.size},p[z]=T);var I={columnIndex:x,isScrolling:a,isVisible:b,key:z,parent:d,rowIndex:C,style:T},Z=void 0;!c&&!a||s||g?Z=o(I):(t[z]||(t[z]=o(I)),Z=t[z]),null!=Z&&!1!==Z&&m.push(Z)}return m},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:x,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,i=e.scrollDirection,n=e.startIndex,r=e.stopIndex;return 1===i?{overscanStartIndex:Math.max(0,n),overscanStopIndex:Math.min(t-1,r+o)}:{overscanStartIndex:Math.max(0,n-o),overscanStopIndex:Math.min(t-1,r)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),(0,h.polyfill)(G);const H=G;function A(e){var t=e.cellCount,o=e.overscanCellsCount,i=e.scrollDirection,n=e.startIndex,r=e.stopIndex;return o=Math.max(1,o),1===i?{overscanStartIndex:Math.max(0,n-1),overscanStopIndex:Math.min(t-1,r+o)}:{overscanStartIndex:Math.max(0,n-o),overscanStopIndex:Math.min(t-1,r+1)}}var W,E;function D(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}var j,F,N=(E=W=function(e){function t(){var e,o;(0,i.Z)(this,t);for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];return o=(0,r.Z)(this,(e=(0,l.Z)(t)).call.apply(e,[this].concat(a))),(0,c.Z)((0,s.Z)(o),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),(0,c.Z)((0,s.Z)(o),"_columnStartIndex",0),(0,c.Z)((0,s.Z)(o),"_columnStopIndex",0),(0,c.Z)((0,s.Z)(o),"_rowStartIndex",0),(0,c.Z)((0,s.Z)(o),"_rowStopIndex",0),(0,c.Z)((0,s.Z)(o),"_onKeyDown",(function(e){var t=o.props,i=t.columnCount,n=t.disabled,r=t.mode,l=t.rowCount;if(!n){var s=o._getScrollState(),a=s.scrollToColumn,c=s.scrollToRow,d=o._getScrollState(),h=d.scrollToColumn,u=d.scrollToRow;switch(e.key){case"ArrowDown":u="cells"===r?Math.min(u+1,l-1):Math.min(o._rowStopIndex+1,l-1);break;case"ArrowLeft":h="cells"===r?Math.max(h-1,0):Math.max(o._columnStartIndex-1,0);break;case"ArrowRight":h="cells"===r?Math.min(h+1,i-1):Math.min(o._columnStopIndex+1,i-1);break;case"ArrowUp":u="cells"===r?Math.max(u-1,0):Math.max(o._rowStartIndex-1,0)}h===a&&u===c||(e.preventDefault(),o._updateScrollState({scrollToColumn:h,scrollToRow:u}))}})),(0,c.Z)((0,s.Z)(o),"_onSectionRendered",(function(e){var t=e.columnStartIndex,i=e.columnStopIndex,n=e.rowStartIndex,r=e.rowStopIndex;o._columnStartIndex=t,o._columnStopIndex=i,o._rowStartIndex=n,o._rowStopIndex=r})),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow;this.setState({scrollToRow:o,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.children,i=this._getScrollState(),n=i.scrollToColumn,r=i.scrollToRow;return d.createElement("div",{className:t,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:n,scrollToRow:r}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow,i=this.props,n=i.isControlled,r=i.onScrollToChange;"function"==typeof r&&r({scrollToColumn:t,scrollToRow:o}),n||this.setState({scrollToColumn:t,scrollToRow:o})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?D(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):D(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(d.PureComponent),(0,c.Z)(W,"propTypes",null),E);function U(e,t){var i,n=void 0!==(i=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o.g).document&&i.document.attachEvent;if(!n){var r=function(){var e=i.requestAnimationFrame||i.mozRequestAnimationFrame||i.webkitRequestAnimationFrame||function(e){return i.setTimeout(e,20)};return function(t){return e(t)}}(),l=function(){var e=i.cancelAnimationFrame||i.mozCancelAnimationFrame||i.webkitCancelAnimationFrame||i.clearTimeout;return function(t){return e(t)}}(),s=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,i=t.lastElementChild,n=o.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,n.style.width=o.offsetWidth+1+"px",n.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight},a=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;s(this),this.__resizeRAF__&&l(this.__resizeRAF__),this.__resizeRAF__=r((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(o){o.call(t,e)})))}))}},c=!1,d="",h="animationstart",u="Webkit Moz O ms".split(" "),f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p=i.document.createElement("fakeelement");if(void 0!==p.style.animationName&&(c=!0),!1===c)for(var g=0;g<u.length;g++)if(void 0!==p.style[u[g]+"AnimationName"]){d="-"+u[g].toLowerCase()+"-",h=f[g],c=!0;break}var v="resizeanim",_="@"+d+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",m=d+"animation: 1ms "+v+"; "}return{addResizeListener:function(t,o){if(n)t.attachEvent("onresize",o);else{if(!t.__resizeTriggers__){var r=t.ownerDocument,l=i.getComputedStyle(t);l&&"static"==l.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var o=(_||"")+".resize-triggers { "+(m||"")+'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%; }',i=t.head||t.getElementsByTagName("head")[0],n=t.createElement("style");n.id="detectElementResize",n.type="text/css",null!=e&&n.setAttribute("nonce",e),n.styleSheet?n.styleSheet.cssText=o:n.appendChild(t.createTextNode(o)),i.appendChild(n)}}(r),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=r.createElement("div")).className="resize-triggers";var c='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var d=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return c}});t.__resizeTriggers__.innerHTML=d.createHTML("")}else t.__resizeTriggers__.innerHTML=c;t.appendChild(t.__resizeTriggers__),s(t),t.addEventListener("scroll",a,!0),h&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==v&&s(t)},t.__resizeTriggers__.addEventListener(h,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(o)}},removeResizeListener:function(e,t){if(n)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(h,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}function B(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function V(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?B(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):B(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}(0,c.Z)(N,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),(0,h.polyfill)(N);var q=(F=j=function(e){function t(){var e,o;(0,i.Z)(this,t);for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];return o=(0,r.Z)(this,(e=(0,l.Z)(t)).call.apply(e,[this].concat(a))),(0,c.Z)((0,s.Z)(o),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),(0,c.Z)((0,s.Z)(o),"_parentNode",void 0),(0,c.Z)((0,s.Z)(o),"_autoSizer",void 0),(0,c.Z)((0,s.Z)(o),"_window",void 0),(0,c.Z)((0,s.Z)(o),"_detectElementResize",void 0),(0,c.Z)((0,s.Z)(o),"_onResize",(function(){var e=o.props,t=e.disableHeight,i=e.disableWidth,n=e.onResize;if(o._parentNode){var r=o._parentNode.offsetHeight||0,l=o._parentNode.offsetWidth||0,s=(o._window||window).getComputedStyle(o._parentNode)||{},a=parseInt(s.paddingLeft,10)||0,c=parseInt(s.paddingRight,10)||0,d=parseInt(s.paddingTop,10)||0,h=parseInt(s.paddingBottom,10)||0,u=r-d-h,f=l-a-c;(!t&&o.state.height!==u||!i&&o.state.width!==f)&&(o.setState({height:r-d-h,width:l-a-c}),n({height:r,width:l}))}})),(0,c.Z)((0,s.Z)(o),"_setRef",(function(e){o._autoSizer=e})),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;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=U(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.className,i=e.disableHeight,n=e.disableWidth,r=e.style,l=this.state,s=l.height,a=l.width,c={overflow:"visible"},h={};return i||(c.height=0,h.height=s),n||(c.width=0,h.width=a),d.createElement("div",{className:o,ref:this._setRef,style:V({},c,{},r)},t(h))}}]),t}(d.Component),(0,c.Z)(j,"propTypes",null),F);(0,c.Z)(q,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var X,Y,K=o(75047),J=(Y=X=function(e){function t(){var e,o;(0,i.Z)(this,t);for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];return o=(0,r.Z)(this,(e=(0,l.Z)(t)).call.apply(e,[this].concat(a))),(0,c.Z)((0,s.Z)(o),"_child",void 0),(0,c.Z)((0,s.Z)(o),"_measure",(function(){var e=o.props,t=e.cache,i=e.columnIndex,n=void 0===i?0:i,r=e.parent,l=e.rowIndex,s=void 0===l?o.props.index||0:l,a=o._getCellMeasurements(),c=a.height,d=a.width;c===t.getHeight(s,n)&&d===t.getWidth(s,n)||(t.set(s,n,d,c),r&&"function"==typeof r.recomputeGridSize&&r.recomputeGridSize({columnIndex:n,rowIndex:s}))})),(0,c.Z)((0,s.Z)(o),"_registerChild",(function(e){!e||e instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),o._child=e,e&&o._maybeMeasureCell()})),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||(0,K.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var o=t.style.width,i=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var n=Math.ceil(t.offsetHeight),r=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),i&&(t.style.height=i),{height:n,width:r}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,i=void 0===o?0:o,n=e.parent,r=e.rowIndex,l=void 0===r?this.props.index||0:r;if(!t.has(l,i)){var s=this._getCellMeasurements(),a=s.height,c=s.width;t.set(l,i,c,a),n&&"function"==typeof n.invalidateCellSizeAfterRender&&n.invalidateCellSizeAfterRender({columnIndex:i,rowIndex:l})}}}]),t}(d.PureComponent),(0,c.Z)(X,"propTypes",null),Y);(0,c.Z)(J,"__internalCellMeasurerFlag",!1);var Q=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.Z)(this,e),(0,c.Z)(this,"_cellHeightCache",{}),(0,c.Z)(this,"_cellWidthCache",{}),(0,c.Z)(this,"_columnWidthCache",{}),(0,c.Z)(this,"_rowHeightCache",{}),(0,c.Z)(this,"_defaultHeight",void 0),(0,c.Z)(this,"_defaultWidth",void 0),(0,c.Z)(this,"_minHeight",void 0),(0,c.Z)(this,"_minWidth",void 0),(0,c.Z)(this,"_keyMapper",void 0),(0,c.Z)(this,"_hasFixedHeight",void 0),(0,c.Z)(this,"_hasFixedWidth",void 0),(0,c.Z)(this,"_columnCount",0),(0,c.Z)(this,"_rowCount",0),(0,c.Z)(this,"columnWidth",(function(e){var o=e.index,i=t._keyMapper(0,o);return void 0!==t._columnWidthCache[i]?t._columnWidthCache[i]:t._defaultWidth})),(0,c.Z)(this,"rowHeight",(function(e){var o=e.index,i=t._keyMapper(o,0);return void 0!==t._rowHeightCache[i]?t._rowHeightCache[i]:t._defaultHeight}));var n=o.defaultHeight,r=o.defaultWidth,l=o.fixedHeight,s=o.fixedWidth,a=o.keyMapper,d=o.minHeight,h=o.minWidth;this._hasFixedHeight=!0===l,this._hasFixedWidth=!0===s,this._minHeight=d||0,this._minWidth=h||0,this._keyMapper=a||$,this._defaultHeight=Math.max(this._minHeight,"number"==typeof n?n:30),this._defaultWidth=Math.max(this._minWidth,"number"==typeof r?r:100)}return(0,n.Z)(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this._keyMapper(e,t);delete this._cellHeightCache[o],delete this._cellWidthCache[o],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var o=this._keyMapper(e,t);return void 0!==this._cellHeightCache[o]?Math.max(this._minHeight,this._cellHeightCache[o]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var o=this._keyMapper(e,t);return void 0!==this._cellWidthCache[o]?Math.max(this._minWidth,this._cellWidthCache[o]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this._keyMapper(e,t);return void 0!==this._cellHeightCache[o]}},{key:"set",value:function(e,t,o,i){var n=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[n]=i,this._cellWidthCache[n]=o,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var o=0,i=0;i<this._rowCount;i++)o=Math.max(o,this.getWidth(i,t));var n=this._keyMapper(0,t);this._columnWidthCache[n]=o}if(!this._hasFixedHeight){for(var r=0,l=0;l<this._columnCount;l++)r=Math.max(r,this.getHeight(e,l));var s=this._keyMapper(e,0);this._rowHeightCache[s]=r}}},{key:"defaultHeight",get:function(){return this._defaultHeight}},{key:"defaultWidth",get:function(){return this._defaultWidth}}]),e}();function $(e,t){return"".concat(e,"-").concat(t)}function ee(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function te(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ee(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ee(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var oe="observed",ie="requested",ne=function(e){function t(){var e,o;(0,i.Z)(this,t);for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];return o=(0,r.Z)(this,(e=(0,l.Z)(t)).call.apply(e,[this].concat(a))),(0,c.Z)((0,s.Z)(o),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),(0,c.Z)((0,s.Z)(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),(0,c.Z)((0,s.Z)(o),"_onSectionRenderedMemoizer",m()),(0,c.Z)((0,s.Z)(o),"_onScrollMemoizer",m(!1)),(0,c.Z)((0,s.Z)(o),"_invokeOnSectionRenderedHelper",(function(){var e=o.props,t=e.cellLayoutManager,i=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:i,indices:{indices:t.getLastRenderedIndices()}})})),(0,c.Z)((0,s.Z)(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),(0,c.Z)((0,s.Z)(o),"_updateScrollPositionForScrollToCell",(function(){var e=o.props,t=e.cellLayoutManager,i=e.height,n=e.scrollToAlignment,r=e.scrollToCell,l=e.width,s=o.state,a=s.scrollLeft,c=s.scrollTop;if(r>=0){var d=t.getScrollPositionForCell({align:n,cellIndex:r,height:i,scrollLeft:a,scrollTop:c,width:l});d.scrollLeft===a&&d.scrollTop===c||o._setScrollPosition(d)}})),(0,c.Z)((0,s.Z)(o),"_onScroll",(function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,i=t.cellLayoutManager,n=t.height,r=t.isScrollingChange,l=t.width,s=o._scrollbarSize,a=i.getTotalSize(),c=a.height,d=a.width,h=Math.max(0,Math.min(d-l+s,e.target.scrollLeft)),u=Math.max(0,Math.min(c-n+s,e.target.scrollTop));if(o.state.scrollLeft!==h||o.state.scrollTop!==u){var f=e.cancelable?oe:ie;o.state.isScrolling||r(!0),o.setState({isScrolling:!0,scrollLeft:h,scrollPositionChangeReason:f,scrollTop:u})}o._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:u,totalWidth:d,totalHeight:c})}})),o._scrollbarSize=x(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,i=e.scrollToCell,n=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=x(),this._scrollbarSizeMeasured=!0,this.setState({})),i>=0?this._updateScrollPositionForScrollToCell():(o>=0||n>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:n}),this._invokeOnSectionRenderedHelper();var r=t.getTotalSize(),l=r.height,s=r.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:n||0,totalHeight:l,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,i=o.height,n=o.scrollToAlignment,r=o.scrollToCell,l=o.width,s=this.state,a=s.scrollLeft,c=s.scrollPositionChangeReason,d=s.scrollTop;c===ie&&(a>=0&&a!==t.scrollLeft&&a!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=a),d>=0&&d!==t.scrollTop&&d!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=d)),i===e.height&&n===e.scrollToAlignment&&r===e.scrollToCell&&l===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,o=e.cellCount,i=e.cellLayoutManager,n=e.className,r=e.height,l=e.horizontalOverscanSize,s=e.id,a=e.noContentRenderer,c=e.style,h=e.verticalOverscanSize,u=e.width,p=this.state,g=p.isScrolling,v=p.scrollLeft,_=p.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==i||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=i,this._calculateSizeAndPositionDataOnNextUpdate=!1,i.calculateSizeAndPositionData());var m=i.getTotalSize(),S=m.height,y=m.width,C=Math.max(0,v-l),w=Math.max(0,_-h),x=Math.min(y,v+u+l),R=Math.min(S,_+r+h),b=r>0&&u>0?i.cellRenderers({height:R-w,isScrolling:g,width:x-C,x:C,y:w}):[],z={boxSizing:"border-box",direction:"ltr",height:t?"auto":r,position:"relative",WebkitOverflowScrolling:"touch",width:u,willChange:"transform"},T=S>r?this._scrollbarSize:0,I=y>u?this._scrollbarSize:0;return z.overflowX=y+T<=u?"hidden":"auto",z.overflowY=S+I<=r?"hidden":"auto",d.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:(0,f.default)("ReactVirtualized__Collection",n),id:s,onScroll:this._onScroll,role:"grid",style:te({},z,{},c),tabIndex:0},o>0&&d.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:S,maxHeight:S,maxWidth:y,overflow:"hidden",pointerEvents:g?"none":"",width:y}},b),0===o&&a())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,i=e.scrollTop,n=e.totalHeight,r=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,i=e.scrollTop,l=t.props,s=l.height;(0,l.onScroll)({clientHeight:s,clientWidth:l.width,scrollHeight:n,scrollLeft:o,scrollTop:i,scrollWidth:r})},indices:{scrollLeft:o,scrollTop:i}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,i={scrollPositionChangeReason:ie};t>=0&&(i.scrollLeft=t),o>=0&&(i.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(i)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:ie}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:ie}}}]),t}(d.PureComponent);(0,c.Z)(ne,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),ne.propTypes={},(0,h.polyfill)(ne);const re=ne;var le=function(){function e(t){var o=t.height,n=t.width,r=t.x,l=t.y;(0,i.Z)(this,e),this.height=o,this.width=n,this.x=r,this.y=l,this._indexMap={},this._indices=[]}return(0,n.Z)(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),se=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;(0,i.Z)(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return(0,n.Z)(e,[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,i=e.x,n=e.y,r={};return this.getSections({height:t,width:o,x:i,y:n}).forEach((function(e){return e.getCellIndices().forEach((function(e){r[e]=e}))})),Object.keys(r).map((function(e){return r[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,o=e.width,i=e.x,n=e.y,r=Math.floor(i/this._sectionSize),l=Math.floor((i+o-1)/this._sectionSize),s=Math.floor(n/this._sectionSize),a=Math.floor((n+t-1)/this._sectionSize),c=[],d=r;d<=l;d++)for(var h=s;h<=a;h++){var u="".concat(d,".").concat(h);this._sections[u]||(this._sections[u]=new le({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:h*this._sectionSize})),c.push(this._sections[u])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,o=e.index;this._cellMetadata[o]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:o})}))}}]),e}();function ae(e){var t=e.align,o=void 0===t?"auto":t,i=e.cellOffset,n=e.cellSize,r=e.containerSize,l=e.currentOffset,s=i,a=s-r+n;switch(o){case"start":return s;case"end":return a;case"center":return s-(r-n)/2;default:return Math.max(a,Math.min(s,l))}}var ce=function(e){function t(e,o){var n;return(0,i.Z)(this,t),(n=(0,r.Z)(this,(0,l.Z)(t).call(this,e,o)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind((0,s.Z)(n)),n._setCollectionViewRef=n._setCollectionViewRef.bind((0,s.Z)(n)),n}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=(0,u.Z)({},this.props);return d.createElement(re,(0,u.Z)({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,o=e.cellSizeAndPositionGetter,i=[],n=new se(e.sectionSize),r=0,l=0,s=0;s<t;s++){var a=o({index:s});if(null==a.height||isNaN(a.height)||null==a.width||isNaN(a.width)||null==a.x||isNaN(a.x)||null==a.y||isNaN(a.y))throw Error("Invalid metadata returned for cell ".concat(s,":\n x:").concat(a.x,", y:").concat(a.y,", width:").concat(a.width,", height:").concat(a.height));r=Math.max(r,a.y+a.height),l=Math.max(l,a.x+a.width),i[s]=a,n.registerCell({cellMetadatum:a,index:s})}return{cellMetadata:i,height:r,sectionManager:n,width:l}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,o=e.cellIndex,i=e.height,n=e.scrollLeft,r=e.scrollTop,l=e.width,s=this.props.cellCount;if(o>=0&&o<s){var a=this._cellMetadata[o];n=ae({align:t,cellOffset:a.x,cellSize:a.width,containerSize:l,currentOffset:n,targetIndex:o}),r=ae({align:t,cellOffset:a.y,cellSize:a.height,containerSize:i,currentOffset:r,targetIndex:o})}return{scrollLeft:n,scrollTop:r}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,i=e.isScrolling,n=e.width,r=e.x,l=e.y,s=this.props,a=s.cellGroupRenderer,c=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:n,x:r,y:l}),a({cellCache:this._cellCache,cellRenderer:c,cellSizeAndPositionGetter:function(e){var o=e.index;return t._sectionManager.getCellMetadata({index:o})},indices:this._lastRenderedCellIndices,isScrolling:i})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(d.PureComponent);(0,c.Z)(ce,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,o=e.cellRenderer,i=e.cellSizeAndPositionGetter,n=e.indices,r=e.isScrolling;return n.map((function(e){var n=i({index:e}),l={index:e,isScrolling:r,key:e,style:{height:n.height,left:n.x,position:"absolute",top:n.y,width:n.width}};return r?(e in t||(t[e]=o(l)),t[e]):o(l)})).filter((function(e){return!!e}))}}),ce.propTypes={},(function(e){function t(e,o){var n;return(0,i.Z)(this,t),(n=(0,r.Z)(this,(0,l.Z)(t).call(this,e,o)))._registerChild=n._registerChild.bind((0,s.Z)(n)),n}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,i=t.columnMinWidth,n=t.columnCount,r=t.width;o===e.columnMaxWidth&&i===e.columnMinWidth&&n===e.columnCount&&r===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,i=e.columnMinWidth,n=e.columnCount,r=e.width,l=i||1,s=o?Math.min(o,r):r,a=r/n;return a=Math.max(l,a),a=Math.min(s,a),a=Math.floor(a),t({adjustedWidth:Math.min(r,a*n),columnWidth:a,getColumnWidth:function(){return a},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(d.PureComponent)).propTypes={};var de=o(38777),he=function(e){function t(e,o){var n;return(0,i.Z)(this,t),(n=(0,r.Z)(this,(0,l.Z)(t).call(this,e,o)))._loadMoreRowsMemoizer=m(),n._onRowsRendered=n._onRowsRendered.bind((0,s.Z)(n)),n._registerChild=n._registerChild.bind((0,s.Z)(n)),n}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=m(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,o=this.props.loadMoreRows;e.forEach((function(e){var i=o(e);i&&i.then((function(){var o;(o={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex}).startIndex>o.lastRenderedStopIndex||o.stopIndex<o.lastRenderedStartIndex||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;o?o.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,o=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=o,this._doStuff(t,o)}},{key:"_doStuff",value:function(e,t){var o,i=this,n=this.props,r=n.isRowLoaded,l=n.minimumBatchSize,s=n.rowCount,a=n.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,i=e.rowCount,n=e.stopIndex,r=[],l=null,s=null,a=e.startIndex;a<=n;a++)t({index:a})?null!==s&&(r.push({startIndex:l,stopIndex:s}),l=s=null):(s=a,null===l&&(l=a));if(null!==s){for(var c=Math.min(Math.max(s,l+o-1),i-1),d=s+1;d<=c&&!t({index:d});d++)s=d;r.push({startIndex:l,stopIndex:s})}if(r.length)for(var h=r[0];h.stopIndex-h.startIndex+1<o&&h.startIndex>0;){var u=h.startIndex-1;if(t({index:u}))break;h.startIndex=u}return r}({isRowLoaded:r,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,e-a),stopIndex:Math.min(s-1,t+a)}),d=(o=[]).concat.apply(o,(0,de.Z)(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){i._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(d.PureComponent);(0,c.Z)(he,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),he.propTypes={};var ue,fe,pe=(fe=ue=function(e){function t(){var e,o;(0,i.Z)(this,t);for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];return o=(0,r.Z)(this,(e=(0,l.Z)(t)).call.apply(e,[this].concat(a))),(0,c.Z)((0,s.Z)(o),"Grid",void 0),(0,c.Z)((0,s.Z)(o),"_cellRenderer",(function(e){var t=e.parent,i=e.rowIndex,n=e.style,r=e.isScrolling,l=e.isVisible,s=e.key,a=o.props.rowRenderer,c=Object.getOwnPropertyDescriptor(n,"width");return c&&c.writable&&(n.width="100%"),a({index:i,style:n,isScrolling:r,isVisible:l,key:s,parent:t})})),(0,c.Z)((0,s.Z)(o),"_setRef",(function(e){o.Grid=e})),(0,c.Z)((0,s.Z)(o),"_onScroll",(function(e){var t=e.clientHeight,i=e.scrollHeight,n=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:i,scrollTop:n})})),(0,c.Z)((0,s.Z)(o),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,i=e.rowOverscanStopIndex,n=e.rowStartIndex,r=e.rowStopIndex;(0,o.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:i,startIndex:n,stopIndex:r})})),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,i=e.rowIndex,n=void 0===i?0:i;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.noRowsRenderer,i=e.scrollToIndex,n=e.width,r=(0,f.default)("ReactVirtualized__List",t);return d.createElement(H,(0,u.Z)({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:r,columnWidth:n,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:i}))}}]),t}(d.PureComponent),(0,c.Z)(ue,"propTypes",null),fe);(0,c.Z)(pe,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:A,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});var ge=o(2867);const ve=function(e,t,o,i,n){return"function"==typeof o?function(e,t,o,i,n){for(var r=o+1;t<=o;){var l=t+o>>>1;n(e[l],i)>=0?(r=l,o=l-1):t=l+1}return r}(e,void 0===i?0:0|i,void 0===n?e.length-1:0|n,t,o):function(e,t,o,i){for(var n=o+1;t<=o;){var r=t+o>>>1;e[r]>=i?(n=r,o=r-1):t=r+1}return n}(e,void 0===o?0:0|o,void 0===i?e.length-1:0|i,t)};function _e(e,t,o,i,n){this.mid=e,this.left=t,this.right=o,this.leftPoints=i,this.rightPoints=n,this.count=(t?t.count:0)+(o?o.count:0)+i.length}var me=_e.prototype;function Se(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function ye(e,t){var o=Ze(t);e.mid=o.mid,e.left=o.left,e.right=o.right,e.leftPoints=o.leftPoints,e.rightPoints=o.rightPoints,e.count=o.count}function Ce(e,t){var o=e.intervals([]);o.push(t),ye(e,o)}function we(e,t){var o=e.intervals([]),i=o.indexOf(t);return i<0?0:(o.splice(i,1),ye(e,o),1)}function xe(e,t,o){for(var i=0;i<e.length&&e[i][0]<=t;++i){var n=o(e[i]);if(n)return n}}function Re(e,t,o){for(var i=e.length-1;i>=0&&e[i][1]>=t;--i){var n=o(e[i]);if(n)return n}}function be(e,t){for(var o=0;o<e.length;++o){var i=t(e[o]);if(i)return i}}function ze(e,t){return e-t}function Te(e,t){return e[0]-t[0]||e[1]-t[1]}function Ie(e,t){return e[1]-t[1]||e[0]-t[0]}function Ze(e){if(0===e.length)return null;for(var t=[],o=0;o<e.length;++o)t.push(e[o][0],e[o][1]);t.sort(ze);var i=t[t.length>>1],n=[],r=[],l=[];for(o=0;o<e.length;++o){var s=e[o];s[1]<i?n.push(s):i<s[0]?r.push(s):l.push(s)}var a=l,c=l.slice();return a.sort(Te),c.sort(Ie),new _e(i,Ze(n),Ze(r),a,c)}function Me(e){this.root=e}me.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},me.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?Ce(this,e):this.left.insert(e):this.left=Ze([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Ce(this,e):this.right.insert(e):this.right=Ze([e]);else{var o=ve(this.leftPoints,e,Te),i=ve(this.rightPoints,e,Ie);this.leftPoints.splice(o,0,e),this.rightPoints.splice(i,0,e)}},me.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?we(this,e):2===(r=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===r&&(this.count-=1),r):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?we(this,e):2===(r=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===r&&(this.count-=1),r):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var o=this,i=this.left;i.right;)o=i,i=i.right;if(o===this)i.right=this.right;else{var n=this.left,r=this.right;o.count-=i.count,o.right=i.left,i.left=n,i.right=r}Se(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Se(this,this.left):Se(this,this.right);return 1}for(n=ve(this.leftPoints,e,Te);n<this.leftPoints.length&&this.leftPoints[n][0]===e[0];++n)if(this.leftPoints[n]===e)for(this.count-=1,this.leftPoints.splice(n,1),r=ve(this.rightPoints,e,Ie);r<this.rightPoints.length&&this.rightPoints[r][1]===e[1];++r)if(this.rightPoints[r]===e)return this.rightPoints.splice(r,1),1;return 0},me.queryPoint=function(e,t){return e<this.mid?this.left&&(o=this.left.queryPoint(e,t))?o:xe(this.leftPoints,e,t):e>this.mid?this.right&&(o=this.right.queryPoint(e,t))?o:Re(this.rightPoints,e,t):be(this.leftPoints,t);var o},me.queryInterval=function(e,t,o){var i;return e<this.mid&&this.left&&(i=this.left.queryInterval(e,t,o))||t>this.mid&&this.right&&(i=this.right.queryInterval(e,t,o))?i:t<this.mid?xe(this.leftPoints,t,o):e>this.mid?Re(this.rightPoints,e,o):be(this.leftPoints,o)};var ke=Me.prototype;ke.insert=function(e){this.root?this.root.insert(e):this.root=new _e(e[0],null,null,[e],[e])},ke.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},ke.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},ke.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(ke,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(ke,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Pe,Oe,Le=function(){function e(){(0,i.Z)(this,e),(0,c.Z)(this,"_columnSizeMap",{}),(0,c.Z)(this,"_intervalTree",new Me(null)),(0,c.Z)(this,"_leftMap",{})}return(0,n.Z)(e,[{key:"estimateTotalHeight",value:function(e,t,o){var i=e-this.count;return this.tallestColumnSize+Math.ceil(i/t)*o}},{key:"range",value:function(e,t,o){var i=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=(0,ge.Z)(e,3),n=t[0],r=(t[1],t[2]);return o(r,i._leftMap[r],n)}))}},{key:"setPosition",value:function(e,t,o,i){this._intervalTree.insert([o,o+i,e]),this._leftMap[e]=t;var n=this._columnSizeMap,r=n[t];n[t]=void 0===r?o+i:Math.max(r,o+i)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var i=e[o];t=0===t?i:Math.min(t,i)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var i=e[o];t=Math.max(t,i)}return t}}]),e}();function Ge(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function He(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ge(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ge(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Ae=(Oe=Pe=function(e){function t(){var e,o;(0,i.Z)(this,t);for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];return o=(0,r.Z)(this,(e=(0,l.Z)(t)).call.apply(e,[this].concat(a))),(0,c.Z)((0,s.Z)(o),"state",{isScrolling:!1,scrollTop:0}),(0,c.Z)((0,s.Z)(o),"_debounceResetIsScrollingId",void 0),(0,c.Z)((0,s.Z)(o),"_invalidateOnUpdateStartIndex",null),(0,c.Z)((0,s.Z)(o),"_invalidateOnUpdateStopIndex",null),(0,c.Z)((0,s.Z)(o),"_positionCache",new Le),(0,c.Z)((0,s.Z)(o),"_startIndex",null),(0,c.Z)((0,s.Z)(o),"_startIndexMemoized",null),(0,c.Z)((0,s.Z)(o),"_stopIndex",null),(0,c.Z)((0,s.Z)(o),"_stopIndexMemoized",null),(0,c.Z)((0,s.Z)(o),"_debounceResetIsScrollingCallback",(function(){o.setState({isScrolling:!1})})),(0,c.Z)((0,s.Z)(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),(0,c.Z)((0,s.Z)(o),"_onScroll",(function(e){var t=o.props.height,i=e.currentTarget.scrollTop,n=Math.min(Math.max(0,o._getEstimatedTotalHeight()-t),i);i===n&&(o._debounceResetIsScrolling(),o.state.scrollTop!==n&&o.setState({isScrolling:!0,scrollTop:n}))})),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Le,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new Le,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&M(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,i=o.autoHeight,n=o.cellCount,r=o.cellMeasurerCache,l=o.cellRenderer,s=o.className,a=o.height,h=o.id,u=o.keyMapper,p=o.overscanByPixels,g=o.role,v=o.style,_=o.tabIndex,m=o.width,S=o.rowDirection,y=this.state,C=y.isScrolling,w=y.scrollTop,x=[],R=this._getEstimatedTotalHeight(),b=this._positionCache.shortestColumnSize,z=this._positionCache.count,T=0;if(this._positionCache.range(Math.max(0,w-p),a+2*p,(function(o,i,n){var s;void 0===e?(T=o,e=o):(T=Math.min(T,o),e=Math.max(e,o)),x.push(l({index:o,isScrolling:C,key:u(o),parent:t,style:(s={height:r.getHeight(o)},(0,c.Z)(s,"ltr"===S?"left":"right",i),(0,c.Z)(s,"position","absolute"),(0,c.Z)(s,"top",n),(0,c.Z)(s,"width",r.getWidth(o)),s)}))})),b<w+a+p&&z<n)for(var I=Math.min(n-z,Math.ceil((w+a+p-b)/r.defaultHeight*m/r.defaultWidth)),Z=z;Z<z+I;Z++)e=Z,x.push(l({index:Z,isScrolling:C,key:u(Z),parent:this,style:{width:r.getWidth(Z)}}));return this._startIndex=T,this._stopIndex=e,d.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:(0,f.default)("ReactVirtualized__Masonry",s),id:h,onScroll:this._onScroll,role:g,style:He({boxSizing:"border-box",direction:"ltr",height:i?"auto":a,overflowX:"hidden",overflowY:R<a?"hidden":"auto",position:"relative",width:m,WebkitOverflowScrolling:"touch",willChange:"transform"},v),tabIndex:_},d.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:R,maxWidth:"100%",maxHeight:R,overflow:"hidden",pointerEvents:C?"none":"",position:"relative"}},x))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&M(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=k(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,i=e.width,n=Math.max(1,Math.floor(i/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,n,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,i=this.state.scrollTop;this._onScrollMemoized!==i&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:i}),this._onScrollMemoized=i)}},{key:"_invokeOnCellsRenderedCallback",value:function(){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)}},{key:"_populatePositionCache",value:function(e,t){for(var o=this.props,i=o.cellMeasurerCache,n=o.cellPositioner,r=e;r<=t;r++){var l=n(r),s=l.left,a=l.top;this._positionCache.setPosition(r,s,a,i.getHeight(r))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(d.PureComponent),(0,c.Z)(Pe,"propTypes",null),Oe);function We(){}(0,c.Z)(Ae,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:We,onScroll:We,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),(0,h.polyfill)(Ae);var Ee=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.Z)(this,e),(0,c.Z)(this,"_cellMeasurerCache",void 0),(0,c.Z)(this,"_columnIndexOffset",void 0),(0,c.Z)(this,"_rowIndexOffset",void 0),(0,c.Z)(this,"columnWidth",(function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})})),(0,c.Z)(this,"rowHeight",(function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})}));var n=o.cellMeasurerCache,r=o.columnIndexOffset,l=void 0===r?0:r,s=o.rowIndexOffset,a=void 0===s?0:s;this._cellMeasurerCache=n,this._columnIndexOffset=l,this._rowIndexOffset=a}return(0,n.Z)(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,o,i){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,i)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function De(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function je(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?De(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):De(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Fe=function(e){function t(e,o){var n;(0,i.Z)(this,t),n=(0,r.Z)(this,(0,l.Z)(t).call(this,e,o)),(0,c.Z)((0,s.Z)(n),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),(0,c.Z)((0,s.Z)(n),"_deferredInvalidateColumnIndex",null),(0,c.Z)((0,s.Z)(n),"_deferredInvalidateRowIndex",null),(0,c.Z)((0,s.Z)(n),"_bottomLeftGridRef",(function(e){n._bottomLeftGrid=e})),(0,c.Z)((0,s.Z)(n),"_bottomRightGridRef",(function(e){n._bottomRightGrid=e})),(0,c.Z)((0,s.Z)(n),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,o=(0,g.Z)(e,["rowIndex"]),i=n.props,r=i.cellRenderer,l=i.fixedRowCount;return t===i.rowCount-l?d.createElement("div",{key:o.key,style:je({},o.style,{height:20})}):r(je({},o,{parent:(0,s.Z)(n),rowIndex:t+l}))})),(0,c.Z)((0,s.Z)(n),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,o=e.rowIndex,i=(0,g.Z)(e,["columnIndex","rowIndex"]),r=n.props,l=r.cellRenderer,a=r.fixedColumnCount,c=r.fixedRowCount;return l(je({},i,{columnIndex:t+a,parent:(0,s.Z)(n),rowIndex:o+c}))})),(0,c.Z)((0,s.Z)(n),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,o=(0,g.Z)(e,["columnIndex"]),i=n.props,r=i.cellRenderer,l=i.columnCount,a=i.fixedColumnCount;return t===l-a?d.createElement("div",{key:o.key,style:je({},o.style,{width:20})}):r(je({},o,{columnIndex:t+a,parent:(0,s.Z)(n)}))})),(0,c.Z)((0,s.Z)(n),"_columnWidthRightGrid",(function(e){var t=e.index,o=n.props,i=o.columnCount,r=o.fixedColumnCount,l=o.columnWidth,s=n.state,a=s.scrollbarSize;return s.showHorizontalScrollbar&&t===i-r?a:"function"==typeof l?l({index:t+r}):l})),(0,c.Z)((0,s.Z)(n),"_onScroll",(function(e){var t=e.scrollLeft,o=e.scrollTop;n.setState({scrollLeft:t,scrollTop:o});var i=n.props.onScroll;i&&i(e)})),(0,c.Z)((0,s.Z)(n),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,o=e.size,i=e.vertical,r=n.state,l=r.showHorizontalScrollbar,s=r.showVerticalScrollbar;if(t!==l||i!==s){n.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:i});var a=n.props.onScrollbarPresenceChange;"function"==typeof a&&a({horizontal:t,size:o,vertical:i})}})),(0,c.Z)((0,s.Z)(n),"_onScrollLeft",(function(e){var t=e.scrollLeft;n._onScroll({scrollLeft:t,scrollTop:n.state.scrollTop})})),(0,c.Z)((0,s.Z)(n),"_onScrollTop",(function(e){var t=e.scrollTop;n._onScroll({scrollTop:t,scrollLeft:n.state.scrollLeft})})),(0,c.Z)((0,s.Z)(n),"_rowHeightBottomGrid",(function(e){var t=e.index,o=n.props,i=o.fixedRowCount,r=o.rowCount,l=o.rowHeight,s=n.state,a=s.scrollbarSize;return s.showVerticalScrollbar&&t===r-i?a:"function"==typeof l?l({index:t+i}):l})),(0,c.Z)((0,s.Z)(n),"_topLeftGridRef",(function(e){n._topLeftGrid=e})),(0,c.Z)((0,s.Z)(n),"_topRightGridRef",(function(e){n._topRightGrid=e}));var a=e.deferredMeasurementCache,h=e.fixedColumnCount,u=e.fixedRowCount;return n._maybeCalculateCachedStyles(!0),a&&(n._deferredMeasurementCacheBottomLeftGrid=u>0?new Ee({cellMeasurerCache:a,columnIndexOffset:0,rowIndexOffset:u}):a,n._deferredMeasurementCacheBottomRightGrid=h>0||u>0?new Ee({cellMeasurerCache:a,columnIndexOffset:h,rowIndexOffset:u}):a,n._deferredMeasurementCacheTopRightGrid=h>0?new Ee({cellMeasurerCache:a,columnIndexOffset:h,rowIndexOffset:0}):a),n}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,i=e.rowIndex,n=void 0===i?0:i;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,i=e.rowIndex,n=void 0===i?0:i,r=this.props,l=r.fixedColumnCount,s=r.fixedRowCount,a=Math.max(0,o-l),c=Math.max(0,n-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:a,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:n}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:a,rowIndex:n}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,o=e.scrollTop;if(t>0||o>0){var i={};t>0&&(i.scrollLeft=t),o>0&&(i.scrollTop=o),this.setState(i)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,o=e.onSectionRendered,i=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),n=(e.scrollTop,e.scrollToRow),r=(0,g.Z)(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var l=this.state,s=l.scrollLeft,a=l.scrollTop;return d.createElement("div",{style:this._containerOuterStyle},d.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(r),this._renderTopRightGrid(je({},r,{onScroll:t,scrollLeft:s}))),d.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(je({},r,{onScroll:t,scrollTop:a})),this._renderBottomRightGrid(je({},r,{onScroll:t,onSectionRendered:o,scrollLeft:s,scrollToColumn:i,scrollToRow:n,scrollTop:a}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,o=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof o){for(var i=0,n=0;n<t;n++)i+=o({index:n});this._leftGridWidth=i}else this._leftGridWidth=o*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,o=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof o){for(var i=0,n=0;n<t;n++)i+=o({index:n});this._topGridHeight=i}else this._topGridHeight=o*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,o=t.columnWidth,i=t.enableFixedColumnScroll,n=t.enableFixedRowScroll,r=t.height,l=t.fixedColumnCount,s=t.fixedRowCount,a=t.rowHeight,c=t.style,d=t.styleBottomLeftGrid,h=t.styleBottomRightGrid,u=t.styleTopLeftGrid,f=t.styleTopRightGrid,p=t.width,g=e||r!==this._lastRenderedHeight||p!==this._lastRenderedWidth,v=e||o!==this._lastRenderedColumnWidth||l!==this._lastRenderedFixedColumnCount,_=e||s!==this._lastRenderedFixedRowCount||a!==this._lastRenderedRowHeight;(e||g||c!==this._lastRenderedStyle)&&(this._containerOuterStyle=je({height:r,overflow:"visible",width:p},c)),(e||g||_)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:p},this._containerBottomStyle={height:r-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:p}),(e||d!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=je({left:0,overflowX:"hidden",overflowY:i?"auto":"hidden",position:"absolute"},d)),(e||v||h!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=je({left:this._getLeftGridWidth(this.props),position:"absolute"},h)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=je({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||v||f!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=je({left:this._getLeftGridWidth(this.props),overflowX:n?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},f)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=l,this._lastRenderedFixedRowCount=s,this._lastRenderedHeight=r,this._lastRenderedRowHeight=a,this._lastRenderedStyle=c,this._lastRenderedStyleBottomLeftGrid=d,this._lastRenderedStyleBottomRightGrid=h,this._lastRenderedStyleTopLeftGrid=u,this._lastRenderedStyleTopRightGrid=f,this._lastRenderedWidth=p}},{key:"_prepareForRender",value:function(){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}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,o=e.fixedColumnCount,i=e.fixedRowCount,n=e.rowCount,r=e.hideBottomLeftGridScrollbar,l=this.state.showVerticalScrollbar;if(!o)return null;var s=l?1:0,a=this._getBottomGridHeight(e),c=this._getLeftGridWidth(e),h=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,f=r?c+h:c,p=d.createElement(H,(0,u.Z)({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:a,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,n-i)+s,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:f}));return r?d.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:je({},this._bottomLeftGridStyle,{height:a,width:c,overflowY:"hidden"})},p):p}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,o=e.fixedColumnCount,i=e.fixedRowCount,n=e.rowCount,r=e.scrollToColumn,l=e.scrollToRow;return d.createElement(H,(0,u.Z)({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-o),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,n-i),rowHeight:this._rowHeightBottomGrid,scrollToColumn:r-o,scrollToRow:l-i,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?d.createElement(H,(0,u.Z)({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:o,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,o=e.enableFixedRowScroll,i=e.fixedColumnCount,n=e.fixedRowCount,r=e.scrollLeft,l=e.hideTopRightGridScrollbar,s=this.state,a=s.showHorizontalScrollbar,c=s.scrollbarSize;if(!n)return null;var h=a?1:0,f=this._getTopGridHeight(e),p=this._getRightGridWidth(e),g=a?c:0,v=f,_=this._topRightGridStyle;l&&(v=f+g,_=je({},this._topRightGridStyle,{left:0}));var m=d.createElement(H,(0,u.Z)({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-i)+h,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:v,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:n,scrollLeft:r,style:_,tabIndex:null,width:p}));return l?d.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:je({},this._topRightGridStyle,{height:f,width:p,overflowX:"hidden"})},m):m}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(d.PureComponent);function Ne(e){var t=e.className,o=e.columns,i=e.style;return d.createElement("div",{className:t,role:"row",style:i},o)}(0,c.Z)(Fe,"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}),Fe.propTypes={},(0,h.polyfill)(Fe),(function(e){function t(e,o){var n;return(0,i.Z)(this,t),(n=(0,r.Z)(this,(0,l.Z)(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind((0,s.Z)(n)),n}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,i=t.clientWidth,n=t.scrollHeight,r=t.scrollLeft,l=t.scrollTop,s=t.scrollWidth;return e({clientHeight:o,clientWidth:i,onScroll:this._onScroll,scrollHeight:n,scrollLeft:r,scrollTop:l,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,i=e.scrollHeight,n=e.scrollLeft,r=e.scrollTop,l=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:l})}}]),t}(d.PureComponent)).propTypes={},Ne.propTypes=null;const Ue="ASC",Be="DESC";function Ve(e){var t=e.sortDirection,o=(0,f.default)("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Ue,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Be});return d.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===Ue?d.createElement("path",{d:"M7 14l5-5 5 5z"}):d.createElement("path",{d:"M7 10l5 5 5-5z"}),d.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function qe(e){var t=e.dataKey,o=e.label,i=e.sortBy,n=e.sortDirection,r=i===t,l=[d.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return r&&l.push(d.createElement(Ve,{key:"SortIndicator",sortDirection:n})),l}function Xe(e){var t=e.className,o=e.columns,i=e.index,n=e.key,r=e.onRowClick,l=e.onRowDoubleClick,s=e.onRowMouseOut,a=e.onRowMouseOver,c=e.onRowRightClick,h=e.rowData,f=e.style,p={"aria-rowindex":i+1};return(r||l||s||a||c)&&(p["aria-label"]="row",p.tabIndex=0,r&&(p.onClick=function(e){return r({event:e,index:i,rowData:h})}),l&&(p.onDoubleClick=function(e){return l({event:e,index:i,rowData:h})}),s&&(p.onMouseOut=function(e){return s({event:e,index:i,rowData:h})}),a&&(p.onMouseOver=function(e){return a({event:e,index:i,rowData:h})}),c&&(p.onContextMenu=function(e){return c({event:e,index:i,rowData:h})})),d.createElement("div",(0,u.Z)({},p,{className:t,key:n,role:"row",style:f}),o)}Ve.propTypes={},qe.propTypes=null,Xe.propTypes=null;var Ye=function(e){function t(){return(0,i.Z)(this,t),(0,r.Z)(this,(0,l.Z)(t).apply(this,arguments))}return(0,a.Z)(t,e),t}(d.Component);function Ke(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Je(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ke(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ke(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}(0,c.Z)(Ye,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,o=e.rowData;return"function"==typeof o.get?o.get(t):o[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:Ue,flexGrow:0,flexShrink:1,headerRenderer:qe,style:{}}),Ye.propTypes={};var Qe=function(e){function t(e){var o;return(0,i.Z)(this,t),(o=(0,r.Z)(this,(0,l.Z)(t).call(this,e))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind((0,s.Z)(o)),o._createRow=o._createRow.bind((0,s.Z)(o)),o._onScroll=o._onScroll.bind((0,s.Z)(o)),o._onSectionRendered=o._onSectionRendered.bind((0,s.Z)(o)),o._setRef=o._setRef.bind((0,s.Z)(o)),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,i=e.rowIndex,n=void 0===i?0:i;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=(0,K.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,o=t.children,i=t.className,n=t.disableHeader,r=t.gridClassName,l=t.gridStyle,s=t.headerHeight,a=t.headerRowRenderer,c=t.height,h=t.id,p=t.noRowsRenderer,g=t.rowClassName,v=t.rowStyle,_=t.scrollToIndex,m=t.style,S=t.width,y=this.state.scrollbarWidth,C=n?c:c-s,w="function"==typeof g?g({index:-1}):g,x="function"==typeof v?v({index:-1}):v;return this._cachedColumnStyles=[],d.Children.toArray(o).forEach((function(t,o){var i=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=Je({overflow:"hidden"},i)})),d.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":d.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:(0,f.default)("ReactVirtualized__Table",i),id:h,role:"grid",style:m},!n&&a({className:(0,f.default)("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:Je({height:s,overflow:"hidden",paddingRight:y,width:S},x)}),d.createElement(H,(0,u.Z)({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:(0,f.default)("ReactVirtualized__Table__Grid",r),cellRenderer:this._createRow,columnWidth:S,columnCount:1,height:C,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:_,style:Je({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,i=e.isScrolling,n=e.parent,r=e.rowData,l=e.rowIndex,s=this.props.onColumnClick,a=t.props,c=a.cellDataGetter,h=a.cellRenderer,u=a.className,p=a.columnData,g=a.dataKey,v=a.id,_=h({cellData:c({columnData:p,dataKey:g,rowData:r}),columnData:p,columnIndex:o,dataKey:g,isScrolling:i,parent:n,rowData:r,rowIndex:l}),m=this._cachedColumnStyles[o],S="string"==typeof _?_:null;return d.createElement("div",{"aria-colindex":o+1,"aria-describedby":v,className:(0,f.default)("ReactVirtualized__Table__rowColumn",u),key:"Row"+l+"-Col"+o,onClick:function(e){s&&s({columnData:p,dataKey:g,event:e})},role:"gridcell",style:m,title:S},_)}},{key:"_createHeader",value:function(e){var t,o,i,n,r,l=e.column,s=e.index,a=this.props,c=a.headerClassName,h=a.headerStyle,u=a.onHeaderClick,p=a.sort,g=a.sortBy,v=a.sortDirection,_=l.props,m=_.columnData,S=_.dataKey,y=_.defaultSortDirection,C=_.disableSort,w=_.headerRenderer,x=_.id,R=_.label,b=!C&&p,z=(0,f.default)("ReactVirtualized__Table__headerColumn",c,l.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:b}),T=this._getFlexStyleForColumn(l,Je({},h,{},l.props.headerStyle)),I=w({columnData:m,dataKey:S,disableSort:C,label:R,sortBy:g,sortDirection:v});if(b||u){var Z=g!==S?y:v===Be?Ue:Be,M=function(e){b&&p({defaultSortDirection:y,event:e,sortBy:S,sortDirection:Z}),u&&u({columnData:m,dataKey:S,event:e})};r=l.props["aria-label"]||R||S,n="none",i=0,t=M,o=function(e){"Enter"!==e.key&&" "!==e.key||M(e)}}return g===S&&(n=v===Ue?"ascending":"descending"),d.createElement("div",{"aria-label":r,"aria-sort":n,className:z,id:x,key:"Header-Col"+s,onClick:t,onKeyDown:o,role:"columnheader",style:T,tabIndex:i},I)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,i=e.isScrolling,n=e.key,r=e.parent,l=e.style,s=this.props,a=s.children,c=s.onRowClick,h=s.onRowDoubleClick,u=s.onRowRightClick,p=s.onRowMouseOver,g=s.onRowMouseOut,v=s.rowClassName,_=s.rowGetter,m=s.rowRenderer,S=s.rowStyle,y=this.state.scrollbarWidth,C="function"==typeof v?v({index:o}):v,w="function"==typeof S?S({index:o}):S,x=_({index:o}),R=d.Children.toArray(a).map((function(e,n){return t._createColumn({column:e,columnIndex:n,isScrolling:i,parent:r,rowData:x,rowIndex:o,scrollbarWidth:y})})),b=(0,f.default)("ReactVirtualized__Table__row",C),z=Je({},l,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:y},w);return m({className:b,columns:R,index:o,isScrolling:i,key:n,onRowClick:c,onRowDoubleClick:h,onRowRightClick:u,onRowMouseOver:p,onRowMouseOut:g,rowData:x,style:z})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),i=Je({},t,{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(i.maxWidth=e.props.maxWidth),e.props.minWidth&&(i.minWidth=e.props.minWidth),i}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,o=t.children;return(t.disableHeader?[]:d.Children.toArray(o)).map((function(t,o){return e._createHeader({column:t,index:o})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.scrollHeight,i=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:i})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,i=e.rowStartIndex,n=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:i,stopIndex:n})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(d.PureComponent);(0,c.Z)(Qe,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:A,overscanRowCount:10,rowRenderer:Xe,headerRowRenderer:Ne,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),Qe.propTypes={};var $e=[],et=null,tt=null;function ot(){tt&&(tt=null,document.body&&null!=et&&(document.body.style.pointerEvents=et),et=null)}function it(){ot(),$e.forEach((function(e){return e.__resetIsScrolling()}))}function nt(e){e.currentTarget===window&&null==et&&document.body&&(et=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){tt&&M(tt);var e=0;$e.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),tt=k(it,e)}(),$e.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function rt(e,t){$e.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",nt),$e.push(e)}function lt(e,t){($e=$e.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",nt),tt&&(M(tt),ot()))}var st,at,ct=function(e){return e===window},dt=function(e){return e.getBoundingClientRect()};function ht(e,t){if(e){if(ct(e)){var o=window,i=o.innerHeight,n=o.innerWidth;return{height:"number"==typeof i?i:0,width:"number"==typeof n?n:0}}return dt(e)}return{height:t.serverHeight,width:t.serverWidth}}function ut(e,t){if(ct(t)&&document.documentElement){var o=document.documentElement,i=dt(e),n=dt(o);return{top:i.top-n.top,left:i.left-n.left}}var r=ft(t),l=dt(e),s=dt(t);return{top:l.top+r.top-s.top,left:l.left+r.left-s.left}}function ft(e){return ct(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function pt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function gt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?pt(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):pt(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var vt=function(){return"undefined"!=typeof window?window:void 0},_t=(at=st=function(e){function t(){var e,o;(0,i.Z)(this,t);for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];return o=(0,r.Z)(this,(e=(0,l.Z)(t)).call.apply(e,[this].concat(a))),(0,c.Z)((0,s.Z)(o),"_window",vt()),(0,c.Z)((0,s.Z)(o),"_isMounted",!1),(0,c.Z)((0,s.Z)(o),"_positionFromTop",0),(0,c.Z)((0,s.Z)(o),"_positionFromLeft",0),(0,c.Z)((0,s.Z)(o),"_detectElementResize",void 0),(0,c.Z)((0,s.Z)(o),"_child",void 0),(0,c.Z)((0,s.Z)(o),"state",gt({},ht(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),(0,c.Z)((0,s.Z)(o),"_registerChild",(function(e){!e||e instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),o._child=e,o.updatePosition()})),(0,c.Z)((0,s.Z)(o),"_onChildScroll",(function(e){var t=e.scrollTop;if(o.state.scrollTop!==t){var i=o.props.scrollElement;i&&("function"==typeof i.scrollTo?i.scrollTo(0,t+o._positionFromTop):i.scrollTop=t+o._positionFromTop)}})),(0,c.Z)((0,s.Z)(o),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)})),(0,c.Z)((0,s.Z)(o),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)})),(0,c.Z)((0,s.Z)(o),"_onResize",(function(){o.updatePosition()})),(0,c.Z)((0,s.Z)(o),"__handleWindowScrollEvent",(function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var i=ft(t),n=Math.max(0,i.left-o._positionFromLeft),r=Math.max(0,i.top-o._positionFromTop);o.setState({isScrolling:!0,scrollLeft:n,scrollTop:r}),e({scrollLeft:n,scrollTop:r})}}})),(0,c.Z)((0,s.Z)(o),"__resetIsScrolling",(function(){o.setState({isScrolling:!1})})),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,o=this.state,i=o.height,n=o.width,r=this._child||K.findDOMNode(this);if(r instanceof Element&&e){var l=ut(r,e);this._positionFromTop=l.top,this._positionFromLeft=l.left}var s=ht(e,this.props);i===s.height&&n===s.width||(this.setState({height:s.height,width:s.width}),t({height:s.height,width:s.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=U(),this.updatePosition(e),e&&(rt(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,i=e.scrollElement;i!==o&&null!=i&&null!=o&&(this.updatePosition(o),lt(this,i),rt(this,o),this._unregisterResizeListener(i),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(lt(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.isScrolling,i=t.scrollTop,n=t.scrollLeft,r=t.height,l=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:r,isScrolling:o,scrollLeft:n,scrollTop:i,width:l})}}]),t}(d.PureComponent),(0,c.Z)(st,"propTypes",null),at);(0,c.Z)(_t,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:vt(),serverHeight:0,serverWidth:0})}}]);
|
|
1
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="77cc0be2-7889-4deb-a98a-711f2be87a27",e._sentryDebugIdIdentifier="sentry-dbid-77cc0be2-7889-4deb-a98a-711f2be87a27")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1664"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[9309],{56569:(e,t,o)=>{var i=o(71600);t.Z=void 0;var n=i(o(68671)),r=o(52322),l=(0,n.default)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"}),"AddCircle");t.Z=l},89323:(e,t,o)=>{var i=o(71600);t.Z=void 0;var n=i(o(68671)),r=o(52322),l=(0,n.default)((0,r.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicator");t.Z=l},29754:(e,t,o)=>{var i=o(71600);t.Z=void 0;var n=i(o(68671)),r=o(52322),l=(0,n.default)((0,r.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.Z=l},23468:(e,t,o)=>{var i=o(71600);t.Z=void 0;var n=i(o(68671)),r=o(52322),l=(0,n.default)((0,r.jsx)("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"KeyboardArrowLeft");t.Z=l},31373:(e,t,o)=>{var i=o(71600);t.Z=void 0;var n=i(o(68671)),r=o(52322),l=(0,n.default)((0,r.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");t.Z=l},67121:(e,t,o)=>{t.v7=y,t.Kx=C,t._t=R,t.ZP=function(e){var t=R(e);return function(e){return i.default.createElement(c.DragDropContextConsumer,null,(function(o){var n=o.dragDropManager;return void 0===n?null:i.default.createElement(t,p({},e,{dragDropManager:n}))}))}};var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};i.get||i.set?Object.defineProperty(t,o,i):t[o]=e[o]}return t.default=e,t}(o(24328)),n=u(o(13980)),r=o(75047),l=u(o(98357)),s=u(o(23493)),a=u(o(16017)),c=o(13896),d=u(o(73463)),h=o(9314);function u(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},p.apply(this,arguments)}function g(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e){return function(t,o){var i=t.x,n=t.w,r=t.y,l=t.h,s=Math.min(n/2,e);if(o.x>=i&&o.x<=i+n&&o.y>=r&&o.y<=r+l){if(o.x<i+s)return(o.x-i-s)/s;if(o.x>i+n-s)return-(i+n-o.x-s)/s}return 0}}function C(e){return function(t,o){var i=t.y,n=t.h,r=t.x,l=t.w,s=Math.min(n/2,e);if(o.y>=i&&o.y<=i+n&&o.x>=r&&o.x<=r+l){if(o.y<i+s)return(o.y-i-s)/s;if(o.y>i+n-s)return-(i+n-o.y-s)/s}return 0}}var w=y(150),x=C(150);function R(e){var t=function(t){function o(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?m(e):t}(this,v(o).call(this,e,t)),S(m(m(n)),"updateScrolling",(0,l.default)((function(e){var t=n.container.getBoundingClientRect(),o={x:t.left,y:t.top,w:t.width,h:t.height},i=(0,h.getCoords)(e),r=n.props,l=r.horizontalStrength,s=r.verticalStrength;n.scaleX=l(o,i),n.scaleY=s(o,i),n.frame||!n.scaleX&&!n.scaleY||n.startScrolling()}),100,{trailing:!1})),S(m(m(n)),"handleEvent",(function(e){n.dragging&&!n.attached&&(n.attach(),n.updateScrolling(e))})),n.wrappedInstance=i.default.createRef(),n.scaleX=0,n.scaleY=0,n.frame=null,n.attached=!1,n.dragging=!1,n}var n,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(o,t),n=o,(a=[{key:"componentDidMount",value:function(){var e=this;this.container=(0,r.findDOMNode)(this.wrappedInstance.current),this.container&&"function"==typeof this.container.addEventListener&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var t=this.props.dragDropManager;this.clearMonitorSubscription=t.getMonitor().subscribeToStateChange((function(){return e.handleMonitorChange()}))}},{key:"componentWillUnmount",value:function(){this.container&&"function"==typeof this.container.removeEventListener&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var e=this.props.dragDropManager.getMonitor().isDragging();!this.dragging&&e?this.dragging=!0:this.dragging&&!e&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var e=this,t=0;!function o(){var i=e.scaleX,n=e.scaleY,r=e.container,l=e.props,a=l.strengthMultiplier,c=l.onScrollChange;if(0!==a&&i+n!==0){if((t+=1)%2){var d=r.scrollLeft,u=r.scrollTop,f=r.scrollWidth,p=r.scrollHeight,g=r.clientWidth,v=r.clientHeight;c(i?r.scrollLeft=(0,h.intBetween)(0,f-g,d+i*a):d,n?r.scrollTop=(0,h.intBetween)(0,p-v,u+n*a):u)}e.frame=(0,s.default)(o)}else e.stopScrolling()}()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(s.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var t=this.props,o=(t.strengthMultiplier,t.verticalStrength,t.horizontalStrength,t.onScrollChange,function(e,t){if(null==e)return{};var o,i,n=function(e,t){if(null==e)return{};var o,i,n={},r=Object.keys(e);for(i=0;i<r.length;i++)o=r[i],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)o=r[i],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(t,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]));return i.default.createElement(e,p({ref:this.wrappedInstance},o))}}])&&g(n.prototype,a),o}(i.Component);return S(t,"displayName","Scrolling(".concat((0,a.default)(e),")")),S(t,"propTypes",{dragDropManager:n.default.object.isRequired,onScrollChange:n.default.func,verticalStrength:n.default.func,horizontalStrength:n.default.func,strengthMultiplier:n.default.number}),S(t,"defaultProps",{onScrollChange:h.noop,verticalStrength:x,horizontalStrength:w,strengthMultiplier:30}),(0,d.default)(t,e)}},9314:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.noop=function(){},t.intBetween=function(e,t,o){return Math.floor(Math.min(t,Math.max(e,o)))},t.getCoords=function(e){return"touchmove"===e.type?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:{x:e.clientX,y:e.clientY}}},16017:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}},12335:(e,t,o)=>{o.d(t,{qj:()=>q,Z8:()=>J,t1:()=>Q,aV:()=>pe});var i=o(9249),n=o(87371),r=o(11987),l=o(95058),s=o(80753),a=o(45754),c=o(56666),d=o(24328),h=o(46847),u=o(7896),f=o(6277);function p(e){var t=e.cellCount,o=e.cellSize,i=e.computeMetadataCallback,n=e.computeMetadataCallbackProps,r=e.nextCellsCount,l=e.nextCellSize,s=e.nextScrollToIndex,a=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===r&&("number"!=typeof o&&"number"!=typeof l||o===l)||(i(n),a>=0&&a===s&&c())}var g=o(59740),v=function(){function e(t){var o=t.cellCount,n=t.cellSizeGetter,r=t.estimatedCellSize;(0,i.Z)(this,e),(0,c.Z)(this,"_cellSizeAndPositionData",{}),(0,c.Z)(this,"_lastMeasuredIndex",-1),(0,c.Z)(this,"_lastBatchedIndex",-1),(0,c.Z)(this,"_cellCount",void 0),(0,c.Z)(this,"_cellSizeGetter",void 0),(0,c.Z)(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=o,this._estimatedCellSize=r}return(0,n.Z)(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,i=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=i}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),o=t.offset+t.size,i=this._lastMeasuredIndex+1;i<=e;i++){var n=this._cellSizeGetter({index:i});if(void 0===n||isNaN(n))throw Error("Invalid size returned for cell ".concat(i," of value ").concat(n));null===n?(this._cellSizeAndPositionData[i]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[i]={offset:o,size:n},o+=n,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=void 0===t?"auto":t,i=e.containerSize,n=e.currentOffset,r=e.targetIndex;if(i<=0)return 0;var l,s=this.getSizeAndPositionOfCell(r),a=s.offset,c=a-i+s.size;switch(o){case"start":l=a;break;case"end":l=c;break;case"center":l=a-(i-s.size)/2;break;default:l=Math.max(c,Math.min(a,n))}var d=this.getTotalSize();return Math.max(0,Math.min(d-i,l))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var i=o+t,n=this._findNearestCell(o),r=this.getSizeAndPositionOfCell(n);o=r.offset+r.size;for(var l=n;o<i&&l<this._cellCount-1;)l++,o+=this.getSizeAndPositionOfCell(l).size;return{start:n,stop:l}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,o){for(;t<=e;){var i=t+Math.floor((e-t)/2),n=this.getSizeAndPositionOfCell(i).offset;if(n===o)return i;n<o?t=i+1:n>o&&(e=i-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var o=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=o,o*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),o=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(o,0,e):this._exponentialSearch(o,e)}}]),e}(),_=function(){function e(t){var o=t.maxScrollSize,n=void 0===o?"undefined"!=typeof window&&window.chrome?16777100:15e5:o,r=(0,g.Z)(t,["maxScrollSize"]);(0,i.Z)(this,e),(0,c.Z)(this,"_cellSizeAndPositionManager",void 0),(0,c.Z)(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new v(r),this._maxScrollSize=n}return(0,n.Z)(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,o=e.offset,i=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize(),r=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(r*(n-i))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=void 0===t?"auto":t,i=e.containerSize,n=e.currentOffset,r=e.targetIndex;n=this._safeOffsetToOffset({containerSize:i,offset:n});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:i,currentOffset:n,targetIndex:r});return this._offsetToSafeOffset({containerSize:i,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;return o=this._safeOffsetToOffset({containerSize:t,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:o})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,o=e.offset,i=e.totalSize;return i<=t?0:o/(i-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,i=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(i===n)return o;var r=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:i});return Math.round(r*(n-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,i=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(i===n)return o;var r=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(r*(i-t))}}]),e}();function m(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(o){var i=o.callback,n=o.indices,r=Object.keys(n),l=!e||r.every((function(e){var t=n[e];return Array.isArray(t)?t.length>0:t>=0})),s=r.length!==Object.keys(t).length||r.some((function(e){var o=t[e],i=n[e];return Array.isArray(i)?o.join(",")!==i.join(","):o!==i}));t=n,l&&s&&i(n)}}function S(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,i=e.previousCellsCount,n=e.previousCellSize,r=e.previousScrollToAlignment,l=e.previousScrollToIndex,s=e.previousSize,a=e.scrollOffset,c=e.scrollToAlignment,d=e.scrollToIndex,h=e.size,u=e.sizeJustIncreasedFromZero,f=e.updateScrollIndexCallback,p=o.getCellCount(),g=d>=0&&d<p;g&&(h!==s||u||!n||"number"==typeof t&&t!==n||c!==r||d!==l)?f(d):!g&&p>0&&(h<s||p<i)&&a>o.getTotalSize()-h&&f(p-1)}const y=!("undefined"==typeof window||!window.document||!window.document.createElement);var C,w;function x(e){if((!C&&0!==C||e)&&y){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),C=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return C}var R,b,z=(w="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||w.webkitRequestAnimationFrame||w.mozRequestAnimationFrame||w.oRequestAnimationFrame||w.msRequestAnimationFrame||function(e){return w.setTimeout(e,1e3/60)},T=w.cancelAnimationFrame||w.webkitCancelAnimationFrame||w.mozCancelAnimationFrame||w.oCancelAnimationFrame||w.msCancelAnimationFrame||function(e){w.clearTimeout(e)},I=z,Z=T,M=function(e){return Z(e.id)},k=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var i={id:I((function n(){Date.now()-o>=t?e.call():i.id=I(n)}))};return i};function P(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function O(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?P(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):P(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var L="requested",G=(b=R=function(e){function t(e){var o;(0,i.Z)(this,t),o=(0,r.Z)(this,(0,l.Z)(t).call(this,e)),(0,c.Z)((0,s.Z)(o),"_onGridRenderedMemoizer",m()),(0,c.Z)((0,s.Z)(o),"_onScrollMemoizer",m(!1)),(0,c.Z)((0,s.Z)(o),"_deferredInvalidateColumnIndex",null),(0,c.Z)((0,s.Z)(o),"_deferredInvalidateRowIndex",null),(0,c.Z)((0,s.Z)(o),"_recomputeScrollLeftFlag",!1),(0,c.Z)((0,s.Z)(o),"_recomputeScrollTopFlag",!1),(0,c.Z)((0,s.Z)(o),"_horizontalScrollBarSize",0),(0,c.Z)((0,s.Z)(o),"_verticalScrollBarSize",0),(0,c.Z)((0,s.Z)(o),"_scrollbarPresenceChanged",!1),(0,c.Z)((0,s.Z)(o),"_scrollingContainer",void 0),(0,c.Z)((0,s.Z)(o),"_childrenToDisplay",void 0),(0,c.Z)((0,s.Z)(o),"_columnStartIndex",void 0),(0,c.Z)((0,s.Z)(o),"_columnStopIndex",void 0),(0,c.Z)((0,s.Z)(o),"_rowStartIndex",void 0),(0,c.Z)((0,s.Z)(o),"_rowStopIndex",void 0),(0,c.Z)((0,s.Z)(o),"_renderedColumnStartIndex",0),(0,c.Z)((0,s.Z)(o),"_renderedColumnStopIndex",0),(0,c.Z)((0,s.Z)(o),"_renderedRowStartIndex",0),(0,c.Z)((0,s.Z)(o),"_renderedRowStopIndex",0),(0,c.Z)((0,s.Z)(o),"_initialScrollTop",void 0),(0,c.Z)((0,s.Z)(o),"_initialScrollLeft",void 0),(0,c.Z)((0,s.Z)(o),"_disablePointerEventsTimeoutId",void 0),(0,c.Z)((0,s.Z)(o),"_styleCache",{}),(0,c.Z)((0,s.Z)(o),"_cellCache",{}),(0,c.Z)((0,s.Z)(o),"_debounceScrollEndedCallback",(function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})})),(0,c.Z)((0,s.Z)(o),"_invokeOnGridRenderedHelper",(function(){var e=o.props.onSectionRendered;o._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:o._columnStartIndex,columnOverscanStopIndex:o._columnStopIndex,columnStartIndex:o._renderedColumnStartIndex,columnStopIndex:o._renderedColumnStopIndex,rowOverscanStartIndex:o._rowStartIndex,rowOverscanStopIndex:o._rowStopIndex,rowStartIndex:o._renderedRowStartIndex,rowStopIndex:o._renderedRowStopIndex}})})),(0,c.Z)((0,s.Z)(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),(0,c.Z)((0,s.Z)(o),"_onScroll",(function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)}));var n=new _({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),a=new _({cellCount:e.rowCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.rowHeight)(o)},estimatedCellSize:t._getEstimatedRowSize(e)});return o.state={instanceProps:{columnSizeAndPositionManager:n,rowSizeAndPositionManager:a,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,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&&(o._initialScrollTop=o._getCalculatedScrollTop(e,o.state)),e.scrollToColumn>0&&(o._initialScrollLeft=o._getCalculatedScrollLeft(e,o.state)),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,o=void 0===t?this.props.scrollToAlignment:t,i=e.columnIndex,n=void 0===i?this.props.scrollToColumn:i,r=e.rowIndex,l=void 0===r?this.props.scrollToRow:r,s=O({},this.props,{scrollToAlignment:o,scrollToColumn:n,scrollToRow:l});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,o=void 0===t?0:t,i=e.scrollTop,n=void 0===i?0:i;if(!(n<0)){this._debounceScrollEnded();var r=this.props,l=r.autoHeight,s=r.autoWidth,a=r.height,c=r.width,d=this.state.instanceProps,h=d.scrollbarSize,u=d.rowSizeAndPositionManager.getTotalSize(),f=d.columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,f-c+h),o),g=Math.min(Math.max(0,u-a+h),n);if(this.state.scrollLeft!==p||this.state.scrollTop!==g){var v={isScrolling:!0,scrollDirectionHorizontal:p!==this.state.scrollLeft?p>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:g!==this.state.scrollTop?g>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};l||(v.scrollTop=g),s||(v.scrollLeft=p),v.needToResetStyleCache=!1,this.setState(v)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:g,totalColumnsWidth:f,totalRowsHeight:u})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,o=e.rowCount,i=this.state.instanceProps;i.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),i.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,i=e.rowIndex,n=void 0===i?0:i,r=this.props,l=r.scrollToColumn,s=r.scrollToRow,a=this.state.instanceProps;a.columnSizeAndPositionManager.resetCell(o),a.rowSizeAndPositionManager.resetCell(n),this._recomputeScrollLeftFlag=l>=0&&(1===this.state.scrollDirectionHorizontal?o<=l:o>=l),this._recomputeScrollTopFlag=s>=0&&(1===this.state.scrollDirectionVertical?n<=s:n>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,i=this.props.columnCount,n=this.props;i>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(O({},n,{scrollToColumn:t})),void 0!==o&&this._updateScrollTopForScrollToRow(O({},n,{scrollToRow:o}))}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,i=e.height,n=e.scrollLeft,r=e.scrollToColumn,l=e.scrollTop,s=e.scrollToRow,a=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=O({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof n&&n>=0||"number"==typeof l&&l>=0){var d=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:l});d&&(d.needToResetStyleCache=!1,this.setState(d))}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));var h=i>0&&a>0;r>=0&&h&&this._updateScrollLeftForScrollToColumn(),s>=0&&h&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:l||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,i=this.props,n=i.autoHeight,r=i.autoWidth,l=i.columnCount,s=i.height,a=i.rowCount,c=i.scrollToAlignment,d=i.scrollToColumn,h=i.scrollToRow,u=i.width,f=this.state,p=f.scrollLeft,g=f.scrollPositionChangeReason,v=f.scrollTop,_=f.instanceProps;this._handleInvalidatedGridSize();var m=l>0&&0===e.columnCount||a>0&&0===e.rowCount;g===L&&(!r&&p>=0&&(p!==this._scrollingContainer.scrollLeft||m)&&(this._scrollingContainer.scrollLeft=p),!n&&v>=0&&(v!==this._scrollingContainer.scrollTop||m)&&(this._scrollingContainer.scrollTop=v));var y=(0===e.width||0===e.height)&&s>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):S({cellSizeAndPositionManager:_.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:p,scrollToAlignment:c,scrollToIndex:d,size:u,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):S({cellSizeAndPositionManager:_.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:c,scrollToIndex:h,size:s,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),p!==t.scrollLeft||v!==t.scrollTop){var C=_.rowSizeAndPositionManager.getTotalSize(),w=_.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:v,totalColumnsWidth:w,totalRowsHeight:C})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&M(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,i=e.autoWidth,n=e.className,r=e.containerProps,l=e.containerRole,s=e.containerStyle,a=e.height,c=e.id,h=e.noContentRenderer,p=e.role,g=e.style,v=e.tabIndex,_=e.width,m=this.state,S=m.instanceProps,y=m.needToResetStyleCache,C=this._isScrolling(),w={boxSizing:"border-box",direction:"ltr",height:o?"auto":a,position:"relative",width:i?"auto":_,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var x=S.columnSizeAndPositionManager.getTotalSize(),R=S.rowSizeAndPositionManager.getTotalSize(),b=R>a?S.scrollbarSize:0,z=x>_?S.scrollbarSize:0;z===this._horizontalScrollBarSize&&b===this._verticalScrollBarSize||(this._horizontalScrollBarSize=z,this._verticalScrollBarSize=b,this._scrollbarPresenceChanged=!0),w.overflowX=x+b<=_?"hidden":"auto",w.overflowY=R+z<=a?"hidden":"auto";var T=this._childrenToDisplay,I=0===T.length&&a>0&&_>0;return d.createElement("div",(0,u.Z)({ref:this._setScrollingContainerRef},r,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:(0,f.default)("ReactVirtualized__Grid",n),id:c,onScroll:this._onScroll,role:p,style:O({},w,{},g),tabIndex:v}),T.length>0&&d.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:l,style:O({width:t?"auto":x,height:R,maxWidth:x,maxHeight:R,overflow:"hidden",pointerEvents:C?"none":"",position:"relative"},s)},T),I&&h())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,o=e.cellRenderer,i=e.cellRangeRenderer,n=e.columnCount,r=e.deferredMeasurementCache,l=e.height,s=e.overscanColumnCount,a=e.overscanIndicesGetter,c=e.overscanRowCount,d=e.rowCount,h=e.width,u=e.isScrollingOptOut,f=t.scrollDirectionHorizontal,p=t.scrollDirectionVertical,g=t.instanceProps,v=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,_=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,m=this._isScrolling(e,t);if(this._childrenToDisplay=[],l>0&&h>0){var S=g.columnSizeAndPositionManager.getVisibleCellRange({containerSize:h,offset:_}),y=g.rowSizeAndPositionManager.getVisibleCellRange({containerSize:l,offset:v}),C=g.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:h,offset:_}),w=g.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:l,offset:v});this._renderedColumnStartIndex=S.start,this._renderedColumnStopIndex=S.stop,this._renderedRowStartIndex=y.start,this._renderedRowStopIndex=y.stop;var x=a({direction:"horizontal",cellCount:n,overscanCellsCount:s,scrollDirection:f,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),R=a({direction:"vertical",cellCount:d,overscanCellsCount:c,scrollDirection:p,startIndex:"number"==typeof y.start?y.start:0,stopIndex:"number"==typeof y.stop?y.stop:-1}),b=x.overscanStartIndex,z=x.overscanStopIndex,T=R.overscanStartIndex,I=R.overscanStopIndex;if(r){if(!r.hasFixedHeight())for(var Z=T;Z<=I;Z++)if(!r.has(Z,0)){b=0,z=n-1;break}if(!r.hasFixedWidth())for(var M=b;M<=z;M++)if(!r.has(0,M)){T=0,I=d-1;break}}this._childrenToDisplay=i({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:g.columnSizeAndPositionManager,columnStartIndex:b,columnStopIndex:z,deferredMeasurementCache:r,horizontalOffsetAdjustment:C,isScrolling:m,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:g.rowSizeAndPositionManager,rowStartIndex:T,rowStopIndex:I,scrollLeft:_,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:w,visibleColumnIndices:S,visibleRowIndices:y}),this._columnStartIndex=b,this._columnStopIndex=z,this._rowStartIndex=T,this._rowStopIndex=I}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&M(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=k(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,i=e.scrollTop,n=e.totalColumnsWidth,r=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,i=e.scrollTop,l=t.props,s=l.height;(0,l.onScroll)({clientHeight:s,clientWidth:l.width,scrollHeight:r,scrollLeft:o,scrollTop:i,scrollWidth:n})},indices:{scrollLeft:o,scrollTop:i}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var o=e.scrollLeft,i=e.scrollTop,n=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:i});n&&(n.needToResetStyleCache=!1,this.setState(n))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,i=t._getScrollLeftForScrollToColumnStateUpdate(e,o);i&&(i.needToResetStyleCache=!1,this.setState(i))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,o)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var i=this._rowStartIndex;i<=this._rowStopIndex;i++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var r="".concat(i,"-").concat(n);this._styleCache[r]=e[r],o&&(this._cellCache[r]=t[r])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,i=t._getScrollTopForScrollToRowStateUpdate(e,o);i&&(i.needToResetStyleCache=!1,this.setState(i))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var i={};0===e.columnCount&&0!==o.scrollLeft||0===e.rowCount&&0!==o.scrollTop?(i.scrollLeft=0,i.scrollTop=0):(e.scrollLeft!==o.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==o.scrollTop&&e.scrollToRow<0)&&Object.assign(i,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var n,r,l=o.instanceProps;return i.needToResetStyleCache=!1,e.columnWidth===l.prevColumnWidth&&e.rowHeight===l.prevRowHeight||(i.needToResetStyleCache=!0),l.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),l.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==l.prevColumnCount&&0!==l.prevRowCount||(l.prevColumnCount=0,l.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===l.prevIsScrolling&&Object.assign(i,{isScrolling:!1}),p({cellCount:l.prevColumnCount,cellSize:"number"==typeof l.prevColumnWidth?l.prevColumnWidth:null,computeMetadataCallback:function(){return l.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:l.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){n=t._getScrollLeftForScrollToColumnStateUpdate(e,o)}}),p({cellCount:l.prevRowCount,cellSize:"number"==typeof l.prevRowHeight?l.prevRowHeight:null,computeMetadataCallback:function(){return l.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:l.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){r=t._getScrollTopForScrollToRowStateUpdate(e,o)}}),l.prevColumnCount=e.columnCount,l.prevColumnWidth=e.columnWidth,l.prevIsScrolling=!0===e.isScrolling,l.prevRowCount=e.rowCount,l.prevRowHeight=e.rowHeight,l.prevScrollToColumn=e.scrollToColumn,l.prevScrollToRow=e.scrollToRow,l.scrollbarSize=e.getScrollbarSize(),void 0===l.scrollbarSize?(l.scrollbarSizeMeasured=!1,l.scrollbarSize=0):l.scrollbarSizeMeasured=!0,i.instanceProps=l,O({},i,{},n,{},r)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,o=e.scrollLeft,i=e.scrollTop,n={scrollPositionChangeReason:L};return"number"==typeof o&&o>=0&&(n.scrollDirectionHorizontal=o>t.scrollLeft?1:-1,n.scrollLeft=o),"number"==typeof i&&i>=0&&(n.scrollDirectionVertical=i>t.scrollTop?1:-1,n.scrollTop=i),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof i&&i>=0&&i!==t.scrollTop?n:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,i=e.height,n=e.scrollToAlignment,r=e.scrollToColumn,l=e.width,s=t.scrollLeft,a=t.instanceProps;if(o>0){var c=o-1,d=r<0?c:Math.min(c,r),h=a.rowSizeAndPositionManager.getTotalSize(),u=a.scrollbarSizeMeasured&&h>i?a.scrollbarSize:0;return a.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:l-u,currentOffset:s,targetIndex:d})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var i=o.scrollLeft,n=t._getCalculatedScrollLeft(e,o);return"number"==typeof n&&n>=0&&i!==n?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:n,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,i=e.rowCount,n=e.scrollToAlignment,r=e.scrollToRow,l=e.width,s=t.scrollTop,a=t.instanceProps;if(i>0){var c=i-1,d=r<0?c:Math.min(c,r),h=a.columnSizeAndPositionManager.getTotalSize(),u=a.scrollbarSizeMeasured&&h>l?a.scrollbarSize:0;return a.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o-u,currentOffset:s,targetIndex:d})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var i=o.scrollTop,n=t._getCalculatedScrollTop(e,o);return"number"==typeof n&&n>=0&&i!==n?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:n}):{}}}]),t}(d.PureComponent),(0,c.Z)(R,"propTypes",null),b);(0,c.Z)(G,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,o=e.cellRenderer,i=e.columnSizeAndPositionManager,n=e.columnStartIndex,r=e.columnStopIndex,l=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,a=e.isScrolling,c=e.isScrollingOptOut,d=e.parent,h=e.rowSizeAndPositionManager,u=e.rowStartIndex,f=e.rowStopIndex,p=e.styleCache,g=e.verticalOffsetAdjustment,v=e.visibleColumnIndices,_=e.visibleRowIndices,m=[],S=i.areOffsetsAdjusted()||h.areOffsetsAdjusted(),y=!a&&!S,C=u;C<=f;C++)for(var w=h.getSizeAndPositionOfCell(C),x=n;x<=r;x++){var R=i.getSizeAndPositionOfCell(x),b=x>=v.start&&x<=v.stop&&C>=_.start&&C<=_.stop,z="".concat(C,"-").concat(x),T=void 0;y&&p[z]?T=p[z]:l&&!l.has(C,x)?T={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(T={height:w.size,left:R.offset+s,position:"absolute",top:w.offset+g,width:R.size},p[z]=T);var I={columnIndex:x,isScrolling:a,isVisible:b,key:z,parent:d,rowIndex:C,style:T},Z=void 0;!c&&!a||s||g?Z=o(I):(t[z]||(t[z]=o(I)),Z=t[z]),null!=Z&&!1!==Z&&m.push(Z)}return m},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:x,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,i=e.scrollDirection,n=e.startIndex,r=e.stopIndex;return 1===i?{overscanStartIndex:Math.max(0,n),overscanStopIndex:Math.min(t-1,r+o)}:{overscanStartIndex:Math.max(0,n-o),overscanStopIndex:Math.min(t-1,r)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),(0,h.polyfill)(G);const H=G;function A(e){var t=e.cellCount,o=e.overscanCellsCount,i=e.scrollDirection,n=e.startIndex,r=e.stopIndex;return o=Math.max(1,o),1===i?{overscanStartIndex:Math.max(0,n-1),overscanStopIndex:Math.min(t-1,r+o)}:{overscanStartIndex:Math.max(0,n-o),overscanStopIndex:Math.min(t-1,r+1)}}var W,E;function D(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}var j,F,N=(E=W=function(e){function t(){var e,o;(0,i.Z)(this,t);for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];return o=(0,r.Z)(this,(e=(0,l.Z)(t)).call.apply(e,[this].concat(a))),(0,c.Z)((0,s.Z)(o),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),(0,c.Z)((0,s.Z)(o),"_columnStartIndex",0),(0,c.Z)((0,s.Z)(o),"_columnStopIndex",0),(0,c.Z)((0,s.Z)(o),"_rowStartIndex",0),(0,c.Z)((0,s.Z)(o),"_rowStopIndex",0),(0,c.Z)((0,s.Z)(o),"_onKeyDown",(function(e){var t=o.props,i=t.columnCount,n=t.disabled,r=t.mode,l=t.rowCount;if(!n){var s=o._getScrollState(),a=s.scrollToColumn,c=s.scrollToRow,d=o._getScrollState(),h=d.scrollToColumn,u=d.scrollToRow;switch(e.key){case"ArrowDown":u="cells"===r?Math.min(u+1,l-1):Math.min(o._rowStopIndex+1,l-1);break;case"ArrowLeft":h="cells"===r?Math.max(h-1,0):Math.max(o._columnStartIndex-1,0);break;case"ArrowRight":h="cells"===r?Math.min(h+1,i-1):Math.min(o._columnStopIndex+1,i-1);break;case"ArrowUp":u="cells"===r?Math.max(u-1,0):Math.max(o._rowStartIndex-1,0)}h===a&&u===c||(e.preventDefault(),o._updateScrollState({scrollToColumn:h,scrollToRow:u}))}})),(0,c.Z)((0,s.Z)(o),"_onSectionRendered",(function(e){var t=e.columnStartIndex,i=e.columnStopIndex,n=e.rowStartIndex,r=e.rowStopIndex;o._columnStartIndex=t,o._columnStopIndex=i,o._rowStartIndex=n,o._rowStopIndex=r})),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow;this.setState({scrollToRow:o,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.children,i=this._getScrollState(),n=i.scrollToColumn,r=i.scrollToRow;return d.createElement("div",{className:t,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:n,scrollToRow:r}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow,i=this.props,n=i.isControlled,r=i.onScrollToChange;"function"==typeof r&&r({scrollToColumn:t,scrollToRow:o}),n||this.setState({scrollToColumn:t,scrollToRow:o})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?D(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):D(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(d.PureComponent),(0,c.Z)(W,"propTypes",null),E);function U(e,t){var i,n=void 0!==(i=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o.g).document&&i.document.attachEvent;if(!n){var r=function(){var e=i.requestAnimationFrame||i.mozRequestAnimationFrame||i.webkitRequestAnimationFrame||function(e){return i.setTimeout(e,20)};return function(t){return e(t)}}(),l=function(){var e=i.cancelAnimationFrame||i.mozCancelAnimationFrame||i.webkitCancelAnimationFrame||i.clearTimeout;return function(t){return e(t)}}(),s=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,i=t.lastElementChild,n=o.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,n.style.width=o.offsetWidth+1+"px",n.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight},a=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;s(this),this.__resizeRAF__&&l(this.__resizeRAF__),this.__resizeRAF__=r((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(o){o.call(t,e)})))}))}},c=!1,d="",h="animationstart",u="Webkit Moz O ms".split(" "),f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p=i.document.createElement("fakeelement");if(void 0!==p.style.animationName&&(c=!0),!1===c)for(var g=0;g<u.length;g++)if(void 0!==p.style[u[g]+"AnimationName"]){d="-"+u[g].toLowerCase()+"-",h=f[g],c=!0;break}var v="resizeanim",_="@"+d+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",m=d+"animation: 1ms "+v+"; "}return{addResizeListener:function(t,o){if(n)t.attachEvent("onresize",o);else{if(!t.__resizeTriggers__){var r=t.ownerDocument,l=i.getComputedStyle(t);l&&"static"==l.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var o=(_||"")+".resize-triggers { "+(m||"")+'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%; }',i=t.head||t.getElementsByTagName("head")[0],n=t.createElement("style");n.id="detectElementResize",n.type="text/css",null!=e&&n.setAttribute("nonce",e),n.styleSheet?n.styleSheet.cssText=o:n.appendChild(t.createTextNode(o)),i.appendChild(n)}}(r),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=r.createElement("div")).className="resize-triggers";var c='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var d=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return c}});t.__resizeTriggers__.innerHTML=d.createHTML("")}else t.__resizeTriggers__.innerHTML=c;t.appendChild(t.__resizeTriggers__),s(t),t.addEventListener("scroll",a,!0),h&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==v&&s(t)},t.__resizeTriggers__.addEventListener(h,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(o)}},removeResizeListener:function(e,t){if(n)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(h,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}function B(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function V(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?B(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):B(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}(0,c.Z)(N,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),(0,h.polyfill)(N);var q=(F=j=function(e){function t(){var e,o;(0,i.Z)(this,t);for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];return o=(0,r.Z)(this,(e=(0,l.Z)(t)).call.apply(e,[this].concat(a))),(0,c.Z)((0,s.Z)(o),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),(0,c.Z)((0,s.Z)(o),"_parentNode",void 0),(0,c.Z)((0,s.Z)(o),"_autoSizer",void 0),(0,c.Z)((0,s.Z)(o),"_window",void 0),(0,c.Z)((0,s.Z)(o),"_detectElementResize",void 0),(0,c.Z)((0,s.Z)(o),"_onResize",(function(){var e=o.props,t=e.disableHeight,i=e.disableWidth,n=e.onResize;if(o._parentNode){var r=o._parentNode.offsetHeight||0,l=o._parentNode.offsetWidth||0,s=(o._window||window).getComputedStyle(o._parentNode)||{},a=parseInt(s.paddingLeft,10)||0,c=parseInt(s.paddingRight,10)||0,d=parseInt(s.paddingTop,10)||0,h=parseInt(s.paddingBottom,10)||0,u=r-d-h,f=l-a-c;(!t&&o.state.height!==u||!i&&o.state.width!==f)&&(o.setState({height:r-d-h,width:l-a-c}),n({height:r,width:l}))}})),(0,c.Z)((0,s.Z)(o),"_setRef",(function(e){o._autoSizer=e})),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;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=U(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.className,i=e.disableHeight,n=e.disableWidth,r=e.style,l=this.state,s=l.height,a=l.width,c={overflow:"visible"},h={};return i||(c.height=0,h.height=s),n||(c.width=0,h.width=a),d.createElement("div",{className:o,ref:this._setRef,style:V({},c,{},r)},t(h))}}]),t}(d.Component),(0,c.Z)(j,"propTypes",null),F);(0,c.Z)(q,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var X,Y,K=o(75047),J=(Y=X=function(e){function t(){var e,o;(0,i.Z)(this,t);for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];return o=(0,r.Z)(this,(e=(0,l.Z)(t)).call.apply(e,[this].concat(a))),(0,c.Z)((0,s.Z)(o),"_child",void 0),(0,c.Z)((0,s.Z)(o),"_measure",(function(){var e=o.props,t=e.cache,i=e.columnIndex,n=void 0===i?0:i,r=e.parent,l=e.rowIndex,s=void 0===l?o.props.index||0:l,a=o._getCellMeasurements(),c=a.height,d=a.width;c===t.getHeight(s,n)&&d===t.getWidth(s,n)||(t.set(s,n,d,c),r&&"function"==typeof r.recomputeGridSize&&r.recomputeGridSize({columnIndex:n,rowIndex:s}))})),(0,c.Z)((0,s.Z)(o),"_registerChild",(function(e){!e||e instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),o._child=e,e&&o._maybeMeasureCell()})),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||(0,K.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var o=t.style.width,i=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var n=Math.ceil(t.offsetHeight),r=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),i&&(t.style.height=i),{height:n,width:r}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,i=void 0===o?0:o,n=e.parent,r=e.rowIndex,l=void 0===r?this.props.index||0:r;if(!t.has(l,i)){var s=this._getCellMeasurements(),a=s.height,c=s.width;t.set(l,i,c,a),n&&"function"==typeof n.invalidateCellSizeAfterRender&&n.invalidateCellSizeAfterRender({columnIndex:i,rowIndex:l})}}}]),t}(d.PureComponent),(0,c.Z)(X,"propTypes",null),Y);(0,c.Z)(J,"__internalCellMeasurerFlag",!1);var Q=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.Z)(this,e),(0,c.Z)(this,"_cellHeightCache",{}),(0,c.Z)(this,"_cellWidthCache",{}),(0,c.Z)(this,"_columnWidthCache",{}),(0,c.Z)(this,"_rowHeightCache",{}),(0,c.Z)(this,"_defaultHeight",void 0),(0,c.Z)(this,"_defaultWidth",void 0),(0,c.Z)(this,"_minHeight",void 0),(0,c.Z)(this,"_minWidth",void 0),(0,c.Z)(this,"_keyMapper",void 0),(0,c.Z)(this,"_hasFixedHeight",void 0),(0,c.Z)(this,"_hasFixedWidth",void 0),(0,c.Z)(this,"_columnCount",0),(0,c.Z)(this,"_rowCount",0),(0,c.Z)(this,"columnWidth",(function(e){var o=e.index,i=t._keyMapper(0,o);return void 0!==t._columnWidthCache[i]?t._columnWidthCache[i]:t._defaultWidth})),(0,c.Z)(this,"rowHeight",(function(e){var o=e.index,i=t._keyMapper(o,0);return void 0!==t._rowHeightCache[i]?t._rowHeightCache[i]:t._defaultHeight}));var n=o.defaultHeight,r=o.defaultWidth,l=o.fixedHeight,s=o.fixedWidth,a=o.keyMapper,d=o.minHeight,h=o.minWidth;this._hasFixedHeight=!0===l,this._hasFixedWidth=!0===s,this._minHeight=d||0,this._minWidth=h||0,this._keyMapper=a||$,this._defaultHeight=Math.max(this._minHeight,"number"==typeof n?n:30),this._defaultWidth=Math.max(this._minWidth,"number"==typeof r?r:100)}return(0,n.Z)(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this._keyMapper(e,t);delete this._cellHeightCache[o],delete this._cellWidthCache[o],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var o=this._keyMapper(e,t);return void 0!==this._cellHeightCache[o]?Math.max(this._minHeight,this._cellHeightCache[o]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var o=this._keyMapper(e,t);return void 0!==this._cellWidthCache[o]?Math.max(this._minWidth,this._cellWidthCache[o]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this._keyMapper(e,t);return void 0!==this._cellHeightCache[o]}},{key:"set",value:function(e,t,o,i){var n=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[n]=i,this._cellWidthCache[n]=o,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var o=0,i=0;i<this._rowCount;i++)o=Math.max(o,this.getWidth(i,t));var n=this._keyMapper(0,t);this._columnWidthCache[n]=o}if(!this._hasFixedHeight){for(var r=0,l=0;l<this._columnCount;l++)r=Math.max(r,this.getHeight(e,l));var s=this._keyMapper(e,0);this._rowHeightCache[s]=r}}},{key:"defaultHeight",get:function(){return this._defaultHeight}},{key:"defaultWidth",get:function(){return this._defaultWidth}}]),e}();function $(e,t){return"".concat(e,"-").concat(t)}function ee(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function te(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ee(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ee(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var oe="observed",ie="requested",ne=function(e){function t(){var e,o;(0,i.Z)(this,t);for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];return o=(0,r.Z)(this,(e=(0,l.Z)(t)).call.apply(e,[this].concat(a))),(0,c.Z)((0,s.Z)(o),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),(0,c.Z)((0,s.Z)(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),(0,c.Z)((0,s.Z)(o),"_onSectionRenderedMemoizer",m()),(0,c.Z)((0,s.Z)(o),"_onScrollMemoizer",m(!1)),(0,c.Z)((0,s.Z)(o),"_invokeOnSectionRenderedHelper",(function(){var e=o.props,t=e.cellLayoutManager,i=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:i,indices:{indices:t.getLastRenderedIndices()}})})),(0,c.Z)((0,s.Z)(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),(0,c.Z)((0,s.Z)(o),"_updateScrollPositionForScrollToCell",(function(){var e=o.props,t=e.cellLayoutManager,i=e.height,n=e.scrollToAlignment,r=e.scrollToCell,l=e.width,s=o.state,a=s.scrollLeft,c=s.scrollTop;if(r>=0){var d=t.getScrollPositionForCell({align:n,cellIndex:r,height:i,scrollLeft:a,scrollTop:c,width:l});d.scrollLeft===a&&d.scrollTop===c||o._setScrollPosition(d)}})),(0,c.Z)((0,s.Z)(o),"_onScroll",(function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,i=t.cellLayoutManager,n=t.height,r=t.isScrollingChange,l=t.width,s=o._scrollbarSize,a=i.getTotalSize(),c=a.height,d=a.width,h=Math.max(0,Math.min(d-l+s,e.target.scrollLeft)),u=Math.max(0,Math.min(c-n+s,e.target.scrollTop));if(o.state.scrollLeft!==h||o.state.scrollTop!==u){var f=e.cancelable?oe:ie;o.state.isScrolling||r(!0),o.setState({isScrolling:!0,scrollLeft:h,scrollPositionChangeReason:f,scrollTop:u})}o._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:u,totalWidth:d,totalHeight:c})}})),o._scrollbarSize=x(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,i=e.scrollToCell,n=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=x(),this._scrollbarSizeMeasured=!0,this.setState({})),i>=0?this._updateScrollPositionForScrollToCell():(o>=0||n>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:n}),this._invokeOnSectionRenderedHelper();var r=t.getTotalSize(),l=r.height,s=r.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:n||0,totalHeight:l,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,i=o.height,n=o.scrollToAlignment,r=o.scrollToCell,l=o.width,s=this.state,a=s.scrollLeft,c=s.scrollPositionChangeReason,d=s.scrollTop;c===ie&&(a>=0&&a!==t.scrollLeft&&a!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=a),d>=0&&d!==t.scrollTop&&d!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=d)),i===e.height&&n===e.scrollToAlignment&&r===e.scrollToCell&&l===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,o=e.cellCount,i=e.cellLayoutManager,n=e.className,r=e.height,l=e.horizontalOverscanSize,s=e.id,a=e.noContentRenderer,c=e.style,h=e.verticalOverscanSize,u=e.width,p=this.state,g=p.isScrolling,v=p.scrollLeft,_=p.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==i||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=i,this._calculateSizeAndPositionDataOnNextUpdate=!1,i.calculateSizeAndPositionData());var m=i.getTotalSize(),S=m.height,y=m.width,C=Math.max(0,v-l),w=Math.max(0,_-h),x=Math.min(y,v+u+l),R=Math.min(S,_+r+h),b=r>0&&u>0?i.cellRenderers({height:R-w,isScrolling:g,width:x-C,x:C,y:w}):[],z={boxSizing:"border-box",direction:"ltr",height:t?"auto":r,position:"relative",WebkitOverflowScrolling:"touch",width:u,willChange:"transform"},T=S>r?this._scrollbarSize:0,I=y>u?this._scrollbarSize:0;return z.overflowX=y+T<=u?"hidden":"auto",z.overflowY=S+I<=r?"hidden":"auto",d.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:(0,f.default)("ReactVirtualized__Collection",n),id:s,onScroll:this._onScroll,role:"grid",style:te({},z,{},c),tabIndex:0},o>0&&d.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:S,maxHeight:S,maxWidth:y,overflow:"hidden",pointerEvents:g?"none":"",width:y}},b),0===o&&a())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,i=e.scrollTop,n=e.totalHeight,r=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,i=e.scrollTop,l=t.props,s=l.height;(0,l.onScroll)({clientHeight:s,clientWidth:l.width,scrollHeight:n,scrollLeft:o,scrollTop:i,scrollWidth:r})},indices:{scrollLeft:o,scrollTop:i}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,i={scrollPositionChangeReason:ie};t>=0&&(i.scrollLeft=t),o>=0&&(i.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(i)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:ie}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:ie}}}]),t}(d.PureComponent);(0,c.Z)(ne,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),ne.propTypes={},(0,h.polyfill)(ne);const re=ne;var le=function(){function e(t){var o=t.height,n=t.width,r=t.x,l=t.y;(0,i.Z)(this,e),this.height=o,this.width=n,this.x=r,this.y=l,this._indexMap={},this._indices=[]}return(0,n.Z)(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),se=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;(0,i.Z)(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return(0,n.Z)(e,[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,i=e.x,n=e.y,r={};return this.getSections({height:t,width:o,x:i,y:n}).forEach((function(e){return e.getCellIndices().forEach((function(e){r[e]=e}))})),Object.keys(r).map((function(e){return r[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,o=e.width,i=e.x,n=e.y,r=Math.floor(i/this._sectionSize),l=Math.floor((i+o-1)/this._sectionSize),s=Math.floor(n/this._sectionSize),a=Math.floor((n+t-1)/this._sectionSize),c=[],d=r;d<=l;d++)for(var h=s;h<=a;h++){var u="".concat(d,".").concat(h);this._sections[u]||(this._sections[u]=new le({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:h*this._sectionSize})),c.push(this._sections[u])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,o=e.index;this._cellMetadata[o]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:o})}))}}]),e}();function ae(e){var t=e.align,o=void 0===t?"auto":t,i=e.cellOffset,n=e.cellSize,r=e.containerSize,l=e.currentOffset,s=i,a=s-r+n;switch(o){case"start":return s;case"end":return a;case"center":return s-(r-n)/2;default:return Math.max(a,Math.min(s,l))}}var ce=function(e){function t(e,o){var n;return(0,i.Z)(this,t),(n=(0,r.Z)(this,(0,l.Z)(t).call(this,e,o)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind((0,s.Z)(n)),n._setCollectionViewRef=n._setCollectionViewRef.bind((0,s.Z)(n)),n}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=(0,u.Z)({},this.props);return d.createElement(re,(0,u.Z)({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,o=e.cellSizeAndPositionGetter,i=[],n=new se(e.sectionSize),r=0,l=0,s=0;s<t;s++){var a=o({index:s});if(null==a.height||isNaN(a.height)||null==a.width||isNaN(a.width)||null==a.x||isNaN(a.x)||null==a.y||isNaN(a.y))throw Error("Invalid metadata returned for cell ".concat(s,":\n x:").concat(a.x,", y:").concat(a.y,", width:").concat(a.width,", height:").concat(a.height));r=Math.max(r,a.y+a.height),l=Math.max(l,a.x+a.width),i[s]=a,n.registerCell({cellMetadatum:a,index:s})}return{cellMetadata:i,height:r,sectionManager:n,width:l}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,o=e.cellIndex,i=e.height,n=e.scrollLeft,r=e.scrollTop,l=e.width,s=this.props.cellCount;if(o>=0&&o<s){var a=this._cellMetadata[o];n=ae({align:t,cellOffset:a.x,cellSize:a.width,containerSize:l,currentOffset:n,targetIndex:o}),r=ae({align:t,cellOffset:a.y,cellSize:a.height,containerSize:i,currentOffset:r,targetIndex:o})}return{scrollLeft:n,scrollTop:r}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,i=e.isScrolling,n=e.width,r=e.x,l=e.y,s=this.props,a=s.cellGroupRenderer,c=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:n,x:r,y:l}),a({cellCache:this._cellCache,cellRenderer:c,cellSizeAndPositionGetter:function(e){var o=e.index;return t._sectionManager.getCellMetadata({index:o})},indices:this._lastRenderedCellIndices,isScrolling:i})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(d.PureComponent);(0,c.Z)(ce,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,o=e.cellRenderer,i=e.cellSizeAndPositionGetter,n=e.indices,r=e.isScrolling;return n.map((function(e){var n=i({index:e}),l={index:e,isScrolling:r,key:e,style:{height:n.height,left:n.x,position:"absolute",top:n.y,width:n.width}};return r?(e in t||(t[e]=o(l)),t[e]):o(l)})).filter((function(e){return!!e}))}}),ce.propTypes={},(function(e){function t(e,o){var n;return(0,i.Z)(this,t),(n=(0,r.Z)(this,(0,l.Z)(t).call(this,e,o)))._registerChild=n._registerChild.bind((0,s.Z)(n)),n}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,i=t.columnMinWidth,n=t.columnCount,r=t.width;o===e.columnMaxWidth&&i===e.columnMinWidth&&n===e.columnCount&&r===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,i=e.columnMinWidth,n=e.columnCount,r=e.width,l=i||1,s=o?Math.min(o,r):r,a=r/n;return a=Math.max(l,a),a=Math.min(s,a),a=Math.floor(a),t({adjustedWidth:Math.min(r,a*n),columnWidth:a,getColumnWidth:function(){return a},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(d.PureComponent)).propTypes={};var de=o(38777),he=function(e){function t(e,o){var n;return(0,i.Z)(this,t),(n=(0,r.Z)(this,(0,l.Z)(t).call(this,e,o)))._loadMoreRowsMemoizer=m(),n._onRowsRendered=n._onRowsRendered.bind((0,s.Z)(n)),n._registerChild=n._registerChild.bind((0,s.Z)(n)),n}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=m(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,o=this.props.loadMoreRows;e.forEach((function(e){var i=o(e);i&&i.then((function(){var o;(o={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex}).startIndex>o.lastRenderedStopIndex||o.stopIndex<o.lastRenderedStartIndex||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;o?o.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,o=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=o,this._doStuff(t,o)}},{key:"_doStuff",value:function(e,t){var o,i=this,n=this.props,r=n.isRowLoaded,l=n.minimumBatchSize,s=n.rowCount,a=n.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,i=e.rowCount,n=e.stopIndex,r=[],l=null,s=null,a=e.startIndex;a<=n;a++)t({index:a})?null!==s&&(r.push({startIndex:l,stopIndex:s}),l=s=null):(s=a,null===l&&(l=a));if(null!==s){for(var c=Math.min(Math.max(s,l+o-1),i-1),d=s+1;d<=c&&!t({index:d});d++)s=d;r.push({startIndex:l,stopIndex:s})}if(r.length)for(var h=r[0];h.stopIndex-h.startIndex+1<o&&h.startIndex>0;){var u=h.startIndex-1;if(t({index:u}))break;h.startIndex=u}return r}({isRowLoaded:r,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,e-a),stopIndex:Math.min(s-1,t+a)}),d=(o=[]).concat.apply(o,(0,de.Z)(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){i._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(d.PureComponent);(0,c.Z)(he,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),he.propTypes={};var ue,fe,pe=(fe=ue=function(e){function t(){var e,o;(0,i.Z)(this,t);for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];return o=(0,r.Z)(this,(e=(0,l.Z)(t)).call.apply(e,[this].concat(a))),(0,c.Z)((0,s.Z)(o),"Grid",void 0),(0,c.Z)((0,s.Z)(o),"_cellRenderer",(function(e){var t=e.parent,i=e.rowIndex,n=e.style,r=e.isScrolling,l=e.isVisible,s=e.key,a=o.props.rowRenderer,c=Object.getOwnPropertyDescriptor(n,"width");return c&&c.writable&&(n.width="100%"),a({index:i,style:n,isScrolling:r,isVisible:l,key:s,parent:t})})),(0,c.Z)((0,s.Z)(o),"_setRef",(function(e){o.Grid=e})),(0,c.Z)((0,s.Z)(o),"_onScroll",(function(e){var t=e.clientHeight,i=e.scrollHeight,n=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:i,scrollTop:n})})),(0,c.Z)((0,s.Z)(o),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,i=e.rowOverscanStopIndex,n=e.rowStartIndex,r=e.rowStopIndex;(0,o.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:i,startIndex:n,stopIndex:r})})),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,i=e.rowIndex,n=void 0===i?0:i;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.noRowsRenderer,i=e.scrollToIndex,n=e.width,r=(0,f.default)("ReactVirtualized__List",t);return d.createElement(H,(0,u.Z)({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:r,columnWidth:n,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:i}))}}]),t}(d.PureComponent),(0,c.Z)(ue,"propTypes",null),fe);(0,c.Z)(pe,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:A,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});var ge=o(2867);const ve=function(e,t,o,i,n){return"function"==typeof o?function(e,t,o,i,n){for(var r=o+1;t<=o;){var l=t+o>>>1;n(e[l],i)>=0?(r=l,o=l-1):t=l+1}return r}(e,void 0===i?0:0|i,void 0===n?e.length-1:0|n,t,o):function(e,t,o,i){for(var n=o+1;t<=o;){var r=t+o>>>1;e[r]>=i?(n=r,o=r-1):t=r+1}return n}(e,void 0===o?0:0|o,void 0===i?e.length-1:0|i,t)};function _e(e,t,o,i,n){this.mid=e,this.left=t,this.right=o,this.leftPoints=i,this.rightPoints=n,this.count=(t?t.count:0)+(o?o.count:0)+i.length}var me=_e.prototype;function Se(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function ye(e,t){var o=Ze(t);e.mid=o.mid,e.left=o.left,e.right=o.right,e.leftPoints=o.leftPoints,e.rightPoints=o.rightPoints,e.count=o.count}function Ce(e,t){var o=e.intervals([]);o.push(t),ye(e,o)}function we(e,t){var o=e.intervals([]),i=o.indexOf(t);return i<0?0:(o.splice(i,1),ye(e,o),1)}function xe(e,t,o){for(var i=0;i<e.length&&e[i][0]<=t;++i){var n=o(e[i]);if(n)return n}}function Re(e,t,o){for(var i=e.length-1;i>=0&&e[i][1]>=t;--i){var n=o(e[i]);if(n)return n}}function be(e,t){for(var o=0;o<e.length;++o){var i=t(e[o]);if(i)return i}}function ze(e,t){return e-t}function Te(e,t){return e[0]-t[0]||e[1]-t[1]}function Ie(e,t){return e[1]-t[1]||e[0]-t[0]}function Ze(e){if(0===e.length)return null;for(var t=[],o=0;o<e.length;++o)t.push(e[o][0],e[o][1]);t.sort(ze);var i=t[t.length>>1],n=[],r=[],l=[];for(o=0;o<e.length;++o){var s=e[o];s[1]<i?n.push(s):i<s[0]?r.push(s):l.push(s)}var a=l,c=l.slice();return a.sort(Te),c.sort(Ie),new _e(i,Ze(n),Ze(r),a,c)}function Me(e){this.root=e}me.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},me.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?Ce(this,e):this.left.insert(e):this.left=Ze([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Ce(this,e):this.right.insert(e):this.right=Ze([e]);else{var o=ve(this.leftPoints,e,Te),i=ve(this.rightPoints,e,Ie);this.leftPoints.splice(o,0,e),this.rightPoints.splice(i,0,e)}},me.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?we(this,e):2===(r=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===r&&(this.count-=1),r):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?we(this,e):2===(r=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===r&&(this.count-=1),r):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var o=this,i=this.left;i.right;)o=i,i=i.right;if(o===this)i.right=this.right;else{var n=this.left,r=this.right;o.count-=i.count,o.right=i.left,i.left=n,i.right=r}Se(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Se(this,this.left):Se(this,this.right);return 1}for(n=ve(this.leftPoints,e,Te);n<this.leftPoints.length&&this.leftPoints[n][0]===e[0];++n)if(this.leftPoints[n]===e)for(this.count-=1,this.leftPoints.splice(n,1),r=ve(this.rightPoints,e,Ie);r<this.rightPoints.length&&this.rightPoints[r][1]===e[1];++r)if(this.rightPoints[r]===e)return this.rightPoints.splice(r,1),1;return 0},me.queryPoint=function(e,t){return e<this.mid?this.left&&(o=this.left.queryPoint(e,t))?o:xe(this.leftPoints,e,t):e>this.mid?this.right&&(o=this.right.queryPoint(e,t))?o:Re(this.rightPoints,e,t):be(this.leftPoints,t);var o},me.queryInterval=function(e,t,o){var i;return e<this.mid&&this.left&&(i=this.left.queryInterval(e,t,o))||t>this.mid&&this.right&&(i=this.right.queryInterval(e,t,o))?i:t<this.mid?xe(this.leftPoints,t,o):e>this.mid?Re(this.rightPoints,e,o):be(this.leftPoints,o)};var ke=Me.prototype;ke.insert=function(e){this.root?this.root.insert(e):this.root=new _e(e[0],null,null,[e],[e])},ke.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},ke.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},ke.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(ke,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(ke,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Pe,Oe,Le=function(){function e(){(0,i.Z)(this,e),(0,c.Z)(this,"_columnSizeMap",{}),(0,c.Z)(this,"_intervalTree",new Me(null)),(0,c.Z)(this,"_leftMap",{})}return(0,n.Z)(e,[{key:"estimateTotalHeight",value:function(e,t,o){var i=e-this.count;return this.tallestColumnSize+Math.ceil(i/t)*o}},{key:"range",value:function(e,t,o){var i=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=(0,ge.Z)(e,3),n=t[0],r=(t[1],t[2]);return o(r,i._leftMap[r],n)}))}},{key:"setPosition",value:function(e,t,o,i){this._intervalTree.insert([o,o+i,e]),this._leftMap[e]=t;var n=this._columnSizeMap,r=n[t];n[t]=void 0===r?o+i:Math.max(r,o+i)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var i=e[o];t=0===t?i:Math.min(t,i)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var i=e[o];t=Math.max(t,i)}return t}}]),e}();function Ge(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function He(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ge(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ge(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Ae=(Oe=Pe=function(e){function t(){var e,o;(0,i.Z)(this,t);for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];return o=(0,r.Z)(this,(e=(0,l.Z)(t)).call.apply(e,[this].concat(a))),(0,c.Z)((0,s.Z)(o),"state",{isScrolling:!1,scrollTop:0}),(0,c.Z)((0,s.Z)(o),"_debounceResetIsScrollingId",void 0),(0,c.Z)((0,s.Z)(o),"_invalidateOnUpdateStartIndex",null),(0,c.Z)((0,s.Z)(o),"_invalidateOnUpdateStopIndex",null),(0,c.Z)((0,s.Z)(o),"_positionCache",new Le),(0,c.Z)((0,s.Z)(o),"_startIndex",null),(0,c.Z)((0,s.Z)(o),"_startIndexMemoized",null),(0,c.Z)((0,s.Z)(o),"_stopIndex",null),(0,c.Z)((0,s.Z)(o),"_stopIndexMemoized",null),(0,c.Z)((0,s.Z)(o),"_debounceResetIsScrollingCallback",(function(){o.setState({isScrolling:!1})})),(0,c.Z)((0,s.Z)(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),(0,c.Z)((0,s.Z)(o),"_onScroll",(function(e){var t=o.props.height,i=e.currentTarget.scrollTop,n=Math.min(Math.max(0,o._getEstimatedTotalHeight()-t),i);i===n&&(o._debounceResetIsScrolling(),o.state.scrollTop!==n&&o.setState({isScrolling:!0,scrollTop:n}))})),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Le,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new Le,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&M(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,i=o.autoHeight,n=o.cellCount,r=o.cellMeasurerCache,l=o.cellRenderer,s=o.className,a=o.height,h=o.id,u=o.keyMapper,p=o.overscanByPixels,g=o.role,v=o.style,_=o.tabIndex,m=o.width,S=o.rowDirection,y=this.state,C=y.isScrolling,w=y.scrollTop,x=[],R=this._getEstimatedTotalHeight(),b=this._positionCache.shortestColumnSize,z=this._positionCache.count,T=0;if(this._positionCache.range(Math.max(0,w-p),a+2*p,(function(o,i,n){var s;void 0===e?(T=o,e=o):(T=Math.min(T,o),e=Math.max(e,o)),x.push(l({index:o,isScrolling:C,key:u(o),parent:t,style:(s={height:r.getHeight(o)},(0,c.Z)(s,"ltr"===S?"left":"right",i),(0,c.Z)(s,"position","absolute"),(0,c.Z)(s,"top",n),(0,c.Z)(s,"width",r.getWidth(o)),s)}))})),b<w+a+p&&z<n)for(var I=Math.min(n-z,Math.ceil((w+a+p-b)/r.defaultHeight*m/r.defaultWidth)),Z=z;Z<z+I;Z++)e=Z,x.push(l({index:Z,isScrolling:C,key:u(Z),parent:this,style:{width:r.getWidth(Z)}}));return this._startIndex=T,this._stopIndex=e,d.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:(0,f.default)("ReactVirtualized__Masonry",s),id:h,onScroll:this._onScroll,role:g,style:He({boxSizing:"border-box",direction:"ltr",height:i?"auto":a,overflowX:"hidden",overflowY:R<a?"hidden":"auto",position:"relative",width:m,WebkitOverflowScrolling:"touch",willChange:"transform"},v),tabIndex:_},d.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:R,maxWidth:"100%",maxHeight:R,overflow:"hidden",pointerEvents:C?"none":"",position:"relative"}},x))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&M(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=k(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,i=e.width,n=Math.max(1,Math.floor(i/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,n,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,i=this.state.scrollTop;this._onScrollMemoized!==i&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:i}),this._onScrollMemoized=i)}},{key:"_invokeOnCellsRenderedCallback",value:function(){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)}},{key:"_populatePositionCache",value:function(e,t){for(var o=this.props,i=o.cellMeasurerCache,n=o.cellPositioner,r=e;r<=t;r++){var l=n(r),s=l.left,a=l.top;this._positionCache.setPosition(r,s,a,i.getHeight(r))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(d.PureComponent),(0,c.Z)(Pe,"propTypes",null),Oe);function We(){}(0,c.Z)(Ae,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:We,onScroll:We,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),(0,h.polyfill)(Ae);var Ee=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.Z)(this,e),(0,c.Z)(this,"_cellMeasurerCache",void 0),(0,c.Z)(this,"_columnIndexOffset",void 0),(0,c.Z)(this,"_rowIndexOffset",void 0),(0,c.Z)(this,"columnWidth",(function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})})),(0,c.Z)(this,"rowHeight",(function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})}));var n=o.cellMeasurerCache,r=o.columnIndexOffset,l=void 0===r?0:r,s=o.rowIndexOffset,a=void 0===s?0:s;this._cellMeasurerCache=n,this._columnIndexOffset=l,this._rowIndexOffset=a}return(0,n.Z)(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,o,i){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,i)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function De(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function je(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?De(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):De(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Fe=function(e){function t(e,o){var n;(0,i.Z)(this,t),n=(0,r.Z)(this,(0,l.Z)(t).call(this,e,o)),(0,c.Z)((0,s.Z)(n),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),(0,c.Z)((0,s.Z)(n),"_deferredInvalidateColumnIndex",null),(0,c.Z)((0,s.Z)(n),"_deferredInvalidateRowIndex",null),(0,c.Z)((0,s.Z)(n),"_bottomLeftGridRef",(function(e){n._bottomLeftGrid=e})),(0,c.Z)((0,s.Z)(n),"_bottomRightGridRef",(function(e){n._bottomRightGrid=e})),(0,c.Z)((0,s.Z)(n),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,o=(0,g.Z)(e,["rowIndex"]),i=n.props,r=i.cellRenderer,l=i.fixedRowCount;return t===i.rowCount-l?d.createElement("div",{key:o.key,style:je({},o.style,{height:20})}):r(je({},o,{parent:(0,s.Z)(n),rowIndex:t+l}))})),(0,c.Z)((0,s.Z)(n),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,o=e.rowIndex,i=(0,g.Z)(e,["columnIndex","rowIndex"]),r=n.props,l=r.cellRenderer,a=r.fixedColumnCount,c=r.fixedRowCount;return l(je({},i,{columnIndex:t+a,parent:(0,s.Z)(n),rowIndex:o+c}))})),(0,c.Z)((0,s.Z)(n),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,o=(0,g.Z)(e,["columnIndex"]),i=n.props,r=i.cellRenderer,l=i.columnCount,a=i.fixedColumnCount;return t===l-a?d.createElement("div",{key:o.key,style:je({},o.style,{width:20})}):r(je({},o,{columnIndex:t+a,parent:(0,s.Z)(n)}))})),(0,c.Z)((0,s.Z)(n),"_columnWidthRightGrid",(function(e){var t=e.index,o=n.props,i=o.columnCount,r=o.fixedColumnCount,l=o.columnWidth,s=n.state,a=s.scrollbarSize;return s.showHorizontalScrollbar&&t===i-r?a:"function"==typeof l?l({index:t+r}):l})),(0,c.Z)((0,s.Z)(n),"_onScroll",(function(e){var t=e.scrollLeft,o=e.scrollTop;n.setState({scrollLeft:t,scrollTop:o});var i=n.props.onScroll;i&&i(e)})),(0,c.Z)((0,s.Z)(n),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,o=e.size,i=e.vertical,r=n.state,l=r.showHorizontalScrollbar,s=r.showVerticalScrollbar;if(t!==l||i!==s){n.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:i});var a=n.props.onScrollbarPresenceChange;"function"==typeof a&&a({horizontal:t,size:o,vertical:i})}})),(0,c.Z)((0,s.Z)(n),"_onScrollLeft",(function(e){var t=e.scrollLeft;n._onScroll({scrollLeft:t,scrollTop:n.state.scrollTop})})),(0,c.Z)((0,s.Z)(n),"_onScrollTop",(function(e){var t=e.scrollTop;n._onScroll({scrollTop:t,scrollLeft:n.state.scrollLeft})})),(0,c.Z)((0,s.Z)(n),"_rowHeightBottomGrid",(function(e){var t=e.index,o=n.props,i=o.fixedRowCount,r=o.rowCount,l=o.rowHeight,s=n.state,a=s.scrollbarSize;return s.showVerticalScrollbar&&t===r-i?a:"function"==typeof l?l({index:t+i}):l})),(0,c.Z)((0,s.Z)(n),"_topLeftGridRef",(function(e){n._topLeftGrid=e})),(0,c.Z)((0,s.Z)(n),"_topRightGridRef",(function(e){n._topRightGrid=e}));var a=e.deferredMeasurementCache,h=e.fixedColumnCount,u=e.fixedRowCount;return n._maybeCalculateCachedStyles(!0),a&&(n._deferredMeasurementCacheBottomLeftGrid=u>0?new Ee({cellMeasurerCache:a,columnIndexOffset:0,rowIndexOffset:u}):a,n._deferredMeasurementCacheBottomRightGrid=h>0||u>0?new Ee({cellMeasurerCache:a,columnIndexOffset:h,rowIndexOffset:u}):a,n._deferredMeasurementCacheTopRightGrid=h>0?new Ee({cellMeasurerCache:a,columnIndexOffset:h,rowIndexOffset:0}):a),n}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,i=e.rowIndex,n=void 0===i?0:i;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,i=e.rowIndex,n=void 0===i?0:i,r=this.props,l=r.fixedColumnCount,s=r.fixedRowCount,a=Math.max(0,o-l),c=Math.max(0,n-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:a,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:n}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:a,rowIndex:n}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,o=e.scrollTop;if(t>0||o>0){var i={};t>0&&(i.scrollLeft=t),o>0&&(i.scrollTop=o),this.setState(i)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,o=e.onSectionRendered,i=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),n=(e.scrollTop,e.scrollToRow),r=(0,g.Z)(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var l=this.state,s=l.scrollLeft,a=l.scrollTop;return d.createElement("div",{style:this._containerOuterStyle},d.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(r),this._renderTopRightGrid(je({},r,{onScroll:t,scrollLeft:s}))),d.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(je({},r,{onScroll:t,scrollTop:a})),this._renderBottomRightGrid(je({},r,{onScroll:t,onSectionRendered:o,scrollLeft:s,scrollToColumn:i,scrollToRow:n,scrollTop:a}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,o=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof o){for(var i=0,n=0;n<t;n++)i+=o({index:n});this._leftGridWidth=i}else this._leftGridWidth=o*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,o=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof o){for(var i=0,n=0;n<t;n++)i+=o({index:n});this._topGridHeight=i}else this._topGridHeight=o*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,o=t.columnWidth,i=t.enableFixedColumnScroll,n=t.enableFixedRowScroll,r=t.height,l=t.fixedColumnCount,s=t.fixedRowCount,a=t.rowHeight,c=t.style,d=t.styleBottomLeftGrid,h=t.styleBottomRightGrid,u=t.styleTopLeftGrid,f=t.styleTopRightGrid,p=t.width,g=e||r!==this._lastRenderedHeight||p!==this._lastRenderedWidth,v=e||o!==this._lastRenderedColumnWidth||l!==this._lastRenderedFixedColumnCount,_=e||s!==this._lastRenderedFixedRowCount||a!==this._lastRenderedRowHeight;(e||g||c!==this._lastRenderedStyle)&&(this._containerOuterStyle=je({height:r,overflow:"visible",width:p},c)),(e||g||_)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:p},this._containerBottomStyle={height:r-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:p}),(e||d!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=je({left:0,overflowX:"hidden",overflowY:i?"auto":"hidden",position:"absolute"},d)),(e||v||h!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=je({left:this._getLeftGridWidth(this.props),position:"absolute"},h)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=je({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||v||f!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=je({left:this._getLeftGridWidth(this.props),overflowX:n?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},f)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=l,this._lastRenderedFixedRowCount=s,this._lastRenderedHeight=r,this._lastRenderedRowHeight=a,this._lastRenderedStyle=c,this._lastRenderedStyleBottomLeftGrid=d,this._lastRenderedStyleBottomRightGrid=h,this._lastRenderedStyleTopLeftGrid=u,this._lastRenderedStyleTopRightGrid=f,this._lastRenderedWidth=p}},{key:"_prepareForRender",value:function(){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}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,o=e.fixedColumnCount,i=e.fixedRowCount,n=e.rowCount,r=e.hideBottomLeftGridScrollbar,l=this.state.showVerticalScrollbar;if(!o)return null;var s=l?1:0,a=this._getBottomGridHeight(e),c=this._getLeftGridWidth(e),h=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,f=r?c+h:c,p=d.createElement(H,(0,u.Z)({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:a,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,n-i)+s,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:f}));return r?d.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:je({},this._bottomLeftGridStyle,{height:a,width:c,overflowY:"hidden"})},p):p}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,o=e.fixedColumnCount,i=e.fixedRowCount,n=e.rowCount,r=e.scrollToColumn,l=e.scrollToRow;return d.createElement(H,(0,u.Z)({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-o),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,n-i),rowHeight:this._rowHeightBottomGrid,scrollToColumn:r-o,scrollToRow:l-i,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?d.createElement(H,(0,u.Z)({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:o,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,o=e.enableFixedRowScroll,i=e.fixedColumnCount,n=e.fixedRowCount,r=e.scrollLeft,l=e.hideTopRightGridScrollbar,s=this.state,a=s.showHorizontalScrollbar,c=s.scrollbarSize;if(!n)return null;var h=a?1:0,f=this._getTopGridHeight(e),p=this._getRightGridWidth(e),g=a?c:0,v=f,_=this._topRightGridStyle;l&&(v=f+g,_=je({},this._topRightGridStyle,{left:0}));var m=d.createElement(H,(0,u.Z)({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-i)+h,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:v,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:n,scrollLeft:r,style:_,tabIndex:null,width:p}));return l?d.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:je({},this._topRightGridStyle,{height:f,width:p,overflowX:"hidden"})},m):m}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(d.PureComponent);function Ne(e){var t=e.className,o=e.columns,i=e.style;return d.createElement("div",{className:t,role:"row",style:i},o)}(0,c.Z)(Fe,"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}),Fe.propTypes={},(0,h.polyfill)(Fe),(function(e){function t(e,o){var n;return(0,i.Z)(this,t),(n=(0,r.Z)(this,(0,l.Z)(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind((0,s.Z)(n)),n}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,i=t.clientWidth,n=t.scrollHeight,r=t.scrollLeft,l=t.scrollTop,s=t.scrollWidth;return e({clientHeight:o,clientWidth:i,onScroll:this._onScroll,scrollHeight:n,scrollLeft:r,scrollTop:l,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,i=e.scrollHeight,n=e.scrollLeft,r=e.scrollTop,l=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:l})}}]),t}(d.PureComponent)).propTypes={},Ne.propTypes=null;const Ue="ASC",Be="DESC";function Ve(e){var t=e.sortDirection,o=(0,f.default)("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Ue,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Be});return d.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===Ue?d.createElement("path",{d:"M7 14l5-5 5 5z"}):d.createElement("path",{d:"M7 10l5 5 5-5z"}),d.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function qe(e){var t=e.dataKey,o=e.label,i=e.sortBy,n=e.sortDirection,r=i===t,l=[d.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return r&&l.push(d.createElement(Ve,{key:"SortIndicator",sortDirection:n})),l}function Xe(e){var t=e.className,o=e.columns,i=e.index,n=e.key,r=e.onRowClick,l=e.onRowDoubleClick,s=e.onRowMouseOut,a=e.onRowMouseOver,c=e.onRowRightClick,h=e.rowData,f=e.style,p={"aria-rowindex":i+1};return(r||l||s||a||c)&&(p["aria-label"]="row",p.tabIndex=0,r&&(p.onClick=function(e){return r({event:e,index:i,rowData:h})}),l&&(p.onDoubleClick=function(e){return l({event:e,index:i,rowData:h})}),s&&(p.onMouseOut=function(e){return s({event:e,index:i,rowData:h})}),a&&(p.onMouseOver=function(e){return a({event:e,index:i,rowData:h})}),c&&(p.onContextMenu=function(e){return c({event:e,index:i,rowData:h})})),d.createElement("div",(0,u.Z)({},p,{className:t,key:n,role:"row",style:f}),o)}Ve.propTypes={},qe.propTypes=null,Xe.propTypes=null;var Ye=function(e){function t(){return(0,i.Z)(this,t),(0,r.Z)(this,(0,l.Z)(t).apply(this,arguments))}return(0,a.Z)(t,e),t}(d.Component);function Ke(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Je(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ke(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ke(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}(0,c.Z)(Ye,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,o=e.rowData;return"function"==typeof o.get?o.get(t):o[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:Ue,flexGrow:0,flexShrink:1,headerRenderer:qe,style:{}}),Ye.propTypes={};var Qe=function(e){function t(e){var o;return(0,i.Z)(this,t),(o=(0,r.Z)(this,(0,l.Z)(t).call(this,e))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind((0,s.Z)(o)),o._createRow=o._createRow.bind((0,s.Z)(o)),o._onScroll=o._onScroll.bind((0,s.Z)(o)),o._onSectionRendered=o._onSectionRendered.bind((0,s.Z)(o)),o._setRef=o._setRef.bind((0,s.Z)(o)),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,i=e.rowIndex,n=void 0===i?0:i;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=(0,K.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,o=t.children,i=t.className,n=t.disableHeader,r=t.gridClassName,l=t.gridStyle,s=t.headerHeight,a=t.headerRowRenderer,c=t.height,h=t.id,p=t.noRowsRenderer,g=t.rowClassName,v=t.rowStyle,_=t.scrollToIndex,m=t.style,S=t.width,y=this.state.scrollbarWidth,C=n?c:c-s,w="function"==typeof g?g({index:-1}):g,x="function"==typeof v?v({index:-1}):v;return this._cachedColumnStyles=[],d.Children.toArray(o).forEach((function(t,o){var i=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=Je({overflow:"hidden"},i)})),d.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":d.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:(0,f.default)("ReactVirtualized__Table",i),id:h,role:"grid",style:m},!n&&a({className:(0,f.default)("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:Je({height:s,overflow:"hidden",paddingRight:y,width:S},x)}),d.createElement(H,(0,u.Z)({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:(0,f.default)("ReactVirtualized__Table__Grid",r),cellRenderer:this._createRow,columnWidth:S,columnCount:1,height:C,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:_,style:Je({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,i=e.isScrolling,n=e.parent,r=e.rowData,l=e.rowIndex,s=this.props.onColumnClick,a=t.props,c=a.cellDataGetter,h=a.cellRenderer,u=a.className,p=a.columnData,g=a.dataKey,v=a.id,_=h({cellData:c({columnData:p,dataKey:g,rowData:r}),columnData:p,columnIndex:o,dataKey:g,isScrolling:i,parent:n,rowData:r,rowIndex:l}),m=this._cachedColumnStyles[o],S="string"==typeof _?_:null;return d.createElement("div",{"aria-colindex":o+1,"aria-describedby":v,className:(0,f.default)("ReactVirtualized__Table__rowColumn",u),key:"Row"+l+"-Col"+o,onClick:function(e){s&&s({columnData:p,dataKey:g,event:e})},role:"gridcell",style:m,title:S},_)}},{key:"_createHeader",value:function(e){var t,o,i,n,r,l=e.column,s=e.index,a=this.props,c=a.headerClassName,h=a.headerStyle,u=a.onHeaderClick,p=a.sort,g=a.sortBy,v=a.sortDirection,_=l.props,m=_.columnData,S=_.dataKey,y=_.defaultSortDirection,C=_.disableSort,w=_.headerRenderer,x=_.id,R=_.label,b=!C&&p,z=(0,f.default)("ReactVirtualized__Table__headerColumn",c,l.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:b}),T=this._getFlexStyleForColumn(l,Je({},h,{},l.props.headerStyle)),I=w({columnData:m,dataKey:S,disableSort:C,label:R,sortBy:g,sortDirection:v});if(b||u){var Z=g!==S?y:v===Be?Ue:Be,M=function(e){b&&p({defaultSortDirection:y,event:e,sortBy:S,sortDirection:Z}),u&&u({columnData:m,dataKey:S,event:e})};r=l.props["aria-label"]||R||S,n="none",i=0,t=M,o=function(e){"Enter"!==e.key&&" "!==e.key||M(e)}}return g===S&&(n=v===Ue?"ascending":"descending"),d.createElement("div",{"aria-label":r,"aria-sort":n,className:z,id:x,key:"Header-Col"+s,onClick:t,onKeyDown:o,role:"columnheader",style:T,tabIndex:i},I)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,i=e.isScrolling,n=e.key,r=e.parent,l=e.style,s=this.props,a=s.children,c=s.onRowClick,h=s.onRowDoubleClick,u=s.onRowRightClick,p=s.onRowMouseOver,g=s.onRowMouseOut,v=s.rowClassName,_=s.rowGetter,m=s.rowRenderer,S=s.rowStyle,y=this.state.scrollbarWidth,C="function"==typeof v?v({index:o}):v,w="function"==typeof S?S({index:o}):S,x=_({index:o}),R=d.Children.toArray(a).map((function(e,n){return t._createColumn({column:e,columnIndex:n,isScrolling:i,parent:r,rowData:x,rowIndex:o,scrollbarWidth:y})})),b=(0,f.default)("ReactVirtualized__Table__row",C),z=Je({},l,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:y},w);return m({className:b,columns:R,index:o,isScrolling:i,key:n,onRowClick:c,onRowDoubleClick:h,onRowRightClick:u,onRowMouseOver:p,onRowMouseOut:g,rowData:x,style:z})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),i=Je({},t,{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(i.maxWidth=e.props.maxWidth),e.props.minWidth&&(i.minWidth=e.props.minWidth),i}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,o=t.children;return(t.disableHeader?[]:d.Children.toArray(o)).map((function(t,o){return e._createHeader({column:t,index:o})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.scrollHeight,i=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:i})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,i=e.rowStartIndex,n=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:i,stopIndex:n})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(d.PureComponent);(0,c.Z)(Qe,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:A,overscanRowCount:10,rowRenderer:Xe,headerRowRenderer:Ne,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),Qe.propTypes={};var $e=[],et=null,tt=null;function ot(){tt&&(tt=null,document.body&&null!=et&&(document.body.style.pointerEvents=et),et=null)}function it(){ot(),$e.forEach((function(e){return e.__resetIsScrolling()}))}function nt(e){e.currentTarget===window&&null==et&&document.body&&(et=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){tt&&M(tt);var e=0;$e.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),tt=k(it,e)}(),$e.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function rt(e,t){$e.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",nt),$e.push(e)}function lt(e,t){($e=$e.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",nt),tt&&(M(tt),ot()))}var st,at,ct=function(e){return e===window},dt=function(e){return e.getBoundingClientRect()};function ht(e,t){if(e){if(ct(e)){var o=window,i=o.innerHeight,n=o.innerWidth;return{height:"number"==typeof i?i:0,width:"number"==typeof n?n:0}}return dt(e)}return{height:t.serverHeight,width:t.serverWidth}}function ut(e,t){if(ct(t)&&document.documentElement){var o=document.documentElement,i=dt(e),n=dt(o);return{top:i.top-n.top,left:i.left-n.left}}var r=ft(t),l=dt(e),s=dt(t);return{top:l.top+r.top-s.top,left:l.left+r.left-s.left}}function ft(e){return ct(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function pt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function gt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?pt(o,!0).forEach((function(t){(0,c.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):pt(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var vt=function(){return"undefined"!=typeof window?window:void 0},_t=(at=st=function(e){function t(){var e,o;(0,i.Z)(this,t);for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];return o=(0,r.Z)(this,(e=(0,l.Z)(t)).call.apply(e,[this].concat(a))),(0,c.Z)((0,s.Z)(o),"_window",vt()),(0,c.Z)((0,s.Z)(o),"_isMounted",!1),(0,c.Z)((0,s.Z)(o),"_positionFromTop",0),(0,c.Z)((0,s.Z)(o),"_positionFromLeft",0),(0,c.Z)((0,s.Z)(o),"_detectElementResize",void 0),(0,c.Z)((0,s.Z)(o),"_child",void 0),(0,c.Z)((0,s.Z)(o),"state",gt({},ht(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),(0,c.Z)((0,s.Z)(o),"_registerChild",(function(e){!e||e instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),o._child=e,o.updatePosition()})),(0,c.Z)((0,s.Z)(o),"_onChildScroll",(function(e){var t=e.scrollTop;if(o.state.scrollTop!==t){var i=o.props.scrollElement;i&&("function"==typeof i.scrollTo?i.scrollTo(0,t+o._positionFromTop):i.scrollTop=t+o._positionFromTop)}})),(0,c.Z)((0,s.Z)(o),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)})),(0,c.Z)((0,s.Z)(o),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)})),(0,c.Z)((0,s.Z)(o),"_onResize",(function(){o.updatePosition()})),(0,c.Z)((0,s.Z)(o),"__handleWindowScrollEvent",(function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var i=ft(t),n=Math.max(0,i.left-o._positionFromLeft),r=Math.max(0,i.top-o._positionFromTop);o.setState({isScrolling:!0,scrollLeft:n,scrollTop:r}),e({scrollLeft:n,scrollTop:r})}}})),(0,c.Z)((0,s.Z)(o),"__resetIsScrolling",(function(){o.setState({isScrolling:!1})})),o}return(0,a.Z)(t,e),(0,n.Z)(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,o=this.state,i=o.height,n=o.width,r=this._child||K.findDOMNode(this);if(r instanceof Element&&e){var l=ut(r,e);this._positionFromTop=l.top,this._positionFromLeft=l.left}var s=ht(e,this.props);i===s.height&&n===s.width||(this.setState({height:s.height,width:s.width}),t({height:s.height,width:s.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=U(),this.updatePosition(e),e&&(rt(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,i=e.scrollElement;i!==o&&null!=i&&null!=o&&(this.updatePosition(o),lt(this,i),rt(this,o),this._unregisterResizeListener(i),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(lt(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.isScrolling,i=t.scrollTop,n=t.scrollLeft,r=t.height,l=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:r,isScrolling:o,scrollLeft:n,scrollTop:i,width:l})}}]),t}(d.PureComponent),(0,c.Z)(st,"propTypes",null),at);(0,c.Z)(_t,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:vt(),serverHeight:0,serverWidth:0})}}]);
|
|
2
2
|
//# sourceMappingURL=9309.js.map
|