1/*! For license information please see 6309-87ab79a98c490d17563c.chunk.js.LICENSE.txt */ 2(self.webpackChunkmarket_carpenter=self.webpackChunkmarket_carpenter||[]).push([[6309],{66309:function(e,t,n){"use strict";n.d(t,{Ay:function(){return ws}});var r={};n.r(r),n.d(r,{FILE:function(){return wn},HTML:function(){return Dn},TEXT:function(){return Sn},URL:function(){return Tn}});var o=n(74848),i=n(96540),a=n(4146),s=n.n(a),c=n(25858),l=n.n(c),u=(0,i.createContext)({dragDropManager:void 0}),d=Object.defineProperty,f=Object.defineProperties,h=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,m=(e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||(t={}))g.call(t,n)&&m(e,n,t[n]);if(p)for(var n of p(t))v.call(t,n)&&m(e,n,t[n]);return e};const b=(e,t,n)=>Math.floor(Math.min(t,Math.max(e,n))),I=e=>({x:t,w:n,y:r,h:o},i)=>{const a=Math.min(n/2,e);if(i.x>=t&&i.x<=t+n&&i.y>=r&&i.y<=r+o){if(i.x<t+a)return(i.x-t-a)/a;if(i.x>t+n-a)return-(t+n-i.x-a)/a}return 0},x=e=>({y:t,h:n,x:r,w:o},i)=>{const a=Math.min(n/2,e);if(i.y>=t&&i.y<=t+n&&i.x>=r&&i.x<=r+o){if(i.y<t+a)return(i.y-t-a)/a;if(i.y>t+n-a)return-(t+n-i.y-a)/a}return 0},w=I(150),T={onScrollChange:()=>{},verticalStrength:x(150),horizontalStrength:w,strengthMultiplier:30},S=e=>s()(t=>{let n;t=y(y({},T),t);const r=(0,i.createRef)();let o,a=0,s=0,c=!1,u=!1;const d=l()(e=>{const{left:r,top:i,width:c,height:l}=n.getBoundingClientRect(),u={x:r,y:i,w:c,h:l},d=(e=>"touchmove"===e.type?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:{x:e.clientX,y:e.clientY})(e);a=t.horizontalStrength(u,d),s=t.verticalStrength(u,d),o||!a&&!s||I()},100,{trailing:!1});(0,i.useEffect)(()=>{n=r.current,n&&"function"==typeof n.addEventListener&&n.addEventListener("dragover",f),window.document.body.addEventListener("touchmove",f);const e=t.dragDropManager.getMonitor().subscribeToStateChange(()=>h());return()=>{n&&"function"==typeof n.removeEventListener&&n.removeEventListener("dragover",f),window.document.body.removeEventListener("touchmove",f),e(),x()}},[]);const f=e=>{u&&!c&&(m(),d(e))},h=()=>{const e=t.dragDropManager.getMonitor().isDragging();!u&&e?u=!0:u&&!e&&(u=!1,x())},m=()=>{c=!0,window.document.body.addEventListener("dragover",d),window.document.body.addEventListener("touchmove",d)},I=()=>{let e=0;const r=()=>{if(0!==t.strengthMultiplier&&a+s!==0){if(e+=1,e%2){const{scrollLeft:e,scrollTop:r,scrollWidth:o,scrollHeight:i,clientWidth:c,clientHeight:l}=n,u=a?n.scrollLeft=b(0,o-c,e+a*t.strengthMultiplier):e,d=s?n.scrollTop=b(0,i-l,r+s*t.strengthMultiplier):r;t.onScrollChange(u,d)}o=requestAnimationFrame(r)}else x()};r()},x=()=>{c=!1,window.document.body.removeEventListener("dragover",d),window.document.body.removeEventListener("touchmove",d),a=0,s=0,o&&(cancelAnimationFrame(o),o=void 0)},w=((e,t)=>{var n={};for(var r in e)g.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&p)for(var r of p(e))t.indexOf(r)<0&&v.call(e,r)&&(n[r]=e[r]);return n})(t,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return i.createElement(e,y({ref:r},w))},e),D=e=>{const t=S(e);return e=>i.createElement(u.Consumer,null,({dragDropManager:n})=>{return void 0===n?void 0:i.createElement(t,(r=y({},e),f(r,h({dragDropManager:n}))));var r})};var C=n(8142),O=n.n(C);function E(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,function(){return r[a++]}))).name="Invariant Violation"}throw i.framesToPop=1,i}}function k(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return[o,function(){return r.removeTarget(o)}]}function P(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}function j(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,i.isValidElement)(t)){var r=t;return e(r,n),r}var o=t;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(o);var a=n?function(t){return e(t,n)}:e;return function(e,t){var n=e.ref;
vendor: 12,215 bytes, line 2
2return E("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,i.cloneElement)(e,{ref:function(e){N(n,e),N(t,e)}}):(0,i.cloneElement)(e,{ref:t})}(o,a)}}function R(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=j(r);t[n]=function(){return o}}}),t}function N(e,t){"function"==typeof e?e(t):e.current=t}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function M(e){return null!==e&&"object"===_(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function H(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var l=i[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(o=n?n.call(r,u,d,l):void 0)||void 0===o&&u!==d)return!1}return!0}function z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),L(this,"hooks",R({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,M(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,M(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}})),L(this,"handlerId",null),L(this,"dragSourceRef",null),L(this,"dragSourceNode",void 0),L(this,"dragSourceOptionsInternal",null),L(this,"dragSourceUnsubscribe",void 0),L(this,"dragPreviewRef",null),L(this,"dragPreviewNode",void 0),L(this,"dragPreviewOptionsInternal",null),L(this,"dragPreviewUnsubscribe",void 0),L(this,"lastConnectedHandlerId",null),L(this,"lastConnectedDragSource",null),L(this,"lastConnectedDragSourceOptions",null),L(this,"lastConnectedDragPreview",null),L(this,"lastConnectedDragPreviewOptions",null),L(this,"backend",void 0),this.backend=t}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!H(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!H(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}])&&z(t.prototype,n),r&&z(t,r),e}();function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W=!1,V=!1,U=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),F(this,"internalMonitor",void 0),F(this,"sourceId",null),this.internalMonitor=t.getMonitor()}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){E(!W,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return W=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{W=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;E(!V,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return V=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{V=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&B(t.prototype,n),r&&B(t,r),e}();function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function $(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function G(e){return"function"==typeof e}function q(){}function X(e){if(!function(e){return"object"===K(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Y(e,t){return"string"==typeof e||"symbol"===K(e)||!!t&&Array.isArray(e)&&e.every(function(e){return Y(e,!1)})}function Q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function J(e,t,n){return t&&Z(e.prototype,t),n&&Z(e,n),e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var te=function(){function e(t){Q(this,e),ee(this,"isDisposed",!1),ee(this,"action",void 0),this.action=G(t)?t:q}return J(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&G(e.dispose))}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();ee(te,"empty",{dispose:q});var ne=function(){function e(){Q(this,e),ee(this,"isDisposed",!1),ee(this,"disposables",void 0);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.disposables=n}return J(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}}]),e}(),re=function(){function e(){Q(this,e),ee(this,"isDisposed",!1),ee(this,"current",void 0)}return J(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}();function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ae(e,t)}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ce(e,t){return ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ce(e,t)}function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=de(e);if(t){var o=de(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===oe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ue(e)}(this,n)}}function ue(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function de(e){return de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},de(e)}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(e){var t=e.DecoratedComponent,n=e.createHandler,r=e.createMonitor,a=e.createConnector,c=e.registerHandler,l=e.containerDisplayName,d=e.getType,f=e.collect,h=e.options.arePropsEqual,p=void 0===h?H:h,g=t,v=t.displayName||t.name||"Component",m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ce(e,t)}(m,e);var t,s,l,h=le(m);function m(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),fe(ue(t=h.call(this,e)),"decoratedRef",(0,i.createRef)()),fe(ue(t),"handlerId",void 0),fe(ue(t),"manager",void 0),fe(ue(t),"handlerMonitor",void 0),fe(ue(t),"handlerConnector",void 0),fe(ue(t),"handler",void 0),fe(ue(t),"disposable",void 0),fe(ue(t),"currentType",void 0),fe(ue(t),"handleChange",function(){var e=t.getCurrentState();H(e,t.state)||t.setState(e)}),t.disposable=new re,t.receiveProps(e),t.dispose(),t}return t=m,(s=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return E(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!p(e,this.props)||!H(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new re,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){p(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(d(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=ie(c(e,this.handler,this.manager),2),n=t[0],r=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new ne(new te(o),new te(r)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?f(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return(0,o.jsx)(u.Consumer,{children:function(t){var n,r,i=t.dragDropManager;return e.receiveDragDropManager(i),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()}),(0,o.jsx)(g,Object.assign({},e.props,e.getCurrentState(),{ref:(n=g,(r=n)&&r.prototype&&"function"==typeof r.prototype.render||function(e){var t,n=e;return"Symbol(react.forward_ref)"===(null==n||null===(t=n.$$typeof)||void 0===t?void 0:t.toString())}(n)?e.decoratedRef:null)}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&(E(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvi
2der component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",v,v),void 0!==e&&(this.manager=e,this.handlerMonitor=r(e),this.handlerConnector=a(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&se(t.prototype,s),l&&se(t,l),m}(i.Component);return fe(m,"DecoratedComponent",t),fe(m,"displayName","".concat(l,"(").concat(v,")")),s()(m,t)}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ve=["canDrag","beginDrag","isDragging","endDrag"],me=["beginDrag"],ye=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ge(this,"props",null),ge(this,"spec",void 0),ge(this,"monitor",void 0),ge(this,"ref",void 0),ge(this,"beginDrag",function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)}),this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,$(this.ref))}}])&&pe(t.prototype,n),r&&pe(t,r),e}();function be(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(E(Y(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),o=function(){return e}),E(X(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var i=function(e){return Object.keys(e).forEach(function(t){E(ve.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',ve.join(", "),t),E("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}),me.forEach(function(t){E("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}),function(t,n){return new ye(e,t,n)}}(t);return E("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),E(X(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return he({containerDisplayName:"DragSource",createHandler:i,registerHandler:P,createConnector:function(e){return new A(e)},createMonitor:function(e){return new U(e)},DecoratedComponent:e,getType:o,collect:n,options:r})}}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var we=!1,Te=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),xe(this,"internalMonitor",void 0),xe(this,"targetId",null),this.internalMonitor=t.getMonitor()}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;E(!we,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return we=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{we=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&Ie(t.prototype,n),r&&Ie(t,r),e}();function Se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ce=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),De(this,"hooks",R({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,M(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}})),De(this,"handlerId",null),De(this,"dropTargetRef",null),De(this,"dropTargetNode",void 0),De(this,"dropTargetOptionsInternal",null),De(this,"unsubscribeDropTarget",void 0),De(this,"lastConnectedHandlerId",null),De(this,"lastConnectedDropTarget",null),De(this,"lastConnectedDropTargetOptions",null),De(this,"backend",void 0),this.backend=t}var t,n,r;return t=e,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!H(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}])&&Se(t.prototype,n),r&&Se(t,r),e}();function Oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ke=["canDrop","hover","drop"],Pe=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ee(this,"props",null),Ee(this,"spec",void 0),Ee(this,"monitor",void 0),Ee(this,"ref",void 0),this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,$(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&Oe(t.prototype,n),r&&Oe(t,r),e}();function je(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(E(Y(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of str
2ings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),o=function(){return e}),E(X(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var i=function(e){return Object.keys(e).forEach(function(t){E(ke.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',ke.join(", "),t),E("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])}),function(t,n){return new Pe(e,t,n)}}(t);return E("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),E(X(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return he({containerDisplayName:"DropTarget",createHandler:i,registerHandler:k,createMonitor:function(e){return new Te(e)},createConnector:function(e){return new Ce(e)},DecoratedComponent:e,getType:o,collect:n,options:r})}}var Re="dnd-core/INIT_COORDS",Ne="dnd-core/BEGIN_DRAG",_e="dnd-core/PUBLISH_DRAG_SOURCE",Me="dnd-core/HOVER",He="dnd-core/DROP",ze="dnd-core/END_DRAG";function Le(e,t){return{type:Re,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}function Be(e){return"object"===Ae(e)}var Fe={type:Re,payload:{clientOffset:null,sourceClientOffset:null}};function We(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,o=void 0===r||r,i=n.clientOffset,a=n.getSourceClientOffset,s=e.getMonitor(),c=e.getRegistry();e.dispatch(Le(i)),function(e,t,n){E(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){E(n.getSource(e),"Expected sourceIds to be registered.")})}(t,s,c);var l=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,s);if(null!==l){var u=null;if(i){if(!a)throw new Error("getSourceClientOffset must be defined");!function(e){E("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),u=a(l)}e.dispatch(Le(i,u));var d=c.getSource(l).beginDrag(s,l);if(null!=d){!function(e){E(Be(e),"Item must be an object.")}(d),c.pinSource(l);var f=c.getSourceType(l);return{type:Ne,payload:{itemType:f,item:d,sourceId:l,clientOffset:i||null,sourceClientOffset:u||null,isSourcePublic:!!o}}}}else e.dispatch(Fe)}}function Ve(e){return function(){if(e.getMonitor().isDragging())return{type:_e}}}function Ue(e,t){return null===t?null===e:Array.isArray(e)?e.some(function(e){return e===t}):e===t}function Ke(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){E(Array.isArray(e),"Expected targetIds to be an array.")}(t);var r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){E(t.isDragging(),"Cannot call hover while not dragging."),E(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var o=e[r];E(e.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array."),E(n.getTarget(o),"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){for(var r=e.length-1;r>=0;r--){var o=e[r];Ue(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,o,i),{type:Me,payload:{targetIds:r,clientOffset:n||null}}}}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 10,686 bytes, line 2
2t%2?$e(Object(n),!0).forEach(function(t){qe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();!function(e){E(e.isDragging(),"Cannot call drop while not dragging."),E(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var o=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach(function(o,i){var a=function(e,t,n,r){var o=n.getTarget(e),i=o?o.drop(r,e):void 0;(function(e){E(void 0===e||Be(e),"Drop result must either be an object or undefined.")})(i),void 0===i&&(i=0===t?{}:r.getDropResult());return i}(o,i,r,n),s={type:He,payload:{dropResult:Ge(Ge({},t),a)}};e.dispatch(s)})}}function Ye(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){E(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource());return{type:ze}}}function Qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Je=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ze(this,"store",void 0),Ze(this,"monitor",void 0),Ze(this,"backend",void 0),Ze(this,"isSetUp",!1),Ze(this,"handleRefCountChange",function(){var e=r.store.getState().refCount>0;r.backend&&(e&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!e&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))}),this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}var t,n,r;return t=e,n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:We(e),publishDragSource:Ve(e),hover:Ke(e),drop:Xe(e),endDrag:Ye(e)}}(this);return Object.keys(n).reduce(function(r,o){var i,a=n[o];return r[o]=(i=a,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=i.apply(e,r);void 0!==a&&t(a)}),r},{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],n&&Qe(t.prototype,n),r&&Qe(t,r),e}();function et(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var tt="function"==typeof Symbol&&Symbol.observable||"@@observable",nt=function(){return Math.random().toString(36).substring(7).split("").join(".")},rt={INIT:"@@redux/INIT"+nt(),REPLACE:"@@redux/REPLACE"+nt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+nt()}};function ot(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function it(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(et(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(et(1));return n(it)(e,t)}if("function"!=typeof e)throw new Error(et(2));var o=e,i=t,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function u(){if(c)throw new Error(et(3));return i}function d(e){if("function"!=typeof e)throw new Error(et(4));if(c)throw new Error(et(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw new Error(et(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),a=null}}}function f(e){if(!ot(e))throw new Error(et(7));if(void 0===e.type)throw new Error(et(8));if(c)throw new Error(et(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:rt.INIT}),(r={dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(et(10));o=e,f({type:rt.REPLACE})}})[tt]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(et(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[tt]=function(){return this},e},r}var at=function(e,t){return e===t};function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach(function(t){lt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ut={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function dt(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ut,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case Re:case Ne:return{initialSourceClientOffset:o.sourceClientOffset,initialClientOffset:o.clientOffset,clientOffset:o.clientOffset};case Me:return e=n.clientOffset,t=o.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:ct(ct({},n),{},{clientOffset:o.clientOffset});case ze:case He:return ut;default:return n}}var ft="dnd-core/ADD_SOURCE",ht="dnd-core/ADD_TARGET",pt="dnd-core/REMOVE_SOURCE",gt="dnd-core/REMOVE_TARGET";function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(n),!0).forEach(function(t){yt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bt={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function It(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case Ne:return mt(mt({},n),{},{itemType:o.itemType,item:o.item,sourceId:o.sourceId,isSourcePublic:o.isSourcePublic,dropResult:null,didDrop:!1});case _e:return mt(mt({},n),{},{isSourcePublic:!0});case Me:return mt(mt({},n),{},{targetIds:o.targetIds});case gt:return-1===n.targetIds.indexOf(o.targetId)?n:mt(mt({},n),{},{targetIds:(e=n.targetIds,t=o.targetId,e.filter(function(e){return e!==t}))});case He:return mt(mt({},n),{},{dropResult:o.dropResult,didDrop:!0,targetIds:[]});case ze:return mt(mt({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function xt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case ft:case ht:return e+1;case pt:case gt:return e-1;default:return e}}var wt=[],Tt=[];function St(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Me:break;case ft:case ht:case gt:case pt:return wt;default:return Tt}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,o=t.prevTargetIds,i=void 0===o?[]:o,a=function(e,t){var n=new Map,r=function(e){n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var o=[];return n.forEach(function(e,t){1===e&&o.push(t)}),o}(r,i),s=a.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:at;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(r,i);if(!s)return wt;var c=i[i.length-1],l=r[r.length-1];return c!==l&&(c&&a.push(c),l&&a.push(l)),a}function Dt(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach(function(t){Et(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kt(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:St(r.dirtyHandlerIds,{type:o.type,payload:Ot(Ot({},o.payload),{},{prevTargetIds:(e=r,t="dragOperation.targetIds",n=[],t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:n||null},e))})}),dragOffset:dt(r.dragOffset,o),refCount:xt(r.refCount,o),dragOperation:It(r.dragOperation,o),stateId:Dt(r.stateId)}}function Pt(e,t){return{x:e.x-t.x,y:e.y-t.y}}function jt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wt.__IS_NONE__=!0,Tt.__IS_ALL__=!0;var Nt,_t=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Rt(this,"store",void 0),Rt(this,"registry",void 0),this.store=t,this.registry=n}var t,n,r;return t=e,n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;E("function"==typeof e,"listener must be a function."),E(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of str
2ings.");var r=this.store.getState().stateId;return this.store.subscribe(function(){var o=t.store.getState(),i=o.stateId;try{var a=i===r||i===r+1&&!function(e,t){return e!==wt&&(e===Tt||void 0===t||(n=e,t.filter(function(e){return n.indexOf(e)>-1})).length>0);var n}(o.dirtyHandlerIds,n);a||e()}finally{r=i}})}},{key:"subscribeToOffsetChange",value:function(e){var t=this;E("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe(function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())})}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return E(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return E(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&Ue(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return E(t,"Expected to find a valid source. sourceId=".concat(e)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();if(r&&!Ue(n,r))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(e);return t?i===o.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,r=e.clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset,r&&o&&i?Pt((n=i,{x:(t=r).x+n.x,y:t.y+n.y}),o):null;var e,t,n,r,o,i}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,t&&n?Pt(t,n):null;var e,t,n}}],n&&jt(t.prototype,n),r&&jt(t,r),e}(),Mt=0;function Ht(e){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(e)}function zt(e,t){t&&Array.isArray(e)?e.forEach(function(e){return zt(e,!1)}):E("string"==typeof e||"symbol"===Ht(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Nt||(Nt={}));const Lt=void 0!==n.g?n.g:self,At=Lt.MutationObserver||Lt.WebKitMutationObserver;function Bt(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const Ft="function"==typeof At?function(e){let t=1;const n=new At(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:Bt;class Wt{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const Vt=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Ft(this.flush),this.requestErrorThrow=Bt(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}
2,Ut=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new Wt(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(Vt.registerPendingError);function Kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xt(e){var t=(Mt++).toString();switch(e){case Nt.SOURCE:return"S".concat(t);case Nt.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function Yt(e){switch(e[0]){case"S":return Nt.SOURCE;case"T":return Nt.TARGET;default:E(!1,"Cannot parse handler ID: ".concat(e))}}function Qt(e,t){var n=e.entries(),r=!1;do{var o=n.next(),i=o.done;if(Gt(o.value,2)[1]===t)return!0;r=!!i}while(!r);return!1}var Zt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),$t(this,"types",new Map),$t(this,"dragSources",new Map),$t(this,"dropTargets",new Map),$t(this,"pinnedSourceId",null),$t(this,"pinnedSource",null),$t(this,"store",void 0),this.store=t}var t,n,r;return t=e,n=[{key:"addSource",value:function(e,t){zt(e),function(e){E("function"==typeof e.canDrag,"Expected canDrag to be a function."),E("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),E("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(Nt.SOURCE,e,t);return this.store.dispatch(function(e){return{type:ft,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){zt(e,!0),function(e){E("function"==typeof e.canDrop,"Expected canDrop to be a function."),E("function"==typeof e.hover,"Expected hover to be a function."),E("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(Nt.TARGET,e,t);return this.store.dispatch(function(e){return{type:ht,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return Qt(this.dragSources,e)||Qt(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return E(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return E(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return E(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return E(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return Yt(e)===Nt.SOURCE}},{key:"isTargetId",value:function(e){return Yt(e)===Nt.TARGET}},{key:"removeSource",value:function(e){var t,n=this;E(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:pt,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},Vt.enqueueTask(Ut.create(t))}},{key:"removeTarget",value:function(e){E(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:gt,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);E(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){E(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=Xt(e);return this.types.set(r,t),e===Nt.SOURCE?this.dragSources.set(r,n):e===Nt.TARGET&&this.dropTargets.set(r,n),r}}],n&&Kt(t.prototype,n),r&&Kt(t,r),e}();function Jt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return it(kt,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),o=new _t(r,new Zt(r)),i=new Je(r,o),a=e(i,t,n);return i.receiveBackend(a),i}var en=["children"];function tn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nn(e,t)}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var on=0,an=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),sn=(0,i.memo)(function(e){var t=e.children,n=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cn(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=t;o[an]||(o[an]={dragDropManager:Jt(e,t,n,r)});return o[an]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(rn(e,en)),r=tn(n,2),a=r[0],s=r[1];return(0,i.useEffect)(function(){if(s){var e=cn();return++on,function(){0===--on&&(e[an]=null)}}},[]),(0,o.jsx)(u.Provider,Object.assign({value:a},{children:t}),void 0)});function cn(){return void 0!==n.g?n.g:window}function ln(e){var t=null;return function(){return null==t&&(t=e()),t}}function un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),dn(this,"entered",[]),dn(this,"isNodeInDocument",void 0),this.isNodeInDocument=t}var t,n,r;return t=e,(n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var o=[];return n.forEach(function(e){return o.push(e)}),o}(this.entered.filter(function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))}),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter(function(e){return e!==n})),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&un(t.prototype,n),r&&un(t,r),e}(),hn=ln(function(){return/firefox/i.test(navigator.userAgent)}),pn=ln(function(){return Boolean(window.safari)});function gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
vendor: 2,863 bytes, line 2
2function vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mn=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vn(this,"xs",void 0),vn(this,"ys",void 0),vn(this,"c1s",void 0),vn(this,"c2s",void 0),vn(this,"c3s",void 0);for(var r=t.length,o=[],i=0;i<r;i++)o.push(i);o.sort(function(e,n){return t[e]<t[n]?-1:1});for(var a,s,c=[],l=[],u=[],d=0;d<r-1;d++)a=t[d+1]-t[d],s=n[d+1]-n[d],l.push(a),c.push(s),u.push(s/a);for(var f=[u[0]],h=0;h<l.length-1;h++){var p=u[h],g=u[h+1];if(p*g<=0)f.push(0);else{a=l[h];var v=l[h+1],m=a+v;f.push(3*m/((m+v)/p+(m+a)/g))}}f.push(u[u.length-1]);for(var y,b=[],I=[],x=0;x<f.length-1;x++){y=u[x];var w=f[x],T=1/l[x],S=w+f[x+1]-y-y;b.push((y-w-S)*T),I.push(S*T*T)}this.xs=t,this.ys=n,this.c1s=f,this.c2s=b,this.c3s=I}var t,n,r;return t=e,(n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,c=0,l=i.length-1;c<=l;){var u=t[s=Math.floor(.5*(c+l))];if(u<e)c=s+1;else{if(!(u>e))return n[s];l=s-1}}var d=e-t[a=Math.max(0,l)],f=d*d;return n[a]+r[a]*d+o[a]*f+i[a]*d*f}}])&&gn(t.prototype,n),r&&gn(t,r),e}();function yn(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function bn(e){return{x:e.clientX,y:e.clientY}}function In(e,t,n,r,o){var i,a,s,c="IMG"===(i=t).nodeName&&(hn()||!(null!==(a=document.documentElement)&&void 0!==a&&a.contains(i))),l=yn(c?e:t),u={x:n.x-l.x,y:n.y-l.y},d=e.offsetWidth,f=e.offsetHeight,h=r.anchorX,p=r.anchorY,g=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return pn()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(c,t,d,f),v=g.dragPreviewWidth,m=g.dragPreviewHeight,y=o.offsetX,b=o.offsetY,I=0===b||b;return{x:0===y||y?y:new mn([0,.5,1],[u.x,u.x/d*v,u.x+v-d]).interpolate(h),y:I?b:(s=new mn([0,.5,1],[u.y,u.y/f*m,u.y+m-f]).interpolate(p),pn()&&c&&(s+=(window.devicePixelRatio-1)*m),s)}}var xn,wn="__NATIVE_FILE__",Tn="__NATIVE_URL__",Sn="__NATIVE_TEXT__",Dn="__NATIVE_HTML__";function Cn(e,t,n){var r=t.reduce(function(t,n){return t||e.getData(n)},"");return null!=r?r:n}function On(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var En=(On(xn={},wn,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),On(xn,Dn,{exposeProperties:{html:function(e,t){return Cn(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),On(xn,Tn,{exposeProperties:{urls:function(e,t){return Cn(e,t,"").split("\n")},dataTransfer:function(e){return e}}
2,matchesTypes:["Url","text/uri-list"]}),On(xn,Sn,{exposeProperties:{text:function(e,t){return Cn(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),xn);function kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Pn(this,"item",void 0),Pn(this,"config",void 0),this.config=t,this.item={},this.initializeExposedProperties()}var t,n,r;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach(function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&kn(t.prototype,n),r&&kn(t,r),e}();function Rn(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(En).filter(function(e){return En[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}function Nn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mn=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),_n(this,"ownerDocument",null),_n(this,"globalContext",void 0),_n(this,"optionsArgs",void 0),this.globalContext=t,this.optionsArgs=n}var t,n,r;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return null!==(e=this.globalContext)&&void 0!==e&&e.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}}])&&Nn(t.prototype,n),r&&Nn(t,r),e}();function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach(function(t){An(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function An(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bn=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),An(this,"options",void 0),An(this,"actions",void 0),An(this,"monitor",void 0),An(this,"registry",void 0),An(this,"enterLeaveCounter",void 0),An(this,"sourcePreviewNodes",new Map),An(this,"sourcePreviewNodeOptions",new Map),An(this,"sourceNodes",new Map),An(this,"sourceNodeOptions",new Map),An(this,"dragStartSourceIds",null),An(this,"dropTargetIds",[]),An(this,"dragEnterTargetIds",[]),An(this,"currentNativeSource",null),An(this,"currentNativeHandle",null),An(this,"currentDragSourceNode",null),An(this,"altKeyPressed",!1),An(this,"mouseMoveTimeoutTimer",null),An(this,"asyncEndDragFrameId",null),An(this,"dragOverTargetIds",null),An(this,"lastClientOffset",null),An(this,"hoverRafId",null),An(this,"getSourceClientOffset",function(e){var t=o.sourceNodes.get(e);return t&&yn(t)||null}),An(this,"endDragNativeItem",function(){o.isDraggingNativeItem()&&(o.actions.endDrag(
2),o.currentNativeHandle&&o.registry.removeSource(o.currentNativeHandle),o.currentNativeHandle=null,o.currentNativeSource=null)}),An(this,"isNodeInDocument",function(e){return Boolean(e&&o.document&&o.document.body&&o.document.body.contains(e))}),An(this,"endDragIfSourceWasRemovedFromDOM",function(){var e=o.currentDragSourceNode;null==e||o.isNodeInDocument(e)||o.clearCurrentDragSourceNode()&&o.monitor.isDragging()&&o.actions.endDrag()}),An(this,"handleTopDragStartCapture",function(){o.clearCurrentDragSourceNode(),o.dragStartSourceIds=[]}),An(this,"handleTopDragStart",function(e){if(!e.defaultPrevented){var t=o.dragStartSourceIds;o.dragStartSourceIds=null;var n=bn(e);o.monitor.isDragging()&&o.actions.endDrag(),o.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:o.getSourceClientOffset,clientOffset:n});var r=e.dataTransfer,i=Rn(r);if(o.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){var a=o.monitor.getSourceId(),s=o.sourceNodes.get(a),c=o.sourcePreviewNodes.get(a)||s;if(c){var l=o.getCurrentSourcePreviewNodeOptions(),u=In(s,c,n,{anchorX:l.anchorX,anchorY:l.anchorY},{offsetX:l.offsetX,offsetY:l.offsetY});r.setDragImage(c,u.x,u.y)}}try{null==r||r.setData("application/json",{})}catch(e){}o.setCurrentDragSourceNode(e.target),o.getCurrentSourcePreviewNodeOptions().captureDraggingState?o.actions.publishDragSource():setTimeout(function(){return o.actions.publishDragSource()},0)}else if(i)o.beginDragNativeItem(i);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}}),An(this,"handleTopDragEndCapture",function(){o.clearCurrentDragSourceNode()&&o.monitor.isDragging()&&o.actions.endDrag()}),An(this,"handleTopDragEnterCapture",function(e){if(o.dragEnterTargetIds=[],o.enterLeaveCounter.enter(e.target)&&!o.monitor.isDragging()){var t=e.dataTransfer,n=Rn(t);n&&o.beginDragNativeItem(n,t)}}),An(this,"handleTopDragEnter",function(e){var t=o.dragEnterTargetIds;(o.dragEnterTargetIds=[],o.monitor.isDragging())&&(o.altKeyPressed=e.altKey,t.length>0&&o.actions.hover(t,{clientOffset:bn(e)}),t.some(function(e){return o.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())))}),An(this,"handleTopDragOverCapture",function(){o.dragOverTargetIds=[]}),An(this,"handleTopDragOver",function(e){var t=o.dragOverTargetIds;if(o.dragOverTargetIds=[],!o.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));o.altKeyPressed=e.altKey,o.lastClientOffset=bn(e),null===o.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(o.hoverRafId=requestAnimationFrame(function(){o.monitor.isDragging()&&o.actions.hover(t||[],{clientOffset:o.lastClientOffset}),o.hoverRafId=null})),(t||[]).some(function(e){return o.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())):o.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))}),An(this,"handleTopDragLeaveCapture",function(e){o.isDraggingNativeItem()&&e.preventDefault(),o.enterLeaveCounter.leave(e.target)&&o.isDraggingNativeItem()&&setTimeout(function(){return o.endDragNativeItem()},0)}),An(this,"handleTopDropCapture",function(e){var t;(o.dropTargetIds=[],o.isDraggingNativeItem())?(e.preventDefault(),null===(t=o.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):Rn(e.dataTransfer)&&e.preventDefault();o.enterLeaveCounter.reset()}),An(this,"handleTopDrop",function(e){var t=o.dropTargetIds;o.dropTargetIds=[],o.actions.hover(t,{clientOffset:bn(e)}),o.actions.drop({dropEffect:o.getCurrentDropEffect()}),o.isDraggingNativeItem()?o.endDragNativeItem():o.monitor.isDragging()&&o.actions.endDrag()}),An(this,"handleSelectStart",function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))}),this.options=new Mn(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new fn(this.isNodeInDocument)}var t,n,o;return t=e,(n=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return zn({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();
2return zn({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(r).some(function(t){return r[t]===e})}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new jn(En[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}])&&Ln(t.prototype,n),o&&Ln(t,o),e}(),Fn=function(e,t,n){return new Bn(e,t,n)},Wn=n(40961);function Vn(e){return()=>e}function Un(e){e()}function Kn(e,t){return n=>e(t(n))}function $n(e,t){return()=>e(t)}function Gn(e){return void 0!==e}function qn(){}function Xn(e,t){return t(e),e}function Yn(e,t){return t(e)}function Qn(...e){return e}function Zn(e,t){return e(1,t)}function Jn(e,t){e(0,t)}function er(e){e(2)}
2function tr(e){return e(4)}function nr(e,t){return Zn(e,function(e,t){return n=>e(t,n)}(t,0))}function rr(e,t){const n=e(1,e=>{n(),t(e)});return n}function or(e){let t,n;return r=>o=>{t=o,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function ir(e,t){return e===t}function ar(e=ir){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function sr(e){return t=>n=>{e(n)&&t(n)}}function cr(e){return t=>Kn(t,e)}function lr(e){return t=>()=>{t(e)}}function ur(e,...t){const n=function(...e){return t=>e.reduceRight(Yn,t)}(...t);return(t,r)=>{switch(t){case 2:return void er(e);case 1:return Zn(e,n(r))}}}function dr(e,t){return n=>r=>{n(t=e(t,r))}}function fr(e){return t=>n=>{e>0?e--:t(n)}}function hr(e){let t,n=null;return r=>o=>{n=o,!t&&(t=setTimeout(()=>{t=void 0,r(n)},e))}}function pr(...e){const t=new Array(e.length);let n=0,r=null;const o=Math.pow(2,e.length)-1;return e.forEach((e,i)=>{const a=Math.pow(2,i);Zn(e,e=>{const s=n;n|=a,t[i]=e,s!==o&&n===o&&r&&(r(),r=null)})}),e=>i=>{const a=()=>{e([i].concat(t))};n===o?a():r=a}}function gr(e){let t=e;const n=mr();return(e,r)=>{switch(e){case 0:t=r;break;case 1:r(t);break;case 4:return t}return n(e,r)}}function vr(e,t){return Xn(gr(t),t=>nr(e,t))}function mr(){const e=[];return(t,n)=>{switch(t){case 0:return void e.slice().forEach(e=>{e(n)});case 2:return void e.splice(0,e.length);case 1:return e.push(n),()=>{const t=e.indexOf(n);t>-1&&e.splice(t,1)}}}}function yr(e){return Xn(mr(),t=>nr(e,t))}function br(e,t=[],{singleton:n}={singleton:!0}){return{constructor:e,dependencies:t,id:Ir(),singleton:n}}const Ir=()=>Symbol();function xr(...e){const t=mr(),n=new Array(e.length);let r=0;const o=Math.pow(2,e.length)-1;return e.forEach((e,i)=>{const a=Math.pow(2,i);Zn(e,e=>{n[i]=e,r|=a,r===o&&Jn(t,n)})}),function(e,i){switch(e){case 2:return void er(t);case 1:return r===o&&i(n),Zn(t,i)}}}function wr(e,t=ir){return ur(e,ar(t))}function Tr(...e){return function(t,n){switch(t){case 2:return;case 1:return function(...e){return()=>{e.map(Un)}}(...e.map(e=>Zn(e,n)))}}}var Sr=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(Sr||{});const Dr={0:"debug",3:"error",1:"log",2:"warn"},Cr=br(()=>{const e=gr(3);return{log:gr((t,n,r=1)=>{var o;r>=(null!=(o=(typeof globalThis>"u"?window:globalThis).VIRTUOSO_LOG_LEVEL)?o:tr(e))&&console[Dr[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)}),logLevel:e}},[],{singleton:!0});function Or(e,t,n){return Er(e,t,n).callbackRef}function Er(e,t,n){const r=i.useRef(null);let o=e=>{};const a=i.useMemo(()=>typeof ResizeObserver<"u"?new ResizeObserver(t=>{const r=()=>{const n=t[0].target;null!==n.offsetParent&&e(n)};n?r():requestAnimationFrame(r)}):null,[e,n]);return o=e=>{e&&t?(null==a||a.observe(e),r.current=e):(r.current&&(null==a||a.unobserve(r.current)),r.current=null)},{callbackRef:o,ref:r}}function kr(e,t,n,r,o,a,s,c,l){const u=i.useCallback(n=>{const i=function(e,t,n,r){const o=e.length;if(0===o)return null;const i=[];for(let a=0;a<o;a++){const o=e.item(a);if(void 0===o.dataset.index)continue;const s=parseInt(o.dataset.index),c=parseFloat(o.dataset.knownSize),l=t(o,n);if(0===l&&r("Zero-sized element, this should not happen",{child:o},Sr.ERROR),l===c)continue;const u=i[i.length-1];0===i.length||u.size!==l||u.endIndex!==s-1?i.push({endIndex:s,size:l,startIndex:s}):i[i.length-1].endIndex++}return i}(n.children,t,c?"offsetWidth":"offsetHeight",o);let l=n.parentElement;for(;!l.dataset.virtuosoScroller;)l=l.parentElement;const u="window"===l.lastElementChild.dataset.viewportType;let d;u&&(d=l.ownerDocument.defaultView);const f=s?c?s.scrollLeft:s.scrollTop:u?c?d.scrollX||d.document.documentElement.scrollLeft:d.scrollY||d.document.documentElement.scrollTop:c?l.scrollLeft:l.scrollTop,h=s?c?s.scrollWidth:s.scrollHeight:u?c?d.document.documentElement.scrollWidth:d.document.documentElement.scrollHeight:c?l.scrollWidth:l.scrollHeight,p=s?c?s.offsetWidth:s.offsetHeight:u?c?d.innerWidth:d.innerHeight:c?l.offsetWidth:l.offsetHeight;r({scrollHeight:h,scrollTop:Math.max(f,0),viewportHeight:p}),null==a||a(c?Pr("column-gap",getComputedStyle(n).columnGap,o):Pr("row-gap",getComputedStyle(n).rowGap,o)),null!==i&&e(i)},[e,t,o,a,s,r,c]);return Er(u,n,l)}function Pr(e,t,n){return"normal"!==t&&!(null!=t&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,Sr.WARN),"normal"===t?0:p
2arseInt(null!=t?t:"0",10)}function jr(e,t,n){const r=i.useRef(null),o=i.useCallback(n=>{if(null==n||!n.offsetParent)return;const o=n.getBoundingClientRect(),i=o.width;let a,c;if(t){const e=t.getBoundingClientRect(),n=o.top-e.top;c=e.height-Math.max(0,n),a=n+t.scrollTop}else{const e=s.current.ownerDocument.defaultView;c=e.innerHeight-Math.max(0,o.top),a=o.top+e.scrollY}r.current={offsetTop:a,visibleHeight:c,visibleWidth:i},e(r.current)},[e,t]),{callbackRef:a,ref:s}=Er(o,!0,n),c=i.useCallback(()=>{o(s.current)},[o,s]);return i.useEffect(()=>{var e;if(t){t.addEventListener("scroll",c);const e=new ResizeObserver(()=>{requestAnimationFrame(c)});return e.observe(t),()=>{t.removeEventListener("scroll",c),e.unobserve(t)}}{const t=null==(e=s.current)?void 0:e.ownerDocument.defaultView;return null==t||t.addEventListener("scroll",c),null==t||t.addEventListener("resize",c),()=>{null==t||t.removeEventListener("scroll",c),null==t||t.removeEventListener("resize",c)}}},[c,t,s]),a}const Rr=br(()=>{const e=mr(),t=mr(),n=gr(0),r=mr(),o=gr(0),i=mr(),a=mr(),s=gr(0),c=gr(0),l=gr(0),u=gr(0),d=mr(),f=mr(),h=gr(!1),p=gr(!1),g=gr(!1);return nr(ur(e,cr(({scrollTop:e})=>e)),t),nr(ur(e,cr(({scrollHeight:e})=>e)),a),nr(t,o),{deviation:n,fixedFooterHeight:l,fixedHeaderHeight:c,footerHeight:u,headerHeight:s,horizontalDirection:p,scrollBy:f,scrollContainerState:e,scrollHeight:a,scrollingInProgress:h,scrollTo:d,scrollTop:t,skipAnimationFrameInResizeObserver:g,smoothScrollTargetReached:r,statefulScrollTop:o,viewportHeight:i}},[],{singleton:!0}),Nr={lvl:0};function _r(e,t){const n=e.length;if(0===n)return[];let{index:r,value:o}=t(e[0]);const i=[];for(let a=1;a<n;a++){const{index:n,value:s}=t(e[a]);i.push({end:n-1,start:r,value:o}),r=n,o=s}return i.push({end:1/0,start:r,value:o}),i}function Mr(e){return e===Nr}function Hr(e,t){if(!Mr(e))return t===e.k?e.v:t<e.k?Hr(e.l,t):Hr(e.r,t)}function zr(e,t,n="k"){if(Mr(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=zr(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return zr(e.l,t,n)}function Lr(e,t,n){return Mr(e)?Xr(t,n,1):t===e.k?Kr(e,{k:t,v:n}):t<e.k?Yr(Kr(e,{l:Lr(e.l,t,n)})):Yr(Kr(e,{r:Lr(e.r,t,n)}))}function Ar(){return Nr}function Br(e,t,n){if(Mr(e))return[];return function(e){return _r(e,({k:e,v:t})=>({index:e,value:t}))}(Vr(e,zr(e,t)[0],n))}function Fr(e,t){if(Mr(e))return Nr;const{k:n,l:r,r:o}=e;if(t===n){if(Mr(r))return o;if(Mr(o))return r;{const[t,n]=qr(r);return Ur(Kr(e,{k:t,l:$r(r),v:n}))}}return Ur(Kr(e,t<n?{l:Fr(r,t)}:{r:Fr(o,t)}))}function Wr(e){return Mr(e)?[]:[...Wr(e.l),{k:e.k,v:e.v},...Wr(e.r)]}function Vr(e,t,n){if(Mr(e))return[];const{k:r,l:o,r:i,v:a}=e;let s=[];return r>t&&(s=s.concat(Vr(o,t,n))),r>=t&&r<=n&&s.push({k:r,v:a}),r<=n&&(s=s.concat(Vr(i,t,n))),s}function Ur(e){const{l:t,lvl:n,r:r}=e;if(r.lvl>=n-1&&t.lvl>=n-1)return e;if(n>r.lvl+1){if(Gr(t))return Qr(Kr(e,{lvl:n-1}));if(!Mr(t)&&!Mr(t.r))return Kr(t.r,{l:Kr(t,{r:t.r.l}),lvl:n,r:Kr(e,{l:t.r.r,lvl:n-1})});throw new Error("Unexpected empty nodes")}if(Gr(e))return Zr(Kr(e,{lvl:n-1}));if(Mr(r)||Mr(r.l))throw new Error("Unexpected empty nodes");{const t=r.l,o=Gr(t)?r.lvl-1:r.lvl;return Kr(t,{l:Kr(e,{lvl:n-1,r:t.l}),lvl:t.lvl+1,r:Zr(Kr(r,{l:t.r,lvl:o}))})}}function Kr(e,t){return Xr(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 $r(e){return Mr(e.r)?e.l:Ur(Kr(e,{r:$r(e.r)}))}function Gr(e){return Mr(e)||e.lvl>e.r.lvl}function qr(e){return Mr(e.r)?[e.k,e.v]:qr(e.r)}function Xr(e,t,n,r=Nr,o=Nr){return{k:e,l:r,lvl:n,r:o,v:t}}function Yr(e){return Zr(Qr(e))}function Qr(e){const{l:t}=e;return Mr(t)||t.lvl!==e.lvl?e:Kr(t,{r:Kr(e,{l:t.r})})}function Zr(e){const{lvl:t,r:n}=e;return Mr(n)||Mr(n.r)||n.lvl!==t||n.r.lvl!==t?e:Kr(n,{l:Kr(e,{r:n.l}),lvl:t+1})}function Jr(e,t){return!(!e||e.startIndex!==t.startIndex||e.endIndex!==t.endIndex)}function eo(e,t){return!(!e||e[0]!==t[0]||e[1]!==t[1])}const to=br(()=>({recalcInProgress:gr(!1)}),[],{singleton:!0});function no(e,t,n){return e[ro(e,t,n)]}function ro(e,t,n,r=0){let o=e.length-1;for(;r<=o;){const i=Math.floor((r+o)/2),a=n(e[i],t);
2if(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 new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function oo(e,t){return Math.round(e.getBoundingClientRect()[t])}function io(e){return!Mr(e.groupOffsetTree)}function ao({index:e},t){return t===e?0:t<e?-1:1}function so({offset:e},t){return t===e?0:t<e?-1:1}function co(e,t,n){if(0===t.length)return 0;const{index:r,offset:o,size:i}=no(t,e,ao),a=e-r,s=i*a+(a-1)*n+o;return s>0?s+n:s}function lo(e,t){if(!io(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function uo(e,t,n){if(function(e){return typeof e.groupIndex<"u"}(e))return t.groupIndices[e.groupIndex]+1;{let r=lo("LAST"===e.index?n:e.index,t);return r=Math.max(0,r,Math.min(n,r)),r}}function fo(e,t,n,r=0){return r>0&&(t=Math.max(t,no(e,r,ao).offset)),_r(function(e,t,n,r){const o=ro(e,t,r),i=ro(e,n,r,o);return e.slice(o,i+1)}(e,t,n,so),vo)}function ho(e,[t,n,r,o]){t.length>0&&r("received item sizes",t,Sr.DEBUG);const i=e.sizeTree;let a=i,s=0;if(n.length>0&&Mr(i)&&2===t.length){const e=t[0].size,r=t[1].size;a=n.reduce((t,n)=>Lr(Lr(t,n,e),n+1,r),a)}else[a,s]=function(e,t){let n=Mr(e)?0:1/0;for(const r of t){const{endIndex:t,size:o,startIndex:i}=r;if(n=Math.min(n,i),Mr(e)){e=Lr(e,0,o);continue}const a=Br(e,i-1,t+1);if(a.some(mo(r)))continue;let s=!1,c=!1;for(const{end:n,start:r,value:i}of a)s?(t>=r||o===i)&&(e=Fr(e,r)):(c=i!==o,s=!0),n>t&&t>=r&&i!==o&&(e=Lr(e,t+1,i));c&&(e=Lr(e,i,o))}return[e,n]}(a,t);if(a===i)return e;const{lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d}=go(e.offsetTree,s,a,o);return{groupIndices:n,groupOffsetTree:n.reduce((e,t)=>Lr(e,t,co(t,d,o)),Ar()),lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d,sizeTree:a}}function po(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function go(e,t,n,r){let o=e,i=0,a=0,s=0,c=0;if(0!==t){c=ro(o,t-1,ao),s=o[c].offset;const e=zr(n,t-1);i=e[0],a=e[1],o.length&&o[c].size===zr(n,t)[1]&&(c-=1),o=o.slice(0,c+1)}else o=[];for(const{start:e,value:c}of Br(n,t,1/0)){const t=e-i,n=t*a+s+t*r;o.push({index:e,offset:n,size:c}),i=e,s=n,a=c}return{lastIndex:i,lastOffset:s,lastSize:a,offsetTree:o}}function vo(e){return{index:e.index,value:e}}function mo(e){const{endIndex:t,size:n,startIndex:r}=e;return e=>e.start===r&&(e.end===t||e.end===1/0)&&e.value===n}const yo={offsetHeight:"height",offsetWidth:"width"},bo=br(([{log:e},{recalcInProgress:t}])=>{const n=mr(),r=mr(),o=vr(r,0),i=mr(),a=mr(),s=gr(0),c=gr([]),l=gr(void 0),u=gr(void 0),d=gr((e,t)=>
2oo(e,yo[t])),f=gr(void 0),h=gr(0),p={groupIndices:[],groupOffsetTree:Ar(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:Ar()},g=vr(ur(n,pr(c,e,h),dr(ho,p),ar()),p),v=vr(ur(c,ar(),dr((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),cr(({prev:e})=>e)),[]);nr(ur(c,sr(e=>e.length>0),pr(g,h),cr(([e,t,n])=>{const r=e.reduce((e,r,o)=>Lr(e,r,co(r,t.offsetTree,n)||o),Ar());return{...t,groupIndices:e,groupOffsetTree:r}})),g),nr(ur(r,pr(g),sr(([e,{lastIndex:t}])=>e<t),cr(([e,{lastIndex:t,lastSize:n}])=>[{endIndex:t,size:n,startIndex:e}])),n),nr(l,u);const m=vr(ur(l,cr(e=>void 0===e)),!0);nr(ur(u,sr(e=>void 0!==e&&Mr(tr(g).sizeTree)),cr(e=>[{endIndex:0,size:e,startIndex:0}])),n);const y=yr(ur(n,pr(g),dr(({sizes:e},[t,n])=>({changed:n!==e,sizes:n}),{changed:!1,sizes:p}),cr(e=>e.changed)));Zn(ur(s,dr((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),cr(e=>e.diff)),e=>{const{groupIndices:n}=tr(g);if(e>0)Jn(t,!0),Jn(i,e+po(e,n));else if(e<0){const t=tr(v);t.length>0&&(e-=po(-e,t)),Jn(a,e)}}),Zn(ur(s,pr(e)),([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},Sr.ERROR)});const b=yr(i);nr(ur(i,pr(g),cr(([e,t])=>{const n=t.groupIndices.length>0,r=[],o=t.lastSize;if(n){const n=Hr(t.sizeTree,0);let i=0,a=0;for(;i<e;){const e=t.groupIndices[a],s=t.groupIndices.length===a+1?1/0:t.groupIndices[a+1]-e-1;r.push({endIndex:e,size:n,startIndex:e}),r.push({endIndex:e+1+s-1,size:o,startIndex:e+1}),a++,i+=s+1}const s=Wr(t.sizeTree);return i!==e&&s.shift(),s.reduce((t,{k:n,v:r})=>{let o=t.ranges;return 0!==t.prevSize&&(o=[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]),{prevIndex:n+e,prevSize:r,ranges:o}},{prevIndex:e,prevSize:0,ranges:r}).ranges}return Wr(t.sizeTree).reduce((t,{k:n,v:r})=>({prevIndex:n+e,prevSize:r,ranges:[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]}),{prevIndex:0,prevSize:o,ranges:[]}).ranges})),n);const I=yr(ur(a,pr(g,h),cr(([e,{offsetTree:t},n])=>co(-e,t,n))));return nr(ur(a,pr(g,h),cr(([e,t,n])=>{if(t.groupIndices.length>0){if(Mr(t.sizeTree))return t;let r=Ar();const o=tr(v);let i=0,a=0,s=0;for(;i<-e;){s=o[a];const e=o[a+1]-s-1;a++,i+=e+1}if(r=Wr(t.sizeTree).reduce((t,{k:n,v:r})=>Lr(t,Math.max(0,n+e),r),r),i!==-e){r=Lr(r,0,Hr(t.sizeTree,s));r=Lr(r,1,zr(t.sizeTree,1-e)[1])}return{...t,sizeTree:r,...go(t.offsetTree,0,r,n)}}{const r=Wr(t.sizeTree).reduce((t,{k:n,v:r})=>Lr(t,Math.max(0,n+e),r),Ar());return{...t,sizeTree:r,...go(t.offsetTree,0,r,n)}}})),g),{beforeUnshiftWith:b,data:f,defaultItemSize:u,firstItemIndex:s,fixedItemSize:l,gap:h,groupIndices:c,itemSize:d,listRefresh:y,shiftWith:a,shiftWithOffset:I,sizeRanges:n,sizes:g,statefulTotalCount:o,totalCount:r,trackItemSizes:m,unshiftWith:i}},Qn(Cr,to),{singleton:!0});function Io(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}const xo=br(([{groupIndices:e,sizes:t,totalCount:n},{headerHeight:r,scrollTop:o}])=>{const i=mr(),a=mr(),s=yr(ur(i,cr(Io)));return nr(ur(s,cr(e=>e.totalCount)),n),nr(ur(s,cr(e=>e.groupIndices)),e),nr(ur(xr(o,t,r),sr(([e,t])=>io(t)),cr(([e,t,n])=>zr(t.groupOffsetTree,Math.max(e-n,0),"v")[0]),ar(),cr(e=>[e])),a),{groupCounts:i,topItemsIndexes:a}},Qn(bo,Rr)),wo=br(([{log:e}])=>{const t=gr(!1),n=yr(ur(t,sr(e=>e),ar()));return Zn(t,t=>{t&&tr(e)("props updated",{},Sr.DEBUG)}),{didMount:n,propsReady:t}},Qn(Cr),{singleton:!0}),To=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function So(e){const t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!To)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const Do=br(([{gap:e,listRefresh:t,sizes:n,totalCount:r},{fixedFooterHeight:o,fixedHeaderHeight:i,footerHeight:a,headerHeight:s,scrollingInProgress:c,scrollTo:l,smoothScrollTargetReached:u,viewportHeight:d},{log:f}])=>{const h=mr(),p=mr(),g=gr(0);let v=null,m=null,y=null;function b(){v&&(v(),v=null),y&&(y(),y=null),m&&(clearTimeout(m),m=null),Jn(c,!1)}return nr(ur(h,pr(n,d,r,g,s,a,f),pr(e,i,o),cr(([[e,n,r,o,i,a,s,l],d,f,g])=>{const I=So(e),{align:x,behavior:w,offset:T}=I,S=o-1,D=uo(I,n,S);let C=co(D,n.offsetTree,d)+a;"end"===x?(C+=f+zr(n.sizeTree,D)[1]-r+g,D===S&&(C+=s)):"center"===x?C+=(f+zr(n.sizeTree,D)[1]-r+g)/2:C-=i,T&&(C+=T);const O=t=>{b(),t?(l("retrying to scroll to",{location:e}
2,Sr.DEBUG),Jn(h,e)):(Jn(p,!0),l("list did not change, scroll successful",{},Sr.DEBUG))};if(b(),"smooth"===w){let e=!1;y=Zn(t,t=>{e=e||t}),v=rr(u,()=>{O(e)})}else v=rr(ur(t,function(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return e=>{e&&(t(!0),clearTimeout(n))}}}(150)),O);return m=setTimeout(()=>{b()},1200),Jn(c,!0),l("scrolling from index to",{behavior:w,index:D,top:C},Sr.DEBUG),{behavior:w,top:C}})),l),{scrollTargetReached:p,scrollToIndex:h,topListHeight:g}},Qn(bo,Rr,Cr),{singleton:!0});function Co(e,t){0==e?t():requestAnimationFrame(()=>{Co(e-1,t)})}function Oo(e,t){const n=t-1;return"number"==typeof e?e:"LAST"===e.index?n:e.index}const Eo=br(([{defaultItemSize:e,listRefresh:t,sizes:n},{scrollTop:r},{scrollTargetReached:o,scrollToIndex:i},{didMount:a}])=>{const s=gr(!0),c=gr(0),l=gr(!0);return nr(ur(a,pr(c),sr(([e,t])=>!!t),lr(!1)),s),nr(ur(a,pr(c),sr(([e,t])=>!!t),lr(!1)),l),Zn(ur(xr(t,a),pr(s,n,e,l),sr(([[,e],t,{sizeTree:n},r,o])=>e&&(!Mr(n)||Gn(r))&&!t&&!o),pr(c)),([,e])=>{rr(o,()=>{Jn(l,!0)}),Co(4,()=>{rr(r,()=>{Jn(s,!0)}),Jn(i,e)})}),{initialItemFinalLocationReached:l,initialTopMostItemIndex:c,scrolledToInitialItem:s}},Qn(bo,Rr,Do,wo),{singleton:!0});function ko(e,t){return Math.abs(e-t)<1.01}const Po="up",jo="down",Ro={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},No=br(([{footerHeight:e,headerHeight:t,scrollBy:n,scrollContainerState:r,scrollTop:o,viewportHeight:i}])=>{const a=gr(!1),s=gr(!0),c=mr(),l=mr(),u=gr(4),d=gr(0),f=vr(ur(Tr(ur(wr(o),fr(1),lr(!0)),ur(wr(o),fr(1),lr(!1),or(100))),ar()),!1),h=vr(ur(Tr(ur(n,lr(!0)),ur(n,lr(!1),or(200))),ar()),!1);nr(ur(xr(wr(o),wr(d)),cr(([e,t])=>e<=t),ar()),s),nr(ur(s,hr(50)),l);const p=yr(ur(xr(r,wr(i),wr(t),wr(e),wr(u)),dr((e,[{scrollHeight:t,scrollTop:n},r,o,i,a])=>{const s={scrollHeight:t,scrollTop:n,viewportHeight:r};if(n+r-t>-a){let t,r;return n>e.state.scrollTop?(t="SCROLLED_DOWN",r=e.state.scrollTop-n):(t="SIZE_DECREASED",r=e.state.scrollTop-n||e.scrollTopDelta),{atBottom:!0,atBottomBecause:t,scrollTopDelta:r,state:s}}let c;return c=s.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":r<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":n<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:c,state:s}},Ro),ar((e,t)=>e&&e.atBottom===t.atBottom))),g=vr(ur(r,dr((e,{scrollHeight:t,scrollTop:n,viewportHeight:r})=>{if(ko(e.scrollHeight,t))return{changed:!1,jump:0,scrollHeight:t,scrollTop:n};{const o=t-(n+r)<1;return e.scrollTop!==n&&o?{changed:!0,jump:e.scrollTop-n,scrollHeight:t,scrollTop:n}:{changed:!0,jump:0,scrollHeight:t,scrollTop:n}}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),sr(e=>e.changed),cr(e=>e.jump)),0);nr(ur(p,cr(e=>e.atBottom)),a),nr(ur(a,hr(50)),c);const v=gr(jo);nr(ur(r,cr(({scrollTop:e})=>e),ar(),dr((e,t)=>tr(h)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?Po:jo,prevScrollTop:t},{direction:jo,prevScrollTop:0}),cr(e=>e.direction)),v),nr(ur(r,hr(50),lr("none")),v);const m=gr(0);return nr(ur(f,sr(e=>!e),lr(0)),m),nr(ur(o,hr(100),pr(f),sr(([e,t])=>!!t),dr(([e,t],[n])=>[t,n],[0,0]),cr(([e,t])=>t-e)),m),{atBottomState:p,atBottomStateChange:c,atBottomThreshold:u,atTopStateChange:l,atTopThreshold:d,isAtBottom:a,isAtTop:s,isScrolling:f,lastJumpDueToItemResize:g,scrollDirection:v,scrollVelocity:m}},Qn(Rr)),_o="top",Mo="bottom",Ho="none";function zo(e,t,n){return"number"==typeof e?n===Po&&t===_o||n===jo&&t===Mo?e:0:n===Po?t===_o?e.main:e.reverse:t===Mo?e.main:e.reverse}function Lo(e,t){var n;return"number"==typeof e?e:null!=(n=e[t])?n:0}const Ao=br(([{deviation:e,fixedHeaderHeight:t,headerHeight:n,scrollTop:r,viewportHeight:o}])=>{const i=mr(),a=gr(0),s=gr(0),c=gr(0);return{increaseViewportBy:s,listBoundary:i,overscan:c,topListHeight:a,visibleRange:vr(ur(xr(wr(r),wr(o),wr(n),wr(i,eo),wr(c),wr(a),wr(t),wr(e),wr(s)),cr(([e,t,n,[r,o],i,a,s,c,l])=>{const u=e-c,d=a+s,f=Math.max(n-u,0);let h=Ho;const p=Lo(l,_o),g=Lo(l,Mo);return r-=c,o+=n+s,(r+=n+s)>e+d-p&&(h=Po),(o-=c)<e-f+t+g&&(h=jo),h!==Ho?[Math.max(u-n-zo(i,_o,h)-p,0),u-f-s+t+zo(i,Mo,h)+g]:null}),sr(e=>null!=e),ar(eo)),[0,0])}},Qn(Rr),{singleton:!0});const Bo={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function Fo(e,t,n,r,o,i){const{lastIndex:a,lastOffset:s,lastSize:c}=o;let l=0,u=0;if(e.length>0){l=e[0].offset;const t=e[e.length-1];u=t.offset+t.size}const d=n-a,f=l,h=s+d*c+(d-1)*r-u;return{bottom:u,firstItemIndex:i,items:Vo(e,o,i),offsetBottom:h,offsetTop:l,top:f,topItems:Vo(t,o,i),topListHeight:t.reduce((e,t)=>
2t.size+e,0),totalCount:n}}function Wo(e,t,n,r,o,i){let a=0;if(n.groupIndices.length>0)for(const t of n.groupIndices){if(t-a>=e)break;a++}const s=e+a,c=Oo(t,s);return Fo(Array.from({length:s}).map((e,t)=>({data:i[t+c],index:t+c,offset:0,size:0})),[],s,o,n,r)}function Vo(e,t,n){if(0===e.length)return[];if(!io(t))return e.map(e=>({...e,index:e.index+n,originalIndex:e.index}));const r=e[0].index,o=e[e.length-1].index,i=[],a=Br(t.groupOffsetTree,r,o);let s,c=0;for(const r of e){let e;(!s||s.end<r.index)&&(s=a.shift(),c=t.groupIndices.indexOf(s.start)),e=r.index===s.start?{index:c,type:"group"}:{groupIndex:c,index:r.index-(c+1)+n},i.push({...e,data:r.data,offset:r.offset,originalIndex:r.index,size:r.size})}return i}const Uo=br(([{data:e,firstItemIndex:t,gap:n,sizes:r,totalCount:o},i,{listBoundary:a,topListHeight:s,visibleRange:c},{initialTopMostItemIndex:l,scrolledToInitialItem:u},{topListHeight:d},f,{didMount:h},{recalcInProgress:p}])=>{const g=gr([]),v=gr(0),m=mr();nr(i.topItemsIndexes,g);const y=vr(ur(xr(h,p,wr(c,eo),wr(o),wr(r),wr(l),u,wr(g),wr(t),wr(n),e),sr(([e,t,,n,,,,,,,r])=>{const o=r&&r.length!==n;return e&&!t&&!o}),cr(([,,[e,t],n,r,o,i,a,s,c,l])=>{const u=r,{offsetTree:d,sizeTree:f}=u,h=tr(v);if(0===n)return{...Bo,totalCount:n};if(0===e&&0===t)return 0===h?{...Bo,totalCount:n}:Wo(h,o,r,s,c,l||[]);if(Mr(f))return h>0?null:Fo(function(e,t,n){if(io(t)){const r=lo(e,t);return[{index:zr(t.groupOffsetTree,r)[0],offset:0,size:0},{data:null==n?void 0:n[0],index:r,offset:0,size:0}]}return[{data:null==n?void 0:n[0],index:e,offset:0,size:0}]}(Oo(o,n),u,l),[],n,c,u,s);const p=[];if(a.length>0){const e=a[0],t=a[a.length-1];let n=0;for(const r of Br(f,e,t)){const o=r.value,i=Math.max(r.start,e),a=Math.min(r.end,t);for(let e=i;e<=a;e++)p.push({data:null==l?void 0:l[e],index:e,offset:n,size:o}),n+=o}}if(!i)return Fo([],p,n,c,u,s);const g=a.length>0?a[a.length-1]+1:0,m=fo(d,e,t,g);if(0===m.length)return null;const y=n-1;return Fo(Xn([],n=>{for(const r of m){const o=r.value;let i=o.offset,a=r.start;const s=o.size;if(o.offset<e){a+=Math.floor((e-o.offset+c)/(s+c));const t=a-r.start;i+=t*s+t*c}a<g&&(i+=(g-a)*s,a=g);const u=Math.min(r.end,y);for(let e=a;e<=u&&!(i>=t);e++)n.push({data:null==l?void 0:l[e],index:e,offset:i,size:s}),i+=s+c}}),p,n,c,u,s)}),sr(e=>null!==e),ar()),Bo);nr(ur(e,sr(Gn),cr(e=>null==e?void 0:e.length)),o),nr(ur(y,cr(e=>e.topListHeight)),d),nr(d,s),nr(ur(y,cr(e=>[e.top,e.bottom])),a),nr(ur(y,cr(e=>e.items)),m);const b=yr(ur(y,sr(({items:e})=>e.length>0),pr(o,e),sr(([{items:e},t])=>e[e.length-1].originalIndex===t-1),cr(([,e,t])=>[e-1,t]),ar(eo),cr(([e])=>e))),I=yr(ur(y,hr(200),sr(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),cr(({items:e})=>e[0].index),ar())),x=yr(ur(y,sr(({items:e})=>e.length>0),cr(({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{endIndex:e[n].index,startIndex:e[t].index}}),ar(Jr)));return{endReached:b,initialItemCount:v,itemsRendered:m,listState:y,rangeChanged:x,startReached:I,topItemsIndexes:g,...f}},Qn(bo,xo,Ao,Eo,Do,No,wo,to),{singleton:!0}),Ko=br(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:n,headerHeight:r},{listState:o}])=>{const i=mr(),a=vr(ur(xr(n,e,r,t,o),cr(([e,t,n,r,o])=>e+t+n+r+o.offsetBottom+o.bottom)),0);return nr(wr(a),i),{totalListHeight:a,totalListHeightChanged:i}},Qn(Rr,Uo),{singleton:!0}),$o=br(([{viewportHeight:e},{totalListHeight:t}])=>{const n=gr(!1);return{alignToBottom:n,paddingTopAddition:vr(ur(xr(n,e,t),sr(([e])=>e),cr(([,e,t])=>Math.max(0,e-t)),hr(0),ar()),0)}},Qn(Rr,Ko),{singleton:!0}),Go=br(()=>({context:gr(null)})),qo=({itemBottom:e,itemTop:t,locationParams:{align:n,behavior:r,...o},viewportBottom:i,viewportTop:a})=>t<a?{...o,align:null!=n?n:"start",behavior:r}:e>i?{...o,align:null!=n?n:"end",behavior:r}:null,Xo=br(([{gap:e,sizes:t,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:o,headerHeight:i,scrollingInProgress:a,scrollTop:s,viewportHeight:c},{scrollToIndex:l}])=>{const u=mr();return nr(ur(u,pr(t,c,n,i,o,r,s),pr(e),cr(([[e,t,n,r,o,i,s,c],l])=>{const{align:u,behavior:d,calculateViewLocation:f=qo,done:h,...p}=e,g=uo(e,t,r-1),v=co(g,t.offsetTree,l)+o+i,m=f({itemBottom:v+zr(t.sizeTree,g)[1],itemTop:v,locationParams:{align:u,behavior:d,...p},viewportBottom:c+n-s,viewportTop:c+i});return m?h&&rr(ur(a,sr(e=>!e),fr(tr(a)?1:2)),h):h&&h(),m}),sr(e=>null!==e)),l),{scrollIntoView:u}},Qn(bo,Rr,Do,Uo,Cr),{singleton:!0});function Yo(e){return!!e&&("smooth"===e?"smooth":"auto")}const Qo=br(([{listRefresh:e,totalCount:t,fixedItemSize:n,data:r},{atBottomState:o,isAtBottom:i},{scrollToIndex:a},{scrolledToInitialItem:s}
2,{didMount:c,propsReady:l},{log:u},{scrollingInProgress:d},{context:f},{scrollIntoView:h}])=>{const p=gr(!1),g=mr();let v=null;function m(e){Jn(a,{align:"end",behavior:e,index:"LAST"})}function y(e){const t=rr(o,t=>{e&&!t.atBottom&&"SIZE_INCREASED"===t.notAtBottomBecause&&!v&&(tr(u)("scrolling to bottom due to increased size",{},Sr.DEBUG),m("auto"))});setTimeout(t,100)}Zn(ur(xr(ur(wr(t),fr(1)),c),pr(wr(p),i,s,d),cr(([[e,t],n,r,o,i])=>{let a=t&&o,s="auto";return a&&(s=((e,t)=>"function"==typeof e?Yo(e(t)):t&&Yo(e))(n,r||i),a=a&&!!s),{followOutputBehavior:s,shouldFollow:a,totalCount:e}}),sr(({shouldFollow:e})=>e)),({followOutputBehavior:t,totalCount:r})=>{v&&(v(),v=null),tr(n)?requestAnimationFrame(()=>{tr(u)("following output to ",{totalCount:r},Sr.DEBUG),m(t)}):v=rr(e,()=>{tr(u)("following output to ",{totalCount:r},Sr.DEBUG),m(t),v=null})}),Zn(ur(xr(wr(p),t,l),sr(([e,,t])=>e&&t),dr(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),sr(({refreshed:e})=>e),pr(p,t)),([,e])=>{tr(s)&&y(!1!==e)}),Zn(g,()=>{y(!1!==tr(p))}),Zn(xr(wr(p),o),([e,t])=>{e&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&m("auto")});const b=gr(null),I=mr();return nr(Tr(ur(wr(r),cr(e=>{var t;return null!=(t=null==e?void 0:e.length)?t:0})),ur(wr(t))),I),Zn(ur(xr(ur(I,fr(1)),c),pr(wr(b),s,d,f),cr(([[e,t],n,r,o,i])=>t&&r&&(null==n?void 0:n({context:i,totalCount:e,scrollingInProgress:o}))),sr(e=>!!e),hr(0)),t=>{v&&(v(),v=null),tr(n)?requestAnimationFrame(()=>{tr(u)("scrolling into view",{}),Jn(h,t)}):v=rr(e,()=>{tr(u)("scrolling into view",{}),Jn(h,t),v=null})}),{autoscrollToBottom:g,followOutput:p,scrollIntoViewOnChange:b}},Qn(bo,No,Do,Eo,wo,Cr,Rr,Go,Xo)),Zo=br(([{data:e,firstItemIndex:t,gap:n,sizes:r},{initialTopMostItemIndex:o},{initialItemCount:i,listState:a},{didMount:s}])=>(nr(ur(s,pr(i),sr(([,e])=>0!==e),pr(o,r,t,n,e),cr(([[,e],t,n,r,o,i=[]])=>Wo(e,t,n,r,o,i))),a),{}),Qn(bo,Eo,Uo,wo),{singleton:!0}),Jo=br(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=gr(0);return Zn(ur(e,pr(r),sr(([,e])=>0!==e),cr(([,e])=>({top:e}))),e=>{rr(ur(n,fr(1),sr(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{Jn(t,e)})})}),{initialScrollTop:r}},Qn(wo,Rr,Uo),{singleton:!0}),ei=br(([{scrollVelocity:e}])=>{const t=gr(!1),n=mr(),r=gr(!1);return nr(ur(e,pr(r,t,n),sr(([e,t])=>!!t),cr(([e,t,n,r])=>{const{enter:o,exit:i}=t;if(n){if(i(e,r))return!1}else if(o(e,r))return!0;return n}),ar()),t),Zn(ur(xr(t,e,n),pr(r)),([[e,t,n],r])=>{e&&r&&r.change&&r.change(t,n)}),{isSeeking:t,scrollSeekConfiguration:r,scrollSeekRangeChanged:n,scrollVelocity:e}},Qn(No),{singleton:!0}),ti=br(([{scrollContainerState:e,scrollTo:t}])=>{const n=mr(),r=mr(),o=mr(),i=gr(!1),a=gr(void 0);return nr(ur(xr(n,r),cr(([{scrollHeight:e,scrollTop:t,viewportHeight:n},{offsetTop:r}])=>({scrollHeight:e,scrollTop:Math.max(0,t-r),viewportHeight:n}))),e),nr(ur(t,pr(r),cr(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),o),{customScrollParent:a,useWindowScroll:i,windowScrollContainerState:n,windowScrollTo:o,windowViewportRect:r}},Qn(Rr)),ni=br(([{sizeRanges:e,sizes:t},{headerHeight:n,scrollTop:r},{initialTopMostItemIndex:o},{didMount:i},{useWindowScroll:a,windowScrollContainerState:s,windowViewportRect:c}])=>{const l=mr(),u=gr(void 0),d=gr(null),f=gr(null);return nr(s,d),nr(c,f),Zn(ur(l,pr(t,r,a,d,f,n)),([e,t,n,r,o,i,a])=>{const s=function(e){return Wr(e).map(({k:e,v:t},n,r)=>{const o=r[n+1];return{endIndex:o?o.k-1:1/0,size:t,startIndex:e}})}(t.sizeTree);r&&null!==o&&null!==i&&(n=o.scrollTop-i.offsetTop),e({ranges:s,scrollTop:n-=a})}),nr(ur(u,sr(Gn),cr(ri)),o),nr(ur(i,pr(u),sr(([,e])=>void 0!==e),ar(),cr(([,e])=>e.ranges)),e),{getState:l,restoreStateFrom:u}},Qn(bo,Rr,Eo,wo,ti));function ri(e){return{align:"start",index:0,offset:e.scrollTop}}const oi=br(([{topItemsIndexes:e}])=>{const t=gr(0);return nr(ur(t,sr(e=>e>=0),cr(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},Qn(Uo));function ii(e){let t,n=!1;return()=>(n||(n=!0,t=e()),t)}const ai=ii(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),si=br(([{deviation:e,scrollBy:t,scrollingInProgress:n,scrollTop:r},{isAtBottom:o,isScrolling:i,lastJumpDueToItemResize:a,scrollDirection:s},{listState:c},{beforeUnshiftWith:l,gap:u,shiftWithOffset:d,sizes:f},{log:h},{recalcInProgress:p}])=>{const g=yr(ur(c,pr(a),dr(([,e,t,n],[{bottom:r,items:o,offsetBottom:i,totalCount:a},s])=>{const c=r+i;let l=0;return t===a&&e.length>0&&o.length>0&&(0===o[0].originalIndex&&0===e[0].originalIndex||(l=c-n,0!==l&&(l+=s))),[l,o,a,c]},[0,[],0,0]),sr(([e])=>0!==e),pr(r,s,n,o,h,p),sr(([,e,t,n,,,r])=>!r&&!n&&0!==e&&t===Po),cr(([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},Sr.DEBUG),e))));function v(n){n>0?(Jn(t,{behavior:"auto",top:-n}),Jn(e,0)):(Jn(e,0),Jn(t,{behavior:"auto",top:-n}))}return Zn(ur(g,pr(e,i)),([t,n,r])=>{r&&ai()?Jn(e,n-t):v(-t)}),Zn(ur(xr(vr(i,!1),e,p),sr(([e,t,n])=>!e&&!n&&0!==t),cr(([e,t])=>t),hr(1)),v),nr(ur(d,cr(e=>({top:-e}))),t),Zn(ur(l,pr(f,u),cr(([e,{groupIndices:t,lastSize:n,sizeTree:r},o])=>{function i(e){return e*(n+o)}if(0===t.length)return i(e);{let n=0;const o=Hr(r,0);let a=0,s=0;for(;a<e;){a++,n+=o;let r=t.length===s+1?1/0:t[s+1]-t[s]-1;a+r>e&&(n-=o,r=e-a+1),a+=r,n+=i(r),s++}
2return n}})),n=>{Jn(e,n),requestAnimationFrame(()=>{Jn(t,{top:n}),requestAnimationFrame(()=>{Jn(e,0),Jn(p,!1)})})}),{deviation:e}},Qn(Rr,No,Uo,bo,Cr,to)),ci=br(([e,t,n,r,o,i,a,s,c,l,u])=>({...e,...t,...n,...r,...o,...i,...a,...s,...c,...l,...u}),Qn(Ao,Zo,wo,ei,Ko,Jo,$o,ti,Xo,Cr,Go)),li=br(([{data:e,defaultItemSize:t,firstItemIndex:n,fixedItemSize:r,gap:o,groupIndices:i,itemSize:a,sizeRanges:s,sizes:c,statefulTotalCount:l,totalCount:u,trackItemSizes:d},{initialItemFinalLocationReached:f,initialTopMostItemIndex:h,scrolledToInitialItem:p},g,v,m,{listState:y,topItemsIndexes:b,...I},{scrollToIndex:x},w,{topItemCount:T},{groupCounts:S},D])=>(nr(I.rangeChanged,D.scrollSeekRangeChanged),nr(ur(D.windowViewportRect,cr(e=>e.visibleHeight)),g.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:n,fixedItemHeight:r,gap:o,groupCounts:S,initialItemFinalLocationReached:f,initialTopMostItemIndex:h,scrolledToInitialItem:p,sizeRanges:s,topItemCount:T,topItemsIndexes:b,totalCount:u,...m,groupIndices:i,itemSize:a,listState:y,scrollToIndex:x,statefulTotalCount:l,trackItemSizes:d,...I,...D,...g,sizes:c,...v}),Qn(bo,Eo,Rr,ni,Qo,Uo,Do,si,oi,xo,ci));function ui(e,t){const n={},r={};let o=0;const i=e.length;for(;o<i;)r[e[o]]=1,o+=1;for(const e in t)Object.hasOwn(r,e)||(n[e]=t[e]);return n}const di=typeof document<"u"?i.useLayoutEffect:i.useEffect;function fi(e,t,n){const r=Object.keys(t.required||{}),a=Object.keys(t.optional||{}),s=Object.keys(t.methods||{}),c=Object.keys(t.events||{}),l=i.createContext({});function u(e,n){e.propsReady&&Jn(e.propsReady,!1);for(const o of r){Jn(e[t.required[o]],n[o])}for(const r of a)if(r in n){Jn(e[t.optional[r]],n[r])}e.propsReady&&Jn(e.propsReady,!0)}function d(e){return c.reduce((n,r)=>(n[r]=function(e){let t,n;const r=()=>null==t?void 0:t();return function(o,i){switch(o){case 1:return i?n===i?void 0:(r(),n=i,t=Zn(e,i),t):(r(),qn);case 2:return r(),void(n=null)}}}(e[t.events[r]]),n),{})}const f=i.forwardRef((f,h)=>{const{children:p,...g}=f,[v]=i.useState(()=>Xn(function(e){const t=new Map,n=({constructor:e,dependencies:r,id:o,singleton:i})=>{if(i&&t.has(o))return t.get(o);const a=e(r.map(e=>n(e)));return i&&t.set(o,a),a};return n(e)}(e),e=>{u(e,g)})),[m]=i.useState($n(d,v));di(()=>{for(const e of c)e in g&&Zn(m[e],g[e]);return()=>{Object.values(m).map(er)}},[g,m,v]),di(()=>{u(v,g)}),i.useImperativeHandle(h,Vn(function(e){return s.reduce((n,r)=>(n[r]=n=>{Jn(e[t.methods[r]],n)},n),{})}(v)));const y=n;return(0,o.jsx)(l.Provider,{value:v,children:n?(0,o.jsx)(y,{...ui([...r,...a,...c],g),children:p}):p})});return{Component:f,useEmitter:(e,t)=>{const n=i.useContext(l)[e];di(()=>Zn(n,t),[t,n])},useEmitterValue:i.version.startsWith("18")?e=>{const t=i.useContext(l)[e],n=i.useCallback(e=>Zn(t,e),[t]);return i.useSyncExternalStore(n,()=>tr(t),()=>tr(t))}:e=>{const t=i.useContext(l)[e],[n,r]=i.useState($n(tr,t));return di(()=>Zn(t,e=>{e!==n&&r(Vn(e))}),[t,n]),n},usePublisher:e=>{const t=i.useContext(l);return i.useCallback(n=>{Jn(t[e],n)},[t,e])}}}const hi=i.createContext(void 0),pi=i.createContext(void 0),gi=typeof document<"u"?i.useLayoutEffect:i.useEffect;function vi(e){return"self"in e}function mi(e,t,n,r=qn,o,a){const s=i.useRef(null),c=i.useRef(null),l=i.useRef(null),u=i.useCallback(n=>{let r,o,i;const s=n.target;if(function(e){return"body"in e}(s)||vi(s)){const e=vi(s)?s:s.defaultView;i=a?e.scrollX:e.scrollY,r=a?e.document.documentElement.scrollWidth:e.document.documentElement.scrollHeight,o=a?e.innerWidth:e.innerHeight}else i=a?s.scrollLeft:s.scrollTop,r=a?s.scrollWidth:s.scrollHeight,o=a?s.offsetWidth:s.offsetHeight;const u=()=>{e({scrollHeight:r,scrollTop:Math.max(i,0),viewportHeight:o})};n.suppressFlushSync?u():Wn.flushSync(u),null!==c.current&&(i===c.current||i<=0||i===r-o)&&(c.current=null,t(!0),l.current&&(clearTimeout(l.current),l.current=null))},[e,t,a]);return i.useEffect(()=>{const e=o||s.current;return r(o||s.current),u({suppressFlushSync:!0,target:e}),e.addEventListener("scroll",u,{passive:!0}),()=>{r(null),e.removeEventListener("scroll",u)}},[s,u,n,r,o]),{scrollByCallback:function(e){a&&(e={behavior:e.behavior,left:e.top}),s.current.scrollBy(e)},scrollerRef:s,scrollToCallback:function(n){const r=s.current;if(!r||(a?"offsetWidth"in r&&0===r.offsetWidth:"offsetHeight"in r&&0===r.offsetHeight))return;const o="smooth"===n.behavior;let i,u,d;vi(r)?(u=Math.max(oo(r.document.documentElement,a?"width":"height"),a?r.document.documentElement.scrollWidth:r.document.documentElement.scrollHeight),i=a?r.innerWidth:r.innerHe
2ight,d=a?window.scrollX:window.scrollY):(u=r[a?"scrollWidth":"scrollHeight"],i=oo(r,a?"width":"height"),d=r[a?"scrollLeft":"scrollTop"]);const f=u-i;if(n.top=Math.ceil(Math.max(Math.min(f,n.top),0)),ko(i,u)||n.top===d)return e({scrollHeight:u,scrollTop:d,viewportHeight:i}),void(o&&t(!0));o?(c.current=n.top,l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null,c.current=null,t(!0)},1e3)):c.current=null,a&&(n={behavior:n.behavior,left:n.top}),r.scrollTo(n)}}}const yi="-webkit-sticky",bi="sticky",Ii=ii(()=>{if(typeof document>"u")return bi;const e=document.createElement("div");return e.style.position=yi,e.style.position===yi?yi:bi});function xi(e){return e}const wi=br(([e,t])=>({...e,...t}),Qn(li,br(()=>{const e=gr(e=>`Item ${e}`),t=gr(e=>`Group ${e}`),n=gr({}),r=gr(xi),o=gr("div"),i=gr(qn),a=(e,t=null)=>vr(ur(n,cr(t=>t[e]),ar()),t);return{components:n,computeItemKey:r,EmptyPlaceholder:a("EmptyPlaceholder"),FooterComponent:a("Footer"),GroupComponent:a("Group","div"),groupContent:t,HeaderComponent:a("Header"),HeaderFooterTag:o,ItemComponent:a("Item","div"),itemContent:e,ListComponent:a("List","div"),ScrollerComponent:a("Scroller","div"),scrollerRef:i,ScrollSeekPlaceholder:a("ScrollSeekPlaceholder"),TopItemListComponent:a("TopItemList")}}))),Ti=({height:e})=>(0,o.jsx)("div",{style:{height:e}}),Si={overflowAnchor:"none",position:Ii(),zIndex:1},Di={overflowAnchor:"none"},Ci={...Di,display:"inline-block",height:"100%"},Oi=i.memo(function({showTopList:e=!1}){const t=Ui("listState"),n=Ki("sizeRanges"),r=Ui("useWindowScroll"),a=Ui("customScrollParent"),s=Ki("windowScrollContainerState"),c=Ki("scrollContainerState"),l=a||r?s:c,u=Ui("itemContent"),d=Ui("context"),f=Ui("groupContent"),h=Ui("trackItemSizes"),p=Ui("itemSize"),g=Ui("log"),v=Ki("gap"),m=Ui("horizontalDirection"),{callbackRef:y}=kr(n,p,h,e?qn:l,g,v,a,m,Ui("skipAnimationFrameInResizeObserver")),[b,I]=i.useState(0);Vi("deviation",e=>{b!==e&&I(e)});const x=Ui("EmptyPlaceholder"),w=Ui("ScrollSeekPlaceholder")||Ti,T=Ui("ListComponent"),S=Ui("ItemComponent"),D=Ui("GroupComponent"),C=Ui("computeItemKey"),O=Ui("isSeeking"),E=Ui("groupIndices").length>0,k=Ui("alignToBottom"),P=Ui("initialItemFinalLocationReached"),j=e?{}:{boxSizing:"border-box",...m?{display:"inline-block",height:"100%",marginLeft:0!==b?b:k?"auto":0,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:"nowrap"}:{marginTop:0!==b?b:k?"auto":0,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...P?{}:{visibility:"hidden"}};return!e&&0===t.totalCount&&x?(0,o.jsx)(x,{...Ri(x,d)}):(0,o.jsx)(T,{...Ri(T,d),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:y,style:j,children:(e?t.topItems:t.items).map(e=>{const n=e.originalIndex,r=C(n+t.firstItemIndex,e.data,d);return O?(0,i.createElement)(w,{...Ri(w,d),height:e.size,index:e.index,key:r,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?(0,i.createElement)(D,{...Ri(D,d),"data-index":n,"data-item-index":e.index,"data-known-size":e.size,key:r,style:Si},f(e.index,d)):(0,i.createElement)(S,{...Ri(S,d),...Ni(S,e.data),"data-index":n,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:r,style:m?Ci:Di},E?u(e.index,e.groupIndex,e.data,d):u(e.index,e.data,d))})})}),Ei={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},ki={outline:"none",overflowX:"auto",position:"relative"},Pi=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:{}}),ji={position:Ii(),top:0,width:"100%",zIndex:1};function Ri(e,t){if("string"!=typeof e)return{context:t}}function Ni(e,t){return{item:"string"==typeof e?void 0:t}}const _i=i.memo(function(){const e=Ui("HeaderComponent"),t=Ki("headerHeight"),n=Ui("HeaderFooterTag"),r=Or(i.useMemo(()=>e=>{t(oo(e,"height"))},[t]),!0,Ui("skipAnimationFrameInResizeObserver")),a=Ui("context");return e?(0,o.jsx)(n,{ref:r,children:(0,o.jsx)(e,{...Ri(e,a)})}):null}),Mi=i.memo(function(){const e=Ui("FooterComponent"),t=Ki("footerHeight"),n=Ui("HeaderFooterTag"),r=Or(i.useMemo(()=>e=>{t(oo(e,"height"))},[t]),!0,Ui("skipAnimationFrameInResizeObserver")),a=Ui("context");return e?(0,o.jsx)(n,{ref:r,children:(0,o.jsx)(e,{...Ri(e,a)})}):null});function Hi({useEmitter:e,useEmitterValue:t,usePublisher:n}){return i.memo(function({children:r,style:i,context:a,...s}){const c=n("scrollContainerState"),l=t("ScrollerComponent"),u=n("smoothScrollTargetReached"),d=t("scrollerRef"),f=t("horizontalDirection")||!1,{scrollByCallback:h,scrollerRef:p,scrollToCallback:g}=mi(c,u,l,d,void 0,f);return e("scrollTo",g),e("scrollBy",h),(0,o.jsx)(l,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:p,style:{...f?ki:Ei,...i},tabIndex:0,...s,...Ri(l,a),children:r})})}function zi({useEmitter:e,useEmitterValue:t,usePublisher:n}){return i.memo(function({children:r,style:a,context:s,...c}){const l=n("windowScrollContainerState"),u=t("ScrollerComponent"),d=n("smoothScrollTargetReached"),f=t("totalListHeight"),h=t("deviation"),p=t("customScrollParent"),g=i.useRef(null),v=t("scrollerRef"),{scrollByCallback:m,scrollerRef:y,scrollToCallback:b}=mi(l,d,u,v,p);return gi(()=>{var e;return y.current=p||(null==(e=g.current)?void 0:e.ownerDocument.defaultView),()=>{y.current=null}},[y,p]),e("windowScrollTo",b),e("scrollBy",m),(0,o.jsx)(u,{ref:g,"data-virtuoso-scroller":!0,style:{position:"relative",...a,...0!==f?{height:f+h}:{}}
2,...c,...Ri(u,s),children:r})})}const Li=({children:e})=>{const t=i.useContext(hi),n=Ki("viewportHeight"),r=Ki("fixedItemHeight"),a=Ui("alignToBottom"),s=Ui("horizontalDirection"),c=Or(i.useMemo(()=>Kn(n,e=>oo(e,s?"width":"height")),[n,s]),!0,Ui("skipAnimationFrameInResizeObserver"));return i.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,o.jsx)("div",{"data-viewport-type":"element",ref:c,style:Pi(a),children:e})},Ai=({children:e})=>{const t=i.useContext(hi),n=Ki("windowViewportRect"),r=Ki("fixedItemHeight"),a=Ui("customScrollParent"),s=jr(n,a,Ui("skipAnimationFrameInResizeObserver")),c=Ui("alignToBottom");return i.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,o.jsx)("div",{"data-viewport-type":"window",ref:s,style:Pi(c),children:e})},Bi=({children:e})=>{const t=Ui("TopItemListComponent")||"div",n=Ui("headerHeight"),r={...ji,marginTop:`${n}px`},i=Ui("context");return(0,o.jsx)(t,{style:r,...Ri(t,i),children:e})},Fi=i.memo(function(e){const t=Ui("useWindowScroll"),n=Ui("topItemsIndexes").length>0,r=Ui("customScrollParent"),i=Ui("context");return(0,o.jsxs)(r||t?Gi:$i,{...e,context:i,children:[n&&(0,o.jsx)(Bi,{children:(0,o.jsx)(Oi,{showTopList:!0})}),(0,o.jsxs)(r||t?Ai:Li,{children:[(0,o.jsx)(_i,{}),(0,o.jsx)(Oi,{}),(0,o.jsx)(Mi,{})]})]})}),{Component:Wi,useEmitter:Vi,useEmitterValue:Ui,usePublisher:Ki}=fi(wi,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},Fi),$i=Hi({useEmitter:Vi,useEmitterValue:Ui,usePublisher:Ki}),Gi=zi({useEmitter:Vi,useEmitterValue:Ui,usePublisher:Ki}),qi=Wi,Xi=br(([e,t])=>({...e,...t}),Qn(li,br(()=>{const e=gr(e=>(0,o.jsxs)("td",{children:["Item $",e]})),t=gr(null),n=gr(e=>(0,o.jsxs)("td",{colSpan:1e3,children:["Group ",e]})),r=gr(null),i=gr(null),a=gr({}),s=gr(xi),c=gr(qn),l=(e,t=null)=>vr(ur(a,cr(t=>t[e]),ar()),t);return{components:a,computeItemKey:s,context:t,EmptyPlaceholder:l("EmptyPlaceholder"),FillerRow:l("FillerRow"),fixedFooterContent:i,fixedHeaderContent:r,itemContent:e,groupContent:n,ScrollerComponent:l("Scroller","div"),scrollerRef:c,ScrollSeekPlaceholder:l("ScrollSeekPlaceholder"),TableBodyComponent:l("TableBody","tbody"),TableComponent:l("Table","table"),TableFooterComponent:l("TableFoot","tfoot"),TableHeadComponent:l("TableHead","thead"),TableRowComponent:l("TableRow","tr"),GroupComponent:l("Group","tr")}}))),Yi=({height:e})=>(0,o.jsx)("tr",{children:(0,o.jsx)("td",{style:{height:e}})}),Qi=({height:e})=>(0,o.jsx)("tr",{children:(0,o.jsx)("td",{style:{border:0,height:e,padding:0}})}),Zi={overflowAnchor:"none"},Ji={position:Ii(),zIndex:2,overflowAnchor:"none"},ea=i.memo(function({showTopList:e=!1}){const t=sa("listState"),n=sa("computeItemKey"),r=sa("firstItemIndex"),a=sa("context"),s=sa("isSeeking"),c=sa("fixedHeaderHeight"),l=sa("groupIndices").length>0,u=sa("itemContent"),d=sa("groupContent"),f=sa("ScrollSeekPlaceholder")||Yi,h=sa("GroupComponent"),p=sa("TableRowComponent"),g=(e?t.topItems:[]).reduce((e,t,n
2)=>(0===n?e.push(t.size):e.push(e[n-1]+t.size),e),[]),v=(e?t.topItems:t.items).map(t=>{const o=t.originalIndex,v=n(o+r,t.data,a),m=e?0===o?0:g[o-1]:0;return s?(0,i.createElement)(f,{...Ri(f,a),height:t.size,index:t.index,key:v,type:t.type||"item"}):"group"===t.type?(0,i.createElement)(h,{...Ri(h,a),"data-index":o,"data-item-index":t.index,"data-known-size":t.size,key:v,style:{...Ji,top:c}},d(t.index,a)):(0,i.createElement)(p,{...Ri(p,a),...Ni(p,t.data),"data-index":o,"data-item-index":t.index,"data-known-size":t.size,"data-item-group-index":t.groupIndex,key:v,style:e?{...Ji,top:c+m}:Zi},l?u(t.index,t.groupIndex,t.data,a):u(t.index,t.data,a))});return(0,o.jsx)(o.Fragment,{children:v})}),ta=i.memo(function(){const e=sa("listState"),t=sa("topItemsIndexes").length>0,n=ca("sizeRanges"),r=sa("useWindowScroll"),a=sa("customScrollParent"),s=ca("windowScrollContainerState"),c=ca("scrollContainerState"),l=a||r?s:c,u=sa("trackItemSizes"),d=sa("itemSize"),f=sa("log"),{callbackRef:h,ref:p}=kr(n,d,u,l,f,void 0,a,!1,sa("skipAnimationFrameInResizeObserver")),[g,v]=i.useState(0);aa("deviation",e=>{g!==e&&(p.current.style.marginTop=`${e}px`,v(e))});const m=sa("EmptyPlaceholder"),y=sa("FillerRow")||Qi,b=sa("TableBodyComponent"),I=sa("paddingTopAddition"),x=sa("statefulTotalCount"),w=sa("context");if(0===x&&m)return(0,o.jsx)(m,{...Ri(m,w)});const T=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),S=e.offsetTop+I+g-T,D=e.offsetBottom,C=S>0?(0,o.jsx)(y,{context:w,height:S},"padding-top"):null,O=D>0?(0,o.jsx)(y,{context:w,height:D},"padding-bottom"):null;return(0,o.jsxs)(b,{"data-testid":"virtuoso-item-list",ref:h,...Ri(b,w),children:[C,t&&(0,o.jsx)(ea,{showTopList:!0}),(0,o.jsx)(ea,{}),O]})}),na=({children:e})=>{const t=i.useContext(hi),n=ca("viewportHeight"),r=ca("fixedItemHeight"),a=Or(i.useMemo(()=>Kn(n,e=>oo(e,"height")),[n]),!0,sa("skipAnimationFrameInResizeObserver"));return i.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,o.jsx)("div",{"data-viewport-type":"element",ref:a,style:Pi(!1),children:e})},ra=({children:e})=>{const t=i.useContext(hi),n=ca("windowViewportRect"),r=ca("fixedItemHeight"),a=sa("customScrollParent"),s=jr(n,a,sa("skipAnimationFrameInResizeObserver"));return i.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,o.jsx)("div",{"data-viewport-type":"window",ref:s,style:Pi(!1),children:e})},oa=i.memo(function(e){const t=sa("useWindowScroll"),n=sa("customScrollParent"),r=ca("fixedHeaderHeight"),a=ca("fixedFooterHeight"),s=sa("fixedHeaderContent"),c=sa("fixedFooterContent"),l=sa("context"),u=Or(i.useMemo(()=>Kn(r,e=>oo(e,"height")),[r]),!0,sa("skipAnimationFrameInResizeObserver")),d=Or(i.useMemo(()=>Kn(a,e=>oo(e,"height")),[a]),!0,sa("skipAnimationFrameInResizeObserver")),f=n||t?ua:la,h=n||t?ra:na,p=sa("TableComponent"),g=sa("TableHeadComponent"),v=sa("TableFooterComponent"),m=s?(0,o.jsx)(g,{ref:u,style:{position:"sticky",top:0,zIndex:2},...Ri(g,l),children:s()},"TableHead"):null,y=c?(0,o.jsx)(v,{ref:d,style:{bottom:0,position:"sticky",zIndex:1},...Ri(v,l),children:c()},"TableFoot"):null;return(0,o.jsx)(f,{...e,...Ri(f,l),children:(0,o.jsx)(h,{children:(0,o.jsxs)(p,{style:{borderSpacing:0,overflowAnchor:"none"},...Ri(p,l),children:[m,(0,o.jsx)(ta,{},"TableBody"),y]})})})}),{Component:ia,useEmitter:aa,useEmitterValue:sa,usePublisher:ca}=fi(Xi,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"get
2State"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},oa),la=Hi({useEmitter:aa,useEmitterValue:sa,usePublisher:ca}),ua=zi({useEmitter:aa,useEmitterValue:sa,usePublisher:ca}),da={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},fa={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:ha,floor:pa,max:ga,min:va,round:ma}=Math;function ya(e,t,n){return Array.from({length:t-e+1}).map((t,r)=>({data:null===n?null:n[r+e],index:r+e}))}function ba(e,t){return e&&e.width===t.width&&e.height===t.height}function Ia(e,t){return e&&e.column===t.column&&e.row===t.row}const xa=br(([{increaseViewportBy:e,listBoundary:t,overscan:n,visibleRange:r},{footerHeight:o,headerHeight:i,scrollBy:a,scrollContainerState:s,scrollTo:c,scrollTop:l,smoothScrollTargetReached:u,viewportHeight:d},f,h,{didMount:p,propsReady:g},{customScrollParent:v,useWindowScroll:m,windowScrollContainerState:y,windowScrollTo:b,windowViewportRect:I},x])=>{const w=gr(0),T=gr(0),S=gr(da),D=gr({height:0,width:0}),C=gr({height:0,width:0}),O=mr(),E=mr(),k=gr(0),P=gr(null),j=gr({column:0,row:0}),R=mr(),N=mr(),_=gr(!1),M=gr(0),H=gr(!0),z=gr(!1),L=gr(!1);Zn(ur(p,pr(M),sr(([e,t])=>!!t)),()=>{Jn(H,!1)}),Zn(ur(xr(p,H,C,D,M,z),sr(([e,t,n,r,,o])=>e&&!t&&0!==n.height&&0!==r.height&&!o)),([,,,,e])=>{Jn(z,!0),Co(1,()=>{Jn(O,e)}),rr(ur(l),()=>{Jn(t,[0,0]),Jn(H,!0)})}),nr(ur(N,sr(e=>null!=e&&e.scrollTop>0),lr(0)),T),Zn(ur(p,pr(N),sr(([,e])=>null!=e)),([,e])=>{e&&(Jn(D,e.viewport),Jn(C,e.item),Jn(j,e.gap),e.scrollTop>0&&(Jn(_,!0),rr(ur(l,fr(1)),e=>{Jn(_,!1)}),Jn(c,{top:e.scrollTop})))}),nr(ur(D,cr(({height:e})=>e)),d),nr(ur(xr(wr(D,ba),wr(C,ba),wr(j,(e,t)=>e&&e.column===t.column&&e.row===t.row),wr(l)),cr(([e,t,n,r])=>({gap:n,item:t,scrollTop:r,viewport:e}))),R),nr(ur(xr(wr(w),r,wr(j,Ia),wr(C,ba),wr(D,ba),wr(P),wr(T),wr(_),wr(H),wr(M)),sr(([,,,,,,,e])=>!e),cr(([e,[t,n],r,o,i,a,s,,c,l])=>{const{column:u,row:d}=r,{height:f,width:h}=o,{width:p}=i;if(0===s&&(0===e||0===p))return da;if(0===h){const t=Oo(l,e);return function(e){return{...fa,items:e}}(ya(t,t+Math.max(s-1,0),a))}const g=wa(p,h,u);let v,m;c?0===t&&0===n&&s>0?(v=0,m=s-1):(v=g*pa((t+d)/(f+d)),m=g*ha((n+d)/(f+d))-1,m=va(e-1,ga(m,g-1)),v=va(m,ga(0,v))):(v=0,m=-1);const y=ya(v,m,a),{bottom:b,top:I}=Ta(i,r,o,y),x=ha(e/g);return{bottom:b,itemHeight:f,items:y,itemWidth:h,offsetBottom:x*f+(x-1)*d-b,offsetTop:I,top:I}})),S),nr(ur(P,sr(e=>null!==e),cr(e=>e.length)),w),nr(ur(xr(D,C,S,j),sr(([e,t,{items:n}])=>n.length>0&&0!==t.height&&0!==e.height),cr(([e,t,{items:n},r])=>{const{bottom:o,top:i}=Ta(e,r,t,n);return[i,o]}),ar(eo)),t);const A=gr(!1);nr(ur(l,pr(A),cr(([e,t])=>t||0!==e)),A);const B=yr(ur(xr(S,w),sr(([{items:e}])=>e.length>0),pr(A),sr(([[e,t],n])=>{const r=e.items[e.items.length-1].index===t-1;return(n||e.bottom>0&&e.itemHeight>0&&0===e.offsetBottom&&e.items.length===t)&&r}),cr(([[,e]])=>e-1),ar())),F=yr(ur(wr(S),sr(({items:e})=>e.length>0&&0===e[0].index),lr(0),ar())),W=yr(ur(wr(S),pr(_),sr(([{items:e},t])=>e.length>0&&!t),cr(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),ar(Jr),hr(0)));nr(W,h.scrollSeekRangeChanged),nr(ur(O,pr(D,C,w,j),cr(([e,t,n,r,o])=>{const i=So(e),{align:a,behavior:s,offset:c}=i;let l=i.index;"LAST"===l&&(l=r-1),l=ga(0,l,va(r-1,l));let u=Sa(t,o,n,l);return"end"===a?u=ma(u-t.height+n.height):"center"===a&&(u=ma(u-t.height/2+n.height/2)),c&&(u+=c),{behavior:s,top:u}})),c);const V=vr(ur(S,cr(e=>e.offsetBottom+e.bottom)),0);return nr(ur(I,cr(e=>({height:e.visibleHeight,width:e.visibleWidth}))),D),{customScrollParent:v,data:P,deviation:k,footerHeight:o,gap:j,headerHeight:i,increaseViewportBy:e,initialItemCount:T,itemDimensions:C,overscan:n,restoreStateFrom:N,scrollBy:a,scrollContainerState:s,scrollHeight:E,scrollTo:c,scrollToIndex:O,scrollTop:l,smoothScrollTargetReached:u,totalCount:w,useWindowScroll:m,viewportDimensions:D,windowScrollContainerState:y,windowScrollTo:b,windowViewportRect:I,...h,gridState:S,horizontalDirection:L,initialTopM
2ostItemIndex:M,totalListHeight:V,...f,endReached:B,propsReady:g,rangeChanged:W,startReached:F,stateChanged:R,stateRestoreInProgress:_,...x}},Qn(Ao,Rr,No,ei,wo,ti,Cr));function wa(e,t,n){return ga(1,pa((e+n)/(pa(t)+n)))}function Ta(e,t,n,r){const{height:o}=n;if(void 0===o||0===r.length)return{bottom:0,top:0};const i=Sa(e,t,n,r[0].index);return{bottom:Sa(e,t,n,r[r.length-1].index)+o,top:i}}function Sa(e,t,n,r){const o=wa(e.width,n.width,t.column),i=pa(r/o),a=i*n.height+ga(0,i-1)*t.row;return a>0?a+t.row:a}const Da=br(([e,t])=>({...e,...t}),Qn(xa,br(()=>{const e=gr(e=>`Item ${e}`),t=gr({}),n=gr(null),r=gr("virtuoso-grid-item"),o=gr("virtuoso-grid-list"),i=gr(xi),a=gr("div"),s=gr(qn),c=(e,n=null)=>vr(ur(t,cr(t=>t[e]),ar()),n),l=gr(!1),u=gr(!1);return nr(wr(u),l),{components:t,computeItemKey:i,context:n,FooterComponent:c("Footer"),HeaderComponent:c("Header"),headerFooterTag:a,itemClassName:r,ItemComponent:c("Item","div"),itemContent:e,listClassName:o,ListComponent:c("List","div"),readyStateChanged:l,reportReadyState:u,ScrollerComponent:c("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:c("ScrollSeekPlaceholder","div")}}))),Ca=i.memo(function(){const e=_a("gridState"),t=_a("listClassName"),n=_a("itemClassName"),r=_a("itemContent"),a=_a("computeItemKey"),s=_a("isSeeking"),c=Ma("scrollHeight"),l=_a("ItemComponent"),u=_a("ListComponent"),d=_a("ScrollSeekPlaceholder"),f=_a("context"),h=Ma("itemDimensions"),p=Ma("gap"),g=_a("log"),v=_a("stateRestoreInProgress"),m=Ma("reportReadyState"),y=Or(i.useMemo(()=>e=>{const t=e.parentElement.parentElement.scrollHeight;c(t);const n=e.firstChild;if(n){const{height:e,width:t}=n.getBoundingClientRect();h({height:e,width:t})}p({column:La("column-gap",getComputedStyle(e).columnGap,g),row:La("row-gap",getComputedStyle(e).rowGap,g)})},[c,h,p,g]),!0,!1);return gi(()=>{e.itemHeight>0&&e.itemWidth>0&&m(!0)},[e]),v?null:(0,o.jsx)(u,{className:t,ref:y,...Ri(u,f),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(t=>{const c=a(t.index,t.data,f);return s?(0,o.jsx)(d,{...Ri(d,f),height:e.itemHeight,index:t.index,width:e.itemWidth},c):(0,i.createElement)(l,{...Ri(l,f),className:n,"data-index":t.index,key:c},r(t.index,t.data,f))})})}),Oa=i.memo(function(){const e=_a("HeaderComponent"),t=Ma("headerHeight"),n=_a("headerFooterTag"),r=Or(i.useMemo(()=>e=>{t(oo(e,"height"))},[t]),!0,!1),a=_a("context");return e?(0,o.jsx)(n,{ref:r,children:(0,o.jsx)(e,{...Ri(e,a)})}):null}),Ea=i.memo(function(){const e=_a("FooterComponent"),t=Ma("footerHeight"),n=_a("headerFooterTag"),r=Or(i.useMemo(()=>e=>{t(oo(e,"height"))},[t]),!0,!1),a=_a("context");return e?(0,o.jsx)(n,{ref:r,children:(0,o.jsx)(e,{...Ri(e,a)})}):null}),ka=({children:e})=>{const t=i.useContext(pi),n=Ma("itemDimensions"),r=Ma("viewportDimensions"),a=Or(i.useMemo(()=>e=>{r(e.getBoundingClientRect())},[r]),!0,!1);return i.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),(0,o.jsx)("div",{ref:a,style:Pi(!1),children:e})},Pa=({children:e})=>{const t=i.useContext(pi),n=Ma("windowViewportRect"),r=Ma("itemDimensions"),a=_a("customScrollParent"),s=jr(n,a,!1);return i.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),(0,o.jsx)("div",{ref:s,style:Pi(!1),children:e})},ja=i.memo(function({...e}){const t=_a("useWindowScroll"),n=_a("customScrollParent"),r=n||t?za:Ha,i=n||t?Pa:ka,a=_a("context");return(0,o.jsx)(r,{...e,...Ri(r,a),children:(0,o.jsxs)(i,{children:[(0,o.jsx)(Oa,{}),(0,o.jsx)(Ca,{}),(0,o.jsx)(Ea,{})]})})}),{Component:Ra,useEmitter:Na,useEmitterValue:_a,usePublisher:Ma}=fi(Da,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom
2:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},ja),Ha=Hi({useEmitter:Na,useEmitterValue:_a,usePublisher:Ma}),za=zi({useEmitter:Na,useEmitterValue:_a,usePublisher:Ma});function La(e,t,n){return"normal"!==t&&!(null!=t&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,Sr.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}const Aa=e=>"string"==typeof e?e:void 0===e||"object"!=typeof e||!e.props||!e.props.children||"string"!=typeof e.props.children&&"object"!=typeof e.props.children?"":"string"==typeof e.props.children?e.props.children:e.props.children.map(e=>Aa(e)).join(""),Ba=(e,t,n,r,o)=>"function"==typeof n[e]?String(n[e]({node:n,path:r,treeIndex:o})).includes(t):"object"==typeof n[e]?Aa(n[e]).includes(t):n[e]&&String(n[e]).includes(t),Fa=({node:e,path:t,treeIndex:n,searchQuery:r})=>Ba("title",r,e,t,n)||Ba("subtitle",r,e,t,n),Wa=({targetIndex:e,node:t,currentIndex:n,getNodeKey:r,path:o=[],lowerSiblingCounts:i=[],ignoreCollapsed:a=!0,isPseudoRoot:s=!1})=>{const c=s?[]:[...o,r({node:t,treeIndex:n})];if(n===e)return{node:t,lowerSiblingCounts:i,path:c};if(!(null==t?void 0:t.children)||a&&!0!==(null==t?void 0:t.expanded))return{nextIndex:n+1};let l=n+1;const u=t.children.length;for(let n=0;n<u;n+=1){const o=Wa({ignoreCollapsed:a,getNodeKey:r,targetIndex:e,node:t.children[n],currentIndex:l,lowerSiblingCounts:[...i,u-n-1],path:c});if(o.node)return o;l=o.nextIndex}return{nextIndex:l}},Va=({node:e,ignoreCollapsed:t=!0})=>Wa({getNodeKey:()=>{},ignoreCollapsed:t,node:e,currentIndex:0,targetIndex:-1}).nextIndex-1,Ua=({callback:e,getNodeKey:t,ignoreCollapsed:n,isPseudoRoot:r=!1,node:o,parentNode:i,currentIndex:a,path:s=[],lowerSiblingCounts:c=[]})=>{const l=r?[]:[...s,t({node:o,treeIndex:a})];if(!r){if(!1===e(r?void 0:{node:o,parentNode:i,path:l,lowerSiblingCounts:c,treeIndex:a}))return!1}if(!o.children||!0!==o.expanded&&n&&!r)return a;let u=a;const d=o.children.length;if("function"!=typeof o.children)for(let i=0;i<d;i+=1)if(u=Ua({callback:e,getNodeKey:t,ignoreCollapsed:n,node:o.children[i],parentNode:r?void 0:o,currentIndex:u+1,lowerSiblingCounts:[...c,d-i-1],path:l}),!1===u)return!1;return u},Ka=({callback:e,getNodeKey:t,ignoreCollapsed:n,isPseudoRoot:r=!1,node:o,parentNode:i,currentIndex:a,path:s=[],lowerSiblingCounts:c=[]})=>{const l={...o},u=r?[]:[...s,t({node:l,treeIndex:a})],d={node:l,parentNode:i,path:u,lowerSiblingCounts:c,treeIndex:a};if(!l.children||!0!==l.expanded&&n&&!r)return{treeIndex:a,node:e(d)};let f=a;const h=l.children.length;return"function"!=typeof l.children&&(l.children=l.children.map((o,i)=>{const a=Ka({callback:e,getNodeKey:t,ignoreCollapsed:n,node:o,parentNode:r?void 0:l,currentIndex:f+1,lowerSiblingCounts:[...c,h-i-1],path:u});return f=a.treeIndex,a.node})),{node:e(d),treeIndex:f}},$a=({treeData:e,getNodeKey:t,callback:n,ignoreCollapsed:r=!0})=>{e&&0!==e.length&&Ua({callback:n,getNodeKey:t,ignoreCollapsed:r,isPseudoRoot:!0,node:{children:e},currentIndex:-1,path:[],lowerSiblingCounts:[]})},Ga=({treeData:e,getNodeKey:t,callback:n,ignoreCollapsed:r=!0})=>e&&0!==e.length?Ka({callback:n,getNodeKey:t,ignoreCollapsed:r,isPseudoRoot:!0,node:{children:e},currentIndex:-1,path:[],lowerSiblingCounts:[]}).node.children:[],qa=({treeData:e,expanded:t=!0})=>Ga({treeData:e,callback:({node:e})=>({...e,expanded:t}),getNodeKey:({treeIndex:e})=>e,ignoreCollapsed:!1}),Xa=({treeData:e,path:t,newNode:n,getNodeKey:r,ignoreCollapsed:o=!0})=>{const i="RESULT_MISS",a=({isPseudoRoot:e=!1,node:s,currentTreeIndex:c,pathIndex:l})=>{if(!e&&r({node:s,treeIndex:c})!==t[l])return i;if(l>=t.length-1)return"function"==typeof n?n({node:s,treeIndex:c}):n;if(!s.children)throw new Error("Path referenced children of node with no children.");let u=c+1;for(let e=0;e<s.children.length;e+=1){const t=a({node:s.children[e],currentTreeIndex:u,pathIndex:l+1});if(t!==i)return t?{...s,children:[...s.children.slice(0,e),t,...s.children.slice(e+1)]}:{...s,children:[...s.children.slice(0,e),...s.children.slice(e+1)]};u+=1+Va({node:s.children[e],ignoreCollapsed:o})}return i},s=a({node:{children:e},currentTreeIndex:-1,pathIndex:-1,isPseudoRoot:!0});if(s===i)throw new Error("No node found at the given path.");return s.children},Ya=({targetDepth:e,minimumTreeIndex:t,newNode:n,ignoreCollapsed:r,expandParent:o,isPseudoRoot:i=!1,isLastChild:a,node:s,currentIndex:c,currentDepth:l,getNodeKey:u,path:d=[]})=>{const f=e=>i?[]:[...d,u({node:e,treeIndex:c})];if(c>=t-1||a&&!(s.children&&s.children.length>0)){if("function"==typeof s.children)throw new TypeError("Cannot add to children defined by a function");{const e=o?{expanded:!0}:{},t={...s,...e,children:s.children?[n,...s.children]:[n]};return{node:t,nextIndex:c+2,insertedTreeIndex:c+1,parentPath:f(t),parentNode:i?void 0:t}}}if(l>=e-1){if(!s.children||"function"==typeof s.children||!0!==s.expanded&&r&&!i)return{node:s,nextIndex:c+1};let e,o,l=c+1;for(let n=0;n<s.children.length;n+=1){if(l>=t){e=l,o=n;break}l+=1+Va({node:s.children[n],ignoreCollapsed:r})}if(null==o){if(l<t&&!a)return{node:s,nextIndex:l};e=l,o=s.children.length}const u={...s,children:[...s.children.slice(0,o),n,...s.children.slice(o)]};return{node:u,nextIndex:l,insertedTreeIndex:e,parentPath:f(u),parentNode:i?void 0:u}}if(!s.children||"function"==typeof s.children||!0!==s.expanded&&r&&!i)return{node:s,nextIndex:c+1};let h,p,g,v=c+1,m=s.children;"function"!=typeof m&&(m=m.map((i,s)=>{if(null!=h)return i;const c=Ya({targetDepth:e,minimumTreeIndex:t,newNode:n,ignoreCollapsed:r,expandParent:o,isLastChild:a&&s===m.length-1,node:i,currentIndex:v,currentDepth:l+1,getNodeKey:u,path:[]});return"insertedTreeIndex"in c&&({insertedTreeIndex:h,parentNode:g,parentPath:p}=c),v=c.nextIndex,c.node}));const y={...s,children:m}
2,b={node:y,nextIndex:v};return null!=h&&(b.insertedTreeIndex=h,b.parentPath=[...f(y),...p],b.parentNode=g),b},Qa=({treeData:e,depth:t,minimumTreeIndex:n,newNode:r,getNodeKey:o,ignoreCollapsed:i=!0,expandParent:a=!1})=>{if(!e&&0===t)return{treeData:[r],treeIndex:0,path:[o({node:r,treeIndex:0})],parentNode:void 0};const s=Ya({targetDepth:t,minimumTreeIndex:n,newNode:r,ignoreCollapsed:i,expandParent:a,getNodeKey:o,isPseudoRoot:!0,isLastChild:!0,node:{children:e},currentIndex:-1,currentDepth:-1});if(!("insertedTreeIndex"in s))throw new Error("No suitable position found to insert.");const c=s.insertedTreeIndex;return{treeData:s.node.children,treeIndex:c,path:[...s.parentPath,o({node:r,treeIndex:c})],parentNode:s.parentNode}},Za=(e,t)=>!!e.children&&"function"!=typeof e.children&&e.children.some(e=>e===t||Za(e,t)),Ja=(e,t=0)=>e.children?"function"==typeof e.children?t+1:e.children.reduce((e,n)=>Math.max(e,Ja(n,t+1)),t):t,es=(...e)=>e.filter(Boolean).join(" "),ts={isSearchMatch:!1,isSearchFocus:!1,canDrag:!1,toggleChildrenVisibility:void 0,buttons:[],className:"",style:{},parentNode:void 0,draggedNode:void 0,canDrop:!1,title:void 0,subtitle:void 0,rowDirection:"ltr"},ns=function(e){e={...ts,...e};const{scaffoldBlockPxWidth:t,toggleChildrenVisibility:n,connectDragPreview:r,connectDragSource:i,isDragging:a,canDrop:s,canDrag:c,node:l,title:u,subtitle:d,draggedNode:f,path:h,treeIndex:p,isSearchMatch:g,isSearchFocus:v,buttons:m,className:y,style:b,didDrop:I,treeId:x,isOver:w,parentNode:T,rowDirection:S,...D}=e,C=u||l.title,O=d||l.subtitle,E="rtl"===S?"rst__rtl":void 0;let k;c&&(k="function"==typeof l.children&&l.expanded?(0,o.jsx)("div",{className:"rst__loadingHandle",children:(0,o.jsx)("div",{className:"rst__loadingCircle",children:Array.from({length:12}).map((e,t)=>(0,o.jsx)("div",{className:es("rst__loadingCirclePoint",E??"")},t))})}):i((0,o.jsx)("div",{className:"rst__moveHandle"}),{dropEffect:"copy"}));const P=f&&Za(f,l),j=!I&&a;let R={left:-.5*t,right:0};return"rtl"===S&&(R={right:-.5*t,left:0}),(0,o.jsxs)("div",{style:{height:"100%"},...D,children:[n&&l.children&&(l.children.length>0||"function"==typeof l.children)&&(0,o.jsxs)("div",{children:[(0,o.jsx)("button",{type:"button","aria-label":l.expanded?"Collapse":"Expand",className:es(l.expanded?"rst__collapseButton":"rst__expandButton",E??""),style:R,onClick:()=>n({node:l,path:h,treeIndex:p})}),l.expanded&&!a&&(0,o.jsx)("div",{style:{width:t},className:es("rst__lineChildren",E??"")})]}),(0,o.jsx)("div",{className:es("rst__rowWrapper",E??""),children:r((0,o.jsxs)("div",{className:es("rst__row",j?"rst__rowLandingPad":"",j&&!s?"rst__rowCancelPad":"",g?"rst__rowSearchMatch":"",v?"rst__rowSearchFocus":"",E??"",y??""),style:{opacity:P?.5:1,...b},children:[k,(0,o.jsxs)("div",{className:es("rst__rowContents",c?"":"rst__rowContentsDragDisabled",E??""),children:[(0,o.jsxs)("div",{className:es("rst__rowLabel",E??""),children:[(0,o.jsx)("span",{className:es("rst__rowTitle",l.subtitle?"rst__rowTitleWithSubtitle":""),children:"function"==typeof C?C({node:l,path:h,treeIndex:p}):C}),O&&(0,o.jsx)("span",{className:"rst__rowSubtitle",children:"function"==typeof O?O({node:l,path:h,treeIndex:p}):O})]}),(0,o.jsx)("div",{className:"rst__rowToolbar",children:null==m?void 0:m.map((e,t)=>(0,o.jsx)("div",{className:"rst__toolbarButton",children:e},t))})]})]}))})]})},rs={isOver:!1,canDrop:!1},os=function(e){e={...rs,...e};const{canDrop:t,isOver:n}=e;return(0,o.jsx)("div",{className:es("rst__placeholder",t?"rst__placeholderL
2andingPad":"",t&&!n?"rst__placeholderCancelPad":"")})},is={swapFrom:void 0,swapDepth:void 0,swapLength:void 0,canDrop:!1,draggedNode:void 0,rowDirection:"ltr"};class as extends i.Component{render(){const e={...is,...this.props},{children:t,listIndex:n,swapFrom:r,swapLength:a,swapDepth:s,scaffoldBlockPxWidth:c,lowerSiblingCounts:l,connectDropTarget:u,isOver:d,draggedNode:f,canDrop:h,treeIndex:p,rowHeight:g,treeId:v,getPrevRow:m,node:y,path:b,rowDirection:I,...x}=e,w="rtl"===I?"rst__rtl":void 0,T=l.length,S=[];for(const[e,t]of l.entries()){let i="";if(t>0?i=0===n?"rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom":e===T-1?"rst__lineHalfHorizontalRight rst__lineFullVertical":"rst__lineFullVertical":0===n?i="rst__lineHalfHorizontalRight":e===T-1&&(i="rst__lineHalfVerticalTop rst__lineHalfHorizontalRight"),S.push((0,o.jsx)("div",{style:{width:c},className:es("rst__lineBlock",i,w??"")},`pre_${1+e}`)),p!==n&&e===s){let t="";t=n===r+a-1?"rst__highlightBottomLeftCorner":p===r?"rst__highlightTopLeftCorner":"rst__highlightLineVertical";const i="rtl"===I?{width:c,right:c*e}:{width:c,left:c*e};S.push((0,o.jsx)("div",{style:i,className:es("rst__absoluteLineBlock",t,w??"")},e))}}const D="rtl"===I?{right:c*T}:{left:c*T};let C=g;return"function"==typeof g&&(C=g(p,y,b)),u((0,o.jsxs)("div",{...x,style:{height:`${C}px`},className:es("rst__node",w??""),ref:e=>this.node=e,children:[S,(0,o.jsx)("div",{className:"rst__nodeContent",style:D,children:i.Children.map(t,e=>(0,i.cloneElement)(e,{isOver:d,canDrop:h,draggedNode:f}))})]}))}}const ss={canDrop:!1,draggedNode:void 0},cs=e=>{e={...ss,...e};const{children:t,connectDropTarget:n,treeId:r,drop:a,...s}=e;return n((0,o.jsx)("div",{children:i.Children.map(t,e=>(0,i.cloneElement)(e,{...s}))}))};let ls=0;const us=(e,t)=>({connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging(),didDrop:t.didDrop()}),ds=(e,t)=>{const n=t.getItem();return{connectDropTarget:e.dropTarget(),isOver:t.isOver(),canDrop:t.canDrop(),draggedNode:n?n.node:void 0}},fs=(e,t,n,r,o,i)=>{let a=0;const s=e.getPrevRow();if(s){const{node:t}=s;let{path:n}=s;!r(t)&&(n=n.slice(0,-1)),a=Math.min(n.length,e.path.length)}let c,l=(t.getItem().path||[]).length;if(t.getItem().treeId===o){const n="rtl"===e.rowDirection?-1:1;c=Math.round(n*t.getDifferenceFromInitialOffset().x/e.scaffoldBlockPxWidth)}else if(l=0,n){const r=n.node.getBoundingClientRect(),o=t.getSourceClientOffset().x-r.left;c=Math.round(o/e.scaffoldBlockPxWidth)}else c=e.path.length;let u=Math.min(a,Math.max(0,l+c-1));if(void 0!==i&&void 0!==i){const e=t.getItem().node,n=Ja(e);u=Math.max(0,Math.min(u,i-n-1))}return u},hs=(e,t,n,r,o,i,a,s,c,l,u)=>{const d={drop:(e,o,a)=>{const s={node:o.getItem().node,path:o.getItem().path,treeIndex:o.getItem().treeIndex,treeId:n,minimumTreeIndex:e.treeIndex,depth:fs(e,o,a,t,n,r)};return i(s),s},hover:(e,o,i)=>{const s=fs(e,o,i,t,n,r),c=o.getItem().node;(e.node!==c||s!==e.path.length-1)&&(cancelAnimationFrame(ls),ls=requestAnimationFrame(()=>{const t=o.getItem();t&&o.isOver()&&a({node:c,path:t.path,minimumTreeIndex:e.listIndex,depth:s})}))},canDrop:(e,i)=>((e,t,n,r,o,i)=>{if(!t.isOver())return!1;const a=e.getPrevRow(),s=a?a.path:[],c=a?a.node:{};if(fs(e,t,void 0,n,r,o)>=s.length&&"function"==typeof c.children)return!1;if("function"==typeof i){const{node:n}=t.getItem();return i({node:n,prevPath:t.getItem().path,prevParent:t.getItem().parentNode,prevTreeIndex:t.getItem().treeIndex,nextPath:e.children.props.path,nextParent:e.children.props.parentNode,nextTreeIndex:e.children.props.treeIndex})}return!0})(e,i,t,n,r,o)};return je(s,d,ds)(e)},ps=e=>{let t,n=[],r=[];return o=>{const i=Object.keys(o).sort(),a=i.map(e=>o[e]);return(a.length!==n.length||a.some((e,t)=>e!==n[t])||i.some((e,t)=>e!==r[t]))&&(n=a,r=i,t=e(o)),t}},gs=ps(Qa),vs=ps(({treeData:e,getNodeKey:t,ignoreCollapsed:n=!0})=>{if(!e||0===e.length)return[];const r=[];return $a({treeData:e,getNodeKey:t,ignoreCollapsed:n,callback:e=>{r.push(e)}}),r}),ms=ps(Va);let ys=1;const bs=e=>{const t={...e,style:{...e.theme.style,...e.style},innerStyle:{...e.theme.innerStyle,...e.innerStyle}},n={nodeContentRenderer:ns,placeholderRenderer:os,scaffoldBlockPxWidth:44,slideRegionSize:100,rowHeight:62,treeNodeRenderer:as}
2;for(const r of Object.keys(n))void 0===e[r]&&(t[r]=void 0===e.theme[r]?n[r]:e.theme[r]);return t};class Is extends i.Component{constructor(e){super(e),this.startDrag=({path:e})=>{this.setState(t=>{const{treeData:n,node:r,treeIndex:o}=(({treeData:e,path:t,getNodeKey:n,ignoreCollapsed:r=!0})=>{let o,i;return{treeData:Xa({treeData:e,path:t,getNodeKey:n,ignoreCollapsed:r,newNode:({node:e,treeIndex:t})=>{o=e,i=t}}),node:o,treeIndex:i}})({treeData:t.instanceProps.treeData,path:e,getNodeKey:this.props.getNodeKey});return{draggingTreeData:n,draggedNode:r,draggedDepth:e.length-1,draggedMinimumTreeIndex:o,dragging:!0}})},this.dragHover=({node:e,depth:t,minimumTreeIndex:n})=>{this.state.draggedDepth===t&&this.state.draggedMinimumTreeIndex===n||this.setState(({draggingTreeData:r,instanceProps:o})=>{const i=r||o.treeData,a=gs({treeData:i,newNode:e,depth:t,minimumTreeIndex:n,expandParent:!0,getNodeKey:this.props.getNodeKey}),s=this.getRows(a.treeData)[a.treeIndex].path;return{draggedNode:e,draggedDepth:t,draggedMinimumTreeIndex:n,draggingTreeData:Xa({treeData:i,path:s.slice(0,-1),newNode:({node:e})=>({...e,expanded:!0}),getNodeKey:this.props.getNodeKey}),searchFocusTreeIndex:void 0,dragging:!0}})},this.endDrag=e=>{const{instanceProps:t}=this.state;if(e){if(e.treeId!==this.treeId){const{node:n,path:r,treeIndex:o}=e;let i=this.props.shouldCopyOnOutsideDrop;"function"==typeof i&&(i=i({node:n,prevTreeIndex:o,prevPath:r}));let a=this.state.draggingTreeData||t.treeData;i&&(a=Xa({treeData:t.treeData,path:r,newNode:({node:e})=>({...e}),getNodeKey:this.props.getNodeKey})),this.props.onChange(a),this.props.onMoveNode({treeData:a,node:n,treeIndex:void 0,path:void 0,nextPath:void 0,nextTreeIndex:void 0,prevPath:r,prevTreeIndex:o})}}else this.setState({draggingTreeData:void 0,draggedNode:void 0,draggedMinimumTreeIndex:void 0,draggedDepth:void 0,dragging:!1})},this.drop=e=>{this.moveNode(e)},this.canNodeHaveChildren=e=>{const{canNodeHaveChildren:t}=this.props;return!t||t(e)},this.listRef=e.virtuosoRef||i.createRef(),this.listProps=e.virtuosoProps||{};const{dndType:t,nodeContentRenderer:n,treeNodeRenderer:r,slideRegionSize:a}=bs(e);this.treeId=`rst__${ys}`,ys+=1,this.dndType=t||this.treeId,this.nodeContentRenderer=((e,t,n,r)=>be(r,{beginDrag:e=>(t(e),{node:e.node,parentNode:e.parentNode,path:e.path,treeIndex:e.treeIndex,treeId:e.treeId}),endDrag:(e,t)=>{n(t.getDropResult())},isDragging:(e,t)=>{const n=t.getItem().node;return e.node===n}},us)(e))(n,this.startDrag,this.endDrag,this.dndType),this.treePlaceholderRenderer=((e,t,n,r)=>je(r,{drop:(e,r)=>{const{node:o,path:i,treeIndex:a}=r.getItem(),s={node:o,path:i,treeIndex:a,treeId:t,minimumTreeIndex:0,depth:0};return n(s),s}},ds)(e))(cs,this.treeId,this.drop,this.dndType),this.scrollZoneVirtualList=(S||D)(i.forwardRef((e,t)=>{const{dragDropManager:n,rowHeight:r,...i}=e;return(0,o.jsx)(qi,{ref:this.listRef,scrollerRef:e=>t.current=e,...i})})),this.vStrength=x(a),this.hStrength=I(a),this.state={draggingTreeData:void 0,draggedNode:void 0,draggedMinimumTreeIndex:void 0,draggedDepth:void 0,searchMatches:[],searchFocusTreeIndex:void 0,dragging:!1,instanceProps:{treeData:[],ignoreOneTreeUpdate:!1,searchQuery:void 0,searchFocusOffset:void 0}},this.treeNodeRenderer=hs(r,this.canNodeHaveChildren,this.treeId,this.props.maxDepth,this.props.canDrop,this.drop,this.dragHover,this.dndType,this.state.draggingTreeData,this.props.treeData,this.props.getNodeKey),this.toggleChildrenVisibility=this.toggleChildrenVisibility.bind(this),this.moveNode=this.moveNode.bind(this),this.startDrag=this.startDrag.bind(this),this.dragHover=this.dragHover.bind(this),this.endDrag=this.endDrag.bind(this),this.drop=this.drop.bind(this),this.handleDndMonitorChange=this.handleDndMonitorChange.bind(this)}static search(e,t,n,r,o){const{onChange:i,getNodeKey:a,searchFinishCallback:s,searchQuery:c,searchMethod:l,searchFocusOffset:u,onlyExpandSearchedNodes:d}=e,{instanceProps:f}=t;if(!c&&!l)return s&&s([]),{searchMatches:[]};const h={instanceProps:{}},{treeData:p,matches:g}=(({getNodeKey:e,treeData:t,searchQuery:n,searchMethod:r,searchFocusOffset:o,expandAllMatchPaths:i=!1,expandFocusMatchPaths:a=!0})=>{let s=0;const c=({isPseudoRoot:t=!1,node:l,currentIndex:u,path:d=[]})=>{let f=[],h=!1,p=!1;const g=t?[]:[...d,e({node:l,treeIndex:u})],v=t?void 0:{path:g,treeIndex:u},m=l.children&&"function"!=typeof l.children&&l.children.length>0;!t&&r({...v,node:l,searchQuery:n})&&(s===o&&(p=!0),s+=1,h=!0);let y=u;const b={...l};return m&&(b.children=b.children.map(e=>{const t=c({node:e,currentIndex:y+1,path:g});return t.node.expanded?y=t.treeIndex:y+=1,(t.matches.length>0||t.hasFocusMatch)&&(f=[...f,...t.matches],t.hasFocusMatch&&(p=!0),(i&&t.matches.length>0||(i||a)&&t.hasFocusMatch)&&(b.expanded=!0)),t.node})),t||b.expanded||(f=f.map(e=>({...e,treeIndex:void 0}))),h&&(f=[{...v,node:b},...f]),{node:f.length>0?b:l,matches:f,hasFocusMatch:p,treeIndex:y}},l=c({node:{children:t},isPseudoRoot:!0,currentIndex:-1});
2return{matches:l.matches,treeData:l.node.children}})({getNodeKey:a,treeData:d?qa({treeData:f.treeData,expanded:!1}):f.treeData,searchQuery:c,searchMethod:l||Fa,searchFocusOffset:u,expandAllMatchPaths:r&&!o,expandFocusMatchPaths:!!r});let v;return r&&(h.instanceProps.ignoreOneTreeUpdate=!0,i(p)),s&&s(g),n&&void 0!==u&&u<g.length&&(v=g[u].treeIndex),h.searchMatches=g,h.searchFocusTreeIndex=v,h}static loadLazyChildren(e,t){const{instanceProps:n}=t;$a({treeData:n.treeData,getNodeKey:e.getNodeKey,callback:({node:t,path:r,lowerSiblingCounts:o,treeIndex:i})=>{t.children&&"function"==typeof t.children&&(t.expanded||e.loadCollapsedLazyChildren)&&t.children({node:t,path:r,lowerSiblingCounts:o,treeIndex:i,done:o=>e.onChange(Xa({treeData:n.treeData,path:r,newNode:({node:e})=>e===t?{...e,children:o}:e,getNodeKey:e.getNodeKey}))})}})}componentDidMount(){Is.loadLazyChildren(this.props,this.state);const e=Is.search(this.props,this.state,!0,!0,!1);this.setState(e),this.clearMonitorSubscription=this.props.dragDropManager.getMonitor().subscribeToStateChange(this.handleDndMonitorChange)}static getDerivedStateFromProps(e,t){const{instanceProps:n}=t,r={},o={...n},i=O()(n.treeData,e.treeData);return o.treeData=e.treeData,i?O()(n.searchQuery,e.searchQuery)?n.searchFocusOffset!==e.searchFocusOffset&&Object.assign(r,Is.search(e,t,!0,!0,!0)):Object.assign(r,Is.search(e,t,!0,!0,!1)):(n.ignoreOneTreeUpdate?o.ignoreOneTreeUpdate=!1:(r.searchFocusTreeIndex=void 0,Is.loadLazyChildren(e,t),Object.assign(r,Is.search(e,t,!1,!1,!1))),r.draggingTreeData=void 0,r.draggedNode=void 0,r.draggedMinimumTreeIndex=void 0,r.draggedDepth=void 0,r.dragging=!1),o.searchQuery=e.searchQuery,o.searchFocusOffset=e.searchFocusOffset,r.instanceProps={...o,...r.instanceProps},r}componentDidUpdate(e,t){this.state.dragging!==t.dragging&&this.props.onDragStateChanged&&this.props.onDragStateChanged({isDragging:this.state.dragging,draggedNode:this.state.draggedNode})}componentWillUnmount(){this.clearMonitorSubscription()}handleDndMonitorChange(){!this.props.dragDropManager.getMonitor().isDragging()&&this.state.draggingTreeData&&setTimeout(()=>{this.endDrag()})}getRows(e){return vs({ignoreCollapsed:!0,getNodeKey:this.props.getNodeKey,treeData:e})}toggleChildrenVisibility({node:e,path:t}){const{instanceProps:n}=this.state,r=Xa({treeData:n.treeData,path:t,newNode:({node:e})=>({...e,expanded:!e.expanded}),getNodeKey:this.props.getNodeKey});this.props.onChange(r),this.props.onVisibilityToggle({treeData:r,node:e,expanded:!e.expanded,path:t})}moveNode({node:e,path:t,treeIndex:n,depth:r,minimumTreeIndex:o}){const{treeData:i,treeIndex:a,path:s,parentNode:c}=Qa({treeData:this.state.draggingTreeData,newNode:e,depth:r,minimumTreeIndex:o,expandParent:!0,getNodeKey:this.props.getNodeKey});this.props.onChange(i),this.props.onMoveNode({treeData:i,node:e,treeIndex:a,path:s,nextPath:s,nextTreeIndex:a,prevPath:t,prevTreeIndex:n,nextParentNode:c})}renderRow(e,{listIndex:t,style:n,getPrevRow:r,matchKeys:i,swapFrom:a,swapDepth:s,swapLength:c}){const{node:l,parentNode:u,path:d,lowerSiblingCounts:f,treeIndex:h}=e,{canDrag:p,generateNodeProps:g,scaffoldBlockPxWidth:v,searchFocusOffset:m,rowDirection:y,rowHeight:b}=bs(this.props),I=this.treeNodeRenderer,x=this.nodeContentRenderer,w=d[d.length-1],T=w in i,S=T&&i[w]===m,D={node:l,parentNode:u,path:d,lowerSiblingCounts:f,treeIndex:h,isSearchMatch:T,isSearchFocus:S},C=g?g(D):{},O="function"==typeof p?p(D):p,E={treeIndex:h,scaffoldBlockPxWidth:v,node:l,path:d,treeId:this.treeId,rowDirection:y};return(0,o.jsx)(I,{style:n,rowHeight:b,listIndex:t,getPrevRow:r,lowerSiblingCounts:f,swapFrom:a,swapLength:c,swapDepth:s,...E,children:(0,o.jsx)(x,{parentNode:u,isSearchMatch:T,isSearchFocus:S,canDrag:O,toggleChildrenVisibility:this.toggleChildrenVisibility,...E,...C})},w)}render(){const{dragDropManager:e,style:t,className:n,innerStyle:r,placeholderRenderer:i,getNodeKey:a,rowDirection:s}=bs(this.props),{searchMatches:c,searchFocusTreeIndex:l,draggedNode:u,draggedDepth:d,draggedMinimumTreeIndex:f,instanceProps:h}=this.state,p=this.state.draggingTreeData||h.treeData,g="rtl"===s?"rst__rtl":void 0;let v,m,y;if(u&&void 0!==f){const e=gs({treeData:p,newNode:u,depth:d,minimumTreeIndex:f,expandParent:!0,getNodeKey:a}),t=f;m=e.treeIndex,y=1+ms({node:u}),v=((e,t,n,r=1)=>{const o=[...e.slice(0,t),...e.slice(t+r)];return[...o.slice(0,n),...e.slice(t,t+r),...o.slice(n)]})(this.getRows(e.treeData),m,t,y)}else v=this.getRows(p);const b={};for(const[e,{path:t}]of c.entries())b[t[t.length-1]]=e;void 0!==l&&this.listRef.current.scrollToIndex({index:l,align:"center"});let I,x=t;if(0===v.length){const e=this.treePlaceholderRenderer,t=i;I=(0,o.jsx)(e,{treeId:this.treeId,drop:this.drop,children:(0,o.jsx)(t,{})})}else{x={height:"100%",...x};const t=this.scrollZoneVirtualList;I=(0,o.jsx)(t,{data:v,dragDropManager:e,verticalStrength:this.vStrength,horizontalStrength:this.hStrength,className:"rst__virtualScrollOverride",style:r,itemContent:e=>this.renderRow(v[e],{listIndex:e,getPrevRow:()=>v[e-1]||void 0,matchKeys:b,swapFrom:m,swapDepth:d,swapLength:y}),...this.listProps})}return(0,o.jsx)("div",{className:es("rst__tree",n,g),style:x,children:I})}}Is.defaultProps={canDrag:!0,canDrop:void 0,canNodeHaveChildren:()=>!0,className:"",dndType:void 0,generateNodeProps:void 0,getNodeKey:({treeIndex:e})=>e,innerStyle:{},maxDepth:void 0,treeNodeRenderer:void 0,nodeContentRenderer:void 0,onMoveNode:()=>{},onVisibilityToggle:()=>{},placeholderRenderer:void 0,scaffoldBlockPxWidth:void 0,searchFinishCallback:void 0,searchFocusOffset:void 0,searchMethod:void 0,searchQuery:void 0,shouldCopyOnOutsideDrop:!1,slideRegionSize:void 0,style:{},theme:{},onDragStateChanged:()=>{},onlyExpandSearchedNodes:!1,rowDirection:"ltr",debugMode:!1,overscan:0};const xs=function(e){return(0,o.jsx)(u.Consumer,{children:({dragDropManager:t})=>void 0===t?void 0:(0,o.jsx)(Is,{...e,dragDropManager:t})})},ws=function(e){return(0,o.jsx)(sn,{debugMode:e.debugMode,backend:Fn,children:(0,o.jsx)(xs,{...e})})}},4146:function(e,t,n){"use strict";var r=n(44363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=c(t),g=c(n),v=0;v<a.length;++v){var m=a[v];if(!(i[m]||r&&r[m]||g&&g[m]||s&&s[m])){var y=f(n,m);try{l(t,m,y)}catch(e){}}}}return t}},8142:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",u="[object Function]",d="[object Map]",f="[object Number]",h="[object Object]",p="[object Promise]",g="[object RegExp]",v="[object Set]",m="[object String]",y="[object Symbol]",b="[object WeakMap]",I="[object ArrayBuffer]",x="[object DataView]",w=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,S={};
vendor: 3,775 bytes, line 2
2S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[i]=S[a]=S[I]=S[s]=S[x]=S[c]=S[l]=S[u]=S[d]=S[f]=S[h]=S[g]=S[v]=S[m]=S[b]=!1;var D="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,C="object"==typeof self&&self&&self.Object===Object&&self,O=D||C||Function("return this")(),E=t&&!t.nodeType&&t,k=E&&e&&!e.nodeType&&e,P=k&&k.exports===E,j=P&&D.process,R=function(){try{return j&&j.binding&&j.binding("util")}catch(e){}}(),N=R&&R.isTypedArray;function _(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function M(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function H(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var z,L,A,B=Array.prototype,F=Function.prototype,W=Object.prototype,V=O["__core-js_shared__"],U=F.toString,K=W.hasOwnProperty,$=(z=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",G=W.toString,q=RegExp("^"+U.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=P?O.Buffer:void 0,Y=O.Symbol,Q=O.Uint8Array,Z=W.propertyIsEnumerable,J=B.splice,ee=Y?Y.toStringTag:void 0,te=Object.getOwnPropertySymbols,ne=X?X.isBuffer:void 0,re=(L=Object.keys,A=Object,function(e){return L(A(e))}),oe=Re(O,"DataView"),ie=Re(O,"Map"),ae=Re(O,"Promise"),se=Re(O,"Set"),ce=Re(O,"WeakMap"),le=Re(Object,"create"),ue=He(oe),de=He(ie),fe=He(ae),he=He(se),pe=He(ce),ge=Y?Y.prototype:void 0,ve=ge?ge.valueOf:void 0;function me(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ie(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new be;++t<n;)this.add(e[t])}function xe(e){var t=this.__data__=new ye(e);this.size=t.size}function we(e,t){var n=Ae(e),r=!n&&Le(e),o=!n&&!r&&Be(e),i=!n&&!r&&!o&&Ke(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)!t&&!K.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Me(l,c))||s.push(l);return s}function Te(e,t){for(var n=e.length;n--;)if(ze(e[n][0],t))return n;return-1}function Se(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ee&&ee in Object(e)?function(e){var t=K.call(e,ee),n=e[ee];try{e[ee]=void 0;var r=!0}catch(e){}var o=G.call(e);r&&(t?e[ee]=n:delete e[ee]);return o}(e):function(e){return G.call(e)}(e)}function De(e){return Ue(e)&&Se(e)==i}function Ce(e,t,n,r,o){return e===t||(null==e||null==t||!Ue(e)&&!Ue(t)?e!=e&&t!=t:function(e,t,n,r,o,u){var p=Ae(e),b=Ae(t),w=p?a:_e(e),T=b?a:_e(t),S=(w=w==i?h:w)==h,D=(T=T==i?h:T)==h,C=w==T;if(C&&Be(e)){if(!Be(t))return!1;p=!0,S=!1}if(C&&!S)return u||(u=new xe),p||Ke(e)?ke(e,t,n,r,o,u):function(e,t,n,r,o,i,a){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!i(new Q(e),new Q(t)));case s:case c:case f:return ze(+e,+t);case l:return e.name==t.name&&e.message==t.message;case g:case m:return e==t+"";case d:var u=M;case v:var h=1&r;if(u||(u=H),e.size!=t.size&&!h)return!1;var p=a.get(e);if(p)return p==t;r|=2,a.set(e,t);var b=ke(u(e),u(t),r,o,i,a);return a.delete(e),b;case y:if(ve)return ve.call(e)==ve.call(t)}return!1}(e,t,w,n,r,o,u);if(!(1&n)){var O=S&&K.call(e,"__wrapped__"),E=D&&K.call(t,"__wrapped__");
vendor: 9,448 bytes, line 2
2if(O||E){var k=O?e.value():e,P=E?t.value():t;return u||(u=new xe),o(k,P,n,r,u)}}if(!C)return!1;return u||(u=new xe),function(e,t,n,r,o,i){var a=1&n,s=Pe(e),c=s.length,l=Pe(t),u=l.length;if(c!=u&&!a)return!1;var d=c;for(;d--;){var f=s[d];if(!(a?f in t:K.call(t,f)))return!1}var h=i.get(e);if(h&&i.get(t))return h==t;var p=!0;i.set(e,t),i.set(t,e);var g=a;for(;++d<c;){var v=e[f=s[d]],m=t[f];if(r)var y=a?r(m,v,f,t,e,i):r(v,m,f,e,t,i);if(!(void 0===y?v===m||o(v,m,n,r,i):y)){p=!1;break}g||(g="constructor"==f)}if(p&&!g){var b=e.constructor,I=t.constructor;b==I||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof I&&I instanceof I||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,u)}(e,t,n,r,Ce,o))}function Oe(e){return!(!Ve(e)||function(e){return!!$&&$ in e}(e))&&(Fe(e)?q:w).test(He(e))}function Ee(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||W,t!==r)return re(e);var t,n,r,o=[];for(var i in Object(e))K.call(e,i)&&"constructor"!=i&&o.push(i);return o}function ke(e,t,n,r,o,i){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var u=-1,d=!0,f=2&n?new Ie:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var h=e[u],p=t[u];if(r)var g=a?r(p,h,u,t,e,i):r(h,p,u,e,t,i);if(void 0!==g){if(g)continue;d=!1;break}if(f){if(!_(t,function(e,t){if(a=t,!f.has(a)&&(h===e||o(h,e,n,r,i)))return f.push(t);var a})){d=!1;break}}else if(h!==p&&!o(h,p,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function Pe(e){return function(e,t,n){var r=t(e);return Ae(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,$e,Ne)}function je(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Re(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Oe(n)?n:void 0}me.prototype.clear=function(){this.__data__=le?le(null):{},this.size=0},me.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},me.prototype.get=function(e){var t=this.__data__;if(le){var n=t[e];return n===r?void 0:n}return K.call(t,e)?t[e]:void 0},me.prototype.has=function(e){var t=this.__data__;return le?void 0!==t[e]:K.call(t,e)},me.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=le&&void 0===t?r:t,this},ye.prototype.clear=function(){this.__data__=[],this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=Te(t,e);return!(n<0)&&(n==t.length-1?t.pop():J.call(t,n,1),--this.size,!0)},ye.prototype.get=function(e){var t=this.__data__,n=Te(t,e);return n<0?void 0:t[n][1]},ye.prototype.has=function(e){return Te(this.__data__,e)>-1},ye.prototype.set=function(e,t){var n=this.__data__,r=Te(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new me,map:new(ie||ye),string:new me}},be.prototype.delete=function(e){var t=je(this,e).delete(e);return this.size-=t?1:0,t},be.prototype.get=function(e){return je(this,e).get(e)},be.prototype.has=function(e){return je(this,e).has(e)},be.prototype.set=function(e,t){var n=je(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ie.prototype.add=Ie.prototype.push=function(e){return this.__data__.set(e,r),this},Ie.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new ye,this.size=0},xe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ye){var r=n.__data__;if(!ie||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new be(r)}return n.set(e,t),this.size=n.size,this};var Ne=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(te(e),function(t){return Z.call(e,t)}))}:function(){return[]},_e=Se;function Me(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function He(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ze(e,t){return e===t||e!=e&&t!=t}(oe&&_e(new oe(new ArrayBuffer(1)))!=x||ie&&_e(new ie)!=d||ae&&_e(ae.resolve())!=p||se&&_e(new se)!=v||ce&&_e(new ce)!=b)&&(_e=function(e){var t=Se(e),n=t==h?e.constructor:void 0,r=n?He(n):"";if(r)switch(r){case ue:return x;case de:return d;case fe:return p;case he:return v;case pe:return b}return t});var Le=De(function(){return arguments}())?De:function(e){return Ue(e)&&K.call(e,"callee")&&!Z.call(e,"callee")},Ae=Array.isArray;var Be=ne||function(){return!1};function Fe(e){if(!Ve(e))return!1;var t=Se(e);return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function We(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Ve(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ue(e){return null!=e&&"object"==typeof e}var Ke=N?function(e){return function(t){return e(t)}}(N):function(e){return Ue(e)&&We(e.length)&&!!S[Se(e)]};function $e(e){return null!=(t=e)&&We(t.length)&&!Fe(t)?we(e):Ee(e);var t}e.exports=function(e,t){return Ce(e,t)}},25858:function(e,t,n){var r="Expected a function",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,d=l||u||Function("return this")(),f=Object.prototype.toString,h=Math.max,p=Math.min,g=function(){return d.Date.now()};function v(e,t,n){var o,i,a,s,c,l,u=0,d=!1,f=!1,v=!0;if("function"!=typeof e)throw new TypeError(r);function b(t){var n=o,r=i;return o=i=void 0,u=t,s=e.apply(r,n)}function I(e){var n=e-l;return void 0===l||n>=t||n<0||f&&e-u>=a}function x(){var e=g();if(I(e))return w(e);c=setTimeout(x,function(e){var n=t-(e-l);return f?p(n,a-(e-u)):n}(e))}function w(e){return c=void 0,v&&o?b(e):(o=i=void 0,s)}function T(){var e=g(),n=I(e);if(o=arguments,i=this,l=e,n){if(void 0===c)return function(e){return u=e,c=setTimeout(x,t),d?b(e):s}(l);if(f)return c=setTimeout(x,t),b(l)}return void 0===c&&(c=setTimeout(x,t)),s}return t=y(t)||0,m(n)&&(d=!!n.leading,a=(f="maxWait"in n)?h(y(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v),T.cancel=function(){void 0!==c&&clearTimeout(c),u=0,o=l=i=c=void 0},T.flush=function(){return void 0===c?s:w(g())},T}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==f.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=a.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return m(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),v(e,t,{leading:o,maxWait:t,trailing:i})}},22799:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,I=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case l:case f:case v:case g:case c:return e;default:return t}}case o:return t}}}function w(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||x(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===I||e.$$typeof===m)},t.typeOf=x},44363:function(e,t,n){"use strict";e.exports=n(22799)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.