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