PageSourceSearch

https://zplys.ai/_next/static/chunks/58dd931b9a4dcf96.js

js zplys.ai collected 2026-10-05 14:48:46 UTC 58,819 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="973b4e42-7d09-0f93-a2ea-b4307c6873e9")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,941057,694670,e=>{"use strict";let t;var o=e.i(925477),n=e.i(506816),r=e.i(100580);function l(e){e()}function i(e,t){return o=>e(t(o))}function s(e){return void 0!==e}function a(){}function u(e,t){return t(e)}function d(...e){return e}function c(e){e(2)}function h(e){return e(4)}function f(e,t){return e(1,e=>t(0,e))}function m(e,t){let o=e(1,e=>{o(),t(e)});return o}function p(e){let t,o;return n=>r=>{t=r,o&&clearTimeout(o),o=setTimeout(()=>{n(t)},e)}}function g(e,t){return e===t}function x(e=g){let t;return o=>n=>{e(t,n)||(t=n,o(n))}}function v(e){return t=>o=>{e(o)&&t(o)}}function I(e){return t=>i(t,e)}function T(e){return t=>()=>{t(e)}}function S(e,...t){let o=function(...e){return t=>e.reduceRight(u,t)}(...t);return(t,n)=>{switch(t){case 2:c(e);return;case 1:return e(1,o(n))}}}function C(e,t){return o=>n=>{o(t=e(t,n))}}function w(e){return t=>o=>{e>0?e--:t(o)}}function y(e){let t=null,o;return n=>r=>{t=r,o||(o=setTimeout(()=>{o=void 0,n(t)},e))}}function H(...e){let t=Array(e.length),o=0,n=null,r=Math.pow(2,e.length)-1;return e.forEach((e,l)=>{let i=Math.pow(2,l);e(1,e=>{let s=o;o|=i,t[l]=e,s!==r&&o===r&&n&&(n(),n=null)})}),e=>l=>{let i=()=>{e([l].concat(t))};o===r?i():n=i}}function b(e){let t=e,o=z();return(e,n)=>{switch(e){case 0:t=n;break;case 1:n(t);break;case 4:return t}return o(e,n)}}function R(e,t){var o;return o=b(t),f(e,o),o}function z(){let e=[];return(t,o)=>{switch(t){case 0:e.slice().forEach(e=>{e(o)});return;case 2:e.splice(0,e.length);return;case 1:return e.push(o),()=>{let t=e.indexOf(o);t>-1&&e.splice(t,1)}}}}function E(e){var t;return t=z(),f(e,t),t}function B(e,t=[],{singleton:o}={singleton:!0}){return{constructor:e,dependencies:t,id:k(),singleton:o}}let k=()=>Symbol();function F(...e){let t=z(),o=Array(e.length),n=0,r=Math.pow(2,e.length)-1;return e.forEach((e,l)=>{let i=Math.pow(2,l);e(1,e=>{o[l]=e,(n|=i)===r&&t(0,o)})}),function(e,l){switch(e){case 2:return void c(t);case 1:return n===r&&l(o),t(1,l)}}}function L(e,t=g){return S(e,x(t))}function O(...e){return function(t,o){switch(t){case 2:return;case 1:return function(...e){return()=>{e.map(l)}}(...e.map(e=>e(1,o)))}}}var j=((t=j||{})[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR",t);let M={0:"debug",3:"error",1:"log",2:"warn"},A=B(()=>{let e=b(3);return{log:b((t,o,n=1)=>{var r;n>=(null!=(r=(typeof globalThis>"u"?window:globalThis).VIRTUOSO_LOG_LEVEL)?r:h(e))&&console[M[n]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,o)}),logLevel:e}},[],{singleton:!0});function P(e,t,o){return W(e,t,o).callbackRef}function W(e,t,o){let r=n.default.useRef(null),l=n.default.useMemo(()=>"u">typeof ResizeObserver?new ResizeObserver(t=>{let n=()=>{let o=t[0].target;null!==o.offsetParent&&e(o)};o?n():requestAnimationFrame(n)}):null,[e,o]);return{callbackRef:e=>{e&&t?(null==l||l.observe(e),r.current=e):(r.current&&(null==l||l.unobserve(r.current)),r.current=null)},ref:r}}function D(e,t,o,r,l,i,s,a,u){return W(n.default.useCallback(o=>{let n,u=function(e,t,o,n){let r=e.length;if(0===r)return null;let l=[];for(let i=0;i<r;i++){let r=e.item(i);if(void 0===r.dataset.index)continue;let s=parseInt(r.dataset.index),a=parseFloat(r.dataset.knownSize),u=t(r,o);if(0===u&&n("Zero-sized element, this should not happen",{child:r},j.ERROR),u===a)continue;let d=l[l.length-1];0===l.length||d.size!==u||d.endIndex!==s-1?l.push({endIndex:s,size:u,startIndex:s}):l[l.length-1].endIndex++}return l}(o.children,t,a?"offsetWidth":"offsetHeight",l),d=o.parentElement;for(;!d.dataset.virtuosoScroller;)d=d.parentElement;let c="window"===d.lastElementChild.dataset.viewportType;c&&(n=d.ownerDocument.defaultView);let h=s?a?s.scrollLeft:s.scrollTop:c?a?n.scrollX||n.document.documentElement.scrollLeft:n.scrollY||n.document.documentElement.scrollTop:a?d.scrollLeft:d.scrollTop;
2r({scrollHeight:s?a?s.scrollWidth:s.scrollHeight:c?a?n.document.documentElement.scrollWidth:n.document.documentElement.scrollHeight:a?d.scrollWidth:d.scrollHeight,scrollTop:Math.max(h,0),viewportHeight:s?a?s.offsetWidth:s.offsetHeight:c?a?n.innerWidth:n.innerHeight:a?d.offsetWidth:d.offsetHeight}),null==i||i(a?V("column-gap",getComputedStyle(o).columnGap,l):V("row-gap",getComputedStyle(o).rowGap,l)),null!==u&&e(u)},[e,t,l,i,s,r,a]),o,u)}function V(e,t,o){return"normal"===t||null!=t&&t.endsWith("px")||o(`${e} was not resolved to pixel value correctly`,t,j.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}function N(e,t,o){let r=n.default.useRef(null),l=n.default.useCallback(o=>{let n,l;if(!(null!=o&&o.offsetParent))return;let i=o.getBoundingClientRect(),a=i.width;if(t){let e=t.getBoundingClientRect(),o=i.top-e.top;l=e.height-Math.max(0,o),n=o+t.scrollTop}else{let e=s.current.ownerDocument.defaultView;l=e.innerHeight-Math.max(0,i.top),n=i.top+e.scrollY}r.current={offsetTop:n,visibleHeight:l,visibleWidth:a},e(r.current)},[e,t]),{callbackRef:i,ref:s}=W(l,!0,o),a=n.default.useCallback(()=>{l(s.current)},[l,s]);return n.default.useEffect(()=>{var e;if(t){t.addEventListener("scroll",a);let e=new ResizeObserver(()=>{requestAnimationFrame(a)});return e.observe(t),()=>{t.removeEventListener("scroll",a),e.unobserve(t)}}{let t=null==(e=s.current)?void 0:e.ownerDocument.defaultView;return null==t||t.addEventListener("scroll",a),null==t||t.addEventListener("resize",a),()=>{null==t||t.removeEventListener("scroll",a),null==t||t.removeEventListener("resize",a)}}},[a,t,s]),i}let G=B(()=>{let e=z(),t=z(),o=b(0),n=z(),r=b(0),l=z(),i=z(),s=b(0),a=b(0),u=b(0),d=b(0),c=z(),h=z(),m=b(!1),p=b(!1),g=b(!1);return f(S(e,I(({scrollTop:e})=>e)),t),f(S(e,I(({scrollHeight:e})=>e)),i),f(t,r),{deviation:o,fixedFooterHeight:u,fixedHeaderHeight:a,footerHeight:d,headerHeight:s,horizontalDirection:p,scrollBy:h,scrollContainerState:e,scrollHeight:i,scrollingInProgress:m,scrollTo:c,scrollTop:t,skipAnimationFrameInResizeObserver:g,smoothScrollTargetReached:n,statefulScrollTop:r,viewportHeight:l}},[],{singleton:!0}),U={lvl:0};function _(e,t){let o=e.length;if(0===o)return[];let{index:n,value:r}=t(e[0]),l=[];for(let i=1;i<o;i++){let{index:o,value:s}=t(e[i]);l.push({end:o-1,start:n,value:r}),n=o,r=s}return l.push({end:1/0,start:n,value:r}),l}function K(e){return e===U}function q(e,t){if(!K(e))return t===e.k?e.v:t<e.k?q(e.l,t):q(e.r,t)}function $(e,t,o="k"){if(K(e))return[-1/0,void 0];if(Number(e[o])===t)return[e.k,e.v];if(Number(e[o])<t){let n=$(e.r,t,o);return n[0]===-1/0?[e.k,e.v]:n}return $(e.l,t,o)}function Y(e,t,o){return K(e)?et(t,o,1):t===e.k?Q(e,{k:t,v:o}):t<e.k?en(eo(Q(e,{l:Y(e.l,t,o)}))):en(eo(Q(e,{r:Y(e.r,t,o)})))}function X(e,t,o){if(K(e))return[];let n=$(e,t)[0];return _(function e(t,o,n){if(K(t))return[];let{k:r,l:l,r:i,v:s}=t,a=[];return r>o&&(a=a.concat(e(l,o,n))),r>=o&&r<=n&&a.push({k:r,v:s}),r<=n&&(a=a.concat(e(i,o,n))),a}(e,n,o),({k:e,v:t})=>({index:e,value:t}))}function Z(e){return K(e)?[]:[...Z(e.l),{k:e.k,v:e.v},...Z(e.r)]}function J(e){let{l:t,lvl:o,r:n}=e;if(n.lvl>=o-1&&t.lvl>=o-1)return e;if(o>n.lvl+1){if(ee(t))return eo(Q(e,{lvl:o-1}));if(!K(t)&&!K(t.r))return Q(t.r,{l:Q(t,{r:t.r.l}),lvl:o,r:Q(e,{l:t.r.r,lvl:o-1})});throw Error("Unexpected empty nodes")}if(ee(e))return en(Q(e,{lvl:o-1}));if(K(n)||K(n.l))throw Error("Unexpected empty nodes");{let t=n.l,r=ee(t)?n.lvl-1:n.lvl;return Q(t,{l:Q(e,{lvl:o-1,r:t.l}),lvl:t.lvl+1,r:en(Q(n,{l:t.r,lvl:r}))})}}function Q(e,t){return et(void 0!==t.k?t.k:e.k,void 0!==t.v?t.v:e.v,void 0!==t.lvl?t.lvl:e.lvl,void 0!==t.l?t.l:e.l,void 0!==t.r?t.r:e.r)}function ee(e){return K(e)||e.lvl>e.r.lvl}function et(e,t,o,n=U,r=U){return{k:e,l:n,lvl:o,r,v:t}}function eo(e){let{l:t}=e;return K(t)||t.lvl!==e.lvl?e:Q(t,{r:Q(e,{l:t.r})})}function en(e){let{lvl:t,r:o}=e;return K(o)||K(o.r)||o.lvl!==t||o.r.lvl!==t?e:Q(o,{l:Q(e,{r:o.l}),lvl:t+1})}function er(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function el(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}let ei=B(()=>({recalcInProgress:b(!1)}),[],{singleton:!0});function es(e,t,o,n=0){let r=e.length-1;for(;n<=r;){let l=Math.floor((n+r)/2),i=o(e[l],t);if(0===i)return l;if(-1===i){if(r-n<2)return l-1;r=l-1}else{if(r===n)return l;n=l+1}}
2throw Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function ea(e,t){return Math.round(e.getBoundingClientRect()[t])}function eu(e){return!K(e.groupOffsetTree)}function ed({index:e},t){return t===e?0:t<e?-1:1}function ec({offset:e},t){return t===e?0:t<e?-1:1}function eh(e,t,o){if(0===t.length)return 0;let{index:n,offset:r,size:l}=t[es(t,e,ed)],i=e-n,s=l*i+(i-1)*o+r;return s>0?s+o:s}function ef(e,t){if(!eu(t))return e;let o=0;for(;t.groupIndices[o]<=e+o;)o++;return e+o}function em(e,t,o){if("u">typeof e.groupIndex)return t.groupIndices[e.groupIndex]+1;{let n=ef("LAST"===e.index?o:e.index,t);return Math.max(0,n,Math.min(o,n))}}function ep(e,[t,o,n,r]){t.length>0&&n("received item sizes",t,j.DEBUG);let l=e.sizeTree,i=l,s=0;if(o.length>0&&K(l)&&2===t.length){let e=t[0].size,n=t[1].size;i=o.reduce((t,o)=>Y(Y(t,o,e),o+1,n),i)}else[i,s]=function(e,t){let o=K(e)?0:1/0;for(let n of t){let{endIndex:t,size:r,startIndex:l}=n;if(o=Math.min(o,l),K(e)){e=Y(e,0,r);continue}let i=X(e,l-1,t+1);if(i.some(function(e){let{endIndex:t,size:o,startIndex:n}=e;return e=>e.start===n&&(e.end===t||e.end===1/0)&&e.value===o}(n)))continue;let s=!1,a=!1;for(let{end:o,start:n,value:l}of i)s?(t>=n||r===l)&&(e=function e(t,o){if(K(t))return U;let{k:n,l:r,r:l}=t;if(o!==n)return o<n?J(Q(t,{l:e(r,o)})):J(Q(t,{r:e(l,o)}));if(K(r))return l;if(K(l))return r;{let[e,o]=function e(t){return K(t.r)?[t.k,t.v]:e(t.r)}(r);return J(Q(t,{k:e,l:function e(t){return K(t.r)?t.l:J(Q(t,{r:e(t.r)}))}(r),v:o}))}}(e,n)):(a=l!==r,s=!0),o>t&&t>=n&&l!==r&&(e=Y(e,t+1,l));a&&(e=Y(e,l,r))}return[e,o]}(i,t);if(i===l)return e;let{lastIndex:a,lastOffset:u,lastSize:d,offsetTree:c}=ex(e.offsetTree,s,i,r);return{groupIndices:o,groupOffsetTree:o.reduce((e,t)=>Y(e,t,eh(t,c,r)),U),lastIndex:a,lastOffset:u,lastSize:d,offsetTree:c,sizeTree:i}}function eg(e,t){let o=0,n=0;for(;o<e;)o+=t[n+1]-t[n]-1,n++;return n-(o!==e)}function ex(e,t,o,n){let r=e,l=0,i=0,s=0,a=0;if(0!==t){a=es(r,t-1,ed),s=r[a].offset;let e=$(o,t-1);l=e[0],i=e[1],r.length&&r[a].size===$(o,t)[1]&&(a-=1),r=r.slice(0,a+1)}else r=[];for(let{start:e,value:a}of X(o,t,1/0)){let t=e-l,o=t*i+s+t*n;r.push({index:e,offset:o,size:a}),l=e,s=o,i=a}return{lastIndex:l,lastOffset:s,lastSize:i,offsetTree:r}}function ev(e){return{index:e.index,value:e}}let eI={offsetHeight:"height",offsetWidth:"width"},eT=B(([{log:e},{recalcInProgress:t}])=>{let o=z(),n=z(),r=R(n,0),l=z(),i=z(),s=b(0),a=b([]),u=b(void 0),d=b(void 0),c=b((e,t)=>ea(e,eI[t])),m=b(void 0),p=b(0),g={groupIndices:[],groupOffsetTree:U,lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:U},T=R(S(o,H(a,e,p),C(ep,g),x()),g),w=R(S(a,x(),C((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),I(({prev:e})=>e)),[]);f(S(a,v(e=>e.length>0),H(T,p),I(([e,t,o])=>{let n=e.reduce((e,n,r)=>Y(e,n,eh(n,t.offsetTree,o)||r),U);return{...t,groupIndices:e,groupOffsetTree:n}})),T),f(S(n,H(T),v(([e,{lastIndex:t}])=>e<t),I(([e,{lastIndex:t,lastSize:o}])=>[{endIndex:t,size:o,startIndex:e}])),o),f(u,d);let y=R(S(u,I(e=>void 0===e)),!0);f(S(d,v(e=>void 0!==e&&K(h(T).sizeTree)),I(e=>[{endIndex:0,size:e,startIndex:0}])),o);let B=E(S(o,H(T),C(({sizes:e},[t,o])=>({changed:o!==e,sizes:o}),{changed:!1,sizes:g}),I(e=>e.changed)));S(s,C((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),I(e=>e.diff))(1,e=>{let{groupIndices:o}=h(T);if(e>0)t(0,!0),l(0,e+eg(e,o));else if(e<0){let t=h(w);t.length>0&&(e-=eg(-e,t)),i(0,e)}}),S(s,H(e))(1,([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},j.ERROR)});let k=E(l);f(S(l,H(T),I(([e,t])=>{let o=t.groupIndices.length>0,n=[],r=t.lastSize;if(o){let o=q(t.sizeTree,0),l=0,i=0;for(;l<e;){let e=t.groupIndices[i],s=t.groupIndices.length===i+1?1/0:t.groupIndices[i+1]-e-1;n.push({endIndex:e,size:o,startIndex:e}),n.push({endIndex:e+1+s-1,size:r,startIndex:e+1}),i++,l+=s+1}let s=Z(t.sizeTree);return l!==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 Z(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);let F=E(S(i,H(T,p),I(([e,{offsetTree:t},o])=>eh(-e,t,o))));return f(S(i,H(T,p),I(([e,t,o])=>{if(t.groupIndices.length>0){if(K(t.sizeTree))return t;let n=U,r=h(w),l=0,i=0,s=0;for(;l<-e;){s=r[i];let e=r[i+1]-s-1;i++,l+=e+1}return n=Z(t.sizeTree).reduce((t,{k:o,v:n})=>Y(t,Math.max(0,o+e),n),n),l!==-e&&(n=Y(n,0,q(t.sizeTree,s)),n=Y(n,1,$(t.sizeTree,-e+1)[1])),{...t,sizeTree:n,...ex(t.offsetTree,0,n,o)}}{let n=Z(t.sizeTree).reduce((t,{k:o,v:n})=>Y(t,Math.max(0,o+e),n),U);return{...t,sizeTree:n,...ex(t.offsetTree,0,n,o)}}})),T),{beforeUnshiftWith:k,data:m,defaultItemSize:d,firstItemIndex:s,fixedItemSize:u,gap:p,groupIndices:a,itemSize:c,listRefresh:B,shiftWith:i,shiftWithOffset:F,sizeRanges:o,sizes:T,statefulTotalCount:r,totalCount:n,trackItemSizes:y,unshiftWith:l}},d(A,ei),{singleton:!0});function eS(e){return e.reduce((e,t)=>
2(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}let eC=B(([{groupIndices:e,sizes:t,totalCount:o},{headerHeight:n,scrollTop:r}])=>{let l=z(),i=z(),s=E(S(l,I(eS)));return f(S(s,I(e=>e.totalCount)),o),f(S(s,I(e=>e.groupIndices)),e),f(S(F(r,t,n),v(([e,t])=>eu(t)),I(([e,t,o])=>$(t.groupOffsetTree,Math.max(e-o,0),"v")[0]),x(),I(e=>[e])),i),{groupCounts:l,topItemsIndexes:i}},d(eT,G)),ew=B(([{log:e}])=>{let t=b(!1),o=E(S(t,v(e=>e),x()));return t(1,t=>{t&&h(e)("props updated",{},j.DEBUG)}),{didMount:o,propsReady:t}},d(A),{singleton:!0}),ey="u">typeof document&&"scrollBehavior"in document.documentElement.style;function eH(e){let t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&ey||(t.behavior="auto"),t.offset||(t.offset=0),t}let eb=B(([{gap:e,listRefresh:t,sizes:o,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:l,footerHeight:i,headerHeight:s,scrollingInProgress:a,scrollTo:u,smoothScrollTargetReached:d,viewportHeight:c},{log:h}])=>{let p=z(),g=z(),x=b(0),v=null,T=null,C=null;function w(){v&&(v(),v=null),C&&(C(),C=null),T&&(clearTimeout(T),T=null),a(0,!1)}return f(S(p,H(o,c,n,x,s,i,h),H(e,l,r),I(([[e,o,n,r,l,i,s,u],c,h,f])=>{let x=eH(e),{align:I,behavior:y,offset:H}=x,b=r-1,R=em(x,o,b),z=eh(R,o.offsetTree,c)+i;"end"===I?(z+=h+$(o.sizeTree,R)[1]-n+f,R===b&&(z+=s)):"center"===I?z+=(h+$(o.sizeTree,R)[1]-n+f)/2:z-=l,H&&(z+=H);let E=t=>{w(),t?(u("retrying to scroll to",{location:e},j.DEBUG),p(0,e)):(g(0,!0),u("list did not change, scroll successful",{},j.DEBUG))};if(w(),"smooth"===y){let e=!1;C=t(1,t=>{e=e||t}),v=m(d,()=>{E(e)})}else v=m(S(t,e=>{let t=setTimeout(()=>{e(!1)},150);return o=>{o&&(e(!0),clearTimeout(t))}}),E);return T=setTimeout(()=>{w()},1200),a(0,!0),u("scrolling from index to",{behavior:y,index:R,top:z},j.DEBUG),{behavior:y,top:z}})),u),{scrollTargetReached:g,scrollToIndex:p,topListHeight:x}},d(eT,G,A),{singleton:!0});function eR(e,t){0==e?t():requestAnimationFrame(()=>{eR(e-1,t)})}function ez(e,t){return"number"==typeof e?e:"LAST"===e.index?t-1:e.index}let eE=B(([{defaultItemSize:e,listRefresh:t,sizes:o},{scrollTop:n},{scrollTargetReached:r,scrollToIndex:l},{didMount:i}])=>{let a=b(!0),u=b(0),d=b(!0);return f(S(i,H(u),v(([e,t])=>!!t),T(!1)),a),f(S(i,H(u),v(([e,t])=>!!t),T(!1)),d),S(F(t,i),H(a,o,e,d),v(([[,e],t,{sizeTree:o},n,r])=>e&&(!K(o)||s(n))&&!t&&!r),H(u))(1,([,e])=>{m(r,()=>{d(0,!0)}),eR(4,()=>{m(n,()=>{a(0,!0)}),l(0,e)})}),{initialItemFinalLocationReached:d,initialTopMostItemIndex:u,scrolledToInitialItem:a}},d(eT,G,eb,ew),{singleton:!0});function eB(e,t){return 1.01>Math.abs(e-t)}let ek="down",eF={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},eL=B(([{footerHeight:e,headerHeight:t,scrollBy:o,scrollContainerState:n,scrollTop:r,viewportHeight:l}])=>{let i=b(!1),s=b(!0),a=z(),u=z(),d=b(4),c=b(0),m=R(S(O(S(L(r),w(1),T(!0)),S(L(r),w(1),T(!1),p(100))),x()),!1),g=R(S(O(S(o,T(!0)),S(o,T(!1),p(200))),x()),!1);f(S(F(L(r),L(c)),I(([e,t])=>e<=t),x()),s),f(S(s,y(50)),u);let B=E(S(F(n,L(l),L(t),L(e),L(d)),C((e,[{scrollHeight:t,scrollTop:o},n,r,l,i])=>{let s={scrollHeight:t,scrollTop:o,viewportHeight:n};if(o+n-t>-i){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}}return{atBottom:!1,notAtBottomBecause: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",state:s}},eF),x((e,t)=>e&&e.atBottom===t.atBottom))),k=R(S(n,C((e,{scrollHeight:t,scrollTop:o,viewportHeight:n})=>{if(eB(e.scrollHeight,t))return{changed:!1,jump:0,scrollHeight:t,scrollTop:o};{let 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}}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),v(e=>e.changed),I(e=>e.jump)),0);f(S(B,I(e=>e.atBottom)),i),f(S(i,y(50)),a);let j=b(ek);f(S(n,I(({scrollTop:e})=>e),x(),C((e,t)=>h(g)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?"up":ek,prevScrollTop:t},{direction:ek,prevScrollTop:0}),I(e=>e.direction)),j),f(S(n,y(50),T("none")),j);let M=b(0);return f(S(m,v(e=>!e),T(0)),M),f(S(r,y(100),H(m),v(([e,t])=>!!t),C(([e,t],[o])=>[t,o],[0,0]),I(([e,t])=>t-e)),M),{atBottomState:B,atBottomStateChange:a,atBottomThreshold:d,atTopStateChange:u,atTopThreshold:c,isAtBottom:i,isAtTop:s,isScrolling:m,lastJumpDueToItemResize:k,scrollDirection:j,scrollVelocity:M}},d(G)),eO="bottom",ej="none";function eM(e,t,o){return"number"==typeof e?"up"===o&&"top"===t||o===ek&&t===eO?e:0:"up"===o?"top"===t?e.main:e.reverse:t===eO?e.main:e.reverse}function eA(e,t){var o;return"number"==typeof e?e:null!=(o=e[t])?o:0}let eP=B(([{deviation:e,fixedHeaderHeight:t,headerHeight:o,scrollTop:n,viewportHe
2ight:r}])=>{let l=z(),i=b(0),s=b(0),a=b(0),u=R(S(F(L(n),L(r),L(o),L(l,el),L(a),L(i),L(t),L(e),L(s)),I(([e,t,o,[n,r],l,i,s,a,u])=>{let d=e-a,c=Math.max(o-d,0),h=ej,f=eA(u,"top"),m=eA(u,eO);return n-=a,n+=o+s,r+=o+s,n>e+(i+s)-f&&(h="up"),(r-=a)<e-c+t+m&&(h=ek),h!==ej?[Math.max(d-o-eM(l,"top",h)-f,0),d-c-s+t+eM(l,eO,h)+m]:null}),v(e=>null!=e),x(el)),[0,0]);return{increaseViewportBy:s,listBoundary:l,overscan:a,topListHeight:i,visibleRange:u}},d(G),{singleton:!0}),eW={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function eD(e,t,o,n,r,l){let{lastIndex:i,lastOffset:s,lastSize:a}=r,u=0,d=0;if(e.length>0){u=e[0].offset;let t=e[e.length-1];d=t.offset+t.size}let c=o-i,h=u,f=s+c*a+(c-1)*n-d;return{bottom:d,firstItemIndex:l,items:eN(e,r,l),offsetBottom:f,offsetTop:u,top:h,topItems:eN(t,r,l),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:o}}function eV(e,t,o,n,r,l){let i=0;if(o.groupIndices.length>0)for(let t of o.groupIndices){if(t-i>=e)break;i++}let s=e+i,a=ez(t,s);return eD(Array.from({length:s}).map((e,t)=>({data:l[t+a],index:t+a,offset:0,size:0})),[],s,r,o,n)}function eN(e,t,o){if(0===e.length)return[];if(!eu(t))return e.map(e=>({...e,index:e.index+o,originalIndex:e.index}));let n=e[0].index,r=e[e.length-1].index,l=[],i=X(t.groupOffsetTree,n,r),s,a=0;for(let n of e){let e;(!s||s.end<n.index)&&(s=i.shift(),a=t.groupIndices.indexOf(s.start)),e=n.index===s.start?{index:a,type:"group"}:{groupIndex:a,index:n.index-(a+1)+o},l.push({...e,data:n.data,offset:n.offset,originalIndex:n.index,size:n.size})}return l}let eG=B(([{data:e,firstItemIndex:t,gap:o,sizes:n,totalCount:r},l,{listBoundary:i,topListHeight:a,visibleRange:u},{initialTopMostItemIndex:d,scrolledToInitialItem:c},{topListHeight:m},p,{didMount:g},{recalcInProgress:T}])=>{let C=b([]),w=b(0),B=z();f(l.topItemsIndexes,C);let k=R(S(F(g,T,L(u,el),L(r),L(n),L(d),c,L(C),L(t),L(o),e),v(([e,t,,o,,,,,,,n])=>{let r=n&&n.length!==o;return e&&!t&&!r}),I(([,,[e,t],o,n,r,l,i,s,a,u])=>{var d;let{offsetTree:c,sizeTree:f}=n,m=h(w);if(0===o)return{...eW,totalCount:o};if(0===e&&0===t)return 0===m?{...eW,totalCount:o}:eV(m,r,n,s,a,u||[]);if(K(f))return m>0?null:eD(function(e,t,o){if(eu(t)){let n=ef(e,t);return[{index:$(t.groupOffsetTree,n)[0],offset:0,size:0},{data:null==o?void 0:o[0],index:n,offset:0,size:0}]}return[{data:null==o?void 0:o[0],index:e,offset:0,size:0}]}(ez(r,o),n,u),[],o,a,n,s);let p=[];if(i.length>0){let e=i[0],t=i[i.length-1],o=0;for(let n of X(f,e,t)){let r=n.value,l=Math.max(n.start,e),i=Math.min(n.end,t);for(let e=l;e<=i;e++)p.push({data:null==u?void 0:u[e],index:e,offset:o,size:r}),o+=r}}if(!l)return eD([],p,o,a,n,s);let g=i.length>0?i[i.length-1]+1:0,x=function(e,t,o,n=0){let r,l;return n>
20&&(t=Math.max(t,e[es(e,n,ed)].offset)),_((r=es(e,t,ec),l=es(e,o,ec,r),e.slice(r,l+1)),ev)}(c,e,t,g);if(0===x.length)return null;let v=o-1;return eD(((o=>{for(let n of x){let r=n.value,l=r.offset,i=n.start,s=r.size;if(r.offset<e){let t=(i+=Math.floor((e-r.offset+a)/(s+a)))-n.start;l+=t*s+t*a}i<g&&(l+=(g-i)*s,i=g);let d=Math.min(n.end,v);for(let e=i;e<=d&&!(l>=t);e++)o.push({data:null==u?void 0:u[e],index:e,offset:l,size:s}),l+=s+a}})(d=[]),d),p,o,a,n,s)}),v(e=>null!==e),x()),eW);f(S(e,v(s),I(e=>null==e?void 0:e.length)),r),f(S(k,I(e=>e.topListHeight)),m),f(m,a),f(S(k,I(e=>[e.top,e.bottom])),i),f(S(k,I(e=>e.items)),B);let O=E(S(k,v(({items:e})=>e.length>0),H(r,e),v(([{items:e},t])=>e[e.length-1].originalIndex===t-1),I(([,e,t])=>[e-1,t]),x(el),I(([e])=>e))),j=E(S(k,y(200),v(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),I(({items:e})=>e[0].index),x())),M=E(S(k,v(({items:e})=>e.length>0),I(({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}}),x(er)));return{endReached:O,initialItemCount:w,itemsRendered:B,listState:k,rangeChanged:M,startReached:j,topItemsIndexes:C,...p}},d(eT,eC,eP,eE,eb,eL,ew,ei),{singleton:!0}),eU=B(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:o,headerHeight:n},{listState:r}])=>{let l=z(),i=R(S(F(o,e,n,t,r),I(([e,t,o,n,r])=>e+t+o+n+r.offsetBottom+r.bottom)),0);return f(L(i),l),{totalListHeight:i,totalListHeightChanged:l}},d(G,eG),{singleton:!0}),e_=B(([{viewportHeight:e},{totalListHeight:t}])=>{let o=b(!1),n=R(S(F(o,e,t),v(([e])=>e),I(([,e,t])=>Math.max(0,e-t)),y(0),x()),0);return{alignToBottom:o,paddingTopAddition:n}},d(G,eU),{singleton:!0}),eK=B(()=>({context:b(null)})),eq=({itemBottom:e,itemTop:t,locationParams:{align:o,behavior:n,...r},viewportBottom:l,viewportTop:i})=>t<i?{...r,align:null!=o?o:"start",behavior:n}:e>l?{...r,align:null!=o?o:"end",behavior:n}:null,e$=B(([{gap:e,sizes:t,totalCount:o},{fixedFooterHeight:n,fixedHeaderHeight:r,headerHeight:l,scrollingInProgress:i,scrollTop:s,viewportHeight:a},{scrollToIndex:u}])=>{let d=z();return f(S(d,H(t,a,o,l,r,n,s),H(e),I(([[e,t,o,n,r,l,s,a],u])=>{let{align:d,behavior:c,calculateViewLocation:f=eq,done:p,...g}=e,x=em(e,t,n-1),I=eh(x,t.offsetTree,u)+r+l,T=f({itemBottom:I+$(t.sizeTree,x)[1],itemTop:I,locationParams:{align:d,behavior:c,...g},viewportBottom:a+o-s,viewportTop:a+l});return T?p&&m(S(i,v(e=>!e),w(h(i)?1:2)),p):p&&p(),T}),v(e=>null!==e)),u),{scrollIntoView:d}},d(eT,G,eb,eG,A),{singleton:!0});function eY(e){return!!e&&("smooth"===e?"smooth":"auto")}let eX=B(([{listRefresh:e,totalCount:t,fixedItemSize:o,data:n},{atBottomState:r,isAtBottom:l},{scrollToIndex:i},{scrolledToInitialItem:s},{didMount:a,propsReady:u},{log:d},{scrollingInProgress:c},{context:p},{scrollIntoView:g}])=>{let x=b(!1),T=z(),R=null;function E(e){i(0,{align:"end",behavior:e,index:"LAST"})}function B(e){setTimeout(m(r,t=>{!e||t.atBottom||"SIZE_INCREASED"!==t.notAtBottomBecause||R||(h(d)("scrolling to bottom due to increased size",{},j.DEBUG),E("auto"))}),100)}S(F(S(L(t),w(1)),a),H(L(x),l,s,c),I(([[e,t],o,n,r,l])=>{let i,s=t&&r,a="auto";return s&&(i=n||l,a="function"==typeof o?eY(o(i)):i&&eY(o),s=s&&!!a),{followOutputBehavior:a,shouldFollow:s,totalCount:e}}),v(({shouldFollow:e})=>e))(1,({followOutputBehavior:t,totalCount:n})=>{R&&(R(),R=null),h(o)?requestAnimationFrame(()=>{h(d)("following output to ",{totalCount:n},j.DEBUG),E(t)}):R=m(e,()=>{h(d)("following output to ",{totalCount:n},j.DEBUG),E(t),R=null})}),S(F(L(x),t,u),v(([e,,t])=>e&&t),C(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),v(({refreshed:e})=>e),H(x,t))(1,([,e])=>{h(s)&&B(!1!==e)}),T(1,()=>{B(!1!==h(x))}),F(L(x),r)(1,([e,t])=>{e&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&E("auto")});let k=b(null),M=z();return f(O(S(L(n),I(e=>{var t;return null!=(t=null==e?void 0:e.length)?t:0})),S(L(t))),M),S(F(S(M,w(1)),a),H(L(k),s,c,p),I(([[e,t],o,n,r,l])=>t&&n&&(null==o?void 0:o({context:l,totalCount:e,scrollingInProgress:r}))),v(e=>!!e),y(0))(1,t=>{R&&(R(),R=null),h(o)?requestAnimationFrame(()=>{h(d)("scrolling into view",{}),g(0,t)}):R=m(e,()=>{h(d)("scrolling into view",{}),g(0,t),R=null})}),{autoscrollToBottom:T,followOutput:x,scrollIntoViewOnChange:k}},d(eT,eL,eb,eE,ew,A,G,eK,e$)),eZ=B(([{data:e,firstItemIndex:t,gap:o,sizes:n}
2,{initialTopMostItemIndex:r},{initialItemCount:l,listState:i},{didMount:s}])=>(f(S(s,H(l),v(([,e])=>0!==e),H(r,n,t,o,e),I(([[,e],t,o,n,r,l=[]])=>eV(e,t,o,n,r,l))),i),{}),d(eT,eE,eG,ew),{singleton:!0}),eJ=B(([{didMount:e},{scrollTo:t},{listState:o}])=>{let n=b(0);return S(e,H(n),v(([,e])=>0!==e),I(([,e])=>({top:e})))(1,e=>{m(S(o,w(1),v(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{t(0,e)})})}),{initialScrollTop:n}},d(ew,G,eG),{singleton:!0}),eQ=B(([{scrollVelocity:e}])=>{let t=b(!1),o=z(),n=b(!1);return f(S(e,H(n,t,o),v(([e,t])=>!!t),I(([e,t,o,n])=>{let{enter:r,exit:l}=t;if(o){if(l(e,n))return!1}else if(r(e,n))return!0;return o}),x()),t),S(F(t,e,o),H(n))(1,([[e,t,o],n])=>{e&&n&&n.change&&n.change(t,o)}),{isSeeking:t,scrollSeekConfiguration:n,scrollSeekRangeChanged:o,scrollVelocity:e}},d(eL),{singleton:!0}),e0=B(([{scrollContainerState:e,scrollTo:t}])=>{let o=z(),n=z(),r=z(),l=b(!1),i=b(void 0);return f(S(F(o,n),I(([{scrollHeight:e,scrollTop:t,viewportHeight:o},{offsetTop:n}])=>({scrollHeight:e,scrollTop:Math.max(0,t-n),viewportHeight:o}))),e),f(S(t,H(n),I(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),r),{customScrollParent:i,useWindowScroll:l,windowScrollContainerState:o,windowScrollTo:r,windowViewportRect:n}},d(G)),e1=B(([{sizeRanges:e,sizes:t},{headerHeight:o,scrollTop:n},{initialTopMostItemIndex:r},{didMount:l},{useWindowScroll:i,windowScrollContainerState:a,windowViewportRect:u}])=>{let d=z(),c=b(void 0),h=b(null),m=b(null);return f(a,h),f(u,m),S(d,H(t,n,i,h,m,o))(1,([e,t,o,n,r,l,i])=>{let s=Z(t.sizeTree).map(({k:e,v:t},o,n)=>{let r=n[o+1];return{endIndex:r?r.k-1:1/0,size:t,startIndex:e}});n&&null!==r&&null!==l&&(o=r.scrollTop-l.offsetTop),e({ranges:s,scrollTop:o-=i})}),f(S(c,v(s),I(e2)),r),f(S(l,H(c),v(([,e])=>void 0!==e),x(),I(([,e])=>e.ranges)),e),{getState:d,restoreStateFrom:c}},d(eT,G,eE,ew,e0));function e2(e){return{align:"start",index:0,offset:e.scrollTop}}let e4=B(([{topItemsIndexes:e}])=>{let t=b(0);return f(S(t,v(e=>e>=0),I(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},d(eG));function e5(e){let t=!1,o;return()=>(t||(t=!0,o=e()),o)}let e3=e5(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),e6=B(([{deviation:e,scrollBy:t,scrollingInProgress:o,scrollTop:n},{isAtBottom:r,isScrolling:l,lastJumpDueToItemResize:i,scrollDirection:s},{listState:a},{beforeUnshiftWith:u,gap:d,shiftWithOffset:c,sizes:h},{log:m},{recalcInProgress:p}])=>{let g=E(S(a,H(i),C(([,e,t,o],[{bottom:n,items:r,offsetBottom:l,totalCount:i},s])=>{let a=n+l,u=0;return t===i&&e.length>0&&r.length>0&&(0===r[0].originalIndex&&0===e[0].originalIndex||0!=(u=a-o)&&(u+=s)),[u,r,i,a]},[0,[],0,0]),v(([e])=>0!==e),H(n,s,o,r,m,p),v(([,e,t,o,,,n])=>!n&&!o&&0!==e&&"up"===t),I(([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},j.DEBUG),e))));function x(o){o>0?(t(0,{behavior:"auto",top:-o}),e(0,0)):(e(0,0),t(0,{behavior:"auto",top:-o}))}return S(g,H(e,l))(1,([t,o,n])=>{n&&e3()?e(0,o-t):x(-t)}),S(F(R(l,!1),e,p),v(([e,t,o])=>!e&&!o&&0!==t),I(([e,t])=>t),y(1))(1,x),f(S(c,I(e=>({top:-e}))),t),S(u,H(h,d),I(([e,{groupIndices:t,lastSize:o,sizeTree:n},r])=>{if(0===t.length)return e*(o+r);{let l=0,i=q(n,0),s=0,a=0;for(;s<e;){s++,l+=i;let n=t.length===a+1?1/0:t[a+1]-t[a]-1;s+n>e&&(l-=i,n=e-s+1),s+=n,l+=n*(o+r),a++}return l}}))(1,o=>{e(0,o),requestAnimationFrame(()=>{t(0,{top:o}),requestAnimationFrame(()=>{e(0,0),p(0,!1)})})}),{deviation:e}},d(G,eL,eG,eT,A,ei)),e7=B(([e,t,o,n,r,l,i,s,a,u,d])=>({...e,...t,...o,...n,...r,...l,...i,...s,...a,...u,...d}),d(eP,eZ,ew,eQ,eU,eJ,e_,e0,e$,A,eK)),e9=B(([{data:e,defaultItemSize:t,firstItemIndex:o,fixedItemSize:n,gap:r,groupIndices:l,itemSize:i,sizeRanges:s,sizes:a,statefulTotalCount:u,totalCount:d,trackItemSizes:c},{initialItemFinalLocationReached:h,initialTopMostItemIndex:m,scrolledToInitialItem:p},g,x,v,{listState:T,topItemsIndexes:C,...w},{scrollToIndex:y},H,{topItemCount:b},{groupCounts:R},z])=>(f(w.rangeChanged,z.scrollSeekRangeChanged),f(S(z.windowViewportRect,I(e=>e.visibleHeight)),g.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:o,fixedItemHeight:n,gap:r,groupCounts:R,initialItemFinalLocationReached:h,initialTopM
2ostItemIndex:m,scrolledToInitialItem:p,sizeRanges:s,topItemCount:b,topItemsIndexes:C,totalCount:d,...v,groupIndices:l,itemSize:i,listState:T,scrollToIndex:y,statefulTotalCount:u,trackItemSizes:c,...w,...z,...g,sizes:a,...x}),d(eT,eE,G,e1,eX,eG,eb,e6,e4,eC,e7)),e8="u">typeof document?n.default.useLayoutEffect:n.default.useEffect;function te(e,t,r){let l=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),s=Object.keys(t.methods||{}),u=Object.keys(t.events||{}),d=n.default.createContext({});function f(e,o){for(let n of(e.propsReady&&(0,e.propsReady)(0,!1),l))(0,e[t.required[n]])(0,o[n]);for(let n of i)n in o&&(0,e[t.optional[n]])(0,o[n]);e.propsReady&&(0,e.propsReady)(0,!0)}function m(e){return u.reduce((o,n)=>{var r;let l,i,s;return o[n]=(r=e[t.events[n]],s=()=>null==l?void 0:l(),function(e,t){switch(e){case 1:return t?i===t?void 0:(s(),i=t,l=r(1,t)):(s(),a);case 2:s(),i=null;return}}),o},{})}return{Component:n.default.forwardRef((a,h)=>{var p;let{children:g,...x}=a,[v]=n.default.useState(()=>{var t;let o,n;return o=new Map,f(t=(n=({constructor:e,dependencies:t,id:r,singleton:l})=>{if(l&&o.has(r))return o.get(r);let i=e(t.map(e=>n(e)));return l&&o.set(r,i),i})(e),x),t}),[I]=n.default.useState(()=>m(v));return e8(()=>{for(let e of u)e in x&&(0,I[e])(1,x[e]);return()=>{Object.values(I).map(c)}},[x,I,v]),e8(()=>{f(v,x)}),n.default.useImperativeHandle(h,(p=s.reduce((e,o)=>(e[o]=e=>{(0,v[t.methods[o]])(0,e)},e),{}),()=>p)),(0,o.jsx)(d.Provider,{value:v,children:r?(0,o.jsx)(r,{...function(e,t){let o={},n={},r=0,l=e.length;for(;r<l;)n[e[r]]=1,r+=1;for(let e in t)Object.hasOwn(n,e)||(o[e]=t[e]);return o}([...l,...i,...u],x),children:g}):g})}),useEmitter:(e,t)=>{let o=n.default.useContext(d)[e];e8(()=>o(1,t),[t,o])},useEmitterValue:n.default.version.startsWith("18")?e=>{let t=n.default.useContext(d)[e],o=n.default.useCallback(e=>t(1,e),[t]);return n.default.useSyncExternalStore(o,()=>h(t),()=>h(t))}:e=>{let t=n.default.useContext(d)[e],[o,r]=n.default.useState(()=>h(t));return e8(()=>t(1,e=>{e!==o&&r(()=>e)}),[t,o]),o},usePublisher:e=>{let t=n.default.useContext(d);return n.default.useCallback(o=>{(0,t[e])(0,o)},[t,e])}}}let tt=n.default.createContext(void 0),to=n.default.createContext(void 0),tn="u">typeof document?n.default.useLayoutEffect:n.default.useEffect;function tr(e){return"self"in e}function tl(e,t,o,l=a,i,s){let u=n.default.useRef(null),d=n.default.useRef(null),c=n.default.useRef(null),h=n.default.useCallback(o=>{let n,l,i,a=o.target;if("body"in a||tr(a)){let e=tr(a)?a:a.defaultView;i=s?e.scrollX:e.scrollY,n=s?e.document.documentElement.scrollWidth:e.document.documentElement.scrollHeight,l=s?e.innerWidth:e.innerHeight}else i=s?a.scrollLeft:a.scrollTop,n=s?a.scrollWidth:a.scrollHeight,l=s?a.offsetWidth:a.offsetHeight;let u=()=>{e({scrollHeight:n,scrollTop:Math.max(i,0),viewportHeight:l})};o.suppressFlushSync?u():r.default.flushSync(u),null!==d.current&&(i===d.current||i<=0||i===n-l)&&(d.current=null,t(!0),c.current&&(clearTimeout(c.current),c.current=null))},[e,t,s]);return n.default.useEffect(()=>{let e=i||u.current;return l(i||u.current),h({suppressFlushSync:!0,target:e}),e.addEventListener("scroll",h,{passive:!0}),()=>{l(null),e.removeEventListener("scroll",h)}},[u,h,o,l,i]),{scrollByCallback:function(e){s&&(e={behavior:e.behavior,left:e.top}),u.current.scrollBy(e)},scrollerRef:u,scrollToCallback:function(o){let n,r,l,i=u.current;if(!i||(s?"offsetWidth"in i&&0===i.offsetWidth:"offsetHeight"in i&&0===i.offsetHeight))return;let a="smooth"===o.behavior;tr(i)?(r=Math.max(ea(i.document.documentElement,s?"width":"height"),s?i.document.documentElement.scrollWidth:i.document.documentElement.scrollHeight),n=s?i.innerWidth:i.innerHeight,l=s?window.scrollX:window.scrollY):(r=i[s?"scrollWidth":"scrollHeight"],n=ea(i,s?"width":"height"),l=i[s?"scrollLeft":"scrollTop"]);let h=r-n;if(o.top=Math.ceil(Math.max(Math.min(h,o.top),0)),eB(n,r)||o.top===l){e({scrollHeight:r,scrollTop:l,viewportHeight:n}),a&&t(!0);return}a?(d.current=o.top,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,d.current=null,t(!0)},1e3)):d.current=null,s&&(o={behavior:o.behavior,left:o.top}),i.scrollTo(o)}}}let ti="-webkit-sticky",ts="sticky",ta=e5(()=>
2{if(typeof document>"u")return ts;let e=document.createElement("div");return e.style.position=ti,e.style.position===ti?ti:ts});function tu(e){return e}let td=B(()=>{let e=b(e=>`Item ${e}`),t=b(e=>`Group ${e}`),o=b({}),n=b(tu),r=b("div"),l=b(a),i=(e,t=null)=>R(S(o,I(t=>t[e]),x()),t);return{components:o,computeItemKey:n,EmptyPlaceholder:i("EmptyPlaceholder"),FooterComponent:i("Footer"),GroupComponent:i("Group","div"),groupContent:t,HeaderComponent:i("Header"),HeaderFooterTag:r,ItemComponent:i("Item","div"),itemContent:e,ListComponent:i("List","div"),ScrollerComponent:i("Scroller","div"),scrollerRef:l,ScrollSeekPlaceholder:i("ScrollSeekPlaceholder"),TopItemListComponent:i("TopItemList")}}),tc=B(([e,t])=>({...e,...t}),d(e9,td)),th=({height:e})=>(0,o.jsx)("div",{style:{height:e}}),tf={overflowAnchor:"none",position:ta(),zIndex:1},tm={overflowAnchor:"none"},tp={...tm,display:"inline-block",height:"100%"},tg=n.default.memo(function({showTopList:e=!1}){let t=tF("listState"),r=tL("sizeRanges"),l=tF("useWindowScroll"),i=tF("customScrollParent"),s=tL("windowScrollContainerState"),u=tL("scrollContainerState"),d=tF("itemContent"),c=tF("context"),h=tF("groupContent"),f=tF("trackItemSizes"),m=tF("itemSize"),p=tF("log"),g=tL("gap"),x=tF("horizontalDirection"),{callbackRef:v}=D(r,m,f,e?a:i||l?s:u,p,g,i,x,tF("skipAnimationFrameInResizeObserver")),[I,T]=n.default.useState(0);tk("deviation",e=>{I!==e&&T(e)});let S=tF("EmptyPlaceholder"),C=tF("ScrollSeekPlaceholder")||th,w=tF("ListComponent"),y=tF("ItemComponent"),H=tF("GroupComponent"),b=tF("computeItemKey"),R=tF("isSeeking"),z=tF("groupIndices").length>0,E=tF("alignToBottom"),B=tF("initialItemFinalLocationReached"),k=e?{}:{boxSizing:"border-box",...x?{display:"inline-block",height:"100%",marginLeft:0!==I?I:E?"auto":0,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:"nowrap"}:{marginTop:0!==I?I:E?"auto":0,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...B?{}:{visibility:"hidden"}};return!e&&0===t.totalCount&&S?(0,o.jsx)(S,{...tS(S,c)}):(0,o.jsx)(w,{...tS(w,c),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:v,style:k,children:(e?t.topItems:t.items).map(e=>{let o=e.originalIndex,r=b(o+t.firstItemIndex,e.data,c);return R?(0,n.createElement)(C,{...tS(C,c),height:e.size,index:e.index,key:r,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?(0,n.createElement)(H,{...tS(H,c),"data-index":o,"data-item-index":e.index,"data-known-size":e.size,key:r,style:tf},h(e.index,c)):(0,n.createElement)(y,{...tS(y,c),...tC(y,e.data),"data-index":o,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:r,style:x?tp:tm},z?d(e.index,e.groupIndex,e.data,c):d(e.index,e.data,c))})})}),tx={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},tv={outline:"none",overflowX:"auto",position:"relative"},tI=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:{}}),tT={position:ta(),top:0,width:"100%",zIndex:1};function tS(e,t){if("string"!=typeof e)return{context:t}}function tC(e,t){return{item:"string"==typeof e?void 0:t}}let tw=n.default.memo(function(){let e=tF("HeaderComponent"),t=tL("headerHeight"),r=tF("HeaderFooterTag"),l=P(n.default.useMemo(()=>e=>{t(ea(e,"height"))},[t]),!0,tF("skipAnimationFrameInResizeObserver")),i=tF("context");return e?(0,o.jsx)(r,{ref:l,children:(0,o.jsx)(e,{...tS(e,i)})}):null}),ty=n.default.memo(function(){let e=tF("FooterComponent"),t=tL("footerHeight"),r=tF("HeaderFooterTag"),l=P(n.default.useMemo(()=>e=>{t(ea(e,"height"))},[t]),!0,tF("skipAnimationFrameInResizeObserver")),i=tF("context");return e?(0,o.jsx)(r,{ref:l,children:(0,o.jsx)(e,{...tS(e,i)})}):null});function tH({useEmitter:e,useEmitterValue:t,usePublisher:r}){return n.default.memo(function({children:n,style:l,context:i,...s}){let a=r("scrollContainerState"),u=t("ScrollerComponent"),d=r("smoothScrollTargetReached"),c=t("scrollerRef"),h=t("horizontalDirection")||!1,{scrollByCallback:f,scrollerRef:m,scrollToCallback:p}=tl(a,d,u,c,void 0,h);return e("scrollTo",p),e("scrollBy",f),(0,o.jsx)(u,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:m,style:{...h?tv:tx,...l},tabIndex:0,...s,...tS(u,i),children:n})})}function tb({useEmitter:e,useEmitterValue:t,usePublisher:r}){return n.default.memo(function({children:l,style:i,context:s,...a}){let u=r("windowScrollContainerState"),d=t("ScrollerComponent"),c=r("smoothScrollTargetReached"),h=t("totalListHeight"),f=t("deviation"),m=t("customScrollParent"),p=n.default.useRef(null),{scrollByCallback:g,scrollerRef:x,scrollToCallback:v}=tl(u,c,d,t("scrollerRef"),m);return tn(()=>{var e;return x.current=m||(null==(e=p.current)?void 0:e.ownerDocument.defaultView),()=>{x.current=null}},[x,m]),e("windowScrollTo",v),e("scrollBy",g),(0,o.jsx)(d,{ref:p,"data-virtuoso-scroller":!0,style:{position:"relative",...i,...0!==h?{height:h+f}:{}},...a,...tS(d,s),children:l})})}let tR=({children:e})=>
2{let t=n.default.useContext(tt),r=tL("viewportHeight"),l=tL("fixedItemHeight"),s=tF("alignToBottom"),a=tF("horizontalDirection"),u=P(n.default.useMemo(()=>i(r,e=>ea(e,a?"width":"height")),[r,a]),!0,tF("skipAnimationFrameInResizeObserver"));return n.default.useEffect(()=>{t&&(r(t.viewportHeight),l(t.itemHeight))},[t,r,l]),(0,o.jsx)("div",{"data-viewport-type":"element",ref:u,style:tI(s),children:e})},tz=({children:e})=>{let t=n.default.useContext(tt),r=tL("windowViewportRect"),l=tL("fixedItemHeight"),i=N(r,tF("customScrollParent"),tF("skipAnimationFrameInResizeObserver")),s=tF("alignToBottom");return n.default.useEffect(()=>{t&&(l(t.itemHeight),r({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,r,l]),(0,o.jsx)("div",{"data-viewport-type":"window",ref:i,style:tI(s),children:e})},tE=({children:e})=>{let t=tF("TopItemListComponent")||"div",n=tF("headerHeight"),r={...tT,marginTop:`${n}px`},l=tF("context");return(0,o.jsx)(t,{style:r,...tS(t,l),children:e})},{Component:tB,useEmitter:tk,useEmitterValue:tF,usePublisher:tL}=te(tc,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",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"}},n.default.memo(function(e){let t=tF("useWindowScroll"),n=tF("topItemsIndexes").length>0,r=tF("customScrollParent"),l=tF("context");return(0,o.jsxs)(r||t?tj:tO,{...e,context:l,children:[n&&(0,o.jsx)(tE,{children:(0,o.jsx)(tg,{showTopList:!0})}),(0,o.jsxs)(r||t?tz:tR,{children:[(0,o.jsx)(tw,{}),(0,o.jsx)(tg,{}),(0,o.jsx)(ty,{})]})]})})),tO=tH({useEmitter:tk,useEmitterValue:tF,usePublisher:tL}),tj=tb({useEmitter:tk,useEmitterValue:tF,usePublisher:tL}),tM=B(()=>{let e=b(e=>(0,o.jsxs)("td",{children:["Item $",e]})),t=b(null),n=b(e=>(0,o.jsxs)("td",{colSpan:1e3,children:["Group ",e]})),r=b(null),l=b(null),i=b({}),s=b(tu),u=b(a),d=(e,t=null)=>R(S(i,I(t=>t[e]),x()),t);return{components:i,computeItemKey:s,context:t,EmptyPlaceholder:d("EmptyPlaceholder"),FillerRow:d("FillerRow"),fixedFooterContent:l,fixedHeaderContent:r,itemContent:e,groupContent:n,ScrollerComponent:d("Scroller","div"),scrollerRef:u,ScrollSeekPlaceholder:d("ScrollSeekPlaceholder"),TableBodyComponent:d("TableBody","tbody"),TableComponent:d("Table","table"),TableFooterComponent:d("TableFoot","tfoot"),TableHeadComponent:d("TableHead","thead"),TableRowComponent:d("TableRow","tr"),GroupComponent:d("Group","tr")}}),tA=B(([e,t])=>({...e,...t}),d(e9,tM)),tP=({height:e})=>(0,o.jsx)("tr",{children:(0,o.jsx)("td",{style:{height:e}})}),tW=({height:e})=>(0,o.jsx)("tr",{children:(0,o.jsx)("td",{style:{border:0,height:e,padding:0}})}),tD={overflowAnchor:"none"},tV={position:ta(),zIndex:2,overflowAnchor:"none"},tN=n.default.memo(function({showTopList:e=!1}){let t=tq("listState"),r=tq("computeItemKey"),l=tq("firstItemIndex"),i=tq("context"),s=tq("isSeeking"),a=tq("fixedHeaderHeight"),u=tq("groupIndices").length>0,d=tq("itemContent"),c=tq("groupContent"),h=tq("ScrollSeekPlaceholder")||tP,f=tq("GroupComponent"),m=tq("TableRowComponent"),p=(e?t.topItems:[]).reduce((e,t,o)=>(0===o?e.push(t.size):e.push(e[o-1]+t.size),e),[]),g=(e?t.topItems:t.items).map(t=>{let o=t.originalIndex,g=r(o+l,t.data,i),x=e?0===o?0:p[o-1]:0;return s?(0,n.createElement)(h,{...tS(h,i),height:t.size,index:t.index,key:g,type:t.type||"item"}):"group"===t.type?(0,n.createElement)(f,{...tS(f,i),"data-index":o,"data-item-index":t.index,"data-known-size":t.size,key:g,
2style:{...tV,top:a}},c(t.index,i)):(0,n.createElement)(m,{...tS(m,i),...tC(m,t.data),"data-index":o,"data-item-index":t.index,"data-known-size":t.size,"data-item-group-index":t.groupIndex,key:g,style:e?{...tV,top:a+x}:tD},u?d(t.index,t.groupIndex,t.data,i):d(t.index,t.data,i))});return(0,o.jsx)(o.Fragment,{children:g})}),tG=n.default.memo(function(){let e=tq("listState"),t=tq("topItemsIndexes").length>0,r=t$("sizeRanges"),l=tq("useWindowScroll"),i=tq("customScrollParent"),s=t$("windowScrollContainerState"),a=t$("scrollContainerState"),u=tq("trackItemSizes"),{callbackRef:d,ref:c}=D(r,tq("itemSize"),u,i||l?s:a,tq("log"),void 0,i,!1,tq("skipAnimationFrameInResizeObserver")),[h,f]=n.default.useState(0);tK("deviation",e=>{h!==e&&(c.current.style.marginTop=`${e}px`,f(e))});let m=tq("EmptyPlaceholder"),p=tq("FillerRow")||tW,g=tq("TableBodyComponent"),x=tq("paddingTopAddition"),v=tq("statefulTotalCount"),I=tq("context");if(0===v&&m)return(0,o.jsx)(m,{...tS(m,I)});let T=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),S=e.offsetTop+x+h-T,C=e.offsetBottom,w=S>0?(0,o.jsx)(p,{context:I,height:S},"padding-top"):null,y=C>0?(0,o.jsx)(p,{context:I,height:C},"padding-bottom"):null;return(0,o.jsxs)(g,{"data-testid":"virtuoso-item-list",ref:d,...tS(g,I),children:[w,t&&(0,o.jsx)(tN,{showTopList:!0}),(0,o.jsx)(tN,{}),y]})}),tU=({children:e})=>{let t=n.default.useContext(tt),r=t$("viewportHeight"),l=t$("fixedItemHeight"),s=P(n.default.useMemo(()=>i(r,e=>ea(e,"height")),[r]),!0,tq("skipAnimationFrameInResizeObserver"));return n.default.useEffect(()=>{t&&(r(t.viewportHeight),l(t.itemHeight))},[t,r,l]),(0,o.jsx)("div",{"data-viewport-type":"element",ref:s,style:tI(!1),children:e})},t_=({children:e})=>{let t=n.default.useContext(tt),r=t$("windowViewportRect"),l=t$("fixedItemHeight"),i=N(r,tq("customScrollParent"),tq("skipAnimationFrameInResizeObserver"));return n.default.useEffect(()=>{t&&(l(t.itemHeight),r({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,r,l]),(0,o.jsx)("div",{"data-viewport-type":"window",ref:i,style:tI(!1),children:e})},{useEmitter:tK,useEmitterValue:tq,usePublisher:t$}=te(tA,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",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"}},n.default.memo(function(e){let t=tq("useWindowScroll"),r=tq("customScrollParent"),l=t$("fixedHeaderHeight"),s=t$("fixedFooterHeight"),a=tq("fixedHeaderContent"),u=tq("fixedFooterContent"),d=tq("context"),c=P(n.default.useMemo(()=>i(l,e=>ea(e,"height")),[l]),!0,tq("skipAnimationFrameInResizeObserver")),h=P(n.default.useMemo(()=>i(s,e=>ea(e,"height")),[s]),!0,tq("skipAnimationFrameInResizeObserver")),f=r||t?tX:tY,m=r||t?t_:tU,p=tq("TableComponent"),g=tq("TableHeadComponent"),x=tq("TableFooterComponent"),v=a?(0,o.jsx)(g,{ref:c,style:{position:"sticky",top:0,zIndex:2},...tS(g,d),children:a()},"TableHead"):null,I=u?(0,o.jsx)(x,{ref:h,style:{bottom:0,position:"sticky",zIndex:1},...tS(x,d),children:u()},"TableFoot"):null;return(0,o.jsx)(f,{...e,...tS(f,d),children:(0,o.jsx)(m,{children:(0,o.jsxs)(p,{style:{borderSpacing:0,overflowAnchor:"none"},...tS(p,d),children:[v,(0,o.jsx)(tG,{},"TableBody"),I]})})})})),tY=tH({useEmitter:tK,useEmitterValue:tq,usePublisher:t$}),tX=tb({useEmitter:tK,useEmitterValue:tq,usePublisher:t$}),tZ={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},tJ={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:tQ,floor:t0,max:t1,min:t2,round:t4}=Math;function t5(e,t,o){return Array.from({length:t-e+1}).map((t,n)=>({data:null===o?null:o[n+e],index:n+e}))}function t3(e,t){return e&&e.width===t.width&&e.height===t.height}function t6(e,t){return e&&e.column===t.column&&e.row===t.row}let t7=B(([{increaseViewportBy:e,listBoundary:t,overscan:o,visibleRange:n},{footerHeight:r,headerHeight:l,scrollBy:i,scrollContainerState:s,scrollTo:a,scrollTop:u,smoothScrollTargetReached:d,viewportHe
2ight:c},h,p,{didMount:g,propsReady:C},{customScrollParent:B,useWindowScroll:k,windowScrollContainerState:O,windowScrollTo:j,windowViewportRect:M},A])=>{let P=b(0),W=b(0),D=b(tZ),V=b({height:0,width:0}),N=b({height:0,width:0}),G=z(),U=z(),_=b(0),K=b(null),q=b({column:0,row:0}),$=z(),Y=z(),X=b(!1),Z=b(0),J=b(!0),Q=b(!1),ee=b(!1);S(g,H(Z),v(([e,t])=>!!t))(1,()=>{J(0,!1)}),S(F(g,J,N,V,Z,Q),v(([e,t,o,n,,r])=>e&&!t&&0!==o.height&&0!==n.height&&!r))(1,([,,,,e])=>{Q(0,!0),eR(1,()=>{G(0,e)}),m(S(u),()=>{t(0,[0,0]),J(0,!0)})}),f(S(Y,v(e=>null!=e&&e.scrollTop>0),T(0)),W),S(g,H(Y),v(([,e])=>null!=e))(1,([,e])=>{e&&(V(0,e.viewport),N(0,e.item),q(0,e.gap),e.scrollTop>0&&(X(0,!0),m(S(u,w(1)),e=>{X(0,!1)}),a(0,{top:e.scrollTop})))}),f(S(V,I(({height:e})=>e)),c),f(S(F(L(V,t3),L(N,t3),L(q,(e,t)=>e&&e.column===t.column&&e.row===t.row),L(u)),I(([e,t,o,n])=>({gap:o,item:t,scrollTop:n,viewport:e}))),$),f(S(F(L(P),n,L(q,t6),L(N,t3),L(V,t3),L(K),L(W),L(X),L(J),L(Z)),v(([,,,,,,,e])=>!e),I(([e,[t,o],n,r,l,i,s,,a,u])=>{let d,c,{column:h,row:f}=n,{height:m,width:p}=r,{width:g}=l;if(0===s&&(0===e||0===g))return tZ;if(0===p){var x;let t=ez(u,e),o=t+Math.max(s-1,0);return x=t5(t,o,i),{...tJ,items:x}}let v=t9(g,p,h);a?0===t&&0===o&&s>0?(d=0,c=s-1):(d=v*t0((t+f)/(m+f)),c=t2(e-1,t1(c=v*tQ((o+f)/(m+f))-1,v-1)),d=t2(c,t1(0,d))):(d=0,c=-1);let I=t5(d,c,i),{bottom:T,top:S}=t8(l,n,r,I),C=tQ(e/v);return{bottom:T,itemHeight:m,items:I,itemWidth:p,offsetBottom:C*m+(C-1)*f-T,offsetTop:S,top:S}})),D),f(S(K,v(e=>null!==e),I(e=>e.length)),P),f(S(F(V,N,D,q),v(([e,t,{items:o}])=>o.length>0&&0!==t.height&&0!==e.height),I(([e,t,{items:o},n])=>{let{bottom:r,top:l}=t8(e,n,t,o);return[l,r]}),x(el)),t);let et=b(!1);f(S(u,H(et),I(([e,t])=>t||0!==e)),et);let eo=E(S(F(D,P),v(([{items:e}])=>e.length>0),H(et),v(([[e,t],o])=>{let 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}),I(([[,e]])=>e-1),x())),en=E(S(L(D),v(({items:e})=>e.length>0&&0===e[0].index),T(0),x())),ei=E(S(L(D),H(X),v(([{items:e},t])=>e.length>0&&!t),I(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),x(er),y(0)));f(ei,p.scrollSeekRangeChanged),f(S(G,H(V,N,P,q),I(([e,t,o,n,r])=>{let l=eH(e),{align:i,behavior:s,offset:a}=l,u=l.index;"LAST"===u&&(u=n-1);let d=oe(t,r,o,u=t1(0,u,t2(n-1,u)));return"end"===i?d=t4(d-t.height+o.height):"center"===i&&(d=t4(d-t.height/2+o.height/2)),a&&(d+=a),{behavior:s,top:d}})),a);let es=R(S(D,I(e=>e.offsetBottom+e.bottom)),0);return f(S(M,I(e=>({height:e.visibleHeight,width:e.visibleWidth}))),V),{customScrollParent:B,data:K,deviation:_,footerHeight:r,gap:q,headerHeight:l,increaseViewportBy:e,initialItemCount:W,itemDimensions:N,overscan:o,restoreStateFrom:Y,scrollBy:i,scrollContainerState:s,scrollHeight:U,scrollTo:a,scrollToIndex:G,scrollTop:u,smoothScrollTargetReached:d,totalCount:P,useWindowScroll:k,viewportDimensions:V,windowScrollContainerState:O,windowScrollTo:j,windowViewportRect:M,...p,gridState:D,horizontalDirection:ee,initialTopMostItemIndex:Z,totalListHeight:es,...h,endReached:eo,propsReady:C,rangeChanged:ei,startReached:en,stateChanged:$,stateRestoreInProgress:X,...A}},d(eP,G,eL,eQ,ew,e0,A));function t9(e,t,o){return t1(1,t0((e+o)/(t0(t)+o)))}function t8(e,t,o,n){let{height:r}=o;if(void 0===r||0===n.length)return{bottom:0,top:0};let l=oe(e,t,o,n[0].index);return{bottom:oe(e,t,o,n[n.length-1].index)+r,top:l}}function oe(e,t,o,n){let r=t0(n/t9(e.width,o.width,t.column)),l=r*o.height+t1(0,r-1)*t.row;return l>0?l+t.row:l}let ot=B(()=>{let e=b(e=>`Item ${e}`),t=b({}),o=b(null),n=b("virtuoso-grid-item"),r=b("virtuoso-grid-list"),l=b(tu),i=b("div"),s=b(a),u=(e,o=null)=>R(S(t,I(t=>t[e]),x()),o),d=b(!1),c=b(!1);return f(L(c),d),{components:t,computeItemKey:l,context:o,FooterComponent:u("Footer"),HeaderComponent:u("Header"),headerFooterTag:i,itemClassName:n,ItemComponent:u("Item","div"),itemContent:e,listClassName:r,ListComponent:u("List","div"),readyStateChanged:d,reportReadyState:c,ScrollerComponent:u("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:u("ScrollSeekPlaceholder","div")}}),oo=B(([e,t])=>({...e,...t}),d(t7,ot)),on=n.default.memo(function(){let e=ou("gridState"),t=ou("listClassName"),r=ou("itemClassName"),l=ou("itemContent"),i=ou("computeItemKey"),s=ou("isSeeking"),a=od("scrollHeight"),u=ou("ItemComponent"),d=ou("ListComponent"),c=ou("ScrollSeekPlaceholder"),h=ou("context"),f=od("itemDimensions"),m=od("gap"),p=ou("log"),g=ou("stateRestoreInProgress"),x=od("reportReadyState"),v=P(n.default.useMemo(()=>e=>{a(e.parentElement.parentElement.scrollHeight);let t=e.firstChild;if(t){let{height:e,width:o}=t.getBoundingClientRect();f({height:e,width:o})}m({column:of("column-gap",getComputedStyle(e).columnGap,p),row:of("row-gap",getComputedStyle(e).rowGap,p)})},[a,f,m,p]),!0,!1);return tn(()=>{e.itemHeight>0&&e.itemWidth>0&&x(!0)},[e]),g?null:(0,o.jsx)(d,{className:t,ref:v,...tS(d,h),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(t=>{let a=i(t.index,t.data,h);return s?(0,o.jsx)(c,{...tS(c,h),height:e.itemHeight,index:t.index,width:e.itemWidth},a):(0,n.createElement)(u,{...tS(u,h),className:r,"data-index":t.index,key:a},l(t.index,t.data,h))})})}),or=n.default.memo(function(){let e=ou("HeaderComponent"),t=od("headerHeight"),r=ou("headerFooterTag"),l=P(n.default.useMemo(()=>e=>{t(ea(e,"height"))},[t]),!0,!1),i=ou("context");return e?(0,o.jsx)(r,{ref:l,children:(0,o.jsx)(e,{...tS(e,i)})}):null}),ol=n.default.memo(function(){let e=ou("FooterComponent"),t=od("footerHeight"),r=ou("headerFooterTag"),l=P(n.default.useMemo(()=>e=>{t(ea(e,"height"))},[t]),!0,!1),i=ou("context");return e?(0,o.jsx)(r,{ref:l,children:(0,o.jsx)(e,{...tS(e,i)})}):null}),oi=({children:e})=>{let t=n.default.useContext(to),r=od("itemDimensions"),l=od("viewportDimensions"),i=P(n.default.useMemo(()=>e=>{l(e.getBoundingClientRect())},[l]),!0,!1);return n.default.useEffect(()=>
2{t&&(l({height:t.viewportHeight,width:t.viewportWidth}),r({height:t.itemHeight,width:t.itemWidth}))},[t,l,r]),(0,o.jsx)("div",{ref:i,style:tI(!1),children:e})},os=({children:e})=>{let t=n.default.useContext(to),r=od("windowViewportRect"),l=od("itemDimensions"),i=N(r,ou("customScrollParent"),!1);return n.default.useEffect(()=>{t&&(l({height:t.itemHeight,width:t.itemWidth}),r({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,r,l]),(0,o.jsx)("div",{ref:i,style:tI(!1),children:e})},{useEmitter:oa,useEmitterValue:ou,usePublisher:od}=te(oo,{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"}},n.default.memo(function({...e}){let t=ou("useWindowScroll"),n=ou("customScrollParent"),r=n||t?oh:oc,l=n||t?os:oi,i=ou("context");return(0,o.jsx)(r,{...e,...tS(r,i),children:(0,o.jsxs)(l,{children:[(0,o.jsx)(or,{}),(0,o.jsx)(on,{}),(0,o.jsx)(ol,{})]})})})),oc=tH({useEmitter:oa,useEmitterValue:ou,usePublisher:od}),oh=tb({useEmitter:oa,useEmitterValue:ou,usePublisher:od});function of(e,t,o){return"normal"===t||null!=t&&t.endsWith("px")||o(`${e} was not resolved to pixel value correctly`,t,j.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}var om=e.i(97408);let op={FEEDS:.1,ARTICLES:.2,GALLERIES:.2,CHAT:.2,COMMENTS:.2,SEARCH_RESULTS:.2,ACADEMY:.2,COACHES:.2,TEAMS:.2,NOTIFICATIONS:.2,TOURNAMENTS:.2,USERS:.2,NEWS:.2};e.s(["RECOMMENDED_THRESHOLDS",0,op],694670),e.s(["default",0,({data:e,getMoreData:t,hasMore:r,renderItem:l,endMessage:i,showMessage:s=!1,scrollThreshold:a=op.FEEDS,isLoading:u=!1,className:d,style:c,useWindowScroll:h=!0,getItemKey:f,initialItemCount:m})=>{let p=(0,n.useRef)(!1),g=(0,n.useCallback)(async()=>{if(r&&!p.current){p.current=!0;try{await t()}finally{p.current=!1}}},[t,r]),x=h?void 0:c?.height?{height:c.height}:{height:"70vh"};return(0,o.jsx)("div",{className:d,style:c,children:(0,o.jsx)(tB,{data:e,useWindowScroll:h,initialItemCount:m?Math.min(m,e.length):void 0,atBottomThreshold:(()=>{if("number"==typeof a)return a<=1?Math.round(window.innerHeight*a):Math.round(a);if("string"==typeof a&&a.endsWith("px")){let e=parseInt(a,10);return Number.isFinite(e)?e:600}return 600})(),endReached:g,overscan:200,itemContent:(e,t)=>(0,o.jsx)(n.Suspense,{fallback:(0,o.jsx)(om.default,{}),children:l(t,e)}),computeItemKey:f?(e,t)=>f(e,t):e=>e,components:{Footer:()=>(0,o.jsxs)(o.Fragment,{children:[u&&e.length>0?(0,o.jsx)("div",{className:"py-3",children:(0,o.jsx)(om.default,{})}):null,!r&&s?(0,o.jsx)("div",{className:"body-sm-secondary inline-flex truncate content-center py-2",children:i??"Nothing more to show"}):null]}),EmptyPlaceholder:()=>u?(0,o.jsx)(om.default,{}):null},style:x})})}],941057)}]);
3
4//# debugId=973b4e42-7d09-0f93-a2ea-b4307c6873e9
5//# sourceMappingURL=b79e0fe1e06e6fb3.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.