text: !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],t):t((e=e||self).ReactBeautifulDnd={},e.React,e.ReactDOM)}(this,(function(e,t,r){"use strict";var n="default"in t?t.default:t,i="default"in r?r.default:r;function o(e,r){var n=t.useState((function(){return{inputs:r,result:e()}}))[0],i=t.useRef(n),o=Boolean(r&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(r,i.current.inputs))?i.current:{inputs:r,result:e()};return t.useEffect((function(){i.current=o}),[o]),o.result}var a=o,l=function(e,t){return o((function(){return e}),t)};function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function c(){}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e,t,r){var n=t.map((function(t){var n,i,o=(n=r,i=t.options,s({},n,{},i));return e.addEventListener(t.eventName,t.fn,o),function(){e.removeEventListener(t.eventName,t.fn,o)}}));return function(){n.forEach((function(e){e()}))}}function p(e){this.message=e}function f(e,t){if(!e)throw new p("Invariant failed")}p.prototype.toString=function(){return this.message};var g=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).callbacks=null,t.unbind=c,t.onWindowError=function(e){var r=t.getCallbacks();r.isDragging()&&r.tryAbort(),e.error instanceof p&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}u(t,e);var r=t.prototype;return r.componentDidMount=function(){this.unbind=d(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(e){if(!(e instanceof p))throw e;this.setState({})},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t}(n.Component),v=function(e){return e+1},m=function(e,t){var r=e.droppableId===t.droppableId,n=v(e.index),i=v(t.index);return r?"\n      You have moved the item from position "+n+"\n      to position "+i+"\n    ":"\n    You have moved the item from position "+n+"\n    in list "+e.droppableId+"\n    to list "+t.droppableId+"\n    in position "+i+"\n  "},b=function(e,t,r){return t.droppableId===r.droppableId?"\n      The item "+e+"\n      has been combined with "+r.draggableId:"\n      The item "+e+"\n      in list "+t.droppableId+"\n      has been combined with "+r.draggableId+"\n      in list "+r.droppableId+"\n    "},h=function(e){return"\n  The item has returned to its starting position\n  of "+v(e.index)+"\n"},y={dragHandleUsageInstructions:"\n  Press space bar to start a drag.\n  When dragging you can use the arrow keys to move the item around and escape to cancel.\n  Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n  You have lifted an item in position "+v(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return m(e.source,t);var r=e.combine;return r?b(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n      Movement cancelled.\n      "+h(e.source)+"\n    ";var t=e.destination,r=e.combine;return t?"\n      You have dropped the item.\n      "+m(e.source,t)+"\n    ":r?"\n      You have dropped the item.\n      "+b(e.draggableId,e.source,r)+"\n    ":"\n    The item has been dropped while not over a drop area.\n    "+h(e.source)+"\n  "}};var x=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")()),I=function(){return Math.random().toString(36).substring(7).split("").join(".")},D={INIT:"@@redux/INIT"+I(),REPLACE:"@@redux/REPLACE"+I(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+I()}};function w(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 E(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(E)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var i=e,o=t,a=[],l=a,u=!1;function c(){l===a&&(l=a.slice())}function s(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return c(),l.push(e),function(){if(t){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,c();var r=l.indexOf(e);l.splice(r,1),a=null}}}function p(e){if(!w(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,o=i(o,e)}finally{u=!1}for(var t=a=l,r=0;r<t.length;r++){(0,t[r])()}return e}function f(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,p({type:D.REPLACE})}function g(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(s())}return r(),{unsubscribe:t(r)}}})[x]=function(){return this},e}return p({type:D.INIT}),(n={dispatch:p,subscribe:d,getState:s,replaceReducer:f})[x]=g,n}function C(e,t){return function(){return t(e.apply(this,arguments))}}function S(e,t){if("function"==typeof e)return C(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var r={};for(var n in e){var i=e[n];"function"==typeof i&&(r[n]=C(i,t))}return r}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(r,!0).forEach((function(t){P(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function R(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function B(e,t){return e(t={exports:{}},t.exports),t.exports}var T=B((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,s=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.fundamental"):60117,h=r?Symbol.for("react.responder"):60118,y=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case s:case d:case o:case l:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case m:case v:case u:return e;default:return t}}case i:return t}}}function I(e){return x(e)===d}t.typeOf=x,t.AsyncMode=s,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=u,t.Element=n,t.ForwardRef=p,t.Fragment=o,t.Lazy=m,t.Memo=v,t.Portal=i,t.Profiler=l,t.StrictMode=a,t.Suspense=f,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===l||e===a||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===u||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===h||e.$$typeof===y)},t.isAsyncMode=function(e){return I(e)||x(e)===s},t.isConcurrentMode=I,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f}}));N(T);T.typeOf,T.AsyncMode,T.ConcurrentMode,T.ContextConsumer,T.ContextProvider,T.Element,T.ForwardRef,T.Fragment,T.Lazy,T.Memo,T.Portal,T.Profiler,T.StrictMode,T.Suspense,T.isValidElementType,T.isAsyncMode,T.isConcurrentMode,T.isContextConsumer,T.isContextProvider,T.isElement,T.isForwardRef,T.isFragment,T.isLazy,T.isMemo,T.isPortal,T.isProfiler,T.isStrictMode,T.isSuspense;var M=B((function(e,t){}));N(M);M.typeOf,M.AsyncMode,M.ConcurrentMode,M.ContextConsumer,M.ContextProvider,M.Element,M.ForwardRef,M.Fragment,M.Lazy,M.Memo,M.Portal,M.Profiler,M.StrictMode,M.Suspense,M.isValidElementType,M.isAsyncMode,M.isConcurrentMode,M.isContextConsumer,M.isContextProvider,M.isElement,M.isForwardRef,M.isFragment,M.isLazy,M.isMemo,M.isPortal,M.isProfiler,M.isStrictMode,M.isSuspense;var L=B((function(e){e.exports=T})),G=(L.isValidElementType,L.isContextConsumer),_=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;function k(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}})()&&Object.assign,Function.call.bind(Object.prototype.hasOwnProperty);function W(){}function U(){}U.resetWarningCache=W;B((function(e){e.exports=function(){function e(e,t,r,n,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:U,resetWarningCache:W};return r.PropTypes=r,r}()}));var H=n.createContext(null);var q=function(e){e()},V=function(){return q},z={notify:function(){}};var $=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=z,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=V(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,i=r={callback:e,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){n&&null!==t&&(n=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=z)},e}();function Y(e){var r=e.store,i=e.context,o=e.children,a=t.useMemo((function(){var e=new $(r);return e.onStateChange=e.notifyNestedSubs,{store:r,subscription:e}}),[r]),l=t.useMemo((function(){return r.getState()}),[r]);t.useEffect((function(){var e=a.subscription;return e.trySubscribe(),l!==r.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,l]);var u=i||H;return n.createElement(u.Provider,{value:a},o)}function J(){return(J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function X(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}var K={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Q={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Z={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ee={};function te(e){return L.isMemo(e)?Z:ee[e.$$typeof]||K}ee[L.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ee[L.Memo]=Z;var re=Object.defineProperty,ne=Object.getOwnPropertyNames,ie=Object.getOwnPropertySymbols,oe=Object.getOwnPropertyDescriptor,ae=Object.getPrototypeOf,le=Object.prototype;var ue=function e(t,r,n){if("string"!=typeof r){if(le){var i=ae(r);i&&i!==le&&e(t,i,n)}var o=ne(r);ie&&(o=o.concat(ie(r)));for(var a=te(t),l=te(r),u=0;u<o.length;++u){var c=o[u];if(!(Q[c]||n&&n[c]||l&&l[c]||a&&a[c])){var s=oe(r,c);try{re(t,c,s)}catch(e){}}}}return t},ce="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect,se=[],de=[null,null];function pe(e,t){var r=e[1];return[t.payload,r+1]}function fe(e,t,r){ce((function(){return e.apply(void 0,t)}),r)}function ge(e,t,r,n,i,o,a){e.current=n,t.current=i,r.current=!1,o.current&&(o.current=null,a())}function ve(e,t,r,n,i,o,a,l,u,c){if(e){var s=!1,d=null,p=function(){if(!s){var e,r,p=t.getState();try{e=n(p,i.current)}catch(e){r=e,d=e}r||(d=null),e===o.current?a.current||u():(o.current=e,l.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:r}}))}};r.onStateChange=p,r.trySubscribe(),p();return function(){if(s=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}}var me=function(){return[null,0]};function be(e,r){void 0===r&&(r={});var i=r,o=i.getDisplayName,a=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,l=i.methodName,u=void 0===l?"connectAdvanced":l,c=i.renderCountProp,s=void 0===c?void 0:c,d=i.shouldHandleStateChanges,p=void 0===d||d,f=i.storeKey,g=void 0===f?"store":f,v=(i.withRef,i.forwardRef),m=void 0!==v&&v,b=i.context,h=void 0===b?H:b,y=X(i,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),x=h;return function(r){var i=r.displayName||r.name||"Component",o=a(i),l=J({},y,{getDisplayName:a,methodName:u,renderCountProp:s,shouldHandleStateChanges:p,storeKey:g,displayName:o,wrappedComponentName:i,WrappedComponent:r}),c=y.pure;var d=c?t.useMemo:function(e){return e()};function f(i){var o=t.useMemo((function(){var e=i.forwardedRef,t=X(i,["forwardedRef"]);return[i.context,e,t]}),[i]),a=o[0],u=o[1],c=o[2],s=t.useMemo((function(){return a&&a.Consumer&&G(n.createElement(a.Consumer,null))?a:x}),[a,x]),f=t.useContext(s),g=Boolean(i.store)&&Boolean(i.store.getState)&&Boolean(i.store.dispatch),v=(Boolean(f)&&Boolean(f.store),g?i.store:f.store),m=t.useMemo((function(){return function(t){return e(t.dispatch,l)}(v)}),[v]),b=t.useMemo((function(){if(!p)return de;var e=new $(v,g?null:f.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[v,g,f]),h=b[0],y=b[1],I=t.useMemo((function(){return g?f:J({},f,{subscription:h})}),[g,f,h]),D=t.useReducer(pe,se,me),w=D[0][0],E=D[1];if(w&&w.error)throw w.error;var C=t.useRef(),S=t.useRef(c),P=t.useRef(),O=t.useRef(!1),A=d((function(){return P.current&&c===S.current?P.current:m(v.getState(),c)}),[v,w,c]);fe(ge,[S,C,O,c,A,P,y]),fe(ve,[p,v,h,m,S,C,O,P,y,E],[v,h,m]);var R=t.useMemo((function(){return n.createElement(r,J({},A,{ref:u}))}),[u,r,A]);return t.useMemo((function(){return p?n.createElement(s.Provider,{value:I},R):R}),[s,R,I])}var v=c?n.memo(f):f;if(v.WrappedComponent=r,v.displayName=o,m){var b=n.forwardRef((function(e,t){return n.createElement(v,J({},e,{forwardedRef:t}))}));return b.displayName=o,b.WrappedComponent=r,ue(b,r)}return ue(v,r)}}function he(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function ye(e,t){if(he(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!he(e[r[i]],t[r[i]]))return!1;return!0}function xe(e){return function(t,r){var n=e(t,r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function Ie(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function De(e,t){return function(t,r){r.displayName;var n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=Ie(e);var i=n(t,r);return"function"==typeof i&&(n.mapToProps=i,n.dependsOnOwnProps=Ie(i),i=n(t,r)),i},n}}var we=[function(e){return"function"==typeof e?De(e):void 0},function(e){return e?void 0:xe((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?xe((function(t){return S(e,t)})):void 0}];var Ee=[function(e){return"function"==typeof e?De(e):void 0},function(e){return e?void 0:xe((function(){return{}}))}];function Ce(e,t,r){return J({},r,{},e,{},t)}var Se=[function(e){return"function"==typeof e?function(e){return function(t,r){r.displayName;var n,i=r.pure,o=r.areMergedPropsEqual,a=!1;return function(t,r,l){var u=e(t,r,l);return a?i&&o(u,n)||(n=u):(a=!0,n=u),n}}}(e):void 0},function(e){return e?void 0:function(){return Ce}}];function Pe(e,t,r,n){return function(i,o){return r(e(i,o),t(n,o),o)}}function Oe(e,t,r,n,i){var o,a,l,u,c,s=i.areStatesEqual,d=i.areOwnPropsEqual,p=i.areStatePropsEqual,f=!1;function g(i,f){var g,v,m=!d(f,a),b=!s(i,o);return o=i,a=f,m&&b?(l=e(o,a),t.dependsOnOwnProps&&(u=t(n,a)),c=r(l,u,a)):m?(e.dependsOnOwnProps&&(l=e(o,a)),t.dependsOnOwnProps&&(u=t(n,a)),c=r(l,u,a)):b?(g=e(o,a),v=!p(g,l),l=g,v&&(c=r(l,u,a)),c):c}return function(i,s){return f?g(i,s):(l=e(o=i,a=s),u=t(n,a),c=r(l,u,a),f=!0,c)}}function Ae(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,o=X(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=r(e,o),l=n(e,o),u=i(e,o);return(o.pure?Oe:Pe)(a,l,u,e,o)}function Re(e,t,r){for(var n=t.length-1;n>=0;n--){var i=t[n](e);if(i)return i}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function Ne(e,t){return e===t}function Be(e){var t=void 0===e?{}:e,r=t.connectHOC,n=void 0===r?be:r,i=t.mapStateToPropsFactories,o=void 0===i?Ee:i,a=t.mapDispatchToPropsFactories,l=void 0===a?we:a,u=t.mergePropsFactories,c=void 0===u?Se:u,s=t.selectorFactory,d=void 0===s?Ae:s;return function(e,t,r,i){void 0===i&&(i={});var a=i,u=a.pure,s=void 0===u||u,p=a.areStatesEqual,f=void 0===p?Ne:p,g=a.areOwnPropsEqual,v=void 0===g?ye:g,m=a.areStatePropsEqual,b=void 0===m?ye:m,h=a.areMergedPropsEqual,y=void 0===h?ye:h,x=X(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),I=Re(e,o,"mapStateToProps"),D=Re(t,l,"mapDispatchToProps"),w=Re(r,c,"mergeProps");return n(d,J({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:I,initMapDispatchToProps:D,initMergeProps:w,pure:s,areStatesEqual:f,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:y},x))}}var Te,Me=Be();Te=r.unstable_batchedUpdates,q=Te;var Le={x:0,y:0},Ge=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},_e=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Fe=function(e,t){return e.x===t.x&&e.y===t.y},je=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},ke=function(e,t,r){var n;return void 0===r&&(r=0),(n={})[e]=t,n["x"===e?"y":"x"]=r,n},We=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Ue=function(e,t){return Math.min.apply(Math,t.map((function(t){return We(e,t)})))},He=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}};var qe=function(e){var t=e.top,r=e.right,n=e.bottom,i=e.left;return{top:t,right:r,bottom:n,left:i,width:r-i,height:n-t,x:i,y:t,center:{x:(r+i)/2,y:(n+t)/2}}},Ve=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ze=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},$e={top:0,right:0,bottom:0,left:0},Ye=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?$e:r,i=e.border,o=void 0===i?$e:i,a=e.padding,l=void 0===a?$e:a,u=qe(Ve(t,n)),c=qe(ze(t,o)),s=qe(ze(c,l));return{marginBox:u,borderBox:qe(t),paddingBox:c,contentBox:s,margin:n,border:o,padding:l}},Je=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&function(e,t){if(!e)throw new Error("Invariant failed")}(!1),r},Xe=function(e,t){var r,n,i=e.borderBox,o=e.border,a=e.margin,l=e.padding,u=(n=t,{top:(r=i).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return Ye({borderBox:u,border:o,margin:a,padding:l})},Ke=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),Xe(e,t)},Qe=function(e,t){var r={top:Je(t.marginTop),right:Je(t.marginRight),bottom:Je(t.marginBottom),left:Je(t.marginLeft)},n={top:Je(t.paddingTop),right:Je(t.paddingRight),bottom:Je(t.paddingBottom),left:Je(t.paddingLeft)},i={top:Je(t.borderTopWidth),right:Je(t.borderRightWidth),bottom:Je(t.borderBottomWidth),left:Je(t.borderLeftWidth)};return Ye({borderBox:e,margin:r,padding:n,border:i})},Ze=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return Qe(t,r)},et=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},tt=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},rt=function(e,t){return t&&t.shouldClipSubject?function(e,t){var r=qe({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r}(t.pageMarginBox,e):qe(e)},nt=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,o=function(e,t,r){var n;return r&&r.increasedBy?s({},e,((n={})[t.end]=e[t.end]+r.increasedBy[t.line],n)):e}(function(e,t){return t?et(e,t.scroll.diff.displacement):e}(t.marginBox,i),n,r);return{page:t,withPlaceholder:r,active:rt(o,i)}},it=function(e,t){e.frame||f(!1);var r=e.frame,n=_e(t,r.scroll.initial),i=je(n),o=s({},r,{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}});return s({},e,{frame:o,subject:nt({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o})})};function ot(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function at(e,t){var r;void 0===t&&(t=ot);var n,i=[],o=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&r===this&&t(a,i)?n:(n=e.apply(this,a),o=!0,r=this,i=a,n)}}function lt(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function ut(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function ct(e,t){if(e.find)return e.find(t);var r=ut(e,t);return-1!==r?e[r]:void 0}function st(e){return Array.prototype.slice.call(e)}var dt=at((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),pt=at((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),ft=at((function(e){return lt(e)})),gt=at((function(e){return lt(e)})),vt=at((function(e,t){return gt(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}));function mt(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function bt(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var ht=at((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),yt=function(e,t){return e.descriptor.droppableId===t.descriptor.id},xt={point:Le,value:0},It={invisible:{},visible:{},all:[]},Dt={displaced:It,displacedBy:xt,at:null},wt=function(e,t){return function(r){return e<=r&&r<=t}},Et=function(e){var t=wt(e.top,e.bottom),r=wt(e.left,e.right);return function(n){if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;var i=t(n.top)||t(n.bottom),o=r(n.left)||r(n.right);if(i&&o)return!0;var a=n.top<e.top&&n.bottom>e.bottom,l=n.left<e.left&&n.right>e.right;return!(!a||!l)||(a&&o||l&&i)}},Ct=function(e){var t=wt(e.top,e.bottom),r=wt(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)}},St={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Pt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Ot=function(e){var t=e.target,r=e.destination,n=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,a=i?function(e,t){var r=t.frame?t.frame.scroll.diff.displacement:Le;return et(e,r)}(t,r):t;return function(e,t,r){return!!t.subject.active&&r(t.subject.active)(e)}(a,r,o)&&function(e,t,r){return r(t)(e)}(a,n,o)},At=function(e){return Ot(s({},e,{isVisibleThroughFrameFn:Et}))},Rt=function(e){return Ot(s({},e,{isVisibleThroughFrameFn:Ct}))};function Nt(e){var t=e.afterDragging,r=e.destination,n=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var l=function(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return qe(Ve(r,n))}(t,n),u=t.descriptor.id;if(e.all.push(u),!At({target:l,destination:r,viewport:i,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c={draggableId:u,shouldAnimate:function(e,t,r){if("boolean"==typeof r)return r;if(!t)return!0;var n=t.invisible,i=t.visible;if(n[e])return!1;var o=i[e];return!o||o.shouldAnimate}(u,a,o)};return e.visible[u]=c,e}),{all:[],visible:{},invisible:{}})}function Bt(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,i=e.destination,o=function(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(t,{inHomeList:r});return{displaced:It,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function Tt(e){var t=e.draggable,r=e.insideDestination,n=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,l=e.index,u=e.forceShouldAnimate,c=yt(t,n);if(null==l)return Bt({insideDestination:r,inHomeList:c,displacedBy:o,destination:n});var s=ct(r,(function(e){return e.descriptor.index===l}));if(!s)return Bt({insideDestination:r,inHomeList:c,displacedBy:o,destination:n});var d=ht(t,r),p=r.indexOf(s);return{displaced:Nt({afterDragging:d.slice(p),destination:n,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:u}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function Mt(e,t){return Boolean(t.effected[e])}var Lt=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,l=e.previousImpact,u=e.viewport,c=e.afterCritical,s=l.at;if(s||f(!1),"REORDER"===s.type){var d=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.insideDestination,i=e.location;if(!n.length)return null;var o=i.index,a=t?o+1:o-1,l=n[0].descriptor.index,u=n[n.length-1].descriptor.index;return a<l?null:a>(r?u:u+1)?null:a}({isMovingForward:t,isInHomeList:r,location:s.destination,insideDestination:a});return null==d?null:Tt({draggable:n,insideDestination:a,destination:o,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:d})}var p=function(e){var t=e.isMovingForward,r=e.destination,n=e.draggables,i=e.combine,o=e.afterCritical;if(!r.isCombineEnabled)return null;var a=i.draggableId,l=n[a].descriptor.index;return Mt(a,o)?t?l:l-1:t?l+1:l}({isMovingForward:t,destination:o,displaced:l.displaced,draggables:i,combine:s.combine,afterCritical:c});return null==p?null:Tt({draggable:n,insideDestination:a,destination:o,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:p})},Gt=function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,i=bt(r);i||f(!1);var o=i.draggableId,a=n[o].page.borderBox.center,l=function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,i=e.displacedBy,o=Boolean(t.visible[n]||t.invisible[n]);return Mt(n,r)?o?Le:je(i.point):o?i.point:Le}({displaced:r.displaced,afterCritical:t,combineWith:o,displacedBy:r.displacedBy});return Ge(a,l)},_t=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Ft=function(e,t,r){return t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2},jt=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return ke(t.line,r.marginBox[t.end]+_t(t,n),Ft(t,r.marginBox,n))},kt=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return ke(t.line,r.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,n),Ft(t,r.marginBox,n))},Wt=function(e){var t=e.impact,r=e.draggable,n=e.draggables,i=e.droppable,o=e.afterCritical,a=vt(i.descriptor.id,n),l=r.page,u=i.axis;if(!a.length)return function(e){var t=e.axis,r=e.moveInto,n=e.isMoving;return ke(t.line,r.contentBox[t.start]+_t(t,n),Ft(t,r.contentBox,n))}({axis:u,moveInto:i.page,isMoving:l});var c=t.displaced,s=t.displacedBy,d=c.all[0];if(d){var p=n[d];if(Mt(d,o))return kt({axis:u,moveRelativeTo:p.page,isMoving:l});var f=Xe(p.page,s.point);return kt({axis:u,moveRelativeTo:f,isMoving:l})}var g=a[a.length-1];if(g.descriptor.id===r.descriptor.id)return l.borderBox.center;if(Mt(g.descriptor.id,o)){var v=Xe(g.page,je(o.displacedBy.point));return jt({axis:u,moveRelativeTo:v,isMoving:l})}return jt({axis:u,moveRelativeTo:g.page,isMoving:l})},Ut=function(e,t){var r=e.frame;return r?Ge(t,r.scroll.diff.displacement):t},Ht=function(e){var t=function(e){var t=e.impact,r=e.draggable,n=e.droppable,i=e.draggables,o=e.afterCritical,a=r.page.borderBox.center,l=t.at;return n&&l?"REORDER"===l.type?Wt({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:o}):Gt({impact:t,draggables:i,afterCritical:o}):a}(e),r=e.droppable;return r?Ut(r,t):t},qt=function(e,t){var r=_e(t,e.scroll.initial),n=je(r);return{frame:qe({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function Vt(e,t){return e.map((function(e){return t[e]}))}var zt=function(e){var t=e.pageBorderBoxCenter,r=e.draggable,n=function(e,t){return Ge(e.scroll.diff.displacement,t)}(e.viewport,t),i=_e(n,r.page.borderBox.center);return Ge(r.client.borderBox.center,i)},$t=function(e){var t=e.draggable,r=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,a=e.onlyOnMainAxis,l=void 0!==a&&a,u=_e(n,t.page.borderBox.center),c={target:et(t.page.borderBox,u),destination:r,withDroppableDisplacement:o,viewport:i};return l?function(e){return Ot(s({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var r=wt(e.top,e.bottom),n=wt(e.left,e.right);return function(e){return t===St?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)}})}));var t}(c):Rt(c)},Yt=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.draggables,o=e.previousImpact,a=e.viewport,l=e.previousPageBorderBoxCenter,u=e.previousClientSelection,c=e.afterCritical;if(!n.isEnabled)return null;var d=vt(n.descriptor.id,i),p=yt(r,n),g=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.insideDestination,o=e.previousImpact;if(!n.isCombineEnabled)return null;if(!mt(o))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return s({},o,{at:t})}var l=o.displaced.all,u=l.length?l[0]:null;if(t)return u?a(u):null;var c=ht(r,i);if(!u)return c.length?a(c[c.length-1].descriptor.id):null;var d=ut(c,(function(e){return e.descriptor.id===u}));-1===d&&f(!1);var p=d-1;return p<0?null:a(c[p].descriptor.id)}({isMovingForward:t,draggable:r,destination:n,insideDestination:d,previousImpact:o})||Lt({isMovingForward:t,isInHomeList:p,draggable:r,draggables:i,destination:n,insideDestination:d,previousImpact:o,viewport:a,afterCritical:c});if(!g)return null;var v=Ht({impact:g,draggable:r,droppable:n,draggables:i,afterCritical:c});if($t({draggable:r,destination:n,newPageBorderBoxCenter:v,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:zt({pageBorderBoxCenter:v,draggable:r,viewport:a}),impact:g,scrollJumpRequest:null};var m=_e(v,l);return{clientSelection:u,impact:function(e){var t=e.impact,r=e.viewport,n=e.destination,i=e.draggables,o=e.maxScrollChange,a=qt(r,Ge(r.scroll.current,o)),l=n.frame?it(n,Ge(n.frame.scroll.current,o)):n,u=t.displaced,c=Nt({afterDragging:Vt(u.all,i),destination:n,displacedBy:t.displacedBy,viewport:a.frame,last:u,forceShouldAnimate:!1}),d=Nt({afterDragging:Vt(u.all,i),destination:l,displacedBy:t.displacedBy,viewport:r.frame,last:u,forceShouldAnimate:!1}),p={},f={},g=[u,c,d];return u.all.forEach((function(e){var t=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].visible[e];if(n)return n}return null}(e,g);t?f[e]=t:p[e]=!0})),s({},t,{displaced:{all:u.all,invisible:p,visible:f}})}({impact:g,viewport:a,destination:n,draggables:i,maxScrollChange:m}),scrollJumpRequest:m}},Jt=function(e){var t=e.subject.active;return t||f(!1),t},Xt=function(e,t){var r=e.page.borderBox.center;return Mt(e.descriptor.id,t)?_e(r,t.displacedBy.point):r},Kt=function(e,t){var r=e.page.borderBox;return Mt(e.descriptor.id,t)?et(r,je(t.displacedBy.point)):r},Qt=at((function(e,t){var r=t[e.line];return{value:r,point:ke(e.line,r)}})),Zt=function(e,t){return s({},e,{scroll:s({},e.scroll,{max:t})})},er=function(e,t,r){var n=e.frame;yt(t,e)&&f(!1),e.subject.withPlaceholder&&f(!1);var i=Qt(e.axis,t.displaceBy).point,o=function(e,t,r){var n=e.axis;if("virtual"===e.descriptor.mode)return ke(n.line,t[n.line]);var i=e.subject.page.contentBox[n.size],o=vt(e.descriptor.id,r).reduce((function(e,t){return e+t.client.marginBox[n.size]}),0)+t[n.line]-i;return o<=0?null:ke(n.line,o)}(e,i,r),a={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n)return s({},e,{subject:nt({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame})});var l=o?Ge(n.scroll.max,o):n.scroll.max,u=Zt(n,l);return s({},e,{subject:nt({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:u}),frame:u})},tr=function(e){var t=e.isMovingForward,r=e.previousPageBorderBoxCenter,n=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,l=e.viewport,u=e.afterCritical,c=function(e){var t=e.isMovingForward,r=e.pageBorderBoxCenter,n=e.source,i=e.droppables,o=e.viewport,a=n.subject.active;if(!a)return null;var l=n.axis,u=wt(a[l.start],a[l.end]),c=ft(i).filter((function(e){return e!==n})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return Et(o.frame)(Jt(e))})).filter((function(e){var r=Jt(e);return t?a[l.crossAxisEnd]<r[l.crossAxisEnd]:r[l.crossAxisStart]<a[l.crossAxisStart]})).filter((function(e){var t=Jt(e),r=wt(t[l.start],t[l.end]);return u(t[l.start])||u(t[l.end])||r(a[l.start])||r(a[l.end])})).sort((function(e,r){var n=Jt(e)[l.crossAxisStart],i=Jt(r)[l.crossAxisStart];return t?n-i:i-n})).filter((function(e,t,r){return Jt(e)[l.crossAxisStart]===Jt(r[0])[l.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var s=c.filter((function(e){return wt(Jt(e)[l.start],Jt(e)[l.end])(r[l.line])}));return 1===s.length?s[0]:s.length>1?s.sort((function(e,t){return Jt(e)[l.start]-Jt(t)[l.start]}))[0]:c.sort((function(e,t){var n=Ue(r,tt(Jt(e))),i=Ue(r,tt(Jt(t)));return n!==i?n-i:Jt(e)[l.start]-Jt(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:a,viewport:l});if(!c)return null;var s=vt(c.descriptor.id,o),d=function(e){var t=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,n=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,l=e.viewport,u=e.afterCritical;if(!r){if(n.length)return null;var c={displaced:It,displacedBy:xt,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},s=Ht({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:u}),d=yt(i,a)?a:er(a,i,o);return $t({draggable:i,destination:d,newPageBorderBoxCenter:s,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var p,f=Boolean(t[a.axis.line]<=r.page.borderBox.center[a.axis.line]),g=(p=r.descriptor.index,r.descriptor.id===i.descriptor.id?p:f?p:p+1),v=Qt(a.axis,i.displaceBy);return Tt({draggable:i,insideDestination:n,destination:a,viewport:l,displacedBy:v,last:It,index:g})}({previousPageBorderBoxCenter:r,destination:c,draggable:n,draggables:o,moveRelativeTo:function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,i=e.insideDestination,o=e.afterCritical;return i.filter((function(e){return Rt({target:Kt(e,o),destination:n,viewport:r.frame,withDroppableDisplacement:!0})})).sort((function(e,r){var i=We(t,Ut(n,Xt(e,o))),a=We(t,Ut(n,Xt(r,o)));return i<a?-1:a<i?1:e.descriptor.index-r.descriptor.index}))[0]||null}({pageBorderBoxCenter:r,viewport:l,destination:c,insideDestination:s,afterCritical:u}),insideDestination:s,viewport:l,afterCritical:u});if(!d)return null;var p=Ht({impact:d,draggable:n,droppable:c,draggables:o,afterCritical:u});return{clientSelection:zt({pageBorderBoxCenter:p,draggable:n,viewport:l}),impact:d,scrollJumpRequest:null}},rr=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},nr=function(e){var t=e.state,r=e.type,n=function(e,t){var r=rr(e);return r?t[r]:null}(t.impact,t.dimensions.droppables),i=Boolean(n),o=t.dimensions.droppables[t.critical.droppable.id],a=n||o,l=a.axis.direction,u="vertical"===l&&("MOVE_UP"===r||"MOVE_DOWN"===r)||"horizontal"===l&&("MOVE_LEFT"===r||"MOVE_RIGHT"===r);if(u&&!i)return null;var c="MOVE_DOWN"===r||"MOVE_RIGHT"===r,s=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,p=t.dimensions,f=p.draggables,g=p.droppables;return u?Yt({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:s,destination:a,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):tr({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:s,isOver:a,draggables:f,droppables:g,viewport:t.viewport,afterCritical:t.afterCritical})};function ir(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function or(e){var t=wt(e.top,e.bottom),r=wt(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}function ar(e){var t=e.pageBorderBox,r=e.draggable,n=e.droppables,i=ft(n).filter((function(e){if(!e.isEnabled)return!1;var r,n,i=e.subject.active;if(!i)return!1;if(n=i,!((r=t).left<n.right&&r.right>n.left&&r.top<n.bottom&&r.bottom>n.top))return!1;if(or(i)(t.center))return!0;var o=e.axis,a=i.center[o.crossAxisLine],l=t[o.crossAxisStart],u=t[o.crossAxisEnd],c=wt(i[o.crossAxisStart],i[o.crossAxisEnd]),s=c(l),d=c(u);return!s&&!d||(s?l<a:u>a)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var t=e.pageBorderBox,r=e.draggable,n=e.candidates,i=r.page.borderBox.center,o=n.map((function(e){var r=e.axis,n=ke(e.axis.line,t.center[r.line],e.page.borderBox.center[r.crossAxisLine]);return{id:e.descriptor.id,distance:We(i,n)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:r,candidates:i}):null}var lr=function(e,t){return qe(et(e,t))};function ur(e){var t=e.displaced,r=e.id;return Boolean(t.visible[r]||t.invisible[r])}var cr=function(e){var t=e.pageOffset,r=e.draggable,n=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,l=e.afterCritical,u=lr(r.page.borderBox,t),c=ar({pageBorderBox:u,draggable:r,droppables:i});if(!c)return Dt;var s=i[c],d=vt(s.descriptor.id,n),p=function(e,t){var r=e.frame;return r?lr(t,r.scroll.diff.value):t}(s,u);return function(e){var t=e.draggable,r=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var l=i.axis,u=Qt(i.axis,t.displaceBy),c=u.value,s=r[l.start],d=r[l.end],p=ct(ht(t,o),(function(e){var t=e.descriptor.id,r=e.page.borderBox,i=r[l.size]/4,o=Mt(t,a),u=ur({displaced:n.displaced,id:t});return o?u?d>r[l.start]+i&&d<r[l.end]-i:s>r[l.start]-c+i&&s<r[l.end]-c-i:u?d>r[l.start]+c+i&&d<r[l.end]+c-i:s>r[l.start]+i&&s<r[l.end]-i}));return p?{displacedBy:u,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:r,previousImpact:o,destination:s,insideDestination:d,afterCritical:l})||function(e){var t=e.pageBorderBoxWithDroppableScroll,r=e.draggable,n=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,l=e.afterCritical,u=n.axis,c=Qt(n.axis,r.displaceBy),s=c.value,d=t[u.start],p=t[u.end],f=function(e){var t=e.draggable,r=e.closest,n=e.inHomeList;return r?n&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}({draggable:r,closest:ct(ht(r,i),(function(e){var t=e.descriptor.id,r=e.page.borderBox.center[u.line],n=Mt(t,l),i=ur({displaced:o,id:t});return n?i?p<=r:d<r-s:i?p<=r+s:d<r})),inHomeList:yt(r,n)});return Tt({draggable:r,insideDestination:i,destination:n,viewport:a,last:o,displacedBy:c,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:r,destination:s,insideDestination:d,last:o.displaced,viewport:a,afterCritical:l})},sr=function(e,t){var r;return s({},e,((r={})[t.descriptor.id]=t,r))},dr=function(e){var t=e.previousImpact,r=e.impact,n=e.droppables,i=rr(t),o=rr(r);if(!i)return n;if(i===o)return n;var a=n[i];if(!a.subject.withPlaceholder)return n;var l=function(e){var t=e.subject.withPlaceholder;t||f(!1);var r=e.frame;if(!r)return s({},e,{subject:nt({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var n=t.oldFrameMaxScroll;n||f(!1);var i=Zt(r,n);return s({},e,{subject:nt({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null}),frame:i})}(a);return sr(n,l)},pr=function(e){var t=e.state,r=e.clientSelection,n=e.dimensions,i=e.viewport,o=e.impact,a=e.scrollJumpRequest,l=i||t.viewport,u=n||t.dimensions,c=r||t.current.client.selection,d=_e(c,t.initial.client.selection),p={offset:d,selection:c,borderBoxCenter:Ge(t.initial.client.borderBoxCenter,d)},f={selection:Ge(p.selection,l.scroll.current),borderBoxCenter:Ge(p.borderBoxCenter,l.scroll.current),offset:Ge(p.offset,l.scroll.diff.value)},g={client:p,page:f};if("COLLECTING"===t.phase)return s({phase:"COLLECTING"},t,{dimensions:u,viewport:l,current:g});var v=u.draggables[t.critical.draggable.id],m=o||cr({pageOffset:f.offset,draggable:v,draggables:u.draggables,droppables:u.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),b=function(e){var t=e.draggable,r=e.draggables,n=e.droppables,i=e.previousImpact,o=e.impact,a=dr({previousImpact:i,impact:o,droppables:n}),l=rr(o);if(!l)return a;var u=n[l];if(yt(t,u))return a;if(u.subject.withPlaceholder)return a;var c=er(u,t,r);return sr(a,c)}({draggable:v,impact:m,previousImpact:t.impact,draggables:u.draggables,droppables:u.droppables});return s({},t,{current:g,dimensions:{draggables:u.draggables,droppables:b},impact:m,viewport:l,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})};var fr=function(e){var t=e.impact,r=e.viewport,n=e.draggables,i=e.destination,o=e.forceShouldAnimate,a=t.displaced;return s({},t,{displaced:Nt({afterDragging:function(e,t){return e.map((function(e){return t[e]}))}(a.all,n),destination:i,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:o,last:a})})},gr=function(e){var t=e.impact,r=e.draggable,n=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,l=Ht({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:a});return zt({pageBorderBoxCenter:l,draggable:r,viewport:o})},vr=function(e){var t=e.state,r=e.dimensions,n=e.viewport;"SNAP"!==t.movementMode&&f(!1);var i=t.impact,o=n||t.viewport,a=r||t.dimensions,l=a.draggables,u=a.droppables,c=l[t.critical.draggable.id],s=rr(i);s||f(!1);var d=u[s],p=fr({impact:i,viewport:o,destination:d,draggables:l}),g=gr({impact:p,draggable:c,droppable:d,draggables:l,viewport:o,afterCritical:t.afterCritical});return pr({impact:p,clientSelection:g,state:t,dimensions:a,viewport:o})},mr=function(e){var t=e.draggable,r=e.home,n=e.draggables,i=e.viewport,o=Qt(r.axis,t.displaceBy),a=vt(r.descriptor.id,n),l=a.indexOf(t);-1===l&&f(!1);var u,c=a.slice(l+1),s=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===r.descriptor.mode,displacedBy:o,effected:s};return{impact:{displaced:Nt({afterDragging:c,destination:r,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(u=t.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:d}},br=function(e){var t=e.additions,r=e.updatedDroppables,n=e.viewport,i=n.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,o=function(e){var t=e.frame;return t||f(!1),t}(r[t]).scroll.diff.value;return function(e){var t=e.draggable,r=e.offset,n=e.initialWindowScroll,i=Xe(t.client,r),o=Ke(i,n);return s({},t,{placeholder:s({},t.placeholder,{client:i}),client:i,page:o})}({draggable:e,offset:Ge(i,o),initialWindowScroll:n.scroll.initial})}))},hr=function(e){return"SNAP"===e.movementMode},yr=function(e,t,r){var n=function(e,t){return{draggables:e.draggables,droppables:sr(e.droppables,t)}}(e.dimensions,t);return!hr(e)||r?pr({state:e,dimensions:n}):vr({state:e,dimensions:n})};function xr(e){return e.isDragging&&"SNAP"===e.movementMode?s({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Ir={phase:"IDLE",completed:null,shouldFlush:!1},Dr=function(e,t){if(void 0===e&&(e=Ir),"FLUSH"===t.type)return s({},Ir,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&f(!1);var r=t.payload,n=r.critical,i=r.clientSelection,o=r.viewport,a=r.dimensions,l=r.movementMode,u=a.draggables[n.draggable.id],c=a.droppables[n.droppable.id],d={selection:i,borderBoxCenter:u.client.borderBox.center,offset:Le},p={client:d,page:{selection:Ge(d.selection,o.scroll.initial),borderBoxCenter:Ge(d.selection,o.scroll.initial),offset:Ge(d.selection,o.scroll.diff.value)}},g=ft(a.droppables).every((function(e){return!e.isFixedOnPage})),v=mr({draggable:u,home:c,draggables:a.draggables,viewport:o}),m=v.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:l,dimensions:a,initial:p,current:p,isWindowScrollAllowed:g,impact:m,afterCritical:v.afterCritical,onLiftImpact:m,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&f(!1),s({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&f(!1),function(e){var t=e.state,r=e.published,n=r.modified.map((function(e){var r=t.dimensions.droppables[e.droppableId];return it(r,e.scroll)})),i=s({},t.dimensions.droppables,{},dt(n)),o=pt(br({additions:r.additions,updatedDroppables:i,viewport:t.viewport})),a=s({},t.dimensions.draggables,{},o);r.removals.forEach((function(e){delete a[e]}));var l={droppables:i,draggables:a},u=rr(t.impact),c=u?l.droppables[u]:null,d=l.draggables[t.critical.draggable.id],p=l.droppables[t.critical.droppable.id],f=mr({draggable:d,home:p,draggables:a,viewport:t.viewport}),g=f.impact,v=f.afterCritical,m=c&&c.isCombineEnabled?t.impact:g,b=cr({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:m,viewport:t.viewport,afterCritical:v}),h=s({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:b,onLiftImpact:g,dimensions:l,afterCritical:v,forceShouldAnimate:!1});return"COLLECTING"===t.phase?h:s({phase:"DROP_PENDING"},h,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;ir(e)||f(!1);var b=t.payload.client;return Fe(b,e.current.client.selection)?e:pr({state:e,clientSelection:b,impact:hr(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return xr(e);if("COLLECTING"===e.phase)return xr(e);ir(e)||f(!1);var h=t.payload,y=h.id,x=h.newScroll,I=e.dimensions.droppables[y];if(!I)return e;var D=it(I,x);return yr(e,D,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;ir(e)||f(!1);var w=t.payload,E=w.id,C=w.isEnabled,S=e.dimensions.droppables[E];S||f(!1),S.isEnabled===C&&f(!1);var P=s({},S,{isEnabled:C});return yr(e,P,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;ir(e)||f(!1);var O=t.payload,A=O.id,R=O.isCombineEnabled,N=e.dimensions.droppables[A];N||f(!1),N.isCombineEnabled===R&&f(!1);var B=s({},N,{isCombineEnabled:R});return yr(e,B,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;ir(e)||f(!1),e.isWindowScrollAllowed||f(!1);var T=t.payload.newScroll;if(Fe(e.viewport.scroll.current,T))return xr(e);var M=qt(e.viewport,T);return hr(e)?vr({state:e,viewport:M}):pr({state:e,viewport:M})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!ir(e))return e;var L=t.payload.maxScroll;if(Fe(L,e.viewport.scroll.max))return e;var G=s({},e.viewport,{scroll:s({},e.viewport.scroll,{max:L})});return s({phase:"DRAGGING"},e,{viewport:G})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&f(!1);var _=nr({state:e,type:t.type});return _?pr({state:e,impact:_.impact,clientSelection:_.clientSelection,scrollJumpRequest:_.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var F=t.payload.reason;return"COLLECTING"!==e.phase&&f(!1),s({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:F})}if("DROP_ANIMATE"===t.type){var j=t.payload,k=j.completed,W=j.dropDuration,U=j.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&f(!1),{phase:"DROP_ANIMATING",completed:k,dropDuration:W,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},wr=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},Er=function(){return{type:"COLLECTION_STARTING",payload:null}},Cr=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},Sr=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Pr=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},Or=function(e){return{type:"MOVE",payload:e}},Ar=function(){return{type:"MOVE_UP",payload:null}},Rr=function(){return{type:"MOVE_DOWN",payload:null}},Nr=function(){return{type:"MOVE_RIGHT",payload:null}},Br=function(){return{type:"MOVE_LEFT",payload:null}},Tr=function(e){return{type:"DROP_COMPLETE",payload:e}},Mr=function(e){return{type:"DROP",payload:e}},Lr=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},Gr="cubic-bezier(.2,1,.1,1)",_r={drop:0,combining:.7},Fr={drop:.75},jr=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",kr={fluid:"opacity "+jr,snap:"transform "+jr+", opacity "+jr,drop:function(e){var t=e+"s "+Gr;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+jr,placeholder:"height "+jr+", width "+jr+", margin "+jr},Wr=function(e){return Fe(e,Le)?null:"translate("+e.x+"px, "+e.y+"px)"},Ur=Wr,Hr=function(e,t){var r=Wr(e);return r?t?r+" scale("+Fr.drop+")":r:null},qr=.33,Vr=.55,zr=Vr-qr,$r=function(e){var t=e.getState,r=e.dispatch;return function(e){return function(n){if("DROP"===n.type){var i=t(),o=n.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&f(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&f(!1);var a=i.critical,l=i.dimensions,u=l.draggables[i.critical.draggable.id],c=function(e){var t=e.draggables,r=e.reason,n=e.lastImpact,i=e.home,o=e.viewport,a=e.onLiftImpact;return n.at&&"DROP"===r?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:s({},n,{displaced:It}),didDropInsideDroppable:!0}:{impact:fr({draggables:t,impact:a,destination:i,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),d=c.impact,p=c.didDropInsideDroppable,g=p?mt(d):null,v=p?bt(d):null,m={index:a.draggable.index,droppableId:a.droppable.id},b={draggableId:u.descriptor.id,type:u.descriptor.type,source:m,reason:o,mode:i.movementMode,destination:g,combine:v},h=function(e){var t=e.impact,r=e.draggable,n=e.dimensions,i=e.viewport,o=e.afterCritical,a=n.draggables,l=n.droppables,u=rr(t),c=u?l[u]:null,s=l[r.descriptor.droppableId],d=gr({impact:t,draggable:r,draggables:a,afterCritical:o,droppable:c||s,viewport:i});return _e(d,r.client.borderBox.center)}({impact:d,draggable:u,dimensions:l,viewport:i.viewport,afterCritical:i.afterCritical}),y={critical:i.critical,afterCritical:i.afterCritical,result:b,impact:d};if(!Fe(i.current.client.offset,h)||Boolean(b.combine)){var x=function(e){var t=e.current,r=e.destination,n=e.reason,i=We(t,r);if(i<=0)return qr;if(i>=1500)return Vr;var o=qr+zr*(i/1500);return Number(("CANCEL"===n?.6*o:o).toFixed(2))}({current:i.current.client.offset,destination:h,reason:o});r(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:h,dropDuration:x,completed:y}))}else r(Tr({completed:y}))}}else r(function(e){return{type:"DROP_PENDING",payload:e}}({reason:o}))}else e(n)}}},Yr=function(e){var t=[],r=null,n=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];t=i,r||(r=requestAnimationFrame((function(){r=null,e.apply(void 0,t)})))};return n.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},n},Jr=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Xr(e){var t=e.onWindowScroll;var r=Yr((function(){t(Jr())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(r),i=c;function o(){return i!==c}return{start:function(){o()&&f(!1),i=d(window,[n])},stop:function(){o()||f(!1),r.cancel(),i(),i=c},isActive:o}}var Kr=function(e){var t=Xr({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(r){t.isActive()||"INITIAL_PUBLISH"!==r.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r)&&t.stop(),e(r)}}},Qr=function(){var e=[];return{add:function(t){var r=setTimeout((function(){return function(t){var r=ut(e,(function(e){return e.timerId===t}));-1===r&&f(!1),e.splice(r,1)[0].callback()}(r)})),n={timerId:r,callback:t};e.push(n)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Zr=function(e,t){t()},en=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},tn=function(e,t,r,n){if(e){var i=function(e){var t=!1,r=!1,n=setTimeout((function(){r=!0})),i=function(i){t||r||(t=!0,e(i),clearTimeout(n))};return i.wasCalled=function(){return t},i}(r);e(t,{announce:i}),i.wasCalled()||r(n(t))}else r(n(t))},rn=function(e,t){var r=function(e,t){var r=Qr(),n=null,i=function(r){n||f(!1),n=null,Zr(0,(function(){return tn(e().onDragEnd,r,t,y.onDragEnd)}))};return{beforeCapture:function(t,r){n&&f(!1),Zr(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})}))},beforeStart:function(t,r){n&&f(!1),Zr(0,(function(){var n=e().onBeforeDragStart;n&&n(en(t,r))}))},start:function(i,o){n&&f(!1);var a=en(i,o);n={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},r.add((function(){Zr(0,(function(){return tn(e().onDragStart,a,t,y.onDragStart)}))}))},update:function(i,o){var a=mt(o),l=bt(o);n||f(!1);var u=!function(e,t){if(e===t)return!0;var r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n}(i,n.lastCritical);u&&(n.lastCritical=i);var c,d,p=(c=n.lastLocation,d=a,!(null==c&&null==d||null!=c&&null!=d&&c.droppableId===d.droppableId&&c.index===d.index));p&&(n.lastLocation=a);var g=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId)}(n.lastCombine,l);if(g&&(n.lastCombine=l),u||p||g){var v=s({},en(i,n.mode),{combine:l,destination:a});r.add((function(){Zr(0,(function(){return tn(e().onDragUpdate,v,t,y.onDragUpdate)}))}))}},flush:function(){n||f(!1),r.flush()},drop:i,abort:function(){if(n){var e=s({},en(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var i=n.payload.critical;return r.beforeStart(i,n.payload.movementMode),t(n),void r.start(i,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var o=n.payload.completed.result;return r.flush(),t(n),void r.drop(o)}if(t(n),"FLUSH"!==n.type){var a=e.getState();"DRAGGING"===a.phase&&r.update(a.critical,a.impact)}else r.abort()}else r.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},nn=function(e){return function(t){return function(r){if("DROP_ANIMATION_FINISHED"===r.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&f(!1),e.dispatch(Tr({completed:n.completed}))}else t(r)}}},on=function(e){var t=null,r=null;return function(n){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(i),"DROP_ANIMATE"===i.type){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame((function(){r=null,t=d(window,[o])}))}}}},an=function(e){return function(t){return function(r){if(t(r),"PUBLISH_WHILE_DRAGGING"===r.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(Mr({reason:n.reason})))}}}},ln=R,un=function(e){var t,r=e.dimensionMarshal,n=e.focusMarshal,i=e.styleMarshal,o=e.getResponders,a=e.announce,l=e.autoScroller;return E(Dr,ln(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return A({},r,{dispatch:n=R.apply(void 0,o)(r.dispatch)})}}}((t=i,function(){return function(e){return function(r){"INITIAL_PUBLISH"===r.type&&t.dragging(),"DROP_ANIMATE"===r.type&&t.dropping(r.payload.completed.result.reason),"FLUSH"!==r.type&&"DROP_COMPLETE"!==r.type||t.resting(),e(r)}}}),function(e){return function(){return function(t){return function(r){"DROP_COMPLETE"!==r.type&&"FLUSH"!==r.type&&"DROP_ANIMATE"!==r.type||e.stopPublishing(),t(r)}}}}(r),function(e){return function(t){var r=t.getState,n=t.dispatch;return function(t){return function(i){if("LIFT"===i.type){var o=i.payload,a=o.id,l=o.clientSelection,u=o.movementMode,c=r();"DROP_ANIMATING"===c.phase&&n(Tr({completed:c.completed})),"IDLE"!==r().phase&&f(!1),n({type:"FLUSH",payload:null}),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:u}});var s={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},d=e.startPublishing(s),p=d.critical,g=d.dimensions,v=d.viewport;n(function(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:p,dimensions:g,clientSelection:l,movementMode:u,viewport:v}))}else t(i)}}}}(r),$r,nn,on,an,function(e){return function(t){return function(r){return function(n){if(e){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n))return e.stop(),void r(n);if("INITIAL_PUBLISH"===n.type){r(n);var i=t.getState();return"DRAGGING"!==i.phase&&f(!1),void e.start(i)}r(n),e.scroll(t.getState())}}}}}(l),Kr,function(e){var t=!1;return function(){return function(r){return function(n){if("INITIAL_PUBLISH"===n.type)return t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),void e.tryRestoreFocusRecorded();if(r(n),t){if("FLUSH"===n.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){t=!1;var i=n.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(n),rn(o,a))))};var cn=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,o=_e({x:r,y:t},{x:i,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},sn=function(){var e=document.documentElement;return e||f(!1),e},dn=function(){var e=sn();return cn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},pn=function(e){var t=e.critical,r=e.scrollOptions,n=e.registry,i=function(){var e=Jr(),t=dn(),r=e.y,n=e.x,i=sn(),o=i.clientWidth,a=i.clientHeight;return{frame:qe({top:r,left:n,right:n+o,bottom:r+a}),scroll:{initial:e,current:e,max:t,diff:{value:Le,displacement:Le}}}}(),o=i.scroll.current,a=t.droppable,l=n.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(o,r)})),u=n.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(o)}));return{dimensions:{draggables:pt(u),droppables:dt(l)},critical:t,viewport:i}};function fn(e,t,r){return r.descriptor.id!==t.id&&(r.descriptor.type===t.type&&"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode)}var gn,vn,mn=function(e,t){var r=null,n=function(e){var t=e.registry,r=e.callbacks,n={additions:{},removals:{},modified:{}},i=null,o=function(){i||(r.collectionStarting(),i=requestAnimationFrame((function(){i=null;var e=n,o=e.additions,a=e.removals,l=e.modified,u=Object.keys(o).map((function(e){return t.draggable.getById(e).getDimension(Le)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),s={additions:u,removals:Object.keys(a),modified:c};n={additions:{},removals:{},modified:{}},r.publish(s)})))};return{add:function(e){var t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],o()},remove:function(e){var t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(t){r||f(!1);var i=r.critical.draggable;"ADDITION"===t.type&&fn(e,i,t.value)&&n.add(t.value),"REMOVAL"===t.type&&fn(e,i,t.value)&&n.remove(t.value)};return{updateDroppableIsEnabled:function(n,i){e.droppable.exists(n)||f(!1),r&&t.updateDroppableIsEnabled({id:n,isEnabled:i})},updateDroppableIsCombineEnabled:function(n,i){r&&(e.droppable.exists(n)||f(!1),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:i}))},scrollDroppable:function(t,n){r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:function(n,i){r&&(e.droppable.exists(n)||f(!1),t.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:function(t){r&&f(!1);var n=e.draggable.getById(t.draggableId),o=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:o.descriptor},l=e.subscribe(i);return r={critical:a,unsubscribe:l},pn({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(r){n.stop();var t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),r.unsubscribe(),r=null}}}},bn=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},hn=function(e){window.scrollBy(e.x,e.y)},yn=at((function(e){return ft(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),xn=function(e){var t=e.center,r=e.destination,n=e.droppables;if(r){var i=n[r];return i.frame?i:null}return function(e,t){return ct(yn(t),(function(t){return t.frame||f(!1),or(t.frame.pageMarginBox)(e)}))}(t,n)},In=.25,Dn=.05,wn=28,En=function(e){return Math.pow(e,2)},Cn={stopDampeningAt:1200,accelerateAt:360},Sn=function(e){var t=e.startOfRange,r=e.endOfRange,n=e.current,i=r-t;return 0===i?0:(n-t)/i},Pn=Cn.accelerateAt,On=Cn.stopDampeningAt,An=function(e){var t=e.distanceToEdge,r=e.thresholds,n=e.dragStartTime,i=e.shouldUseTimeDampening,o=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return wn;if(e===t.startScrollingFrom)return 1;var r=Sn({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),n=wn*En(1-r);return Math.ceil(n)}(t,r);return 0===o?0:i?Math.max(function(e,t){var r=t,n=On,i=Date.now()-r;if(i>=On)return e;if(i<Pn)return 1;var o=Sn({startOfRange:Pn,endOfRange:n,current:i}),a=e*En(o);return Math.ceil(a)}(o,n),1):o},Rn=function(e){var t=e.container,r=e.distanceToEdges,n=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*In,maxScrollValueAt:e[t.size]*Dn}}(t,i);return r[i.end]<r[i.start]?An({distanceToEdge:r[i.end],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o}):-1*An({distanceToEdge:r[i.start],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o})},Nn=He((function(e){return 0===e?0:e})),Bn=function(e){var t=e.dragStartTime,r=e.container,n=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-r.top,right:r.right-i.x,bottom:r.bottom-i.y,left:i.x-r.left},l=Rn({container:r,distanceToEdges:a,dragStartTime:t,axis:St,shouldUseTimeDampening:o}),u=Rn({container:r,distanceToEdges:a,dragStartTime:t,axis:Pt,shouldUseTimeDampening:o}),c=Nn({x:u,y:l});if(Fe(c,Le))return null;var s=function(e){var t=e.container,r=e.subject,n=e.proposedScroll,i=r.height>t.height,o=r.width>t.width;return o||i?o&&i?null:{x:o?0:n.x,y:i?0:n.y}:n}({container:r,subject:n,proposedScroll:c});return s?Fe(s,Le)?null:s:null},Tn=He((function(e){return 0===e?0:e>0?1:-1})),Mn=(gn=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,r=e.max,n=e.change,i=Ge(t,n),o={x:gn(i.x,r.x),y:gn(i.y,r.y)};return Fe(o,Le)?null:o}),Ln=function(e){var t=e.max,r=e.current,n=e.change,i={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},o=Tn(n),a=Mn({max:i,current:r,change:o});return!a||(0!==o.x&&0===a.x||0!==o.y&&0===a.y)},Gn=function(e,t){return Ln({current:e.scroll.current,max:e.scroll.max,change:t})},_n=function(e,t){var r=e.frame;return!!r&&Ln({current:r.scroll.current,max:r.scroll.max,change:t})},Fn=function(e){var t=e.state,r=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var u=function(e){var t=e.viewport,r=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=Bn({dragStartTime:i,container:t.frame,subject:r,center:n,shouldUseTimeDampening:o});return a&&Gn(t,a)?a:null}({dragStartTime:r,viewport:t.viewport,subject:l,center:a,shouldUseTimeDampening:n});if(u)return void i(u)}var c=xn({center:a,destination:rr(t.impact),droppables:t.dimensions.droppables});if(c){var s=function(e){var t=e.droppable,r=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var l=Bn({dragStartTime:i,container:a.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:o});return l&&_n(t,l)?l:null}({dragStartTime:r,droppable:c,subject:l,center:a,shouldUseTimeDampening:n});s&&o(c.descriptor.id,s)}},jn=function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow,i=function(e,t){if(!_n(e,t))return t;var n=function(e,t){var r=e.frame;return r&&_n(e,t)?Mn({current:r.scroll.current,max:r.scroll.max,change:t}):null}(e,t);if(!n)return r(e.descriptor.id,t),null;var i=_e(t,n);return r(e.descriptor.id,i),_e(t,i)},o=function(e,t,r){if(!e)return r;if(!Gn(t,r))return r;var i=function(e,t){if(!Gn(e,t))return null;var r=e.scroll.max,n=e.scroll.current;return Mn({current:n,max:r,change:t})}(t,r);if(!i)return n(r),null;var o=_e(r,i);return n(o),_e(r,o)};return function(e){var r=e.scrollJumpRequest;if(r){var n=rr(e.impact);n||f(!1);var a=i(e.dimensions.droppables[n],r);if(a){var l=e.viewport,u=o(e.isWindowScrollAllowed,l,a);u&&function(e,r){var n=Ge(e.current.client.selection,r);t({client:n})}(e,u)}}}},kn=function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,i=e.enabled,o=function(e){var t=e.scrollWindow,r=e.scrollDroppable,n=Yr(t),i=Yr(r),o=null,a=function(e){o||f(!1);var t=o,r=t.shouldUseTimeDampening,a=t.dragStartTime;Fn({state:e,scrollWindow:n,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:r})};return{start:function(e){o&&f(!1);var t=Date.now(),r=!1,n=function(){r=!0};Fn({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),o={dragStartTime:t,shouldUseTimeDampening:r},r&&a(e)},stop:function(){o&&(n.cancel(),i.cancel(),o=null)},scroll:a}}({scrollWindow:r,scrollDroppable:t}),a=jn({move:n,scrollWindow:r,scrollDroppable:t});return{scroll:function(e){i&&"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):o.scroll(e))},start:o.start,stop:o.stop}},Wn={base:vn="data-rbd-drag-handle",draggableId:vn+"-draggable-id",contextId:vn+"-context-id"},Un=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Hn=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),qn={contextId:"data-rbd-scroll-container-context-id"},Vn=function(e,t){return e.map((function(e){var r=e.styles[t];return r?e.selector+" { "+r+" }":""})).join(" ")},zn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect,$n=function(){var e=document.querySelector("head");return e||f(!1),e},Yn=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Jn(e,r){var n=a((function(){return function(e){var t,r,n,i=(t=e,function(e){return"["+e+'="'+t+'"]'}),o=(r="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ",{selector:i(Wn.contextId),styles:{always:"\n          -webkit-touch-callout: none;\n          -webkit-tap-highlight-color: rgba(0,0,0,0);\n          touch-action: manipulation;\n        ",resting:r,dragging:"pointer-events: none;",dropAnimating:r}}),a=[(n="\n      transition: "+kr.outOfTheWay+";\n    ",{selector:i(Un.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),o,{selector:i(Hn.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n        cursor: grabbing;\n        cursor: -webkit-grabbing;\n        user-select: none;\n        -webkit-user-select: none;\n        -moz-user-select: none;\n        -ms-user-select: none;\n        overflow-anchor: none;\n      "}}];return{always:Vn(a,"always"),resting:Vn(a,"resting"),dragging:Vn(a,"dragging"),dropAnimating:Vn(a,"dropAnimating"),userCancel:Vn(a,"userCancel")}}(e)}),[e]),i=t.useRef(null),o=t.useRef(null),u=l(at((function(e){var t=o.current;t||f(!1),t.textContent=e})),[]),c=l((function(e){var t=i.current;t||f(!1),t.textContent=e}),[]);zn((function(){(i.current||o.current)&&f(!1);var t=Yn(r),a=Yn(r);return i.current=t,o.current=a,t.setAttribute("data-rbd-always",e),a.setAttribute("data-rbd-dynamic",e),$n().appendChild(t),$n().appendChild(a),c(n.always),u(n.resting),function(){var e=function(e){var t=e.current;t||f(!1),$n().removeChild(t),e.current=null};e(i),e(o)}}),[r,c,u,n.always,n.resting,e]);var s=l((function(){return u(n.dragging)}),[u,n.dragging]),d=l((function(e){u("DROP"!==e?n.userCancel:n.dropAnimating)}),[u,n.dropAnimating,n.userCancel]),p=l((function(){o.current&&u(n.resting)}),[u,n.resting]);return a((function(){return{dragging:s,dropping:d,resting:p}}),[s,d,p])}var Xn=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Kn(e){return e instanceof Xn(e).HTMLElement}function Qn(e){var r=t.useRef({}),n=t.useRef(null),i=t.useRef(null),o=t.useRef(!1),u=l((function(e,t){var n={id:e,focus:t};return r.current[e]=n,function(){var t=r.current;t[e]!==n&&delete t[e]}}),[]),c=l((function(t){var r=function(e,t){var r="["+Wn.contextId+'="'+e+'"]',n=st(document.querySelectorAll(r));if(!n.length)return null;var i=ct(n,(function(e){return e.getAttribute(Wn.draggableId)===t}));return i&&Kn(i)?i:null}(e,t);r&&r!==document.activeElement&&r.focus()}),[e]),s=l((function(e,t){n.current===e&&(n.current=t)}),[]),d=l((function(){i.current||o.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=n.current;e&&c(e)})))}),[c]),p=l((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(Wn.draggableId)===e&&(n.current=e)}),[]);return zn((function(){return o.current=!0,function(){o.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),a((function(){return{register:u,tryRecordFocus:p,tryRestoreFocusRecorded:d,tryShiftRecord:s}}),[u,p,d,s])}function Zn(){var e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach((function(t){return t(e)}))}function n(t){return e.draggables[t]||null}function i(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:function(t,r){var n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var i=t.descriptor.id,o=n(i);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[i],r({type:"REMOVAL",value:t}))},getById:function(e){var t=n(e);return t||f(!1),t},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(t){return lt(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var r=i(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=i(e);return t||f(!1),t},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(t){return lt(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var ei=n.createContext(null),ti=function(){var e=document.body;return e||f(!1),e},ri={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var ni=0,ii={separator:"::"};function oi(e,t){return void 0===t&&(t=ii),a((function(){return""+e+t.separator+ni++}),[t.separator,e])}var ai=n.createContext(null);function li(e){var r=t.useRef(e);return t.useEffect((function(){r.current=e})),r}var ui,ci=((ui={})[13]=!0,ui[9]=!0,ui),si=function(e){ci[e.keyCode]&&e.preventDefault()},di=function(){var e="visibilitychange";return"undefined"==typeof document?e:ct([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var pi,fi={type:"IDLE"};function gi(e){var t=e.cancel,r=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,r=e.clientX,o=e.clientY;if(0===t){var a={x:r,y:o},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);"PENDING"!==l.type&&f(!1);var u=l.point;if(c=u,s=a,Math.abs(s.x-c.x)>=5||Math.abs(s.y-c.y)>=5){var c,s;e.preventDefault();var d=l.actions.fluidLift(a);i({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return 27===e.keyCode?(e.preventDefault(),void t()):void si(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var r=n();"IDLE"===r.type&&f(!1),r.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:di,fn:t}]}function vi(e){var r=t.useRef(fi),n=t.useRef(c),i=a((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,s,{sourceEvent:t});if(i){t.preventDefault();var o={x:t.clientX,y:t.clientY};n.current(),v(i,o)}}}}}}),[e]),o=a((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var n=e.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||e.canGetLock(r)&&t.preventDefault())}}}}}),[e]),u=l((function(){n.current=d(window,[o,i],{passive:!1,capture:!0})}),[o,i]),s=l((function(){"IDLE"!==r.current.type&&(r.current=fi,n.current(),u())}),[u]),p=l((function(){var e=r.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),g=l((function(){var e=gi({cancel:p,completed:s,getPhase:function(){return r.current},setPhase:function(e){r.current=e}});n.current=d(window,e,{capture:!0,passive:!1})}),[p,s]),v=l((function(e,t){"IDLE"!==r.current.type&&f(!1),r.current={type:"PENDING",point:t,actions:e},g()}),[g]);zn((function(){return u(),function(){n.current()}}),[u])}function mi(){}var bi=((pi={})[34]=!0,pi[33]=!0,pi[36]=!0,pi[35]=!0,pi);function hi(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:function(n){return 27===n.keyCode?(n.preventDefault(),void r()):32===n.keyCode?(n.preventDefault(),t(),void e.drop()):40===n.keyCode?(n.preventDefault(),void e.moveDown()):38===n.keyCode?(n.preventDefault(),void e.moveUp()):39===n.keyCode?(n.preventDefault(),void e.moveRight()):37===n.keyCode?(n.preventDefault(),void e.moveLeft()):void(bi[n.keyCode]?n.preventDefault():si(n))}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:di,fn:r}]}function yi(e){var r=t.useRef(mi),n=a((function(){return{eventName:"keydown",fn:function(t){if(!t.defaultPrevented&&32===t.keyCode){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,u,{sourceEvent:t});if(o){t.preventDefault();var a=!0,l=o.snapLift();r.current(),r.current=d(window,hi(l,u),{capture:!0,passive:!1})}}}function u(){a||f(!1),a=!1,r.current(),i()}}}}),[e]),i=l((function(){r.current=d(window,[n],{passive:!1,capture:!0})}),[n]);zn((function(){return i(),function(){r.current()}}),[i])}var xi={type:"IDLE"};function Ii(e){var r=t.useRef(xi),n=t.useRef(c),i=l((function(){return r.current}),[]),o=l((function(e){r.current=e}),[]),u=a((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,p,{sourceEvent:t});if(i){var o=t.touches[0],a={x:o.clientX,y:o.clientY};n.current(),b(i,a)}}}}}}),[e]),s=l((function(){n.current=d(window,[u],{capture:!0,passive:!1})}),[u]),p=l((function(){var e=r.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(xi),n.current(),s())}),[s,o]),g=l((function(){var e=r.current;p(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[p]),v=l((function(){var e={capture:!0,passive:!1},t={cancel:g,completed:p,getPhase:i},r=d(window,function(e){var t=e.cancel,r=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var r=n();if("DRAGGING"===r.type){r.hasMoved=!0;var i=e.touches[0],o={x:i.clientX,y:i.clientY};e.preventDefault(),r.actions.move(o)}else t()}},{eventName:"touchend",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var r=n();"IDLE"===r.type&&f(!1);var i=e.touches[0];if(i&&i.force>=.15){var o=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return o?r.hasMoved?void e.preventDefault():void t():void e.preventDefault();o&&t()}}},{eventName:di,fn:t}]}(t),e),o=d(window,function(e){var t=e.cancel,r=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===r().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:di,fn:t}]}(t),e);n.current=function(){r(),o()}}),[g,i,p]),m=l((function(){var e=i();"PENDING"!==e.type&&f(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[i,o]),b=l((function(e,t){"IDLE"!==i().type&&f(!1);var r=setTimeout(m,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:r}),v()}),[v,i,o,m]);zn((function(){return s(),function(){n.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(xi))}}),[i,s,o]),zn((function(){return d(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}var Di={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function wi(e,t){var r=t.target;return!!Kn(r)&&function e(t,r){if(null==r)return!1;if(Boolean(Di[r.tagName.toLowerCase()]))return!0;var n=r.getAttribute("contenteditable");return"true"===n||""===n||r!==t&&e(t,r.parentElement)}(e,r)}var Ei=function(e){return qe(e.getBoundingClientRect()).center};var Ci="undefined"==typeof document?"matches":ct(["matches","msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||"matches";function Si(e,t){return e.closest?e.closest(t):function e(t,r){return null==t?null:t[Ci](r)?t:e(t.parentElement,r)}(e,t)}function Pi(e,t){var r,n=t.target;if(!((r=n)instanceof Xn(r).Element))return null;var i=Si(n,function(e){return"["+Wn.contextId+'="'+e+'"]'}(e));return i&&Kn(i)?i:null}function Oi(e){e.preventDefault()}function Ai(e){var t=e.expected,r=e.phase,n=e.isLockActive;e.shouldWarn;return!!n()&&t===r}function Ri(e){var t=e.lockAPI,r=e.store,n=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=n.draggable.findById(i);return!!o&&(!!o.options.isEnabled&&!!bn(r.getState(),i))}function Ni(e){var t=e.lockAPI,r=e.contextId,n=e.store,i=e.registry,o=e.draggableId,a=e.forceSensorStop,l=e.sourceEvent;if(!Ri({lockAPI:t,store:n,registry:i,draggableId:o}))return null;var u=i.draggable.getById(o),p=function(e,t){var r="["+Un.contextId+'="'+e+'"]',n=ct(st(document.querySelectorAll(r)),(function(e){return e.getAttribute(Un.id)===t}));return n&&Kn(n)?n:null}(r,u.descriptor.id);if(!p)return null;if(l&&!u.options.canDragInteractiveElements&&wi(p,l))return null;var g=t.claim(a||c),v="PRE_DRAG";function m(){return u.options.shouldRespectForcePress}function b(){return t.isActive(g)}var h=function(e,t){Ai({expected:e,phase:v,isLockActive:b,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function y(e){function r(){t.release(),v="COMPLETED"}function i(t,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var o=d(window,[{eventName:"click",fn:Oi,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}r(),n.dispatch(Mr({reason:t}))}return"PRE_DRAG"!==v&&(r(),"PRE_DRAG"!==v&&f(!1)),n.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),v="DRAGGING",s({isActive:function(){return Ai({expected:"DRAGGING",phase:v,isLockActive:b,shouldWarn:!1})},shouldRespectForcePress:m,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return Ai({expected:"PRE_DRAG",phase:v,isLockActive:b,shouldWarn:!1})},shouldRespectForcePress:m,fluidLift:function(e){var t=Yr((function(e){h((function(){return Or({client:e})}))}));return s({},y({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return h(Ar)},moveRight:function(){return h(Nr)},moveDown:function(){return h(Rr)},moveLeft:function(){return h(Br)}};return y({liftActionArgs:{id:o,clientSelection:Ei(p),movementMode:"SNAP"},cleanup:c,actions:e})},abort:function(){Ai({expected:"PRE_DRAG",phase:v,isLockActive:b,shouldWarn:!0})&&t.release()}}}var Bi=[vi,yi,Ii];function Ti(e){var r=e.contextId,n=e.store,i=e.registry,o=e.customSensors,u=e.enableDefaultSensors,c=[].concat(u?Bi:[],o||[]),s=t.useState((function(){return function(){var e=null;function t(){e||f(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&f(!1);var r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],d=l((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);zn((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();d(e,t),e=t}))}),[s,n,d]),zn((function(){return s.tryAbandon}),[s.tryAbandon]);for(var p=l((function(e){return Ri({lockAPI:s,registry:i,store:n,draggableId:e})}),[s,i,n]),g=l((function(e,t,o){return Ni({lockAPI:s,registry:i,contextId:r,store:n,draggableId:e,forceSensorStop:t,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[r,s,i,n]),v=l((function(e){return function(e,t){var r=Pi(e,t);return r?r.getAttribute(Wn.draggableId):null}(r,e)}),[r]),m=l((function(e){var t=i.draggable.findById(e);return t?t.options:null}),[i.draggable]),b=l((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[s,n]),h=l(s.isClaimed,[s]),y=a((function(){return{canGetLock:p,tryGetLock:g,findClosestDraggableId:v,findOptionsForDraggable:m,tryReleaseLock:b,isLockClaimed:h}}),[p,g,v,m,b,h]),x=0;x<c.length;x++)c[x](y)}function Mi(e){return e.current||f(!1),e.current}function Li(e){var r=e.contextId,i=e.setCallbacks,o=e.sensors,u=e.nonce,c=e.dragHandleUsageInstructions,d=e.autoScroll,p=t.useRef(null),f=li(e),g=l((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(f.current)}),[f]),v=function(e){var r=a((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=t.useRef(null);return t.useEffect((function(){var e=document.createElement("div");return n.current=e,e.id=r,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),s(e.style,ri),ti().appendChild(e),function(){setTimeout((function(){var t=ti();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[r]),l((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(r),m=function(e){var r=e.contextId,n=e.text,i=oi("hidden-text",{separator:"-"}),o=a((function(){return"rbd-hidden-text-"+(e={contextId:r,uniqueId:i}).contextId+"-"+e.uniqueId;var e}),[i,r]);return t.useEffect((function(){var e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",ti().appendChild(e),function(){var t=ti();t.contains(e)&&t.removeChild(e)}}),[o,n]),o}({contextId:r,text:c}),b=Jn(r,u),h=l((function(e){Mi(p).dispatch(e)}),[]),y=a((function(){return S({publishWhileDragging:wr,updateDroppableScroll:Cr,updateDroppableIsEnabled:Sr,updateDroppableIsCombineEnabled:Pr,collectionStarting:Er},h)}),[h]),x=function(){var e=a(Zn,[]);return t.useEffect((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),I=a((function(){return mn(x,y)}),[x,y]),D=a((function(){return kn(s({scrollWindow:hn,scrollDroppable:I.scrollDroppable},S({move:Or},h),{enabled:!1!==d}))}),[d,I.scrollDroppable,h]),w=Qn(r),E=a((function(){return un({announce:v,autoScroller:D,dimensionMarshal:I,focusMarshal:w,getResponders:g,styleMarshal:b})}),[v,D,I,w,g,b]);p.current=E;var C=l((function(){var e=Mi(p);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),P=l((function(){var e=Mi(p).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);i(a((function(){return{isDragging:P,tryAbort:C}}),[P,C]));var O=l((function(e){return bn(Mi(p).getState(),e)}),[]),A=l((function(){return ir(Mi(p).getState())}),[]),R=a((function(){return{marshal:I,focus:w,contextId:r,canLift:O,isMovementAllowed:A,dragHandleUsageInstructionsId:m,registry:x,autoScroll:d}}),[r,I,m,w,O,A,x,d]);return Ti({contextId:r,store:E,registry:x,customSensors:o,enableDefaultSensors:!1!==e.enableDefaultSensors}),t.useEffect((function(){return C}),[C]),n.createElement(ai.Provider,{value:R},n.createElement(Y,{context:ei,store:E},e.children))}var Gi=0;var _i=function(e){return function(t){return e===t}},Fi=_i("scroll"),ji=_i("auto"),ki=function(e,t){return t(e.overflowX)||t(e.overflowY)},Wi=function e(t){return null==t?null:t===document.body?null:t===document.documentElement?null:function(e){var t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return ki(r,Fi)||ki(r,ji)}(t)?t:e(t.parentElement)},Ui=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Hi=function(e){return{closestScrollable:Wi(e),isFixedOnPage:function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))}(e)}},qi=function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,u=e.shouldClipSubject,c=n.closestScrollable,s=function(e,t){var r=Ze(e);if(!t)return r;if(e!==t)return r;var n=r.paddingBox.top-t.scrollTop,i=r.paddingBox.left-t.scrollLeft,o=n+t.scrollHeight,a=i+t.scrollWidth,l=Ve({top:n,right:a,bottom:o,left:i},r.border);return Ye({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})}(t,c),d=Ke(s,i),p=function(){if(!c)return null;var e=Ze(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:Ke(e,i),scroll:Ui(c),scrollSize:t,shouldClipSubject:u}}();return function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,l=e.page,u=e.closest,c=function(){if(!u)return null;var e=u.scrollSize,t=u.client,r=cn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:r,diff:{value:Le,displacement:Le}}}}(),s="vertical"===o?St:Pt;return{descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:s,isEnabled:r,client:a,page:l,frame:c,subject:nt({page:l,withPlaceholder:null,axis:s,frame:c})}}({descriptor:r,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:o,client:s,page:d,closest:p})},Vi={passive:!1},zi={passive:!0},$i=function(e){return e.shouldPublishImmediately?Vi:zi};function Yi(e){var r=t.useContext(e);return r||f(!1),r}var Ji=function(e){return e&&e.env.closestScrollable||null};function Xi(){}var Ki={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Qi=function(e){var t=e.isAnimatingOpenOnMount,r=e.placeholder,n=e.animate,i=function(e){var t=e.isAnimatingOpenOnMount,r=e.placeholder,n=e.animate;return t?Ki:"close"===n?Ki:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}}({isAnimatingOpenOnMount:t,placeholder:r,animate:n});return{display:r.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?kr.placeholder:null}};var Zi=n.memo((function(e){var r=t.useRef(null),i=l((function(){r.current&&(clearTimeout(r.current),r.current=null)}),[]),o=e.animate,a=e.onTransitionEnd,u=e.onClose,c=e.contextId,s=t.useState("open"===e.animate),d=s[0],p=s[1];t.useEffect((function(){return d?"open"!==o?(i(),p(!1),Xi):r.current?Xi:(r.current=setTimeout((function(){r.current=null,p(!1)})),i):Xi}),[o,d,i]);var f=l((function(e){"height"===e.propertyName&&(a(),"close"===o&&u())}),[o,u,a]),g=Qi({isAnimatingOpenOnMount:d,animate:e.animate,placeholder:e.placeholder});return n.createElement(e.placeholder.tagName,{style:g,"data-rbd-placeholder-context-id":c,onTransitionEnd:f,ref:e.innerRef})})),eo=n.createContext(null),to=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return u(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(n.PureComponent),ro=5e3,no=4500,io=function(e,t){return t?kr.drop(t.duration):e?kr.snap:kr.fluid},oo=function(e,t){return e?t?_r.drop:_r.combining:null};function ao(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,r=e.offset,n=e.combineWith,i=e.dropping,o=Boolean(n),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),l=Boolean(i),u=l?Hr(r,o):Ur(r);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:io(a,i),transform:u,opacity:oo(o,l),zIndex:l?no:ro,pointerEvents:"none"}}(e):{transform:Ur((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function lo(e){var r=oi("draggable"),n=e.descriptor,i=e.registry,o=e.getDraggableRef,u=e.canDragInteractiveElements,c=e.shouldRespectForcePress,s=e.isEnabled,d=a((function(){return{canDragInteractiveElements:u,shouldRespectForcePress:c,isEnabled:s}}),[u,s,c]),p=l((function(e){var t=o();return t||f(!1),function(e,t,r){void 0===r&&(r=Le);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=Qe(i,n),a=Ke(o,r);return{descriptor:e,placeholder:{client:o,tagName:t.tagName.toLowerCase(),display:n.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}(n,t,e)}),[n,o]),g=a((function(){return{uniqueId:r,descriptor:n,options:d,getDimension:p}}),[n,p,d,r]),v=t.useRef(g),m=t.useRef(!0);zn((function(){return i.draggable.register(v.current),function(){return i.draggable.unregister(v.current)}}),[i.draggable]),zn((function(){if(m.current)m.current=!1;else{var e=v.current;v.current=g,i.draggable.update(g,e)}}),[g,i.draggable])}function uo(e){e.preventDefault()}var co=function(e,t){return e===t},so=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null};function po(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var fo={mapped:{type:"SECONDARY",offset:Le,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:po(null)}};var go=Me((function(){var e,t,r,n=(e=at((function(e,t){return{x:e,y:t}})),t=at((function(e,t,r,n,i){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null}})),r=at((function(e,r,n,i,o,a,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:l,snapshot:t(r,i,o,a,null)}}})),function(n,i){if(n.isDragging){if(n.critical.draggable.id!==i.draggableId)return null;var o=n.current.client.offset,a=n.dimensions.draggables[i.draggableId],l=rr(n.impact),u=(s=n.impact).at&&"COMBINE"===s.at.type?s.at.combine.draggableId:null,c=n.forceShouldAnimate;return r(e(o.x,o.y),n.movementMode,a,i.isClone,l,u,c)}var s;if("DROP_ANIMATING"===n.phase){var d=n.completed;if(d.result.draggableId!==i.draggableId)return null;var p=i.isClone,f=n.dimensions.draggables[i.draggableId],g=d.result,v=g.mode,m=so(g),b=function(e){return e.combine?e.combine.draggableId:null}(g),h={duration:n.dropDuration,curve:Gr,moveTo:n.newHomeClientOffset,opacity:b?_r.drop:null,scale:b?Fr.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:f,dropping:h,draggingOver:m,combineWith:b,mode:v,forceShouldAnimate:null,snapshot:t(v,p,m,b,h)}}}return null}),i=function(){var e=at((function(e,t){return{x:e,y:t}})),t=at(po),r=at((function(e,r,n){return void 0===r&&(r=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:t(r)}}})),n=function(e){return e?r(Le,e,!0):null},i=function(t,i,o,a){var l=o.displaced.visible[t],u=Boolean(a.inVirtualList&&a.effected[t]),c=bt(o),s=c&&c.draggableId===t?i:null;if(!l){if(!u)return n(s);if(o.displaced.invisible[t])return null;var d=je(a.displacedBy.point),p=e(d.x,d.y);return r(p,s,!0)}if(u)return n(s);var f=o.displacedBy.point,g=e(f.x,f.y);return r(g,s,l.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var r=e.completed;return r.result.draggableId===t.draggableId?null:i(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return function(e,t){return n(e,t)||i(e,t)||fo}}),{dropAnimationFinished:Lr},null,{context:ei,pure:!0,areStatePropsEqual:co})((function(e){var r=t.useRef(null),n=l((function(e){r.current=e}),[]),i=l((function(){return r.current}),[]),o=Yi(ai),u=o.contextId,c=o.dragHandleUsageInstructionsId,s=o.registry,d=Yi(eo),p=d.type,f=d.droppableId,g=a((function(){return{id:e.draggableId,index:e.index,type:p,droppableId:f}}),[e.draggableId,e.index,p,f]),v=e.children,m=e.draggableId,b=e.isEnabled,h=e.shouldRespectForcePress,y=e.canDragInteractiveElements,x=e.isClone,I=e.mapped,D=e.dropAnimationFinished;x||lo(a((function(){return{descriptor:g,registry:s,getDraggableRef:i,canDragInteractiveElements:y,shouldRespectForcePress:h,isEnabled:b}}),[g,s,i,y,h,b]));var w=a((function(){return b?{tabIndex:0,role:"button","aria-describedby":c,"data-rbd-drag-handle-draggable-id":m,"data-rbd-drag-handle-context-id":u,draggable:!1,onDragStart:uo}:null}),[u,c,m,b]),E=l((function(e){"DRAGGING"===I.type&&I.dropping&&"transform"===e.propertyName&&D()}),[D,I]),C=a((function(){var e=ao(I),t="DRAGGING"===I.type&&I.dropping?E:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":u,"data-rbd-draggable-id":m,style:e,onTransitionEnd:t},dragHandleProps:w}}),[u,w,m,I,E,n]),S=a((function(){return{draggableId:g.id,type:g.type,source:{index:g.index,droppableId:g.droppableId}}}),[g.droppableId,g.id,g.index,g.type]);return v(C,I.snapshot,S)}));function vo(e){return Yi(eo).isUsingCloneFor!==e.draggableId||e.isClone?n.createElement(go,e):null}var mo=function(e,t){return e===t.droppable.type},bo=function(e,t){return t.draggables[e.draggable.id]};var ho={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||f(!1),document.body}},yo=Me((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=s({},e,{shouldAnimatePlaceholder:!1}),r=at((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),n=at((function(n,i,o,a,l,u){var c=l.descriptor.id;if(l.descriptor.droppableId===n){var s=u?{render:u,dragging:r(l.descriptor)}:null,d={isDraggingOver:o,draggingOverWith:o?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:s}}if(!i)return t;if(!a)return e;var p={isDraggingOver:o,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(r,i){var o=i.droppableId,a=i.type,l=!i.isDropDisabled,u=i.renderClone;if(r.isDragging){var c=r.critical;if(!mo(a,c))return t;var s=bo(c,r.dimensions),d=rr(r.impact)===o;return n(o,l,d,d,s,u)}if("DROP_ANIMATING"===r.phase){var p=r.completed;if(!mo(a,p.critical))return t;var f=bo(p.critical,r.dimensions);return n(o,l,so(p.result)===o,rr(p.impact)===o,f,u)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){var g=r.completed;if(!mo(a,g.critical))return t;var v=rr(g.impact)===o,m=Boolean(g.impact.at&&"COMBINE"===g.impact.at.type),b=g.critical.droppable.id===o;return v?m?e:t:b?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:ei,pure:!0,areStatePropsEqual:co})((function(e){var r=t.useContext(ai);r||f(!1);var o=r.contextId,u=r.isMovementAllowed,c=t.useRef(null),s=t.useRef(null),d=e.children,p=e.droppableId,g=e.type,v=e.mode,m=e.direction,b=e.ignoreContainerClipping,h=e.isDropDisabled,y=e.isCombineEnabled,x=e.snapshot,I=e.useClone,D=e.updateViewportMaxScroll,w=e.getContainerForClone,E=l((function(){return c.current}),[]),C=l((function(e){c.current=e}),[]),S=(l((function(){return s.current}),[]),l((function(e){s.current=e}),[])),P=l((function(){u()&&D({maxScroll:dn()})}),[u,D]);!function(e){var r=t.useRef(null),n=Yi(ai),i=oi("droppable"),o=n.registry,u=n.marshal,c=n.autoScroll,s=li(e),d=a((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),p=t.useRef(d),g=a((function(){return at((function(e,t){r.current||f(!1);var n={x:e,y:t};u.updateDroppableScroll(d.id,n)}))}),[d.id,u]),v=l((function(){var e=r.current;return e&&e.env.closestScrollable?Ui(e.env.closestScrollable):Le}),[]),m=l((function(){var e=v();g(e.x,e.y)}),[v,g]),b=a((function(){return Yr(m)}),[m]),h=l((function(){var e=r.current,t=Ji(e);e&&t||f(!1),e.scrollOptions.shouldPublishImmediately?m():b()}),[b,m]),y=l((function(e,t){r.current&&f(!1);var i=s.current,o=i.getDroppableRef();o||f(!1);var a=Hi(o),l={ref:o,descriptor:d,env:a,scrollOptions:t};r.current=l;var u=qi({ref:o,descriptor:d,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),p=a.closestScrollable;return p&&c&&(p.setAttribute(qn.contextId,n.contextId),p.addEventListener("scroll",h,$i(l.scrollOptions))),u}),[n.contextId,d,h,s]),x=l((function(){var e=r.current,t=Ji(e);return e&&t||f(!1),Ui(t)}),[]),I=l((function(){var e=r.current;e||f(!1);var t=Ji(e);r.current=null,t&&(b.cancel(),t.removeAttribute(qn.contextId),t.removeEventListener("scroll",h,$i(e.scrollOptions)))}),[h,b]),D=l((function(e){var t=r.current;t||f(!1);var n=Ji(t);n||f(!1),c&&(n.scrollTop+=e.y,n.scrollLeft+=e.x)}),[]),w=a((function(){return{getDimensionAndWatchScroll:y,getScrollWhileDragging:x,dragStopped:I,scroll:D}}),[I,y,x,D]),E=a((function(){return{uniqueId:i,descriptor:d,callbacks:w}}),[w,d,i]);zn((function(){return p.current=E.descriptor,o.droppable.register(E),function(){r.current&&I(),o.droppable.unregister(E)}}),[w,d,I,E,u,o.droppable]),zn((function(){r.current&&u.updateDroppableIsEnabled(p.current.id,!e.isDropDisabled)}),[e.isDropDisabled,u]),zn((function(){r.current&&u.updateDroppableIsCombineEnabled(p.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,u])}({droppableId:p,type:g,mode:v,direction:m,isDropDisabled:h,isCombineEnabled:y,ignoreContainerClipping:b,getDroppableRef:E});var O=n.createElement(to,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,i=e.animate;return n.createElement(Zi,{placeholder:r,onClose:t,innerRef:S,animate:i,contextId:o,onTransitionEnd:P})})),A=a((function(){return{innerRef:C,placeholder:O,droppableProps:{"data-rbd-droppable-id":p,"data-rbd-droppable-context-id":o}}}),[o,p,O,C]),R=I?I.dragging.draggableId:null,N=a((function(){return{droppableId:p,type:g,isUsingCloneFor:R}}),[p,R,g]);return n.createElement(eo.Provider,{value:N},d(A,x),function(){if(!I)return null;var e=I.dragging,t=I.render,r=n.createElement(vo,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(r,n){return t(r,n,e)}));return i.createPortal(r,w())}())}));yo.defaultProps=ho,e.DragDropContext=function(e){var t=a((function(){return""+Gi++}),[]),r=e.liftInstruction||y.liftInstruction;return n.createElement(g,null,(function(i){return n.createElement(Li,{nonce:e.nonce,contextId:t,setCallbacks:i,liftInstruction:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScroll:e.autoScroll},e.children)}))},e.Draggable=function(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),i=Boolean(e.shouldRespectForcePress);return n.createElement(vo,s({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:i}))},e.Droppable=yo,e.resetServerContext=function(){Gi=0},e.useKeyboardSensor=yi,e.useMouseSensor=vi,e.useTouchSensor=Ii,Object.defineProperty(e,"__esModule",{value:!0})}));
  