1/*! For license information please see react-beautiful-dnd.3a3b74d3.chunk.js.LICENSE.txt */ 2"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2380],{26068:(e,r,t)=>{t.d(r,{c:()=>a});var n=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function i(e,r){return e===r||!(!n(e)||!n(r))}function o(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(!i(e[t],r[t]))return!1;return!0}const a=function(e,r){var t;void 0===r&&(r=o);var n,i=[],a=!1;return function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return a&&t===this&&r(o,i)||(n=e.apply(this,o),a=!0,t=this,i=o),n}}},85488:(e,r,t)=>{t.r(r),t.d(r,{DragDropContext:()=>Di,Draggable:()=>to,Droppable:()=>ao,resetServerContext:()=>yi});var n=t(11504);function i(e,r){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},i(e,r)}function o(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,i(e,r)}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},a.apply(null,arguments)}var l=t(30900),u=n.createContext(null);var c=function(e){e()},s=function(){return c};var d={notify:function(){},get:function(){return[]}};function p(e,r){var t,n=d;function i(){a.onStateChange&&a.onStateChange()}function o(){t||(t=r?r.addNestedSub(i):e.subscribe(i),n=function(){var e=s(),r=null,t=null;return{clear:function(){r=null,t=null},notify:function(){e(function(){for(var e=r;e;)e.callback(),e=e.next})},get:function(){for(var e=[],t=r;t;)e.push(t),t=t.next;return e},subscribe:function(e){var n=!0,i=t={callback:e,next:null,prev:t};return i.prev?i.prev.next=i:r=i,function(){n&&null!==r&&(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:r=i.next)}}}}())}var a={addNestedSub:function(e){return o(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(t)},trySubscribe:o,tryUnsubscribe:function(){t&&(t(),t=void 0,n.clear(),n=d)},getListeners:function(){return n}};return a}var f="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?n.useLayoutEffect:n.useEffect;const g=function(e){var r=e.store,t=e.context,i=e.children,o=(0,n.useMemo)(function(){var e=p(r);return{store:r,subscription:e}},[r]),a=(0,n.useMemo)(function(){return r.getState()},[r]);f(function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==r.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[o,a]);var l=t||u;return n.createElement(l.Provider,{value:o},i)};function v(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}var m=t(84792),b=t.n(m),h=t(41212),y=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],D=["reactReduxForwardedRef"],x=[],I=[null,null];function E(e,r){var t=e[1];return[r.payload,t+1]}function w(e,r,t){f(function(){return e.apply(void 0,r)},t)}function C(e,r,t,n,i,o,a){e.current=n,r.current=i,t.current=!1,o.current&&(o.current=null,a())}function A(e,r,t,n,i,o,a,l,u,c){if(e){var s=!1,d=null,p=function(){if(!s){var e,t,p=r.getState();try{e=n(p,i.current)}catch(f){t=f,d=f}t||(d=null),e===o.current?a.current||u():(o.current=e,l.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:t}}))}};t.onStateChange=p,t.trySubscribe(),p();return function(){if(s=!0,t.tryUnsubscribe(),t.onStateChange=null,d)throw d}}}var S=function(){return[null,0]};function P(e,r){void 0===r&&(r={});var t=r,i=t.getDisplayName,o=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,l=t.methodName,c=void 0===l?"connectAdvanced":l,s=t.renderCountProp,d=void 0===s?void 0:s,f=t.shouldHandleStateChanges,g=void 0===f||f,m=t.storeKey,P=void 0===m?"store":m,N=(t.withRef,t.forwardRef),B=void 0!==N&&N,R=t.context,O=void 0===R?u:R,T=v(t,y),L=O;return function(r){var t=r.displayName||r.name||"Component",i=o(t),l=a({},T,{getDisplayName:o,methodName:c,renderCountProp:d,shouldHandleStateChanges:g,storeKey:P,displayName:i,wrappedComponentName:t,WrappedComponent:r}),u=T.pure;var s=u?n.useMemo:function(e){return e()};function f(t){var i=(0,n.useMemo)(function(){var e=t.reactReduxForwardedRef,r=v(t,D);return[t.context,e,r]},[t]),o=i[0],u=i[1],c=i[2],d=(0,n.useMemo)(function(){return o&&o.Consumer&&(0,h.isContextConsumer)(n.createElement(o.Consumer,null))?o:L},[o,L]),f=(0,n.useContext)(d),m=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch);Boolean(f)&&Boolean(f.store);var b=m?t.store:f.store,y=(0,n.useMemo)(function(){return function(r){return e(r.dispatch,l)}(b)},[b]),P=(0,n.useMemo)(function(){if(!g)return I;var e=p(b,m?null:f.subscription),r=e.notifyNestedSubs.bind(e);return[e,r]},[b,m,f]),N=P[0],B=P[1],R=(0,n.useMemo)(function(){return m?f:a({},f,{subscription:N})},[m,f,N]),O=(0,n.useReducer)(E,x,S),T=O[0][0],G=O[1];if(T&&T.error)throw T.error;var M=(0,n.useRef)(),_=(0,n.useRef)(c),F=(0,n.useRef)(),k=(0,n.useRef)(!1),W=s(function(){return F.current&&c===_.current?F.
2current:y(b.getState(),c)},[b,T,c]);w(C,[_,M,k,c,W,F,B]),w(A,[g,b,N,y,_,M,k,F,B,G],[b,N,y]);var U=(0,n.useMemo)(function(){return n.createElement(r,a({},W,{ref:u}))},[u,r,W]);return(0,n.useMemo)(function(){return g?n.createElement(d.Provider,{value:R},U):U},[d,U,R])}var m=u?n.memo(f):f;if(m.WrappedComponent=r,m.displayName=f.displayName=i,B){var y=n.forwardRef(function(e,r){return n.createElement(m,a({},e,{reactReduxForwardedRef:r}))});return y.displayName=i,y.WrappedComponent=r,b()(y,r)}return b()(m,r)}}function N(e,r){return e===r?0!==e||0!==r||1/e===1/r:e!==e&&r!==r}function B(e,r){if(N(e,r))return!0;if("object"!==typeof e||null===e||"object"!==typeof r||null===r)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(!Object.prototype.hasOwnProperty.call(r,t[i])||!N(e[t[i]],r[t[i]]))return!1;return!0}function R(e){return function(r,t){var n=e(r,t);function i(){return n}return i.dependsOnOwnProps=!1,i}}function O(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function T(e,r){return function(r,t){t.displayName;var n=function(e,r){return n.dependsOnOwnProps?n.mapToProps(e,r):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(r,t){n.mapToProps=e,n.dependsOnOwnProps=O(e);var i=n(r,t);return"function"===typeof i&&(n.mapToProps=i,n.dependsOnOwnProps=O(i),i=n(r,t)),i},n}}const L=[function(e){return"function"===typeof e?T(e):void 0},function(e){return e?void 0:R(function(e){return{dispatch:e}})},function(e){return e&&"object"===typeof e?R(function(r){return function(e,r){var t={},n=function(n){var i=e[n];"function"===typeof i&&(t[n]=function(){return r(i.apply(void 0,arguments))})};for(var i in e)n(i);return t}(e,r)}):void 0}];const G=[function(e){return"function"===typeof e?T(e):void 0},function(e){return e?void 0:R(function(){return{}})}];function M(e,r,t){return a({},t,e,r)}const _=[function(e){return"function"===typeof e?function(e){return function(r,t){t.displayName;var n,i=t.pure,o=t.areMergedPropsEqual,a=!1;return function(r,t,l){var u=e(r,t,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 M}}];var F=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function k(e,r,t,n){return function(i,o){return t(e(i,o),r(n,o),o)}}function W(e,r,t,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=!d(f,a),v=!s(i,o,f,a);return o=i,a=f,g&&v?(l=e(o,a),r.dependsOnOwnProps&&(u=r(n,a)),c=t(l,u,a)):g?(e.dependsOnOwnProps&&(l=e(o,a)),r.dependsOnOwnProps&&(u=r(n,a)),c=t(l,u,a)):v?function(){var r=e(o,a),n=!p(r,l);return l=r,n&&(c=t(l,u,a)),c}():c}return function(i,s){return f?g(i,s):(l=e(o=i,a=s),u=r(n,a),c=t(l,u,a),f=!0,c)}}function U(e,r){var t=r.initMapStateToProps,n=r.initMapDispatchToProps,i=r.initMergeProps,o=v(r,F),a=t(e,o),l=n(e,o),u=i(e,o);return(o.pure?W:k)(a,l,u,e,o)}var H=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function j(e,r,t){for(var n=r.length-1;n>=0;n--){var i=r[n](e);if(i)return i}return function(r,n){throw new Error("Invalid value of type "+typeof e+" for "+t+" argument when connecting component "+n.wrappedComponentName+".")}}function q(e,r){return e===r}function V(e){var r=void 0===e?{}:e,t=r.connectHOC,n=void 0===t?P:t,i=r.mapStateToPropsFactories,o=void 0===i?G:i,l=r.mapDispatchToPropsFactories,u=void 0===l?L:l,c=r.mergePropsFactories,s=void 0===c?_:c,d=r.selectorFactory,p=void 0===d?U:d;return function(e,r,t,i){void 0===i&&(i={});var l=i,c=l.pure,d=void 0===c||c,f=l.areStatesEqual,g=void 0===f?q:f,m=l.areOwnPropsEqual,b=void 0===m?B:m,h=l.areStatePropsEqual,y=void 0===h?B:h,D=l.areMergedPropsEqual,x=void 0===D?B:D,I=v(l,H),E=j(e,o,"mapStateToProps"),w=j(r,u,"mapDispatchToProps"),C=j(t,s,"mergeProps");return n(p,a({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:w,initMergeProps:C,pure:d,areStatesEqual:g,areOwnPropsEqual:b,areStatePropsEqual:y,areMergedPropsEqual:x},I))}}const z=V();var Y,J=t(97104);
2function X(e,r){var t=(0,n.useState)(function(){return{inputs:r,result:e()}})[0],i=(0,n.useRef)(!0),o=(0,n.useRef)(t),a=i.current||Boolean(r&&o.current.inputs&&function(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}(r,o.current.inputs))?o.current:{inputs:r,result:e()};return(0,n.useEffect)(function(){i.current=!1,o.current=a},[a]),a.result}Y=J.unstable_batchedUpdates,c=Y;var K=X,$=function(e,r){return X(function(){return e},r)},Q=t(94812),Z=function(e){var r=e.top,t=e.right,n=e.bottom,i=e.left;return{top:r,right:t,bottom:n,left:i,width:t-i,height:n-r,x:i,y:r,center:{x:(t+i)/2,y:(n+r)/2}}},ee=function(e,r){return{top:e.top-r.top,left:e.left-r.left,bottom:e.bottom+r.bottom,right:e.right+r.right}},re=function(e,r){return{top:e.top+r.top,left:e.left+r.left,bottom:e.bottom-r.bottom,right:e.right-r.right}},te={top:0,right:0,bottom:0,left:0},ne=function(e){var r=e.borderBox,t=e.margin,n=void 0===t?te:t,i=e.border,o=void 0===i?te:i,a=e.padding,l=void 0===a?te:a,u=Z(ee(r,n)),c=Z(re(r,o)),s=Z(re(c,l));return{marginBox:u,borderBox:Z(r),paddingBox:c,contentBox:s,margin:n,border:o,padding:l}},ie=function(e){var r=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var t=Number(r);return isNaN(t)&&(0,Q.c)(!1),t},oe=function(e,r){var t,n,i=e.borderBox,o=e.border,a=e.margin,l=e.padding,u=(n=r,{top:(t=i).top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x});return ne({borderBox:u,border:o,margin:a,padding:l})},ae=function(e,r){return void 0===r&&(r={x:window.pageXOffset,y:window.pageYOffset}),oe(e,r)},le=function(e,r){var t={top:ie(r.marginTop),right:ie(r.marginRight),bottom:ie(r.marginBottom),left:ie(r.marginLeft)},n={top:ie(r.paddingTop),right:ie(r.paddingRight),bottom:ie(r.paddingBottom),left:ie(r.paddingLeft)},i={top:ie(r.borderTopWidth),right:ie(r.borderRightWidth),bottom:ie(r.borderBottomWidth),left:ie(r.borderLeftWidth)};return ne({borderBox:e,margin:t,padding:n,border:i})},ue=function(e){var r=e.getBoundingClientRect(),t=window.getComputedStyle(e);return le(r,t)},ce=t(26068);const se=function(e){var r=[],t=null,n=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];r=i,t||(t=requestAnimationFrame(function(){t=null,e.apply(void 0,r)}))};return n.cancel=function(){t&&(cancelAnimationFrame(t),t=null)},n};function de(e,r){}de.bind(null,"warn"),de.bind(null,"error");function pe(){}function fe(e,r,t){var n=r.map(function(r){var n=function(e,r){return a({},e,{},r)}(t,r.options);return e.addEventListener(r.eventName,r.fn,n),function(){e.removeEventListener(r.eventName,r.fn,n)}});return function(){n.forEach(function(e){e()})}}var ge=!0,ve="Invariant failed";function me(e){this.message=e}function be(e,r){if(!e)throw new me(ge?ve:ve+": "+(r||""))}me.prototype.toString=function(){return this.message};var he=function(e){function r(){for(var r,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(r=e.call.apply(e,[this].concat(n))||this).callbacks=null,r.unbind=pe,r.onWindowError=function(e){var t=r.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof me&&e.preventDefault()},r.getCallbacks=function(){if(!r.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return r.callbacks},r.setCallbacks=function(e){r.callbacks=e},r}o(r,e);var t=r.prototype;return t.componentDidMount=function(){this.unbind=fe(window,[{eventName:"error",fn:this.onWindowError}])},t.componentWillUnmount=function(){this.unbind()},t.componentDidCatch=function(e){if(!(e instanceof me))throw e;this.setState({})},t.render=function(){return this.props.children(this.setCallbacks)},r}(n.Component),ye=function(e){return e+1},De=function(e,r){var t=e.droppableId===r.droppableId,n=ye(e.index),i=ye(r.index);return t?"\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 "+r.droppableId+"\n in position "+i+"\n "},xe=function(e,r,t){return r.droppableId===t.droppableId?"\n The item "+e+"\n has been combined with "+t.draggableId:"\n The item "+e+"\n in list "+r.droppableId+"\n has been combined with "+t.draggableId+"\n in list "+t.droppableId+"\n "},Ie=function(e){return"\n The item has returned to its starting position\n of "+ye(e.index)+"\n"},Ee={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 "+ye(e.source.index)+"\n"},onDragUpdate:function(e){var r=e.destination;if(r)return De(e.source,r);var t=e.combine;return t?xe(e.draggableId,e.source,t):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Ie(e.source)+"\n ";var r=e.destination,t=e.combine;return r?"\n You have dropped the item.\n "+De(e.source,r)+"\n ":t?"\n You have dropped the item.\n "+xe(e.draggableId,e.source,t)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Ie(e.source)+"\n "}},we={x:0,y:0},Ce=function(e,r){return{x:e.x+r.x,y:e.y+r.y}},Ae=function(e,r){return{x:e.x-r.x,y:e.y-r.y}},Se=function(e,r){return e.x===r.x&&e.y===r.y},Pe=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Ne=function(e,r,t){var n;return void 0===t&&(t=0),(n={})[e]=r,n["x"===e?"y":"x"]=t,n},Be=function(e,r){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))},Re=function(e,r){return Math.min.apply(Math,r.map(function(r){return Be(e,r)}))},Oe=function(e){return function(r){return{x:e(r.x),y:e(r.y)}}},Te=function(e,r){return{top:e.top+r.y,left:e.left+r.x,bottom:e.bottom+r.y,right:e.right+r.x}},Le=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}]},Ge=function(e,r){return r&&r.shouldClipSubject?function(e,r){var t=Z({top:Math.max(r.top,e.top),right:Math.min(r.right,e.right),bottom:Math.min(r.bottom,e.bottom),left:Math.max(r.left,e.left)});return t.width<=0||t.height<=0?null:t}(r.pageMarginBox,e):Z(e)},Me=function(e){var r=e.page,t=e.withPlaceholder,n=e.axis,i=e.frame,o=function(e,r){return r?Te(e,r.scroll.diff.displacement):e}(r.marginBox,i),l=function(e,r,t){var n;return t&&t.increasedBy?a({},e,((n={})[r.end]=e[r.end]+t.increasedBy[r.line],n)):e}(o,n,t);return{page:r,withPlaceholder:t,active:Ge(l,i)}},_e=function(e,r){e.frame||be(!1);var t=e.frame,n=Ae(r,t.scroll.initial),i=Pe(n),o=a({},t,{scroll:{initial:t.scroll.initial,current:r,diff:{value:n,displacement:i},max:t.scroll.max}});return a({},e,{frame:o,subject:Me({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o})})};function Fe(e){return Object.values?Object.values(e):Object.keys(e).map(function(r){return e[r]})}function ke(e,r){if(e.findIndex)return e.findIndex(r);for(var t=0;t<e.length;t++)if(r(e[t]))return t;return-1}function We(e,r){if(e.find)return e.find(r);var t=ke(e,r);return-1!==t?e[t]:void 0}function Ue(e){return Array.prototype.slice.call(e)}var He=(0,ce.c)(function(e){return e.reduce(function(e,r){return e[r.descriptor.id]=r,e},{})}),je=(0,ce.c)(function(e){return e.reduce(function(e,r){return e[r.descriptor.id]=r,e},{})}),qe=(0,ce.c)(function(e){return Fe(e)}),Ve=(0,ce.c)(function(e){return Fe(e)}),ze=(0,ce.c)(function(e,r){var t=Ve(r).filter(function(r){return e===r.descriptor.droppableId}).sort(function(e,r){return e.descriptor.index-r.descriptor.index});return t});function Ye(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Je(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Xe=(0,ce.c)(function(e,r){return r.filter(function(r){return r.descriptor.id!==e.descriptor.id})}),Ke=function(e,r){return e.descriptor.droppableId===r.descriptor.id},$e={point:we,value:0},Qe={invisible:{},visible:{},all:[]},Ze={displaced:Qe,displacedBy:$e,at:null},er=function(e,r){return function(t){return e<=t&&t<=r}},rr=function(e){var r=er(e.top,e.bottom),t=er(e.left,e.right);return function(n){if(r(n.top)&&r(n.bottom)&&t(n.left)&&t(n.right))return!0;var i=r(n.top)||r(n.bottom),o=t(n.left)||t(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)}},tr=function(e){var r=er(e.top,e.bottom),t=er(e.left,e.right);return function(e){return r(e.top)&&r(e.bottom)&&t(e.left)&&t(e.right)}},nr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ir={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},or=function(e){var r=e.target,t=e.destination,n=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,a=i?function(e,r){var t=r.frame?r.frame.scroll.diff.displacement:we;return Te(e,t)}(r,t):r;return function(e,r,t){return!!r.subject.active&&t(r.subject.active)(e)}(a,t,o)&&function(e,r,t){return t(r)(e)}(a,n,o)},ar=function(e){return or(a({},e,{isVisibleThroughFrameFn:rr}))},lr=function(e){return or(a({},e,{isVisibleThroughFrameFn:tr}))};function ur(e){var r=e.afterDragging,t=e.destination,n=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return r.reduce(function(e,r){var l=function(e,r){var t=e.page.marginBox,n={top:r.point.y,right:0,bottom:0,left:r.point.x};return Z(ee(t,n))}(r,n),u=r.descriptor.id;if(e.all.push(u),!ar({target:l,destination:t,viewport:i,withDroppableDisplacement:!0}))return e.invisible[r.descriptor.id]=!0,e;var c=function(e,r,t){if("boolean"===typeof t)return t;if(!r)return!0;var n=r.invisible,i=r.visible;if(n[e])return!1;var o=i[e];return!o||o.shouldAnimate}(u,a,o),s={draggableId:u,shouldAnimate:c};return e.visible[u]=s,e},{all:[],visible:{}
2,invisible:{}})}function cr(e){var r=e.insideDestination,t=e.inHomeList,n=e.displacedBy,i=e.destination,o=function(e,r){if(!e.length)return 0;var t=e[e.length-1].descriptor.index;return r.inHomeList?t:t+1}(r,{inHomeList:t});return{displaced:Qe,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function sr(e){var r=e.draggable,t=e.insideDestination,n=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,l=e.index,u=e.forceShouldAnimate,c=Ke(r,n);if(null==l)return cr({insideDestination:t,inHomeList:c,displacedBy:o,destination:n});var s=We(t,function(e){return e.descriptor.index===l});if(!s)return cr({insideDestination:t,inHomeList:c,displacedBy:o,destination:n});var d=Xe(r,t),p=t.indexOf(s);return{displaced:ur({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 dr(e,r){return Boolean(r.effected[e])}var pr=function(e){var r=e.isMovingForward,t=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||be(!1),"REORDER"===s.type){var d=function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.insideDestination,i=e.location;if(!n.length)return null;var o=i.index,a=r?o+1:o-1,l=n[0].descriptor.index,u=n[n.length-1].descriptor.index;return a<l||a>(t?u:u+1)?null:a}({isMovingForward:r,isInHomeList:t,location:s.destination,insideDestination:a});return null==d?null:sr({draggable:n,insideDestination:a,destination:o,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:d})}var p=function(e){var r=e.isMovingForward,t=e.destination,n=e.draggables,i=e.combine,o=e.afterCritical;if(!t.isCombineEnabled)return null;var a=i.draggableId,l=n[a].descriptor.index;return dr(a,o)?r?l:l-1:r?l+1:l}({isMovingForward:r,destination:o,displaced:l.displaced,draggables:i,combine:s.combine,afterCritical:c});return null==p?null:sr({draggable:n,insideDestination:a,destination:o,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:p})},fr=function(e){var r=e.afterCritical,t=e.impact,n=e.draggables,i=Je(t);i||be(!1);var o=i.draggableId,a=n[o].page.borderBox.center,l=function(e){var r=e.displaced,t=e.afterCritical,n=e.combineWith,i=e.displacedBy,o=Boolean(r.visible[n]||r.invisible[n]);return dr(n,t)?o?we:Pe(i.point):o?i.point:we}({displaced:t.displaced,afterCritical:r,combineWith:o,displacedBy:t.displacedBy});return Ce(a,l)},gr=function(e,r){return r.margin[e.start]+r.borderBox[e.size]/2},vr=function(e,r,t){return r[e.crossAxisStart]+t.margin[e.crossAxisStart]+t.borderBox[e.crossAxisSize]/2},mr=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return Ne(r.line,t.marginBox[r.end]+gr(r,n),vr(r,t.marginBox,n))},br=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return Ne(r.line,t.marginBox[r.start]-function(e,r){return r.margin[e.end]+r.borderBox[e.size]/2}(r,n),vr(r,t.marginBox,n))},hr=function(e){var r=e.impact,t=e.draggable,n=e.draggables,i=e.droppable,o=e.afterCritical,a=ze(i.descriptor.id,n),l=t.page,u=i.axis;if(!a.length)return function(e){var r=e.axis,t=e.moveInto,n=e.isMoving;return Ne(r.line,t.contentBox[r.start]+gr(r,n),vr(r,t.contentBox,n))}({axis:u,moveInto:i.page,isMoving:l});var c=r.displaced,s=r.displacedBy,d=c.all[0];if(d){var p=n[d];if(dr(d,o))return br({axis:u,moveRelativeTo:p.page,isMoving:l});var f=oe(p.page,s.point);return br({axis:u,moveRelativeTo:f,isMoving:l})}var g=a[a.length-1];if(g.descriptor.id===t.descriptor.id)return l.borderBox.center;if(dr(g.descriptor.id,o)){var v=oe(g.page,Pe(o.displacedBy.point));return mr({axis:u,moveRelativeTo:v,isMoving:l})}return mr({axis:u,moveRelativeTo:g.page,isMoving:l})},yr=function(e,r){var t=e.frame;return t?Ce(r,t.scroll.diff.displacement):r},Dr=function(e){var r=function(e){var r=e.impact,t=e.draggable,n=e.droppable,i=e.draggables,o=e.afterCritical,a=t.page.borderBox.center,l=r.at;return n&&l?"REORDER"===l.type?hr({impact:r,draggable:t,draggables:i,droppable:n,afterCritical:o}):fr({impact:r,draggables:i,afterCritical:o}):a}(e),t=e.droppable;return t?yr(t,r):r},xr=function(e,r){var t=Ae(r,e.scroll.initial),n=Pe(t);return{frame:Z({top:r.y,bottom:r.y+e.frame.height,left:r.x,right:r.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:r,diff:{value:t,displacement:n}}}};function Ir(e,r){return e.map(function(e){return r[e]})}var Er=function(e){var r=e.pageBorderBoxCenter,t=e.draggable,n=function(e,r){return Ce(e.scroll.diff.displacement,r)}(e.viewport,r),i=Ae(n,t.page.borderBox.center);return Ce(t.client.borderBox.center,i)},wr=function(e){var r=e.draggable,t=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,l=e.onlyOnMainAxis,u=void 0!==l&&l,c=Ae(n,r.page.borderBox.center),s={target:Te(r.page.borderBox,c),destination:t,withDroppableDisplacement:o,viewport:i};return u?function(e){return or(a({},e,{isVisibleThroughFrameFn:(r=e.destination.axis,function(e){var t=er(e.top,e.bottom),n=er(e.left,e.right);return function(e){return r===nr?t(e.top)&&t(e.bottom):n(e.left)&&n(e.right)}})}));var r}(s):lr(s)},Cr=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,i=e.draggables,o=e.previousImpact,l=e.viewport,u=e.previousPageBorderBoxCenter,c=e.previousClientSelection,s=e.afterCritical;if(!n.isEnabled)return null;var d=ze(n.descriptor.id,i),p=Ke(t,n),f=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,i=e.insideDestination,o=e.previousImpact;
2if(!n.isCombineEnabled)return null;if(!Ye(o))return null;function l(e){var r={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return a({},o,{at:r})}var u=o.displaced.all,c=u.length?u[0]:null;if(r)return c?l(c):null;var s=Xe(t,i);if(!c)return s.length?l(s[s.length-1].descriptor.id):null;var d=ke(s,function(e){return e.descriptor.id===c});-1===d&&be(!1);var p=d-1;return p<0?null:l(s[p].descriptor.id)}({isMovingForward:r,draggable:t,destination:n,insideDestination:d,previousImpact:o})||pr({isMovingForward:r,isInHomeList:p,draggable:t,draggables:i,destination:n,insideDestination:d,previousImpact:o,viewport:l,afterCritical:s});if(!f)return null;var g=Dr({impact:f,draggable:t,droppable:n,draggables:i,afterCritical:s});if(wr({draggable:t,destination:n,newPageBorderBoxCenter:g,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Er({pageBorderBoxCenter:g,draggable:t,viewport:l}),impact:f,scrollJumpRequest:null};var v=Ae(g,u),m=function(e){var r=e.impact,t=e.viewport,n=e.destination,i=e.draggables,o=e.maxScrollChange,l=xr(t,Ce(t.scroll.current,o)),u=n.frame?_e(n,Ce(n.frame.scroll.current,o)):n,c=r.displaced,s=ur({afterDragging:Ir(c.all,i),destination:n,displacedBy:r.displacedBy,viewport:l.frame,last:c,forceShouldAnimate:!1}),d=ur({afterDragging:Ir(c.all,i),destination:u,displacedBy:r.displacedBy,viewport:t.frame,last:c,forceShouldAnimate:!1}),p={},f={},g=[c,s,d];return c.all.forEach(function(e){var r=function(e,r){for(var t=0;t<r.length;t++){var n=r[t].visible[e];if(n)return n}return null}(e,g);r?f[e]=r:p[e]=!0}),a({},r,{displaced:{all:c.all,invisible:p,visible:f}})}({impact:f,viewport:l,destination:n,draggables:i,maxScrollChange:v});return{clientSelection:c,impact:m,scrollJumpRequest:v}},Ar=function(e){var r=e.subject.active;return r||be(!1),r},Sr=function(e,r){var t=e.page.borderBox.center;return dr(e.descriptor.id,r)?Ae(t,r.displacedBy.point):t},Pr=function(e,r){var t=e.page.borderBox;return dr(e.descriptor.id,r)?Te(t,Pe(r.displacedBy.point)):t},Nr=(0,ce.c)(function(e,r){var t=r[e.line];return{value:t,point:Ne(e.line,t)}}),Br=function(e,r){return a({},e,{scroll:a({},e.scroll,{max:r})})},Rr=function(e,r,t){var n=e.frame;Ke(r,e)&&be(!1),e.subject.withPlaceholder&&be(!1);var i=Nr(e.axis,r.displaceBy).point,o=function(e,r,t){var n=e.axis;if("virtual"===e.descriptor.mode)return Ne(n.line,r[n.line]);var i=e.subject.page.contentBox[n.size],o=ze(e.descriptor.id,t).reduce(function(e,r){return e+r.client.marginBox[n.size]},0)+r[n.line]-i;return o<=0?null:Ne(n.line,o)}(e,i,t),l={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n)return a({},e,{subject:Me({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:e.frame})});var u=o?Ce(n.scroll.max,o):n.scroll.max,c=Br(n,u);return a({},e,{subject:Me({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:c}),frame:c})},Or=function(e){var r=e.isMovingForward,t=e.previousPageBorderBoxCenter,n=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,l=e.viewport,u=e.afterCritical,c=function(e){var r=e.isMovingForward,t=e.pageBorderBoxCenter,n=e.source,i=e.droppables,o=e.viewport,a=n.subject.active;if(!a)return null;var l=n.axis,u=er(a[l.start],a[l.end]),c=qe(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 rr(o.frame)(Ar(e))}).filter(function(e){var t=Ar(e);return r?a[l.crossAxisEnd]<t[l.crossAxisEnd]:t[l.crossAxisStart]<a[l.crossAxisStart]}).filter(function(e){var r=Ar(e),t=er(r[l.start],r[l.end]);return u(r[l.start])||u(r[l.end])||t(a[l.start])||t(a[l.end])}).sort(function(e,t){var n=Ar(e)[l.crossAxisStart],i=Ar(t)[l.crossAxisStart];return r?n-i:i-n}).filter(function(e,r,t){return Ar(e)[l.crossAxisStart]===Ar(t[0])[l.crossAxisStart]});if(!c.length)return null;if(1===c.length)return c[0];var s=c.filter(function(e){return er(Ar(e)[l.start],Ar(e)[l.end])(t[l.line])});return 1===s.length?s[0]:s.length>1?s.sort(function(e,r){return Ar(e)[l.start]-Ar(r)[l.start]})[0]:c.sort(function(e,r){var n=Re(t,Le(Ar(e))),i=Re(t,Le(Ar(r)));return n!==i?n-i:Ar(e)[l.start]-Ar(r)[l.start]})[0]}({isMovingForward:r,pageBorderBoxCenter:t,source:i,droppables:a,viewport:l});if(!c)return null;var s=ze(c.descriptor.id,o),d=function(e){var r=e.pageBorderBoxCenter,t=e.viewport,n=e.destination,i=e.insideDestination,o=e.afterCritical,a=i.filter(function(e){return lr({target:Pr(e,o),destination:n,viewport:t.frame,withDroppableDisplacement:!0})}).sort(function(e,t){var i=Be(r,yr(n,Sr(e,o))),a=Be(r,yr(n,Sr(t,o)));return i<a?-1:a<i?1:e.descriptor.index-t.descriptor.index});return a[0]||null}({pageBorderBoxCenter:t,viewport:l,destination:c,insideDestination:s,afterCritical:u}),p=function(e){var r=e.previousPageBorderBoxCenter,t=e.moveRelativeTo,n=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,l=e.viewport,u=e.afterCritical;if(!t){if(n.length)return null;
2var c={displaced:Qe,displacedBy:$e,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},s=Dr({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:u}),d=Ke(i,a)?a:Rr(a,i,o);return wr({draggable:i,destination:d,newPageBorderBoxCenter:s,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var p=Boolean(r[a.axis.line]<=t.page.borderBox.center[a.axis.line]),f=function(){var e=t.descriptor.index;return t.descriptor.id===i.descriptor.id||p?e:e+1}(),g=Nr(a.axis,i.displaceBy);return sr({draggable:i,insideDestination:n,destination:a,viewport:l,displacedBy:g,last:Qe,index:f})}({previousPageBorderBoxCenter:t,destination:c,draggable:n,draggables:o,moveRelativeTo:d,insideDestination:s,viewport:l,afterCritical:u});if(!p)return null;var f=Dr({impact:p,draggable:n,droppable:c,draggables:o,afterCritical:u});return{clientSelection:Er({pageBorderBoxCenter:f,draggable:n,viewport:l}),impact:p,scrollJumpRequest:null}},Tr=function(e){var r=e.at;return r?"REORDER"===r.type?r.destination.droppableId:r.combine.droppableId:null},Lr=function(e){var r=e.state,t=e.type,n=function(e,r){var t=Tr(e);return t?r[t]:null}(r.impact,r.dimensions.droppables),i=Boolean(n),o=r.dimensions.droppables[r.critical.droppable.id],a=n||o,l=a.axis.direction,u="vertical"===l&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===l&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(u&&!i)return null;var c="MOVE_DOWN"===t||"MOVE_RIGHT"===t,s=r.dimensions.draggables[r.critical.draggable.id],d=r.current.page.borderBoxCenter,p=r.dimensions,f=p.draggables,g=p.droppables;return u?Cr({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:s,destination:a,draggables:f,viewport:r.viewport,previousClientSelection:r.current.client.selection,previousImpact:r.impact,afterCritical:r.afterCritical}):Or({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:s,isOver:a,draggables:f,droppables:g,viewport:r.viewport,afterCritical:r.afterCritical})};function Gr(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Mr(e){var r=er(e.top,e.bottom),t=er(e.left,e.right);return function(e){return r(e.y)&&t(e.x)}}function _r(e){var r=e.pageBorderBox,t=e.draggable,n=e.droppables,i=qe(n).filter(function(e){if(!e.isEnabled)return!1;var t,n,i=e.subject.active;if(!i)return!1;if(n=i,!((t=r).left<n.right&&t.right>n.left&&t.top<n.bottom&&t.bottom>n.top))return!1;if(Mr(i)(r.center))return!0;var o=e.axis,a=i.center[o.crossAxisLine],l=r[o.crossAxisStart],u=r[o.crossAxisEnd],c=er(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 r=e.pageBorderBox,t=e.draggable,n=e.candidates,i=t.page.borderBox.center,o=n.map(function(e){var t=e.axis,n=Ne(e.axis.line,r.center[t.line],e.page.borderBox.center[t.crossAxisLine]);return{id:e.descriptor.id,distance:Be(i,n)}}).sort(function(e,r){return r.distance-e.distance});return o[0]?o[0].id:null}({pageBorderBox:r,draggable:t,candidates:i}):null}var Fr=function(e,r){return Z(Te(e,r))};function kr(e){var r=e.displaced,t=e.id;return Boolean(r.visible[t]||r.invisible[t])}var Wr=function(e){var r=e.pageOffset,t=e.draggable,n=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,l=e.afterCritical,u=Fr(t.page.borderBox,r),c=_r({pageBorderBox:u,draggable:t,droppables:i});if(!c)return Ze;var s=i[c],d=ze(s.descriptor.id,n),p=function(e,r){var t=e.frame;return t?Fr(r,t.scroll.diff.value):r}(s,u);return function(e){var r=e.draggable,t=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var l=i.axis,u=Nr(i.axis,r.displaceBy),c=u.value,s=t[l.start],d=t[l.end],p=We(Xe(r,o),function(e){var r=e.descriptor.id,t=e.page.borderBox,i=t[l.size]/4,o=dr(r,a),u=kr({displaced:n.displaced,id:r});return o?u?d>t[l.start]+i&&d<t[l.end]-i:s>t[l.start]-c+i&&s<t[l.end]-c-i:u?d>t[l.start]+c+i&&d<t[l.end]+c-i:s>t[l.start]+i&&s<t[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:t,previousImpact:o,destination:s,insideDestination:d,afterCritical:l})||function(e){var r=e.pageBorderBoxWithDroppableScroll,t=e.draggable,n=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,l=e.afterCritical,u=n.axis,c=Nr(n.axis,t.displaceBy),s=c.value,d=r[u.start],p=r[u.end],f=function(e){var r=e.draggable,t=e.closest,n=e.inHomeList;return t?n&&t.descriptor.index>r.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:We(Xe(t,i),function(e){var r=e.descriptor.id,t=e.page.borderBox.center[u.line],n=dr(r,l),i=kr({displaced:o,id:r});return n?i?p<=t:d<t-s:i?p<=t+s:d<t}),inHomeList:Ke(t,n)});return sr({draggable:t,insideDestination:i,destination:n,viewport:
2a,last:o,displacedBy:c,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:t,destination:s,insideDestination:d,last:o.displaced,viewport:a,afterCritical:l})},Ur=function(e,r){var t;return a({},e,((t={})[r.descriptor.id]=r,t))},Hr=function(e){var r=e.previousImpact,t=e.impact,n=e.droppables,i=Tr(r),o=Tr(t);if(!i)return n;if(i===o)return n;var l=n[i];if(!l.subject.withPlaceholder)return n;var u=function(e){var r=e.subject.withPlaceholder;r||be(!1);var t=e.frame;if(!t)return a({},e,{subject:Me({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var n=r.oldFrameMaxScroll;n||be(!1);var i=Br(t,n);return a({},e,{subject:Me({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null}),frame:i})}(l);return Ur(n,u)},jr=function(e){var r=e.state,t=e.clientSelection,n=e.dimensions,i=e.viewport,o=e.impact,l=e.scrollJumpRequest,u=i||r.viewport,c=n||r.dimensions,s=t||r.current.client.selection,d=Ae(s,r.initial.client.selection),p={offset:d,selection:s,borderBoxCenter:Ce(r.initial.client.borderBoxCenter,d)},f={selection:Ce(p.selection,u.scroll.current),borderBoxCenter:Ce(p.borderBoxCenter,u.scroll.current),offset:Ce(p.offset,u.scroll.diff.value)},g={client:p,page:f};if("COLLECTING"===r.phase)return a({phase:"COLLECTING"},r,{dimensions:c,viewport:u,current:g});var v=c.draggables[r.critical.draggable.id],m=o||Wr({pageOffset:f.offset,draggable:v,draggables:c.draggables,droppables:c.droppables,previousImpact:r.impact,viewport:u,afterCritical:r.afterCritical}),b=function(e){var r=e.draggable,t=e.draggables,n=e.droppables,i=e.previousImpact,o=e.impact,a=Hr({previousImpact:i,impact:o,droppables:n}),l=Tr(o);if(!l)return a;var u=n[l];if(Ke(r,u))return a;if(u.subject.withPlaceholder)return a;var c=Rr(u,r,t);return Ur(a,c)}({draggable:v,impact:m,previousImpact:r.impact,draggables:c.draggables,droppables:c.droppables});return a({},r,{current:g,dimensions:{draggables:c.draggables,droppables:b},impact:m,viewport:u,scrollJumpRequest:l||null,forceShouldAnimate:!l&&null})};var qr=function(e){var r=e.impact,t=e.viewport,n=e.draggables,i=e.destination,o=e.forceShouldAnimate,l=r.displaced,u=function(e,r){return e.map(function(e){return r[e]})}(l.all,n);return a({},r,{displaced:ur({afterDragging:u,destination:i,displacedBy:r.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:l})})},Vr=function(e){var r=e.impact,t=e.draggable,n=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,l=Dr({impact:r,draggable:t,draggables:i,droppable:n,afterCritical:a});return Er({pageBorderBoxCenter:l,draggable:t,viewport:o})},zr=function(e){var r=e.state,t=e.dimensions,n=e.viewport;"SNAP"!==r.movementMode&&be(!1);var i=r.impact,o=n||r.viewport,a=t||r.dimensions,l=a.draggables,u=a.droppables,c=l[r.critical.draggable.id],s=Tr(i);s||be(!1);var d=u[s],p=qr({impact:i,viewport:o,destination:d,draggables:l}),f=Vr({impact:p,draggable:c,droppable:d,draggables:l,viewport:o,afterCritical:r.afterCritical});return jr({impact:p,clientSelection:f,state:r,dimensions:a,viewport:o})},Yr=function(e){var r=e.draggable,t=e.home,n=e.draggables,i=e.viewport,o=Nr(t.axis,r.displaceBy),a=ze(t.descriptor.id,n),l=a.indexOf(r);-1===l&&be(!1);var u,c=a.slice(l+1),s=c.reduce(function(e,r){return e[r.descriptor.id]=!0,e},{}),d={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:o,effected:s};return{impact:{displaced:ur({afterDragging:c,destination:t,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(u=r.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:d}},Jr=function(e){0},Xr=function(e){0},Kr=function(e){var r=e.additions,t=e.updatedDroppables,n=e.viewport,i=n.scroll.diff.value;return r.map(function(e){var r=e.descriptor.droppableId,o=function(e){var r=e.frame;return r||be(!1),r}(t[r]),l=o.scroll.diff.value,u=function(e){var r=e.draggable,t=e.offset,n=e.initialWindowScroll,i=oe(r.client,t),o=ae(i,n);return a({},r,{placeholder:a({},r.placeholder,{client:i}),client:i,page:o})}({draggable:e,offset:Ce(i,l),initialWindowScroll:n.scroll.initial});return u})},$r=function(e){return"SNAP"===e.movementMode},Qr=function(e,r,t){var n=function(e,r){return{draggables:e.draggables,droppables:Ur(e.droppables,r)}}(e.dimensions,r);return!$r(e)||t?jr({state:e,dimensions:n}):zr({state:e,dimensions:n})};function Zr(e){return e.isDragging&&"SNAP"===e.movementMode?a({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var et={phase:"IDLE",completed:null,shouldFlush:!1},rt=function(e,r){if(void 0===e&&(e=et),"FLUSH"===r.type)return a({},et,{shouldFlush:!0});if("INITIAL_PUBLISH"===r.type){"IDLE"!==e.phase&&be(!1);var t=r.payload,n=t.critical,i=t.clientSelection,o=t.viewport,l=t.dimensions,u=t.movementMode,c=l.draggables[n.draggable.id],s=l.droppables[n.droppable.
2id],d={selection:i,borderBoxCenter:c.client.borderBox.center,offset:we},p={client:d,page:{selection:Ce(d.selection,o.scroll.initial),borderBoxCenter:Ce(d.selection,o.scroll.initial),offset:Ce(d.selection,o.scroll.diff.value)}},f=qe(l.droppables).every(function(e){return!e.isFixedOnPage}),g=Yr({draggable:c,home:s,draggables:l.draggables,viewport:o}),v=g.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:u,dimensions:l,initial:p,current:p,isWindowScrollAllowed:f,impact:v,afterCritical:g.afterCritical,onLiftImpact:v,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===r.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&be(!1),a({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===r.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&be(!1),function(e){var r=e.state,t=e.published;Jr();var n=t.modified.map(function(e){var t=r.dimensions.droppables[e.droppableId];return _e(t,e.scroll)}),i=a({},r.dimensions.droppables,{},He(n)),o=je(Kr({additions:t.additions,updatedDroppables:i,viewport:r.viewport})),l=a({},r.dimensions.draggables,{},o);t.removals.forEach(function(e){delete l[e]});var u={droppables:i,draggables:l},c=Tr(r.impact),s=c?u.droppables[c]:null,d=u.draggables[r.critical.draggable.id],p=u.droppables[r.critical.droppable.id],f=Yr({draggable:d,home:p,draggables:l,viewport:r.viewport}),g=f.impact,v=f.afterCritical,m=s&&s.isCombineEnabled?r.impact:g,b=Wr({pageOffset:r.current.page.offset,draggable:u.draggables[r.critical.draggable.id],draggables:u.draggables,droppables:u.droppables,previousImpact:m,viewport:r.viewport,afterCritical:v});Xr();var h=a({phase:"DRAGGING"},r,{phase:"DRAGGING",impact:b,onLiftImpact:g,dimensions:u,afterCritical:v,forceShouldAnimate:!1});return"COLLECTING"===r.phase?h:a({phase:"DROP_PENDING"},h,{phase:"DROP_PENDING",reason:r.reason,isWaiting:!1})}({state:e,published:r.payload});if("MOVE"===r.type){if("DROP_PENDING"===e.phase)return e;Gr(e)||be(!1);var m=r.payload.client;return Se(m,e.current.client.selection)?e:jr({state:e,clientSelection:m,impact:$r(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===r.type){if("DROP_PENDING"===e.phase)return Zr(e);if("COLLECTING"===e.phase)return Zr(e);Gr(e)||be(!1);var b=r.payload,h=b.id,y=b.newScroll,D=e.dimensions.droppables[h];if(!D)return e;var x=_e(D,y);return Qr(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;Gr(e)||be(!1);var I=r.payload,E=I.id,w=I.isEnabled,C=e.dimensions.droppables[E];C||be(!1),C.isEnabled===w&&be(!1);var A=a({},C,{isEnabled:w});return Qr(e,A,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;Gr(e)||be(!1);var S=r.payload,P=S.id,N=S.isCombineEnabled,B=e.dimensions.droppables[P];B||be(!1),B.isCombineEnabled===N&&be(!1);var R=a({},B,{isCombineEnabled:N});return Qr(e,R,!0)}if("MOVE_BY_WINDOW_SCROLL"===r.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Gr(e)||be(!1),e.isWindowScrollAllowed||be(!1);var O=r.payload.newScroll;if(Se(e.viewport.scroll.current,O))return Zr(e);var T=xr(e.viewport,O);return $r(e)?zr({state:e,viewport:T}):jr({state:e,viewport:T})}if("UPDATE_VIEWPORT_MAX_SCROLL"===r.type){if(!Gr(e))return e;var L=r.payload.maxScroll;if(Se(L,e.viewport.scroll.max))return e;var G=a({},e.viewport,{scroll:a({},e.viewport.scroll,{max:L})});return a({phase:"DRAGGING"},e,{viewport:G})}if("MOVE_UP"===r.type||"MOVE_DOWN"===r.type||"MOVE_LEFT"===r.type||"MOVE_RIGHT"===r.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&be(!1);var M=Lr({state:e,type:r.type});return M?jr({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===r.type){var _=r.payload.reason;return"COLLECTING"!==e.phase&&be(!1),a({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:_})}if("DROP_ANIMATE"===r.type){var F=r.payload,k=F.completed,W=F.dropDuration,U=F.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&be(!1),{phase:"DROP_ANIMATING",completed:k,dropDuration:W,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===r.type?{phase:"IDLE",completed:r.payload.completed,shouldFlush:!1}:e},tt=function(e){return{type:"LIFT",payload:e}},nt=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},it=function(){return{type:"COLLECTION_STARTING",payload:null}},ot=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},at=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},lt=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},ut=function(e){return{type:"MOVE",payload:e}},ct=function(){return{type:"MOVE_UP",payload:null}},st=function(){return{type:"MOVE_DOWN",payload:null}},dt=function(){return{type:"MOVE_RIGHT",payload:null}},pt=function(){return{type:"MOVE_LEFT",payload:null}},ft=function(){return{type:"FLUSH",payload:null}},gt=function(e){return{type:"DROP_COMPLETE",payload:e}},vt=function(e){return{type:"DROP",payload:e}},mt=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var bt="cubic-bezier(.2,1,.1,1)",ht={drop:0,combining:.7},yt={drop:.75},Dt=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",xt={fluid:"opacity "+Dt,snap:"transform "+Dt+", opacity "+Dt,drop:function(e){var r=e+"s "+bt;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+Dt,placeholder:"height "+Dt+", width "+Dt+", margin "+Dt},It=function(e){return Se(e,we)?null:"translate("+e.x+"px, "+e.y+"px)"},Et=It,wt=function(e,r){var t=It(e);return t?r?t+" scale("+yt.drop+")":t:null},Ct=.33,At=.55,St=At-Ct,Pt=function(e){var r=e.getState,t=e.dispatch;return function(e){return function(n){if("DROP"===n.type){var i=r(),o=n.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&be(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&be(!1);var l=i.critical,u=i.dimensions,c=u.draggables[i.critical.draggable.id],s=function(e){var r=e.draggables,t=e.reason,n=e.lastImpact,i=e.home,o=e.viewport,l=e.onLiftImpact;return n.at&&"DROP"===t?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:a({},n,{displaced:Qe}),didDropInsideDroppable:!0}:{impact:qr({draggables:r,impact:l,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.
2id],viewport:i.viewport,draggables:i.dimensions.draggables}),d=s.impact,p=s.didDropInsideDroppable,f=p?Ye(d):null,g=p?Je(d):null,v={index:l.draggable.index,droppableId:l.droppable.id},m={draggableId:c.descriptor.id,type:c.descriptor.type,source:v,reason:o,mode:i.movementMode,destination:f,combine:g},b=function(e){var r=e.impact,t=e.draggable,n=e.dimensions,i=e.viewport,o=e.afterCritical,a=n.draggables,l=n.droppables,u=Tr(r),c=u?l[u]:null,s=l[t.descriptor.droppableId],d=Vr({impact:r,draggable:t,draggables:a,afterCritical:o,droppable:c||s,viewport:i});return Ae(d,t.client.borderBox.center)}({impact:d,draggable:c,dimensions:u,viewport:i.viewport,afterCritical:i.afterCritical}),h={critical:i.critical,afterCritical:i.afterCritical,result:m,impact:d};if(!Se(i.current.client.offset,b)||Boolean(m.combine)){var y=function(e){var r=e.current,t=e.destination,n=e.reason,i=Be(r,t);if(i<=0)return Ct;if(i>=1500)return At;var o=Ct+St*(i/1500);return Number(("CANCEL"===n?.6*o:o).toFixed(2))}({current:i.current.client.offset,destination:b,reason:o});t(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:b,dropDuration:y,completed:h}))}else t(gt({completed:h}))}}else t(function(e){return{type:"DROP_PENDING",payload:e}}({reason:o}))}else e(n)}}},Nt=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Bt(e){var r=e.onWindowScroll;var t=se(function(){r(Nt())}),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(r){r.target!==window&&r.target!==window.document||e()}}}(t),i=pe;function o(){return i!==pe}return{start:function(){o()&&be(!1),i=fe(window,[n])},stop:function(){o()||be(!1),t.cancel(),i(),i=pe},isActive:o}}var Rt=function(e){var r=Bt({onWindowScroll:function(r){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:r}})}});return function(e){return function(t){r.isActive()||"INITIAL_PUBLISH"!==t.type||r.start(),r.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(t)&&r.stop(),e(t)}}},Ot=function(){var e=[];return{add:function(r){var t=setTimeout(function(){return function(r){var t=ke(e,function(e){return e.timerId===r});-1===t&&be(!1),e.splice(t,1)[0].callback()}(t)}),n={timerId:t,callback:r};e.push(n)},flush:function(){if(e.length){var r=[].concat(e);e.length=0,r.forEach(function(e){clearTimeout(e.timerId),e.callback()})}}}},Tt=function(e,r){Jr(),r(),Xr()},Lt=function(e,r){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:r}},Gt=function(e,r,t,n){if(e){var i=function(e){var r=!1,t=!1,n=setTimeout(function(){t=!0}),i=function(i){r||t||(r=!0,e(i),clearTimeout(n))};return i.wasCalled=function(){return r},i}(t);e(r,{announce:i}),i.wasCalled()||t(n(r))}else t(n(r))},Mt=function(e,r){var t=function(e,r){var t=Ot(),n=null,i=function(t){n||be(!1),n=null,Tt(0,function(){return Gt(e().onDragEnd,t,r,Ee.onDragEnd)})};return{beforeCapture:function(r,t){n&&be(!1),Tt(0,function(){var n=e().onBeforeCapture;n&&n({draggableId:r,mode:t})})},beforeStart:function(r,t){n&&be(!1),Tt(0,function(){var n=e().onBeforeDragStart;n&&n(Lt(r,t))})},start:function(i,o){n&&be(!1);var a=Lt(i,o);n={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},t.add(function(){Tt(0,function(){return Gt(e().onDragStart,a,r,Ee.onDragStart)})})},update:function(i,o){var l=Ye(o),u=Je(o);n||be(!1);var c=!function(e,r){if(e===r)return!0;var t=e.draggable.id===r.draggable.id&&e.draggable.droppableId===r.draggable.droppableId&&e.draggable.type===r.draggable.type&&e.draggable.index===r.draggable.index,n=e.droppable.id===r.droppable.id&&e.droppable.type===r.droppable.type;return t&&n}(i,n.lastCritical);c&&(n.lastCritical=i);var s,d,p=(d=l,!(null==(s=n.lastLocation)&&null==d||null!=s&&null!=d&&s.droppableId===d.droppableId&&s.index===d.index));p&&(n.lastLocation=l);var f=!function(e,r){return null==e&&null==r||null!=e&&null!=r&&e.draggableId===r.draggableId&&e.droppableId===r.droppableId}(n.lastCombine,u);if(f&&(n.lastCombine=u),c||p||f){var g=a({},Lt(i,n.mode),{combine:u,destination:l});t.add(function(){Tt(0,function(){return Gt(e().onDragUpdate,g,r,Ee.onDragUpdate)})})}},flush:function(){n||be(!1),t.flush()},drop:i,abort:function(){if(n){var e=a({},Lt(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,r);return function(e){return function(r){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var i=n.payload.critical;return t.beforeStart(i,n.payload.movementMode),r(n),void t.start(i,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var o=n.payload.completed.result;return t.flush(),r(n),void t.drop(o)}if(r(n),"FLUSH"!==n.type){var a=e.getState();"DRAGGING"===a.phase&&t.update(a.critical,a.impact)}else t.abort()}else t.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},_t=function(e){return function(r){return function(t){if("DROP_ANIMATION_FINISHED"===t.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&be(!1),e.dispatch(gt({completed:n.completed}))}else r(t)}}},Ft=function(e){var r=null,t=null;return function(n){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(t&&(cancelAnimationFrame(t),t=null),r&&(r(),r=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})}};t=requestAnimationFrame(function(){t=null,r=fe(window,[o])})}}}},kt=function(e){return function(r){return function(t){if(r(t),"PUBLISH_WHILE_DRAGGING"===t.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(vt({reason:n.reason})))}}}},Wt=l.compose,Ut=function(e){var r,t=e.dimensionMarshal,n=e.focusMarshal,i=e.styleMarshal,o=e.getResponders,a=e.announce,u=e.autoScroller;
2return(0,l.createStore)(rt,Wt((0,l.applyMiddleware)((r=i,function(){return function(e){return function(t){"INITIAL_PUBLISH"===t.type&&r.dragging(),"DROP_ANIMATE"===t.type&&r.dropping(t.payload.completed.result.reason),"FLUSH"!==t.type&&"DROP_COMPLETE"!==t.type||r.resting(),e(t)}}}),function(e){return function(){return function(r){return function(t){"DROP_COMPLETE"!==t.type&&"FLUSH"!==t.type&&"DROP_ANIMATE"!==t.type||e.stopPublishing(),r(t)}}}}(t),function(e){return function(r){var t=r.getState,n=r.dispatch;return function(r){return function(i){if("LIFT"===i.type){var o=i.payload,a=o.id,l=o.clientSelection,u=o.movementMode,c=t();"DROP_ANIMATING"===c.phase&&n(gt({completed:c.completed})),"IDLE"!==t().phase&&be(!1),n(ft()),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,f=d.dimensions,g=d.viewport;n({type:"INITIAL_PUBLISH",payload:{critical:p,dimensions:f,clientSelection:l,movementMode:u,viewport:g}})}else r(i)}}}}(t),Pt,_t,Ft,kt,function(e){return function(r){return function(t){return function(n){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n))return e.stop(),void t(n);if("INITIAL_PUBLISH"===n.type){t(n);var i=r.getState();return"DRAGGING"!==i.phase&&be(!1),void e.start(i)}t(n),e.scroll(r.getState())}}}}(u),Rt,function(e){var r=!1;return function(){return function(t){return function(n){if("INITIAL_PUBLISH"===n.type)return r=!0,e.tryRecordFocus(n.payload.critical.draggable.id),t(n),void e.tryRestoreFocusRecorded();if(t(n),r){if("FLUSH"===n.type)return r=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){r=!1;var i=n.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(n),Mt(o,a))))};var Ht=function(e){var r=e.scrollHeight,t=e.scrollWidth,n=e.height,i=e.width,o=Ae({x:t,y:r},{x:i,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},jt=function(){var e=document.documentElement;return e||be(!1),e},qt=function(){var e=jt();return Ht({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Vt=function(e){var r=e.critical,t=e.scrollOptions,n=e.registry;Jr();var i=function(){var e=Nt(),r=qt(),t=e.y,n=e.x,i=jt(),o=i.clientWidth,a=i.clientHeight;return{frame:Z({top:t,left:n,right:n+o,bottom:t+a}),scroll:{initial:e,current:e,max:r,diff:{value:we,displacement:we}}}}(),o=i.scroll.current,a=r.droppable,l=n.droppable.getAllByType(a.type).map(function(e){return e.callbacks.getDimensionAndWatchScroll(o,t)}),u=n.draggable.getAllByType(r.draggable.type).map(function(e){return e.getDimension(o)}),c={draggables:je(u),droppables:He(l)};return Xr(),{dimensions:c,critical:r,viewport:i}};function zt(e,r,t){return t.descriptor.id!==r.id&&(t.descriptor.type===r.type&&"virtual"===e.droppable.getById(t.descriptor.droppableId).descriptor.mode)}var Yt=function(e,r){var t=null,n=function(e){var r=e.registry,t=e.callbacks,n={additions:{},removals:{},modified:{}},i=null,o=function(){i||(t.collectionStarting(),i=requestAnimationFrame(function(){i=null,Jr();var e=n,o=e.additions,a=e.removals,l=e.modified,u=Object.keys(o).map(function(e){return r.draggable.getById(e).getDimension(we)}).sort(function(e,r){return e.descriptor.index-r.descriptor.index}),c=Object.keys(l).map(function(e){return{droppableId:e,scroll:r.droppable.getById(e).callbacks.getScrollWhileDragging()}}),s={additions:u,removals:Object.keys(a),modified:c};n={additions:{},removals:{},modified:{}},Xr(),t.publish(s)}))};return{add:function(e){var r=e.descriptor.id;n.additions[r]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[r]&&delete n.removals[r],o()},remove:function(e){var r=e.descriptor;n.removals[r.id]=!0,n.modified[r.droppableId]=!0,n.additions[r.id]&&delete n.additions[r.id],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:e}),i=function(r){t||be(!1);var i=t.critical.draggable;"ADDITION"===r.type&&zt(e,i,r.value)&&n.add(r.value),"REMOVAL"===r.type&&zt(e,i,r.value)&&n.remove(r.value)},o={updateDroppableIsEnabled:function(n,i){e.droppable.exists(n)||be(!1),t&&r.updateDroppableIsEnabled({id:n,isEnabled:i})}
2,updateDroppableIsCombineEnabled:function(n,i){t&&(e.droppable.exists(n)||be(!1),r.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:i}))},scrollDroppable:function(r,n){t&&e.droppable.getById(r).callbacks.scroll(n)},updateDroppableScroll:function(n,i){t&&(e.droppable.exists(n)||be(!1),r.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:function(r){t&&be(!1);var n=e.draggable.getById(r.draggableId),o=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:o.descriptor},l=e.subscribe(i);return t={critical:a,unsubscribe:l},Vt({critical:a,registry:e,scrollOptions:r.scrollOptions})},stopPublishing:function(){if(t){n.stop();var r=t.critical.droppable;e.droppable.getAllByType(r.type).forEach(function(e){return e.callbacks.dragStopped()}),t.unsubscribe(),t=null}}};return o},Jt=function(e,r){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==r&&"DROP"===e.completed.result.reason)},Xt=function(e){window.scrollBy(e.x,e.y)},Kt=(0,ce.c)(function(e){return qe(e).filter(function(e){return!!e.isEnabled&&!!e.frame})}),$t=function(e){var r=e.center,t=e.destination,n=e.droppables;if(t){var i=n[t];return i.frame?i:null}var o=function(e,r){var t=We(Kt(r),function(r){return r.frame||be(!1),Mr(r.frame.pageMarginBox)(e)});return t}(r,n);return o},Qt=.25,Zt=.05,en=28,rn=function(e){return Math.pow(e,2)},tn={stopDampeningAt:1200,accelerateAt:360},nn=function(e){var r=e.startOfRange,t=e.endOfRange,n=e.current,i=t-r;return 0===i?0:(n-r)/i},on=tn.accelerateAt,an=tn.stopDampeningAt,ln=function(e){var r=e.distanceToEdge,t=e.thresholds,n=e.dragStartTime,i=e.shouldUseTimeDampening,o=function(e,r){if(e>r.startScrollingFrom)return 0;if(e<=r.maxScrollValueAt)return en;if(e===r.startScrollingFrom)return 1;var t=nn({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),n=en*rn(1-t);return Math.ceil(n)}(r,t);return 0===o?0:i?Math.max(function(e,r){var t=r,n=an,i=Date.now()-t;if(i>=an)return e;if(i<on)return 1;var o=nn({startOfRange:on,endOfRange:n,current:i}),a=e*rn(o);return Math.ceil(a)}(o,n),1):o},un=function(e){var r=e.container,t=e.distanceToEdges,n=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=function(e,r){return{startScrollingFrom:e[r.size]*Qt,maxScrollValueAt:e[r.size]*Zt}}(r,i);return t[i.end]<t[i.start]?ln({distanceToEdge:t[i.end],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o}):-1*ln({distanceToEdge:t[i.start],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o})},cn=Oe(function(e){return 0===e?0:e}),sn=function(e){var r=e.dragStartTime,t=e.container,n=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-t.top,right:t.right-i.x,bottom:t.bottom-i.y,left:i.x-t.left},l=un({container:t,distanceToEdges:a,dragStartTime:r,axis:nr,shouldUseTimeDampening:o}),u=un({container:t,distanceToEdges:a,dragStartTime:r,axis:ir,shouldUseTimeDampening:o}),c=cn({x:u,y:l});if(Se(c,we))return null;var s=function(e){var r=e.container,t=e.subject,n=e.proposedScroll,i=t.height>r.height,o=t.width>r.width;return o||i?o&&i?null:{x:o?0:n.x,y:i?0:n.y}:n}({container:t,subject:n,proposedScroll:c});return s?Se(s,we)?null:s:null},dn=Oe(function(e){return 0===e?0:e>0?1:-1}),pn=function(){var e=function(e,r){return e<0?e:e>r?e-r:0};return function(r){var t=r.current,n=r.max,i=r.change,o=Ce(t,i),a={x:e(o.x,n.x),y:e(o.y,n.y)};return Se(a,we)?null:a}}(),fn=function(e){var r=e.max,t=e.current,n=e.change,i={x:Math.max(t.x,r.x),y:Math.max(t.y,r.y)},o=dn(n),a=pn({max:i,current:t,change:o});return!a||(0!==o.x&&0===a.x||0!==o.y&&0===a.y)},gn=function(e,r){return fn({current:e.scroll.current,max:e.scroll.max,change:r})},vn=function(e,r){var t=e.frame;return!!t&&fn({current:t.scroll.current,max:t.scroll.max,change:r})},mn=function(e){var r=e.state,t=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=r.current.page.borderBoxCenter,l=r.dimensions.draggables[r.critical.draggable.id].page.marginBox;if(r.isWindowScrollAllowed){var u=function(e){var r=e.viewport,t=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=sn({dragStartTime:i,container:r.frame,subject:t,center:n,shouldUseTimeDampening:o});return a&&gn(r,a)?a:null}({dragStartTime:t,viewport:r.viewport,subject:l,center:a,shouldUseTimeDampening:n});if(u)return void i(u)}var c=$t({center:a,destination:Tr(r.impact),droppables:r.dimensions.droppables});if(c){var s=function(e){var r=e.droppable,t=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=r.frame;if(!a)return null;var l=sn({dragStartTime:i,container:a.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:o});return l&&vn(r,l)?l:null}({dragStartTime:t,droppable:c,subject:l,center:a,shouldUseTimeDampening:n});s&&o(c.descriptor.id,s)}},bn=function(e){var r=e.move,t=e.scrollDroppable,n=e.scrollWindow,i=function(e,r){if(!v
2n(e,r))return r;var n=function(e,r){var t=e.frame;return t&&vn(e,r)?pn({current:t.scroll.current,max:t.scroll.max,change:r}):null}(e,r);if(!n)return t(e.descriptor.id,r),null;var i=Ae(r,n);return t(e.descriptor.id,i),Ae(r,i)},o=function(e,r,t){if(!e)return t;if(!gn(r,t))return t;var i=function(e,r){if(!gn(e,r))return null;var t=e.scroll.max,n=e.scroll.current;return pn({current:n,max:t,change:r})}(r,t);if(!i)return n(t),null;var o=Ae(t,i);return n(o),Ae(t,o)};return function(e){var t=e.scrollJumpRequest;if(t){var n=Tr(e.impact);n||be(!1);var a=i(e.dimensions.droppables[n],t);if(a){var l=e.viewport,u=o(e.isWindowScrollAllowed,l,a);u&&function(e,t){var n=Ce(e.current.client.selection,t);r({client:n})}(e,u)}}}},hn=function(e){var r=e.scrollDroppable,t=e.scrollWindow,n=e.move,i=function(e){var r=e.scrollWindow,t=e.scrollDroppable,n=se(r),i=se(t),o=null,a=function(e){o||be(!1);var r=o,t=r.shouldUseTimeDampening,a=r.dragStartTime;mn({state:e,scrollWindow:n,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:t})};return{start:function(e){Jr(),o&&be(!1);var r=Date.now(),t=!1,n=function(){t=!0};mn({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),o={dragStartTime:r,shouldUseTimeDampening:t},Xr(),t&&a(e)},stop:function(){o&&(n.cancel(),i.cancel(),o=null)},scroll:a}}({scrollWindow:t,scrollDroppable:r}),o=bn({move:n,scrollWindow:t,scrollDroppable:r});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}},yn="data-rbd",Dn=function(){var e=yn+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),xn=function(){var e=yn+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),In=function(){var e=yn+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),En={contextId:yn+"-scroll-container-context-id"},wn=function(e,r){return e.map(function(e){var t=e.styles[r];return t?e.selector+" { "+t+" }":""}).join(" ")},Cn=function(e){var r,t=(r=e,function(e){return"["+e+'="'+r+'"]'}),n=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(Dn.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),i=[function(){var e="\n transition: "+xt.outOfTheWay+";\n ";return{selector:t(xn.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),n,{selector:t(In.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:wn(i,"always"),resting:wn(i,"resting"),dragging:wn(i,"dragging"),dropAnimating:wn(i,"dropAnimating"),userCancel:wn(i,"userCancel")}},An="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?n.useLayoutEffect:n.useEffect,Sn=function(){var e=document.querySelector("head");return e||be(!1),e},Pn=function(e){var r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.type="text/css",r};var Nn=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Bn(e){return e instanceof Nn(e).HTMLElement}function Rn(e,r){var t="["+Dn.contextId+'="'+e+'"]',n=Ue(document.querySelectorAll(t));if(!n.length)return null;var i=We(n,function(e){return e.getAttribute(Dn.draggableId)===r});return i&&Bn(i)?i:null}function On(){var e={draggables:{},droppables:{}},r=[];function t(e){r.length&&r.forEach(function(r){return r(e)})}function n(r){return e.draggables[r]||null}function i(r){return e.droppables[r]||null}return{draggable:{register:function(r){e.draggables[r.descriptor.id]=r,t({type:"ADDITION",value:r})},update:function(r,t){var n=e.draggables[t.descriptor.id];n&&n.uniqueId===r.uniqueId&&(delete e.draggables[t.descriptor.id],e.draggables[r.descriptor.id]=r)},unregister:function(r){var i=r.descriptor.id,o=n(i);o&&r.uniqueId===o.uniqueId&&(delete e.draggables[i],t({type:"REMOVAL",value:r}))},getById:function(e){var r=n(e);return r||be(!1),r},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(r){return Fe(e.draggables).filter(function(e){return e.descriptor.type===r})}},droppable:{register:function(r){e.droppables[r.descriptor.id]=r},unregister:function(r){var t=i(r.descriptor.id);t&&r.uniqueId===t.uniqueId&&delete e.droppables[r.descriptor.id]},getById:function(e){var r=i(e);return r||be(!1),r},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(r){return Fe(e.droppables).filter(function(e){return e.descriptor.type===r})}},subscribe:function(e){return r.push(e),function(){var t=r.indexOf(e);-1!==t&&r.splice(t,1)}},clean:function(){e.draggables={},e.droppables={},r.length=0}}}var Tn=n.createContext(null),Ln=function(){var e=document.body;return e||be(!1),e},Gn={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Mn=function(e){return"rbd-announcement-"+e};var _n=0,Fn={separator:"::"};function kn(e,r){return void 0===r&&(r=Fn),K(function(){return""+e+r.separator+_n++},[r.separator,e])}var Wn=n.createContext(null);function Un(e){0}function Hn(e,r){Un()}function jn(e){var r=(0,n.useRef)(e);return(0,n.useEffect)(function(){r.current=e}),r}var qn,Vn=((qn={})[13]=!0,qn[9]=!0,qn),zn=function(e){Vn[e.keyCode]&&e.preventDefault()},Yn=function(){var e="visibilitychange";return"undefined"===typeof document?e:We([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],function(e){return"on"+e in document})||e}();var Jn,Xn={type:"IDLE"};function Kn(e){var r=e.cancel,t=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var r=e.button,t=e.clientX,o=e.clientY;if(0===r){var a={x:t,y:o},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);"PENDING"!==l.type&&be(!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}),t()):r()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),r()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return 27===e.ke
2yCode?(e.preventDefault(),void r()):void zn(e);r()}},{eventName:"resize",fn:r},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&r()}},{eventName:"webkitmouseforcedown",fn:function(e){var t=n();"IDLE"===t.type&&be(!1),t.actions.shouldRespectForcePress()?r():e.preventDefault()}},{eventName:Yn,fn:r}]}function $n(){}var Qn=((Jn={})[34]=!0,Jn[33]=!0,Jn[36]=!0,Jn[35]=!0,Jn);function Zn(e,r){function t(){r(),e.cancel()}return[{eventName:"keydown",fn:function(n){return 27===n.keyCode?(n.preventDefault(),void t()):32===n.keyCode?(n.preventDefault(),r(),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(Qn[n.keyCode]?n.preventDefault():zn(n))}},{eventName:"mousedown",fn:t},{eventName:"mouseup",fn:t},{eventName:"click",fn:t},{eventName:"touchstart",fn:t},{eventName:"resize",fn:t},{eventName:"wheel",fn:t,options:{passive:!0}},{eventName:Yn,fn:t}]}var ei={type:"IDLE"};var ri={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ti(e,r){if(null==r)return!1;if(Boolean(ri[r.tagName.toLowerCase()]))return!0;var t=r.getAttribute("contenteditable");return"true"===t||""===t||r!==e&&ti(e,r.parentElement)}function ni(e,r){var t=r.target;return!!Bn(t)&&ti(e,t)}var ii=function(e){return Z(e.getBoundingClientRect()).center};var oi=function(){var e="matches";return"undefined"===typeof document?e:We([e,"msMatchesSelector","webkitMatchesSelector"],function(e){return e in Element.prototype})||e}();function ai(e,r){return null==e?null:e[oi](r)?e:ai(e.parentElement,r)}function li(e,r){return e.closest?e.closest(r):ai(e,r)}function ui(e,r){var t,n=r.target;if(!((t=n)instanceof Nn(t).Element))return null;var i=function(e){return"["+Dn.contextId+'="'+e+'"]'}(e),o=li(n,i);return o&&Bn(o)?o:null}function ci(e){e.preventDefault()}function si(e){var r=e.expected,t=e.phase,n=e.isLockActive;e.shouldWarn;return!!n()&&r===t}function di(e){var r=e.lockAPI,t=e.store,n=e.registry,i=e.draggableId;if(r.isClaimed())return!1;var o=n.draggable.findById(i);return!!o&&(!!o.options.isEnabled&&!!Jt(t.getState(),i))}function pi(e){var r=e.lockAPI,t=e.contextId,n=e.store,i=e.registry,o=e.draggableId,l=e.forceSensorStop,u=e.sourceEvent;if(!di({lockAPI:r,store:n,registry:i,draggableId:o}))return null;var c=i.draggable.getById(o),s=function(e,r){var t="["+xn.contextId+'="'+e+'"]',n=We(Ue(document.querySelectorAll(t)),function(e){return e.getAttribute(xn.id)===r});return n&&Bn(n)?n:null}(t,c.descriptor.id);if(!s)return null;if(u&&!c.options.canDragInteractiveElements&&ni(s,u))return null;var d=r.claim(l||pe),p="PRE_DRAG";function f(){return c.options.shouldRespectForcePress}function g(){return r.isActive(d)}var v=function(e,r){si({expected:e,phase:p,isLockActive:g,shouldWarn:!0})&&n.dispatch(r())}.bind(null,"DRAGGING");function m(e){function t(){r.release(),p="COMPLETED"}function i(r,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var o=fe(window,[{eventName:"click",fn:ci,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}t(),n.dispatch(vt({reason:r}))}return"PRE_DRAG"!==p&&(t(),"PRE_DRAG"!==p&&be(!1)),n.dispatch(tt(e.liftActionArgs)),p="DRAGGING",a({isActive:function(){return si({expected:"DRAGGING",phase:p,isLockActive:g,shouldWarn:!1})},shouldRespectForcePress:f,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return si({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var r=se(function(e){v(function(){return ut({client:e})})});return a({},m({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return r.cancel()},actions:{move:r}}),{move:r})},snapLift:function(){var e={moveUp:function(){return v(ct)},moveRight:function(){return v(dt)},moveDown:function(){return v(st)},moveLeft:function(){return v(pt)}};return m({liftActionArgs:{id:o,clientSelection:ii(s),movementMode:"SNAP"}
2,cleanup:pe,actions:e})},abort:function(){si({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!0})&&r.release()}}}var fi=[function(e){var r=(0,n.useRef)(Xn),t=(0,n.useRef)(pe),i=K(function(){return{eventName:"mousedown",fn:function(r){if(!r.defaultPrevented&&0===r.button&&!(r.ctrlKey||r.metaKey||r.shiftKey||r.altKey)){var n=e.findClosestDraggableId(r);if(n){var i=e.tryGetLock(n,l,{sourceEvent:r});if(i){r.preventDefault();var o={x:r.clientX,y:r.clientY};t.current(),s(i,o)}}}}}},[e]),o=K(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(r){if(!r.defaultPrevented){var t=e.findClosestDraggableId(r);if(t){var n=e.findOptionsForDraggable(t);n&&(n.shouldRespectForcePress||e.canGetLock(t)&&r.preventDefault())}}}}},[e]),a=$(function(){t.current=fe(window,[o,i],{passive:!1,capture:!0})},[o,i]),l=$(function(){"IDLE"!==r.current.type&&(r.current=Xn,t.current(),a())},[a]),u=$(function(){var e=r.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[l]),c=$(function(){var e=Kn({cancel:u,completed:l,getPhase:function(){return r.current},setPhase:function(e){r.current=e}});t.current=fe(window,e,{capture:!0,passive:!1})},[u,l]),s=$(function(e,t){"IDLE"!==r.current.type&&be(!1),r.current={type:"PENDING",point:t,actions:e},c()},[c]);An(function(){return a(),function(){t.current()}},[a])},function(e){var r=(0,n.useRef)($n),t=K(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=fe(window,Zn(l,u),{capture:!0,passive:!1})}}}function u(){a||be(!1),a=!1,r.current(),i()}}}},[e]),i=$(function(){r.current=fe(window,[t],{passive:!1,capture:!0})},[t]);An(function(){return i(),function(){r.current()}},[i])},function(e){var r=(0,n.useRef)(ei),t=(0,n.useRef)(pe),i=$(function(){return r.current},[]),o=$(function(e){r.current=e},[]),a=K(function(){return{eventName:"touchstart",fn:function(r){if(!r.defaultPrevented){var n=e.findClosestDraggableId(r);if(n){var i=e.tryGetLock(n,u,{sourceEvent:r});if(i){var o=r.touches[0],a={x:o.clientX,y:o.clientY};t.current(),p(i,a)}}}}}},[e]),l=$(function(){t.current=fe(window,[a],{capture:!0,passive:!1})},[a]),u=$(function(){var e=r.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(ei),t.current(),l())},[l,o]),c=$(function(){var e=r.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[u]),s=$(function(){var e={capture:!0,passive:!1},r={cancel:c,completed:u,getPhase:i},n=fe(window,function(e){var r=e.cancel,t=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var t=n();if("DRAGGING"===t.type){t.hasMoved=!0;var i=e.touches[0],o={x:i.clientX,y:i.clientY};e.preventDefault(),t.actions.move(o)}else r()}},{eventName:"touchend",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):r()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),r()):r()}},{eventName:"touchforcechange",fn:function(e){var t=n();"IDLE"===t.type&&be(!1);var i=e.touches[0];if(i&&i.force>=.15){var o=t.actions.shouldRespectForcePress();if("PENDING"!==t.type)return o?t.hasMoved?void e.preventDefault():void r():void e.preventDefault();o&&r()}}},{eventName:Yn,fn:r}]}(r),e),o=fe(window,function(e){var r=e.cancel,t=e.getPhase;return[{eventName:"orientationchange",fn:r},{eventName:"resize",fn:r},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===t().type?(27===e.keyCode&&e.preventDefault(),r()):r()}},{eventName:Yn,fn:r}]}(r),e);t.current=function(){n(),o()}},[c,i,u]),d=$(function(){var e=i();"PENDING"!==e.type&&be(!1);var r=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:r,hasMoved:!1})},[i,o]),p=$(function(e,r){"IDLE"!==i().type&&be(!1);var t=setTimeout(d,120);o({type:"PENDING",point:r,actions:e,longPressTimerId:t}),s()},[s,i,o,d]);An(function(){return l(),function(){t.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(ei))}},[i,l,o]),An(function(){return fe(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])},[])}];function gi(e){var r=e.contextId,t=e.store,i=e.registry,o=e.customSensors,a=e.enableDefaultSensors,l=[].concat(a?fi:[],o||[]),u=(0,n.use
2State)(function(){return function(){var e=null;function r(){e||be(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(r){return r===e},claim:function(r){e&&be(!1);var t={abandon:r};return e=t,t},release:r,tryAbandon:function(){e&&(e.abandon(),r())}}}()})[0],c=$(function(e,r){e.isDragging&&!r.isDragging&&u.tryAbandon()},[u]);An(function(){var e=t.getState();return t.subscribe(function(){var r=t.getState();c(e,r),e=r})},[u,t,c]),An(function(){return u.tryAbandon},[u.tryAbandon]);var s=$(function(e){return di({lockAPI:u,registry:i,store:t,draggableId:e})},[u,i,t]),d=$(function(e,n,o){return pi({lockAPI:u,registry:i,contextId:r,store:t,draggableId:e,forceSensorStop:n,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})},[r,u,i,t]),p=$(function(e){return function(e,r){var t=ui(e,r);return t?t.getAttribute(Dn.draggableId):null}(r,e)},[r]),f=$(function(e){var r=i.draggable.findById(e);return r?r.options:null},[i.draggable]),g=$(function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch(ft()))},[u,t]),v=$(u.isClaimed,[u]),m=K(function(){return{canGetLock:s,tryGetLock:d,findClosestDraggableId:p,findOptionsForDraggable:f,tryReleaseLock:g,isLockClaimed:v}},[s,d,p,f,g,v]);Un();for(var b=0;b<l.length;b++)l[b](m)}var vi=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function mi(e){return e.current||be(!1),e.current}function bi(e){var r=e.contextId,t=e.setCallbacks,i=e.sensors,o=e.nonce,u=e.dragHandleUsageInstructions,c=(0,n.useRef)(null);Hn();var s=jn(e),d=$(function(){return vi(s.current)},[s]),p=function(e){var r=K(function(){return Mn(e)},[e]),t=(0,n.useRef)(null);return(0,n.useEffect)(function(){var e=document.createElement("div");return t.current=e,e.id=r,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),a(e.style,Gn),Ln().appendChild(e),function(){setTimeout(function(){var r=Ln();r.contains(e)&&r.removeChild(e),e===t.current&&(t.current=null)})}},[r]),$(function(e){var r=t.current;r&&(r.textContent=e)},[])}(r),f=function(e){var r=e.contextId,t=e.text,i=kn("hidden-text",{separator:"-"}),o=K(function(){return"rbd-hidden-text-"+(e={contextId:r,uniqueId:i}).contextId+"-"+e.uniqueId;var e},[i,r]);return(0,n.useEffect)(function(){var e=document.createElement("div");return e.id=o,e.textContent=t,e.style.display="none",Ln().appendChild(e),function(){var r=Ln();r.contains(e)&&r.removeChild(e)}},[o,t]),o}({contextId:r,text:u}),v=function(e,r){var t=K(function(){return Cn(e)},[e]),i=(0,n.useRef)(null),o=(0,n.useRef)(null),a=$((0,ce.c)(function(e){var r=o.current;r||be(!1),r.textContent=e}),[]),l=$(function(e){var r=i.current;r||be(!1),r.textContent=e},[]);An(function(){(i.current||o.current)&&be(!1);var n=Pn(r),u=Pn(r);return i.current=n,o.current=u,n.setAttribute(yn+"-always",e),u.setAttribute(yn+"-dynamic",e),Sn().appendChild(n),Sn().appendChild(u),l(t.always),a(t.resting),function(){var e=function(e){var r=e.current;r||be(!1),Sn().removeChild(r),e.current=null};e(i),e(o)}},[r,l,a,t.always,t.resting,e]);var u=$(function(){return a(t.dragging)},[a,t.dragging]),c=$(function(e){a("DROP"!==e?t.userCancel:t.dropAnimating)},[a,t.dropAnimating,t.userCancel]),s=$(function(){o.current&&a(t.resting)},[a,t.resting]);return K(function(){return{dragging:u,dropping:c,resting:s}},[u,c,s])}(r,o),m=$(function(e){mi(c).dispatch(e)},[]),b=K(function(){return(0,l.bindActionCreators)({publishWhileDragging:nt,updateDroppableScroll:ot,updateDroppableIsEnabled:at,updateDroppableIsCombineEnabled:lt,collectionStarting:it},m)},[m]),h=function(){var e=K(On,[]);return(0,n.useEffect)(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}(),y=K(function(){return Yt(h,b)},[h,b]),D=K(function(){return hn(a({scrollWindow:Xt,scrollDroppable:y.scrollDroppable},(0,l.bindActionCreators)({move:ut},m)))},[y.scrollDroppable,m]),x=function(e){var r=(0,n.useRef)({}),t=(0,n.useRef)(null),i=(0,n.useRef)(null),o=(0,n.useRef)(!1),a=$(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]}},[]),l=$(function(r){var t=Rn(e,r);t&&t!==document.activeElement&&t.focus()},[e]),u=$(function(e,r){t.current===e&&(t.current=r)},[]),c=$(function(){i.current||o.current&&(i.current=requestAnimationFrame(function(){i.current=null;var e=t.current;e&&l(e)}
2))},[l]),s=$(function(e){t.current=null;var r=document.activeElement;r&&r.getAttribute(Dn.draggableId)===e&&(t.current=e)},[]);return An(function(){return o.current=!0,function(){o.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}},[]),K(function(){return{register:a,tryRecordFocus:s,tryRestoreFocusRecorded:c,tryShiftRecord:u}},[a,s,c,u])}(r),I=K(function(){return Ut({announce:p,autoScroller:D,dimensionMarshal:y,focusMarshal:x,getResponders:d,styleMarshal:v})},[p,D,y,x,d,v]);c.current=I;var E=$(function(){var e=mi(c);"IDLE"!==e.getState().phase&&e.dispatch(ft())},[]),w=$(function(){var e=mi(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase},[]);t(K(function(){return{isDragging:w,tryAbort:E}},[w,E]));var C=$(function(e){return Jt(mi(c).getState(),e)},[]),A=$(function(){return Gr(mi(c).getState())},[]),S=K(function(){return{marshal:y,focus:x,contextId:r,canLift:C,isMovementAllowed:A,dragHandleUsageInstructionsId:f,registry:h}},[r,y,f,x,C,A,h]);return gi({contextId:r,store:I,registry:h,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)(function(){return E},[E]),n.createElement(Wn.Provider,{value:S},n.createElement(g,{context:Tn,store:I},e.children))}var hi=0;function yi(){hi=0,_n=0}function Di(e){var r=K(function(){return""+hi++},[]),t=e.dragHandleUsageInstructions||Ee.dragHandleUsageInstructions;return n.createElement(he,null,function(i){return n.createElement(bi,{nonce:e.nonce,contextId:r,setCallbacks:i,dragHandleUsageInstructions:t,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)})}var xi=function(e){return function(r){return e===r}},Ii=xi("scroll"),Ei=xi("auto"),wi=(xi("visible"),function(e,r){return r(e.overflowX)||r(e.overflowY)}),Ci=function(e){var r=window.getComputedStyle(e),t={overflowX:r.overflowX,overflowY:r.overflowY};return wi(t,Ii)||wi(t,Ei)},Ai=function e(r){return null==r||r===document.body||r===document.documentElement?null:Ci(r)?r:e(r.parentElement)},Si=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Pi=function e(r){return!!r&&("fixed"===window.getComputedStyle(r).position||e(r.parentElement))},Ni=function(e){return{closestScrollable:Ai(e),isFixedOnPage:Pi(e)}},Bi=function(e){var r=e.ref,t=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,r){var t=ue(e);if(!r)return t;if(e!==r)return t;var n=t.paddingBox.top-r.scrollTop,i=t.paddingBox.left-r.scrollLeft,o=n+r.scrollHeight,a=i+r.scrollWidth,l=ee({top:n,right:a,bottom:o,left:i},t.border);return ne({borderBox:l,margin:t.margin,border:t.border,padding:t.padding})}(r,c),d=ae(s,i),p=function(){if(!c)return null;var e=ue(c),r={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:ae(e,i),scroll:Si(c),scrollSize:r,shouldClipSubject:u}}(),f=function(e){var r=e.descriptor,t=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,r=u.client,t=Ht({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:r.paddingBox.height,width:r.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:r,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:t,diff:{value:we,displacement:we}}}}(),s="vertical"===o?nr:ir;return{descriptor:r,isCombineEnabled:n,isFixedOnPage:i,axis:s,isEnabled:t,client:a,page:l,frame:c,subject:Me({page:l,withPlaceholder:null,axis:s,frame:c})}}
2({descriptor:t,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:o,client:s,page:d,closest:p});return f},Ri={passive:!1},Oi={passive:!0},Ti=function(e){return e.shouldPublishImmediately?Ri:Oi};function Li(e){var r=(0,n.useContext)(e);return r||be(!1),r}var Gi=function(e){return e&&e.env.closestScrollable||null};function Mi(){}var _i={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Fi=function(e){var r=e.isAnimatingOpenOnMount,t=e.placeholder,n=e.animate,i=function(e){var r=e.isAnimatingOpenOnMount,t=e.placeholder,n=e.animate;return r||"close"===n?_i:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}}({isAnimatingOpenOnMount:r,placeholder:t,animate:n});return{display:t.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?xt.placeholder:null}};var ki=n.memo(function(e){var r=(0,n.useRef)(null),t=$(function(){r.current&&(clearTimeout(r.current),r.current=null)},[]),i=e.animate,o=e.onTransitionEnd,a=e.onClose,l=e.contextId,u=(0,n.useState)("open"===e.animate),c=u[0],s=u[1];(0,n.useEffect)(function(){return c?"open"!==i?(t(),s(!1),Mi):r.current?Mi:(r.current=setTimeout(function(){r.current=null,s(!1)}),t):Mi},[i,c,t]);var d=$(function(e){"height"===e.propertyName&&(o(),"close"===i&&a())},[i,a,o]),p=Fi({isAnimatingOpenOnMount:c,animate:e.animate,placeholder:e.placeholder});return n.createElement(e.placeholder.tagName,{style:p,"data-rbd-placeholder-context-id":l,onTransitionEnd:d,ref:e.innerRef})}),Wi=n.createContext(null);var Ui=function(e){function r(){for(var r,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(r=e.call.apply(e,[this].concat(n))||this).state={isVisible:Boolean(r.props.on),data:r.props.on,animate:r.props.shouldAnimate&&r.props.on?"open":"none"},r.onClose=function(){"close"===r.state.animate&&r.setState({isVisible:!1})},r}return o(r,e),r.getDerivedStateFromProps=function(e,r){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},r.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)},r}(n.PureComponent),Hi=5e3,ji=4500,qi=function(e,r){return r?xt.drop(r.duration):e?xt.snap:xt.fluid},Vi=function(e,r){return e?r?ht.drop:ht.combining:null};function zi(e){return"DRAGGING"===e.type?function(e){var r=e.dimension.client,t=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?wt(t,o):Et(t);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:qi(a,i),transform:u,opacity:Vi(o,l),zIndex:l?ji:Hi,pointerEvents:"none"}}(e):{transform:Et((r=e).offset),transition:r.shouldAnimateDisplacement?null:"none"};var r}function Yi(e){var r=kn("draggable"),t=e.descriptor,i=e.registry,o=e.getDraggableRef,a=e.canDragInteractiveElements,l=e.shouldRespectForcePress,u=e.isEnabled,c=K(function(){return{canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:u}},[a,u,l]),s=$(function(e){var r=o();return r||be(!1),function(e,r,t){void 0===t&&(t=we);var n=window.getComputedStyle(r),i=r.getBoundingClientRect(),o=le(i,n),a=ae(o,t);return{descriptor:e,placeholder:{client:o,tagName:r.tagName.toLowerCase(),display:n.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}(t,r,e)},[t,o]),d=K(function(){return{uniqueId:r,descriptor:t,options:c,getDimension:s}},[t,s,c,r]),p=(0,n.useRef)(d),f=(0,n.useRef)(!0);An(function(){return i.draggable.register(p.current),function(){return i.draggable.unregister(p.current)}},[i.draggable]),An(function(){if(f.current)f.current=!1;else{var e=p.current;p.current=d,i.draggable.update(d,e)}},[d,i.draggable])}function Ji(e,r,t){Hn()}function Xi(e){e.preventDefault()}var Ki=function(e,r){return e===r},$i=function(e){var r=e.combine,t=e.destination;return t?t.droppableId:r?r.droppableId:null};function Qi(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,comb
2ineWith:null}}var Zi={mapped:{type:"SECONDARY",offset:we,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Qi(null)}};var eo=z(function(){var e=function(){var e=(0,ce.c)(function(e,r){return{x:e,y:r}}),r=(0,ce.c)(function(e,r,t,n,i){return{isDragging:!0,isClone:r,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:t,combineWith:n,combineTargetFor:null}}),t=(0,ce.c)(function(e,t,n,i,o,a,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:t,offset:e,dimension:n,forceShouldAnimate:l,snapshot:r(t,i,o,a,null)}}});return 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=Tr(n.impact),u=(s=n.impact).at&&"COMBINE"===s.at.type?s.at.combine.draggableId:null,c=n.forceShouldAnimate;return t(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=$i(g),b=function(e){return e.combine?e.combine.draggableId:null}(g),h={duration:n.dropDuration,curve:bt,moveTo:n.newHomeClientOffset,opacity:b?ht.drop:null,scale:b?yt.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:f,dropping:h,draggingOver:m,combineWith:b,mode:v,forceShouldAnimate:null,snapshot:r(v,p,m,b,h)}}}return null}}(),r=function(){var e=(0,ce.c)(function(e,r){return{x:e,y:r}}),r=(0,ce.c)(Qi),t=(0,ce.c)(function(e,t,n){return void 0===t&&(t=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:t,shouldAnimateDisplacement:n,snapshot:r(t)}}}),n=function(e){return e?t(we,e,!0):null},i=function(r,i,o,a){var l=o.displaced.visible[r],u=Boolean(a.inVirtualList&&a.effected[r]),c=Je(o),s=c&&c.draggableId===r?i:null;if(!l){if(!u)return n(s);if(o.displaced.invisible[r])return null;var d=Pe(a.displacedBy.point),p=e(d.x,d.y);return t(p,s,!0)}if(u)return n(s);var f=o.displacedBy.point,g=e(f.x,f.y);return t(g,s,l.shouldAnimate)};return function(e,r){if(e.isDragging)return e.critical.draggable.id===r.draggableId?null:i(r.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var t=e.completed;return t.result.draggableId===r.draggableId?null:i(r.draggableId,t.result.draggableId,t.impact,t.afterCritical)}return null}}();return function(t,n){return e(t,n)||r(t,n)||Zi}},{dropAnimationFinished:mt},null,{context:Tn,pure:!0,areStatePropsEqual:Ki})(function(e){var r=(0,n.useRef)(null),t=$(function(e){r.current=e},[]),i=$(function(){return r.current},[]),o=Li(Wn),a=o.contextId,l=o.dragHandleUsageInstructionsId,u=o.registry,c=Li(Wi),s=c.type,d=c.droppableId,p=K(function(){return{id:e.draggableId,index:e.index,type:s,droppableId:d}},[e.draggableId,e.index,s,d]),f=e.children,g=e.draggableId,v=e.isEnabled,m=e.shouldRespectForcePress,b=e.canDragInteractiveElements,h=e.isClone,y=e.mapped,D=e.dropAnimationFinished;Ji(),Un(),h||Yi(K(function(){return{descriptor:p,registry:u,getDraggableRef:i,canDragInteractiveElements:b,shouldRespectForcePress:m,isEnabled:v}},[p,u,i,b,m,v]));var x=K(function(){return v?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":g,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:Xi}:null},[a,l,g,v]),I=$(function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&D()},[D,y]),E=K(function(){var e=zi(y),r="DRAGGING"===y.type&&y.dropping?I:null;return{innerRef:t,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":g,style:e,onTransitionEnd:r},dragHandleProps:x}},[a,x,g,y,I,t]),w=K(function(){return{draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}},[p.droppableId,p.id,p.index,p.type]);return f(E,y.snapshot,w)});function ro(e){return Li(Wi).isUsingCloneFor!==e.draggableId||e.isClone?n.createElement(eo,e):null}function to(e){var r="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,t=Boolean(e.disableInteractiveElementBlocking),i=Boolean(e.shouldRespectForcePress);return n.createElement(ro,a({},e,{isClone:!1,isEnabled:r,canDragInteractiveElements:t,shouldRespectForcePress:i}))}var no=function(e,r){return e===r.droppable.type},io=function(e,r){return r.draggables[e.draggable.id]};var oo={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombine
2Enabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||be(!1),document.body}},ao=z(function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=a({},e,{shouldAnimatePlaceholder:!1}),t=(0,ce.c)(function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}}),n=(0,ce.c)(function(n,i,o,a,l,u){var c=l.descriptor.id;if(l.descriptor.droppableId===n){var s=u?{render:u,dragging:t(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 r;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(t,i){var o=i.droppableId,a=i.type,l=!i.isDropDisabled,u=i.renderClone;if(t.isDragging){var c=t.critical;if(!no(a,c))return r;var s=io(c,t.dimensions),d=Tr(t.impact)===o;return n(o,l,d,d,s,u)}if("DROP_ANIMATING"===t.phase){var p=t.completed;if(!no(a,p.critical))return r;var f=io(p.critical,t.dimensions);return n(o,l,$i(p.result)===o,Tr(p.impact)===o,f,u)}if("IDLE"===t.phase&&t.completed&&!t.shouldFlush){var g=t.completed;if(!no(a,g.critical))return r;var v=Tr(g.impact)===o,m=Boolean(g.impact.at&&"COMBINE"===g.impact.at.type),b=g.critical.droppable.id===o;return v?m?e:r:b?e:r}return r}},{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Tn,pure:!0,areStatePropsEqual:Ki})(function(e){var r=(0,n.useContext)(Wn);r||be(!1);var t=r.contextId,i=r.isMovementAllowed,o=(0,n.useRef)(null),a=(0,n.useRef)(null),l=e.children,u=e.droppableId,c=e.type,s=e.mode,d=e.direction,p=e.ignoreContainerClipping,f=e.isDropDisabled,g=e.isCombineEnabled,v=e.snapshot,m=e.useClone,b=e.updateViewportMaxScroll,h=e.getContainerForClone,y=$(function(){return o.current},[]),D=$(function(e){o.current=e},[]),x=($(function(){return a.current},[]),$(function(e){a.current=e},[]));Hn();var I=$(function(){i()&&b({maxScroll:qt()})},[i,b]);!function(e){var r=(0,n.useRef)(null),t=Li(Wn),i=kn("droppable"),o=t.registry,a=t.marshal,l=jn(e),u=K(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),c=(0,n.useRef)(u),s=K(function(){return(0,ce.c)(function(e,t){r.current||be(!1);var n={x:e,y:t};a.updateDroppableScroll(u.id,n)})},[u.id,a]),d=$(function(){var e=r.current;return e&&e.env.closestScrollable?Si(e.env.closestScrollable):we},[]),p=$(function(){var e=d();s(e.x,e.y)},[d,s]),f=K(function(){return se(p)},[p]),g=$(function(){var e=r.current,t=Gi(e);e&&t||be(!1),e.scrollOptions.shouldPublishImmediately?p():f()},[f,p]),v=$(function(e,n){r.current&&be(!1);var i=l.current,o=i.getDroppableRef();o||be(!1);var a=Ni(o),c={ref:o,descriptor:u,env:a,scrollOptions:n};r.current=c;var s=Bi({ref:o,descriptor:u,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(En.contextId,t.contextId),d.addEventListener("scroll",g,Ti(c.scrollOptions))),s},[t.contextId,u,g,l]),m=$(function(){var e=r.current,t=Gi(e);return e&&t||be(!1),Si(t)},[]),b=$(function(){var e=r.current;e||be(!1);var t=Gi(e);r.current=null,t&&(f.cancel(),t.removeAttribute(En.contextId),t.removeEventListener("scroll",g,Ti(e.scrollOptions)))},[g,f]),h=$(function(e){var t=r.current;t||be(!1);var n=Gi(t);n||be(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x},[]),y=K(function(){return{getDimensionAndWatchScroll:v,getScrollWhileDragging:m,dragStopped:b,scroll:h}},[b,v,m,h]),D=K(function(){return{uniqueId:i,descriptor:u,callbacks:y}},[y,u,i]);An(function(){return c.current=D.descriptor,o.droppable.register(D),function(){r.current&&b(),o.droppable.unregister(D)}},[y,u,b,D,a,o.droppable]),An(function(){r.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),An(function(){r.current&&a.updateDroppableIsCombine
2Enabled(c.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}({droppableId:u,type:c,mode:s,direction:d,isDropDisabled:f,isCombineEnabled:g,ignoreContainerClipping:p,getDroppableRef:y});var E=n.createElement(Ui,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(e){var r=e.onClose,i=e.data,o=e.animate;return n.createElement(ki,{placeholder:i,onClose:r,innerRef:x,animate:o,contextId:t,onTransitionEnd:I})}),w=K(function(){return{innerRef:D,placeholder:E,droppableProps:{"data-rbd-droppable-id":u,"data-rbd-droppable-context-id":t}}},[t,u,E,D]),C=m?m.dragging.draggableId:null,A=K(function(){return{droppableId:u,type:c,isUsingCloneFor:C}},[u,C,c]);return n.createElement(Wi.Provider,{value:A},l(w,v),function(){if(!m)return null;var e=m.dragging,r=m.render,t=n.createElement(ro,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(t,n){return r(t,n,e)});return J.createPortal(t,h())}())});ao.defaultProps=oo},9904:(e,r)=>{var t=60103,n=60106,i=60107,o=60108,a=60114,l=60109,u=60110,c=60112,s=60113,d=60120,p=60115,f=60116,g=60121,v=60122,m=60117,b=60129,h=60131;if("function"===typeof Symbol&&Symbol.for){var y=Symbol.for;t=y("react.element"),n=y("react.portal"),i=y("react.fragment"),o=y("react.strict_mode"),a=y("react.profiler"),l=y("react.provider"),u=y("react.context"),c=y("react.forward_ref"),s=y("react.suspense"),d=y("react.suspense_list"),p=y("react.memo"),f=y("react.lazy"),g=y("react.block"),v=y("react.server.block"),m=y("react.fundamental"),b=y("react.debug_trace_mode"),h=y("react.legacy_hidden")}function D(e){if("object"===typeof e&&null!==e){var r=e.$$typeof;switch(r){case t:switch(e=e.type){case i:case a:case o:case s:case d:return e;default:switch(e=e&&e.$$typeof){case u:case c:case f:case p:case l:return e;default:return r}}case n:return r}}}r.isContextConsumer=function(e){return D(e)===u}},41212:(e,r,t)=>{e.exports=t(9904)}}]); 3//# sourceMappingURL=react-beautiful-dnd.3a3b74d3.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.