import{r as F}from"./vendor.38e754a4.js";function A(){return A=Object.assign||function(n){for(var t=1;t=0)&&(r[a]=n[a]);return r}var at=typeof performance=="object"&&typeof performance.now=="function",q=at?function(){return performance.now()}:function(){return Date.now()};function j(n){cancelAnimationFrame(n.id)}function ot(n,t){var r=q();function i(){q()-r>=t?n.call(null):a.id=requestAnimationFrame(i)}var a={id:requestAnimationFrame(i)};return a}var C=null;function H(n){if(n===void 0&&(n=!1),C===null||n){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var i=document.createElement("div"),a=i.style;return a.width="100px",a.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?C="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?C="negative":C="positive-ascending"),document.body.removeChild(t),C}return C}var st=150,lt=function(t,r){return t};function K(n){var t,r,i=n.getItemOffset,a=n.getEstimatedTotalSize,s=n.getItemSize,c=n.getOffsetForIndexAndAlignment,u=n.getStartIndexForOffset,v=n.getStopIndexForStartIndex,O=n.initInstanceProps,S=n.shouldResetStyleCacheOnItemSizeChange,M=n.validateProps;return r=t=function(g){it(x,g);function x(f){var e;return e=g.call(this,f)||this,e._instanceProps=O(e.props,P(P(e))),e._outerRef=void 0,e._resetIsScrollingTimeoutId=null,e.state={instance:P(P(e)),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof e.props.initialScrollOffset=="number"?e.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},e._callOnItemsRendered=void 0,e._callOnItemsRendered=D(function(o,l,d,m){return e.props.onItemsRendered({overscanStartIndex:o,overscanStopIndex:l,visibleStartIndex:d,visibleStopIndex:m})}),e._callOnScroll=void 0,e._callOnScroll=D(function(o,l,d){return e.props.onScroll({scrollDirection:o,scrollOffset:l,scrollUpdateWasRequested:d})}),e._getItemStyle=void 0,e._getItemStyle=function(o){var l=e.props,d=l.direction,m=l.itemSize,z=l.layout,h=e._getItemStyleCache(S&&m,S&&z,S&&d),I;if(h.hasOwnProperty(o))I=h[o];else{var y=i(e.props,o,e._instanceProps),T=s(e.props,o,e._instanceProps),_=d==="horizontal"||z==="horizontal",b=d==="rtl",E=_?y:0;h[o]=I={position:"absolute",left:b?void 0:E,right:b?E:void 0,top:_?0:y,height:_?"100%":T,width:_?T:"100%"}}return I},e._getItemStyleCache=void 0,e._getItemStyleCache=D(function(o,l,d){return{}}),e._onScrollHorizontal=function(o){var l=o.currentTarget,d=l.clientWidth,m=l.scrollLeft,z=l.scrollWidth;e.setState(function(h){if(h.scrollOffset===m)return null;var I=e.props.direction,y=m;if(I==="rtl")switch(H()){case"negative":y=-m;break;case"positive-descending":y=z-d-m;break}return y=Math.max(0,Math.min(y,z-d)),{isScrolling:!0,scrollDirection:h.scrollOffset0)for(var R=et;R<=rt;R++)k.push(F.exports.createElement(o,{data:T,key:b(R,T),index:R,isScrolling:X?N:void 0,style:this._getItemStyle(R)}));var U=a(this.props,this._instanceProps);return F.exports.createElement(Z||J||"div",{className:l,onScroll:tt,ref:this._outerRefSetter,style:A({position:"relative",height:m,width:Y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:d},Q)},F.exports.createElement(h||I||"div",{children:k,ref:z,style:{height:L?"100%":U,pointerEvents:N?"none":void 0,width:L?U:"100%"}}))},p._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var e=this.props.itemCount;if(e>0){var o=this._getRangeToRender(),l=o[0],d=o[1],m=o[2],z=o[3];this._callOnItemsRendered(l,d,m,z)}}if(typeof this.props.onScroll=="function"){var h=this.state,I=h.scrollDirection,y=h.scrollOffset,T=h.scrollUpdateWasRequested;this._callOnScroll(I,y,T)}},p._getRangeToRender=function(){var e=this.props,o=e.itemCount,l=e.overscanCount,d=this.state,m=d.isScrolling,z=d.scrollDirection,h=d.scrollOffset;if(o===0)return[0,0,0,0];var I=u(this.props,h,this._instanceProps),y=v(this.props,I,h,this._instanceProps),T=!m||z==="backward"?Math.max(1,l):1,_=!m||z==="forward"?Math.max(1,l):1;return[Math.max(0,I-T),Math.max(0,Math.min(o-1,y+_)),I,y]},x}(F.exports.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var ct=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},ut=50,w=function(t,r,i){var a=t,s=a.itemSize,c=i.itemMetadataMap,u=i.lastMeasuredIndex;if(r>u){var v=0;if(u>=0){var O=c[u];v=O.offset+O.size}for(var S=u+1;S<=r;S++){var M=s(S);c[S]={offset:v,size:M},v+=M}i.lastMeasuredIndex=r}return c[r]},ft=function(t,r,i){var a=r.itemMetadataMap,s=r.lastMeasuredIndex,c=s>0?a[s].offset:0;return c>=i?V(t,r,s,0,i):dt(t,r,Math.max(0,s),i)},V=function(t,r,i,a,s){for(;a<=i;){var c=a+Math.floor((i-a)/2),u=w(t,c,r).offset;if(u===s)return c;us&&(i=c-1)}return a>0?a-1:0},dt=function(t,r,i,a){for(var s=t.itemCount,c=1;i=i&&(c=i-1),c>=0){var v=a[c];u=v.offset+v.size}var O=i-c-1,S=O*s;return u+S},ht=K({getItemOffset:function(t,r,i){return w(t,r,i).offset},getItemSize:function(t,r,i){return i.itemMetadataMap[r].size},getEstimatedTotalSize:B,getOffsetForIndexAndAlignment:function(t,r,i,a,s){var c=t.direction,u=t.height,v=t.layout,O=t.width,S=c==="horizontal"||v==="horizontal",M=S?O:u,g=w(t,r,s),x=B(t,s),p=Math.max(0,Math.min(x-M,g.offset)),f=Math.max(0,g.offset-M+g.size);switch(i==="smart"&&(a>=f-M&&a<=p+M?i="auto":i="center"),i){case"start":return p;case"end":return f;case"center":return Math.round(f+(p-f)/2);case"auto":default:return a>=f&&a<=p?a:a=f-g&&a<=p+g?i="auto":i="center"),i){case"start":return p;case"end":return f;case"center":{var e=Math.round(f+(p-f)/2);return ex+Math.floor(g/2)?x:e}case"auto":default:return a>=f&&a<=p?a:a