1!function(){try{("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).__faroGitHash_myeroad="5ce3e63ee526711d9fdee9e150f093852f3a7cc4"}catch(e){}}(),function(){try{("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).__faroBundleId_myeroad="10.1.5092-apac"}catch(e){}}();try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c3fb40d4-8800-4fcc-a014-6d2de4e870ba",e._sentryDebugIdIdentifier="sentry-dbid-c3fb40d4-8800-4fcc-a014-6d2de4e870ba")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"10.1.5092-apac"},(self.webpackChunk_eroad_myeroad=self.webpackChunk_eroad_myeroad||[]).push([[1193],{8680:(e,t,o)=>{o.d(t,{A:()=>c});var n=o(89575),r=o(14041);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"};var l=o(7543),s=function(e,t){return r.createElement(l.A,(0,n.A)({},e,{ref:t,icon:i}))};const c=r.forwardRef(s)},77788:(e,t,o)=>{o.d(t,{aY:()=>To});var n=o(31085),r=o(14041),i=o(43144);function l(e){return()=>e}function s(e){e()}function c(e,t){return o=>e(t(o))}function a(e,t){return()=>e(t)}function u(e){return void 0!==e}function d(){}function f(e,t){return t(e),e}function h(e,t){return t(e)}function m(...e){return e}function g(e,t){return e(1,t)}function p(e,t){e(0,t)}function x(e){e(2)}function v(e){return e(4)}function I(e,t){return g(e,function(e){return t=>e(0,t)}(t))}function T(e,t){const o=e(1,e=>{o(),t(e)});return o}function w(e){let t,o;return n=>r=>{t=r,o&&clearTimeout(o),o=setTimeout(()=>{n(t)},e)}}function S(e,t){return e===t}function C(e=S){let t;return o=>n=>{e(t,n)||(t=n,o(n))}}function y(e){return t=>o=>{e(o)&&t(o)}}function b(e){return t=>c(t,e)}function H(e){return t=>()=>{t(e)}}function z(e,...t){const o=function(...e){return t=>e.reduceRight(h,t)}(...t);return(t,n)=>{switch(t){case 2:return void x(e);case 1:return g(e,o(n))}}}function R(e,t){return o=>n=>{o(t=e(t,n))}}function k(e){return t=>o=>{e>0?e--:t(o)}}function E(e){let t,o=null;return n=>r=>{o=r,!t&&(t=setTimeout(()=>{t=void 0,n(o)},e))}}function B(...e){const t=Array.from({length:e.length});let o=0,n=null;const r=2**e.length-1;return e.forEach((e,i)=>{const l=2**i;g(e,e=>{const s=o;o|=l,t[i]=e,s!==r&&o===r&&n&&(n(),n=null)})}),e=>i=>{const l=()=>{e([i].concat(t))};o===r?l():n=l}}function L(e){let t=e;const o=O();return(e,n)=>{switch(e){case 0:t=n;break;case 1:n(t);break;case 4:return t}return o(e,n)}}function F(e,t){return f(L(t),t=>I(e,t))}function O(){const e=[];return(t,o)=>{switch(t){case 0:return void e.slice().forEach(e=>{e(o)});case 2:return void e.splice(0);case 1:return e.push(o),()=>{const t=e.indexOf(o);t>-1&&e.splice(t,1)}}}}function M(e){return f(O(),t=>I(e,t))}const j={singleton:!0};function P(e,t=[],o=j){const{singleton:n}=o;return{constructor:e,dependencies:t,id:W(),singleton:n}}const W=()=>Symbol("id");function A(...e){const t=O(),o=Array.from({length:e.length});let n=0;const r=2**e.length-1;return e.forEach((e,i)=>{const l=2**i;g(e,e=>{o[i]=e,n|=l,n===r&&p(t,o)})}),function(e,i){switch(e){case 2:return void x(t);case 1:return n===r&&i(o),g(t,i)}}}function V(e,t=S){return z(e,C(t))}function D(...e){return function(t,o){switch(t){case 2:return;case 1:return function(...e){return()=>{e.map(s)}}(...e.map(e=>g(e,o)))}}}const _=0,G=1,N=2,K=3,q={[_]:"debug",[K]:"error",[G]:"log",[N]:"warn"},$=P(()=>{const e=L(3);return{log:L((t,o,n=1)=>{n>=((typeof globalThis>"u"?window:globalThis).VIRTUOSO_LOG_LEVEL??v(e))&&console[q[n]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,o)}),logLevel:e}},[],{singleton:!0});function U(e){const t=function(e){return"self"in e?e.document.documentElement:e}(e);return"rtl"===t.ownerDocument.defaultView.getComputedStyle(t).direction}function Y(e,t){return U(e)?-t:t}function X(e,t){return U(e)?-t:t}function Z(e,t,o){return J(e,t,o).callbackRef}function J(e,t,o){const n=r.useRef(null);let i=e=>{};const l=r.useMemo(()=>typeof ResizeObserver<"u"?new ResizeObserver(t=>{const n=()=>{const o=t[0].target;null!==o.offsetParent&&e(o)};o?n():requestAnimationFrame(n)}):null,[e,o]);return i=e=>{e&&t?(l?.observe(e),n.current=e):(n.current&&l?.unobserve(n.current),n.current=null)},{callbackRef:i,ref:n}}function Q(e,t,o,n,i,l,s,c,a){const u=r.useCallback(o=>{const r=function(e,t,o,n){const r=e.length;if(0===r)return null;const i=[];for(let l=0;l<r;l++){const r=e.item(l);if(void 0===r.dataset.index)continue;const s=parseInt(r.dataset.index,10),c=parseFloat(r.dataset.knownSize),a=t(r,o);if(0===a&&n("Zero-sized element, this should not happen",{child:r},3),a===c)continue;const u=i[i.length-1];0===i.length||u.size!==a||u.endIndex!==s-1?i.push({endIndex:s,size:a,startIndex:s}):i[i.length-1].endIndex++}return i}(o.children,t,c?"offsetWidth":"offsetHeight",i);let a=o.parentElement;for(;void 0===a.dataset.virtuosoScroller;)a=a.parentElement;const u="window"===a.lastElementChild?.dataset.viewportType;let d;u&&(d=a.ownerDocument.defaultView);const f=s?c?s.scrollWidth:s.scrollHeight:u?c?d.document.documentElement.scrollWidth:d.document.documentElement.scrollHeight:c?a.scrollWidth:a.scrollHeight,h=s?c?s.offsetWidth:s.offsetHeight:u?c?d.innerWidth:d.innerHeight:c?a.offsetWidth:a.offsetHeight,m=s?c?Y(s,s.scrollLeft):s.scrollTop:u?c?Y(d,d.scrollX||d.document.documentElement.scrollLeft):d.scrollY||d.document.documentElement.scrollTop:c?Y(a,a.scrollLeft):a.scrollTop;
1n({scrollHeight:f,scrollTop:Math.max(m,0),viewportHeight:h}),l?.(c?ee("column-gap",getComputedStyle(o).columnGap,i):ee("row-gap",getComputedStyle(o).rowGap,i)),null!==r&&e(r)},[e,t,i,l,s,n,c]);return J(u,o,a)}function ee(e,t,o){return"normal"!==t&&!0!==t?.endsWith("px")&&o(`${e} was not resolved to pixel value correctly`,t,2),"normal"===t?0:parseInt(t??"0",10)}function te(e,t,o){const n=r.useRef(null),i=r.useCallback(o=>{if(!o?.offsetParent)return;const r=o.getBoundingClientRect(),i=r.width;let l,c;if(t){const e=t.getBoundingClientRect(),o=r.top-e.top;c=e.height-Math.max(0,o),l=o+t.scrollTop}else{const e=s.current.ownerDocument.defaultView;c=e.innerHeight-Math.max(0,r.top),l=r.top+e.scrollY}n.current={listHeight:r.height,offsetTop:l,visibleHeight:c,visibleWidth:i},e(n.current)},[e,t]),{callbackRef:l,ref:s}=J(i,!0,o),c=r.useCallback(()=>{i(s.current)},[i,s]);return r.useEffect(()=>{if(t){t.addEventListener("scroll",c);const e=new ResizeObserver(()=>{requestAnimationFrame(c)});return e.observe(t),()=>{t.removeEventListener("scroll",c),e.unobserve(t)}}const e=s.current?.ownerDocument.defaultView;return e?.addEventListener("scroll",c),e?.addEventListener("resize",c),()=>{e?.removeEventListener("scroll",c),e?.removeEventListener("resize",c)}},[c,t,s]),l}const oe=P(()=>{const e=O(),t=O(),o=L(0),n=O(),r=L(0),i=O(),l=O(),s=L(0),c=L(0),a=L(0),u=L(0),d=O(),f=O(),h=L(!1),m=L(!1),g=L(!1);return I(z(e,b(({scrollTop:e})=>e)),t),I(z(e,b(({scrollHeight:e})=>e)),l),I(t,r),{deviation:o,fixedFooterHeight:a,fixedHeaderHeight:c,footerHeight:u,headerHeight:s,horizontalDirection:m,scrollBy:f,scrollContainerState:e,scrollHeight:l,scrollingInProgress:h,scrollTo:d,scrollTop:t,skipAnimationFrameInResizeObserver:g,smoothScrollTargetReached:n,statefulScrollTop:r,viewportHeight:i}},[],{singleton:!0}),ne={lvl:0};function re(e,t){const o=e.length;if(0===o)return[];let{index:n,value:r}=t(e[0]);const i=[];for(let l=1;l<o;l++){const{index:o,value:s}=t(e[l]);i.push({end:o-1,start:n,value:r}),n=o,r=s}return i.push({end:1/0,start:n,value:r}),i}function ie(e){return e===ne}function le(e,t){if(!ie(e))return t===e.k?e.v:t<e.k?le(e.l,t):le(e.r,t)}function se(e,t,o="k"){if(ie(e))return[-1/0,void 0];if(Number(e[o])===t)return[e.k,e.v];if(Number(e[o])<t){const n=se(e.r,t,o);return n[0]===-1/0?[e.k,e.v]:n}return se(e.l,t,o)}function ce(e,t,o){return ie(e)?Ie(t,o,1):t===e.k?ge(e,{k:t,v:o}):t<e.k?Te(ge(e,{l:ce(e.l,t,o)})):Te(ge(e,{r:ce(e.r,t,o)}))}function ae(){return ne}function ue(e,t,o){return ie(e)?[]:function(e){return re(e,({k:e,v:t})=>({index:e,value:t}))}(he(e,se(e,t)[0],o))}function de(e,t){if(ie(e))return ne;const{k:o,l:n,r}=e;if(t===o){if(ie(n))return r;if(ie(r))return n;const[t,o]=ve(n);return me(ge(e,{k:t,l:pe(n),v:o}))}return me(ge(e,t<o?{l:de(n,t)}:{r:de(r,t)}))}function fe(e){return ie(e)?[]:[...fe(e.l),{k:e.k,v:e.v},...fe(e.r)]}function he(e,t,o){if(ie(e))return[];const{k:n,l:r,r:i,v:l}=e;let s=[];return n>t&&(s=s.concat(he(r,t,o))),n>=t&&n<=o&&s.push({k:n,v:l}),n<=o&&(s=s.concat(he(i,t,o))),s}function me(e){const{l:t,lvl:o,r:n}=e;if(n.lvl>=o-1&&t.lvl>=o-1)return e;if(o>n.lvl+1){if(xe(t))return we(ge(e,{lvl:o-1}));if(!ie(t)&&!ie(t.r))return ge(t.r,{l:ge(t,{r:t.r.l}),lvl:o,r:ge(e,{l:t.r.r,lvl:o-1})});throw new Error("Unexpected empty nodes")}if(xe(e))return Se(ge(e,{lvl:o-1}));if(!ie(n)&&!ie(n.l)){const t=n.l,r=xe(t)?n.lvl-1:n.lvl;return ge(t,{l:ge(e,{lvl:o-1,r:t.l}),lvl:t.lvl+1,r:Se(ge(n,{l:t.r,lvl:r}))})}throw new Error("Unexpected empty nodes")}function ge(e,t){return Ie(void 0===t.k?e.k:t.k,void 0===t.v?e.v:t.v,void 0===t.lvl?e.lvl:t.lvl,void 0===t.l?e.l:t.l,void 0===t.r?e.r:t.r)}function pe(e){return ie(e.r)?e.l:me(ge(e,{r:pe(e.r)}))}function xe(e){return ie(e)||e.lvl>e.r.lvl}function ve(e){return ie(e.r)?[e.k,e.v]:ve(e.r)}function Ie(e,t,o,n=ne,r=ne){return{k:e,l:n,lvl:o,r,v:t}}function Te(e){return Se(we(e))}function we(e){const{l:t}=e;return ie(t)||t.lvl!==e.lvl?e:ge(t,{r:ge(e,{l:t.r})})}function Se(e){const{lvl:t,r:o}=e;return ie(o)||ie(o.r)||o.lvl!==t||o.r.lvl!==t?e:ge(o,{l:ge(e,{r:o.l}),lvl:t+1})}function Ce(e,t){return!(!e||e.startIndex!==t.startIndex||e.endIndex!==t.endIndex)}function ye(e,t){return!(!e||e[0]!==t[0]||e[1]!==t[1])}const be=P(()=>({recalcInProgress:L(!1)}),[],{singleton:!0});function He(e,t,o){return e[ze(e,t,o)]}function ze(e,t,o,n=0){let r=e.length-1;for(;n<=r;){const i=Math.floor((n+r)/2),l=o(e[i],t);
1if(0===l)return i;if(-1===l){if(r-n<2)return i-1;r=i-1}else{if(r===n)return i;n=i+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function Re(e,t){return Math.round(e.getBoundingClientRect()[t])}function ke(e){return!ie(e.groupOffsetTree)}function Ee({index:e},t){return t===e?0:t<e?-1:1}function Be({offset:e},t){return t===e?0:t<e?-1:1}function Le(e,t,o){if(0===t.length)return 0;const{index:n,offset:r,size:i}=He(t,e,Ee),l=e-n,s=i*l+(l-1)*o+r;return s>0?s+o:s}function Fe(e,t){if(!ke(t))return e;let o=0;for(;t.groupIndices[o]<=e+o;)o++;return e+o}function Oe(e,t,o){if(function(e){return void 0!==e.groupIndex}(e))return t.groupIndices[e.groupIndex]+1;let n=Fe("LAST"===e.index?o:e.index,t);return n=Math.max(0,Math.min(o,n)),n}function Me(e,[t,o,n,r]){t.length>0&&n("received item sizes",t,0);const i=e.sizeTree;let l=i,s=0;if(o.length>0&&ie(i)&&2===t.length){const e=t[0].size,n=t[1].size;l=o.reduce((t,o)=>ce(ce(t,o,e),o+1,n),l)}else[l,s]=function(e,t){let o=ie(e)?0:1/0;for(const n of t){const{endIndex:t,size:r,startIndex:i}=n;if(o=Math.min(o,i),ie(e)){e=ce(e,0,r);continue}const l=ue(e,i-1,t+1);if(l.some(Ae(n)))continue;let s=!1,c=!1;for(const{end:o,start:n,value:i}of l)s?(t>=n||r===i)&&(e=de(e,n)):(c=i!==r,s=!0),o>t&&t>=n&&i!==r&&(e=ce(e,t+1,i));c&&(e=ce(e,i,r))}return[e,o]}(l,t);if(l===i)return e;const{lastIndex:c,lastOffset:a,lastSize:u,offsetTree:d}=Pe(e.offsetTree,s,l,r);return{groupIndices:o,groupOffsetTree:o.reduce((e,t)=>ce(e,t,Le(t,d,r)),ae()),lastIndex:c,lastOffset:a,lastSize:u,offsetTree:d,sizeTree:l}}function je(e,t){let o=0,n=0;for(;o<e;)o+=t[n+1]-t[n]-1,n++;return n-(o===e?0:1)}function Pe(e,t,o,n){let r=e,i=0,l=0,s=0,c=0;if(0===t)r=[];else{c=ze(r,t-1,Ee),s=r[c].offset;const e=se(o,t-1);i=e[0],l=e[1],r.length&&r[c].size===se(o,t)[1]&&(c-=1),r=r.slice(0,c+1)}for(const{start:e,value:c}of ue(o,t,1/0)){const t=e-i,o=t*l+s+t*n;r.push({index:e,offset:o,size:c}),i=e,s=o,l=c}return{lastIndex:i,lastOffset:s,lastSize:l,offsetTree:r}}function We(e){return{index:e.index,value:e}}function Ae(e){const{endIndex:t,size:o,startIndex:n}=e;return e=>e.start===n&&(e.end===t||e.end===1/0)&&e.value===o}const Ve={offsetHeight:"height",offsetWidth:"width"},De=P(([{log:e},{recalcInProgress:t}])=>{const o=O(),n=O(),r=F(n,0),i=O(),l=O(),s=L(0),c=L([]),a=L(void 0),u=L(void 0),d=L(void 0),f=L(void 0),h=L((e,t)=>Re(e,Ve[t])),m=L(void 0),x=L(0),T={groupIndices:[],groupOffsetTree:ae(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:ae()},w=F(z(o,B(c,e,x),R(Me,T),C()),T),S=F(z(c,C(),R((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),b(({prev:e})=>e)),[]);I(z(c,y(e=>e.length>0),B(w,x),b(([e,t,o])=>{const n=e.reduce((e,n,r)=>ce(e,n,Le(n,t.offsetTree,o)||r),ae());return{...t,groupIndices:e,groupOffsetTree:n}})),w),I(z(n,B(w),y(([e,{lastIndex:t}])=>e<t),b(([e,{lastIndex:t,lastSize:o}])=>[{endIndex:t,size:o,startIndex:e}])),o),I(a,u);const H=F(z(a,b(e=>void 0===e)),!0);I(z(u,y(e=>void 0!==e&&ie(v(w).sizeTree)),b(e=>{const t=v(d),o=v(c).length>0;return void 0!==t&&0!==t?o?[{endIndex:0,size:t,startIndex:0},{endIndex:1,size:e,startIndex:1}]:[]:[{endIndex:0,size:e,startIndex:0}]})),o),I(z(f,y(e=>void 0!==e&&e.length>0&&ie(v(w).sizeTree)),b(e=>{const t=[];let o=e[0],n=0;for(let r=1;r<e.length;r++){const i=e[r];i!==o&&(t.push({endIndex:r-1,size:o,startIndex:n}),o=i,n=r)}return t.push({endIndex:e.length-1,size:o,startIndex:n}),t})),o),I(z(c,B(d,u),y(([,e,t])=>void 0!==e&&void 0!==t),b(([e,t,o])=>{const n=[];for(let r=0;r<e.length;r++){const i=e[r],l=e[r+1];n.push({startIndex:i,endIndex:i,size:t}),void 0!==l&&n.push({startIndex:i+1,endIndex:l-1,size:o})}return n})),o);const k=M(z(o,B(w),R(({sizes:e},[t,o])=>({changed:o!==e,sizes:o}),{changed:!1,sizes:T}),b(e=>e.changed)));g(z(s,R((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),b(e=>e.diff)),e=>{const{groupIndices:o}=v(w);if(e>0)p(t,!0),p(i,e+je(e,o));else if(e<0){const t=v(S);t.length>0&&(e-=je(-e,t)),p(l,e)}}),g(z(s,B(e)),([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},3)});const E=M(i);I(z(i,B(w),b(([e,t])=>{const o=t.groupIndices.length>0,n=[],r=t.lastSize;if(o){const o=le(t.sizeTree,0);let i=0,l=0;for(;i<e;){const e=t.groupIndices[l],s=t.groupIndices.length===l+1?1/0:t.groupIndices[l+1]-e-1;n.push({endIndex:e,size:o,startIndex:e}),n.push({endIndex:e+1+s-1,size:r,startIndex:e+1}),l++,i+=s+1}const s=fe(t.sizeTree);return i!==e&&s.shift(),s.reduce((t,{k:o,v:n})=>{let r=t.ranges;return 0!==t.prevSize&&(r=[...t.ranges,{endIndex:o+e-1,size:t.prevSize,startIndex:t.prevIndex}]),{prevIndex:o+e,prevSize:n,ranges:r}},{prevIndex:e,prevSize:0,ranges:n}).ranges}return fe(t.sizeTree).reduce((t,{k:o,v:n})=>({prevIndex:o+e,prevSize:n,ranges:[...t.ranges,{endIndex:o+e-1,size:t.prevSize,startIndex:t.prevIndex}]}),{prevIndex:0,prevSize:r,ranges:[]}).ranges})),o);const j=M(z(l,B(w,x),b(([e,{offsetTree:t},o])=>Le(-e,t,o))));return I(z(l,B(w,x),b(([e,t,o])=>{if(t.groupIndices.length>0){if(ie(t.sizeTree))return t;let n=ae();const r=v(S);let i=0,l=0,s=0;for(;i<-e;){s=r[l];const e=r[l+1]-s-1;l++,i+=e+1}return n=fe(t.sizeTree).reduce((t,{k:o,v:n})=>ce(t,Math.max(0,o+e),n),n),i!==-e&&(n=ce(n,0,le(t.sizeTree,s)),n=ce(n,1,se(t.sizeTree,1-e)[1])),{...t,sizeTree:n,...Pe(t.offsetTree,0,n,o)}}const n=fe(t.sizeTree).reduce((t,{k:o,v:n})=>ce(t,Math.max(0,o+e),n),ae());return{...t,sizeTree:n,...Pe(t.offsetTree,0,n,o)}})),w),{beforeUnshiftWith:E,data:m,defaultItemSize:u,firstItemIndex:s,fixedItemSize:a,fixedGroupSize:d,gap:x,groupIndices:c,heightEstimates:f,itemSize:h,listRefresh:k,shiftWith:l,shiftWithOffset:j,sizeRanges:o,sizes:w,statefulTotalCount:r,totalCount:n,trackItemSizes:H,unshiftWith:i}},m($,be),{singleton:!0});function _e(e){return e.reduce((e,t)=>
1(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}const Ge=P(([{groupIndices:e,sizes:t,totalCount:o},{headerHeight:n,scrollTop:r}])=>{const i=O(),l=O(),s=M(z(i,b(_e)));return I(z(s,b(e=>e.totalCount)),o),I(z(s,b(e=>e.groupIndices)),e),I(z(A(r,t,n),y(([e,t])=>ke(t)),b(([e,t,o])=>se(t.groupOffsetTree,Math.max(e-o,0),"v")[0]),C(),b(e=>[e])),l),{groupCounts:i,topItemsIndexes:l}},m(De,oe)),Ne=P(([{log:e}])=>{const t=L(!1),o=M(z(t,y(e=>e),C()));return g(t,t=>{t&&v(e)("props updated",{},0)}),{didMount:o,propsReady:t}},m($),{singleton:!0}),Ke=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function qe(e){const t="number"==typeof e?{index:e}:{...e};return t.align||(t.align="start"),(!t.behavior||!Ke)&&(t.behavior="auto"),void 0===t.offset&&(t.offset=0),t}const $e=P(([{gap:e,listRefresh:t,sizes:o,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:i,footerHeight:l,headerHeight:s,scrollingInProgress:c,scrollTo:a,smoothScrollTargetReached:u,viewportHeight:d},{log:f}])=>{const h=O(),m=O(),x=L(0);let v=null,w=null,S=null;function C(){null!==v&&(v(),v=null),null!==S&&(S(),S=null),w&&(clearTimeout(w),w=null),p(c,!1)}return I(z(h,B(o,d,n,x,s,l,f),B(e,i,r),b(([[e,o,n,r,i,l,s,a],d,f,x])=>{const I=qe(e),{align:y,behavior:b,offset:H}=I,R=r-1,k=Oe(I,o,R);let E=Le(k,o.offsetTree,d)+l;"end"===y?(E+=f+se(o.sizeTree,k)[1]-n+x,k===R&&(E+=s)):"center"===y?E+=(f+se(o.sizeTree,k)[1]-n+x)/2:E-=i,void 0!==H&&0!==H&&(E+=H);const B=t=>{C(),t?(a("retrying to scroll to",{location:e},0),p(h,e)):(p(m,!0),a("list did not change, scroll successful",{},0))};if(C(),"smooth"===b){let e=!1;S=g(t,t=>{e=e||t}),v=T(u,()=>{B(e)})}else v=T(z(t,e=>{const t=setTimeout(()=>{e(!1)},150);return o=>{o&&(e(!0),clearTimeout(t))}}),B);return w=setTimeout(()=>{C()},1200),p(c,!0),a("scrolling from index to",{behavior:b,index:k,top:E},0),{behavior:b,top:E}})),a),{scrollTargetReached:m,scrollToIndex:h,topListHeight:x}},m(De,oe,$),{singleton:!0});function Ue(e,t){0===e?t():requestAnimationFrame(()=>{Ue(e-1,t)})}function Ye(e,t){if(void 0===e)return 0;const o=t-1,n="number"==typeof e?e:"LAST"===e.index?o:e.index;return Math.max(0,Math.min(n,o))}function Xe(e){return void 0===e||("number"==typeof e?0===e:!(0!==e.index||void 0!==e.align&&"start"!==e.align||void 0!==e.offset&&0!==e.offset))}const Ze=P(([{defaultItemSize:e,listRefresh:t,sizes:o},{scrollTop:n},{scrollTargetReached:r,scrollToIndex:i},{didMount:l}])=>{const s=L(!0),c=L(0),a=L(!0);return I(z(l,B(c),y(([e,t])=>!Xe(t)),H(!1)),s),I(z(l,B(c),y(([e,t])=>!Xe(t)),H(!1)),a),g(z(A(t,l),B(s,o,e,a),y(([[,e],t,{sizeTree:o},n,r])=>e&&(!ie(o)||u(n))&&!t&&!r),B(c)),([,e])=>{if(void 0===e)return p(s,!0),void p(a,!0);T(r,()=>{p(a,!0)}),Ue(4,()=>{T(n,()=>{p(s,!0)}),p(i,e)})}),{initialItemFinalLocationReached:a,initialTopMostItemIndex:c,scrolledToInitialItem:s}},m(De,oe,$e,Ne),{singleton:!0});function Je(e,t){return Math.abs(e-t)<1.01}const Qe="up",et="down",tt={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},ot=P(([{footerHeight:e,headerHeight:t,scrollBy:o,scrollContainerState:n,scrollTop:r,viewportHeight:i}])=>{const l=L(!1),s=L(!0),c=O(),a=O(),u=L(4),d=L(0),f=F(z(D(z(V(r),k(1),H(!0)),z(V(r),k(1),H(!1),w(100))),C()),!1),h=F(z(D(z(o,H(!0)),z(o,H(!1),w(200))),C()),!1);I(z(A(V(r),V(d)),b(([e,t])=>e<=t),C()),s),I(z(s,E(50)),a);const m=M(z(A(n,V(i),V(t),V(e),V(u)),R((e,[{scrollHeight:t,scrollTop:o},n,r,i,l])=>{const s={scrollHeight:t,scrollTop:o,viewportHeight:n};if(o+n-t>-l){let t,n;return o>e.state.scrollTop?(t="SCROLLED_DOWN",n=e.state.scrollTop-o):(t="SIZE_DECREASED",n=e.state.scrollTop-o||e.scrollTopDelta),{atBottom:!0,atBottomBecause:t,scrollTopDelta:n,state:s}}let c;return c=s.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":n<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":o<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:c,state:s}},tt),C((e,t)=>void 0!==e&&e.atBottom===t.atBottom))),g=F(z(n,R((e,{scrollHeight:t,scrollTop:o,viewportHeight:n})=>{if(!Je(e.scrollHeight,t)){const r=t-(o+n)<1;return e.scrollTop!==o&&r?{changed:!0,jump:e.scrollTop-o,scrollHeight:t,scrollTop:o}:{changed:!0,jump:0,scrollHeight:t,scrollTop:o}}return{changed:!1,jump:0,scrollHeight:t,scrollTop:o}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),y(e=>e.changed),b(e=>e.jump)),0);I(z(m,b(e=>e.atBottom)),l),I(z(l,E(50)),c);const p=L(et);I(z(n,b(({scrollTop:e})=>e),C(),R((e,t)=>v(h)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?Qe:et,prevScrollTop:t},{direction:et,prevScrollTop:0}),b(e=>e.direction)),p),I(z(n,E(50),H("none")),p);const x=L(0);return I(z(f,y(e=>!e),H(0)),x),I(z(r,E(100),B(f),y(([e,t])=>t),R(([e,t],[o])=>[t,o],[0,0]),b(([e,t])=>t-e)),x),{atBottomState:m,atBottomStateChange:c,atBottomThreshold:u,atTopStateChange:a,atTopThreshold:d,isAtBottom:l,isAtTop:s,isScrolling:f,lastJumpDueToItemResize:g,scrollDirection:p,scrollVelocity:x}},m(oe)),nt="top",rt="bottom",it="none";function lt(e,t,o){return"number"==typeof e?o===Qe&&t===nt||o===et&&t===rt?e:0:o===Qe?t===nt?e.main:e.reverse:t===rt?e.main:e.reverse}function st(e,t){return"number"==typeof e?e:e[t]??0}const ct=P(([{deviation:e,fixedHeaderHeight:t,headerHeight:o,scrollTop:n,viewportHe
1ight:r}])=>{const i=O(),l=L(0),s=L(0),c=L(0);return{increaseViewportBy:s,listBoundary:i,overscan:c,topListHeight:l,visibleRange:F(z(A(V(n),V(r),V(o),V(i,ye),V(c),V(l),V(t),V(e),V(s)),b(([e,t,o,[n,r],i,l,s,c,a])=>{const u=e-c,d=l+s,f=Math.max(o-u,0);let h=it;const m=st(a,nt),g=st(a,rt);return n-=c,r+=o+s,(n+=o+s)>e+d-m&&(h=Qe),(r-=c)<e-f+t+g&&(h=et),h!==it?[Math.max(u-o-lt(i,nt,h)-m,0),u-f-s+t+lt(i,rt,h)+g]:null}),y(e=>null!==e),C(ye)),[0,0])}},m(oe),{singleton:!0}),at={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function ut(e,t,o,n,r,i){const{lastIndex:l,lastOffset:s,lastSize:c}=r;let a=0,u=0;if(e.length>0){a=e[0].offset;const t=e[e.length-1];u=t.offset+t.size}const d=o-l,f=a,h=s+d*c+(d-1)*n-u;return{bottom:u,firstItemIndex:i,items:ft(e,r,i),offsetBottom:h,offsetTop:a,top:f,topItems:ft(t,r,i),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:o}}function dt(e,t,o,n,r,i){let l=0;if(o.groupIndices.length>0)for(const t of o.groupIndices){if(t-l>=e)break;l++}const s=e+l,c=Ye(t,s);return ut(Array.from({length:s}).map((e,t)=>({data:i[t+c],index:t+c,offset:0,size:0})),[],s,r,o,n)}function ft(e,t,o){if(0===e.length)return[];if(!ke(t))return e.map(e=>({...e,index:e.index+o,originalIndex:e.index}));const n=e[0].index,r=e[e.length-1].index,i=[],l=ue(t.groupOffsetTree,n,r);let s,c=0;for(const n of e){let e;(!s||s.end<n.index)&&(s=l.shift(),c=t.groupIndices.indexOf(s.start)),e=n.index===s.start?{index:c,type:"group"}:{groupIndex:c,index:n.index-(c+1)+o},i.push({...e,data:n.data,offset:n.offset,originalIndex:n.index,size:n.size})}return i}function ht(e,t){return void 0===e?0:"number"==typeof e?e:e[t]??0}const mt=P(([{data:e,firstItemIndex:t,gap:o,sizes:n,totalCount:r},i,{listBoundary:l,topListHeight:s,visibleRange:c},{initialTopMostItemIndex:a,scrolledToInitialItem:d},{topListHeight:h},m,{didMount:g},{recalcInProgress:p}])=>{const x=L([]),T=L(0),w=O(),S=L(0);I(i.topItemsIndexes,x);const H=F(z(A(g,p,V(c,ye),V(r),V(n),V(a),d,V(x),V(t),V(o),V(S),e),y(([e,t,,o,,,,,,,,n])=>{const r=void 0!==n&&n.length!==o;return e&&!t&&!r}),b(([,,[e,t],o,n,r,i,l,s,c,a,u])=>{const d=n,{offsetTree:h,sizeTree:m}=d,g=v(T);if(0===o)return{...at,totalCount:o};if(0===e&&0===t)return 0===g?{...at,totalCount:o}:dt(g,r,n,s,c,u||[]);if(ie(m))return g>0?null:ut(function(e,t,o){if(ke(t)){const n=Fe(e,t);return[{index:se(t.groupOffsetTree,n)[0],offset:0,size:0},{data:o?.[0],index:n,offset:0,size:0}]}return[{data:o?.[0],index:e,offset:0,size:0}]}(Ye(r,o),d,u),[],o,c,d,s);const p=[];if(l.length>0){const e=l[0],t=l[l.length-1];let o=0;for(const n of ue(m,e,t)){const r=n.value,i=Math.max(n.start,e),l=Math.min(n.end,t);for(let e=i;e<=l;e++)p.push({data:u?.[e],index:e,offset:o,size:r}),o+=r}}if(!i)return ut([],p,o,c,d,s);const x=l.length>0?l[l.length-1]+1:0,I=function(e,t,o,n=0){return n>0&&(t=Math.max(t,He(e,n,Ee).offset)),re(function(e,t,o,n){const r=ze(e,t,n),i=ze(e,o,n,r);return e.slice(r,i+1)}(e,t,o,Be),We)}(h,e,t,x);if(0===I.length)return null;const w=o-1,S=f([],o=>{for(const n of I){const r=n.value;let i=r.offset,l=n.start;const s=r.size;if(r.offset<e){l+=Math.floor((e-r.offset+c)/(s+c));const t=l-n.start;i+=t*s+t*c}l<x&&(i+=(x-l)*s,l=x);const a=Math.min(n.end,w);for(let e=l;e<=a&&!(i>=t);e++)o.push({data:u?.[e],index:e,offset:i,size:s}),i+=s+c}}),C=ht(a,nt),y=ht(a,rt);if(S.length>0&&(C>0||y>0)){const e=S[0],t=S[S.length-1];if(C>0&&e.index>x){const t=Math.min(C,e.index-x),o=[];let n=e.offset;for(let r=e.index-1;r>=e.index-t;r--){const t=ue(m,r,r)[0]?.value??e.size;n-=t+c,o.unshift({data:u?.[r],index:r,offset:n,size:t})}S.unshift(...o)}if(y>0&&t.index<w){const e=Math.min(y,w-t.index);let o=t.offset+t.size+c;for(let n=t.index+1;n<=t.index+e;n++){const e=ue(m,n,n)[0]?.value??t.size;S.push({data:u?.[n],index:n,offset:o,size:e}),o+=e+c}}}return ut(S,p,o,c,d,s)}),y(e=>null!==e),C()),at);I(z(e,y(u),b(e=>e?.length)),r),I(z(H,b(e=>e.topListHeight)),h),I(h,s),I(z(H,b(e=>[e.top,e.bottom])),l),I(z(H,b(e=>e.items)),w);const R=M(z(H,y(({items:e})=>e.length>0),B(r,e),y(([{items:e},t])=>e[e.length-1].originalIndex===t-1),b(([,e,t])=>[e-1,t]),C(ye),b(([e])=>e))),k=M(z(H,E(200),y(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),b(({items:e})=>e[0].index),C())),j=M(z(H,y(({items:e})=>e.length>0),b(({items:e})=>{let t=0,o=e.length-1;for(;"group"===e[t].type&&t<o;)t++;for(;"group"===e[o].type&&o>t;)o--;return{endIndex:e[o].index,startIndex:e[t].index}}),C(Ce)));return{endReached:R,initialItemCount:T,itemsRendered:w,listState:H,minOverscanItemCount:S,rangeChanged:j,startReached:k,topItemsIndexes:x,...m}},m(De,Ge,ct,Ze,$e,ot,Ne,be),{singleton:!0}),gt=P(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:o,headerHeight:n},{listState:r}])=>{const i=O(),l=F(z(A(o,e,n,t,r),b(([e,t,o,n,r])=>
1e+t+o+n+r.offsetBottom+r.bottom)),0);return I(V(l),i),{totalListHeight:l,totalListHeightChanged:i}},m(oe,mt),{singleton:!0}),pt=P(([{viewportHeight:e},{totalListHeight:t}])=>{const o=L(!1);return{alignToBottom:o,paddingTopAddition:F(z(A(o,e,t),y(([e])=>e),b(([,e,t])=>Math.max(0,e-t)),E(0),C()),0)}},m(oe,gt),{singleton:!0}),xt=P(()=>({context:L(null)})),vt=({itemBottom:e,itemTop:t,locationParams:{align:o,behavior:n,...r},viewportBottom:i,viewportTop:l})=>t<l?{...r,align:o??"start",...void 0===n?{}:{behavior:n}}:e>i?{...r,align:o??"end",...void 0===n?{}:{behavior:n}}:null,It=P(([{gap:e,sizes:t,totalCount:o},{fixedFooterHeight:n,fixedHeaderHeight:r,headerHeight:i,scrollingInProgress:l,scrollTop:s,viewportHeight:c},{scrollToIndex:a}])=>{const u=O();return I(z(u,B(t,c,o,i,r,n,s),B(e),b(([[e,t,o,n,r,i,s,c],a])=>{const{calculateViewLocation:u=vt,done:d,...f}=e,h=Oe(e,t,n-1),m=Le(h,t.offsetTree,a)+r+i,g=u({itemBottom:m+se(t.sizeTree,h)[1],itemTop:m,locationParams:f,viewportBottom:c+o-s,viewportTop:c+i});return null===g?d?.():d&&T(z(l,y(e=>!e),k(v(l)?1:2)),d),g}),y(e=>null!==e)),a),{scrollIntoView:u}},m(De,oe,$e,mt,$),{singleton:!0});function Tt(e){return!1!==e&&("smooth"===e?"smooth":"auto")}const wt=P(([{listRefresh:e,totalCount:t,fixedItemSize:o,data:n},{atBottomState:r,isAtBottom:i},{scrollToIndex:l},{scrolledToInitialItem:s},{didMount:c,propsReady:a},{log:u},{scrollingInProgress:d},{context:f},{scrollIntoView:h}])=>{const m=L(!1),x=O();let w=null;function S(e){p(l,{align:"end",behavior:e,index:"LAST"})}function C(e){const t=T(r,t=>{e&&!t.atBottom&&"SIZE_INCREASED"===t.notAtBottomBecause&&null===w&&(v(u)("scrolling to bottom due to increased size",{},0),S("auto"))});setTimeout(t,100)}g(z(A(z(V(t),k(1)),c),B(V(m),i,s,d),b(([[e,t],o,n,r,i])=>{let l=t&&r,s="auto";return l&&(s=((e,t)=>"function"==typeof e?Tt(e(t)):t&&Tt(e))(o,n||i),l=l&&!1!==s),{followOutputBehavior:s,shouldFollow:l,totalCount:e}}),y(({shouldFollow:e})=>e)),({followOutputBehavior:t,totalCount:n})=>{null!==w&&(w(),w=null),void 0===v(o)?w=T(e,()=>{v(u)("following output to ",{totalCount:n},0),S(t),w=null}):requestAnimationFrame(()=>{v(u)("following output to ",{totalCount:n},0),S(t)})}),g(z(A(V(m),t,a),y(([e,,t])=>!1!==e&&t),R(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),y(({refreshed:e})=>e),B(m,t)),([,e])=>{v(s)&&C(!1!==e)}),g(x,()=>{C(!1!==v(m))}),g(A(V(m),r),([e,t])=>{!1!==e&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&S("auto")});const H=L(null),F=O();return I(D(z(V(n),b(e=>e?.length??0)),z(V(t))),F),g(z(A(z(F,k(1)),c),B(V(H),s,d,f),b(([[e,t],o,n,r,i])=>t&&n&&o?.({context:i,totalCount:e,scrollingInProgress:r})),y(e=>!!e),E(0)),t=>{null!==w&&(w(),w=null),void 0===v(o)?w=T(e,()=>{v(u)("scrolling into view",{}),p(h,t),w=null}):requestAnimationFrame(()=>{v(u)("scrolling into view",{}),p(h,t)})}),{autoscrollToBottom:x,followOutput:m,scrollIntoViewOnChange:H}},m(De,ot,$e,Ze,Ne,$,oe,xt,It)),St=P(([{data:e,firstItemIndex:t,gap:o,sizes:n},{initialTopMostItemIndex:r},{initialItemCount:i,listState:l},{didMount:s}])=>(I(z(s,B(i),y(([,e])=>0!==e),B(r,n,t,o,e),b(([[,e],t,o,n,r,i=[]])=>dt(e,t,o,n,r,i))),l),{}),m(De,Ze,mt,Ne),{singleton:!0}),Ct=P(([{didMount:e},{scrollTo:t},{listState:o}])=>{const n=L(0);return g(z(e,B(n),y(([,e])=>0!==e),b(([,e])=>({top:e}))),e=>{T(z(o,k(1),y(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{p(t,e)})})}),{initialScrollTop:n}},m(Ne,oe,mt),{singleton:!0}),yt=P(([{scrollVelocity:e}])=>{const t=L(!1),o=O(),n=L(!1);return I(z(e,B(n,t,o),y(([e,t])=>!1!==t&&void 0!==t),b(([e,t,o,n])=>{const{enter:r,exit:i}=t;if(o){if(i(e,n))return!1}else if(r(e,n))return!0;return o}),C()),t),g(z(A(t,e,o),B(n)),([[e,t,o],n])=>{e&&!1!==n&&void 0!==n&&n.change&&n.change(t,o)}),{isSeeking:t,scrollSeekConfiguration:n,scrollSeekRangeChanged:o,scrollVelocity:e}},m(ot),{singleton:!0}),bt=P(([{scrollContainerState:e,scrollTo:t}])=>{const o=O(),n=O(),r=O(),i=L(!1),l=L(void 0);return I(z(A(o,n),b(([{scrollTop:e,viewportHeight:t},{offsetTop:o,listHeight:n}])=>({scrollHeight:n,scrollTop:Math.max(0,e-o),viewportHeight:t}))),e),I(z(t,B(n),b(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),r),{customScrollParent:l,useWindowScroll:i,windowScrollContainerState:o,windowScrollTo:r,windowViewportRect:n}},m(oe)),Ht=P(([{sizeRanges:e,sizes:t},{headerHeight:o,scrollTop:n}
1,{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:l,windowScrollContainerState:s,windowViewportRect:c}])=>{const a=O(),d=L(void 0),f=L(null),h=L(null);return I(s,f),I(c,h),g(z(a,B(t,n,l,f,h,o)),([e,t,o,n,r,i,l])=>{const s=function(e){return fe(e).map(({k:e,v:t},o,n)=>{const r=n[o+1];return{endIndex:void 0===r?1/0:r.k-1,size:t,startIndex:e}})}(t.sizeTree);n&&null!==r&&null!==i&&(o=r.scrollTop-i.offsetTop),e({ranges:s,scrollTop:o-=l})}),I(z(d,y(u),b(zt)),r),I(z(i,B(d),y(([,e])=>void 0!==e),C(),b(([,e])=>e.ranges)),e),{getState:a,restoreStateFrom:d}},m(De,oe,Ze,Ne,bt));function zt(e){return{align:"start",index:0,offset:e.scrollTop}}const Rt=P(([{topItemsIndexes:e}])=>{const t=L(0);return I(z(t,y(e=>e>=0),b(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},m(mt));function kt(e){let t,o=!1;return()=>(o||(o=!0,t=e()),t)}const Et=kt(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),Bt=P(([{deviation:e,scrollBy:t,scrollingInProgress:o,scrollTop:n},{isAtBottom:r,isScrolling:i,lastJumpDueToItemResize:l,scrollDirection:s},{listState:c},{beforeUnshiftWith:a,gap:u,shiftWithOffset:d,sizes:f},{log:h},{recalcInProgress:m}])=>{const x=M(z(c,B(l),R(([,e,t,o],[{bottom:n,items:r,offsetBottom:i,totalCount:l},s])=>{const c=n+i;let a=0;return t===l&&e.length>0&&r.length>0&&(0===r[0].originalIndex&&0===e[0].originalIndex||(a=c-o,0!==a&&(a+=s))),[a,r,l,c]},[0,[],0,0]),y(([e])=>0!==e),B(n,s,o,r,h,m),y(([,e,t,o,,,n])=>!n&&!o&&0!==e&&t===Qe),b(([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},0),e))));function v(o){o>0?(p(t,{behavior:"auto",top:-o}),p(e,0)):(p(e,0),p(t,{behavior:"auto",top:-o}))}return g(z(x,B(e,i)),([t,o,n])=>{n&&Et()?p(e,o-t):v(-t)}),g(z(A(F(i,!1),e,m),y(([e,t,o])=>!e&&!o&&0!==t),b(([e,t])=>t),E(1)),v),I(z(d,b(e=>({top:-e}))),t),g(z(a,B(f,u),b(([e,{groupIndices:t,lastSize:o,sizeTree:n},r])=>{function i(e){return e*(o+r)}if(0===t.length)return i(e);let l=0;const s=le(n,0);let c=0,a=0;for(;c<e;){c++,l+=s;let o=t.length===a+1?1/0:t[a+1]-t[a]-1;c+o>e&&(l-=s,o=e-c+1),c+=o,l+=i(o),a++}return l})),o=>{p(e,o),requestAnimationFrame(()=>{p(t,{top:o}),requestAnimationFrame(()=>{p(e,0),p(m,!1)})})}),{deviation:e}},m(oe,ot,mt,De,$,be)),Lt=P(([e,t,o,n,r,i,l,s,c,a,u])=>({...e,...t,...o,...n,...r,...i,...l,...s,...c,...a,...u}),m(ct,St,Ne,yt,gt,Ct,pt,bt,It,$,xt)),Ft=P(([{data:e,defaultItemSize:t,firstItemIndex:o,fixedItemSize:n,fixedGroupSize:r,gap:i,groupIndices:l,heightEstimates:s,itemSize:c,sizeRanges:a,sizes:u,statefulTotalCount:d,totalCount:f,trackItemSizes:h},{initialItemFinalLocationReached:m,initialTopMostItemIndex:g,scrolledToInitialItem:p},x,v,T,w,{scrollToIndex:S},C,{topItemCount:y},{groupCounts:H},R])=>{const{listState:k,minOverscanItemCount:E,topItemsIndexes:B,rangeChanged:L,...F}=w;return I(L,R.scrollSeekRangeChanged),I(z(R.windowViewportRect,b(e=>e.visibleHeight)),x.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:o,fixedItemHeight:n,fixedGroupHeight:r,gap:i,groupCounts:H,heightEstimates:s,initialItemFinalLocationReached:m,initialTopMostItemIndex:g,scrolledToInitialItem:p,sizeRanges:a,topItemCount:y,topItemsIndexes:B,totalCount:f,...T,groupIndices:l,itemSize:c,listState:k,minOverscanItemCount:E,scrollToIndex:S,statefulTotalCount:d,trackItemSizes:h,rangeChanged:L,...F,...R,...x,sizes:u,...v}},m(De,Ze,oe,Ht,wt,mt,$e,Bt,Rt,Ge,Lt));function Ot(e,t){const o={},n={};let r=0;const i=e.length;for(;r<i;)n[e[r]]=1,r+=1;for(const e in t)Object.hasOwn(n,e)||(o[e]=t[e]);return o}const Mt=typeof document>"u"?r.useEffect:r.useLayoutEffect;function jt(e,t,o){const i=Object.keys(t.required||{}),s=Object.keys(t.optional||{}),c=Object.keys(t.methods||{}),u=Object.keys(t.events||{}),h=r.createContext({});function m(e,o){void 0!==e.propsReady&&p(e.propsReady,!1);for(const n of i)p(e[t.required[n]],o[n]);for(const n of s)n in o&&p(e[t.optional[n]],o[n]);void 0!==e.propsReady&&p(e.propsReady,!0)}function I(e){return u.reduce((o,n)=>(o[n]=function(e){let t,o;const n=()=>t?.();return function(r,i){switch(r){case 1:return i?o===i?void 0:(n(),o=i,t=g(e,i),t):(n(),d);case 2:return n(),void(o=null)}}}(e[t.events[n]]),o),{})}const T=r.forwardRef(function(d,v){const{children:T,...w}=d,[S]=r.useState(()=>f(function(e){const t=new Map,o=({constructor:e,dependencies:n,id:r,singleton:i})=>{if(i&&t.has(r))return t.get(r);const l=e(n.map(e=>o(e)));return i&&t.set(r,l),l};return o(e)}(e),e=>{m(e,w)})),[C]=r.useState(a(I,S));var y;Mt(()=>{for(const e of u)e in w&&g(C[e],w[e]);return()=>{Object.values(C).map(x)}},[w,C,S]),Mt(()=>{m(S,w)}),r.useImperativeHandle(v,l((y=S,c.reduce((e,o)=>(e[o]=e=>{p(y[t.methods[o]],e)},e),{}))));const b=o;return(0,n.jsx)(h.Provider,{value:S,children:void 0===o?T:(0,n.jsx)(b,{...Ot([...i,...s,...u],w),children:T})})});return{Component:T,useEmitter:(e,t)=>{const o=r.useContext(h)[e];Mt(()=>g(o,t),[t,o])},useEmitterValue:parseInt(r.version,10)>=18?e=>{const t=r.useContext(h)[e],o=r.useCallback(e=>g(t,e),[t]);
1return r.useSyncExternalStore(o,()=>v(t),()=>v(t))}:e=>{const t=r.useContext(h)[e],[o,n]=r.useState(a(v,t));return Mt(()=>g(t,e=>{e!==o&&n(l(e))}),[t,o]),o},usePublisher:e=>{const t=r.useContext(h);return r.useCallback(o=>{p(t[e],o)},[t,e])}}}const Pt=r.createContext(void 0),Wt=r.createContext(void 0),At="-webkit-sticky",Vt="sticky",Dt=kt(()=>{if(typeof document>"u")return Vt;const e=document.createElement("div");return e.style.position=At,e.style.position===At?At:Vt}),_t=typeof document>"u"?r.useEffect:r.useLayoutEffect;function Gt(e){return"self"in e}function Nt(e,t,o,n=d,l,s){const c=r.useRef(null),a=r.useRef(null),u=r.useRef(null),f=r.useCallback(o=>{let n,r,l;const c=o.target;if(function(e){return"body"in e}(c)||Gt(c)){const e=Gt(c)?c:c.defaultView;l=!0===s?Y(e,e.scrollX):e.scrollY,n=!0===s?e.document.documentElement.scrollWidth:e.document.documentElement.scrollHeight,r=!0===s?e.innerWidth:e.innerHeight}else l=!0===s?Y(c,c.scrollLeft):c.scrollTop,n=!0===s?c.scrollWidth:c.scrollHeight,r=!0===s?c.offsetWidth:c.offsetHeight;const d=()=>{e({scrollHeight:n,scrollTop:Math.max(l,0),viewportHeight:r})};!0===o.suppressFlushSync?d():i.flushSync(d),null!==a.current&&(l===a.current||l<=0||l===n-r)&&(a.current=null,t(!0),u.current&&(clearTimeout(u.current),u.current=null))},[e,t,s]);return r.useEffect(()=>{const e=l??c.current;return n(l??c.current),f({suppressFlushSync:!0,target:e}),e.addEventListener("scroll",f,{passive:!0}),()=>{n(null),e.removeEventListener("scroll",f)}},[c,f,o,n,l]),{scrollByCallback:function(e){!0===s&&(e={...void 0===e.behavior?{}:{behavior:e.behavior},...void 0===e.top?{}:{left:X(c.current,e.top)}}),c.current.scrollBy(e)},scrollerRef:c,scrollToCallback:function(o){const n=c.current;if(!n||(!0===s?"offsetWidth"in n&&0===n.offsetWidth:"offsetHeight"in n&&0===n.offsetHeight))return;const r="smooth"===o.behavior;let i,l,d;Gt(n)?(l=Math.max(Re(n.document.documentElement,!0===s?"width":"height"),!0===s?n.document.documentElement.scrollWidth:n.document.documentElement.scrollHeight),i=!0===s?n.innerWidth:n.innerHeight,d=!0===s?Y(n,n.scrollX):n.scrollY):(l=n[!0===s?"scrollWidth":"scrollHeight"],i=Re(n,!0===s?"width":"height"),d=!0===s?Y(n,n.scrollLeft):n.scrollTop);const f=l-i;if(void 0===o.top)return void n.scrollTo(o);const h=Math.ceil(Math.max(Math.min(f,o.top),0));if(o.top=h,Je(i,l)||h===d)return e({scrollHeight:l,scrollTop:d,viewportHeight:i}),void(r&&t(!0));r?(a.current=h,u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{u.current=null,a.current=null,t(!0)},1e3)):a.current=null,!0===s&&(o={...void 0===o.behavior?{}:{behavior:o.behavior},left:X(n,h)}),n.scrollTo(o)}}}function Kt(e){return e}const qt=P(([e,t])=>({...e,...t}),m(Ft,P(()=>{const e=L(e=>`Item ${e}`),t=L(e=>`Group ${e}`),o=L({}),n=L(Kt),r=L("div"),i=L(d),l=(e,t=null)=>F(z(o,b(t=>t[e]),C()),t);return{components:o,computeItemKey:n,EmptyPlaceholder:l("EmptyPlaceholder"),FooterComponent:l("Footer"),GroupComponent:l("Group","div"),groupContent:t,HeaderComponent:l("Header"),HeaderFooterTag:r,ItemComponent:l("Item","div"),itemContent:e,ListComponent:l("List","div"),ScrollerComponent:l("Scroller","div"),scrollerRef:i,ScrollSeekPlaceholder:l("ScrollSeekPlaceholder"),TopItemListComponent:l("TopItemList")}}))),$t=({height:e})=>(0,n.jsx)("div",{style:{height:e}}),Ut={overflowAnchor:"none",position:Dt(),zIndex:1},Yt={overflowAnchor:"none"},Xt={...Yt,display:"inline-block",height:"100%"},Zt=r.memo(function({showTopList:e=!1}){const t=po("listState"),o=xo("sizeRanges"),i=po("useWindowScroll"),l=po("customScrollParent"),s=xo("windowScrollContainerState"),c=xo("scrollContainerState"),a=l||i?s:c,u=po("itemContent"),f=po("context"),h=po("groupContent"),m=po("trackItemSizes"),g=po("itemSize"),p=po("log"),x=xo("gap"),v=po("horizontalDirection"),{callbackRef:I}=Q(o,g,m,e?d:a,p,x,l,v,po("skipAnimationFrameInResizeObserver")),[T,w]=r.useState(0);go("deviation",e=>{T!==e&&w(e)});const S=po("EmptyPlaceholder"),C=po("ScrollSeekPlaceholder")??$t,y=po("ListComponent"),b=po("ItemComponent"),H=po("GroupComponent"),z=po("computeItemKey"),R=po("isSeeking"),k=po("groupIndices").length>0,E=po("alignToBottom"),B=po("initialItemFinalLocationReached"),L=e?{}:{boxSizing:"border-box",...v?{display:"inline-block",height:"100%",marginInlineStart:0===T?E?"auto":0:T,paddingInlineEnd:t.offsetBottom,paddingInlineStart:t.offsetTop,whiteSpace:"nowrap"}:{marginTop:0===T?E?"auto":0:T,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...B?{}:{visibility:"hidden"}};return e||0!==t.totalCount||null==S?(0,n.jsx)(y,{...no(y,f),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:I,style:L,children:(e?t.topItems:t.items).map(e=>{const o=e.originalIndex,n=z(o+t.firstItemIndex,e.data,f);return R?(0,r.createElement)(C,{...no(C,f),height:e.size,index:e.index,key:n,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?(0,r.createElement)(H,{...no(H,f),"data-index":o,"data-item-index":e.index,"data-known-size":e.size,key:n,style:Ut},h(e.index,f)):(0,r.createElement)(b,{...no(b,f),...ro(b,e.data),"data-index":o,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:n,style:v?Xt:Yt},k?u(e.index,e.groupIndex,e.data,f):u(e.index,e.data,f))})}):(0,n.jsx)(S,{...no(S,f)})}),Jt={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Qt={outline:"none",overflowX:"auto",position:"relative"},eo=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:void 0}),to=(e,t,o=0)=>({...eo(e),position:t?"relative":"absolute",top:t?-o:0}),oo={position:Dt(),top:0,width:"100%",zIndex:1};function no(e,t){if("string"!=typeof e)return{context:t}}function ro(e,t){return{item:"string"==typeof e?void 0:t}}const io=r.memo(function(){const e=po("HeaderComponent"),t=xo("headerHeight"),o=po("HeaderFooterTag"),i=Z(r.useMemo(()=>e=>{t(Re(e,"height"))},[t]),!0,po("skipAnimationFrameInResizeObserver")),l=po("context");return null!=e?(0,n.jsx)(o,{ref:i,children:(0,n.jsx)(e,{...no(e,l)})}):null}),lo=r.memo(function(){const e=po("FooterComponent"),t=xo("footerHeight"),o=po("HeaderFooterTag"),i=Z(r.useMemo(()=>e=>{t(Re(e,"height"))},[t]),!0,po("skipAnimationFrameInResizeObserver")),l=po("context");return null!=e?(0,n.jsx)(o,{ref:i,children:(0,n.jsx)(e,{...no(e,l)})}):null});function so({useEmitter:e,useEmitterValue:t,usePublisher:o}){return r.memo(function({children:r,style:i,context:l,...s}){const c=o("scrollContainerState"),a=t("ScrollerComponent"),u=o("smoothScrollTargetReached"),d=t("scrollerRef"),f=t("horizontalDirection")||!1,{scrollByCallback:h,scrollerRef:m,scrollToCallback:g}=Nt(c,u,a,d,void 0,f);return e("scrollTo",g),e("scrollBy",h),(0,n.jsx)(a,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:m,style:{...f?Qt:Jt,...i},tabIndex:0,...s,...no(a,l),children:r})})}function co({useEmitter:e,useEmitterValue:t,usePublisher:o}){return r.memo(function({children:i,style:l,context:s,...c}){const a=o("windowScrollContainerState"),u=t("ScrollerComponent"),d=o("smoothScrollTargetReached"),f=t("totalListHeight"),h=t("deviation"),m=t("customScrollParent"),g=r.useRef(null),p=t("scrollerRef"),{scrollByCallback:x,scrollerRef:v,scrollToCallback:I}=Nt(a,d,u,p,m);return _t(()=>(v.current=m??g.current?.ownerDocument.defaultView,()=>{v.current=null}),[v,m]),e("windowScrollTo",I),e("scrollBy",x),(0,n.jsx)(u,{ref:g,"data-virtuoso-scroller":!0,style:{position:"relative",...l,...0===f?void 0:{height:f+h}},...c,...no(u,s),children:i})})}const ao=({children:e})=>
1{const t=r.useContext(Pt),o=xo("viewportHeight"),i=xo("fixedItemHeight"),l=po("alignToBottom"),s=po("horizontalDirection"),a=Z(r.useMemo(()=>c(o,e=>Re(e,s?"width":"height")),[o,s]),!0,po("skipAnimationFrameInResizeObserver"));return r.useEffect(()=>{t&&(o(t.viewportHeight),i(t.itemHeight))},[t,o,i]),(0,n.jsx)("div",{"data-viewport-type":"element",ref:a,style:eo(l),children:e})},uo=({children:e})=>{const t=r.useContext(Pt),o=xo("windowViewportRect"),i=xo("fixedItemHeight"),l=po("customScrollParent"),s=po("useWindowScroll"),c=po("topListHeight"),a=te(o,l,po("skipAnimationFrameInResizeObserver")),u=po("alignToBottom");return r.useEffect(()=>{t&&(i(t.itemHeight),o({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,o,i]),(0,n.jsx)("div",{"data-viewport-type":"window",ref:a,style:to(u,s,c),children:e})},fo=({children:e})=>{const t=po("TopItemListComponent")??"div",o=po("headerHeight"),r={...oo,marginTop:`${o}px`},i=po("context");return(0,n.jsx)(t,{style:r,...no(t,i),children:e})},ho=r.memo(function(e){const t=po("useWindowScroll"),o=po("topItemsIndexes").length>0,r=po("customScrollParent"),i=po("context");return(0,n.jsxs)(r||t?Io:vo,{...e,context:i,children:[o&&(0,n.jsx)(fo,{children:(0,n.jsx)(Zt,{showTopList:!0})}),(0,n.jsxs)(r||t?uo:ao,{children:[(0,n.jsx)(io,{}),(0,n.jsx)(Zt,{}),(0,n.jsx)(lo,{})]})]})}),{Component:mo,useEmitter:go,useEmitterValue:po,usePublisher:xo}=jt(qt,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},ho),vo=so({useEmitter:go,useEmitterValue:po,usePublisher:xo}),Io=co({useEmitter:go,useEmitterValue:po,usePublisher:xo}),To=mo,wo=P(([e,t])=>({...e,...t}),m(Ft,P(()=>{const e=L(e=>(0,n.jsxs)("td",{children:["Item $",e]})),t=L(null),o=L(e=>(0,n.jsxs)("td",{colSpan:1e3,children:["Group ",e]})),r=L(null),i=L(null),l=L({}),s=L(Kt),c=L(d),a=(e,t=null)=>F(z(l,b(t=>t[e]),C()),t);return{components:l,computeItemKey:s,context:t,EmptyPlaceholder:a("EmptyPlaceholder"),FillerRow:a("FillerRow"),fixedFooterContent:i,fixedHeaderContent:r,itemContent:e,groupContent:o,ScrollerComponent:a("Scroller","div"),scrollerRef:c,ScrollSeekPlaceholder:a("ScrollSeekPlaceholder"),TableBodyComponent:a("TableBody","tbody"),TableComponent:a("Table","table"),TableFooterComponent:a("TableFoot","tfoot"),TableHeadComponent:a("TableHead","thead"),TableRowComponent:a("TableRow","tr"),GroupComponent:a("Group","tr")}}))),So=({height:e})=>(0,n.jsx)("tr",{children:(0,n.jsx)("td",{style:{height:e}})}),Co=({height:e})=>(0,n.jsx)("tr",{children:(0,n.jsx)("td",{style:{border:0,height:e,padding:0}})}),yo={overflowAnchor:"none"},bo={position:Dt(),zIndex:2,overflowAnchor:"none"},Ho=r.memo(function({showTopList:e=!1}){const t=Fo("listState"),o=Fo("computeItemKey"),n=Fo("firstItemIndex"),i=Fo("context"),l=Fo("isSeeking"),s=Fo("fixedHeaderHeight"),c=Fo("groupIndices").length>0,a=Fo("itemContent"),u=Fo("groupContent"),d=Fo("ScrollSeekPlaceholder")??So,f=Fo("GroupComponent"),h=Fo("TableRowComponent"),m=(e?t.topItems:[]).reduce((e,t,o)=>(0===o?e.push(t.size):e.push(e[o-1]+t.size),e),[]);return(e?t.topItems:t.items).map(t=>{const g=t.originalIndex,p=o(g+n,t.data,i),x=e?0===g?0:m[g-1]:0;return l?(0,r.createElement)(d,{...no(d,i),height:t.size,index:t.index,key:p,type:t.type||"item"}):"group"===t.type?(0,r.createElement)(f,{...no(f,i),"data-index":g,"data-item-index":t.index,"data-known-size":t.size,key:p,style:{...bo,top:s}},u(t.index,i)):(0,r.createElement)(h,{...no(h,i),...ro(h,t.data),"data-index":g,"data-item-index":t.index,"data-known-size":t.size,"data-item-group-index":t.groupIndex,key:p,style:e?{...bo,top:s+x}:yo},c?a(t.index,t.groupIndex,t.data,i):a(t.index,t.data,i))})}),zo=r.memo(function(){const e=Fo("listState"),t=Fo("topItemsIndexes").length>0,o=Oo("sizeRanges"),i=Fo("useWindowScroll"),l=Fo("customScrollParent"),s=Oo("windowScrollContainerState"),c=Oo("scrollContainerState"),a=l||i?s:c,u=Fo("trackItemSizes"),d=Fo("itemSize"),f=Fo("log"),{callbackRef:h,ref:m}=Q(o,d,u,a,f,void 0,l,!1,Fo("skipAnimationFrameInResizeObserver")),[g,p]=r.useState(0);Lo("deviation",e=>{g!==e&&(m.current.style.marginTop=`${e}px`,p(e))});
1const x=Fo("EmptyPlaceholder"),v=Fo("FillerRow")??Co,I=Fo("TableBodyComponent"),T=Fo("paddingTopAddition"),w=Fo("statefulTotalCount"),S=Fo("context");if(0===w&&null!=x)return(0,n.jsx)(x,{...no(x,S)});const C=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),y=e.offsetTop+T+g-C,b=e.offsetBottom,H=y>0?(0,n.jsx)(v,{context:S,height:y},"padding-top"):null,z=b>0?(0,n.jsx)(v,{context:S,height:b},"padding-bottom"):null;return(0,n.jsxs)(I,{"data-testid":"virtuoso-item-list",ref:h,...no(I,S),children:[H,t&&(0,n.jsx)(Ho,{showTopList:!0}),(0,n.jsx)(Ho,{}),z]})}),Ro=({children:e})=>{const t=r.useContext(Pt),o=Oo("viewportHeight"),i=Oo("fixedItemHeight"),l=Z(r.useMemo(()=>c(o,e=>Re(e,"height")),[o]),!0,Fo("skipAnimationFrameInResizeObserver"));return r.useEffect(()=>{t&&(o(t.viewportHeight),i(t.itemHeight))},[t,o,i]),(0,n.jsx)("div",{"data-viewport-type":"element",ref:l,style:eo(!1),children:e})},ko=({children:e})=>{const t=r.useContext(Pt),o=Oo("windowViewportRect"),i=Oo("fixedItemHeight"),l=Fo("customScrollParent"),s=Fo("useWindowScroll"),c=te(o,l,Fo("skipAnimationFrameInResizeObserver"));return r.useEffect(()=>{t&&(i(t.itemHeight),o({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,o,i]),(0,n.jsx)("div",{"data-viewport-type":"window",ref:c,style:to(!1,s),children:e})},Eo=r.memo(function(e){const t=Fo("useWindowScroll"),o=Fo("customScrollParent"),i=Oo("fixedHeaderHeight"),l=Oo("fixedFooterHeight"),s=Fo("fixedHeaderContent"),a=Fo("fixedFooterContent"),u=Fo("context"),d=Z(r.useMemo(()=>c(i,e=>Re(e,"height")),[i]),!0,Fo("skipAnimationFrameInResizeObserver")),f=Z(r.useMemo(()=>c(l,e=>Re(e,"height")),[l]),!0,Fo("skipAnimationFrameInResizeObserver")),h=o||t?jo:Mo,m=o||t?ko:Ro,g=Fo("TableComponent"),p=Fo("TableHeadComponent"),x=Fo("TableFooterComponent"),v=s?(0,n.jsx)(p,{ref:d,style:{position:"sticky",top:0,zIndex:2},...no(p,u),children:s()},"TableHead"):null,I=a?(0,n.jsx)(x,{ref:f,style:{bottom:0,position:"sticky",zIndex:1},...no(x,u),children:a()},"TableFoot"):null;return(0,n.jsx)(h,{...e,...no(h,u),children:(0,n.jsx)(m,{children:(0,n.jsxs)(g,{style:{borderSpacing:0,overflowAnchor:"none"},...no(g,u),children:[v,(0,n.jsx)(zo,{},"TableBody"),I]})})})}),{Component:Bo,useEmitter:Lo,useEmitterValue:Fo,usePublisher:Oo}=jt(wo,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},Eo),Mo=so({useEmitter:Lo,useEmitterValue:Fo,usePublisher:Oo}),jo=co({useEmitter:Lo,useEmitterValue:Fo,usePublisher:Oo}),Po={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},Wo={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:Ao,floor:Vo,max:Do,min:_o,round:Go}=Math;function No(e,t,o){return Array.from({length:t-e+1}).map((t,n)=>({data:null===o?null:o[n+e],index:n+e}))}function Ko(e,t){return void 0!==e&&e.width===t.width&&e.height===t.height}function qo(e,t){return void 0!==e&&e.column===t.column&&e.row===t.row}const $o=P(([{increaseViewportBy:e,listBoundary:t,overscan:o,visibleRange:n}
1,{footerHeight:r,headerHeight:i,scrollBy:l,scrollContainerState:s,scrollTo:c,scrollTop:a,smoothScrollTargetReached:u,viewportHeight:d},f,h,{didMount:m,propsReady:x},{customScrollParent:v,useWindowScroll:w,windowScrollContainerState:S,windowScrollTo:R,windowViewportRect:j},P])=>{const W=L(0),D=L(0),_=L(Po),G=L({height:0,width:0}),N=L({height:0,width:0}),K=O(),q=O(),$=L(0),U=L(null),Y=L({column:0,row:0}),X=O(),Z=O(),J=L(!1),Q=L(0),ee=L(!0),te=L(!1),oe=L(!1);g(z(m,B(Q),y(([e,t])=>!Xe(t))),()=>{p(ee,!1)}),g(z(A(m,ee,N,G,Q,te),y(([e,t,o,n,,r])=>e&&!t&&0!==o.height&&0!==n.height&&!r)),([,,,,e])=>{void 0!==e?(p(te,!0),Ue(1,()=>{p(K,e)}),T(z(a),()=>{p(t,[0,0]),p(ee,!0)})):p(ee,!0)}),I(z(Z,y(e=>null!=e&&e.scrollTop>0),H(0)),D),g(z(m,B(Z),y(([,e])=>null!=e)),([,e])=>{e&&(p(G,e.viewport),p(N,e.item),p(Y,e.gap),e.scrollTop>0&&(p(J,!0),T(z(a,k(1)),e=>{p(J,!1)}),p(c,{top:e.scrollTop})))}),I(z(G,b(({height:e})=>e)),d),I(z(A(V(G,Ko),V(N,Ko),V(Y,(e,t)=>void 0!==e&&e.column===t.column&&e.row===t.row),V(a)),b(([e,t,o,n])=>({gap:o,item:t,scrollTop:n,viewport:e}))),X),I(z(A(V(W),n,V(Y,qo),V(N,Ko),V(G,Ko),V(U),V(D),V(J),V(ee),V(Q)),y(([,,,,,,,e])=>!e),b(([e,[t,o],n,r,i,l,s,,c,a])=>{const{column:u,row:d}=n,{height:f,width:h}=r,{width:m}=i;if(0===s&&(0===e||0===m))return Po;if(0===h){const t=Ye(a,e);return function(e){return{...Wo,items:e}}(No(t,t+Math.max(s-1,0),l))}const g=Uo(m,h,u);let p,x;c?0===t&&0===o&&s>0?(p=0,x=s-1):(p=g*Vo((t+d)/(f+d)),x=g*Ao((o+d)/(f+d))-1,x=_o(e-1,Do(x,g-1)),p=_o(x,Do(0,p))):(p=0,x=-1);const v=No(p,x,l),{bottom:I,top:T}=Yo(i,n,r,v),w=Ao(e/g);return{bottom:I,itemHeight:f,items:v,itemWidth:h,offsetBottom:w*f+(w-1)*d-I,offsetTop:T,top:T}})),_),I(z(U,y(e=>null!==e),b(e=>e.length)),W),I(z(A(G,N,_,Y),y(([e,t,{items:o}])=>o.length>0&&0!==t.height&&0!==e.height),b(([e,t,{items:o},n])=>{const{bottom:r,top:i}=Yo(e,n,t,o);return[i,r]}),C(ye)),t);const ne=L(!1);I(z(a,B(ne),b(([e,t])=>t||0!==e)),ne);const re=M(z(A(_,W),y(([{items:e}])=>e.length>0),B(ne),y(([[e,t],o])=>{const n=e.items[e.items.length-1].index===t-1;return(o||e.bottom>0&&e.itemHeight>0&&0===e.offsetBottom&&e.items.length===t)&&n}),b(([[,e]])=>e-1),C())),ie=M(z(V(_),y(({items:e})=>e.length>0&&0===e[0].index),H(0),C())),le=M(z(V(_),B(J),y(([{items:e},t])=>e.length>0&&!t),b(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),C(Ce),E(0)));I(le,h.scrollSeekRangeChanged),I(z(K,B(G,N,W,Y),b(([e,t,o,n,r])=>{const i=qe(e),{align:l,behavior:s,offset:c}=i;let a=i.index;"LAST"===a&&(a=n-1),a=Do(0,a,_o(n-1,a));let u=Xo(t,r,o,a);return"end"===l?u=Go(u-t.height+o.height):"center"===l&&(u=Go(u-t.height/2+o.height/2)),void 0!==c&&0!==c&&(u+=c),{behavior:s,top:u}})),c);const se=F(z(_,b(e=>e.offsetBottom+e.bottom)),0);return I(z(j,b(e=>({height:e.visibleHeight,width:e.visibleWidth}))),G),{customScrollParent:v,data:U,deviation:$,footerHeight:r,gap:Y,headerHeight:i,increaseViewportBy:e,initialItemCount:D,itemDimensions:N,overscan:o,restoreStateFrom:Z,scrollBy:l,scrollContainerState:s,scrollHeight:q,scrollTo:c,scrollToIndex:K,scrollTop:a,smoothScrollTargetReached:u,totalCount:W,useWindowScroll:w,viewportDimensions:G,windowScrollContainerState:S,windowScrollTo:R,windowViewportRect:j,...h,gridState:_,horizontalDirection:oe,initialTopMostItemIndex:Q,totalListHeight:se,...f,endReached:re,propsReady:x,rangeChanged:le,startReached:ie,stateChanged:X,stateRestoreInProgress:J,...P}},m(ct,oe,ot,yt,Ne,bt,$));function Uo(e,t,o){return Do(1,Vo((e+o)/(Vo(t)+o)))}function Yo(e,t,o,n){const{height:r}=o;if(void 0===r||0===n.length)return{bottom:0,top:0};const i=Xo(e,t,o,n[0].index);return{bottom:Xo(e,t,o,n[n.length-1].index)+r,top:i}}function Xo(e,t,o,n){const r=Uo(e.width,o.width,t.column),i=Vo(n/r),l=i*o.height+Do(0,i-1)*t.row;return l>0?l+t.row:l}const Zo=P(([e,t])=>({...e,...t}),m($o,P(()=>{const e=L(e=>`Item ${e}`),t=L({}),o=L(null),n=L("virtuoso-grid-item"),r=L("virtuoso-grid-list"),i=L(Kt),l=L("div"),s=L(d),c=(e,o=null)=>F(z(t,b(t=>t[e]),C()),o),a=L(!1),u=L(!1);return I(V(u),a),{components:t,computeItemKey:i,context:o,FooterComponent:c("Footer"),HeaderComponent:c("Header"),headerFooterTag:l,itemClassName:n,ItemComponent:c("Item","div"),itemContent:e,listClassName:r,ListComponent:c("List","div"),readyStateChanged:a,reportReadyState:u,ScrollerComponent:c("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:c("ScrollSeekPlaceholder","div")}}))),Jo=r.memo(function(){const e=sn("gridState"),t=sn("listClassName"),o=sn("itemClassName"),i=sn("itemContent"),l=sn("computeItemKey"),s=sn("isSeeking"),c=cn("scrollHeight"),a=sn("ItemComponent"),u=sn("ListComponent"),d=sn("ScrollSeekPlaceholder"),f=sn("context"),h=cn("itemDimensions"),m=cn("gap"),g=sn("log"),p=sn("stateRestoreInProgress"),x=cn("reportReadyState"),v=Z(r.useMemo(()=>e=>{const t=e.parentElement.parentElement.scrollHeight;c(t);const o=e.firstChild;if(null!==o){const{height:e,width:t}=o.getBoundingClientRect();h({height:e,width:t})}m({column:dn("column-gap",getComputedStyle(e).columnGap,g),row:dn("row-gap",getComputedStyle(e).rowGap,g)})},[c,h,m,g]),!0,!1);return _t(()=>{e.itemHeight>0&&e.itemWidth>0&&x(!0)},[e]),p?null:(0,n.jsx)(u,{className:t,ref:v,...no(u,f),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(t=>{const c=l(t.index,t.data,f);return s?(0,n.jsx)(d,{...no(d,f),height:e.itemHeight,index:t.index,width:e.itemWidth},c):(0,r.createElement)(a,{...no(a,f),className:o,"data-index":t.index,key:c},i(t.index,t.data,f))})})}),Qo=r.memo(function(){const e=sn("HeaderComponent"),t=cn("headerHeight"),o=sn("headerFooterTag"),i=Z(r.useMemo(()=>e=>{t(Re(e,"height"))},[t]),!0,!1),l=sn("context");return null!=e?(0,n.jsx)(o,{ref:i,children:(0,n.jsx)(e,{...no(e,l)})}):null}),en=r.memo(function(){const e=sn("FooterComponent"),t=cn("footerHeight"),o=sn("headerFooterTag"),i=Z(r.useMemo(()=>e=>{t(Re(e,"height"))},[t]),!0,!1),l=sn("context");return null!=e?(0,n.jsx)(o,{ref:i,children:(0,n.jsx)(e,{...no(e,l)})}):null}),tn=({children:e})=>{const t=r.useContext(Wt),o=cn("itemDimensions"),i=cn("viewportDimensions"),l=Z(r.useMemo(()=>e=>{i(e.getBoundingClientRect())},[i]),!0,!1);return r.useEffect(()=>
1{t&&(i({height:t.viewportHeight,width:t.viewportWidth}),o({height:t.itemHeight,width:t.itemWidth}))},[t,i,o]),(0,n.jsx)("div",{ref:l,style:eo(!1),children:e})},on=({children:e})=>{const t=r.useContext(Wt),o=cn("windowViewportRect"),i=cn("itemDimensions"),l=sn("customScrollParent"),s=sn("useWindowScroll"),c=te(o,l,!1);return r.useEffect(()=>{t&&(i({height:t.itemHeight,width:t.itemWidth}),o({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,o,i]),(0,n.jsx)("div",{ref:c,style:to(!1,s),children:e})},nn=r.memo(function({...e}){const t=sn("useWindowScroll"),o=sn("customScrollParent"),r=o||t?un:an,i=o||t?on:tn,l=sn("context");return(0,n.jsx)(r,{...e,...no(r,l),children:(0,n.jsxs)(i,{children:[(0,n.jsx)(Qo,{}),(0,n.jsx)(Jo,{}),(0,n.jsx)(en,{})]})})}),{Component:rn,useEmitter:ln,useEmitterValue:sn,usePublisher:cn}=jt(Zo,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},nn),an=so({useEmitter:ln,useEmitterValue:sn,usePublisher:cn}),un=co({useEmitter:ln,useEmitterValue:sn,usePublisher:cn});function dn(e,t,o){return"normal"!==t&&!0!==t?.endsWith("px")&&o(`${e} was not resolved to pixel value correctly`,t,2),"normal"===t?0:parseInt(t??"0",10)}}}]); 2//# sourceMappingURL=1193.myeroad.eccee81313683a002a13.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.