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