@sap-ux/ui-components
Version:
SAP UI Components Library
10 lines (8 loc) • 138 kB
JavaScript
"use strict";(()=>{(self.webpackChunk_sap_ux_ui_components=self.webpackChunk_sap_ux_ui_components||[]).push([[31],{"../../node_modules/.pnpm/react-movable@2.5.4_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/react-movable/lib/List.js"(Ee,W,X){var V=this&&this.__extends||(function(){var b=function(k,T){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(c[y]=v[y])},b(k,T)};return function(k,T){b(k,T);function c(){this.constructor=k}k.prototype=T===null?Object.create(T):(c.prototype=T.prototype,new c)}})(),N=this&&this.__assign||function(){return N=Object.assign||function(b){for(var k,T=1,c=arguments.length;T<c;T++){k=arguments[T];for(var v in k)Object.prototype.hasOwnProperty.call(k,v)&&(b[v]=k[v])}return b},N.apply(this,arguments)},q=this&&this.__createBinding||(Object.create?(function(b,k,T,c){c===void 0&&(c=T),Object.defineProperty(b,c,{enumerable:!0,get:function(){return k[T]}})}):(function(b,k,T,c){c===void 0&&(c=T),b[c]=k[T]})),D=this&&this.__setModuleDefault||(Object.create?(function(b,k){Object.defineProperty(b,"default",{enumerable:!0,value:k})}):function(b,k){b.default=k}),Z=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var k={};if(b!=null)for(var T in b)T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)&&q(k,b,T);return D(k,b),k};Object.defineProperty(W,"__esModule",{value:!0});var f=Z(X("../../node_modules/.pnpm/react@16.14.0/node_modules/react/index.js")),R=Z(X("../../node_modules/.pnpm/react-dom@16.14.0_react@16.14.0/node_modules/react-dom/index.js")),F=X("../../node_modules/.pnpm/react-movable@2.5.4_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/react-movable/lib/utils.js"),re=200,I=10,B=(function(b){V(k,b);function k(T){var c=b.call(this,T)||this;return c.listRef=f.createRef(),c.ghostRef=f.createRef(),c.topOffsets=[],c.itemTranslateOffsets=[],c.initialYOffset=0,c.lastScroll=0,c.lastYOffset=0,c.lastListYOffset=0,c.needle=-1,c.afterIndex=-2,c.state={itemDragged:-1,itemDraggedOutOfBounds:-1,selectedItem:-1,initialX:0,initialY:0,targetX:0,targetY:0,targetHeight:0,targetWidth:0,liveText:"",scrollingSpeed:0,scrollWindow:!1},c.doScrolling=function(){var v=c.state,y=v.scrollingSpeed,E=v.scrollWindow,j=c.listRef.current;window.requestAnimationFrame(function(){E?window.scrollTo(window.pageXOffset,window.pageYOffset+y*1.5):j.scrollTop+=y,y!==0&&c.doScrolling()})},c.getChildren=function(){return c.listRef&&c.listRef.current?Array.from(c.listRef.current.children):(console.warn("No items found in the List container. Did you forget to pass & spread the `props` param in renderList?"),[])},c.calculateOffsets=function(){c.topOffsets=c.getChildren().map(function(v){return v.getBoundingClientRect().top}),c.itemTranslateOffsets=c.getChildren().map(function(v){return F.getTranslateOffset(v)})},c.getTargetIndex=function(v){return c.getChildren().findIndex(function(y){return y===v.target||y.contains(v.target)})},c.onMouseOrTouchStart=function(v){c.dropTimeout&&c.state.itemDragged>-1&&(window.clearTimeout(c.dropTimeout),c.finishDrop());var y=F.isTouchEvent(v);if(!(!y&&v.button!==0)){var E=c.getTargetIndex(v);if(E===-1||c.props.values[E]&&c.props.values[E].disabled){c.state.selectedItem!==-1&&(c.setState({selectedItem:-1}),c.finishDrop());return}var j=c.getChildren()[E],U=j.querySelector("[data-movable-handle]");if(!(U&&!U.contains(v.target))&&!F.checkIfInteractive(v.target,j)){if(v.preventDefault(),c.props.beforeDrag&&c.props.beforeDrag({elements:c.getChildren(),index:E}),y){var Q={passive:!1};j.style.touchAction="none",document.addEventListener("touchend",c.schdOnEnd,Q),document.addEventListener("touchmove",c.schdOnTouchMove,Q),document.addEventListener("touchcancel",c.schdOnEnd,Q)}else{document.addEventListener("mousemove",c.schdOnMouseMove),document.addEventListener("mouseup",c.schdOnEnd);var J=c.getChildren()[c.state.itemDragged];J&&J.style&&(J.style.touchAction="")}c.onStart(j,y?v.touches[0].clientX:v.clientX,y?v.touches[0].clientY:v.clientY,E)}}},c.getYOffset=function(){var v=c.listRef.current?c.listRef.current.scrollTop:0;return window.pageYOffset+v},c.onStart=function(v,y,E,j){c.state.selectedItem>-1&&(c.setState({selectedItem:-1}),c.needle=-1);var U=v.getBoundingClientRect(),Q=window.getComputedStyle(v);c.calculateOffsets(),c.initialYOffset=c.getYOffset(),c.lastYOffset=window.pageYOffset,c.lastListYOffset=c.listRef.current.scrollTop,c.setState({itemDragged:j,targetX:U.left-parseInt(Q["margin-left"],10),targetY:U.top-parseInt(Q["margin-top"],10),targetHeight:U.height,targetWidth:U.width,initialX:y,initialY:E})},c.onMouseMove=function(v){v.cancelable&&v.preventDefault(),c.onMove(v.clientX,v.clientY)},c.onTouchMove=function(v){v.cancelable&&v.preventDefault(),c.onMove(v.touches[0].clientX,v.touches[0].clientY)},c.onWheel=function(v){c.state.itemDragged<0||(c.lastScroll=c.listRef.current.scrollTop+=v.deltaY,c.moveOtherItems())},c.onMove=function(v,y){if(c.state.itemDragged===-1)return null;F.transformItem(c.ghostRef.current,y-c.state.initialY,c.props.lockVertically?0:v-c.state.initialX),c.autoScrolling(y),c.moveOtherItems()},c.moveOtherItems=function(){var v=c.ghostRef.current.getBoundingClientRect(),y=v.top+v.height/2,E=F.getTranslateOffset(c.getChildren()[c.state.itemDragged]),j=c.getYOffset();c.initialYOffset!==j&&(c.topOffsets=c.topOffsets.map(function(U){return U-(j-c.initialYOffset)}),c.initialYOffset=j),c.isDraggedItemOutOfBounds()&&c.props.removableByMove?c.afterIndex=c.topOffsets.length+1:c.afterIndex=F.binarySearch(c.topOffsets,y),c.animateItems(c.afterIndex===-1?0:c.afterIndex,c.state.itemDragged,E)},c.autoScrolling=function(v){var y=c.listRef.current.getBoundingClientRect(),E=y.top,j=y.bottom,U=y.height,Q=window.innerHeight||document.documentElement.clientHeight;if(j>Q&&Q-v<re)c.setState({scrollingSpeed:Math.round((re-(Q-v))/I),scrollWindow:!0});else if(E<0&&v<re)c.setState({scrollingSpeed:Math.round((re-v)/-I),scrollWindow:!0});else if(c.state.scrollWindow&&c.state.scrollingSpeed!==0&&c.setState({scrollingSpeed:0,scrollWindow:!1}),U+20<c.listRef.current.scrollHeight){var J=0;v-E<re?J=Math.round((re-(v-E))/-I):j-v<re&&(J=Math.round((re-(j-v))/I)),c.state.scrollingSpeed!==J&&c.setState({scrollingSpeed:J})}},c.animateItems=function(v,y,E,j){j===void 0&&(j=!1),c.getChildren().forEach(function(U,Q){if(F.setItemTransition(U,c.props.transitionDuration),y===Q&&j){if(y===v)return F.transformItem(U,null);F.transformItem(U,y<v?c.itemTranslateOffsets.slice(y+1,v+1).reduce(function(J,ge){return J+ge},0):c.itemTranslateOffsets.slice(v,y).reduce(function(J,ge){return J+ge},0)*-1)}else y<v&&Q>y&&Q<=v?F.transformItem(U,-E):Q<y&&y>v&&Q>=v?F.transformItem(U,E):F.transformItem(U,null)})},c.isDraggedItemOutOfBounds=function(){var v=c.getChildren()[c.state.itemDragged].getBoundingClientRect(),y=c.ghostRef.current.getBoundingClientRect();return Math.abs(v.left-y.left)>y.width?(c.state.itemDraggedOutOfBounds===-1&&c.setState({itemDraggedOutOfBounds:c.state.itemDragged}),!0):(c.state.itemDraggedOutOfBounds>-1&&c.setState({itemDraggedOutOfBounds:-1}),!1)},c.onEnd=function(v){v.cancelable&&v.preventDefault(),document.removeEventListener("mousemove",c.schdOnMouseMove),document.removeEventListener("touchmove",c.schdOnTouchMove),document.removeEventListener("mouseup",c.schdOnEnd),document.removeEventListener("touchup",c.schdOnEnd),document.removeEventListener("touchcancel",c.schdOnEnd);var y=c.props.removableByMove&&c.isDraggedItemOutOfBounds();!y&&c.props.transitionDuration>0&&c.afterIndex!==-2&&F.schd(function(){F.setItemTransition(c.ghostRef.current,c.props.transitionDuration,"cubic-bezier(.2,1,.1,1)"),c.afterIndex<1&&c.state.itemDragged===0?F.transformItem(c.ghostRef.current,0,0):F.transformItem(c.ghostRef.current,-(window.pageYOffset-c.lastYOffset)+-(c.listRef.current.scrollTop-c.lastListYOffset)+(c.state.itemDragged<c.afterIndex?c.itemTranslateOffsets.slice(c.state.itemDragged+1,c.afterIndex+1).reduce(function(E,j){return E+j},0):c.itemTranslateOffsets.slice(c.afterIndex<0?0:c.afterIndex,c.state.itemDragged).reduce(function(E,j){return E+j},0)*-1),0)})(),c.dropTimeout=window.setTimeout(c.finishDrop,y||c.afterIndex===-2?0:c.props.transitionDuration)},c.finishDrop=function(){var v=c.props.removableByMove&&c.isDraggedItemOutOfBounds();(v||c.afterIndex>-2&&c.state.itemDragged!==c.afterIndex)&&c.props.onChange({oldIndex:c.state.itemDragged,newIndex:v?-1:Math.max(c.afterIndex,0),targetRect:c.ghostRef.current.getBoundingClientRect()}),c.getChildren().forEach(function(y){F.setItemTransition(y,0),F.transformItem(y,null),y.style.touchAction=""}),c.setState({itemDragged:-1,scrollingSpeed:0}),c.afterIndex=-2,c.lastScroll>0&&(c.listRef.current.scrollTop=c.lastScroll,c.lastScroll=0)},c.onKeyDown=function(v){var y=c.state.selectedItem,E=c.getTargetIndex(v);if(!F.checkIfInteractive(v.target,v.currentTarget)&&E!==-1){if(v.key===" "&&(v.preventDefault(),y===E?(y!==c.needle&&(c.getChildren().forEach(function(U){F.setItemTransition(U,0),F.transformItem(U,null)}),c.props.onChange({oldIndex:y,newIndex:c.needle,targetRect:c.getChildren()[c.needle].getBoundingClientRect()}),c.getChildren()[c.needle].focus()),c.setState({selectedItem:-1,liveText:c.props.voiceover.dropped(y+1,c.needle+1)}),c.needle=-1):(c.setState({selectedItem:E,liveText:c.props.voiceover.lifted(E+1)}),c.needle=E,c.calculateOffsets())),(v.key==="ArrowDown"||v.key==="j")&&y>-1&&c.needle<c.props.values.length-1){v.preventDefault();var j=F.getTranslateOffset(c.getChildren()[y]);c.needle++,c.animateItems(c.needle,y,j,!0),c.setState({liveText:c.props.voiceover.moved(c.needle+1,!1)})}if((v.key==="ArrowUp"||v.key==="k")&&y>-1&&c.needle>0){v.preventDefault();var j=F.getTranslateOffset(c.getChildren()[y]);c.needle--,c.animateItems(c.needle,y,j,!0),c.setState({liveText:c.props.voiceover.moved(c.needle+1,!0)})}v.key==="Escape"&&y>-1&&(c.getChildren().forEach(function(U){F.setItemTransition(U,0),F.transformItem(U,null)}),c.setState({selectedItem:-1,liveText:c.props.voiceover.canceled(y+1)}),c.needle=-1),(v.key==="Tab"||v.key==="Enter")&&y>-1&&v.preventDefault()}},c.schdOnMouseMove=F.schd(c.onMouseMove),c.schdOnTouchMove=F.schd(c.onTouchMove),c.schdOnEnd=F.schd(c.onEnd),c}return k.prototype.componentDidMount=function(){this.calculateOffsets(),document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1,capture:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart)},k.prototype.componentDidUpdate=function(T,c){c.scrollingSpeed!==this.state.scrollingSpeed&&c.scrollingSpeed===0&&this.doScrolling()},k.prototype.componentWillUnmount=function(){document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mousedown",this.onMouseOrTouchStart)},k.prototype.render=function(){var T=this,c={userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",boxSizing:"border-box",position:"relative"},v=N(N({},c),{top:this.state.targetY,left:this.state.targetX,width:this.state.targetWidth,height:this.state.targetHeight,position:"fixed",marginTop:0});return f.createElement(f.Fragment,null,this.props.renderList({children:this.props.values.map(function(y,E){var j=E===T.state.itemDragged,U=E===T.state.selectedItem,Q=T.props.values[E]&&T.props.values[E].disabled,J={key:E,tabIndex:Q?-1:0,"aria-roledescription":T.props.voiceover.item(E+1),onKeyDown:T.onKeyDown,style:N(N({},c),{visibility:j?"hidden":void 0,zIndex:U?5e3:0})};return T.props.renderItem({value:y,props:J,index:E,isDragged:!1,isSelected:U,isOutOfBounds:!1})}),isDragged:this.state.itemDragged>-1,props:{ref:this.listRef}}),this.state.itemDragged>-1&&R.createPortal(this.props.renderItem({value:this.props.values[this.state.itemDragged],props:{ref:this.ghostRef,style:v,onWheel:this.onWheel},index:this.state.itemDragged,isDragged:!0,isSelected:!1,isOutOfBounds:this.state.itemDraggedOutOfBounds>-1}),this.props.container||document.body),f.createElement("div",{"aria-live":"assertive",role:"log","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0px",padding:"0px",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"}},this.state.liveText))},k.defaultProps={transitionDuration:300,lockVertically:!1,removableByMove:!1,voiceover:{item:function(T){return"You are currently at a draggable item at position "+T+". Press space bar to lift."},lifted:function(T){return"You have lifted item at position "+T+". Press j to move down, k to move up, space bar to drop and escape to cancel."},moved:function(T,c){return"You have moved the lifted item "+(c?"up":"down")+" to position "+T+". Press j to move down, k to move up, space bar to drop and escape to cancel."},dropped:function(T,c){return"You have dropped the item. It has moved from position "+T+" to "+c+"."},canceled:function(T){return"You have cancelled the movement. The item has returned to its starting position of "+T+"."}}},k})(f.Component);W.default=B},"../../node_modules/.pnpm/react-movable@2.5.4_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/react-movable/lib/index.js"(Ee,W,X){var V=this&&this.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};Object.defineProperty(W,"__esModule",{value:!0}),W.arrayRemove=W.arrayMove=W.List=void 0;var N=V(X("../../node_modules/.pnpm/react-movable@2.5.4_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/react-movable/lib/List.js"));W.List=N.default;var q=X("../../node_modules/.pnpm/react-movable@2.5.4_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/react-movable/lib/utils.js");Object.defineProperty(W,"arrayMove",{enumerable:!0,get:function(){return q.arrayMove}}),Object.defineProperty(W,"arrayRemove",{enumerable:!0,get:function(){return q.arrayRemove}})},"../../node_modules/.pnpm/react-movable@2.5.4_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/react-movable/lib/utils.js"(Ee,W){Object.defineProperty(W,"__esModule",{value:!0}),W.checkIfInteractive=W.schd=W.binarySearch=W.setItemTransition=W.isItemTransformed=W.transformItem=W.isTouchEvent=W.getTranslateOffset=W.arrayRemove=W.arrayMove=void 0;function X(I,B,b){return I=I.slice(),I.splice(b<0?I.length+b:b,0,I.splice(B,1)[0]),I}W.arrayMove=X;function V(I,B){return I=I.slice(),I.splice(B,1),I}W.arrayRemove=V;function N(I){var B=window.getComputedStyle(I);return Math.max(parseInt(B["margin-top"],10),parseInt(B["margin-bottom"],10))+I.getBoundingClientRect().height}W.getTranslateOffset=N;function q(I){return I.touches&&I.touches.length||I.changedTouches&&I.changedTouches.length}W.isTouchEvent=q;function D(I,B,b){if(B===void 0&&(B=0),b===void 0&&(b=0),!!I){if(B===null||b===null){I.style.removeProperty("transform");return}I.style.transform="translate("+b+"px, "+B+"px)"}}W.transformItem=D;function Z(I){return!!I.style.transform}W.isItemTransformed=Z;function f(I,B,b){I&&(I.style.transition="transform "+B+"ms"+(b?" "+b:""))}W.setItemTransition=f;function R(I,B){for(var b=0,k=I.length-1,T;b<=k;){if(T=Math.floor((k+b)/2),!I[T+1]||I[T]<=B&&I[T+1]>=B)return T;I[T]<B&&I[T+1]<B?b=T+1:k=T-1}return-1}W.binarySearch=R;var F=function(I){var B=[],b=null,k=function(){for(var T=[],c=0;c<arguments.length;c++)T[c]=arguments[c];B=T,!b&&(b=requestAnimationFrame(function(){b=null,I.apply(void 0,B)}))};return k};W.schd=F;function re(I,B){for(var b=["input","textarea","select","option","optgroup","video","audio","button","a"],k=["button","link","checkbox","tab"];I!==B;){if(I.getAttribute("data-movable-handle"))return!1;if(b.includes(I.tagName.toLowerCase()))return!0;var T=I.getAttribute("role");if(T&&k.includes(T.toLowerCase())||I.tagName.toLowerCase()==="label"&&I.hasAttribute("for"))return!0;I.tagName&&(I=I.parentElement)}return!1}W.checkIfInteractive=re},"../../node_modules/.pnpm/react-virtualized@9.22.6_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/react-virtualized/dist/es/index.js"(Ee,W,X){X.r(W),X.d(W,{ArrowKeyStepper:()=>y,AutoSizer:()=>ge,CellMeasurer:()=>tt,CellMeasurerCache:()=>ro,Collection:()=>De,Column:()=>ke,ColumnSizer:()=>ct,Grid:()=>he,InfiniteLoader:()=>je,List:()=>Ct,Masonry:()=>ur,MultiGrid:()=>mr,ScrollSync:()=>kt,SortDirection:()=>ce,SortIndicator:()=>Ze,Table:()=>Qe,WindowScroller:()=>Jt,accessibilityOverscanIndicesGetter:()=>Fe,createMasonryCellPositioner:()=>No,createTableMultiSort:()=>Sr,defaultCellRangeRenderer:()=>pt,defaultOverscanIndicesGetter:()=>ht,defaultTableCellDataGetter:()=>Et,defaultTableCellRenderer:()=>Gt,defaultTableHeaderRenderer:()=>Wt,defaultTableHeaderRowRenderer:()=>Dt,defaultTableRowRenderer:()=>Ht});var V=X("../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),N=X("../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/createClass.js"),q=X("../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),D=X("../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),Z=X("../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/inherits.js"),f=X("../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),R=X("../../node_modules/.pnpm/react@16.14.0/node_modules/react/index.js");function F(){var n=this.constructor.getDerivedStateFromProps(this.props,this.state);n!=null&&this.setState(n)}function re(n){function r(t){var e=this.constructor.getDerivedStateFromProps(n,t);return e!=null?e:null}this.setState(r.bind(this))}function I(n,r){try{var t=this.props,e=this.state;this.props=n,this.state=r,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(t,e)}finally{this.props=t,this.state=e}}F.__suppressDeprecationWarning=!0,re.__suppressDeprecationWarning=!0,I.__suppressDeprecationWarning=!0;function B(n){var r=n.prototype;if(!r||!r.isReactComponent)throw new Error("Can only polyfill class components");if(typeof n.getDerivedStateFromProps!="function"&&typeof r.getSnapshotBeforeUpdate!="function")return n;var t=null,e=null,o=null;if(typeof r.componentWillMount=="function"?t="componentWillMount":typeof r.UNSAFE_componentWillMount=="function"&&(t="UNSAFE_componentWillMount"),typeof r.componentWillReceiveProps=="function"?e="componentWillReceiveProps":typeof r.UNSAFE_componentWillReceiveProps=="function"&&(e="UNSAFE_componentWillReceiveProps"),typeof r.componentWillUpdate=="function"?o="componentWillUpdate":typeof r.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),t!==null||e!==null||o!==null){var l=n.displayName||n.name,i=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
`+l+" uses "+i+" but also contains the following legacy lifecycles:"+(t!==null?`
`+t:"")+(e!==null?`
`+e:"")+(o!==null?`
`+o:"")+`
The above lifecycles should be removed. Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof n.getDerivedStateFromProps=="function"&&(r.componentWillMount=F,r.componentWillReceiveProps=re),typeof r.getSnapshotBeforeUpdate=="function"){if(typeof r.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");r.componentWillUpdate=I;var s=r.componentDidUpdate;r.componentDidUpdate=function(u,d,h){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:h;s.call(this,u,d,p)}}return n}function b(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function k(n){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?b(Object(t),!0).forEach(function(e){(0,f.A)(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function T(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,c()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function c(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(c=function(){return!!n})()}var v=(function(n){function r(){var t;(0,V.A)(this,r);for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];return t=T(this,r,[].concat(o)),(0,f.A)(t,"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),(0,f.A)(t,"_columnStartIndex",0),(0,f.A)(t,"_columnStopIndex",0),(0,f.A)(t,"_rowStartIndex",0),(0,f.A)(t,"_rowStopIndex",0),(0,f.A)(t,"_onKeyDown",function(i){var s=t.props,a=s.columnCount,u=s.disabled,d=s.mode,h=s.rowCount;if(!u){var p=t._getScrollState(),g=p.scrollToColumn,m=p.scrollToRow,S=t._getScrollState(),C=S.scrollToColumn,w=S.scrollToRow;switch(i.key){case"ArrowDown":w=Math.min(d==="cells"?w+1:t._rowStopIndex+1,h-1);break;case"ArrowLeft":C=Math.max(d==="cells"?C-1:t._columnStartIndex-1,0);break;case"ArrowRight":C=Math.min(d==="cells"?C+1:t._columnStopIndex+1,a-1);break;case"ArrowUp":w=Math.max(d==="cells"?w-1:t._rowStartIndex-1,0);break}(C!==g||w!==m)&&(i.preventDefault(),t._updateScrollState({scrollToColumn:C,scrollToRow:w}))}}),(0,f.A)(t,"_onSectionRendered",function(i){var s=i.columnStartIndex,a=i.columnStopIndex,u=i.rowStartIndex,d=i.rowStopIndex;t._columnStartIndex=s,t._columnStopIndex=a,t._rowStartIndex=u,t._rowStopIndex=d}),t}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"setScrollIndexes",value:function(e){var o=e.scrollToColumn,l=e.scrollToRow;this.setState({scrollToRow:l,scrollToColumn:o})}},{key:"render",value:function(){var e=this.props,o=e.className,l=e.children,i=this._getScrollState(),s=i.scrollToColumn,a=i.scrollToRow;return R.createElement("div",{className:o,onKeyDown:this._onKeyDown},l({onSectionRendered:this._onSectionRendered,scrollToColumn:s,scrollToRow:a}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var o=e.scrollToColumn,l=e.scrollToRow,i=this.props,s=i.isControlled,a=i.onScrollToChange;typeof a=="function"&&a({scrollToColumn:o,scrollToRow:l}),s||this.setState({scrollToColumn:o,scrollToRow:l})}}],[{key:"getDerivedStateFromProps",value:function(e,o){return e.isControlled?{}:e.scrollToColumn!==o.instanceProps.prevScrollToColumn||e.scrollToRow!==o.instanceProps.prevScrollToRow?k(k({},o),{},{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}])})(R.PureComponent);(0,f.A)(v,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),B(v);const y=v;function E(n,r){var t;typeof r!="undefined"?t=r:typeof window!="undefined"?t=window:typeof self!="undefined"?t=self:t=X.g;var e=typeof t.document!="undefined"&&t.document.attachEvent;if(!e){var o=(function(){var z=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(_){return t.setTimeout(_,20)};return function(_){return z(_)}})(),l=(function(){var z=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.clearTimeout;return function(_){return z(_)}})(),i=function(_){var P=_.__resizeTriggers__,A=P.firstElementChild,M=P.lastElementChild,Y=A.firstElementChild;M.scrollLeft=M.scrollWidth,M.scrollTop=M.scrollHeight,Y.style.width=A.offsetWidth+1+"px",Y.style.height=A.offsetHeight+1+"px",A.scrollLeft=A.scrollWidth,A.scrollTop=A.scrollHeight},s=function(_){return _.offsetWidth!=_.__resizeLast__.width||_.offsetHeight!=_.__resizeLast__.height},a=function(_){if(!(_.target.className&&typeof _.target.className.indexOf=="function"&&_.target.className.indexOf("contract-trigger")<0&&_.target.className.indexOf("expand-trigger")<0)){var P=this;i(this),this.__resizeRAF__&&l(this.__resizeRAF__),this.__resizeRAF__=o(function(){s(P)&&(P.__resizeLast__.width=P.offsetWidth,P.__resizeLast__.height=P.offsetHeight,P.__resizeListeners__.forEach(function(A){A.call(P,_)}))})}},u=!1,d="",h="animationstart",p="Webkit Moz O ms".split(" "),g="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),m="";{var S=t.document.createElement("fakeelement");if(S.style.animationName!==void 0&&(u=!0),u===!1){for(var C=0;C<p.length;C++)if(S.style[p[C]+"AnimationName"]!==void 0){m=p[C],d="-"+m.toLowerCase()+"-",h=g[C],u=!0;break}}}var w="resizeanim",O="@"+d+"keyframes "+w+" { from { opacity: 0; } to { opacity: 0; } } ",x=d+"animation: 1ms "+w+"; "}var G=function(_){if(!_.getElementById("detectElementResize")){var P=(O||"")+".resize-triggers { "+(x||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',A=_.head||_.getElementsByTagName("head")[0],M=_.createElement("style");M.id="detectElementResize",M.type="text/css",n!=null&&M.setAttribute("nonce",n),M.styleSheet?M.styleSheet.cssText=P:M.appendChild(_.createTextNode(P)),A.appendChild(M)}},L=function(_,P){if(e)_.attachEvent("onresize",P);else{if(!_.__resizeTriggers__){var A=_.ownerDocument,M=t.getComputedStyle(_);M&&M.position=="static"&&(_.style.position="relative"),G(A),_.__resizeLast__={},_.__resizeListeners__=[],(_.__resizeTriggers__=A.createElement("div")).className="resize-triggers";var Y=A.createElement("div");Y.className="expand-trigger",Y.appendChild(A.createElement("div"));var $=A.createElement("div");$.className="contract-trigger",_.__resizeTriggers__.appendChild(Y),_.__resizeTriggers__.appendChild($),_.appendChild(_.__resizeTriggers__),i(_),_.addEventListener("scroll",a,!0),h&&(_.__resizeTriggers__.__animationListener__=function(se){se.animationName==w&&i(_)},_.__resizeTriggers__.addEventListener(h,_.__resizeTriggers__.__animationListener__))}_.__resizeListeners__.push(P)}},H=function(_,P){if(e)_.detachEvent("onresize",P);else if(_.__resizeListeners__.splice(_.__resizeListeners__.indexOf(P),1),!_.__resizeListeners__.length){_.removeEventListener("scroll",a,!0),_.__resizeTriggers__.__animationListener__&&(_.__resizeTriggers__.removeEventListener(h,_.__resizeTriggers__.__animationListener__),_.__resizeTriggers__.__animationListener__=null);try{_.__resizeTriggers__=!_.removeChild(_.__resizeTriggers__)}catch(A){}}};return{addResizeListener:L,removeResizeListener:H}}function j(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function U(n){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?j(Object(t),!0).forEach(function(e){(0,f.A)(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function Q(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,J()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function J(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(J=function(){return!!n})()}var ge=(function(n){function r(){var t;(0,V.A)(this,r);for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];return t=Q(this,r,[].concat(o)),(0,f.A)(t,"state",{height:t.props.defaultHeight||0,width:t.props.defaultWidth||0}),(0,f.A)(t,"_parentNode",void 0),(0,f.A)(t,"_autoSizer",void 0),(0,f.A)(t,"_window",void 0),(0,f.A)(t,"_detectElementResize",void 0),(0,f.A)(t,"_onResize",function(){var i=t.props,s=i.disableHeight,a=i.disableWidth,u=i.onResize;if(t._parentNode){var d=t._parentNode.offsetHeight||0,h=t._parentNode.offsetWidth||0,p=t._window||window,g=p.getComputedStyle(t._parentNode)||{},m=parseInt(g.paddingLeft,10)||0,S=parseInt(g.paddingRight,10)||0,C=parseInt(g.paddingTop,10)||0,w=parseInt(g.paddingBottom,10)||0,O=d-C-w,x=h-m-S;(!s&&t.state.height!==O||!a&&t.state.width!==x)&&(t.setState({height:d-C-w,width:h-m-S}),u({height:d,width:h}))}}),(0,f.A)(t,"_setRef",function(i){t._autoSizer=i}),t}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=E(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,o=e.children,l=e.className,i=e.disableHeight,s=e.disableWidth,a=e.style,u=this.state,d=u.height,h=u.width,p={overflow:"visible"},g={};return i||(p.height=0,g.height=d),s||(p.width=0,g.width=h),R.createElement("div",{className:l,ref:this._setRef,style:U(U({},p),a)},o(g))}}])})(R.Component);(0,f.A)(ge,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});function eo(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,et()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function et(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(et=function(){return!!n})()}var tt=(function(n){function r(){var t;(0,V.A)(this,r);for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];return t=eo(this,r,[].concat(o)),(0,f.A)(t,"_child",R.createRef()),(0,f.A)(t,"_measure",function(){var i=t.props,s=i.cache,a=i.columnIndex,u=a===void 0?0:a,d=i.parent,h=i.rowIndex,p=h===void 0?t.props.index||0:h,g=t._getCellMeasurements(),m=g.height,S=g.width;(m!==s.getHeight(p,u)||S!==s.getWidth(p,u))&&(s.set(p,u,S,m),d&&typeof d.recomputeGridSize=="function"&&d.recomputeGridSize({columnIndex:u,rowIndex:p}))}),(0,f.A)(t,"_registerChild",function(i){i&&!(i instanceof Element)&&console.warn("CellMeasurer registerChild expects to be passed Element or null"),t._child.current=i,i&&t._maybeMeasureCell()}),t}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this,o=this.props.children,l=typeof o=="function"?o({measure:this._measure,registerChild:this._registerChild}):o;return l===null?l:(0,R.cloneElement)(l,{ref:function(s){typeof l.ref=="function"?l.ref(s):l.ref&&(l.ref.current=s),e._child.current=s}})}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,o=this._child.current;if(o&&o.ownerDocument&&o.ownerDocument.defaultView&&o instanceof o.ownerDocument.defaultView.HTMLElement){var l=o.style.width,i=o.style.height;e.hasFixedWidth()||(o.style.width="auto"),e.hasFixedHeight()||(o.style.height="auto");var s=Math.ceil(o.offsetHeight),a=Math.ceil(o.offsetWidth);return l&&(o.style.width=l),i&&(o.style.height=i),{height:s,width:a}}else return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,o=e.cache,l=e.columnIndex,i=l===void 0?0:l,s=e.parent,a=e.rowIndex,u=a===void 0?this.props.index||0:a;if(!o.has(u,i)){var d=this._getCellMeasurements(),h=d.height,p=d.width;o.set(u,i,p,h),s&&typeof s.invalidateCellSizeAfterRender=="function"&&s.invalidateCellSizeAfterRender({columnIndex:i,rowIndex:u})}}}])})(R.PureComponent);(0,f.A)(tt,"__internalCellMeasurerFlag",!1);var to=30,oo=100,ro=(function(){function n(){var r=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,V.A)(this,n),(0,f.A)(this,"_cellHeightCache",{}),(0,f.A)(this,"_cellWidthCache",{}),(0,f.A)(this,"_columnWidthCache",{}),(0,f.A)(this,"_rowHeightCache",{}),(0,f.A)(this,"_defaultHeight",void 0),(0,f.A)(this,"_defaultWidth",void 0),(0,f.A)(this,"_minHeight",void 0),(0,f.A)(this,"_minWidth",void 0),(0,f.A)(this,"_keyMapper",void 0),(0,f.A)(this,"_hasFixedHeight",void 0),(0,f.A)(this,"_hasFixedWidth",void 0),(0,f.A)(this,"_columnCount",0),(0,f.A)(this,"_rowCount",0),(0,f.A)(this,"columnWidth",function(d){var h=d.index,p=r._keyMapper(0,h);return r._columnWidthCache[p]!==void 0?r._columnWidthCache[p]:r._defaultWidth}),(0,f.A)(this,"rowHeight",function(d){var h=d.index,p=r._keyMapper(h,0);return r._rowHeightCache[p]!==void 0?r._rowHeightCache[p]:r._defaultHeight});var e=t.defaultHeight,o=t.defaultWidth,l=t.fixedHeight,i=t.fixedWidth,s=t.keyMapper,a=t.minHeight,u=t.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=i===!0,this._minHeight=a||0,this._minWidth=u||0,this._keyMapper=s||no,this._defaultHeight=Math.max(this._minHeight,typeof e=="number"?e:to),this._defaultWidth=Math.max(this._minWidth,typeof o=="number"?o:oo)}return(0,N.A)(n,[{key:"clear",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=this._keyMapper(t,e);delete this._cellHeightCache[o],delete this._cellWidthCache[o],this._updateCachedColumnAndRowSizes(t,e)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"defaultHeight",get:function(){return this._defaultHeight}},{key:"defaultWidth",get:function(){return this._defaultWidth}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var o=this._keyMapper(t,e);return this._cellHeightCache[o]!==void 0?Math.max(this._minHeight,this._cellHeightCache[o]):this._defaultHeight}},{key:"getWidth",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var o=this._keyMapper(t,e);return this._cellWidthCache[o]!==void 0?Math.max(this._minWidth,this._cellWidthCache[o]):this._defaultWidth}},{key:"has",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=this._keyMapper(t,e);return this._cellHeightCache[o]!==void 0}},{key:"set",value:function(t,e,o,l){var i=this._keyMapper(t,e);e>=this._columnCount&&(this._columnCount=e+1),t>=this._rowCount&&(this._rowCount=t+1),this._cellHeightCache[i]=l,this._cellWidthCache[i]=o,this._updateCachedColumnAndRowSizes(t,e)}},{key:"_updateCachedColumnAndRowSizes",value:function(t,e){if(!this._hasFixedWidth){for(var o=0,l=0;l<this._rowCount;l++)o=Math.max(o,this.getWidth(l,e));var i=this._keyMapper(0,e);this._columnWidthCache[i]=o}if(!this._hasFixedHeight){for(var s=0,a=0;a<this._columnCount;a++)s=Math.max(s,this.getHeight(t,a));var u=this._keyMapper(t,0);this._rowHeightCache[u]=s}}}])})();function no(n,r){return"".concat(n,"-").concat(r)}var zr;const Ar=null;function io(n){if(n==null)throw new TypeError("Cannot destructure "+n)}var ie=X("../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/extends.js");function ot(n){var r,t,e="";if(typeof n=="string"||typeof n=="number")e+=n;else if(typeof n=="object")if(Array.isArray(n))for(r=0;r<n.length;r++)n[r]&&(t=ot(n[r]))&&(e&&(e+=" "),e+=t);else for(r in n)n[r]&&(e&&(e+=" "),e+=r);return e}function lo(){for(var n,r,t=0,e="";t<arguments.length;)(n=arguments[t++])&&(r=ot(n))&&(e&&(e+=" "),e+=r);return e}const ne=lo;function me(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,r={};return function(t){var e=t.callback,o=t.indices,l=Object.keys(o),i=!n||l.every(function(a){var u=o[a];return Array.isArray(u)?u.length>0:u>=0}),s=l.length!==Object.keys(r).length||l.some(function(a){var u=r[a],d=o[a];return Array.isArray(d)?u.join(",")!==d.join(","):u!==d});r=o,i&&s&&e(o)}}const so=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var ze;function Ge(n){if((!ze&&ze!==0||n)&&so){var r=document.createElement("div");r.style.position="absolute",r.style.top="-9999px",r.style.width="50px",r.style.height="50px",r.style.overflow="scroll",document.body.appendChild(r),ze=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return ze}function rt(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function nt(n){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?rt(Object(t),!0).forEach(function(e){(0,f.A)(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):rt(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function ao(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,it()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function it(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(it=function(){return!!n})()}var co=150,ve={OBSERVED:"observed",REQUESTED:"requested"},Ae=(function(n){function r(){var t;(0,V.A)(this,r);for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];return t=ao(this,r,[].concat(o)),(0,f.A)(t,"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),(0,f.A)(t,"_calculateSizeAndPositionDataOnNextUpdate",!1),(0,f.A)(t,"_onSectionRenderedMemoizer",me()),(0,f.A)(t,"_onScrollMemoizer",me(!1)),(0,f.A)(t,"_invokeOnSectionRenderedHelper",function(){var i=t.props,s=i.cellLayoutManager,a=i.onSectionRendered;t._onSectionRenderedMemoizer({callback:a,indices:{indices:s.getLastRenderedIndices()}})}),(0,f.A)(t,"_setScrollingContainerRef",function(i){t._scrollingContainer=i}),(0,f.A)(t,"_updateScrollPositionForScrollToCell",function(){var i=t.props,s=i.cellLayoutManager,a=i.height,u=i.scrollToAlignment,d=i.scrollToCell,h=i.width,p=t.state,g=p.scrollLeft,m=p.scrollTop;if(d>=0){var S=s.getScrollPositionForCell({align:u,cellIndex:d,height:a,scrollLeft:g,scrollTop:m,width:h});(S.scrollLeft!==g||S.scrollTop!==m)&&t._setScrollPosition(S)}}),(0,f.A)(t,"_onScroll",function(i){if(i.target===t._scrollingContainer){t._enablePointerEventsAfterDelay();var s=t.props,a=s.cellLayoutManager,u=s.height,d=s.isScrollingChange,h=s.width,p=t._scrollbarSize,g=a.getTotalSize(),m=g.height,S=g.width,C=Math.max(0,Math.min(S-h+p,i.target.scrollLeft)),w=Math.max(0,Math.min(m-u+p,i.target.scrollTop));if(t.state.scrollLeft!==C||t.state.scrollTop!==w){var O=i.cancelable?ve.OBSERVED:ve.REQUESTED;t.state.isScrolling||d(!0),t.setState({isScrolling:!0,scrollLeft:C,scrollPositionChangeReason:O,scrollTop:w})}t._invokeOnScrollMemoizer({scrollLeft:C,scrollTop:w,totalWidth:S,totalHeight:m})}}),t._scrollbarSize=Ge(),t._scrollbarSize===void 0?(t._scrollbarSizeMeasured=!1,t._scrollbarSize=0):t._scrollbarSizeMeasured=!0,t}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,o=e.cellLayoutManager,l=e.scrollLeft,i=e.scrollToCell,s=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=Ge(),this._scrollbarSizeMeasured=!0,this.setState({})),i>=0?this._updateScrollPositionForScrollToCell():(l>=0||s>=0)&&this._setScrollPosition({scrollLeft:l,scrollTop:s}),this._invokeOnSectionRenderedHelper();var a=o.getTotalSize(),u=a.height,d=a.width;this._invokeOnScrollMemoizer({scrollLeft:l||0,scrollTop:s||0,totalHeight:u,totalWidth:d})}},{key:"componentDidUpdate",value:function(e,o){var l=this.props,i=l.height,s=l.scrollToAlignment,a=l.scrollToCell,u=l.width,d=this.state,h=d.scrollLeft,p=d.scrollPositionChangeReason,g=d.scrollTop;p===ve.REQUESTED&&(h>=0&&h!==o.scrollLeft&&h!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=h),g>=0&&g!==o.scrollTop&&g!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=g)),(i!==e.height||s!==e.scrollToAlignment||a!==e.scrollToCell||u!==e.width)&&this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,o=e.autoHeight,l=e.cellCount,i=e.cellLayoutManager,s=e.className,a=e.height,u=e.horizontalOverscanSize,d=e.id,h=e.noContentRenderer,p=e.style,g=e.verticalOverscanSize,m=e.width,S=this.state,C=S.isScrolling,w=S.scrollLeft,O=S.scrollTop;(this._lastRenderedCellCount!==l||this._lastRenderedCellLayoutManager!==i||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=l,this._lastRenderedCellLayoutManager=i,this._calculateSizeAndPositionDataOnNextUpdate=!1,i.calculateSizeAndPositionData());var x=i.getTotalSize(),G=x.height,L=x.width,H=Math.max(0,w-u),z=Math.max(0,O-g),_=Math.min(L,w+m+u),P=Math.min(G,O+a+g),A=a>0&&m>0?i.cellRenderers({height:P-z,isScrolling:C,width:_-H,x:H,y:z}):[],M={boxSizing:"border-box",direction:"ltr",height:o?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:m,willChange:"transform"},Y=G>a?this._scrollbarSize:0,$=L>m?this._scrollbarSize:0;return M.overflowX=L+Y<=m?"hidden":"auto",M.overflowY=G+$<=a?"hidden":"auto",R.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:ne("ReactVirtualized__Collection",s),id:d,onScroll:this._onScroll,role:"grid",style:nt(nt({},M),p),tabIndex:0},l>0&&R.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:G,maxHeight:G,maxWidth:L,overflow:"hidden",pointerEvents:C?"none":"",width:L}},A),l===0&&h())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){var o=e.props.isScrollingChange;o(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},co)}},{key:"_invokeOnScrollMemoizer",value:function(e){var o=this,l=e.scrollLeft,i=e.scrollTop,s=e.totalHeight,a=e.totalWidth;this._onScrollMemoizer({callback:function(d){var h=d.scrollLeft,p=d.scrollTop,g=o.props,m=g.height,S=g.onScroll,C=g.width;S({clientHeight:m,clientWidth:C,scrollHeight:s,scrollLeft:h,scrollTop:p,scrollWidth:a})},indices:{scrollLeft:l,scrollTop:i}})}},{key:"_setScrollPosition",value:function(e){var o=e.scrollLeft,l=e.scrollTop,i={scrollPositionChangeReason:ve.REQUESTED};o>=0&&(i.scrollLeft=o),l>=0&&(i.scrollTop=l),(o>=0&&o!==this.state.scrollLeft||l>=0&&l!==this.state.scrollTop)&&this.setState(i)}}],[{key:"getDerivedStateFromProps",value:function(e,o){return e.cellCount===0&&(o.scrollLeft!==0||o.scrollTop!==0)?{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:ve.REQUESTED}:e.scrollLeft!==o.scrollLeft||e.scrollTop!==o.scrollTop?{scrollLeft:e.scrollLeft!=null?e.scrollLeft:o.scrollLeft,scrollTop:e.scrollTop!=null?e.scrollTop:o.scrollTop,scrollPositionChangeReason:ve.REQUESTED}:null}}])})(R.PureComponent);(0,f.A)(Ae,"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}),Ae.propTypes={},B(Ae);const uo=Ae;var ho=(function(){function n(r){var t=r.height,e=r.width,o=r.x,l=r.y;(0,V.A)(this,n),this.height=t,this.width=e,this.x=o,this.y=l,this._indexMap={},this._indices=[]}return(0,N.A)(n,[{key:"addCellIndex",value:function(t){var e=t.index;this._indexMap[e]||(this._indexMap[e]=!0,this._indices.push(e))}},{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)}}])})(),fo=100,po=(function(){function n(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fo;(0,V.A)(this,n),this._sectionSize=r,this._cellMetadata=[],this._sections={}}return(0,N.A)(n,[{key:"getCellIndices",value:function(t){var e=t.height,o=t.width,l=t.x,i=t.y,s={};return this.getSections({height:e,width:o,x:l,y:i}).forEach(function(a){return a.getCellIndices().forEach(function(u){s[u]=u})}),Object.keys(s).map(function(a){return s[a]})}},{key:"getCellMetadata",value:function(t){var e=t.index;return this._cellMetadata[e]}},{key:"getSections",value:function(t){for(var e=t.height,o=t.width,l=t.x,i=t.y,s=Math.floor(l/this._sectionSize),a=Math.floor((l+o-1)/this._sectionSize),u=Math.floor(i/this._sectionSize),d=Math.floor((i+e-1)/this._sectionSize),h=[],p=s;p<=a;p++)for(var g=u;g<=d;g++){var m="".concat(p,".").concat(g);this._sections[m]||(this._sections[m]=new ho({height:this._sectionSize,width:this._sectionSize,x:p*this._sectionSize,y:g*this._sectionSize})),h.push(this._sections[m])}return h}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var t=this;return Object.keys(this._sections).map(function(e){return t._sections[e].toString()})}},{key:"registerCell",value:function(t){var e=t.cellMetadatum,o=t.index;this._cellMetadata[o]=e,this.getSections(e).forEach(function(l){return l.addCellIndex({index:o})})}}])})();function go(n){for(var r=n.cellCount,t=n.cellSizeAndPositionGetter,e=n.sectionSize,o=[],l=new po(e),i=0,s=0,a=0;a<r;a++){var u=t({index:a});if(u.height==null||isNaN(u.height)||u.width==null||isNaN(u.width)||u.x==null||isNaN(u.x)||u.y==null||isNaN(u.y))throw Error("Invalid metadata returned for cell ".concat(a,`:
x:`).concat(u.x,", y:").concat(u.y,", width:").concat(u.width,", height:").concat(u.height));i=Math.max(i,u.y+u.height),s=Math.max(s,u.x+u.width),o[a]=u,l.registerCell({cellMetadatum:u,index:a})}return{cellMetadata:o,height:i,sectionManager:l,width:s}}function lt(n){var r=n.align,t=r===void 0?"auto":r,e=n.cellOffset,o=n.cellSize,l=n.containerSize,i=n.currentOffset,s=e,a=s-l+o;switch(t){case"start":return s;case"end":return a;case"center":return s-(l-o)/2;default:return Math.max(a,Math.min(s,i))}}function mo(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,st()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function st(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(st=function(){return!!n})()}var De=(function(n){function r(t,e){var o;return(0,V.A)(this,r),o=mo(this,r,[t,e]),o._cellMetadata=[],o._lastRenderedCellIndices=[],o._cellCache=[],o._isScrollingChange=o._isScrollingChange.bind(o),o._setCollectionViewRef=o._setCollectionViewRef.bind(o),o}return(0,Z.A)(r,n),(0,N.A)(r,[{key:"forceUpdate",value:function(){this._collectionView!==void 0&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=(0,ie.A)({},(io(this.props),this.props));return R.createElement(uo,(0,ie.A)({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,o=e.cellCount,l=e.cellSizeAndPositionGetter,i=e.sectionSize,s=go({cellCount:o,cellSizeAndPositionGetter:l,sectionSize:i});this._cellMetadata=s.cellMetadata,this._sectionManager=s.sectionManager,this._height=s.height,this._width=s.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var o=e.align,l=e.cellIndex,i=e.height,s=e.scrollLeft,a=e.scrollTop,u=e.width,d=this.props.cellCount;if(l>=0&&l<d){var h=this._cellMetadata[l];s=lt({align:o,cellOffset:h.x,cellSize:h.width,containerSize:u,currentOffset:s,targetIndex:l}),a=lt({align:o,cellOffset:h.y,cellSize:h.height,containerSize:i,currentOffset:a,targetIndex:l})}return{scrollLeft:s,scrollTop:a}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var o=this,l=e.height,i=e.isScrolling,s=e.width,a=e.x,u=e.y,d=this.props,h=d.cellGroupRenderer,p=d.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:l,width:s,x:a,y:u}),h({cellCache:this._cellCache,cellRenderer:p,cellSizeAndPositionGetter:function(m){var S=m.index;return o._sectionManager.getCellMetadata({index:S})},indices:this._lastRenderedCellIndices,isScrolling:i})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}])})(R.PureComponent);(0,f.A)(De,"defaultProps",{"aria-label":"grid",cellGroupRenderer:vo}),De.propTypes={};function vo(n){var r=n.cellCache,t=n.cellRenderer,e=n.cellSizeAndPositionGetter,o=n.indices,l=n.isScrolling;return o.map(function(i){var s=e({index:i}),a={index:i,isScrolling:l,key:i,style:{height:s.height,left:s.x,position:"absolute",top:s.y,width:s.width}};return l?(i in r||(r[i]=t(a)),r[i]):t(a)}).filter(function(i){return!!i})}var Or;const Mr=null;function So(n,r,t){return r=(0,D.A)(r),(0,q.A)(n,at()?Reflect.construct(r,t||[],(0,D.A)(n).constructor):r.apply(n,t))}function at(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(at=function(){return!!n})()}var ct=(function(n){function r(t,e){var o;return(0,V.A)(this,r),o=So(this,r,[t,e]),o._registerChild=o._registerChild.bind(o),