(this["webpackJsonpgonzo-test-client"]=this["webpackJsonpgonzo-test-client"]||[]).push([[45],{"5SuN":function(e,t,o){"use strict";var i=o("TqRt"),n=o("284h");Object.defineProperty(t,"__esModule",{value:!0}),t.bpfrpt_proptype_Scroll=t.bpfrpt_proptype_RenderedRows=t.bpfrpt_proptype_RowRenderer=t.bpfrpt_proptype_RowRendererParams=void 0;n(o("q1tI")),i(o("17x9"));t.bpfrpt_proptype_RowRendererParams=null;t.bpfrpt_proptype_RowRenderer=null;t.bpfrpt_proptype_RenderedRows=null;t.bpfrpt_proptype_Scroll=null},E261:function(e,t,o){"use strict";var i=o("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(o("lwsE")),r=i(o("W8MJ")),l=i(o("lSNA")),s=(o("uUy6"),function(){function e(t){var o=t.cellCount,i=t.cellSizeGetter,r=t.estimatedCellSize;(0,n.default)(this,e),(0,l.default)(this,"_cellSizeAndPositionData",{}),(0,l.default)(this,"_lastMeasuredIndex",-1),(0,l.default)(this,"_lastBatchedIndex",-1),(0,l.default)(this,"_cellCount",void 0),(0,l.default)(this,"_cellSizeGetter",void 0),(0,l.default)(this,"_estimatedCellSize",void 0),this._cellSizeGetter=i,this._cellCount=o,this._estimatedCellSize=r}return(0,r.default)(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;oo&&(e=i-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var o=1;e=e?this._binarySearch(o,0,e):this._exponentialSearch(o,e)}}]),e}());t.default=s},HDaX:function(e,t,o){"use strict";var i=o("TqRt"),n=o("284h");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,l,s=i(o("pVnL")),a=i(o("lwsE")),c=i(o("W8MJ")),d=i(o("a1gu")),u=i(o("Nsbk")),h=i(o("PJYZ")),f=i(o("7W2i")),p=i(o("lSNA")),_=n(o("f0wc")),v=n(o("q1tI")),S=i(o("iuhU")),g=(o("5SuN"),i(o("17x9")),l=r=function(e){function t(){var e,o;(0,a.default)(this,t);for(var i=arguments.length,n=new Array(i),r=0;r0&&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,S.default)("ReactVirtualized__List",t);return v.createElement(_.default,(0,s.default)({},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}(v.PureComponent),(0,p.default)(r,"propTypes",null),l);t.default=g,(0,p.default)(g,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:_.accessibilityOverscanIndicesGetter,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}})},LpdB:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMaxElementSize=void 0;t.getMaxElementSize=function(){return"undefined"!==typeof window&&window.chrome?16777100:15e5}},NZIM:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(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)}},t.SCROLL_DIRECTION_VERTICAL=t.SCROLL_DIRECTION_HORIZONTAL=t.SCROLL_DIRECTION_FORWARD=t.SCROLL_DIRECTION_BACKWARD=void 0;o("uUy6");t.SCROLL_DIRECTION_BACKWARD=-1;t.SCROLL_DIRECTION_FORWARD=1;t.SCROLL_DIRECTION_HORIZONTAL="horizontal";t.SCROLL_DIRECTION_VERTICAL="vertical"},OBSw:function(e,t,o){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.caf=t.raf=void 0;var n=(i="undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).requestAnimationFrame||i.webkitRequestAnimationFrame||i.mozRequestAnimationFrame||i.oRequestAnimationFrame||i.msRequestAnimationFrame||function(e){return i.setTimeout(e,1e3/60)},r=i.cancelAnimationFrame||i.webkitCancelAnimationFrame||i.mozCancelAnimationFrame||i.oCancelAnimationFrame||i.msCancelAnimationFrame||function(e){i.clearTimeout(e)},l=n;t.raf=l;var s=r;t.caf=s},Pcg1:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=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,u=e.rowSizeAndPositionManager,h=e.rowStartIndex,f=e.rowStopIndex,p=e.styleCache,_=e.verticalOffsetAdjustment,v=e.visibleColumnIndices,S=e.visibleRowIndices,g=[],m=i.areOffsetsAdjusted()||u.areOffsetsAdjusted(),C=!a&&!m,y=h;y<=f;y++)for(var w=u.getSizeAndPositionOfCell(y),R=n;R<=r;R++){var x=i.getSizeAndPositionOfCell(R),T=R>=v.start&&R<=v.stop&&y>=S.start&&y<=S.stop,z="".concat(y,"-").concat(R),I=void 0;C&&p[z]?I=p[z]:l&&!l.has(y,R)?I={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(I={height:w.size,left:x.offset+s,position:"absolute",top:w.offset+_,width:x.size},p[z]=I);var b={columnIndex:R,isScrolling:a,isVisible:T,key:z,parent:d,rowIndex:y,style:I},O=void 0;!c&&!a||s||_?O=o(b):(t[z]||(t[z]=o(b)),O=t[z]),null!=O&&!1!==O&&g.push(O)}return g};o("uUy6")},VZmc:function(e,t,o){"use strict";var i=o("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(o("QILm")),r=i(o("lwsE")),l=i(o("W8MJ")),s=i(o("lSNA")),a=i(o("E261")),c=o("LpdB"),d=(o("uUy6"),function(){function e(t){var o=t.maxScrollSize,i=void 0===o?(0,c.getMaxElementSize)():o,l=(0,n.default)(t,["maxScrollSize"]);(0,r.default)(this,e),(0,s.default)(this,"_cellSizeAndPositionManager",void 0),(0,s.default)(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new a.default(l),this._maxScrollSize=i}return(0,l.default)(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}());t.default=d},b9ZJ:function(e,t,o){"use strict";var i=o("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"List",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"bpfrpt_proptype_RowRendererParams",{enumerable:!0,get:function(){return r.bpfrpt_proptype_RowRendererParams}});var n=i(o("HDaX")),r=o("5SuN")},c7k8:function(e,t,o){"use strict";o.d(t,"a",(function(){return oe})),o.d(t,"b",(function(){return le})),o.d(t,"c",(function(){return se})),o.d(t,"d",(function(){return V})),o.d(t,"e",(function(){return Te})),o.d(t,"f",(function(){return Ot}));var i=o("lwsE"),n=o.n(i),r=o("W8MJ"),l=o.n(r),s=o("a1gu"),a=o.n(s),c=o("Nsbk"),d=o.n(c),u=o("PJYZ"),h=o.n(u),f=o("7W2i"),p=o.n(f),_=o("lSNA"),v=o.n(_),S=o("q1tI"),g=o("VCL8"),m=o("pVnL"),C=o.n(m),y=o("iuhU");function w(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 R=o("QILm"),x=o.n(R),T=(o("17x9"),function(){function e(t){var o=t.cellCount,i=t.cellSizeGetter,r=t.estimatedCellSize;n()(this,e),v()(this,"_cellSizeAndPositionData",{}),v()(this,"_lastMeasuredIndex",-1),v()(this,"_lastBatchedIndex",-1),v()(this,"_cellCount",void 0),v()(this,"_cellSizeGetter",void 0),v()(this,"_estimatedCellSize",void 0),this._cellSizeGetter=i,this._cellCount=o,this._estimatedCellSize=r}return l()(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;oo&&(e=i-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var o=1;e=e?this._binarySearch(o,0,e):this._exponentialSearch(o,e)}}]),e}()),z=function(){return"undefined"!==typeof window&&window.chrome?16777100:15e5},I=function(){function e(t){var o=t.maxScrollSize,i=void 0===o?z():o,r=x()(t,["maxScrollSize"]);n()(this,e),v()(this,"_cellSizeAndPositionManager",void 0),v()(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new T(r),this._maxScrollSize=i}return l()(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 b(){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 O(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,u=e.size,h=e.sizeJustIncreasedFromZero,f=e.updateScrollIndexCallback,p=o.getCellCount(),_=d>=0&&d0&&(uo.getTotalSize()-u&&f(p-1)}var P,M,k,L=o("j6jG"),A=(P="undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).requestAnimationFrame||P.webkitRequestAnimationFrame||P.mozRequestAnimationFrame||P.oRequestAnimationFrame||P.msRequestAnimationFrame||function(e){return P.setTimeout(e,1e3/60)},G=P.cancelAnimationFrame||P.webkitCancelAnimationFrame||P.mozCancelAnimationFrame||P.oCancelAnimationFrame||P.msCancelAnimationFrame||function(e){P.clearTimeout(e)},H=A,W=G,E=function(e){return W(e.id)},D=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var i={id:H((function n(){Date.now()-o>=t?e.call():i.id=H(n)}))};return i};function j(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 F(e){for(var t=1;t0&&(o._initialScrollTop=o._getCalculatedScrollTop(e,o.state)),e.scrollToColumn>0&&(o._initialScrollLeft=o._getCalculatedScrollLeft(e,o.state)),o}return p()(t,e),l()(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=F({},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,u=d.scrollbarSize,h=d.rowSizeAndPositionManager.getTotalSize(),f=d.columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,f-c+u),o),_=Math.min(Math.max(0,h-a+u),n);if(this.state.scrollLeft!==p||this.state.scrollTop!==_){var v={isScrolling:!0,scrollDirectionHorizontal:p!==this.state.scrollLeft?p>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:_!==this.state.scrollTop?_>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:N};l||(v.scrollTop=_),s||(v.scrollLeft=p),v.needToResetStyleCache=!1,this.setState(v)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:_,totalColumnsWidth:f,totalRowsHeight:h})}}},{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(F({},n,{scrollToColumn:t})),void 0!==o&&this._updateScrollTopForScrollToRow(F({},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=F({},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 u=i>0&&a>0;r>=0&&u&&this._updateScrollLeftForScrollToColumn(),s>=0&&u&&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,u=i.scrollToRow,h=i.width,f=this.state,p=f.scrollLeft,_=f.scrollPositionChangeReason,v=f.scrollTop,S=f.instanceProps;this._handleInvalidatedGridSize();var g=l>0&&0===e.columnCount||a>0&&0===e.rowCount;_===U&&(!r&&p>=0&&(p!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=p),!n&&v>=0&&(v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v));var m=(0===e.width||0===e.height)&&s>0&&h>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):O({cellSizeAndPositionManager:S.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:p,scrollToAlignment:c,scrollToIndex:d,size:h,sizeJustIncreasedFromZero:m,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):O({cellSizeAndPositionManager:S.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:c,scrollToIndex:u,size:s,sizeJustIncreasedFromZero:m,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),p!==t.scrollLeft||v!==t.scrollTop){var C=S.rowSizeAndPositionManager.getTotalSize(),y=S.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:C})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&E(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,d=e.noContentRenderer,u=e.role,h=e.style,f=e.tabIndex,p=e.width,_=this.state,v=_.instanceProps,g=_.needToResetStyleCache,m=this._isScrolling(),w={boxSizing:"border-box",direction:"ltr",height:o?"auto":a,position:"relative",width:i?"auto":p,WebkitOverflowScrolling:"touch",willChange:"transform"};g&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var R=v.columnSizeAndPositionManager.getTotalSize(),x=v.rowSizeAndPositionManager.getTotalSize(),T=x>a?v.scrollbarSize:0,z=R>p?v.scrollbarSize:0;z===this._horizontalScrollBarSize&&T===this._verticalScrollBarSize||(this._horizontalScrollBarSize=z,this._verticalScrollBarSize=T,this._scrollbarPresenceChanged=!0),w.overflowX=R+T<=p?"hidden":"auto",w.overflowY=x+z<=a?"hidden":"auto";var I=this._childrenToDisplay,b=0===I.length&&a>0&&p>0;return S.createElement("div",C()({ref:this._setScrollingContainerRef},r,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:Object(y.default)("ReactVirtualized__Grid",n),id:c,onScroll:this._onScroll,role:u,style:F({},w,{},h),tabIndex:f}),I.length>0&&S.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:l,style:F({width:t?"auto":R,height:x,maxWidth:R,maxHeight:x,overflow:"hidden",pointerEvents:m?"none":"",position:"relative"},s)},I),b&&d())}},{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,u=e.width,h=e.isScrollingOptOut,f=t.scrollDirectionHorizontal,p=t.scrollDirectionVertical,_=t.instanceProps,v=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,S=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,g=this._isScrolling(e,t);if(this._childrenToDisplay=[],l>0&&u>0){var m=_.columnSizeAndPositionManager.getVisibleCellRange({containerSize:u,offset:S}),C=_.rowSizeAndPositionManager.getVisibleCellRange({containerSize:l,offset:v}),y=_.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:u,offset:S}),w=_.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:l,offset:v});this._renderedColumnStartIndex=m.start,this._renderedColumnStopIndex=m.stop,this._renderedRowStartIndex=C.start,this._renderedRowStopIndex=C.stop;var R=a({direction:"horizontal",cellCount:n,overscanCellsCount:s,scrollDirection:f,startIndex:"number"===typeof m.start?m.start:0,stopIndex:"number"===typeof m.stop?m.stop:-1}),x=a({direction:"vertical",cellCount:d,overscanCellsCount:c,scrollDirection:p,startIndex:"number"===typeof C.start?C.start:0,stopIndex:"number"===typeof C.stop?C.stop:-1}),T=R.overscanStartIndex,z=R.overscanStopIndex,I=x.overscanStartIndex,b=x.overscanStopIndex;if(r){if(!r.hasFixedHeight())for(var O=I;O<=b;O++)if(!r.has(O,0)){T=0,z=n-1;break}if(!r.hasFixedWidth())for(var P=T;P<=z;P++)if(!r.has(0,P)){I=0,b=d-1;break}}this._childrenToDisplay=i({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:_.columnSizeAndPositionManager,columnStartIndex:T,columnStopIndex:z,deferredMeasurementCache:r,horizontalOffsetAdjustment:y,isScrolling:g,isScrollingOptOut:h,parent:this,rowSizeAndPositionManager:_.rowSizeAndPositionManager,rowStartIndex:I,rowStopIndex:b,scrollLeft:S,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:w,visibleColumnIndices:m,visibleRowIndices:C}),this._columnStartIndex=T,this._columnStopIndex=z,this._rowStartIndex=I,this._rowStopIndex=b}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&E(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=D(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}),w({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)}}),w({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,F({},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:U};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),u=a.rowSizeAndPositionManager.getTotalSize(),h=a.scrollbarSizeMeasured&&u>i?a.scrollbarSize:0;return a.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:l-h,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),u=a.columnSizeAndPositionManager.getTotalSize(),h=a.scrollbarSizeMeasured&&u>l?a.scrollbarSize:0;return a.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o-h,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}(S.PureComponent),v()(M,"propTypes",null),k);v()(B,"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,u=e.rowSizeAndPositionManager,h=e.rowStartIndex,f=e.rowStopIndex,p=e.styleCache,_=e.verticalOffsetAdjustment,v=e.visibleColumnIndices,S=e.visibleRowIndices,g=[],m=i.areOffsetsAdjusted()||u.areOffsetsAdjusted(),C=!a&&!m,y=h;y<=f;y++)for(var w=u.getSizeAndPositionOfCell(y),R=n;R<=r;R++){var x=i.getSizeAndPositionOfCell(R),T=R>=v.start&&R<=v.stop&&y>=S.start&&y<=S.stop,z="".concat(y,"-").concat(R),I=void 0;C&&p[z]?I=p[z]:l&&!l.has(y,R)?I={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(I={height:w.size,left:x.offset+s,position:"absolute",top:w.offset+_,width:x.size},p[z]=I);var b={columnIndex:R,isScrolling:a,isVisible:T,key:z,parent:d,rowIndex:y,style:I},O=void 0;!c&&!a||s||_?O=o(b):(t[z]||(t[z]=o(b)),O=t[z]),null!=O&&!1!==O&&g.push(O)}return g},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:L.default,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}),Object(g.polyfill)(B);var V=B;function q(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 K,Z;function J(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 X=(Z=K=function(e){function t(){var e,o;n()(this,t);for(var i=arguments.length,r=new Array(i),l=0;l0&&void 0!==arguments[0]?arguments[0]:{};n()(this,e),v()(this,"_cellHeightCache",{}),v()(this,"_cellWidthCache",{}),v()(this,"_columnWidthCache",{}),v()(this,"_rowHeightCache",{}),v()(this,"_defaultHeight",void 0),v()(this,"_defaultWidth",void 0),v()(this,"_minHeight",void 0),v()(this,"_minWidth",void 0),v()(this,"_keyMapper",void 0),v()(this,"_hasFixedHeight",void 0),v()(this,"_hasFixedWidth",void 0),v()(this,"_columnCount",0),v()(this,"_rowCount",0),v()(this,"columnWidth",(function(e){var o=e.index,i=t._keyMapper(0,o);return void 0!==t._columnWidthCache[i]?t._columnWidthCache[i]:t._defaultWidth})),v()(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 i=o.defaultHeight,r=o.defaultWidth,l=o.fixedHeight,s=o.fixedWidth,a=o.keyMapper,c=o.minHeight,d=o.minWidth;this._hasFixedHeight=!0===l,this._hasFixedWidth=!0===s,this._minHeight=c||0,this._minWidth=d||0,this._keyMapper=a||ae,this._defaultHeight=Math.max(this._minHeight,"number"===typeof i?i:30),this._defaultWidth=Math.max(this._minWidth,"number"===typeof r?r:100)}return l()(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=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)}})),v()(h()(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,u=Math.max(0,Math.min(d-l+s,e.target.scrollLeft)),h=Math.max(0,Math.min(c-n+s,e.target.scrollTop));if(o.state.scrollLeft!==u||o.state.scrollTop!==h){var f=e.cancelable?ue:he;o.state.isScrolling||r(!0),o.setState({isScrolling:!0,scrollLeft:u,scrollPositionChangeReason:f,scrollTop:h})}o._invokeOnScrollMemoizer({scrollLeft:u,scrollTop:h,totalWidth:d,totalHeight:c})}})),o._scrollbarSize=Object(L.default)(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return p()(t,e),l()(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=Object(L.default)(),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===he&&(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,d=e.verticalOverscanSize,u=e.width,h=this.state,f=h.isScrolling,p=h.scrollLeft,_=h.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==i||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=i,this._calculateSizeAndPositionDataOnNextUpdate=!1,i.calculateSizeAndPositionData());var v=i.getTotalSize(),g=v.height,m=v.width,C=Math.max(0,p-l),w=Math.max(0,_-d),R=Math.min(m,p+u+l),x=Math.min(g,_+r+d),T=r>0&&u>0?i.cellRenderers({height:x-w,isScrolling:f,width:R-C,x:C,y:w}):[],z={boxSizing:"border-box",direction:"ltr",height:t?"auto":r,position:"relative",WebkitOverflowScrolling:"touch",width:u,willChange:"transform"},I=g>r?this._scrollbarSize:0,b=m>u?this._scrollbarSize:0;return z.overflowX=m+I<=u?"hidden":"auto",z.overflowY=g+b<=r?"hidden":"auto",S.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Object(y.default)("ReactVirtualized__Collection",n),id:s,onScroll:this._onScroll,role:"grid",style:de({},z,{},c),tabIndex:0},o>0&&S.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:g,maxHeight:g,maxWidth:m,overflow:"hidden",pointerEvents:f?"none":"",width:m}},T),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:he};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:he}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:he}}}]),t}(S.PureComponent);v()(fe,"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}),fe.propTypes={},Object(g.polyfill)(fe);var pe=fe,_e=function(){function e(t){var o=t.height,i=t.width,r=t.x,l=t.y;n()(this,e),this.height=o,this.width=i,this.x=r,this.y=l,this._indexMap={},this._indices=[]}return l()(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}(),ve=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;n()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return l()(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 u=s;u<=a;u++){var h="".concat(d,".").concat(u);this._sections[h]||(this._sections[h]=new _e({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:u*this._sectionSize})),c.push(this._sections[h])}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 Se(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 ge=function(e){function t(e,o){var i;return n()(this,t),(i=a()(this,d()(t).call(this,e,o)))._cellMetadata=[],i._lastRenderedCellIndices=[],i._cellCache=[],i._isScrollingChange=i._isScrollingChange.bind(h()(i)),i._setCollectionViewRef=i._setCollectionViewRef.bind(h()(i)),i}return p()(t,e),l()(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=C()({},this.props);return S.createElement(pe,C()({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=e.sectionSize,n=[],r=new ve(i),l=0,s=0,a=0;a=0&&oo||n1&&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.startIndex,r=e.stopIndex,l=[],s=null,a=null,c=n;c<=r;c++){t({index:c})?null!==a&&(l.push({startIndex:s,stopIndex:a}),s=a=null):(a=c,null===s&&(s=c))}if(null!==a){for(var d=Math.min(Math.max(a,s+o-1),i-1),u=a+1;u<=d&&!t({index:u});u++)a=u;l.push({startIndex:s,stopIndex:a})}if(l.length)for(var h=l[0];h.stopIndex-h.startIndex+10;){var f=h.startIndex-1;if(t({index:f}))break;h.startIndex=f}return l}({isRowLoaded:r,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,e-a),stopIndex:Math.min(s-1,t+a)}),d=(o=[]).concat.apply(o,ye()(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}(S.PureComponent);v()(we,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),we.propTypes={};var Re,xe,Te=(xe=Re=function(e){function t(){var e,o;n()(this,t);for(var i=arguments.length,r=new Array(i),l=0;l0&&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=Object(y.default)("ReactVirtualized__List",t);return S.createElement(V,C()({},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}(S.PureComponent),v()(Re,"propTypes",null),xe);v()(Te,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:q,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});var ze=o("J4zp"),Ie=o.n(ze);var be={ge: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)},gt: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)},lt:function(e,t,o,i,n){return"function"===typeof o?function(e,t,o,i,n){for(var r=t-1;t<=o;){var l=t+o>>>1;n(e[l],i)<0?(r=l,t=l+1):o=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=t-1;t<=o;){var r=t+o>>>1;e[r]>>1;n(e[l],i)<=0?(r=l,t=l+1):o=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=t-1;t<=o;){var r=t+o>>>1;e[r]<=i?(n=r,t=r+1):o=r-1}return n}(e,void 0===o?0:0|o,void 0===i?e.length-1:0|i,t)},eq:function(e,t,o,i,n){return"function"===typeof o?function(e,t,o,i,n){for(;t<=o;){var r=t+o>>>1,l=n(e[r],i);if(0===l)return r;l<=0?t=r+1:o=r-1}return-1}(e,void 0===i?0:0|i,void 0===n?e.length-1:0|n,t,o):function(e,t,o,i){for(;t<=o;){var n=t+o>>>1,r=e[n];if(r===i)return n;r<=i?t=n+1:o=n-1}return-1}(e,void 0===o?0:0|o,void 0===i?e.length-1:0|i,t)}};function Oe(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 Pe=Oe.prototype;function Me(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 ke(e,t){var o=Fe(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 Le(e,t){var o=e.intervals([]);o.push(t),ke(e,o)}function Ae(e,t){var o=e.intervals([]),i=o.indexOf(t);return i<0?0:(o.splice(i,1),ke(e,o),1)}function Ge(e,t,o){for(var i=0;i=0&&e[i][1]>=t;--i){var n=o(e[i]);if(n)return n}}function We(e,t){for(var o=0;o>1],n=[],r=[],l=[];for(o=0;o3*(t+1)?Le(this,e):this.left.insert(e):this.left=Fe([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Le(this,e):this.right.insert(e):this.right=Fe([e]);else{var o=be.ge(this.leftPoints,e,De),i=be.ge(this.rightPoints,e,je);this.leftPoints.splice(o,0,e),this.rightPoints.splice(i,0,e)}},Pe.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1)?Ae(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)?Ae(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}Me(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Me(this,this.left):Me(this,this.right);return 1}for(n=be.ge(this.leftPoints,e,De);nthis.mid){var o;if(this.right)if(o=this.right.queryPoint(e,t))return o;return He(this.rightPoints,e,t)}return We(this.leftPoints,t)},Pe.queryInterval=function(e,t,o){var i;if(ethis.mid&&this.right&&(i=this.right.queryInterval(e,t,o)))return i;return tthis.mid?He(this.rightPoints,e,o):We(this.leftPoints,o)};var Ue=Ne.prototype;Ue.insert=function(e){this.root?this.root.insert(e):this.root=new Oe(e[0],null,null,[e],[e])},Ue.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},Ue.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},Ue.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(Ue,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(Ue,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Be,Ve,qe=function(){function e(){var t;n()(this,e),v()(this,"_columnSizeMap",{}),v()(this,"_intervalTree",t&&0!==t.length?new Ne(Fe(t)):new Ne(null)),v()(this,"_leftMap",{})}return l()(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=Ie()(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 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 Ze(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};n()(this,e),v()(this,"_cellMeasurerCache",void 0),v()(this,"_columnIndexOffset",void 0),v()(this,"_rowIndexOffset",void 0),v()(this,"columnWidth",(function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})})),v()(this,"rowHeight",(function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})}));var i=o.cellMeasurerCache,r=o.columnIndexOffset,l=void 0===r?0:r,s=o.rowIndexOffset,a=void 0===s?0:s;this._cellMeasurerCache=i,this._columnIndexOffset=l,this._rowIndexOffset=a}return l()(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 Qe(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 $e(e){for(var t=1;t0?new Ye({cellMeasurerCache:r,columnIndexOffset:0,rowIndexOffset:s}):r,i._deferredMeasurementCacheBottomRightGrid=l>0||s>0?new Ye({cellMeasurerCache:r,columnIndexOffset:l,rowIndexOffset:s}):r,i._deferredMeasurementCacheTopRightGrid=l>0?new Ye({cellMeasurerCache:r,columnIndexOffset:l,rowIndexOffset:0}):r),i}return p()(t,e),l()(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=x()(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 S.createElement("div",{style:this._containerOuterStyle},S.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(r),this._renderTopRightGrid($e({},r,{onScroll:t,scrollLeft:s}))),S.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid($e({},r,{onScroll:t,scrollTop:a})),this._renderBottomRightGrid($e({},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=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(S.PureComponent);v()(et,"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}),et.propTypes={},Object(g.polyfill)(et);var tt=function(e){function t(e,o){var i;return n()(this,t),(i=a()(this,d()(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},i._onScroll=i._onScroll.bind(h()(i)),i}return p()(t,e),l()(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}(S.PureComponent);tt.propTypes={};function ot(e){var t=e.className,o=e.columns,i=e.style;return S.createElement("div",{className:t,role:"row",style:i},o)}ot.propTypes=null;var it={ASC:"ASC",DESC:"DESC"};function nt(e){var t=e.sortDirection,o=Object(y.default)("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===it.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===it.DESC});return S.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===it.ASC?S.createElement("path",{d:"M7 14l5-5 5 5z"}):S.createElement("path",{d:"M7 10l5 5 5-5z"}),S.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function rt(e){var t=e.dataKey,o=e.label,i=e.sortBy,n=e.sortDirection,r=i===t,l=[S.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"===typeof o?o:null},o)];return r&&l.push(S.createElement(nt,{key:"SortIndicator",sortDirection:n})),l}function lt(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,d=e.rowData,u=e.style,h={"aria-rowindex":i+1};return(r||l||s||a||c)&&(h["aria-label"]="row",h.tabIndex=0,r&&(h.onClick=function(e){return r({event:e,index:i,rowData:d})}),l&&(h.onDoubleClick=function(e){return l({event:e,index:i,rowData:d})}),s&&(h.onMouseOut=function(e){return s({event:e,index:i,rowData:d})}),a&&(h.onMouseOver=function(e){return a({event:e,index:i,rowData:d})}),c&&(h.onContextMenu=function(e){return c({event:e,index:i,rowData:d})})),S.createElement("div",C()({},h,{className:t,key:n,role:"row",style:u}),o)}nt.propTypes={},rt.propTypes=null,lt.propTypes=null;var st=function(e){function t(){return n()(this,t),a()(this,d()(t).apply(this,arguments))}return p()(t,e),t}(S.Component);function at(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 ct(e){for(var t=1;t0&&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=Object(re.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,d=t.id,u=t.noRowsRenderer,h=t.rowClassName,f=t.rowStyle,p=t.scrollToIndex,_=t.style,v=t.width,g=this.state.scrollbarWidth,m=n?c:c-s,w="function"===typeof h?h({index:-1}):h,R="function"===typeof f?f({index:-1}):f;return this._cachedColumnStyles=[],S.Children.toArray(o).forEach((function(t,o){var i=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=ct({overflow:"hidden"},i)})),S.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":S.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:Object(y.default)("ReactVirtualized__Table",i),id:d,role:"grid",style:_},!n&&a({className:Object(y.default)("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:ct({height:s,overflow:"hidden",paddingRight:g,width:v},R)}),S.createElement(V,C()({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:Object(y.default)("ReactVirtualized__Table__Grid",r),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:m,id:void 0,noContentRenderer:u,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:g,scrollToRow:p,style:ct({},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,d=a.cellRenderer,u=a.className,h=a.columnData,f=a.dataKey,p=a.id,_=d({cellData:c({columnData:h,dataKey:f,rowData:r}),columnData:h,columnIndex:o,dataKey:f,isScrolling:i,parent:n,rowData:r,rowIndex:l}),v=this._cachedColumnStyles[o],g="string"===typeof _?_:null;return S.createElement("div",{"aria-colindex":o+1,"aria-describedby":p,className:Object(y.default)("ReactVirtualized__Table__rowColumn",u),key:"Row"+l+"-Col"+o,onClick:function(e){s&&s({columnData:h,dataKey:f,event:e})},role:"gridcell",style:v,title:g},_)}},{key:"_createHeader",value:function(e){var t,o,i,n,r,l=e.column,s=e.index,a=this.props,c=a.headerClassName,d=a.headerStyle,u=a.onHeaderClick,h=a.sort,f=a.sortBy,p=a.sortDirection,_=l.props,v=_.columnData,g=_.dataKey,m=_.defaultSortDirection,C=_.disableSort,w=_.headerRenderer,R=_.id,x=_.label,T=!C&&h,z=Object(y.default)("ReactVirtualized__Table__headerColumn",c,l.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:T}),I=this._getFlexStyleForColumn(l,ct({},d,{},l.props.headerStyle)),b=w({columnData:v,dataKey:g,disableSort:C,label:x,sortBy:f,sortDirection:p});if(T||u){var O=f!==g?m:p===it.DESC?it.ASC:it.DESC,P=function(e){T&&h({defaultSortDirection:m,event:e,sortBy:g,sortDirection:O}),u&&u({columnData:v,dataKey:g,event:e})};r=l.props["aria-label"]||x||g,n="none",i=0,t=P,o=function(e){"Enter"!==e.key&&" "!==e.key||P(e)}}return f===g&&(n=p===it.ASC?"ascending":"descending"),S.createElement("div",{"aria-label":r,"aria-sort":n,className:z,id:R,key:"Header-Col"+s,onClick:t,onKeyDown:o,role:"columnheader",style:I,tabIndex:i},b)}},{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,d=s.onRowDoubleClick,u=s.onRowRightClick,h=s.onRowMouseOver,f=s.onRowMouseOut,p=s.rowClassName,_=s.rowGetter,v=s.rowRenderer,g=s.rowStyle,m=this.state.scrollbarWidth,C="function"===typeof p?p({index:o}):p,w="function"===typeof g?g({index:o}):g,R=_({index:o}),x=S.Children.toArray(a).map((function(e,n){return t._createColumn({column:e,columnIndex:n,isScrolling:i,parent:r,rowData:R,rowIndex:o,scrollbarWidth:m})})),T=Object(y.default)("ReactVirtualized__Table__row",C),z=ct({},l,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:m},w);return v({className:T,columns:x,index:o,isScrolling:i,key:n,onRowClick:c,onRowDoubleClick:d,onRowRightClick:u,onRowMouseOver:h,onRowMouseOut:f,rowData:R,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=ct({},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?[]:S.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}(S.PureComponent);v()(dt,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:q,overscanRowCount:10,rowRenderer:lt,headerRowRenderer:ot,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),dt.propTypes={};var ut=[],ht=null,ft=null;function pt(){ft&&(ft=null,document.body&&null!=ht&&(document.body.style.pointerEvents=ht),ht=null)}function _t(){pt(),ut.forEach((function(e){return e.__resetIsScrolling()}))}function vt(e){e.currentTarget===window&&null==ht&&document.body&&(ht=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){ft&&E(ft);var e=0;ut.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),ft=D(_t,e)}(),ut.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function St(e,t){ut.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",vt),ut.push(e)}function gt(e,t){(ut=ut.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",vt),ft&&(E(ft),pt()))}var mt,Ct,yt=function(e){return e===window},wt=function(e){return e.getBoundingClientRect()};function Rt(e,t){if(e){if(yt(e)){var o=window,i=o.innerHeight,n=o.innerWidth;return{height:"number"===typeof i?i:0,width:"number"===typeof n?n:0}}return wt(e)}return{height:t.serverHeight,width:t.serverWidth}}function xt(e,t){if(yt(t)&&document.documentElement){var o=document.documentElement,i=wt(e),n=wt(o);return{top:i.top-n.top,left:i.left-n.left}}var r=Tt(t),l=wt(e),s=wt(t);return{top:l.top+r.top-s.top,left:l.left+r.left-s.left}}function Tt(e){return yt(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 zt(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 It(e){for(var t=1;t0&&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||re.findDOMNode(this);if(r instanceof Element&&e){var l=xt(r,e);this._positionFromTop=l.top,this._positionFromLeft=l.left}var s=Rt(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=Object($.a)(),this.updatePosition(e),e&&(St(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),gt(this,i),St(this,o),this._unregisterResizeListener(i),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(gt(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}(S.PureComponent),v()(mt,"propTypes",null),Ct);v()(Ot,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:bt(),serverHeight:0,serverWidth:0})},cRqx:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(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())}},f0wc:function(e,t,o){"use strict";var i=o("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"Grid",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"accessibilityOverscanIndicesGetter",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"defaultCellRangeRenderer",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"defaultOverscanIndicesGetter",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"bpfrpt_proptype_NoContentRenderer",{enumerable:!0,get:function(){return a.bpfrpt_proptype_NoContentRenderer}}),Object.defineProperty(t,"bpfrpt_proptype_Alignment",{enumerable:!0,get:function(){return a.bpfrpt_proptype_Alignment}}),Object.defineProperty(t,"bpfrpt_proptype_CellPosition",{enumerable:!0,get:function(){return a.bpfrpt_proptype_CellPosition}}),Object.defineProperty(t,"bpfrpt_proptype_CellSize",{enumerable:!0,get:function(){return a.bpfrpt_proptype_CellSize}}),Object.defineProperty(t,"bpfrpt_proptype_OverscanIndicesGetter",{enumerable:!0,get:function(){return a.bpfrpt_proptype_OverscanIndicesGetter}}),Object.defineProperty(t,"bpfrpt_proptype_RenderedSection",{enumerable:!0,get:function(){return a.bpfrpt_proptype_RenderedSection}}),Object.defineProperty(t,"bpfrpt_proptype_CellRendererParams",{enumerable:!0,get:function(){return a.bpfrpt_proptype_CellRendererParams}}),Object.defineProperty(t,"bpfrpt_proptype_Scroll",{enumerable:!0,get:function(){return a.bpfrpt_proptype_Scroll}});var n=i(o("f7UO")),r=i(o("NZIM")),l=i(o("Pcg1")),s=i(o("tudb")),a=o("uUy6")},f7UO:function(e,t,o){"use strict";var i=o("TqRt"),n=o("284h");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DEFAULT_SCROLLING_RESET_TIME_INTERVAL=void 0;var r,l,s=i(o("pVnL")),a=i(o("lwsE")),c=i(o("W8MJ")),d=i(o("a1gu")),u=i(o("Nsbk")),h=i(o("PJYZ")),f=i(o("7W2i")),p=i(o("lSNA")),_=n(o("q1tI")),v=i(o("iuhU")),S=i(o("cRqx")),g=i(o("VZmc")),m=i(o("mEWj")),C=n(o("tudb")),y=i(o("qLUp")),w=i(o("Pcg1")),R=i(o("j6jG")),x=o("VCL8"),T=o("l8Tq");o("uUy6"),i(o("17x9"));function z(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 I(e){for(var t=1;t0&&(o._initialScrollTop=o._getCalculatedScrollTop(e,o.state)),e.scrollToColumn>0&&(o._initialScrollLeft=o._getCalculatedScrollLeft(e,o.state)),o}return(0,f.default)(t,e),(0,c.default)(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=I({},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,u=d.scrollbarSize,h=d.rowSizeAndPositionManager.getTotalSize(),f=d.columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,f-c+u),o),_=Math.min(Math.max(0,h-a+u),n);if(this.state.scrollLeft!==p||this.state.scrollTop!==_){var v={isScrolling:!0,scrollDirectionHorizontal:p!==this.state.scrollLeft?p>this.state.scrollLeft?C.SCROLL_DIRECTION_FORWARD:C.SCROLL_DIRECTION_BACKWARD:this.state.scrollDirectionHorizontal,scrollDirectionVertical:_!==this.state.scrollTop?_>this.state.scrollTop?C.SCROLL_DIRECTION_FORWARD:C.SCROLL_DIRECTION_BACKWARD:this.state.scrollDirectionVertical,scrollPositionChangeReason:b};l||(v.scrollTop=_),s||(v.scrollLeft=p),v.needToResetStyleCache=!1,this.setState(v)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:_,totalColumnsWidth:f,totalRowsHeight:h})}}},{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&&(this.state.scrollDirectionHorizontal===C.SCROLL_DIRECTION_FORWARD?o<=l:o>=l),this._recomputeScrollTopFlag=s>=0&&(this.state.scrollDirectionVertical===C.SCROLL_DIRECTION_FORWARD?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(I({},n,{scrollToColumn:t})),void 0!==o&&this._updateScrollTopForScrollToRow(I({},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=I({},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 u=i>0&&a>0;r>=0&&u&&this._updateScrollLeftForScrollToColumn(),s>=0&&u&&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,u=i.scrollToRow,h=i.width,f=this.state,p=f.scrollLeft,_=f.scrollPositionChangeReason,v=f.scrollTop,S=f.instanceProps;this._handleInvalidatedGridSize();var g=l>0&&0===e.columnCount||a>0&&0===e.rowCount;_===O&&(!r&&p>=0&&(p!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=p),!n&&v>=0&&(v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v));var m=(0===e.width||0===e.height)&&s>0&&h>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):(0,y.default)({cellSizeAndPositionManager:S.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:p,scrollToAlignment:c,scrollToIndex:d,size:h,sizeJustIncreasedFromZero:m,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):(0,y.default)({cellSizeAndPositionManager:S.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:c,scrollToIndex:u,size:s,sizeJustIncreasedFromZero:m,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),p!==t.scrollLeft||v!==t.scrollTop){var C=S.rowSizeAndPositionManager.getTotalSize(),w=S.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:v,totalColumnsWidth:w,totalRowsHeight:C})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&(0,T.cancelAnimationTimeout)(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,a=e.containerStyle,c=e.height,d=e.id,u=e.noContentRenderer,h=e.role,f=e.style,p=e.tabIndex,S=e.width,g=this.state,m=g.instanceProps,C=g.needToResetStyleCache,y=this._isScrolling(),w={boxSizing:"border-box",direction:"ltr",height:o?"auto":c,position:"relative",width:i?"auto":S,WebkitOverflowScrolling:"touch",willChange:"transform"};C&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var R=m.columnSizeAndPositionManager.getTotalSize(),x=m.rowSizeAndPositionManager.getTotalSize(),T=x>c?m.scrollbarSize:0,z=R>S?m.scrollbarSize:0;z===this._horizontalScrollBarSize&&T===this._verticalScrollBarSize||(this._horizontalScrollBarSize=z,this._verticalScrollBarSize=T,this._scrollbarPresenceChanged=!0),w.overflowX=R+T<=S?"hidden":"auto",w.overflowY=x+z<=c?"hidden":"auto";var b=this._childrenToDisplay,O=0===b.length&&c>0&&S>0;return _.createElement("div",(0,s.default)({ref:this._setScrollingContainerRef},r,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:(0,v.default)("ReactVirtualized__Grid",n),id:d,onScroll:this._onScroll,role:h,style:I({},w,{},f),tabIndex:p}),b.length>0&&_.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:l,style:I({width:t?"auto":R,height:x,maxWidth:R,maxHeight:x,overflow:"hidden",pointerEvents:y?"none":"",position:"relative"},a)},b),O&&u())}},{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,u=e.width,h=e.isScrollingOptOut,f=t.scrollDirectionHorizontal,p=t.scrollDirectionVertical,_=t.instanceProps,v=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,S=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,g=this._isScrolling(e,t);if(this._childrenToDisplay=[],l>0&&u>0){var m=_.columnSizeAndPositionManager.getVisibleCellRange({containerSize:u,offset:S}),C=_.rowSizeAndPositionManager.getVisibleCellRange({containerSize:l,offset:v}),y=_.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:u,offset:S}),w=_.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:l,offset:v});this._renderedColumnStartIndex=m.start,this._renderedColumnStopIndex=m.stop,this._renderedRowStartIndex=C.start,this._renderedRowStopIndex=C.stop;var R=a({direction:"horizontal",cellCount:n,overscanCellsCount:s,scrollDirection:f,startIndex:"number"===typeof m.start?m.start:0,stopIndex:"number"===typeof m.stop?m.stop:-1}),x=a({direction:"vertical",cellCount:d,overscanCellsCount:c,scrollDirection:p,startIndex:"number"===typeof C.start?C.start:0,stopIndex:"number"===typeof C.stop?C.stop:-1}),T=R.overscanStartIndex,z=R.overscanStopIndex,I=x.overscanStartIndex,b=x.overscanStopIndex;if(r){if(!r.hasFixedHeight())for(var O=I;O<=b;O++)if(!r.has(O,0)){T=0,z=n-1;break}if(!r.hasFixedWidth())for(var P=T;P<=z;P++)if(!r.has(0,P)){I=0,b=d-1;break}}this._childrenToDisplay=i({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:_.columnSizeAndPositionManager,columnStartIndex:T,columnStopIndex:z,deferredMeasurementCache:r,horizontalOffsetAdjustment:y,isScrolling:g,isScrollingOptOut:h,parent:this,rowSizeAndPositionManager:_.rowSizeAndPositionManager,rowStartIndex:I,rowStopIndex:b,scrollLeft:S,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:w,visibleColumnIndices:m,visibleRowIndices:C}),this._columnStartIndex=T,this._columnStopIndex=z,this._rowStartIndex=I,this._rowStopIndex=b}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&(0,T.cancelAnimationTimeout)(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=(0,T.requestAnimationTimeout)(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}),(0,S.default)({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)}}),(0,S.default)({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,I({},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:O};return"number"===typeof o&&o>=0&&(n.scrollDirectionHorizontal=o>t.scrollLeft?C.SCROLL_DIRECTION_FORWARD:C.SCROLL_DIRECTION_BACKWARD,n.scrollLeft=o),"number"===typeof i&&i>=0&&(n.scrollDirectionVertical=i>t.scrollTop?C.SCROLL_DIRECTION_FORWARD:C.SCROLL_DIRECTION_BACKWARD,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),u=a.rowSizeAndPositionManager.getTotalSize(),h=a.scrollbarSizeMeasured&&u>i?a.scrollbarSize:0;return a.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:l-h,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),u=a.columnSizeAndPositionManager.getTotalSize(),h=a.scrollbarSizeMeasured&&u>l?a.scrollbarSize:0;return a.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o-h,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}(_.PureComponent),(0,p.default)(r,"propTypes",null),l);(0,p.default)(P,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:w.default,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:R.default,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:C.default,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),(0,x.polyfill)(P);var M=P;t.default=M},l8Tq:function(e,t,o){"use strict";var i=o("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.bpfrpt_proptype_AnimationTimeoutId=t.requestAnimationTimeout=t.cancelAnimationTimeout=void 0;var n=o("OBSw");i(o("17x9"));t.bpfrpt_proptype_AnimationTimeoutId=null;t.cancelAnimationTimeout=function(e){return(0,n.caf)(e.id)};t.requestAnimationTimeout=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var i={id:(0,n.raf)((function r(){Date.now()-o>=t?e.call():i.id=(0,n.raf)(r)}))};return i}},m0Av:function(e,t,o){"use strict";(function(e){function i(t,o){var i,n="undefined"!==typeof(i="undefined"!==typeof o?o:"undefined"!==typeof window?window:"undefined"!==typeof self?self:e).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="",u="animationstart",h="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 _=0;_ 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=e.head||e.getElementsByTagName("head")[0],n=e.createElement("style");n.id="detectElementResize",n.type="text/css",null!=t&&n.setAttribute("nonce",t),n.styleSheet?n.styleSheet.cssText=o:n.appendChild(e.createTextNode(o)),i.appendChild(n)}}(r),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=r.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='
',e.appendChild(e.__resizeTriggers__),s(e),e.addEventListener("scroll",a,!0),u&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==v&&s(e)},e.__resizeTriggers__.addEventListener(u,e.__resizeTriggers__.__animationListener__))}e.__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(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(o){}}}}}o.d(t,"a",(function(){return i}))}).call(this,o("yLpj"))},mEWj:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){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)}}},qLUp:function(e,t,o){"use strict";var i=o("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(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,u=e.size,h=e.sizeJustIncreasedFromZero,f=e.updateScrollIndexCallback,p=o.getCellCount(),_=d>=0&&d0&&(uo.getTotalSize()-u&&f(p-1)};i(o("VZmc")),o("uUy6")},tudb:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=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)}},t.SCROLL_DIRECTION_VERTICAL=t.SCROLL_DIRECTION_HORIZONTAL=t.SCROLL_DIRECTION_FORWARD=t.SCROLL_DIRECTION_BACKWARD=void 0;o("uUy6");t.SCROLL_DIRECTION_BACKWARD=-1;t.SCROLL_DIRECTION_FORWARD=1;t.SCROLL_DIRECTION_HORIZONTAL="horizontal";t.SCROLL_DIRECTION_VERTICAL="vertical"},uUy6:function(e,t,o){"use strict";var i=o("TqRt"),n=o("284h");Object.defineProperty(t,"__esModule",{value:!0}),t.bpfrpt_proptype_VisibleCellRange=t.bpfrpt_proptype_Alignment=t.bpfrpt_proptype_OverscanIndicesGetter=t.bpfrpt_proptype_OverscanIndices=t.bpfrpt_proptype_OverscanIndicesGetterParams=t.bpfrpt_proptype_RenderedSection=t.bpfrpt_proptype_ScrollbarPresenceChange=t.bpfrpt_proptype_Scroll=t.bpfrpt_proptype_NoContentRenderer=t.bpfrpt_proptype_CellSize=t.bpfrpt_proptype_CellSizeGetter=t.bpfrpt_proptype_CellRangeRenderer=t.bpfrpt_proptype_CellRangeRendererParams=t.bpfrpt_proptype_StyleCache=t.bpfrpt_proptype_CellCache=t.bpfrpt_proptype_CellRenderer=t.bpfrpt_proptype_CellRendererParams=t.bpfrpt_proptype_CellPosition=void 0;n(o("q1tI")),i(o("VZmc")),i(o("17x9"));t.bpfrpt_proptype_CellPosition=null;t.bpfrpt_proptype_CellRendererParams=null;t.bpfrpt_proptype_CellRenderer=null;t.bpfrpt_proptype_CellCache=null;t.bpfrpt_proptype_StyleCache=null;t.bpfrpt_proptype_CellRangeRendererParams=null;t.bpfrpt_proptype_CellRangeRenderer=null;t.bpfrpt_proptype_CellSizeGetter=null;t.bpfrpt_proptype_CellSize=null;t.bpfrpt_proptype_NoContentRenderer=null;t.bpfrpt_proptype_Scroll=null;t.bpfrpt_proptype_ScrollbarPresenceChange=null;t.bpfrpt_proptype_RenderedSection=null;t.bpfrpt_proptype_OverscanIndicesGetterParams=null;t.bpfrpt_proptype_OverscanIndices=null;t.bpfrpt_proptype_OverscanIndicesGetter=null;t.bpfrpt_proptype_Alignment=null;t.bpfrpt_proptype_VisibleCellRange=null}}]); //# sourceMappingURL=main~77468725.1450a9b6.chunk.js.map