Take control over your live stream video by running it yourself. Streaming + chat out of the box.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
92 KiB

This file contains hidden Unicode characters!

This file contains hidden Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5138],{58354:function(e,t,n){"use strict";n.d(t,{do:function(){return G}});var r,o,i,l=[],a="ResizeObserver loop completed with undelivered notifications.",u=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:a}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=a),window.dispatchEvent(e)};(r=o||(o={})).BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var s=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,s(this)},f=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,s(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),d=function(e){return e instanceof SVGElement&&"getBBox"in e},p=function(e){if(d(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e.offsetWidth,i=e.offsetHeight;return!(o||i||e.getClientRects().length)},h=function(e){if(e instanceof Element)return!0;var t,n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},m=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},g="undefined"!=typeof window?window:{},v=new WeakMap,y=/auto|scroll/,b=/^tb|vertical/,x=/msie|trident/i.test(g.navigator&&g.navigator.userAgent),w=function(e){return parseFloat(e||"0")},E=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new c((n?t:e)||0,(n?e:t)||0)},T=s({devicePixelContentBoxSize:E(),borderBoxSize:E(),contentBoxSize:E(),contentRect:new f(0,0,0,0)}),S=function(e,t){if(void 0===t&&(t=!1),v.has(e)&&!t)return v.get(e);if(p(e))return v.set(e,T),T;var n=getComputedStyle(e),r=d(e)&&e.ownerSVGElement&&e.getBBox(),o=!x&&"border-box"===n.boxSizing,i=b.test(n.writingMode||""),l=!r&&y.test(n.overflowY||""),a=!r&&y.test(n.overflowX||""),u=r?0:w(n.paddingTop),c=r?0:w(n.paddingRight),h=r?0:w(n.paddingBottom),m=r?0:w(n.paddingLeft),g=r?0:w(n.borderTopWidth),S=r?0:w(n.borderRightWidth),C=r?0:w(n.borderBottomWidth),I=r?0:w(n.borderLeftWidth),z=m+c,k=u+h,O=I+S,R=g+C,P=a?e.offsetHeight-R-e.clientHeight:0,B=l?e.offsetWidth-O-e.clientWidth:0,H=r?r.width:w(n.width)-(o?z+O:0)-B,A=r?r.height:w(n.height)-(o?k+R:0)-P,N=s({devicePixelContentBoxSize:E(Math.round(H*devicePixelRatio),Math.round(A*devicePixelRatio),i),borderBoxSize:E(H+z+B+O,A+k+P+R,i),contentBoxSize:E(H,A,i),contentRect:new f(m,u,H,A)});return v.set(e,N),N},C=function(e,t,n){var r=S(e,n),i=r.borderBoxSize,l=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case o.DEVICE_PIXEL_CONTENT_BOX:return a;case o.BORDER_BOX:return i;default:return l}},I=function(e){var t=S(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=s([t.borderBoxSize]),this.contentBoxSize=s([t.contentBoxSize]),this.devicePixelContentBoxSize=s([t.devicePixelContentBoxSize])},z=function(e){if(p(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},k=function(){var e=1/0,t=[];l.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new I(t.target),o=z(t.target);r.push(n),t.lastReportedSize=C(t.target,t.observedBox),o<e&&(e=o)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0;n<t.length;n++)(0,t[n])();return e},O=function(e){l.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(z(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},R=function(){var e=0;for(O(0);l.some(function(e){return e.activeTargets.length>0});)O(e=k());return l.some(function(e){return e.skippedTargets.length>0})&&u(),e>0},P=[],B=function(e){if(!i){var t=0,n=document.createTextNode("");new MutationObserver(function(){return P.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),i=function(){n.textContent="".concat(t?t--:t++)}}P.push(e),i()},H=function(e){B(function(){requestAnimationFrame(e)})},A=0,N={attributes:!0,characterData:!0,childList:!0,subtree:!0},j=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],F=function(e){return void 0===e&&(e=0),Date.now()+e},L=!1,M=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!L){L=!0;var n=F(e);H(function(){var r=!1;try{r=R()}finally{if(L=!1,e=n-F(),!A)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,N)};document.body?t():g.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),j.forEach(function(t){return g.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),j.forEach(function(t){return g.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),D=function(e){!A&&e>0&&M.start(),(A+=e)||M.stop()},_=function(){function e(e,t){this.target=e,this.observedBox=t||o.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=C(this.target,this.observedBox,!0);return d(e=this.target)||m(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),W=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Z=new WeakMap,V=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return -1},$=function(){function e(){}return e.connect=function(e,t){var n=new W(e,t);Z.set(e,n)},e.observe=function(e,t,n){var r=Z.get(e),o=0===r.observationTargets.length;0>V(r.observationTargets,t)&&(o&&l.push(r),r.observationTargets.push(new _(t,n&&n.box)),D(1),M.schedule())},e.unobserve=function(e,t){var n=Z.get(e),r=V(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&l.splice(l.indexOf(n),1),n.observationTargets.splice(r,1),D(-1))},e.disconnect=function(e){var t=this,n=Z.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),G=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");$.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!h(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");$.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!h(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");$.unobserve(this,e)},e.prototype.disconnect=function(){$.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},81643:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(e){return e?"function"==typeof e?e():e:null}},57838:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(97685),o=n(67294);function i(){var e=o.useReducer(function(e){return e+1},0);return(0,r.Z)(e,2)[1]}},24093:function(e,t,n){"use strict";n.d(t,{C:function(){return T}});var r=n(87462),o=n(4942),i=n(71002),l=n(97685),a=n(94184),u=n.n(a),s=n(48555),c=n(42550),f=n(67294),d=n(53124),p=n(25378),h=n(24308),m=f.createContext("default"),g=function(e){var t=e.children,n=e.size;return f.createElement(m.Consumer,null,function(e){return f.createElement(m.Provider,{value:n||e},t)})},v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},y=f.forwardRef(function(e,t){var n,a,g,y=f.useContext(m),b=f.useState(1),x=(0,l.Z)(b,2),w=x[0],E=x[1],T=f.useState(!1),S=(0,l.Z)(T,2),C=S[0],I=S[1],z=f.useState(!0),k=(0,l.Z)(z,2),O=k[0],R=k[1],P=f.useRef(null),B=f.useRef(null),H=(0,c.sQ)(t,P),A=f.useContext(d.E_).getPrefixCls,N=function(){if(B.current&&P.current){var t=B.current.offsetWidth,n=P.current.offsetWidth;if(0!==t&&0!==n){var r=e.gap,o=void 0===r?4:r;2*o<n&&E(n-2*o<t?(n-2*o)/t:1)}}};f.useEffect(function(){I(!0)},[]),f.useEffect(function(){R(!0),E(1)},[e.src]),f.useEffect(function(){N()},[e.gap]);var j=e.prefixCls,F=e.shape,L=void 0===F?"circle":F,M=e.size,D=void 0===M?"default":M,_=e.src,W=e.srcSet,Z=e.icon,V=e.className,$=e.alt,G=e.draggable,U=e.children,K=e.crossOrigin,q=v(e,["prefixCls","shape","size","src","srcSet","icon","className","alt","draggable","children","crossOrigin"]),X="default"===D?y:D,Y=Object.keys("object"===(0,i.Z)(X)&&X||{}).some(function(e){return["xs","sm","md","lg","xl","xxl"].includes(e)}),J=(0,p.Z)(Y),Q=f.useMemo(function(){if("object"!==(0,i.Z)(X))return{};var e=X[h.c4.find(function(e){return J[e]})];return e?{width:e,height:e,lineHeight:"".concat(e,"px"),fontSize:Z?e/2:18}:{}},[J,X]),ee=A("avatar",j),et=u()((n={},(0,o.Z)(n,"".concat(ee,"-lg"),"large"===X),(0,o.Z)(n,"".concat(ee,"-sm"),"small"===X),n)),en=f.isValidElement(_),er=u()(ee,et,(a={},(0,o.Z)(a,"".concat(ee,"-").concat(L),!!L),(0,o.Z)(a,"".concat(ee,"-image"),en||_&&O),(0,o.Z)(a,"".concat(ee,"-icon"),!!Z),a),V);if("string"==typeof _&&O)g=f.createElement("img",{src:_,draggable:G,srcSet:W,onError:function(){var t=e.onError;!1!==(t?t():void 0)&&R(!1)},alt:$,crossOrigin:K});else if(en)g=_;else if(Z)g=Z;else if(C||1!==w){var eo="scale(".concat(w,") translateX(-50%)");g=f.createElement(s.default,{onResize:N},f.createElement("span",{className:"".concat(ee,"-string"),ref:B,style:(0,r.Z)((0,r.Z)({},"number"==typeof X?{lineHeight:"".concat(X,"px")}:{}),{msTransform:eo,WebkitTransform:eo,transform:eo})},U))}else g=f.createElement("span",{className:"".concat(ee,"-string"),style:{opacity:0},ref:B},U);return delete q.onError,delete q.gap,f.createElement("span",(0,r.Z)({},q,{style:(0,r.Z)((0,r.Z)((0,r.Z)({},"number"==typeof X?{width:X,height:X,lineHeight:"".concat(X,"px"),fontSize:Z?X/2:18}:{}),Q),q.style),className:er,ref:H}),g)}),b=n(50344),x=n(55241),w=n(96159),E=y;E.Group=function(e){var t=f.useContext(d.E_),n=t.getPrefixCls,r=t.direction,i=e.prefixCls,l=e.className,a=e.maxCount,s=e.maxStyle,c=e.size,p=n("avatar-group",i),h=u()(p,(0,o.Z)({},"".concat(p,"-rtl"),"rtl"===r),void 0===l?"":l),m=e.children,v=e.maxPopoverPlacement,E=e.maxPopoverTrigger,T=(0,b.Z)(m).map(function(e,t){return(0,w.Tm)(e,{key:"avatar-key-".concat(t)})}),S=T.length;if(a&&a<S){var C=T.slice(0,a),I=T.slice(a,S);return C.push(f.createElement(x.Z,{key:"avatar-popover-key",content:I,trigger:void 0===E?"hover":E,placement:void 0===v?"top":v,overlayClassName:"".concat(p,"-popover")},f.createElement(y,{style:s},"+".concat(S-a)))),f.createElement(g,{size:c},f.createElement("div",{className:h,style:e.style},C))}return f.createElement(g,{size:c},f.createElement("div",{className:h,style:e.style},T))};var T=E},25378:function(e,t,n){"use strict";var r=n(67294),o=n(57838),i=n(24308);t.Z=function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,r.useRef)({}),n=(0,o.Z)();return(0,r.useEffect)(function(){var r=i.ZP.subscribe(function(r){t.current=r,e&&n()});return function(){return i.ZP.unsubscribe(r)}},[]),t.current}},55241:function(e,t,n){"use strict";var r=n(87462),o=n(67294),i=n(53124),l=n(94199),a=n(81643),u=n(33603),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},c=function(e){var t=e.title,n=e.content,r=e.prefixCls;return t||n?o.createElement(o.Fragment,null,t&&o.createElement("div",{className:"".concat(r,"-title")},(0,a.Z)(t)),o.createElement("div",{className:"".concat(r,"-inner-content")},(0,a.Z)(n))):null},f=o.forwardRef(function(e,t){var n=e.prefixCls,a=e.title,f=e.content,d=e._overlay,p=e.placement,h=e.trigger,m=e.mouseEnterDelay,g=e.mouseLeaveDelay,v=e.overlayStyle,y=s(e,["prefixCls","title","content","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),b=o.useContext(i.E_).getPrefixCls,x=b("popover",n),w=b();return o.createElement(l.Z,(0,r.Z)({placement:void 0===p?"top":p,trigger:void 0===h?"hover":h,mouseEnterDelay:void 0===m?.1:m,mouseLeaveDelay:void 0===g?.1:g,overlayStyle:void 0===v?{}:v},y,{prefixCls:x,ref:t,overlay:d||o.createElement(c,{prefixCls:x,title:a,content:f}),transitionName:(0,u.mL)(w,"zoom-big",y.transitionName)}))});t.Z=f},6907:function(e){"use strict";e.exports=function(e){return(e=String(e||""),r.test(e))?"rtl":o.test(e)?"ltr":"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",n="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸ̀-֐ࠀ-῿Ⰰ-﬜-﹯﻽-￿",r=RegExp("^[^"+n+"]*["+t+"]"),o=RegExp("^[^"+t+"]*["+n+"]")},95573:function(e){"use strict";/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/var t=/["'&<>]/;e.exports=function(e){var n,r=""+e,o=t.exec(r);if(!o)return r;var i="",l=0,a=0;for(l=o.index;l<r.length;l++){switch(r.charCodeAt(l)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}a!==l&&(i+=r.substring(a,l)),a=l+1,i+=n}return a!==l?i+r.substring(a,l):i}},41366:function(e,t,n){"use strict";n.d(t,{xc:function(){return C}});var r=n(67294),o=n(4693);function i(e,t={}){var n,r;let o=e.map(e=>e.source).join(null!==(n=t.join)&&void 0!==n?n:"");return t.capture?o=`(${o})`:t.nonCapture&&(o=`(?:${o})`),t.match&&(o+=t.match),new RegExp(o,null!==(r=t.flags)&&void 0!==r?r:"")}let l=/[a-z0-9]/,a=/(?:[a-zA-Z\u0400-\u04FF0-9\-_~!$&'()[\]\\/*+,;=.%]*)/,u=/(https?:\/\/)?/,s=i([/[a-z\u0400-\u04FF0-9\-_~!$&'()*+,;=.:]+/,/@/],{capture:!0,match:"?"}),c=i([/(?:(?:[a-z0-9](?:[-a-z0-9_]*[a-z0-9])?)\.)*/,/(?:(?:[a-z0-9](?:[-a-z0-9]*[a-z0-9])?)\.)/,/(?:[a-z](?:[-a-z0-9]*[a-z0-9])?)/],{capture:!0}),f=/(?::(\d{1,5}))?/,d=i([/\//,i([/[-+a-z0-9!*';:=,.$/%[\]_~@|&]*/,/[-+a-z0-9/]/],{match:"*",nonCapture:!0})],{capture:!0,match:"?"}),p=i([/\?/,i([a,/[a-z0-9_&=]/],{match:"?",nonCapture:!0})],{capture:!0,match:"?"}),h=i([/#/,i([a,/[a-z0-9]/],{match:"?",nonCapture:!0})],{capture:!0,match:"?"}),m=i([u,s,c,f,d,p,h],{flags:"i"}),g=/(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/,v=i([g,g,g,g],{capture:!0,join:"\\."});i([u,s,v,f,d,p,h],{flags:"i"}),i([/#/,i([/[\d_\u4E00-\u9FFF-]+/,/[\d_\u3000-\u30FF-]+/,/[\d_\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7FF-]+/,/[\d_\u0E00-\u0E7F-]+/,/[\d_a-z\u0400-\u052F\u1C80-\u1C8F\u2DE0-\u2DFF\uA640-\uA69F-]+/,/[\d_a-z\u0080-\u00FF\u0100-\u017F\u0180-\u024F-]+/],{capture:!0,join:"|"})],{flags:"i"});let y=i([l,/[.a-z0-9!#$%&?*+=_{|}~-]*/,l],{capture:!0}),b=i([y,c],{flags:"i",join:"@"}),x=RegExp(`^${b.source}$`,b.flags),w=["com","org","net","int","edu","gov","mil","aero","asia","biz","cat","coop","jobs","mobi","museum","post","tel","travel","xxx","arpa","test","ac","ad","ae","af","ag","ai","al","am","an","ao","aq","ar","as","at","au","aw","ax","az","ba","bb","bd","be","bf","bg","bh","bi","bj","bl","bm","bn","bo","bq","br","bs","bt","bv","bw","by","bz","ca","cc","cd","cf","cg","ch","ci","ck","cl","cm","cn","co","cr","cu","cv","cw","cx","cy","cz","de","dj","dk","dm","do","dz","ec","ee","eg","eh","er","es","et","eu","fi","fj","fk","fm","fo","fr","ga","gb","gd","ge","gf","gg","gh","gi","gl","gm","gn","gp","gq","gr","gs","gt","gu","gw","gy","hk","hm","hn","hr","ht","hu","id","ie","il","im","in","io","iq","ir","is","it","je","jm","jo","jp","ke","kg","kh","ki","km","kn","kp","kr","kw","ky","kz","la","lb","lc","li","lk","lr","ls","lt","lu","lv","ly","ma","mc","md","me","mf","mg","mh","mk","ml","mm","mn","mo","mp","mq","mr","ms","mt","mu","mv","mw","mx","my","mz","na","nc","ne","nf","ng","ni","nl","no","np","nr","nu","nz","om","pa","pe","pf","pg","ph","pk","pl","pm","pn","pr","ps","pt","pw","py","qa","re","ro","rs","ru","rw","sa","sb","sc","sd","se","sg","sh","si","sj","sk","sl","sm","sn","so","sr","st","su","sv","sx","sy","sz","tc","td","tf","tg","th","tj","tk","tl","tm","tn","to","tp","tr","tt","tv","tw","tz","ua","ug","uk","um","us","uy","uz","va","vc","ve","vg","vi","vn","vu","wf","ws","ye","yt","za","zm","zw"];function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function T({children:e,href:t,onClick:n,newWindow:o}){return r.createElement("a",{href:t,rel:"noopener noreferrer",target:o?"_blank":void 0,onClick:n},e)}function S({children:e,url:t,urlParts:n,...o}){let i=t;return i.match(/^https?:\/\//)||(i=`http://${i}`),r.createElement(T,E({},o,{href:i}),e)}class C extends o.M{constructor(e,t,n){super(e,{customTLDs:[],validateTLD:!0,...t},n)}replaceWith(e,t){return r.createElement(S,t,e)}asTag(){return"a"}match(e){let t=this.doMatch(e,m,this.handleMatches);if(null!=t&&t.match.match(x)&&(t.valid=!1),null!=t&&t.valid&&this.options.validateTLD){var n;let{host:e}=t.urlParts,r=[...w,...null!==(n=this.options.customTLDs)&&void 0!==n?n:[]],o=e.slice(e.lastIndexOf(".")+1).toLowerCase();if(!r.includes(o))return null}return t}handleMatches(e){return{url:e[0],urlParts:{auth:e[2]?e[2].slice(0,-1):"",fragment:e[7]||"",host:e[3],path:e[5]||"",port:e[4]?e[4]:"",query:e[6]||"",scheme:e[1]?e[1].replace("://",""):"http"}}}}},4693:function(e,t,n){"use strict";n.d(t,{A:function(){return s},B:function(){return u},E:function(){return v},F:function(){return y},M:function(){return b},T:function(){return a},a:function(){return h},b:function(){return c},c:function(){return m},d:function(){return d},e:function(){return f},f:function(){return p}});var r=n(67294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let i={a:{content:9,self:!1,type:105},address:{invalid:["h1","h2","h3","h4","h5","h6","address","article","aside","section","div","header","footer"],self:!1},audio:{children:["track","source"]},br:{type:9,void:!0},body:{content:127},button:{content:8,type:105},caption:{content:1,parent:["table"]},col:{parent:["colgroup"],void:!0},colgroup:{children:["col"],parent:["table"]},details:{children:["summary"],type:97},dd:{content:1,parent:["dl"]},dl:{children:["dt","dd"],type:1},dt:{content:1,invalid:["footer","header"],parent:["dl"]},figcaption:{content:1,parent:["figure"]},footer:{invalid:["footer","header"]},header:{invalid:["footer","header"]},hr:{type:1,void:!0},img:{void:!0},li:{content:1,parent:["ul","ol","menu"]},main:{self:!1},ol:{children:["li"],type:1},picture:{children:["source","img"],type:25},rb:{parent:["ruby","rtc"]},rp:{parent:["ruby","rtc"]},rt:{content:8,parent:["ruby","rtc"]},rtc:{content:8,parent:["ruby"]},ruby:{children:["rb","rp","rt","rtc"]},source:{parent:["audio","video","picture"],void:!0},summary:{content:8,parent:["details"]},table:{children:["caption","colgroup","thead","tbody","tfoot","tr"],type:1},tbody:{parent:["table"],children:["tr"]},td:{content:1,parent:["tr"]},tfoot:{parent:["table"],children:["tr"]},th:{content:1,parent:["tr"]},thead:{parent:["table"],children:["tr"]},tr:{parent:["table","tbody","thead","tfoot"],children:["th","td"]},track:{parent:["audio","video"],void:!0},ul:{children:["li"],type:1},video:{children:["track","source"]},wbr:{type:9,void:!0}};function l(e){return t=>{i[t]={...e,...i[t]}}}["address","main","div","figure","p","pre"].forEach(l({content:1,type:65})),["abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","ruby","samp","strong","sub","sup","time","u","var"].forEach(l({content:8,type:73})),["p","pre"].forEach(l({content:8,type:65})),["s","small","span","del","ins"].forEach(l({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(l({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(l({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(l({type:89}));let a=Object.freeze(i),u=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],s=Object.keys(a).filter(e=>"canvas"!==e&&"iframe"!==e),c=2,f=3,d=4,p=5,h=Object.freeze({alt:1,cite:1,class:1,colspan:f,controls:d,datetime:1,default:d,disabled:d,dir:1,height:1,href:1,id:1,kind:1,label:1,lang:1,loading:1,loop:d,media:1,muted:d,poster:1,rel:1,role:1,rowspan:f,scope:1,sizes:1,span:f,start:f,style:p,src:1,srclang:1,srcset:1,tabindex:1,target:1,title:1,type:1,width:1}),m=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v({attributes:e={},className:t,children:n=null,selfClose:o=!1,tagName:i}){return o?r.createElement(i,g({className:t},e)):r.createElement(i,g({className:t},e),n)}class y{attribute(e,t){return t}node(e,t){return t}}class b{constructor(e,t,n){o(this,"greedy",!1),o(this,"options",void 0),o(this,"propName",void 0),o(this,"inverseName",void 0),o(this,"factory",void 0),this.options={...t},this.propName=e,this.inverseName=`no${e.charAt(0).toUpperCase()+e.slice(1)}`,this.factory=null!=n?n:null}createElement(e,t){let n=this.factory?r.createElement(this.factory,t,e):this.replaceWith(e,t);return n}doMatch(e,t,n,r=!1){return function(e,t,n,r=!1){let o=e.match(t instanceof RegExp?t:RegExp(t,"i"));return o?{match:o[0],void:r,...n(o),index:o.index,length:o[0].length,valid:!0}:null}(e,t,n,r)}onBeforeParse(e,t){return e}onAfterParse(e,t){return e}}},63108:function(e,t,n){"use strict";n.d(t,{wZ:function(){return g}});var r=n(4693),o=n(67294),i=n(95573),l=n.n(i);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let u=/(url|image|image-set)\(/i;class s extends r.F{attribute(e,t){return"style"===e&&Object.keys(t).forEach(e=>{String(t[e]).match(u)&&delete t[e]}),t}}let c=/^<(!doctype|(html|head|body)(\s|>))/i,f=/^(aria-|data-|\w+:)/iu,d=/{{{(\w+)\/?}}}/;function p(){if("undefined"!=typeof window&&"undefined"!=typeof document)return document.implementation.createHTMLDocument("Interweave")}class h{constructor(e,t={},n=[],o=[]){var i;a(this,"allowed",void 0),a(this,"banned",void 0),a(this,"blocked",void 0),a(this,"container",void 0),a(this,"content",[]),a(this,"props",void 0),a(this,"matchers",void 0),a(this,"filters",void 0),a(this,"keyIndex",void 0),this.props=t,this.matchers=n,this.filters=[...o,new s],this.keyIndex=-1,this.container=this.createContainer(e||""),this.allowed=new Set(null!==(i=t.allowList)&&void 0!==i?i:r.A),this.banned=new Set(r.B),this.blocked=new Set(t.blockList)}applyAttributeFilters(e,t){return this.filters.reduce((t,n)=>null!==t&&"function"==typeof n.attribute?n.attribute(e,t):t,t)}applyNodeFilters(e,t){return this.filters.reduce((t,n)=>null!==t&&"function"==typeof n.node?n.node(e,t):t,t)}applyMatchers(e,t){let n={},{props:r}=this,o=e,i=0,l=null;return(this.matchers.forEach(e=>{let a=e.asTag().toLowerCase(),u=this.getTagConfig(a);if(r[e.inverseName]||!this.isTagAllowed(a)||!this.canRenderChild(t,u))return;let s="";for(;o&&(l=e.match(o));){let{index:t,length:a,match:u,valid:c,void:f,...d}=l,p=e.propName+String(i);t>0&&(s+=o.slice(0,t)),c?(s+=f?`{{{${p}/}}}`:`{{{${p}}}}${u}{{{/${p}}}}`,this.keyIndex+=1,i+=1,n[p]={children:u,matcher:e,props:{...r,...d,key:this.keyIndex}}):s+=u,e.greedy?(o=s+o.slice(t+a),s=""):o=o.slice(t+(a||u.length))}e.greedy||(o=s+o)}),0===i)?e:this.replaceTokens(o,n)}canRenderChild(e,t){return!!e.tagName&&!!t.tagName&&!e.void&&(e.children.length>0?e.children.includes(t.tagName):!(e.invalid.length>0&&e.invalid.includes(t.tagName))&&(t.parent.length>0?t.parent.includes(e.tagName):(!!e.self||e.tagName!==t.tagName)&&!!(e&&e.content&t.type)))}convertLineBreaks(e){let{noHtml:t,disableLineBreaks:n}=this.props;if(t||n||e.match(/<((?:\/[ a-z]+)|(?:[ a-z]+\/))>/gi))return e;let r=e.replace(/\r\n/g,"\n");return(r=r.replace(/\n{3,}/g,"\n\n\n")).replace(/\n/g,"<br/>")}createContainer(e){var t;let r=void 0!==n.g&&n.g.INTERWEAVE_SSR_POLYFILL||p,o=r();if(!o)return;let i=null!==(t=this.props.containerTagName)&&void 0!==t?t:"body",a="body"===i||"fragment"===i?o.body:o.createElement(i);return e.match(c)||(a.innerHTML=this.convertLineBreaks(this.props.escapeHtml?l()(e):e)),a}extractAttributes(e){let{allowAttributes:t}=this.props,n={},o=0;return 1===e.nodeType&&e.attributes?([...e.attributes].forEach(i=>{let{name:l,value:a}=i,u=l.toLowerCase(),s=r.a[u]||r.a[l];if(!this.isSafe(e)||!u.match(f)&&(!t&&(!s||s===r.b)||u.startsWith("on")||a.replace(/(\s|\0|&#x0([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let c="style"===u?this.extractStyleAttribute(e):a;s===r.d?c=!0:s===r.e?c=Number.parseFloat(String(c)):s!==r.f&&(c=String(c)),n[r.c[u]||u]=this.applyAttributeFilters(u,c),o+=1}),0===o)?null:n:null}extractStyleAttribute(e){let t={};return Array.from(e.style).forEach(n=>{let r=e.style[n];("string"==typeof r||"number"==typeof r)&&(t[n.replace(/-([a-z])/g,(e,t)=>String(t).toUpperCase())]=r)}),t}getTagConfig(e){let t={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return r.T[e]?{...t,...r.T[e],tagName:e}:t}isSafe(e){if("undefined"!=typeof HTMLAnchorElement&&e instanceof HTMLAnchorElement){let t=e.getAttribute("href");if(null!=t&&t.startsWith("#"))return!0;let n=e.protocol.toLowerCase();return":"===n||"http:"===n||"https:"===n||"mailto:"===n||"tel:"===n}return!0}isTagAllowed(e){return!(this.banned.has(e)||this.blocked.has(e))&&(this.props.allowElements||this.allowed.has(e))}parse(){return this.container?this.parseNode(this.container,this.getTagConfig(this.container.nodeName.toLowerCase())):[]}parseNode(e,t){let{noHtml:n,noHtmlExceptMatchers:i,allowElements:l,transform:a,transformOnlyAllowList:u}=this.props,s=[],c="";return[...e.childNodes].forEach(e=>{if(1===e.nodeType){let d;let p=e.nodeName.toLowerCase(),h=this.getTagConfig(p);c&&(s.push(c),c="");let m=this.applyNodeFilters(p,e);if(m){if(a&&!(u&&!this.isTagAllowed(p))){this.keyIndex+=1;let e=this.keyIndex;d=this.parseNode(m,h);let t=a(m,d,h);if(null===t)return;if(void 0!==t){s.push(o.cloneElement(t,{key:e}));return}this.keyIndex=e-1}if(!this.banned.has(p)){if(!(n||i&&"br"!==p)&&this.isTagAllowed(p)&&(l||this.canRenderChild(t,h))){var f;this.keyIndex+=1;let e=this.extractAttributes(m),t={tagName:p};e&&(t.attributes=e),h.void&&(t.selfClose=h.void),s.push(o.createElement(r.E,{...t,key:this.keyIndex},null!==(f=d)&&void 0!==f?f:this.parseNode(m,h)))}else s=[...s,...this.parseNode(m,h.tagName?h:t)]}}}else if(3===e.nodeType){let r=n&&!i?e.textContent:this.applyMatchers(e.textContent||"",t);Array.isArray(r)?s=[...s,...r]:c+=r}}),c&&s.push(c),s}replaceTokens(e,t){if(!e.includes("{{{"))return e;let n=[],r=e,o=null;for(;o=r.match(d);){let e;let[i,l]=o,a=o.index,u=i.includes("/");a>0&&(n.push(r.slice(0,a)),r=r.slice(a));let{children:s,matcher:c,props:f}=t[l];if(u)e=i.length,n.push(c.createElement(s,f));else{let o=r.match(RegExp(`{{{/${l}}}}`));e=o.index+o[0].length,n.push(c.createElement(this.replaceTokens(r.slice(i.length,o.index),t),f))}r=r.slice(e)}return(r.length>0&&n.push(r),0===n.length)?"":1===n.length&&"string"==typeof n[0]?n[0]:n}}function m(e){var t;let n;let{attributes:i,className:l,containerTagName:a,content:u,emptyContent:s,parsedContent:c,tagName:f,noWrap:d}=e,p=null!==(t=null!=a?a:f)&&void 0!==t?t:"span";if(c)n=c;else{let t=new h(null!=u?u:"",e).parse();t.length>0&&(n=t)}return(n||(n=s),"fragment"===p||d)?o.createElement(o.Fragment,null,n):o.createElement(r.E,{attributes:i,className:l,tagName:p},n)}function g(e){let{attributes:t,className:n,content:r="",disableFilters:i=!1,disableMatchers:l=!1,emptyContent:a=null,filters:u=[],matchers:s=[],onAfterParse:c=null,onBeforeParse:f=null,tagName:d="span",noWrap:p=!1,...g}=e,v=l?[]:s,y=f?[f]:[],b=c?[c]:[];v.forEach(e=>{e.onBeforeParse&&y.push(e.onBeforeParse.bind(e)),e.onAfterParse&&b.push(e.onAfterParse.bind(e))});let x=y.reduce((t,n)=>{let r=n(t,e);return r},null!=r?r:""),w=new h(x,g,v,i?[]:u),E=b.reduce((t,n)=>{let r=n(t,e);return r},w.parse());return o.createElement(m,{attributes:t,className:n,containerTagName:e.containerTagName,emptyContent:a,noWrap:p,parsedContent:0===E.length?void 0:E,tagName:d})}},18156:function(e,t){"use strict";for(var n="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),r={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},l=1;l<20;l++)i["f"+l]=111+l;function a(e){return e=o[e=e.toLowerCase()]||e}t.TB=function(e,t){var n,o,l,u,s;return n=e,o={byKey:!0},l=t,!o||"byKey"in o||(l=o,o=null),Array.isArray(n)||(n=[n]),u=n.map(function(e){return function(e,t){var n=t&&t.byKey,o={},l=(e=e.replace("++","+add")).split("+"),u=l.length;for(var s in r)o[r[s]]=!1;var c=!0,f=!1,d=void 0;try{for(var p,h=l[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var m,g=p.value,v=g.endsWith("?")&&g.length>1;v&&(g=g.slice(0,-1));var y=a(g),b=r[y];1!==u&&b||(n?o.key=y:o.which=(m=g,i[m=a(m)]||m.toUpperCase().charCodeAt(0))),b&&(o[b]=!v||null)}}catch(e){f=!0,d=e}finally{try{!c&&h.return&&h.return()}finally{if(f)throw d}}return o}(e,o)}),s=function(e){return u.some(function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)})},null==l?s:s(l)}},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?o(e):i(e)}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,l=o.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var o=l.call(e);return r&&(t?e[a]=n:delete e[a]),o}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},23279:function(e,t,n){var r=n(13218),o=n(7771),i=n(14841),l=Math.max,a=Math.min;e.exports=function(e,t,n){var u,s,c,f,d,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=u,r=s;return u=s=void 0,h=t,f=e.apply(r,n)}function b(e){var n=e-p,r=e-h;return void 0===p||n>=t||n<0||g&&r>=c}function x(){var e,n,r,i=o();if(b(i))return w(i);d=setTimeout(x,(e=i-p,n=i-h,r=t-e,g?a(r,c-n):r))}function w(e){return(d=void 0,v&&u)?y(e):(u=s=void 0,f)}function E(){var e,n=o(),r=b(n);if(u=arguments,s=this,p=n,r){if(void 0===d)return h=e=p,d=setTimeout(x,t),m?y(e):f;if(g)return clearTimeout(d),d=setTimeout(x,t),y(p)}return void 0===d&&(d=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,c=(g="maxWait"in n)?l(i(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),E.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=s=d=void 0},E.flush=function(){return void 0===d?f:w(o())},E}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},23493:function(e,t,n){var r=n(23279),o=n(13218);e.exports=function(e,t,n){var i=!0,l=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,l="trailing"in n?!!n.trailing:l),r(e,t,{leading:i,maxWait:t,trailing:l})}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),l=0/0,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return l;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):a.test(e)?l:+e}},12902:function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(e){return!!e&&!!e[_]}function i(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===W}(e)||Array.isArray(e)||!!e[D]||!!(null===(t=e.constructor)||void 0===t?void 0:t[D])||c(e)||f(e))}function l(e,t,n){void 0===n&&(n=!1),0===a(e)?(n?Object.keys:Z)(e).forEach(function(r){n&&"symbol"==typeof r||t(r,e[r],e)}):e.forEach(function(n,r){return t(r,n,e)})}function a(e){var t=e[_];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:c(e)?2:f(e)?3:0}function u(e,t){return 2===a(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function s(e,t,n){var r=a(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function c(e){return j&&e instanceof Map}function f(e){return F&&e instanceof Set}function d(e){return e.o||e.t}function p(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=V(e);delete t[_];for(var n=Z(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function h(e,t){return void 0===t&&(t=!1),g(e)||o(e)||!i(e)||(a(e)>1&&(e.set=e.add=e.clear=e.delete=m),Object.freeze(e),t&&l(e,function(e,t){return h(t,!0)},!0)),e}function m(){r(2)}function g(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function v(e){var t=$[e];return t||r(18,e),t}function y(e,t){t&&(v("Patches"),e.u=[],e.s=[],e.v=t)}function b(e){x(e),e.p.forEach(E),e.p=null}function x(e){e===A&&(A=e.l)}function w(e){return A={p:[],l:A,h:e,m:!0,_:0}}function E(e){var t=e[_];0===t.i||1===t.i?t.j():t.g=!0}function T(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||v("ES5").S(t,e,o),o?(n[_].P&&(b(t),r(4)),i(e)&&(e=S(t,e),t.l||I(t,e)),t.u&&v("Patches").M(n[_].t,e,t.u,t.s)):e=S(t,n,[]),b(t),t.u&&t.v(t.u,t.s),e!==M?e:void 0}function S(e,t,n){if(g(t))return t;var r=t[_];if(!r)return l(t,function(o,i){return C(e,r,t,o,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return I(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=p(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),l(i,function(t,i){return C(e,r,o,t,i,n,a)}),I(e,o,!1),n&&e.u&&v("Patches").N(r,n,e.u,e.s)}return r.o}function C(e,t,n,r,l,a,c){if(o(l)){var f=S(e,l,a&&t&&3!==t.i&&!u(t.R,r)?a.concat(r):void 0);if(s(n,r,f),!o(f))return;e.m=!1}else c&&n.add(l);if(i(l)&&!g(l)){if(!e.h.D&&e._<1)return;S(e,l),t&&t.A.l||I(e,l)}}function I(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&h(t,n)}function z(e,t){var n=e[_];return(n?d(n):e)[t]}function k(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function O(e){e.P||(e.P=!0,e.l&&O(e.l))}function R(e){e.o||(e.o=p(e.t))}function P(e,t,n){var r,o,i,l,a,u,s,d=c(t)?v("MapSet").F(t,n):f(t)?v("MapSet").T(t,n):e.O?(i=o={i:(r=Array.isArray(t))?1:0,A:n?n.A:A,P:!1,I:!1,R:{},l:n,t:t,k:null,o:null,j:null,C:!1},l=G,r&&(i=[o],l=U),u=(a=Proxy.revocable(i,l)).revoke,s=a.proxy,o.k=s,o.j=u,s):v("ES5").J(t,n);return(n?n.A:A).p.push(d),d}function B(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return p(e)}n.d(t,{P2:function(){return X},Uy:function(){return q},_x:function(){return Y},mv:function(){return o}});var H,A,N="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),j="undefined"!=typeof Map,F="undefined"!=typeof Set,L="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,M=N?Symbol.for("immer-nothing"):((H={})["immer-nothing"]=!0,H),D=N?Symbol.for("immer-draftable"):"__$immer_draftable",_=N?Symbol.for("immer-state"):"__$immer_state",W=""+Object.prototype.constructor,Z="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,V=Object.getOwnPropertyDescriptors||function(e){var t={};return Z(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},$={},G={get:function(e,t){if(t===_)return e;var n,r,o=d(e);if(!u(o,t))return(r=k(o,t))?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(e.k):void 0;var l=o[t];return e.I||!i(l)?l:l===z(e.t,t)?(R(e),e.o[t]=P(e.A.h,l,e)):l},has:function(e,t){return t in d(e)},ownKeys:function(e){return Reflect.ownKeys(d(e))},set:function(e,t,n){var r=k(d(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=z(d(e),t),i=null==o?void 0:o[_];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if((n===o?0!==n||1/n==1/o:n!=n&&o!=o)&&(void 0!==n||u(e.t,t)))return!0;R(e),O(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==z(e.t,t)||t in e.t?(e.R[t]=!1,R(e),O(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=d(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},U={};l(G,function(e,t){U[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),U.deleteProperty=function(e,t){return U.set.call(this,e,t,void 0)},U.set=function(e,t,n){return G.set.call(this,e[0],t,n,e[0])};var K=new(function(){function e(e){var t=this;this.O=L,this.D=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var l,a=n;return n=e,function(e){var r=this;void 0===e&&(e=a);for(var o=arguments.length,i=Array(o>1?o-1:0),l=1;l<o;l++)i[l-1]=arguments[l];return t.produce(e,function(e){var t;return(t=n).call.apply(t,[r,e].concat(i))})}}if("function"!=typeof n&&r(6),void 0!==o&&"function"!=typeof o&&r(7),i(e)){var u=w(t),s=P(t,e,void 0),c=!0;try{l=n(s),c=!1}finally{c?b(u):x(u)}return"undefined"!=typeof Promise&&l instanceof Promise?l.then(function(e){return y(u,o),T(e,u)},function(e){throw b(u),e}):(y(u,o),T(l,u))}if(!e||"object"!=typeof e){if(void 0===(l=n(e))&&(l=e),l===M&&(l=void 0),t.D&&h(l,!0),o){var f=[],d=[];v("Patches").M(e,l,f,d),o(f,d)}return l}r(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,function(t){return e.apply(void 0,[t].concat(o))})};var r,o,i=t.produce(e,n,function(e,t){r=e,o=t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return[e,r,o]}):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){i(e)||r(8),o(e)&&(o(t=e)||r(22,t),e=function e(t){if(!i(t))return t;var n,r=t[_],o=a(t);if(r){if(!r.P&&(r.i<4||!v("ES5").K(r)))return r.t;r.I=!0,n=B(t,o),r.I=!1}else n=B(t,o);return l(n,function(t,o){var i;r&&(2===a(i=r.t)?i.get(t):i[t])===o||s(n,t,e(o))}),3===o?new Set(n):n}(t));var t,n=w(this),u=P(this,e,void 0);return u[_].C=!0,x(n),u},t.finishDraft=function(e,t){var n=(e&&e[_]).A;return y(n,t),T(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!L&&r(20),this.O=e},t.applyPatches=function(e,t){for(n=t.length-1;n>=0;n--){var n,r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=v("Patches").$;return o(e)?i(e,t):this.produce(e,function(e){return i(e,t)})},e}()),q=K.produce,X=(K.produceWithPatches.bind(K),K.setAutoFreeze.bind(K),K.setUseProxies.bind(K),K.applyPatches.bind(K),K.createDraft.bind(K)),Y=K.finishDraft.bind(K)},26246:function(e,t,n){"use strict";n.d(t,{OO:function(){return tP}});var r,o=n(67294),i=n(73935);function l(e,t){return n=>e(t(n))}function a(e,t){return t(e)}function u(...e){return e}function s(e){e()}function c(e){return void 0!==e}function f(){}function d(e){e(2)}function p(e){return e(4)}function h(e,t){return e(1,e=>t(0,e))}function m(e,t){let n=e(1,e=>{n(),t(e)});return n}function g(){let e=[];return(t,n)=>{switch(t){case 2:e.splice(0,e.length);return;case 1:return e.push(n),()=>{let t=e.indexOf(n);t>-1&&e.splice(t,1)};case 0:e.slice().forEach(e=>{e(n)});return;default:throw Error(`unrecognized action ${t}`)}}}function v(e){let t=e,n=g();return(e,r)=>{switch(e){case 1:r(t);break;case 0:t=r;break;case 4:return t}return n(e,r)}}function y(e){var t,n;return h(e,t=g()),t}function b(e,t){var n,r;return h(e,n=v(t)),n}function x(e,...t){let n=function(...e){return t=>e.reduceRight(a,t)}(...t);return(t,r)=>{switch(t){case 1:return e(1,n(r));case 2:d(e);return}}}function w(e,t){return e===t}function E(e=w){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function T(e){return t=>n=>{e(n)&&t(n)}}function S(e){return t=>l(t,e)}function C(e){return t=>()=>t(e)}function I(e,t){return n=>r=>n(t=e(t,r))}function z(e){return t=>n=>{e>0?e--:t(n)}}function k(e){let t,n=null;return r=>o=>{n=o,t||(t=setTimeout(()=>{t=void 0,r(n)},e))}}function O(e){let t;return n=>r=>{t&&clearTimeout(t),t=setTimeout(()=>{n(r)},e)}}function R(...e){let t=Array(e.length),n=0,r=null,o=Math.pow(2,e.length)-1;return e.forEach((e,i)=>{let l=Math.pow(2,i);e(1,e=>{let a=n;n|=l,t[i]=e,a!==o&&n===o&&r&&(r(),r=null)})}),e=>i=>{let l=()=>e([i].concat(t));n===o?l():r=l}}function P(...e){return function(t,n){switch(t){case 1:return function(...e){return()=>{e.map(s)}}(...e.map(e=>e(1,n)));case 2:return;default:throw Error(`unrecognized action ${t}`)}}}function B(e,t=w){return x(e,E(t))}function H(...e){let t=g(),n=Array(e.length),r=0,o=Math.pow(2,e.length)-1;return e.forEach((e,i)=>{let l=Math.pow(2,i);e(1,e=>{n[i]=e,(r|=l)===o&&t(0,n)})}),function(e,i){switch(e){case 1:return r===o&&i(n),t(1,i);case 2:return d(t);default:throw Error(`unrecognized action ${e}`)}}}function A(e,t=[],{singleton:n}={singleton:!0}){return{id:N(),constructor:e,dependencies:t,singleton:n}}let N=()=>Symbol(),j="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function F(e,t,n){let r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),l=Object.keys(t.methods||{}),a=Object.keys(t.events||{}),u=o.createContext({});function s(e,n){for(let o of(e.propsReady&&(0,e.propsReady)(0,!1),r)){let r=e[t.required[o]];r(0,n[o])}for(let r of i)if(r in n){let o=e[t.optional[r]];o(0,n[r])}e.propsReady&&(0,e.propsReady)(0,!0)}let c=o.forwardRef((c,p)=>{var h;let{children:m,...g}=c,[v]=o.useState(()=>{var t,n;return s(t=function(e){let t=new Map,n=({id:e,constructor:r,dependencies:o,singleton:i})=>{if(i&&t.has(e))return t.get(e);let l=r(o.map(e=>n(e)));return i&&t.set(e,l),l};return n(e)}(e),g),t}),[y]=o.useState(()=>{var e;return e=v,a.reduce((n,r)=>(n[r]=function(e){let t,n;let r=()=>t&&t();return function(o,i){switch(o){case 1:if(!i)return r(),f;if(n===i)return;return r(),n=i,t=e(1,i);case 2:r(),n=null;return;default:throw Error(`unrecognized action ${o}`)}}}(e[t.events[r]]),n),{})});return j(()=>{for(let e of a)e in g&&(0,y[e])(1,g[e]);return()=>{Object.values(y).map(d)}},[g,y,v]),j(()=>{s(v,g)}),o.useImperativeHandle(p,(h=l.reduce((e,n)=>(e[n]=e=>{let r=v[t.methods[n]];r(0,e)},e),{}),()=>h)),o.createElement(u.Provider,{value:v},n?o.createElement(n,function(e,t){let n={},r={},o=0,i=e.length;for(;o<i;)r[e[o]]=1,o+=1;for(let e in t)r.hasOwnProperty(e)||(n[e]=t[e]);return n}([...r,...i,...a],g),m):m)}),p=e=>{var t;return o.useCallback((t=o.useContext(u)[e],e=>{var n,r;(n=t)(0,r=e)}),[e])},h=e=>{let t=o.useContext(u),n=t[e],[r,i]=o.useState(()=>n(4));return j(()=>n(1,e=>{e!==r&&i(()=>e)}),[n,r]),r},m=(e,t)=>{let n=o.useContext(u),r=n[e];j(()=>r(1,t),[t,r])};return{Component:c,usePublisher:p,useEmitterValue:h,useEmitter:m}}let L="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;var M=((r=M||{})[r.DEBUG=0]="DEBUG",r[r.INFO=1]="INFO",r[r.WARN=2]="WARN",r[r.ERROR=3]="ERROR",r);let D={0:"debug",1:"log",2:"warn",3:"error"},_=()=>"undefined"==typeof globalThis?window:globalThis,W=A(()=>{let e=v(3),t=v((t,n,r=1)=>{var o;let i=null!=(o=_().VIRTUOSO_LOG_LEVEL)?o:e(4);r>=i&&console[D[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)});return{log:t,logLevel:e}},[],{singleton:!0});function Z(e,t=!0){let n=o.useRef(null),r=e=>{};if("undefined"!=typeof ResizeObserver){let i=o.useMemo(()=>new ResizeObserver(t=>{let n=t[0].target;null!==n.offsetParent&&e(n)}),[e]);r=e=>{e&&t?(i.observe(e),n.current=e):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function V(e,t=!0){return Z(e,t).callbackRef}function $(e,t,n,r,i,l,a){let u=o.useCallback(n=>{var o;let u=function(e,t,n,r){let o=e.length;if(0===o)return null;let i=[];for(let l=0;l<o;l++){let o=e.item(l);if(!o||void 0===o.dataset.index)continue;let a=parseInt(o.dataset.index),u=parseFloat(o.dataset.knownSize),s=t(o,n);if(0===s&&r("Zero-sized element, this should not happen",{child:o},M.ERROR),s===u)continue;let c=i[i.length-1];0===i.length||c.size!==s||c.endIndex!==a-1?i.push({startIndex:a,endIndex:a,size:s}):i[i.length-1].endIndex++}return i}(n.children,t,"offsetHeight",i),s=n.parentElement;for(;!s.dataset.virtuosoScroller;)s=s.parentElement;let c="window"===s.lastElementChild.dataset.viewportType,f=a?a.scrollTop:c?window.pageYOffset||document.documentElement.scrollTop:s.scrollTop,d=a?a.scrollHeight:c?document.documentElement.scrollHeight:s.scrollHeight,p=a?a.offsetHeight:c?window.innerHeight:s.offsetHeight;r({scrollTop:Math.max(f,0),scrollHeight:d,viewportHeight:p}),null==l||l(("normal"===(o=getComputedStyle(n).rowGap)||(null==o?void 0:o.endsWith("px"))||i("row-gap was not resolved to pixel value correctly",o,M.WARN),"normal"===o)?0:parseInt(null!=o?o:"0",10)),null!==u&&e(u)},[e,t,i,l,a,r]);return Z(u,n)}function G(e,t){return Math.round(e.getBoundingClientRect()[t])}function U(e,t){return 1.01>Math.abs(e-t)}function K(e,t,n,r=f,l){let a=o.useRef(null),u=o.useRef(null),s=o.useRef(null),c=o.useCallback(n=>{let r=n.target,o=r===window||r===document,l=o?window.pageYOffset||document.documentElement.scrollTop:r.scrollTop,a=o?document.documentElement.scrollHeight:r.scrollHeight,c=o?window.innerHeight:r.offsetHeight,f=()=>{e({scrollTop:Math.max(l,0),scrollHeight:a,viewportHeight:c})};n.suppressFlushSync?f():i.flushSync(f),null!==u.current&&(l===u.current||l<=0||l===a-c)&&(u.current=null,t(!0),s.current&&(clearTimeout(s.current),s.current=null))},[e,t]);return o.useEffect(()=>{let e=l||a.current;return r(l||a.current),c({target:e,suppressFlushSync:!0}),e.addEventListener("scroll",c,{passive:!0}),()=>{r(null),e.removeEventListener("scroll",c)}},[a,c,n,r,l]),{scrollerRef:a,scrollByCallback:function(e){a.current.scrollBy(e)},scrollToCallback:function(n){let r,o,i;let l=a.current;if(!l||"offsetHeight"in l&&0===l.offsetHeight)return;let c="smooth"===n.behavior;l===window?(o=Math.max(G(document.documentElement,"height"),document.documentElement.scrollHeight),r=window.innerHeight,i=document.documentElement.scrollTop):(o=l.scrollHeight,r=G(l,"height"),i=l.scrollTop);let f=o-r;if(n.top=Math.ceil(Math.max(Math.min(f,n.top),0)),U(r,o)||n.top===i){e({scrollTop:i,scrollHeight:o,viewportHeight:r}),c&&t(!0);return}c?(u.current=n.top,s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,u.current=null,t(!0)},1e3)):u.current=null,l.scrollTo(n)}}}let q=A(()=>{let e=g(),t=g(),n=v(0),r=g(),o=v(0),i=g(),l=g(),a=v(0),u=v(0),s=v(0),c=v(0),f=g(),d=g(),p=v(!1);return h(x(e,S(({scrollTop:e})=>e)),t),h(x(e,S(({scrollHeight:e})=>e)),l),h(t,o),{scrollContainerState:e,scrollTop:t,viewportHeight:i,headerHeight:a,fixedHeaderHeight:u,fixedFooterHeight:s,footerHeight:c,scrollHeight:l,smoothScrollTargetReached:r,scrollTo:f,scrollBy:d,statefulScrollTop:o,deviation:n,scrollingInProgress:p}},[],{singleton:!0}),X={lvl:0};function Y(e,t,n,r=X,o=X){return{k:e,v:t,lvl:n,l:r,r:o}}function J(e){return e===X}function Q(e,t){return J(e)?void 0:t===e.k?e.v:t<e.k?Q(e.l,t):Q(e.r,t)}function ee(e,t,n="k"){if(J(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){let r=ee(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return ee(e.l,t,n)}function et(e,t,n){var r,o;return J(e)?Y(t,n,1):t===e.k?er(e,{k:t,v:n}):t<e.k?eu(es(er(e,{l:et(e.l,t,n)}))):eu(es(er(e,{r:et(e.r,t,n)})))}function en(e){return J(e)?[]:[...en(e.l),{k:e.k,v:e.v},...en(e.r)]}function er(e,t){return Y(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 eo(e){return J(e)||e.lvl>e.r.lvl}function ei(e){let{l:t,r:n,lvl:r}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(eo(t))return es(er(e,{lvl:r-1}));if(!J(t)&&!J(t.r))return er(t.r,{l:er(t,{r:t.r.l}),r:er(e,{l:t.r.r,lvl:r-1}),lvl:r});throw Error("Unexpected empty nodes")}if(eo(e))return eu(er(e,{lvl:r-1}));if(J(n)||J(n.l))throw Error("Unexpected empty nodes");{let t=n.l,o=eo(t)?n.lvl-1:n.lvl;return er(t,{l:er(e,{r:t.l,lvl:r-1}),r:eu(er(n,{l:t.r,lvl:o})),lvl:t.lvl+1})}}function el(e,t,n){if(J(e))return[];let r=ee(e,t)[0];return ea(function e(t,n,r){if(J(t))return[];let{k:o,v:i,l,r:a}=t,u=[];return o>n&&(u=u.concat(e(l,n,r))),o>=n&&o<=r&&u.push({k:o,v:i}),o<=r&&(u=u.concat(e(a,n,r))),u}(e,r,n),({k:e,v:t})=>({index:e,value:t}))}function ea(e,t){let n=e.length;if(0===n)return[];let{index:r,value:o}=t(e[0]),i=[];for(let l=1;l<n;l++){let{index:n,value:a}=t(e[l]);i.push({start:r,end:n-1,value:o}),r=n,o=a}return i.push({start:r,end:1/0,value:o}),i}function eu(e){let{r:t,lvl:n}=e;return J(t)||J(t.r)||t.lvl!==n||t.r.lvl!==n?e:er(t,{l:er(e,{r:t.l}),lvl:n+1})}function es(e){let{l:t}=e;return J(t)||t.lvl!==e.lvl?e:er(t,{r:er(e,{l:t.r})})}function ec(e,t,n,r=0){let o=e.length-1;for(;r<=o;){let i=Math.floor((r+o)/2),l=e[i],a=n(l,t);if(0===a)return i;if(-1===a){if(o-r<2)return i-1;o=i-1}else{if(o===r)return i;r=i+1}}throw Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}let ef=A(()=>{let e=v(!1);return{recalcInProgress:e}},[],{singleton:!0});function ed(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;let o=n===e;return r-(o?0:1)}function ep({index:e},t){return t===e?0:t<e?-1:1}function eh({offset:e},t){return t===e?0:t<e?-1:1}function em(e){return{index:e.index,value:e}}function eg(e,t,n,r){let o=e,i=0,l=0,a=0,u=0;if(0!==t){u=ec(o,t-1,ep);let e=o[u];a=e.offset;let r=ee(n,t-1);i=r[0],l=r[1],o.length&&o[u].size===ee(n,t)[1]&&(u-=1),o=o.slice(0,u+1)}else o=[];for(let{start:e,value:u}of el(n,t,1/0)){let t=e-i,n=t*l+a+t*r;o.push({offset:n,size:u,index:e}),i=e,a=n,l=u}return{offsetTree:o,lastIndex:i,lastOffset:a,lastSize:l}}function ev(e,[t,n,r,o]){t.length>0&&r("received item sizes",t,M.DEBUG);let i=e.sizeTree,l=i,a=0;if(n.length>0&&J(i)&&2===t.length){let e=t[0].size,r=t[1].size;l=n.reduce((t,n)=>et(et(t,n,e),n+1,r),l)}else[l,a]=function(e,t){let n=J(e)?0:1/0;for(let r of t){let{size:t,startIndex:o,endIndex:i}=r;if(n=Math.min(n,o),J(e)){e=et(e,0,t);continue}let l=el(e,o-1,i+1);if(l.some(function(e){let{size:t,startIndex:n,endIndex:r}=e;return e=>e.start===n&&(e.end===r||e.end===1/0)&&e.value===t}(r)))continue;let a=!1,u=!1;for(let{start:n,end:r,value:o}of l)a?(i>=n||t===o)&&(e=function e(t,n){if(J(t))return X;let{k:r,l:o,r:i}=t;if(n===r){if(J(o))return i;if(J(i))return o;{let[e,n]=function e(t){return J(t.r)?[t.k,t.v]:e(t.r)}(o);return ei(er(t,{k:e,v:n,l:function e(t){return J(t.r)?t.l:ei(er(t,{r:e(t.r)}))}(o)}))}}return n<r?ei(er(t,{l:e(o,n)})):ei(er(t,{r:e(i,n)}))}(e,n)):(u=o!==t,a=!0),r>i&&i>=n&&o!==t&&(e=et(e,i+1,o));u&&(e=et(e,o,t))}return[e,n]}(l,t);if(l===i)return e;let{offsetTree:u,lastIndex:s,lastSize:c,lastOffset:f}=eg(e.offsetTree,a,l,o);return{sizeTree:l,offsetTree:u,lastIndex:s,lastOffset:f,lastSize:c,groupOffsetTree:n.reduce((e,t)=>et(e,t,ey(t,u,o)),X),groupIndices:n}}function ey(e,t,n){if(0===t.length)return 0;let{offset:r,index:o,size:i}=t[ec(t,e,ep)],l=e-o,a=i*l+(l-1)*n+r;return a>0?a+n:a}function eb(e,t,n){if(void 0!==e.groupIndex)return t.groupIndices[e.groupIndex]+1;{let r="LAST"===e.index?n:e.index,o=ex(r,t);return Math.max(0,o,Math.min(n,o))}}function ex(e,t){if(!ew(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function ew(e){return!J(e.groupOffsetTree)}let eE={offsetHeight:"height",offsetWidth:"width"},eT=A(([{log:e},{recalcInProgress:t}])=>{let n=g(),r=g(),o=b(r,0),i=g(),l=g(),a=v(0),u=v([]),s=v(void 0),c=v(void 0),f=v((e,t)=>G(e,eE[t])),d=v(void 0),p=v(0),m={offsetTree:[],sizeTree:X,groupOffsetTree:X,lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},w=b(x(n,R(u,e,p),I(ev,m),E()),m),C=b(x(u,E(),I((e,t)=>({prev:e.current,current:t}),{prev:[],current:[]}),S(({prev:e})=>e)),[]);h(x(u,T(e=>e.length>0),R(w,p),S(([e,t,n])=>{let r=e.reduce((e,r,o)=>et(e,r,ey(r,t.offsetTree,n)||o),X);return{...t,groupIndices:e,groupOffsetTree:r}})),w),h(x(r,R(w),T(([e,{lastIndex:t,groupIndices:n}])=>e<t&&0===n.length),S(([e,{lastIndex:t,lastSize:n}])=>[{startIndex:e,endIndex:t,size:n}])),n),h(s,c);let z=b(x(s,S(e=>void 0===e)),!0);h(x(c,T(e=>void 0!==e&&J(w(4).sizeTree)),S(e=>[{startIndex:0,endIndex:0,size:e}])),n);let k=y(x(n,R(w),I(({sizes:e},[t,n])=>({changed:n!==e,sizes:n}),{changed:!1,sizes:m}),S(e=>e.changed)));x(a,I((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),S(e=>e.diff))(1,e=>{let{groupIndices:n}=w(4);if(e>0)t(0,!0),i(0,e+ed(e,n));else if(e<0){let t=C(4);t.length>0&&(e-=ed(-e,t)),l(0,e)}}),x(a,R(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:a},M.ERROR)});let O=y(i);h(x(i,R(w),S(([e,t])=>{let n=t.groupIndices.length>0,r=[],o=t.lastSize;if(n){let n=Q(t.sizeTree,0),i=0,l=0;for(;i<e;){let e=t.groupIndices[l],a=t.groupIndices.length===l+1?1/0:t.groupIndices[l+1]-e-1;r.push({startIndex:e,endIndex:e,size:n}),r.push({startIndex:e+1,endIndex:e+1+a-1,size:o}),l++,i+=a+1}let a=en(t.sizeTree),u=i!==e;return u&&a.shift(),a.reduce((t,{k:n,v:r})=>{let o=t.ranges;return 0!==t.prevSize&&(o=[...t.ranges,{startIndex:t.prevIndex,endIndex:n+e-1,size:t.prevSize}]),{ranges:o,prevIndex:n+e,prevSize:r}},{ranges:r,prevIndex:e,prevSize:0}).ranges}return en(t.sizeTree).reduce((t,{k:n,v:r})=>({ranges:[...t.ranges,{startIndex:t.prevIndex,endIndex:n+e-1,size:t.prevSize}],prevIndex:n+e,prevSize:r}),{ranges:[],prevIndex:0,prevSize:o}).ranges})),n);let P=y(x(l,R(w,p),S(([e,{offsetTree:t},n])=>ey(-e,t,n))));return h(x(l,R(w,p),S(([e,t,n])=>{let r=t.groupIndices.length>0;if(r){if(J(t.sizeTree))return t;let r=X,o=C(4),i=0,l=0,a=0;for(;i<-e;){a=o[l];let e=o[l+1]-a-1;l++,i+=e+1}r=en(t.sizeTree).reduce((t,{k:n,v:r})=>et(t,Math.max(0,n+e),r),r);let u=i!==-e;if(u){let n=Q(t.sizeTree,a);r=et(r,0,n);let o=ee(t.sizeTree,-e+1)[1];r=et(r,1,o)}return{...t,sizeTree:r,...eg(t.offsetTree,0,r,n)}}{let r=en(t.sizeTree).reduce((t,{k:n,v:r})=>et(t,Math.max(0,n+e),r),X);return{...t,sizeTree:r,...eg(t.offsetTree,0,r,n)}}})),w),{data:d,totalCount:r,sizeRanges:n,groupIndices:u,defaultItemSize:c,fixedItemSize:s,unshiftWith:i,shiftWith:l,shiftWithOffset:P,beforeUnshiftWith:O,firstItemIndex:a,gap:p,sizes:w,listRefresh:k,statefulTotalCount:o,trackItemSizes:z,itemSize:f}},u(W,ef),{singleton:!0}),eS="undefined"!=typeof document&&"scrollBehavior"in document.documentElement.style;function eC(e){let t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&eS||(t.behavior="auto"),t.offset||(t.offset=0),t}let eI=A(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:o,viewportHeight:i,scrollTo:l,smoothScrollTargetReached:a,headerHeight:u,footerHeight:s,fixedHeaderHeight:c,fixedFooterHeight:f},{log:d}])=>{let p=g(),y=v(0),b=null,w=null,E=null;function T(){b&&(b(),b=null),E&&(E(),E=null),w&&(clearTimeout(w),w=null),o(0,!1)}return h(x(p,R(e,i,t,y,u,s,d),R(r,c,f),S(([[e,t,r,i,l,u,s,c],f,d,h])=>{let g=eC(e),{align:v,behavior:y,offset:S}=g,C=i-1,I=eb(g,t,C),z=ey(I,t.offsetTree,f)+u;"end"===v?(z+=d+ee(t.sizeTree,I)[1]-r+h,I===C&&(z+=s)):"center"===v?z+=(d+ee(t.sizeTree,I)[1]-r+h)/2:z-=l,S&&(z+=S);let k=t=>{T(),t?(c("retrying to scroll to",{location:e},M.DEBUG),p(0,e)):c("list did not change, scroll successful",{},M.DEBUG)};if(T(),"smooth"===y){let e=!1;E=n(1,t=>{e=e||t}),b=m(a,()=>{k(e)})}else b=m(x(n,e=>{let t=setTimeout(()=>{e(!1)},150);return n=>{n&&(e(!0),clearTimeout(t))}}),k);return w=setTimeout(()=>{T()},1200),o(0,!0),c("scrolling from index to",{index:I,top:z,behavior:y},M.DEBUG),{top:z,behavior:y}})),l),{scrollToIndex:p,topListHeight:y}},u(eT,q,W),{singleton:!0}),ez="down",ek={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},eO=A(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:o,scrollBy:i}])=>{let l=v(!1),a=v(!0),u=g(),s=g(),c=v(4),f=v(0),d=b(x(P(x(B(t),z(1),C(!0)),x(B(t),z(1),C(!1),O(100))),E()),!1),p=b(x(P(x(i,C(!0)),x(i,C(!1),O(200))),E()),!1);h(x(H(B(t),B(f)),S(([e,t])=>e<=t),E()),a),h(x(a,k(50)),s);let m=y(x(H(e,B(n),B(r),B(o),B(c)),I((e,[{scrollTop:t,scrollHeight:n},r,o,i,l])=>{let a={viewportHeight:r,scrollTop:t,scrollHeight:n};if(t+r-n>-l){let n,r;return t>e.state.scrollTop?(n="SCROLLED_DOWN",r=e.state.scrollTop-t):(n="SIZE_DECREASED",r=e.state.scrollTop-t||e.scrollTopDelta),{atBottom:!0,state:a,atBottomBecause:n,scrollTopDelta:r}}return{atBottom:!1,notAtBottomBecause:a.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":r<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":t<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:a}},ek),E((e,t)=>e&&e.atBottom===t.atBottom))),w=b(x(e,I((e,{scrollTop:t,scrollHeight:n,viewportHeight:r})=>U(e.scrollHeight,n)?{scrollTop:t,scrollHeight:n,jump:0,changed:!1}:e.scrollTop!==t&&n-(t+r)<1?{scrollHeight:n,scrollTop:t,jump:e.scrollTop-t,changed:!0}:{scrollHeight:n,scrollTop:t,jump:0,changed:!0},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),T(e=>e.changed),S(e=>e.jump)),0);h(x(m,S(e=>e.atBottom)),l),h(x(l,k(50)),u);let A=v(ez);h(x(e,S(({scrollTop:e})=>e),E(),I((e,t)=>p(4)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?"up":ez,prevScrollTop:t},{direction:ez,prevScrollTop:0}),S(e=>e.direction)),A),h(x(e,k(50),C("none")),A);let N=v(0);return h(x(d,T(e=>!e),C(0)),N),h(x(t,k(100),R(d),T(([e,t])=>!!t),I(([e,t],[n])=>[t,n],[0,0]),S(([e,t])=>t-e)),N),{isScrolling:d,isAtTop:a,isAtBottom:l,atBottomState:m,atTopStateChange:s,atBottomStateChange:u,scrollDirection:A,atBottomThreshold:c,atTopThreshold:f,scrollVelocity:N,lastJumpDueToItemResize:w}},u(q)),eR=A(([{log:e}])=>{let t=v(!1),n=y(x(t,T(e=>e),E()));return t(1,t=>{t&&e(4)("props updated",{},M.DEBUG)}),{propsReady:t,didMount:n}},u(W),{singleton:!0}),eP=A(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:o},{didMount:i}])=>{let l=v(!0),a=v(0),u=v(!1);return h(x(i,R(a),T(([e,t])=>!!t),C(!1)),l),x(H(t,i),R(l,e,n,u),T(([[,e],t,{sizeTree:n},r,o])=>e&&(!J(n)||c(r))&&!t&&!o),R(a))(1,([,e])=>{u(0,!0),function e(t,n){0==t?n():requestAnimationFrame(()=>e(t-1,n))}(2,()=>{m(r,()=>{l(0,!0)}),o(0,e)})}),{scrolledToInitialItem:l,initialTopMostItemIndex:a}},u(eT,q,eI,eR),{singleton:!0});function eB(e){return!!e&&("smooth"===e?"smooth":"auto")}let eH=(e,t)=>"function"==typeof e?eB(e(t)):t&&eB(e),eA=A(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:o},{scrolledToInitialItem:i},{propsReady:l,didMount:a},{log:u},{scrollingInProgress:s}])=>{let c=v(!1),f=g(),d=null;function p(e){o(0,{index:"LAST",align:"end",behavior:e})}function h(e){let t=m(r,t=>{!e||t.atBottom||"SIZE_INCREASED"!==t.notAtBottomBecause||d||(u(4)("scrolling to bottom due to increased size",{},M.DEBUG),p("auto"))});setTimeout(t,100)}return x(H(x(B(e),z(1)),a),R(B(c),n,i,s),S(([[e,t],n,r,o,i])=>{let l=t&&o,a="auto";return l&&(a=eH(n,r||i),l=l&&!!a),{totalCount:e,shouldFollow:l,followOutputBehavior:a}}),T(({shouldFollow:e})=>e))(1,({totalCount:e,followOutputBehavior:n})=>{d&&(d(),d=null),d=m(t,()=>{u(4)("following output to ",{totalCount:e},M.DEBUG),p(n),d=null})}),x(H(B(c),e,l),T(([e,,t])=>e&&t),I(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),T(({refreshed:e})=>e),R(c,e))(1,([,e])=>{h(!1!==e)}),f(1,()=>{h(!1!==c(4))}),H(B(c),r)(1,([e,t])=>{e&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&p("auto")}),{followOutput:c,autoscrollToBottom:f}},u(eT,eO,eI,eP,eR,W,q));function eN(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{totalCount:0,groupIndices:[]})}let ej=A(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:o}])=>{let i=g(),l=g(),a=y(x(i,S(eN)));return h(x(a,S(e=>e.totalCount)),e),h(x(a,S(e=>e.groupIndices)),t),h(x(H(r,n,o),T(([e,t])=>ew(t)),S(([e,t,n])=>ee(t.groupOffsetTree,Math.max(e-n,0),"v")[0]),E(),S(e=>[e])),l),{groupCounts:i,topItemsIndexes:l}},u(eT,q));function eF(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function eL(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}let eM="bottom",eD="none";function e_(e,t,n){return"number"==typeof e?"up"===n&&"top"===t||n===ez&&t===eM?e:0:"up"===n?"top"===t?e.main:e.reverse:t===eM?e.main:e.reverse}function eW(e,t){return"number"==typeof e?e:e[t]||0}let eZ=A(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:o}])=>{let i=g(),l=v(0),a=v(0),u=v(0),s=b(x(H(B(e),B(t),B(r),B(i,eF),B(u),B(l),B(o),B(n),B(a)),S(([e,t,n,[r,o],i,l,a,u,s])=>{let c=e-u,f=Math.max(n-c,0),d=eD,p=eW(s,"top"),h=eW(s,eM);return(r-=u,r+=n+a,o+=n+a,r>e+(l+a)-p&&(d="up"),(o-=u)<e-f+t+h&&(d=ez),d!==eD)?[Math.max(c-n-e_(i,"top",d)-p,0),c-f-a+t+e_(i,eM,d)+h]:null}),T(e=>null!=e),E(eF)),[0,0]);return{listBoundary:i,overscan:u,topListHeight:l,increaseViewportBy:a,visibleRange:s}},u(q),{singleton:!0}),eV={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function e$(e,t,n){let r;if(0===e.length)return[];if(!ew(t))return e.map(e=>({...e,index:e.index+n,originalIndex:e.index}));let o=e[0].index,i=e[e.length-1].index,l=[],a=el(t.groupOffsetTree,o,i),u=0;for(let o of e){let e;(!r||r.end<o.index)&&(r=a.shift(),u=t.groupIndices.indexOf(r.start)),e=o.index===r.start?{type:"group",index:u}:{index:o.index-(u+1)+n,groupIndex:u},l.push({...e,size:o.size,offset:o.offset,originalIndex:o.index,data:o.data})}return l}function eG(e,t,n,r,o,i){let{lastSize:l,lastOffset:a,lastIndex:u}=o,s=0,c=0;if(e.length>0){s=e[0].offset;let t=e[e.length-1];c=t.offset+t.size}let f=n-u,d=s,p=a+f*l+(f-1)*r-c;return{items:e$(e,o,i),topItems:e$(t,o,i),topListHeight:t.reduce((e,t)=>t.size+e,0),offsetTop:s,offsetBottom:p,top:d,bottom:c,totalCount:n,firstItemIndex:i}}let eU=A(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:o},i,{visibleRange:l,listBoundary:a,topListHeight:u},{scrolledToInitialItem:s,initialTopMostItemIndex:f},{topListHeight:d},p,{didMount:m},{recalcInProgress:w}])=>{let C=v([]),I=g();h(i.topItemsIndexes,C);let z=b(x(H(m,w,B(l,eF),B(t),B(e),B(f),s,B(C),B(r),B(o),n),T(([e,t,,n,,,,,,,r])=>{let o=r&&r.length!==n;return e&&!t&&!o}),S(([,,[e,t],n,r,o,i,l,a,u,s])=>{var c;let{sizeTree:f,offsetTree:d}=r;if(0===n||0===e&&0===t)return{...eV,totalCount:n};if(J(f))return eG(function(e,t,n){if(ew(t)){let r=ex(e,t),o=ee(t.groupOffsetTree,r)[0];return[{index:o,size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}(function(e,t){let n="number"==typeof e?e:"LAST"===e.index?t-1:e.index;return n}(o,n),r,s),[],n,u,r,a);let p=[];if(l.length>0){let e=l[0],t=l[l.length-1],n=0;for(let r of el(f,e,t)){let o=r.value,i=Math.max(r.start,e),l=Math.min(r.end,t);for(let e=i;e<=l;e++)p.push({index:e,size:o,offset:n,data:s&&s[e]}),n+=o}}if(!i)return eG([],p,n,u,r,a);let h=l.length>0?l[l.length-1]+1:0,m=function(e,t,n,r=0){return r>0&&(t=Math.max(t,e[ec(e,r,ep)].offset)),ea(function(e,t,n,r){let o=ec(e,t,r),i=ec(e,n,r,o);return e.slice(o,i+1)}(e,t,n,eh),em)}(d,e,t,h);if(0===m.length)return null;let g=n-1,v=((n=>{for(let r of m){let o=r.value,i=o.offset,l=r.start,a=o.size;if(o.offset<e){l+=Math.floor((e-o.offset+u)/(a+u));let t=l-r.start;i+=t*a+t*u}l<h&&(i+=(h-l)*a,l=h);let c=Math.min(r.end,g);for(let e=l;e<=c&&!(i>=t);e++)n.push({index:e,size:a,offset:i,data:s&&s[e]}),i+=a+u}})(c=[]),c);return eG(v,p,n,u,r,a)}),T(e=>null!==e),E()),eV);h(x(n,T(c),S(e=>null==e?void 0:e.length)),t),h(x(z,S(e=>e.topListHeight)),d),h(d,u),h(x(z,S(e=>[e.top,e.bottom])),a),h(x(z,S(e=>e.items)),I);let O=y(x(z,T(({items:e})=>e.length>0),R(t,n),T(([{items:e},t])=>e[e.length-1].originalIndex===t-1),S(([,e,t])=>[e-1,t]),E(eF),S(([e])=>e))),P=y(x(z,k(200),T(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),S(({items:e})=>e[0].index),E())),A=y(x(z,T(({items:e})=>e.length>0),S(({items:e})=>{let t=0,n=e.length-1;for(;"group"===e[t].type&&t<n;)t++;for(;"group"===e[n].type&&n>t;)n--;return{startIndex:e[t].index,endIndex:e[n].index}}),E(eL)));return{listState:z,topItemsIndexes:C,endReached:O,startReached:P,rangeChanged:A,itemsRendered:I,...p}},u(eT,ej,eZ,eP,eI,eO,eR,ef),{singleton:!0}),eK=A(([{sizes:e,firstItemIndex:t,data:n,gap:r},{listState:o},{didMount:i}])=>{let l=v(0);return h(x(i,R(l),T(([,e])=>0!==e),R(e,t,r,n),S(([[,e],t,n,r,o=[]])=>{let i=0;if(t.groupIndices.length>0)for(let n of t.groupIndices){if(n-i>=e)break;i++}let l=e+i,a=Array.from({length:l}).map((e,t)=>({index:t,size:0,offset:0,data:o[t]}));return eG(a,[],l,r,t,n)})),o),{initialItemCount:l}},u(eT,eU,eR),{singleton:!0}),eq=A(([{scrollVelocity:e}])=>{let t=v(!1),n=g(),r=v(!1);return h(x(e,R(r,t,n),T(([e,t])=>!!t),S(([e,t,n,r])=>{let{exit:o,enter:i}=t;if(n){if(o(e,r))return!1}else if(i(e,r))return!0;return n}),E()),t),x(H(t,e,n),R(r))(1,([[e,t,n],r])=>e&&r&&r.change&&r.change(t,n)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},u(eO),{singleton:!0}),eX=A(([{topItemsIndexes:e}])=>{let t=v(0);return h(x(t,T(e=>e>0),S(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},u(eU)),eY=A(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:o}])=>{let i=g(),l=b(x(H(e,r,t,n,o),S(([e,t,n,r,o])=>e+t+n+r+o.offsetBottom+o.bottom)),0);return h(B(l),i),{totalListHeight:l,totalListHeightChanged:i}},u(q,eU),{singleton:!0});function eJ(e){let t,n=!1;return()=>(n||(n=!0,t=e()),t)}let eQ=eJ(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),e0=A(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:o,isAtBottom:i,scrollDirection:l,lastJumpDueToItemResize:a},{listState:u},{beforeUnshiftWith:s,shiftWithOffset:c,sizes:f,gap:d},{log:p},{recalcInProgress:m}])=>{let g=y(x(u,R(a),I(([,e,t,n],[{items:r,totalCount:o,bottom:i,offsetBottom:l},a])=>{let u=i+l,s=0;if(t===o&&e.length>0&&r.length>0){let t=0===r[0].originalIndex&&0===e[0].originalIndex;t||0==(s=u-n)||(s+=a)}return[s,r,o,u]},[0,[],0,0]),T(([e])=>0!==e),R(t,l,r,i,p,m),T(([,e,t,n,,,r])=>!r&&!n&&0!==e&&"up"===t),S(([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},M.DEBUG),e))));function v(t){t>0?(e(0,{top:-t,behavior:"auto"}),n(0,0)):(n(0,0),e(0,{top:-t,behavior:"auto"}))}return x(g,R(n,o))(1,([e,t,r])=>{r&&eQ()?n(0,t-e):v(-e)}),x(H(b(o,!1),n,m),T(([e,t,n])=>!e&&!n&&0!==t),S(([e,t])=>t),k(1))(1,v),h(x(c,S(e=>({top:-e}))),e),x(s,R(f,d),S(([e,{lastSize:t,groupIndices:n,sizeTree:r},o])=>{if(0===n.length)return e*(t+o);{let i=0,l=Q(r,0),a=0,u=0;for(;a<e;){a++,i+=l;let r=n.length===u+1?1/0:n[u+1]-n[u]-1;a+r>e&&(i-=l,r=e-a+1),a+=r,i+=r*(t+o),u++}return i}}))(1,t=>{n(0,t),requestAnimationFrame(()=>{e(0,{top:t}),requestAnimationFrame(()=>{n(0,0),m(0,!1)})})}),{deviation:n}},u(q,eO,eU,eT,W,ef)),e1=A(([{didMount:e},{scrollTo:t},{listState:n}])=>{let r=v(0);return x(e,R(r),T(([,e])=>0!==e),S(([,e])=>({top:e})))(1,e=>{m(x(n,z(1),T(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{t(0,e)})})}),{initialScrollTop:r}},u(eR,q,eU),{singleton:!0}),e2=A(([{viewportHeight:e},{totalListHeight:t}])=>{let n=v(!1),r=b(x(H(n,e,t),T(([e])=>e),S(([,e,t])=>Math.max(0,e-t)),k(0),E()),0);return{alignToBottom:n,paddingTopAddition:r}},u(q,eY),{singleton:!0}),e3=A(([{scrollTo:e,scrollContainerState:t}])=>{let n=g(),r=g(),o=g(),i=v(!1),l=v(void 0);return h(x(H(n,r),S(([{viewportHeight:e,scrollTop:t,scrollHeight:n},{offsetTop:r}])=>({scrollTop:Math.max(0,t-r),scrollHeight:n,viewportHeight:e}))),t),h(x(e,R(r),S(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),o),{useWindowScroll:i,customScrollParent:l,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:o}},u(q)),e4=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:o,align:i,...l}})=>e<n?{...l,behavior:o,align:null!=i?i:"start"}:t>r?{...l,behavior:o,align:null!=i?i:"end"}:null,e9=A(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:o,headerHeight:i,fixedHeaderHeight:l,fixedFooterHeight:a,scrollingInProgress:u},{scrollToIndex:s}])=>{let c=g();return h(x(c,R(e,o,t,i,l,a,r),R(n),S(([[e,t,n,r,o,i,l,a],s])=>{let{done:c,behavior:f,align:d,calculateViewLocation:p=e4,...h}=e,g=eb(e,t,r-1),v=ey(g,t.offsetTree,s)+o+i,y=v+ee(t.sizeTree,g)[1],b=p({itemTop:v,itemBottom:y,viewportTop:a+i,viewportBottom:a+n-l,locationParams:{behavior:f,align:d,...h}});return b?c&&m(x(u,T(e=>!1===e),z(u(4)?1:2)),c):c&&c(),b}),T(e=>null!==e)),s),{scrollIntoView:c}},u(eT,q,eI,eU,W),{singleton:!0}),e5=A(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:o}])=>{let i=g(),l=v(void 0);return x(i,R(e,n))(1,([e,t,n])=>{let r=en(t.sizeTree).map(({k:e,v:t},n,r)=>{let o=r[n+1],i=o?o.k-1:1/0;return{startIndex:e,endIndex:i,size:t}});e({ranges:r,scrollTop:n})}),h(x(l,T(c),S(e8)),r),h(x(o,R(l),T(([,e])=>void 0!==e),E(),S(([,e])=>e.ranges)),t),{getState:i,restoreStateFrom:l}},u(eT,q,eP,eR));function e8(e){return{offset:e.scrollTop,index:0,align:"start"}}let e6=A(([e,t,n,r,o,i,l,a,u,s])=>({...e,...t,...n,...r,...o,...i,...l,...a,...u,...s}),u(eZ,eK,eR,eq,eY,e1,e2,e3,e9,W)),e7=A(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:o,itemSize:i,data:l,firstItemIndex:a,groupIndices:u,statefulTotalCount:s,gap:c,sizes:f},{initialTopMostItemIndex:d,scrolledToInitialItem:p},m,g,v,{listState:y,topItemsIndexes:b,...w},{scrollToIndex:E},T,{topItemCount:C},{groupCounts:I},z])=>(h(w.rangeChanged,z.scrollSeekRangeChanged),h(x(z.windowViewportRect,S(e=>e.visibleHeight)),m.viewportHeight),{totalCount:e,data:l,firstItemIndex:a,sizeRanges:t,initialTopMostItemIndex:d,scrolledToInitialItem:p,topItemsIndexes:b,topItemCount:C,groupCounts:I,fixedItemHeight:n,defaultItemHeight:r,gap:c,...v,statefulTotalCount:s,listState:y,scrollToIndex:E,trackItemSizes:o,itemSize:i,groupIndices:u,...w,...z,...m,sizes:f,...g}),u(eT,eP,q,e5,eA,eU,eI,e0,eX,ej,e6)),te="-webkit-sticky",tt="sticky",tn=eJ(()=>{if("undefined"==typeof document)return tt;let e=document.createElement("div");return e.style.position=te,e.style.position===te?te:tt});function tr(e,t){let n=o.useRef(null),r=o.useCallback(r=>{let o,i;if(null===r||!r.offsetParent)return;let l=r.getBoundingClientRect(),a=l.width;if(t){let e=t.getBoundingClientRect(),n=l.top-e.top;o=e.height-Math.max(0,n),i=n+t.scrollTop}else o=window.innerHeight-Math.max(0,l.top),i=l.top+window.pageYOffset;n.current={offsetTop:i,visibleHeight:o,visibleWidth:a},e(n.current)},[e,t]),{callbackRef:i,ref:l}=Z(r),a=o.useCallback(()=>{r(l.current)},[r,l]);return o.useEffect(()=>{if(!t)return window.addEventListener("scroll",a),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a)};{t.addEventListener("scroll",a);let e=new ResizeObserver(a);return e.observe(t),()=>{t.removeEventListener("scroll",a),e.unobserve(t)}}},[a,t]),i}let to=o.createContext(void 0),ti=o.createContext(void 0);function tl(e){return e}let ta=A(()=>{let e=v(e=>`Item ${e}`),t=v(null),n=v(e=>`Group ${e}`),r=v({}),o=v(tl),i=v("div"),l=v(f),a=(e,t=null)=>b(x(r,S(t=>t[e]),E()),t);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:o,headerFooterTag:i,scrollerRef:l,FooterComponent:a("Footer"),HeaderComponent:a("Header"),TopItemListComponent:a("TopItemList"),ListComponent:a("List","div"),ItemComponent:a("Item","div"),GroupComponent:a("Group","div"),ScrollerComponent:a("Scroller","div"),EmptyPlaceholder:a("EmptyPlaceholder"),ScrollSeekPlaceholder:a("ScrollSeekPlaceholder")}}),tu=A(([e,t])=>({...e,...t}),u(e7,ta)),ts=({height:e})=>o.createElement("div",{style:{height:e}}),tc={position:tn(),zIndex:1,overflowAnchor:"none"},tf={overflowAnchor:"none"},td=o.memo(function({showTopList:e=!1}){let t=tz("listState"),n=tI("sizeRanges"),r=tz("useWindowScroll"),i=tz("customScrollParent"),l=tI("windowScrollContainerState"),a=tI("scrollContainerState"),u=tz("itemContent"),s=tz("context"),c=tz("groupContent"),d=tz("trackItemSizes"),p=tz("itemSize"),h=tz("log"),m=tI("gap"),{callbackRef:g}=$(n,p,d,e?f:i||r?l:a,h,m,i),[v,y]=o.useState(0);tk("deviation",e=>{v!==e&&y(e)});let b=tz("EmptyPlaceholder"),x=tz("ScrollSeekPlaceholder")||ts,w=tz("ListComponent"),E=tz("ItemComponent"),T=tz("GroupComponent"),S=tz("computeItemKey"),C=tz("isSeeking"),I=tz("groupIndices").length>0,z=tz("paddingTopAddition"),k=tz("scrolledToInitialItem"),O=e?{}:{boxSizing:"border-box",paddingTop:t.offsetTop+z,paddingBottom:t.offsetBottom,marginTop:v,...k?{}:{visibility:"hidden"}};return!e&&0===t.totalCount&&b?o.createElement(b,tg(b,s)):o.createElement(w,{...tg(w,s),ref:g,style:O,"data-test-id":e?"virtuoso-top-item-list":"virtuoso-item-list"},(e?t.topItems:t.items).map(e=>{let n=e.originalIndex,r=S(n+t.firstItemIndex,e.data,s);return C?o.createElement(x,{...tg(x,s),key:r,index:e.index,height:e.size,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?o.createElement(T,{...tg(T,s),key:r,"data-index":n,"data-known-size":e.size,"data-item-index":e.index,style:tc},c(e.index,s)):o.createElement(E,{...tg(E,s),key:r,"data-index":n,"data-known-size":e.size,"data-item-index":e.index,"data-item-group-index":e.groupIndex,item:e.data,style:tf},I?u(e.index,e.groupIndex,e.data,s):u(e.index,e.data,s))}))}),tp={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},th={width:"100%",height:"100%",position:"absolute",top:0},tm={width:"100%",position:tn(),top:0,zIndex:1};function tg(e,t){if("string"!=typeof e)return{context:t}}let tv=o.memo(function(){let e=tz("HeaderComponent"),t=tI("headerHeight"),n=tz("headerFooterTag"),r=V(e=>t(G(e,"height"))),i=tz("context");return e?o.createElement(n,{ref:r},o.createElement(e,tg(e,i))):null}),ty=o.memo(function(){let e=tz("FooterComponent"),t=tI("footerHeight"),n=tz("headerFooterTag"),r=V(e=>t(G(e,"height"))),i=tz("context");return e?o.createElement(n,{ref:r},o.createElement(e,tg(e,i))):null});function tb({usePublisher:e,useEmitter:t,useEmitterValue:n}){let r=o.memo(function({style:r,children:i,...l}){let a=e("scrollContainerState"),u=n("ScrollerComponent"),s=e("smoothScrollTargetReached"),c=n("scrollerRef"),f=n("context"),{scrollerRef:d,scrollByCallback:p,scrollToCallback:h}=K(a,s,u,c);return t("scrollTo",h),t("scrollBy",p),o.createElement(u,{ref:d,style:{...tp,...r},"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...l,...tg(u,f)},i)});return r}function tx({usePublisher:e,useEmitter:t,useEmitterValue:n}){let r=o.memo(function({style:r,children:i,...l}){let a=e("windowScrollContainerState"),u=n("ScrollerComponent"),s=e("smoothScrollTargetReached"),c=n("totalListHeight"),d=n("deviation"),p=n("customScrollParent"),h=n("context"),{scrollerRef:m,scrollByCallback:g,scrollToCallback:v}=K(a,s,u,f,p);return L(()=>(m.current=p||window,()=>{m.current=null}),[m,p]),t("windowScrollTo",v),t("scrollBy",g),o.createElement(u,{style:{position:"relative",...r,...0!==c?{height:c+d}:{}},"data-virtuoso-scroller":!0,...l,...tg(u,h)},i)});return r}let tw=({children:e})=>{let t=o.useContext(to),n=tI("viewportHeight"),r=tI("fixedItemHeight"),i=V(l(n,e=>G(e,"height")));return o.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),o.createElement("div",{style:th,ref:i,"data-viewport-type":"element"},e)},tE=({children:e})=>{let t=o.useContext(to),n=tI("windowViewportRect"),r=tI("fixedItemHeight"),i=tz("customScrollParent"),l=tr(n,i);return o.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),o.createElement("div",{ref:l,style:th,"data-viewport-type":"window"},e)},tT=({children:e})=>{let t=tz("TopItemListComponent"),n=tz("headerHeight"),r={...tm,marginTop:`${n}px`},i=tz("context");return o.createElement(t||"div",{style:r,context:i},e)},tS=o.memo(function(e){let t=tz("useWindowScroll"),n=tz("topItemsIndexes").length>0,r=tz("customScrollParent");return o.createElement(r||t?tR:tO,{...e},n&&o.createElement(tT,null,o.createElement(td,{showTopList:!0})),o.createElement(r||t?tE:tw,null,o.createElement(tv,null),o.createElement(td,null),o.createElement(ty,null)))}),{Component:tC,usePublisher:tI,useEmitterValue:tz,useEmitter:tk}=F(tu,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",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"},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"}},tS),tO=tb({usePublisher:tI,useEmitterValue:tz,useEmitter:tk}),tR=tx({usePublisher:tI,useEmitterValue:tz,useEmitter:tk}),tP=tC,tB={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},tH={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:tA,ceil:tN,floor:tj,min:tF,max:tL}=Math;function tM(e,t,n){return Array.from({length:t-e+1}).map((t,r)=>({index:r+e,data:null==n?void 0:n[r+e]}))}function tD(e,t){return e&&e.column===t.column&&e.row===t.row}function t_(e,t){return e&&e.width===t.width&&e.height===t.height}let tW=A(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:o,scrollBy:i,scrollTo:l,smoothScrollTargetReached:a,scrollContainerState:u,footerHeight:s,headerHeight:f},d,p,{propsReady:m,didMount:w},{windowViewportRect:I,windowScrollTo:z,useWindowScroll:k,customScrollParent:O,windowScrollContainerState:P},A])=>{let N=v(0),j=v(0),F=v(tB),L=v({height:0,width:0}),M=v({height:0,width:0}),D=g(),_=g(),W=v(0),Z=v(void 0),V=v({row:0,column:0});h(x(w,R(j,Z),T(([e,t])=>e&&0!==t),S(([,e,t])=>({items:tM(0,e-1,t),top:0,bottom:0,offsetBottom:0,offsetTop:0,itemHeight:0,itemWidth:0}))),F),h(x(H(B(N),t,B(V,tD),B(M,t_),B(L,t_),Z),S(([e,[t,n],r,o,i,l])=>{let{row:a,column:u}=r,{height:s,width:c}=o,{width:f}=i;if(0===e||0===f)return tB;if(0===c){var d;return d=tM(0,0,l),{...tH,items:d}}let p=t$(f,c,u),h=p*tj((t+a)/(s+a)),m=p*tN((n+a)/(s+a))-1;m=tF(e-1,tL(m,p-1)),h=tF(m,tL(0,h));let g=tM(h,m,l),{top:v,bottom:y}=tZ(i,r,o,g),b=tN(e/p);return{items:g,offsetTop:v,offsetBottom:b*s+(b-1)*a-y,top:v,bottom:y,itemHeight:s,itemWidth:c}})),F),h(x(Z,T(c),S(e=>e.length)),N),h(x(L,S(({height:e})=>e)),o),h(x(H(L,M,F,V),S(([e,t,{items:n},r])=>{let{top:o,bottom:i}=tZ(e,r,t,n);return[o,i]}),E(eF)),n);let $=v(!1);h(x(r,R($),S(([e,t])=>t||0!==e)),$);let G=y(x(B(F),T(({items:e})=>e.length>0),R(N,$),T(([{items:e},t,n])=>n&&e[e.length-1].index===t-1),S(([,e])=>e-1),E())),U=y(x(B(F),T(({items:e})=>e.length>0&&0===e[0].index),C(0),E())),K=y(x(B(F),T(({items:e})=>e.length>0),S(({items:e})=>({startIndex:e[0].index,endIndex:e[e.length-1].index})),E(eL)));h(K,p.scrollSeekRangeChanged),h(x(D,R(L,M,N,V),S(([e,t,n,r,o])=>{let i=eC(e),{align:l,behavior:a,offset:u}=i,s=i.index;"LAST"===s&&(s=r-1);let c=tV(t,o,n,s=tL(0,s,tF(r-1,s)));return"end"===l?c=tA(c-t.height+n.height):"center"===l&&(c=tA(c-t.height/2+n.height/2)),u&&(c+=u),{top:c,behavior:a}})),l);let q=b(x(F,S(e=>e.offsetBottom+e.bottom)),0);return h(x(I,S(e=>({width:e.visibleWidth,height:e.visibleHeight}))),L),{data:Z,totalCount:N,viewportDimensions:L,itemDimensions:M,scrollTop:r,scrollHeight:_,overscan:e,scrollBy:i,scrollTo:l,scrollToIndex:D,smoothScrollTargetReached:a,windowViewportRect:I,windowScrollTo:z,useWindowScroll:k,customScrollParent:O,windowScrollContainerState:P,deviation:W,scrollContainerState:u,footerHeight:s,headerHeight:f,initialItemCount:j,gap:V,...p,gridState:F,totalListHeight:q,...d,startReached:U,endReached:G,rangeChanged:K,propsReady:m,...A}},u(eZ,q,eO,eq,eR,e3,W));function tZ(e,t,n,r){let{height:o}=n;if(void 0===o||0===r.length)return{top:0,bottom:0};let i=tV(e,t,n,r[0].index),l=tV(e,t,n,r[r.length-1].index)+o;return{top:i,bottom:l}}function tV(e,t,n,r){let o=t$(e.width,n.width,t.column),i=tj(r/o),l=i*n.height+tL(0,i-1)*t.row;return l>0?l+t.row:l}function t$(e,t,n){return tL(1,tj((e+n)/(tj(t)+n)))}let tG=A(()=>{let e=v(e=>`Item ${e}`),t=v({}),n=v(null),r=v("virtuoso-grid-item"),o=v("virtuoso-grid-list"),i=v(tl),l=v("div"),a=v(f),u=(e,n=null)=>b(x(t,S(t=>t[e]),E()),n);return{context:n,itemContent:e,components:t,computeItemKey:i,itemClassName:r,listClassName:o,headerFooterTag:l,scrollerRef:a,FooterComponent:u("Footer"),HeaderComponent:u("Header"),ListComponent:u("List","div"),ItemComponent:u("Item","div"),ScrollerComponent:u("Scroller","div"),ScrollSeekPlaceholder:u("ScrollSeekPlaceholder","div")}}),tU=A(([e,t])=>({...e,...t}),u(tW,tG)),tK=o.memo(function(){let e=t2("gridState"),t=t2("listClassName"),n=t2("itemClassName"),r=t2("itemContent"),i=t2("computeItemKey"),l=t2("isSeeking"),a=t1("scrollHeight"),u=t2("ItemComponent"),s=t2("ListComponent"),c=t2("ScrollSeekPlaceholder"),f=t2("context"),d=t1("itemDimensions"),p=t1("gap"),h=t2("log"),m=V(e=>{let t=e.parentElement.parentElement.scrollHeight;a(t);let n=e.firstChild;n&&d(n.getBoundingClientRect()),p({row:t5("row-gap",getComputedStyle(e).rowGap,h),column:t5("column-gap",getComputedStyle(e).columnGap,h)})});return o.createElement(s,{ref:m,className:t,...tg(s,f),style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom},"data-test-id":"virtuoso-item-list"},e.items.map(t=>{let a=i(t.index,t.data,f);return l?o.createElement(c,{key:a,...tg(c,f),index:t.index,height:e.itemHeight,width:e.itemWidth}):o.createElement(u,{...tg(u,f),className:n,"data-index":t.index,key:a},r(t.index,t.data,f))}))}),tq=o.memo(function(){let e=t2("HeaderComponent"),t=t1("headerHeight"),n=t2("headerFooterTag"),r=V(e=>t(G(e,"height"))),i=t2("context");return e?o.createElement(n,{ref:r},o.createElement(e,tg(e,i))):null}),tX=o.memo(function(){let e=t2("FooterComponent"),t=t1("footerHeight"),n=t2("headerFooterTag"),r=V(e=>t(G(e,"height"))),i=t2("context");return e?o.createElement(n,{ref:r},o.createElement(e,tg(e,i))):null}),tY=({children:e})=>{let t=o.useContext(ti),n=t1("itemDimensions"),r=t1("viewportDimensions"),i=V(e=>{r(e.getBoundingClientRect())});return o.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),o.createElement("div",{style:th,ref:i},e)},tJ=({children:e})=>{let t=o.useContext(ti),n=t1("windowViewportRect"),r=t1("itemDimensions"),i=t2("customScrollParent"),l=tr(n,i);return o.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),o.createElement("div",{ref:l,style:th},e)},tQ=o.memo(function({...e}){let t=t2("useWindowScroll"),n=t2("customScrollParent");return o.createElement(n||t?t9:t4,{...e},o.createElement(n||t?tJ:tY,null,o.createElement(tq,null),o.createElement(tK,null),o.createElement(tX,null)))}),{Component:t0,usePublisher:t1,useEmitterValue:t2,useEmitter:t3}=F(tU,{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"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange"}},tQ),t4=tb({usePublisher:t1,useEmitterValue:t2,useEmitter:t3}),t9=tx({usePublisher:t1,useEmitterValue:t2,useEmitter:t3});function t5(e,t,n){return("normal"===t||(null==t?void 0:t.endsWith("px"))||n(`${e} was not resolved to pixel value correctly`,t,M.WARN),"normal"===t)?0:parseInt(null!=t?t:"0",10)}let t8=A(()=>{let e=v(e=>o.createElement("td",null,"Item $",e)),t=v(null),n=v(null),r=v(null),i=v({}),l=v(tl),a=v(f),u=(e,t=null)=>b(x(i,S(t=>t[e]),E()),t);return{context:t,itemContent:e,fixedHeaderContent:n,fixedFooterContent:r,components:i,computeItemKey:l,scrollerRef:a,TableComponent:u("Table","table"),TableHeadComponent:u("TableHead","thead"),TableFooterComponent:u("TableFoot","tfoot"),TableBodyComponent:u("TableBody","tbody"),TableRowComponent:u("TableRow","tr"),ScrollerComponent:u("Scroller","div"),EmptyPlaceholder:u("EmptyPlaceholder"),ScrollSeekPlaceholder:u("ScrollSeekPlaceholder"),FillerRow:u("FillerRow")}}),t6=A(([e,t])=>({...e,...t}),u(e7,t8)),t7=({height:e})=>o.createElement("tr",null,o.createElement("td",{style:{height:e}})),ne=({height:e})=>o.createElement("tr",null,o.createElement("td",{style:{height:e,padding:0,border:0}})),nt=o.memo(function(){let e=na("listState"),t=nl("sizeRanges"),n=na("useWindowScroll"),r=na("customScrollParent"),i=nl("windowScrollContainerState"),l=nl("scrollContainerState"),a=na("itemContent"),u=na("trackItemSizes"),s=na("itemSize"),c=na("log"),{callbackRef:f,ref:d}=$(t,s,u,r||n?i:l,c,void 0,r),[p,h]=o.useState(0);nu("deviation",e=>{p!==e&&(d.current.style.marginTop=`${e}px`,h(e))});let m=na("EmptyPlaceholder"),g=na("ScrollSeekPlaceholder")||t7,v=na("FillerRow")||ne,y=na("TableBodyComponent"),b=na("TableRowComponent"),x=na("computeItemKey"),w=na("isSeeking"),E=na("paddingTopAddition"),T=na("firstItemIndex"),S=na("statefulTotalCount"),C=na("context");if(0===S&&m)return o.createElement(m,tg(m,C));let I=e.offsetTop+E+p,z=e.offsetBottom,k=I>0?o.createElement(v,{height:I,key:"padding-top",context:C}):null,O=z>0?o.createElement(v,{height:z,key:"padding-bottom",context:C}):null,R=e.items.map(e=>{let t=e.originalIndex,n=x(t+T,e.data,C);return w?o.createElement(g,{...tg(g,C),key:n,index:e.index,height:e.size,type:e.type||"item"}):o.createElement(b,{...tg(b,C),key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,item:e.data,style:{overflowAnchor:"none"}},a(e.index,e.data,C))});return o.createElement(y,{ref:f,"data-test-id":"virtuoso-item-list",...tg(y,C)},[k,...R,O])}),nn=({children:e})=>{let t=o.useContext(to),n=nl("viewportHeight"),r=nl("fixedItemHeight"),i=V(l(n,e=>G(e,"height")));return o.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),o.createElement("div",{style:th,ref:i,"data-viewport-type":"element"},e)},nr=({children:e})=>{let t=o.useContext(to),n=nl("windowViewportRect"),r=nl("fixedItemHeight"),i=na("customScrollParent"),l=tr(n,i);return o.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),o.createElement("div",{ref:l,style:th,"data-viewport-type":"window"},e)},no=o.memo(function(e){let t=na("useWindowScroll"),n=na("customScrollParent"),r=nl("fixedHeaderHeight"),i=nl("fixedFooterHeight"),a=na("fixedHeaderContent"),u=na("fixedFooterContent"),s=na("context"),c=V(l(r,e=>G(e,"height"))),f=V(l(i,e=>G(e,"height"))),d=na("TableComponent"),p=na("TableHeadComponent"),h=na("TableFooterComponent"),m=a?o.createElement(p,{key:"TableHead",style:{zIndex:2,position:"sticky",top:0},ref:c,...tg(p,s)},a()):null,g=u?o.createElement(h,{key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:f,...tg(h,s)},u()):null;return o.createElement(n||t?nc:ns,{...e},o.createElement(n||t?nr:nn,null,o.createElement(d,{style:{borderSpacing:0},...tg(d,s)},[m,o.createElement(nt,{key:"TableBody"}),g])))}),{Component:ni,usePublisher:nl,useEmitterValue:na,useEmitter:nu}=F(t6,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",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"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},no),ns=tb({usePublisher:nl,useEmitterValue:na,useEmitter:nu}),nc=tx({usePublisher:nl,useEmitterValue:na,useEmitter:nu})},45628:function(e,t,n){"use strict";/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}n.d(t,{P:function(){return o}})}}]);