@erpsquad/common 1.8.100 → 1.8.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/_virtual/index/index.esm10.js +3 -3
  2. package/dist/_virtual/index/index.esm11.js +2 -4
  3. package/dist/_virtual/index/index.esm11.js.map +1 -1
  4. package/dist/_virtual/index/index.esm3.js +4 -2
  5. package/dist/_virtual/index/index.esm3.js.map +1 -1
  6. package/dist/_virtual/index/index.esm4.js +3 -3
  7. package/dist/_virtual/index/index.esm5.js +3 -3
  8. package/dist/_virtual/index/index.esm6.js +3 -3
  9. package/dist/_virtual/index/index.esm7.js +3 -3
  10. package/dist/_virtual/index/index.esm8.js +3 -3
  11. package/dist/_virtual/index/index.esm9.js +3 -3
  12. package/dist/_virtual/index/index10.js +1 -1
  13. package/dist/_virtual/index/index11.js +1 -1
  14. package/dist/_virtual/index/index3.js +1 -1
  15. package/dist/_virtual/index/index4.js +1 -1
  16. package/dist/_virtual/index/index5.js +1 -1
  17. package/dist/_virtual/index/index6.js +1 -1
  18. package/dist/_virtual/index/index7.js +1 -1
  19. package/dist/_virtual/index/index8.js +1 -1
  20. package/dist/_virtual/index/index9.js +1 -1
  21. package/dist/components/header/redux/actionCreator/index.esm.js +0 -3
  22. package/dist/components/header/redux/actionCreator/index.esm.js.map +1 -1
  23. package/dist/components/header/redux/actionCreator/index.js +1 -1
  24. package/dist/components/header/redux/actionCreator/index.js.map +1 -1
  25. package/dist/components/providers/ERPUIProvider/index.esm.js +6 -0
  26. package/dist/components/providers/ERPUIProvider/index.esm.js.map +1 -1
  27. package/dist/components/providers/ERPUIProvider/index.js +2 -1
  28. package/dist/components/providers/ERPUIProvider/index.js.map +1 -1
  29. package/dist/components/share-modal/redux/actionCreator/index.esm.js +0 -3
  30. package/dist/components/share-modal/redux/actionCreator/index.esm.js.map +1 -1
  31. package/dist/components/share-modal/redux/actionCreator/index.js +1 -1
  32. package/dist/components/share-modal/redux/actionCreator/index.js.map +1 -1
  33. package/dist/contexts/languageContext/index.esm.js +4 -2
  34. package/dist/contexts/languageContext/index.esm.js.map +1 -1
  35. package/dist/contexts/languageContext/index.js +2 -2
  36. package/dist/contexts/languageContext/index.js.map +1 -1
  37. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
  38. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
  39. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js.map +1 -1
  40. package/dist/node_modules/@mui/system/colorManipulator/index.esm.js +2 -2
  41. package/dist/node_modules/@mui/system/colorManipulator/index.js +1 -1
  42. package/dist/node_modules/@mui/system/colorManipulator/index.js.map +1 -1
  43. package/dist/node_modules/@mui/system/createStyled/index.esm.js +6 -6
  44. package/dist/node_modules/@mui/system/createStyled/index.js +1 -1
  45. package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.esm.js +1 -1
  46. package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.js +1 -1
  47. package/dist/style.css +72 -72
  48. package/dist/utils/api/index.esm.js +3 -0
  49. package/dist/utils/api/index.esm.js.map +1 -1
  50. package/dist/utils/api/index.js +1 -1
  51. package/dist/utils/api/index.js.map +1 -1
  52. package/dist/views/template-editor/components/EditorSidebar/index.esm.js +1 -2
  53. package/dist/views/template-editor/components/EditorSidebar/index.esm.js.map +1 -1
  54. package/dist/views/template-editor/components/EditorSidebar/index.js +14 -14
  55. package/dist/views/template-editor/components/EditorSidebar/index.js.map +1 -1
  56. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from "../../../../../_virtual/_commonjsHelpers/index.esm.js";
2
- import { __module as dist } from "../../../../../_virtual/index/index.esm3.js";
2
+ import { __module as dist } from "../../../../../_virtual/index/index.esm11.js";
3
3
  import React__default from "react";
4
4
  import ReactDOM__default from "react-dom";
5
5
  import require$$0 from "react-is";
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../_virtual/_commonjsHelpers/index.js"),r=require("../../../../../_virtual/index/index3.js"),n=require("react"),t=require("react-dom"),o=require("react-is");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=/* @__PURE__ */i(n),u=/* @__PURE__ */i(t),c=/* @__PURE__ */i(o);!function(e){var r,n,t;window,e.exports=(r=a.default,n=u.default,t=c.default,function(e){var r={};function n(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=/* @__PURE__ */Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)n.d(t,o,function(r){return e[r]}.bind(null,o));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=11)}([function(e,n){e.exports=r},function(e,r,n){e.exports=n(5)},function(e,r){e.exports=n},function(e,r){e.exports=t},function(e,r,n){var t=n(3),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(e){return t.isMemo(e)?a:u[e.$$typeof]||o}u[t.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[t.Memo]=a;var l=Object.defineProperty,d=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(r,n,t){if("string"!=typeof n){if(g){var o=f(n);o&&o!==g&&e(r,o,t)}var a=d(n);s&&(a=a.concat(s(n)));for(var u=c(r),b=c(n),m=0;m<a.length;++m){var v=a[m];if(!(i[v]||t&&t[v]||b&&b[v]||u&&u[v])){var h=p(n,v);try{l(r,v,h)}catch(y){}}}}return r}},function(e,r,n){n(6);var t=n(0),o=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),r.Fragment=i("react.fragment")}var a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,r,n){var t,i={},l=null,d=null;for(t in void 0!==n&&(l=""+n),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(d=r.ref),r)u.call(r,t)&&!c.hasOwnProperty(t)&&(i[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===i[t]&&(i[t]=r[t]);return{$$typeof:o,type:e,key:l,ref:d,props:i,_owner:a.current}}r.jsx=l,r.jsxs=l},function(e,r,n){var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=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 r={},n=0;n<10;n++)r["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(r).map(function(e){return r[e]}).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(o){return!1}}()?Object.assign:function(e,r){for(var n,a,u=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))o.call(n,l)&&(u[l]=n[l]);if(t){a=t(n);for(var d=0;d<a.length;d++)i.call(n,a[d])&&(u[a[d]]=n[a[d]])}}return u}},function(e,r,n){e.exports=n(8)()},function(e,r,n){var t=n(9);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,r,n,o,i,a){if(a!==t){var u=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 u.name="Invariant Violation",u}}function r(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,r,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,function(e,r,n){n.r(r),n.d(r,"default",function(){return ki}),n.d(r,"moveColumn",function(){return xi}),n.d(r,"moveCard",function(){return wi}),n.d(r,"addColumn",function(){return Di}),n.d(r,"removeColumn",function(){return Ci}),n.d(r,"changeColumn",function(){return Ii}),n.d(r,"addCard",function(){return Ei}),n.d(r,"removeCard",function(){return ji}),n.d(r,"changeCard",function(){return Pi});var t=n(0),o=n.n(t);function i(e,r){return(i=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function a(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,i(e,r)}function u(){return(u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e}).apply(this,arguments)}function c(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function l(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function d(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?l(Object(n),!0).forEach(function(r){c(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var p="function"==typeof Symbol&&Symbol.observable||"@@observable",f=function(){return Math.random().toString(36).substring(7).split("").join(".")},g={INIT:"@@redux/INIT"+f(),REPLACE:"@@redux/REPLACE"+f()};function b(e,r,n){var t;if("function"==typeof r&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(s(0));if("function"==typeof r&&void 0===n&&(n=r,r=void 0),void 0!==n){if("function"!=typeof n)throw new Error(s(1));return n(b)(e,r)}if("function"!=typeof e)throw new Error(s(2));var o=e,i=r,a=[],u=a,c=!1;function l(){u===a&&(u=a.slice())}function d(){if(c)throw new Error(s(3));return i}function f(e){if("function"!=typeof e)throw new Error(s(4));if(c)throw new Error(s(5));var r=!0;return l(),u.push(e),function(){if(r){if(c)throw new Error(s(6));r=!1,l();var n=u.indexOf(e);u.splice(n,1),a=null}}}function m(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var r=e;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}(e))throw new Error(s(7));if(void 0===e.type)throw new Error(s(8));if(c)throw new Error(s(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var r=a=u,n=0;n<r.length;n++)(0,r[n])();return e}return m({type:g.INIT}),(t={dispatch:m,subscribe:f,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw new Error(s(10));o=e,m({type:g.REPLACE})}})[p]=function(){var e,r=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(s(11));function n(){e.next&&e.next(d())}return n(),{unsubscribe:r(n)}}})[p]=function(){return this},e},t}function m(e,r){return function(){return r(e.apply(this,arguments))}}function v(e,r){if("function"==typeof e)return m(e,r);if("object"!=typeof e||null===e)throw new Error(s(16));var n={};for(var t in e){var o=e[t];"function"==typeof o&&(n[t]=m(o,r))}return n}function h(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return 0===r.length?function(e){return e}:1===r.length?r[0]:r.reduce(function(e,r){return function(){return e(r.apply(void 0,arguments))}})}n(7);var y=o.a.createContext(null),O=function(e){e()};var x={notify:function(){},get:function(){return[]}};function w(e,r){var n,t=x;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=r?r.addNestedSub(o):e.subscribe(o),t=function(){var e=O,r=null,n=null;return{clear:function(){r=null,n=null},notify:function(){e(function(){for(var e=r;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=r;n;)e.push(n),n=n.next;return e},subscribe:function(e){var t=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:r=o,function(){t&&null!==r&&(t=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:r=o.next)}}}}())}var a={addNestedSub:function(e){return i(),t.subscribe(e)},notifyNestedSubs:function(){t.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,t.clear(),t=x)},getListeners:function(){return t}};return a}var D="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect,C=function(e){var r=e.store,n=e.context,i=e.children,a=Object(t.useMemo)(function(){var e=w(r);return e.onStateChange=e.notifyNestedSubs,{store:r,subscription:e}},[r]),u=Object(t.useMemo)(function(){return r.getState()},[r]);D(function(){var e=a.subscription;return e.trySubscribe(),u!==r.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[a,u]);var c=n||y;return o.a.createElement(c.Provider,{value:a},i)};function I(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}var E=n(4),j=n.n(E),P=n(3),S=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],A=["reactReduxForwardedRef"],R=[],N=[null,null];function B(e,r){var n=e[1];return[r.payload,n+1]}function T(e,r,n){D(function(){return e.apply(void 0,r)},n)}function L(e,r,n,t,o,i,a){e.current=t,r.current=o,n.current=!1,i.current&&(i.current=null,a())}function M(e,r,n,t,o,i,a,u,c,l){if(e){var d=!1,s=null,p=function(){if(!d){var e,n,p=r.getState();try{e=t(p,o.current)}catch(f){n=f,s=f}n||(s=null),e===i.current?a.current||c():(i.current=e,u.current=e,a.current=!0,l({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=p,n.trySubscribe(),p(),function(){if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,s)throw s}}}var _=function(){return[null,0]};function G(e,r){void 0===r&&(r={});var n=r,i=n.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,c=n.methodName,l=void 0===c?"connectAdvanced":c,d=n.renderCountProp,s=void 0===d?void 0:d,p=n.shouldHandleStateChanges,f=void 0===p||p,g=n.storeKey,b=void 0===g?"store":g,m=n.forwardRef,v=void 0!==m&&m,h=n.context,O=void 0===h?y:h,x=I(n,S),D=O;return function(r){var n=r.displayName||r.name||"Component",i=a(n),c=u({},x,{getDisplayName:a,methodName:l,renderCountProp:s,shouldHandleStateChanges:f,storeKey:b,displayName:i,wrappedComponentName:n,WrappedComponent:r}),d=x.pure,p=d?t.useMemo:function(e){return e()};function g(n){var i=Object(t.useMemo)(function(){var e=n.reactReduxForwardedRef,r=I(n,A);return[n.context,e,r]},[n]),a=i[0],l=i[1],d=i[2],s=Object(t.useMemo)(function(){return a&&a.Consumer&&Object(P.isContextConsumer)(o.a.createElement(a.Consumer,null))?a:D},[a,D]),g=Object(t.useContext)(s),b=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),m=b?n.store:g.store,v=Object(t.useMemo)(function(){return e(m.dispatch,c)},[m]),h=Object(t.useMemo)(function(){if(!f)return N;var e=w(m,b?null:g.subscription),r=e.notifyNestedSubs.bind(e);return[e,r]},[m,b,g]),y=h[0],O=h[1],x=Object(t.useMemo)(function(){return b?g:u({},g,{subscription:y})},[b,g,y]),C=Object(t.useReducer)(B,R,_),E=C[0][0],j=C[1];if(E&&E.error)throw E.error;var S=Object(t.useRef)(),G=Object(t.useRef)(d),k=Object(t.useRef)(),F=Object(t.useRef)(!1),U=p(function(){return k.current&&d===G.current?k.current:v(m.getState(),d)},[m,E,d]);T(L,[G,S,F,d,U,k,O]),T(M,[f,m,y,v,G,S,F,k,O,j],[m,y,v]);var W=Object(t.useMemo)(function(){return o.a.createElement(r,u({},U,{ref:l}))},[l,r,U]);return Object(t.useMemo)(function(){return f?o.a.createElement(s.Provider,{value:x},W):W},[s,W,x])}var m=d?o.a.memo(g):g;if(m.WrappedComponent=r,m.displayName=g.displayName=i,v){var h=o.a.forwardRef(function(e,r){return o.a.createElement(m,u({},e,{reactReduxForwardedRef:r}))});return h.displayName=i,h.WrappedComponent=r,j()(h,r)}return j()(m,r)}}function k(e,r){return e===r?0!==e||0!==r||1/e==1/r:e!=e&&r!=r}function F(e,r){if(k(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var n=Object.keys(e),t=Object.keys(r);if(n.length!==t.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(r,n[o])||!k(e[n[o]],r[n[o]]))return!1;return!0}function U(e){return function(r,n){var t=e(r,n);function o(){return t}return o.dependsOnOwnProps=!1,o}}function W(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function H(e,r){return function(r,n){var t=function(e,r){return t.dependsOnOwnProps?t.mapToProps(e,r):t.mapToProps(e)};return t.dependsOnOwnProps=!0,t.mapToProps=function(r,n){t.mapToProps=e,t.dependsOnOwnProps=W(e);var o=t(r,n);return"function"==typeof o&&(t.mapToProps=o,t.dependsOnOwnProps=W(o),o=t(r,n)),o},t}}var q=[function(e){return"function"==typeof e?H(e):void 0},function(e){return e?void 0:U(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?U(function(r){return function(e,r){var n={},t=function(t){var o=e[t];"function"==typeof o&&(n[t]=function(){return r(o.apply(void 0,arguments))})};for(var o in e)t(o);return n}(e,r)}):void 0}],V=[function(e){return"function"==typeof e?H(e):void 0},function(e){return e?void 0:U(function(){return{}})}];function z(e,r,n){return u({},n,e,r)}var Y=[function(e){return"function"==typeof e?/* @__PURE__ */function(e){return function(r,n){var t,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(r,n,u){var c=e(r,n,u);return a?o&&i(c,t)||(t=c):(a=!0,t=c),t}}}(e):void 0},function(e){return e?void 0:function(){return z}}],$=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function J(e,r,n,t){return function(o,i){return n(e(o,i),r(t,i),i)}}function X(e,r,n,t,o){var i,a,u,c,l,d=o.areStatesEqual,s=o.areOwnPropsEqual,p=o.areStatePropsEqual,f=!1;return function(o,g){return f?function(o,f){var g,b,m=!s(f,a),v=!d(o,i);return i=o,a=f,m&&v?(u=e(i,a),r.dependsOnOwnProps&&(c=r(t,a)),l=n(u,c,a)):m?(e.dependsOnOwnProps&&(u=e(i,a)),r.dependsOnOwnProps&&(c=r(t,a)),l=n(u,c,a)):v?(g=e(i,a),b=!p(g,u),u=g,b&&(l=n(u,c,a)),l):l}(o,g):(u=e(i=o,a=g),c=r(t,a),l=n(u,c,a),f=!0,l)}}function K(e,r){var n=r.initMapStateToProps,t=r.initMapDispatchToProps,o=r.initMergeProps,i=I(r,$),a=n(e,i),u=t(e,i),c=o(e,i);return(i.pure?X:J)(a,u,c,e,i)}var Q=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Z(e,r,n){for(var t=r.length-1;t>=0;t--){var o=r[t](e);if(o)return o}return function(r,t){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+t.wrappedComponentName+".")}}function ee(e,r){return e===r}var re,ne=function(){var e={},r=e.connectHOC,n=void 0===r?G:r,t=e.mapStateToPropsFactories,o=void 0===t?V:t,i=e.mapDispatchToPropsFactories,a=void 0===i?q:i,c=e.mergePropsFactories,l=void 0===c?Y:c,d=e.selectorFactory,s=void 0===d?K:d;return function(e,r,t,i){void 0===i&&(i={});var c=i,d=c.pure,p=void 0===d||d,f=c.areStatesEqual,g=void 0===f?ee:f,b=c.areOwnPropsEqual,m=void 0===b?F:b,v=c.areStatePropsEqual,h=void 0===v?F:v,y=c.areMergedPropsEqual,O=void 0===y?F:y,x=I(c,Q),w=Z(e,o,"mapStateToProps"),D=Z(r,a,"mapDispatchToProps"),C=Z(t,l,"mergeProps");return n(s,u({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:D,initMergeProps:C,pure:p,areStatesEqual:g,areOwnPropsEqual:m,areStatePropsEqual:h,areMergedPropsEqual:O},x))}}(),te=n(2),oe=n.n(te);function ie(e,r){var n=Object(t.useState)(function(){return{inputs:r,result:e()}})[0],o=Object(t.useRef)(!0),i=Object(t.useRef)(n),a=o.current||Boolean(r&&i.current.inputs&&function(e,r){if(e.length!==r.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==r[n])return!1;return!0}(r,i.current.inputs))?i.current:{inputs:r,result:e()};return Object(t.useEffect)(function(){o.current=!1,i.current=a},[a]),a.result}re=te.unstable_batchedUpdates,O=re;var ae=ie,ue=function(e,r){return ie(function(){return e},r)},ce=function(e){var r=e.top,n=e.right,t=e.bottom,o=e.left;return{top:r,right:n,bottom:t,left:o,width:n-o,height:t-r,x:o,y:r,center:{x:(n+o)/2,y:(t+r)/2}}},le=function(e,r){return{top:e.top-r.top,left:e.left-r.left,bottom:e.bottom+r.bottom,right:e.right+r.right}},de=function(e,r){return{top:e.top+r.top,left:e.left+r.left,bottom:e.bottom-r.bottom,right:e.right-r.right}},se={top:0,right:0,bottom:0,left:0},pe=function(e){var r=e.borderBox,n=e.margin,t=void 0===n?se:n,o=e.border,i=void 0===o?se:o,a=e.padding,u=void 0===a?se:a,c=ce(le(r,t)),l=ce(de(r,i)),d=ce(de(l,u));return{marginBox:c,borderBox:ce(r),paddingBox:l,contentBox:d,margin:t,border:i,padding:u}},fe=function(e){var r=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(r);return isNaN(n)&&function(){throw new Error("Invariant failed")}(),n},ge=function(e,r){var n,t,o=e.borderBox,i=e.border,a=e.margin,u=e.padding,c=(t=r,{top:(n=o).top+t.y,left:n.left+t.x,bottom:n.bottom+t.y,right:n.right+t.x});return pe({borderBox:c,border:i,margin:a,padding:u})},be=function(e,r){return void 0===r&&(r={x:window.pageXOffset,y:window.pageYOffset}),ge(e,r)},me=function(e,r){var n={top:fe(r.marginTop),right:fe(r.marginRight),bottom:fe(r.marginBottom),left:fe(r.marginLeft)},t={top:fe(r.paddingTop),right:fe(r.paddingRight),bottom:fe(r.paddingBottom),left:fe(r.paddingLeft)},o={top:fe(r.borderTopWidth),right:fe(r.borderRightWidth),bottom:fe(r.borderBottomWidth),left:fe(r.borderLeftWidth)};return pe({borderBox:e,margin:n,padding:t,border:o})},ve=function(e){var r=e.getBoundingClientRect(),n=window.getComputedStyle(e);return me(r,n)},he=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ye(e,r){if(e.length!==r.length)return!1;for(var n=0;n<e.length;n++)if(!((t=e[n])===(o=r[n])||he(t)&&he(o)))return!1;var t,o;return!0}var Oe=function(e,r){var n;void 0===r&&(r=ye);var t,o=[],i=!1;return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return i&&n===this&&r(a,o)||(t=e.apply(this,a),i=!0,n=this,o=a),t}},xe=function(e){var r=[],n=null,t=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];r=o,n||(n=requestAnimationFrame(function(){n=null,e.apply(void 0,r)}))};return t.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},t};function we(e,r){}function De(){}function Ce(e,r,n){var t=r.map(function(r){var t=u({},n,{},r.options);return e.addEventListener(r.eventName,r.fn,t),function(){e.removeEventListener(r.eventName,r.fn,t)}});return function(){t.forEach(function(e){e()})}}function Ie(e){this.message=e}function Ee(e,r){throw new Ie("Invariant failed")}we.bind(null,"warn"),we.bind(null,"error"),Ie.prototype.toString=function(){return this.message};var je=function(e){function r(){for(var r,n=arguments.length,t=new Array(n),o=0;o<n;o++)t[o]=arguments[o];return(r=e.call.apply(e,[this].concat(t))||this).callbacks=null,r.unbind=De,r.onWindowError=function(e){var n=r.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof Ie&&e.preventDefault()},r.getCallbacks=function(){if(!r.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return r.callbacks},r.setCallbacks=function(e){r.callbacks=e},r}a(r,e);var n=r.prototype;return n.componentDidMount=function(){this.unbind=Ce(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof Ie))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},r}(o.a.Component),Pe=function(e){return e+1},Se=function(e,r){var n=e.droppableId===r.droppableId,t=Pe(e.index),o=Pe(r.index);return n?"\n You have moved the item from position "+t+"\n to position "+o+"\n ":"\n You have moved the item from position "+t+"\n in list "+e.droppableId+"\n to list "+r.droppableId+"\n in position "+o+"\n "},Ae=function(e,r,n){return r.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+r.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},Re=function(e){return"\n The item has returned to its starting position\n of "+Pe(e.index)+"\n"},Ne=function(e){return"\n You have lifted an item in position "+Pe(e.source.index)+"\n"},Be=function(e){var r=e.destination;if(r)return Se(e.source,r);var n=e.combine;return n?Ae(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},Te=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Re(e.source)+"\n ";var r=e.destination,n=e.combine;return r?"\n You have dropped the item.\n "+Se(e.source,r)+"\n ":n?"\n You have dropped the item.\n "+Ae(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Re(e.source)+"\n "},Le={x:0,y:0},Me=function(e,r){return{x:e.x+r.x,y:e.y+r.y}},_e=function(e,r){return{x:e.x-r.x,y:e.y-r.y}},Ge=function(e,r){return e.x===r.x&&e.y===r.y},ke=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Fe=function(e,r,n){var t;return void 0===n&&(n=0),(t={})[e]=r,t["x"===e?"y":"x"]=n,t},Ue=function(e,r){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))},We=function(e,r){return Math.min.apply(Math,r.map(function(r){return Ue(e,r)}))},He=function(e){return function(r){return{x:e(r.x),y:e(r.y)}}},qe=function(e,r){return{top:e.top+r.y,left:e.left+r.x,bottom:e.bottom+r.y,right:e.right+r.x}},Ve=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}]},ze=function(e,r){return r&&r.shouldClipSubject?function(e,r){var n=ce({top:Math.max(r.top,e.top),right:Math.min(r.right,e.right),bottom:Math.min(r.bottom,e.bottom),left:Math.max(r.left,e.left)});return n.width<=0||n.height<=0?null:n}(r.pageMarginBox,e):ce(e)},Ye=function(e){var r,n,t=e.page,o=e.withPlaceholder,i=e.axis,a=e.frame,c=function(e,r,n){var t;return n&&n.increasedBy?u({},e,((t={})[r.end]=e[r.end]+n.increasedBy[r.line],t)):e}((r=t.marginBox,(n=a)?qe(r,n.scroll.diff.displacement):r),i,o);return{page:t,withPlaceholder:o,active:ze(c,a)}},$e=function(e,r){e.frame||Ee();var n=e.frame,t=_e(r,n.scroll.initial),o=ke(t),i=u({},n,{scroll:{initial:n.scroll.initial,current:r,diff:{value:t,displacement:o},max:n.scroll.max}});return u({},e,{frame:i,subject:Ye({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})};function Je(e){return Object.values?Object.values(e):Object.keys(e).map(function(r){return e[r]})}function Xe(e,r){if(e.findIndex)return e.findIndex(r);for(var n=0;n<e.length;n++)if(r(e[n]))return n;return-1}function Ke(e,r){if(e.find)return e.find(r);var n=Xe(e,r);return-1!==n?e[n]:void 0}function Qe(e){return Array.prototype.slice.call(e)}var Ze=Oe(function(e){return e.reduce(function(e,r){return e[r.descriptor.id]=r,e},{})}),er=Oe(function(e){return e.reduce(function(e,r){return e[r.descriptor.id]=r,e},{})}),rr=Oe(function(e){return Je(e)}),nr=Oe(function(e){return Je(e)}),tr=Oe(function(e,r){return nr(r).filter(function(r){return e===r.descriptor.droppableId}).sort(function(e,r){return e.descriptor.index-r.descriptor.index})});function or(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function ir(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var ar=Oe(function(e,r){return r.filter(function(r){return r.descriptor.id!==e.descriptor.id})}),ur=function(e,r){return e.descriptor.droppableId===r.descriptor.id},cr={point:Le,value:0},lr={invisible:{},visible:{},all:[]},dr={displaced:lr,displacedBy:cr,at:null},sr=function(e,r){return function(n){return e<=n&&n<=r}},pr=function(e){var r=sr(e.top,e.bottom),n=sr(e.left,e.right);return function(t){if(r(t.top)&&r(t.bottom)&&n(t.left)&&n(t.right))return!0;var o=r(t.top)||r(t.bottom),i=n(t.left)||n(t.right);if(o&&i)return!0;var a=t.top<e.top&&t.bottom>e.bottom,u=t.left<e.left&&t.right>e.right;return!(!a||!u)||a&&i||u&&o}},fr=function(e){var r=sr(e.top,e.bottom),n=sr(e.left,e.right);return function(e){return r(e.top)&&r(e.bottom)&&n(e.left)&&n(e.right)}},gr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},br={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},mr=function(e){var r,n,t,o=e.target,i=e.destination,a=e.viewport,u=e.withDroppableDisplacement,c=e.isVisibleThroughFrameFn,l=u?function(e,r){var n=r.frame?r.frame.scroll.diff.displacement:Le;return qe(e,n)}(o,i):o;return r=l,t=c,!!(n=i).subject.active&&t(n.subject.active)(r)&&function(e,r,n){return n(r)(e)}(l,a,c)},vr=function(e){return mr(u({},e,{isVisibleThroughFrameFn:fr}))};function hr(e){var r=e.afterDragging,n=e.destination,t=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return r.reduce(function(e,r){var c=function(e,r){var n=e.page.marginBox,t={top:r.point.y,right:0,bottom:0,left:r.point.x};return ce(le(n,t))}(r,t),l=r.descriptor.id;if(e.all.push(l),!function(e){return mr(u({},e,{isVisibleThroughFrameFn:pr}))}({target:c,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[r.descriptor.id]=!0,e;var d={draggableId:l,shouldAnimate:function(e,r,n){if("boolean"==typeof n)return n;if(!r)return!0;var t=r.invisible,o=r.visible;if(t[e])return!1;var i=o[e];return!i||i.shouldAnimate}(l,a,i)};return e.visible[l]=d,e},{all:[],visible:{},invisible:{}})}function yr(e){var r=e.insideDestination,n=e.inHomeList,t=e.displacedBy,o=e.destination,i=function(e,r){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return r.inHomeList?n:n+1}(r,{inHomeList:n});return{displaced:lr,displacedBy:t,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function Or(e){var r=e.draggable,n=e.insideDestination,t=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,u=e.index,c=e.forceShouldAnimate,l=ur(r,t);if(null==u)return yr({insideDestination:n,inHomeList:l,displacedBy:i,destination:t});var d=Ke(n,function(e){return e.descriptor.index===u});if(!d)return yr({insideDestination:n,inHomeList:l,displacedBy:i,destination:t});var s=ar(r,n),p=n.indexOf(d);return{displaced:hr({afterDragging:s.slice(p),destination:t,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:c}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:t.descriptor.id,index:u}}}}function xr(e,r){return Boolean(r.effected[e])}var wr=function(e,r){return r.margin[e.start]+r.borderBox[e.size]/2},Dr=function(e,r,n){return r[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},Cr=function(e){var r=e.axis,n=e.moveRelativeTo,t=e.isMoving;return Fe(r.line,n.marginBox[r.end]+wr(r,t),Dr(r,n.marginBox,t))},Ir=function(e){var r,n,t=e.axis,o=e.moveRelativeTo,i=e.isMoving;return Fe(t.line,o.marginBox[t.start]-(r=t,(n=i).margin[r.end]+n.borderBox[r.size]/2),Dr(t,o.marginBox,i))},Er=function(e,r){var n=e.frame;return n?Me(r,n.scroll.diff.displacement):r},jr=function(e){var r=function(e){var r=e.impact,n=e.draggable,t=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,u=r.at;return t&&u?"REORDER"===u.type?function(e){var r=e.impact,n=e.draggable,t=e.draggables,o=e.droppable,i=e.afterCritical,a=tr(o.descriptor.id,t),u=n.page,c=o.axis;if(!a.length)return function(e){var r=e.axis,n=e.moveInto,t=e.isMoving;return Fe(r.line,n.contentBox[r.start]+wr(r,t),Dr(r,n.contentBox,t))}({axis:c,moveInto:o.page,isMoving:u});var l=r.displaced,d=r.displacedBy,s=l.all[0];if(s){var p=t[s];if(xr(s,i))return Ir({axis:c,moveRelativeTo:p.page,isMoving:u});var f=ge(p.page,d.point);return Ir({axis:c,moveRelativeTo:f,isMoving:u})}var g=a[a.length-1];if(g.descriptor.id===n.descriptor.id)return u.borderBox.center;if(xr(g.descriptor.id,i)){var b=ge(g.page,ke(i.displacedBy.point));return Cr({axis:c,moveRelativeTo:b,isMoving:u})}return Cr({axis:c,moveRelativeTo:g.page,isMoving:u})}({impact:r,draggable:n,draggables:o,droppable:t,afterCritical:i}):function(e){var r=e.afterCritical,n=e.impact,t=e.draggables,o=ir(n);o||Ee();var i=o.draggableId,a=t[i].page.borderBox.center,u=function(e){var r=e.displaced,n=e.afterCritical,t=e.combineWith,o=e.displacedBy,i=Boolean(r.visible[t]||r.invisible[t]);return xr(t,n)?i?Le:ke(o.point):i?o.point:Le}({displaced:n.displaced,afterCritical:r,combineWith:i,displacedBy:n.displacedBy});return Me(a,u)}({impact:r,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?Er(n,r):r},Pr=function(e,r){var n=_e(r,e.scroll.initial),t=ke(n);return{frame:ce({top:r.y,bottom:r.y+e.frame.height,left:r.x,right:r.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:r,diff:{value:n,displacement:t}}}};function Sr(e,r){return e.map(function(e){return r[e]})}var Ar=function(e){var r,n,t=e.pageBorderBoxCenter,o=e.draggable,i=(r=e.viewport,n=t,Me(r.scroll.diff.displacement,n)),a=_e(i,o.page.borderBox.center);return Me(o.client.borderBox.center,a)},Rr=function(e){var r=e.draggable,n=e.destination,t=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,c=void 0!==a&&a,l=_e(t,r.page.borderBox.center),d={target:qe(r.page.borderBox,l),destination:n,withDroppableDisplacement:i,viewport:o};return c?function(e){return mr(u({},e,{isVisibleThroughFrameFn:(r=e.destination.axis,function(e){var n=sr(e.top,e.bottom),t=sr(e.left,e.right);return function(e){return r===gr?n(e.top)&&n(e.bottom):t(e.left)&&t(e.right)}})}));var r}(d):vr(d)},Nr=function(e){var r=e.isMovingForward,n=e.draggable,t=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,c=e.previousPageBorderBoxCenter,l=e.previousClientSelection,d=e.afterCritical;if(!t.isEnabled)return null;var s=tr(t.descriptor.id,o),p=ur(n,t),f=function(e){var r=e.isMovingForward,n=e.draggable,t=e.destination,o=e.insideDestination,i=e.previousImpact;if(!t.isCombineEnabled)return null;if(!or(i))return null;function a(e){var r={type:"COMBINE",combine:{draggableId:e,droppableId:t.descriptor.id}};return u({},i,{at:r})}var c=i.displaced.all,l=c.length?c[0]:null;if(r)return l?a(l):null;var d=ar(n,o);if(!l)return d.length?a(d[d.length-1].descriptor.id):null;var s=Xe(d,function(e){return e.descriptor.id===l});-1===s&&Ee();var p=s-1;return p<0?null:a(d[p].descriptor.id)}({isMovingForward:r,draggable:n,destination:t,insideDestination:s,previousImpact:i})||function(e){var r=e.isMovingForward,n=e.isInHomeList,t=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,u=e.previousImpact,c=e.viewport,l=e.afterCritical,d=u.at;if(d||Ee(),"REORDER"===d.type){var s=function(e){var r=e.isMovingForward,n=e.isInHomeList,t=e.insideDestination,o=e.location;if(!t.length)return null;var i=o.index,a=r?i+1:i-1,u=t[0].descriptor.index,c=t[t.length-1].descriptor.index;return a<u||a>(n?c:c+1)?null:a}({isMovingForward:r,isInHomeList:n,location:d.destination,insideDestination:a});return null==s?null:Or({draggable:t,insideDestination:a,destination:i,viewport:c,last:u.displaced,displacedBy:u.displacedBy,index:s})}var p=function(e){var r=e.isMovingForward,n=e.draggables,t=e.combine,o=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var i=t.draggableId,a=n[i].descriptor.index;return xr(i,o)?r?a:a-1:r?a+1:a}({isMovingForward:r,destination:i,draggables:o,combine:d.combine,afterCritical:l});return null==p?null:Or({draggable:t,insideDestination:a,destination:i,viewport:c,last:u.displaced,displacedBy:u.displacedBy,index:p})}({isMovingForward:r,isInHomeList:p,draggable:n,draggables:o,destination:t,insideDestination:s,previousImpact:i,viewport:a,afterCritical:d});if(!f)return null;var g=jr({impact:f,draggable:n,droppable:t,draggables:o,afterCritical:d});if(Rr({draggable:n,destination:t,newPageBorderBoxCenter:g,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Ar({pageBorderBoxCenter:g,draggable:n,viewport:a}),impact:f,scrollJumpRequest:null};var b=_e(g,c);return{clientSelection:l,impact:function(e){var r=e.impact,n=e.viewport,t=e.destination,o=e.draggables,i=e.maxScrollChange,a=Pr(n,Me(n.scroll.current,i)),c=t.frame?$e(t,Me(t.frame.scroll.current,i)):t,l=r.displaced,d=hr({afterDragging:Sr(l.all,o),destination:t,displacedBy:r.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),s=hr({afterDragging:Sr(l.all,o),destination:c,displacedBy:r.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),p={},f={},g=[l,d,s];return l.all.forEach(function(e){var r=function(e,r){for(var n=0;n<r.length;n++){var t=r[n].visible[e];if(t)return t}return null}(e,g);r?f[e]=r:p[e]=!0}),u({},r,{displaced:{all:l.all,invisible:p,visible:f}})}({impact:f,viewport:a,destination:t,draggables:o,maxScrollChange:b}),scrollJumpRequest:b}},Br=function(e){var r=e.subject.active;return r||Ee(),r},Tr=function(e,r){var n=e.page.borderBox.center;return xr(e.descriptor.id,r)?_e(n,r.displacedBy.point):n},Lr=function(e,r){var n=e.page.borderBox;return xr(e.descriptor.id,r)?qe(n,ke(r.displacedBy.point)):n},Mr=Oe(function(e,r){var n=r[e.line];return{value:n,point:Fe(e.line,n)}}),_r=function(e,r){return u({},e,{scroll:u({},e.scroll,{max:r})})},Gr=function(e,r,n){var t=e.frame;ur(r,e)&&Ee(),e.subject.withPlaceholder&&Ee();var o=Mr(e.axis,r.displaceBy).point,i=function(e,r,n){var t=e.axis;if("virtual"===e.descriptor.mode)return Fe(t.line,r[t.line]);var o=e.subject.page.contentBox[t.size],i=tr(e.descriptor.id,n).reduce(function(e,r){return e+r.client.marginBox[t.size]},0)+r[t.line]-o;return i<=0?null:Fe(t.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!t)return u({},e,{subject:Ye({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame})});var c=i?Me(t.scroll.max,i):t.scroll.max,l=_r(t,c);return u({},e,{subject:Ye({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l}),frame:l})},kr=function(e){var r=e.at;return r?"REORDER"===r.type?r.destination.droppableId:r.combine.droppableId:null},Fr=function(e){var r=e.state,n=e.type,t=function(e,r){var n=kr(e);return n?r[n]:null}(r.impact,r.dimensions.droppables),o=Boolean(t),i=r.dimensions.droppables[r.critical.droppable.id],a=t||i,u=a.axis.direction,c="vertical"===u&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===u&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(c&&!o)return null;var l="MOVE_DOWN"===n||"MOVE_RIGHT"===n,d=r.dimensions.draggables[r.critical.draggable.id],s=r.current.page.borderBoxCenter,p=r.dimensions,f=p.draggables,g=p.droppables;return c?Nr({isMovingForward:l,previousPageBorderBoxCenter:s,draggable:d,destination:a,draggables:f,viewport:r.viewport,previousClientSelection:r.current.client.selection,previousImpact:r.impact,afterCritical:r.afterCritical}):function(e){var r=e.isMovingForward,n=e.previousPageBorderBoxCenter,t=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,u=e.viewport,c=e.afterCritical,l=function(e){var r=e.isMovingForward,n=e.pageBorderBoxCenter,t=e.source,o=e.droppables,i=e.viewport,a=t.subject.active;if(!a)return null;var u=t.axis,c=sr(a[u.start],a[u.end]),l=rr(o).filter(function(e){return e!==t}).filter(function(e){return e.isEnabled}).filter(function(e){return Boolean(e.subject.active)}).filter(function(e){return pr(i.frame)(Br(e))}).filter(function(e){var n=Br(e);return r?a[u.crossAxisEnd]<n[u.crossAxisEnd]:n[u.crossAxisStart]<a[u.crossAxisStart]}).filter(function(e){var r=Br(e),n=sr(r[u.start],r[u.end]);return c(r[u.start])||c(r[u.end])||n(a[u.start])||n(a[u.end])}).sort(function(e,n){var t=Br(e)[u.crossAxisStart],o=Br(n)[u.crossAxisStart];return r?t-o:o-t}).filter(function(e,r,n){return Br(e)[u.crossAxisStart]===Br(n[0])[u.crossAxisStart]});if(!l.length)return null;if(1===l.length)return l[0];var d=l.filter(function(e){return sr(Br(e)[u.start],Br(e)[u.end])(n[u.line])});return 1===d.length?d[0]:d.length>1?d.sort(function(e,r){return Br(e)[u.start]-Br(r)[u.start]})[0]:l.sort(function(e,r){var t=We(n,Ve(Br(e))),o=We(n,Ve(Br(r)));return t!==o?t-o:Br(e)[u.start]-Br(r)[u.start]})[0]}({isMovingForward:r,pageBorderBoxCenter:n,source:o,droppables:a,viewport:u});if(!l)return null;var d=tr(l.descriptor.id,i),s=function(e){var r=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,t=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,u=e.viewport,c=e.afterCritical;if(!n){if(t.length)return null;var l={displaced:lr,displacedBy:cr,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},d=jr({impact:l,draggable:o,droppable:a,draggables:i,afterCritical:c}),s=ur(o,a)?a:Gr(a,o,i);return Rr({draggable:o,destination:s,newPageBorderBoxCenter:d,viewport:u.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?l:null}var p,f=Boolean(r[a.axis.line]<=n.page.borderBox.center[a.axis.line]),g=(p=n.descriptor.index,n.descriptor.id===o.descriptor.id||f?p:p+1);return Or({draggable:o,insideDestination:t,destination:a,viewport:u,displacedBy:Mr(a.axis,o.displaceBy),last:lr,index:g})}({previousPageBorderBoxCenter:n,destination:l,draggable:t,draggables:i,moveRelativeTo:function(e){var r=e.pageBorderBoxCenter,n=e.viewport,t=e.destination,o=e.afterCritical;return e.insideDestination.filter(function(e){return vr({target:Lr(e,o),destination:t,viewport:n.frame,withDroppableDisplacement:!0})}).sort(function(e,n){var i=Ue(r,Er(t,Tr(e,o))),a=Ue(r,Er(t,Tr(n,o)));return i<a?-1:a<i?1:e.descriptor.index-n.descriptor.index})[0]||null}({pageBorderBoxCenter:n,viewport:u,destination:l,insideDestination:d,afterCritical:c}),insideDestination:d,viewport:u,afterCritical:c});if(!s)return null;var p=jr({impact:s,draggable:t,droppable:l,draggables:i,afterCritical:c});return{clientSelection:Ar({pageBorderBoxCenter:p,draggable:t,viewport:u}),impact:s,scrollJumpRequest:null}}({isMovingForward:l,previousPageBorderBoxCenter:s,draggable:d,isOver:a,draggables:f,droppables:g,viewport:r.viewport,afterCritical:r.afterCritical})};function Ur(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Wr(e){var r=sr(e.top,e.bottom),n=sr(e.left,e.right);return function(e){return r(e.y)&&n(e.x)}}var Hr=function(e,r){return ce(qe(e,r))};function qr(e){var r=e.displaced,n=e.id;return Boolean(r.visible[n]||r.invisible[n])}var Vr=function(e){var r=e.pageOffset,n=e.draggable,t=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,u=e.afterCritical,c=Hr(n.page.borderBox,r),l=function(e){var r=e.pageBorderBox,n=e.draggable,t=e.droppables,o=rr(t).filter(function(e){if(!e.isEnabled)return!1;var n,t,o=e.subject.active;if(!o)return!1;if(t=o,!((n=r).left<t.right&&n.right>t.left&&n.top<t.bottom&&n.bottom>t.top))return!1;if(Wr(o)(r.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],u=r[i.crossAxisStart],c=r[i.crossAxisEnd],l=sr(o[i.crossAxisStart],o[i.crossAxisEnd]),d=l(u),s=l(c);return!d&&!s||(d?u<a:c>a)});return o.length?1===o.length?o[0].descriptor.id:function(e){var r=e.pageBorderBox,n=e.candidates,t=e.draggable.page.borderBox.center,o=n.map(function(e){var n=e.axis,o=Fe(e.axis.line,r.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Ue(t,o)}}).sort(function(e,r){return r.distance-e.distance});return o[0]?o[0].id:null}({pageBorderBox:r,draggable:n,candidates:o}):null}({pageBorderBox:c,draggable:n,droppables:o});if(!l)return dr;var d,s,p=o[l],f=tr(p.descriptor.id,t),g=(d=c,(s=p.frame)?Hr(d,s.scroll.diff.value):d);return function(e){var r=e.draggable,n=e.pageBorderBoxWithDroppableScroll,t=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var u=o.axis,c=Mr(o.axis,r.displaceBy),l=c.value,d=n[u.start],s=n[u.end],p=Ke(ar(r,i),function(e){var r=e.descriptor.id,n=e.page.borderBox,o=n[u.size]/4,i=xr(r,a),c=qr({displaced:t.displaced,id:r});return i?c?s>n[u.start]+o&&s<n[u.end]-o:d>n[u.start]-l+o&&d<n[u.end]-l-o:c?s>n[u.start]+l+o&&s<n[u.end]+l-o:d>n[u.start]+o&&d<n[u.end]-o});return p?{displacedBy:c,displaced:t.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:g,draggable:n,previousImpact:i,destination:p,insideDestination:f,afterCritical:u})||function(e){var r=e.pageBorderBoxWithDroppableScroll,n=e.draggable,t=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,u=e.afterCritical,c=t.axis,l=Mr(t.axis,n.displaceBy),d=l.value,s=r[c.start],p=r[c.end],f=function(e){var r=e.draggable,n=e.closest;return n?e.inHomeList&&n.descriptor.index>r.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Ke(ar(n,o),function(e){var r=e.descriptor.id,n=e.page.borderBox.center[c.line],t=xr(r,u),o=qr({displaced:i,id:r});return t?o?p<=n:s<n-d:o?p<=n+d:s<n}),inHomeList:ur(n,t)});return Or({draggable:n,insideDestination:o,destination:t,viewport:a,last:i,displacedBy:l,index:f})}({pageBorderBoxWithDroppableScroll:g,draggable:n,destination:p,insideDestination:f,last:i.displaced,viewport:a,afterCritical:u})},zr=function(e,r){var n;return u({},e,((n={})[r.descriptor.id]=r,n))},Yr=function(e){var r=e.state,n=e.clientSelection,t=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,c=o||r.viewport,l=t||r.dimensions,d=n||r.current.client.selection,s=_e(d,r.initial.client.selection),p={offset:s,selection:d,borderBoxCenter:Me(r.initial.client.borderBoxCenter,s)},f={selection:Me(p.selection,c.scroll.current),borderBoxCenter:Me(p.borderBoxCenter,c.scroll.current),offset:Me(p.offset,c.scroll.diff.value)},g={client:p,page:f};if("COLLECTING"===r.phase)return u({phase:"COLLECTING"},r,{dimensions:l,viewport:c,current:g});var b=l.draggables[r.critical.draggable.id],m=i||Vr({pageOffset:f.offset,draggable:b,draggables:l.draggables,droppables:l.droppables,previousImpact:r.impact,viewport:c,afterCritical:r.afterCritical}),v=function(e){var r=e.draggable,n=e.draggables,t=e.droppables,o=e.impact,i=function(e){var r=e.previousImpact,n=e.impact,t=e.droppables,o=kr(r),i=kr(n);if(!o)return t;if(o===i)return t;var a=t[o];if(!a.subject.withPlaceholder)return t;var c=function(e){var r=e.subject.withPlaceholder;r||Ee();var n=e.frame;if(!n)return u({},e,{subject:Ye({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var t=r.oldFrameMaxScroll;t||Ee();var o=_r(n,t);return u({},e,{subject:Ye({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})}(a);return zr(t,c)}({previousImpact:e.previousImpact,impact:o,droppables:t}),a=kr(o);if(!a)return i;var c=t[a];if(ur(r,c))return i;if(c.subject.withPlaceholder)return i;var l=Gr(c,r,n);return zr(i,l)}({draggable:b,impact:m,previousImpact:r.impact,draggables:l.draggables,droppables:l.droppables});return u({},r,{current:g,dimensions:{draggables:l.draggables,droppables:v},impact:m,viewport:c,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})},$r=function(e){var r,n,t=e.impact,o=e.viewport,i=e.draggables,a=e.destination,c=e.forceShouldAnimate,l=t.displaced;return u({},t,{displaced:hr({afterDragging:(r=l.all,n=i,r.map(function(e){return n[e]})),destination:a,displacedBy:t.displacedBy,viewport:o.frame,forceShouldAnimate:c,last:l})})},Jr=function(e){var r=e.impact,n=e.draggable,t=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,u=jr({impact:r,draggable:n,draggables:o,droppable:t,afterCritical:a});return Ar({pageBorderBoxCenter:u,draggable:n,viewport:i})},Xr=function(e){var r=e.state,n=e.dimensions,t=e.viewport;"SNAP"!==r.movementMode&&Ee();var o=r.impact,i=t||r.viewport,a=n||r.dimensions,u=a.draggables,c=a.droppables,l=u[r.critical.draggable.id],d=kr(o);d||Ee();var s=c[d],p=$r({impact:o,viewport:i,destination:s,draggables:u}),f=Jr({impact:p,draggable:l,droppable:s,draggables:u,viewport:i,afterCritical:r.afterCritical});return Yr({impact:p,clientSelection:f,state:r,dimensions:a,viewport:i})},Kr=function(e){var r=e.draggable,n=e.home,t=e.draggables,o=e.viewport,i=Mr(n.axis,r.displaceBy),a=tr(n.descriptor.id,t),u=a.indexOf(r);-1===u&&Ee();var c,l=a.slice(u+1),d=l.reduce(function(e,r){return e[r.descriptor.id]=!0,e},{}),s={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:d};return{impact:{displaced:hr({afterDragging:l,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(c=r.descriptor,{index:c.index,droppableId:c.droppableId})}},afterCritical:s}},Qr=function(e){return"SNAP"===e.movementMode},Zr=function(e,r,n){var t,o,i=(o=r,{draggables:(t=e.dimensions).draggables,droppables:zr(t.droppables,o)});return!Qr(e)||n?Yr({state:e,dimensions:i}):Xr({state:e,dimensions:i})};function en(e){return e.isDragging&&"SNAP"===e.movementMode?u({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var rn={phase:"IDLE",completed:null,shouldFlush:!1},nn=function(e,r){if(void 0===e&&(e=rn),"FLUSH"===r.type)return u({},rn,{shouldFlush:!0});if("INITIAL_PUBLISH"===r.type){"IDLE"!==e.phase&&Ee();var n=r.payload,t=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,c=n.movementMode,l=a.draggables[t.draggable.id],d=a.droppables[t.droppable.id],s={selection:o,borderBoxCenter:l.client.borderBox.center,offset:Le},p={client:s,page:{selection:Me(s.selection,i.scroll.initial),borderBoxCenter:Me(s.selection,i.scroll.initial),offset:Me(s.selection,i.scroll.diff.value)}},f=rr(a.droppables).every(function(e){return!e.isFixedOnPage}),g=Kr({draggable:l,home:d,draggables:a.draggables,viewport:i}),b=g.impact;return{phase:"DRAGGING",isDragging:!0,critical:t,movementMode:c,dimensions:a,initial:p,current:p,isWindowScrollAllowed:f,impact:b,afterCritical:g.afterCritical,onLiftImpact:b,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===r.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&Ee(),u({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===r.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&Ee(),function(e){var r=e.state,n=e.published,t=n.modified.map(function(e){var n=r.dimensions.droppables[e.droppableId];return $e(n,e.scroll)}),o=u({},r.dimensions.droppables,{},Ze(t)),i=er(function(e){var r=e.additions,n=e.updatedDroppables,t=e.viewport,o=t.scroll.diff.value;return r.map(function(e){var r=e.descriptor.droppableId,i=function(e){var r=e.frame;return r||Ee(),r}(n[r]).scroll.diff.value;return function(e){var r=e.draggable,n=e.offset,t=e.initialWindowScroll,o=ge(r.client,n),i=be(o,t);return u({},r,{placeholder:u({},r.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:Me(o,i),initialWindowScroll:t.scroll.initial})})}({additions:n.additions,updatedDroppables:o,viewport:r.viewport})),a=u({},r.dimensions.draggables,{},i);n.removals.forEach(function(e){delete a[e]});var c={droppables:o,draggables:a},l=kr(r.impact),d=l?c.droppables[l]:null,s=c.draggables[r.critical.draggable.id],p=c.droppables[r.critical.droppable.id],f=Kr({draggable:s,home:p,draggables:a,viewport:r.viewport}),g=f.impact,b=f.afterCritical,m=d&&d.isCombineEnabled?r.impact:g,v=Vr({pageOffset:r.current.page.offset,draggable:c.draggables[r.critical.draggable.id],draggables:c.draggables,droppables:c.droppables,previousImpact:m,viewport:r.viewport,afterCritical:b}),h=u({phase:"DRAGGING"},r,{phase:"DRAGGING",impact:v,onLiftImpact:g,dimensions:c,afterCritical:b,forceShouldAnimate:!1});return"COLLECTING"===r.phase?h:u({phase:"DROP_PENDING"},h,{phase:"DROP_PENDING",reason:r.reason,isWaiting:!1})}({state:e,published:r.payload});if("MOVE"===r.type){if("DROP_PENDING"===e.phase)return e;Ur(e)||Ee();var m=r.payload.client;return Ge(m,e.current.client.selection)?e:Yr({state:e,clientSelection:m,impact:Qr(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===r.type){if("DROP_PENDING"===e.phase)return en(e);if("COLLECTING"===e.phase)return en(e);Ur(e)||Ee();var v=r.payload,h=v.id,y=v.newScroll,O=e.dimensions.droppables[h];if(!O)return e;var x=$e(O,y);return Zr(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;Ur(e)||Ee();var w=r.payload,D=w.id,C=w.isEnabled,I=e.dimensions.droppables[D];I||Ee(),I.isEnabled===C&&Ee();var E=u({},I,{isEnabled:C});return Zr(e,E,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;Ur(e)||Ee();var j=r.payload,P=j.id,S=j.isCombineEnabled,A=e.dimensions.droppables[P];A||Ee(),A.isCombineEnabled===S&&Ee();var R=u({},A,{isCombineEnabled:S});return Zr(e,R,!0)}if("MOVE_BY_WINDOW_SCROLL"===r.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Ur(e)||Ee(),e.isWindowScrollAllowed||Ee();var N=r.payload.newScroll;if(Ge(e.viewport.scroll.current,N))return en(e);var B=Pr(e.viewport,N);return Qr(e)?Xr({state:e,viewport:B}):Yr({state:e,viewport:B})}if("UPDATE_VIEWPORT_MAX_SCROLL"===r.type){if(!Ur(e))return e;var T=r.payload.maxScroll;if(Ge(T,e.viewport.scroll.max))return e;var L=u({},e.viewport,{scroll:u({},e.viewport.scroll,{max:T})});return u({phase:"DRAGGING"},e,{viewport:L})}if("MOVE_UP"===r.type||"MOVE_DOWN"===r.type||"MOVE_LEFT"===r.type||"MOVE_RIGHT"===r.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&Ee();var M=Fr({state:e,type:r.type});return M?Yr({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===r.type){var _=r.payload.reason;return"COLLECTING"!==e.phase&&Ee(),u({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:_})}if("DROP_ANIMATE"===r.type){var G=r.payload,k=G.completed,F=G.dropDuration,U=G.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&Ee(),{phase:"DROP_ANIMATING",completed:k,dropDuration:F,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===r.type?{phase:"IDLE",completed:r.payload.completed,shouldFlush:!1}:e},tn=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},on=function(){return{type:"COLLECTION_STARTING",payload:null}},an=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},un=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},cn=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},ln=function(e){return{type:"MOVE",payload:e}},dn=function(){return{type:"MOVE_UP",payload:null}},sn=function(){return{type:"MOVE_DOWN",payload:null}},pn=function(){return{type:"MOVE_RIGHT",payload:null}},fn=function(){return{type:"MOVE_LEFT",payload:null}},gn=function(e){return{type:"DROP_COMPLETE",payload:e}},bn=function(e){return{type:"DROP",payload:e}},mn="cubic-bezier(.2,1,.1,1)",vn=0,hn=.7,yn=.75,On="0.2s cubic-bezier(0.2, 0, 0, 1)",xn={fluid:"opacity "+On,snap:"transform "+On+", opacity "+On,drop:function(e){var r=e+"s "+mn;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+On,placeholder:"height "+On+", width "+On+", margin "+On},wn=function(e){return Ge(e,Le)?null:"translate("+e.x+"px, "+e.y+"px)"},Dn=wn,Cn=.33,In=.55-Cn,En=function(e){var r=e.getState,n=e.dispatch;return function(e){return function(t){if("DROP"===t.type){var o=r(),i=t.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&Ee(),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&Ee();var a=o.critical,c=o.dimensions,l=c.draggables[o.critical.draggable.id],d=function(e){var r=e.draggables,n=e.reason,t=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return t.at&&"DROP"===n?"REORDER"===t.at.type?{impact:t,didDropInsideDroppable:!0}:{impact:u({},t,{displaced:lr}),didDropInsideDroppable:!0}:{impact:$r({draggables:r,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),s=d.impact,p=d.didDropInsideDroppable,f=p?or(s):null,g=p?ir(s):null,b={index:a.draggable.index,droppableId:a.droppable.id},m={draggableId:l.descriptor.id,type:l.descriptor.type,source:b,reason:i,mode:o.movementMode,destination:f,combine:g},v=function(e){var r=e.impact,n=e.draggable,t=e.dimensions,o=e.viewport,i=e.afterCritical,a=t.draggables,u=t.droppables,c=kr(r),l=c?u[c]:null,d=u[n.descriptor.droppableId],s=Jr({impact:r,draggable:n,draggables:a,afterCritical:i,droppable:l||d,viewport:o});return _e(s,n.client.borderBox.center)}({impact:s,draggable:l,dimensions:c,viewport:o.viewport,afterCritical:o.afterCritical}),h={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:s};if(!Ge(o.current.client.offset,v)||Boolean(m.combine)){var y=function(e){var r=e.reason,n=Ue(e.current,e.destination);if(n<=0)return Cn;if(n>=1500)return.55;var t=Cn+In*(n/1500);return Number(("CANCEL"===r?.6*t:t).toFixed(2))}({current:o.current.client.offset,destination:v,reason:i});n(/* @__PURE__ */function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:y,completed:h}))}else n(gn({completed:h}))}}else n(/* @__PURE__ */function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(t)}}},jn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var Pn=function(e){var r=function(e){var r,n=e.onWindowScroll,t=xe(function(){n(jn())}),o=(r=t,{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||r()}}),i=De;function a(){return i!==De}return{start:function(){a()&&Ee(),i=Ce(window,[o])},stop:function(){a()||Ee(),t.cancel(),i(),i=De},isActive:a}}({onWindowScroll:function(r){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:r}})}});return function(e){return function(n){var t;r.isActive()||"INITIAL_PUBLISH"!==n.type||r.start(),r.isActive()&&("DROP_COMPLETE"===(t=n).type||"DROP_ANIMATE"===t.type||"FLUSH"===t.type)&&r.stop(),e(n)}}},Sn=function(e,r){r()},An=function(e,r){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:r}},Rn=function(e,r,n,t){if(e){var o=function(e){var r=!1,n=!1,t=setTimeout(function(){n=!0}),o=function(o){r||n||(r=!0,e(o),clearTimeout(t))};return o.wasCalled=function(){return r},o}(n);e(r,{announce:o}),o.wasCalled()||n(t(r))}else n(t(r))},Nn=function(e,r){var n=function(e,r){var n=function(){var e=[];return{add:function(r){var n=setTimeout(function(){return function(r){var n=Xe(e,function(e){return e.timerId===r});-1===n&&Ee(),e.splice(n,1)[0].callback()}(n)}),t={timerId:n,callback:r};e.push(t)},flush:function(){if(e.length){var r=[].concat(e);e.length=0,r.forEach(function(e){clearTimeout(e.timerId),e.callback()})}}}}(),t=null,o=function(n){t||Ee(),t=null,Sn(0,function(){return Rn(e().onDragEnd,n,r,Te)})};return{beforeCapture:function(r,n){t&&Ee(),Sn(0,function(){var t=e().onBeforeCapture;t&&t({draggableId:r,mode:n})})},beforeStart:function(r,n){t&&Ee(),Sn(0,function(){var t=e().onBeforeDragStart;t&&t(An(r,n))})},start:function(o,i){t&&Ee();var a=An(o,i);t={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add(function(){Sn(0,function(){return Rn(e().onDragStart,a,r,Ne)})})},update:function(o,i){var a=or(i),c=ir(i);t||Ee();var l=!function(e,r){if(e===r)return!0;var n=e.draggable.id===r.draggable.id&&e.draggable.droppableId===r.draggable.droppableId&&e.draggable.type===r.draggable.type&&e.draggable.index===r.draggable.index,t=e.droppable.id===r.droppable.id&&e.droppable.type===r.droppable.type;return n&&t}(o,t.lastCritical);l&&(t.lastCritical=o);var d,s,p=(s=a,!(null==(d=t.lastLocation)&&null==s||null!=d&&null!=s&&d.droppableId===s.droppableId&&d.index===s.index));p&&(t.lastLocation=a);var f,g,b=(g=c,!(null==(f=t.lastCombine)&&null==g||null!=f&&null!=g&&f.draggableId===g.draggableId&&f.droppableId===g.droppableId));if(b&&(t.lastCombine=c),l||p||b){var m=u({},An(o,t.mode),{combine:c,destination:a});n.add(function(){Sn(0,function(){return Rn(e().onDragUpdate,m,r,Be)})})}},flush:function(){t||Ee(),n.flush()},drop:o,abort:function(){if(t){var e=u({},An(t.lastCritical,t.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,r);return function(e){return function(r){return function(t){if("BEFORE_INITIAL_CAPTURE"!==t.type){if("INITIAL_PUBLISH"===t.type){var o=t.payload.critical;return n.beforeStart(o,t.payload.movementMode),r(t),void n.start(o,t.payload.movementMode)}if("DROP_COMPLETE"===t.type){var i=t.payload.completed.result;return n.flush(),r(t),void n.drop(i)}if(r(t),"FLUSH"!==t.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(t.payload.draggableId,t.payload.movementMode)}}}},Bn=function(e){return function(r){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var t=e.getState();"DROP_ANIMATING"!==t.phase&&Ee(),e.dispatch(gn({completed:t.completed}))}else r(n)}}},Tn=function(e){var r=null,n=null;return function(t){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),r&&(r(),r=null)),t(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame(function(){n=null,r=Ce(window,[i])})}}}},Ln=function(e){return function(r){return function(n){if(r(n),"PUBLISH_WHILE_DRAGGING"===n.type){var t=e.getState();"DROP_PENDING"===t.phase&&(t.isWaiting||e.dispatch(bn({reason:t.reason})))}}}},Mn=h,_n=function(e){var r=e.scrollHeight,n=e.scrollWidth,t=e.height,o=e.width,i=_e({x:n,y:r},{x:o,y:t});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Gn=function(){var e=document.documentElement;return e||Ee(),e},kn=function(){var e=Gn();return _n({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function Fn(e,r,n){return n.descriptor.id!==r.id&&n.descriptor.type===r.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var Un,Wn,Hn=function(e,r){var n=null,t=function(e){var r=e.registry,n=e.callbacks,t={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame(function(){o=null;var e=t,i=e.additions,a=e.removals,u=e.modified,c=Object.keys(i).map(function(e){return r.draggable.getById(e).getDimension(Le)}).sort(function(e,r){return e.descriptor.index-r.descriptor.index}),l=Object.keys(u).map(function(e){return{droppableId:e,scroll:r.droppable.getById(e).callbacks.getScrollWhileDragging()}}),d={additions:c,removals:Object.keys(a),modified:l};t={additions:{},removals:{},modified:{}},n.publish(d)}))};return{add:function(e){var r=e.descriptor.id;t.additions[r]=e,t.modified[e.descriptor.droppableId]=!0,t.removals[r]&&delete t.removals[r],i()},remove:function(e){var r=e.descriptor;t.removals[r.id]=!0,t.modified[r.droppableId]=!0,t.additions[r.id]&&delete t.additions[r.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,t={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:e}),o=function(r){n||Ee();var o=n.critical.draggable;"ADDITION"===r.type&&Fn(e,o,r.value)&&t.add(r.value),"REMOVAL"===r.type&&Fn(e,o,r.value)&&t.remove(r.value)};return{updateDroppableIsEnabled:function(t,o){e.droppable.exists(t)||Ee(),n&&r.updateDroppableIsEnabled({id:t,isEnabled:o})},updateDroppableIsCombineEnabled:function(t,o){n&&(e.droppable.exists(t)||Ee(),r.updateDroppableIsCombineEnabled({id:t,isCombineEnabled:o}))},scrollDroppable:function(r,t){n&&e.droppable.getById(r).callbacks.scroll(t)},updateDroppableScroll:function(t,o){n&&(e.droppable.exists(t)||Ee(),r.updateDroppableScroll({id:t,newScroll:o}))},startPublishing:function(r){n&&Ee();var t=e.draggable.getById(r.draggableId),i=e.droppable.getById(t.descriptor.droppableId),a={draggable:t.descriptor,droppable:i.descriptor},u=e.subscribe(o);return n={critical:a,unsubscribe:u},function(e){var r,n,t,o,i,a,u,c=e.critical,l=e.scrollOptions,d=e.registry,s=(r=jn(),n=kn(),t=r.y,o=r.x,a=(i=Gn()).clientWidth,u=i.clientHeight,{frame:ce({top:t,left:o,right:o+a,bottom:t+u}),scroll:{initial:r,current:r,max:n,diff:{value:Le,displacement:Le}}}),p=s.scroll.current,f=c.droppable,g=d.droppable.getAllByType(f.type).map(function(e){return e.callbacks.getDimensionAndWatchScroll(p,l)}),b=d.draggable.getAllByType(c.draggable.type).map(function(e){return e.getDimension(p)});return{dimensions:{draggables:er(b),droppables:Ze(g)},critical:c,viewport:s}}({critical:a,registry:e,scrollOptions:r.scrollOptions})},stopPublishing:function(){if(n){t.stop();var r=n.critical.droppable;e.droppable.getAllByType(r.type).forEach(function(e){return e.callbacks.dragStopped()}),n.unsubscribe(),n=null}}}},qn=function(e,r){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==r&&"DROP"===e.completed.result.reason},Vn=function(e){window.scrollBy(e.x,e.y)},zn=Oe(function(e){return rr(e).filter(function(e){return!!e.isEnabled&&!!e.frame})}),Yn=function(e){return Math.pow(e,2)},$n=function(e){var r=e.startOfRange,n=e.endOfRange,t=e.current,o=n-r;return 0===o?0:(t-r)/o},Jn=360,Xn=1200,Kn=function(e){var r=e.distanceToEdge,n=e.thresholds,t=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,r){if(e>r.startScrollingFrom)return 0;if(e<=r.maxScrollValueAt)return 28;if(e===r.startScrollingFrom)return 1;var n=$n({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),t=28*Yn(1-n);return Math.ceil(t)}(r,n);return 0===i?0:o?Math.max(function(e,r){var n=r,t=Xn,o=Date.now()-n;if(o>=Xn)return e;if(o<Jn)return 1;var i=$n({startOfRange:Jn,endOfRange:t,current:o}),a=e*Yn(i);return Math.ceil(a)}(i,t),1):i},Qn=function(e){var r,n,t=e.container,o=e.distanceToEdges,i=e.dragStartTime,a=e.axis,u=e.shouldUseTimeDampening,c={startScrollingFrom:.25*(r=t)[(n=a).size],maxScrollValueAt:.05*r[n.size]};return o[a.end]<o[a.start]?Kn({distanceToEdge:o[a.end],thresholds:c,dragStartTime:i,shouldUseTimeDampening:u}):-1*Kn({distanceToEdge:o[a.start],thresholds:c,dragStartTime:i,shouldUseTimeDampening:u})},Zn=He(function(e){return 0===e?0:e}),et=function(e){var r=e.dragStartTime,n=e.container,t=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},u=Qn({container:n,distanceToEdges:a,dragStartTime:r,axis:gr,shouldUseTimeDampening:i}),c=Qn({container:n,distanceToEdges:a,dragStartTime:r,axis:br,shouldUseTimeDampening:i}),l=Zn({x:c,y:u});if(Ge(l,Le))return null;var d=function(e){var r=e.container,n=e.subject,t=e.proposedScroll,o=n.height>r.height,i=n.width>r.width;return i||o?i&&o?null:{x:i?0:t.x,y:o?0:t.y}:t}({container:n,subject:t,proposedScroll:l});return d?Ge(d,Le)?null:d:null},rt=He(function(e){return 0===e?0:e>0?1:-1}),nt=(Un=function(e,r){return e<0?e:e>r?e-r:0},function(e){var r=e.current,n=e.max,t=e.change,o=Me(r,t),i={x:Un(o.x,n.x),y:Un(o.y,n.y)};return Ge(i,Le)?null:i}),tt=function(e){var r=e.max,n=e.current,t=e.change,o={x:Math.max(n.x,r.x),y:Math.max(n.y,r.y)},i=rt(t),a=nt({max:o,current:n,change:i});return!a||0!==i.x&&0===a.x||0!==i.y&&0===a.y},ot=function(e,r){return tt({current:e.scroll.current,max:e.scroll.max,change:r})},it=function(e,r){var n=e.frame;return!!n&&tt({current:n.scroll.current,max:n.scroll.max,change:r})},at=function(e){var r=e.state,n=e.dragStartTime,t=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=r.current.page.borderBoxCenter,u=r.dimensions.draggables[r.critical.draggable.id].page.marginBox;if(r.isWindowScrollAllowed){var c=function(e){var r=e.viewport,n=e.subject,t=e.center,o=e.shouldUseTimeDampening,i=et({dragStartTime:e.dragStartTime,container:r.frame,subject:n,center:t,shouldUseTimeDampening:o});return i&&ot(r,i)?i:null}({dragStartTime:n,viewport:r.viewport,subject:u,center:a,shouldUseTimeDampening:t});if(c)return void o(c)}var l=function(e){var r,n=e.center,t=e.destination,o=e.droppables;if(t){var i=o[t];return i.frame?i:null}return r=n,Ke(zn(o),function(e){return e.frame||Ee(),Wr(e.frame.pageMarginBox)(r)})}({center:a,destination:kr(r.impact),droppables:r.dimensions.droppables});if(l){var d=function(e){var r=e.droppable,n=e.subject,t=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=r.frame;if(!a)return null;var u=et({dragStartTime:o,container:a.pageMarginBox,subject:n,center:t,shouldUseTimeDampening:i});return u&&it(r,u)?u:null}({dragStartTime:n,droppable:l,subject:u,center:a,shouldUseTimeDampening:t});d&&i(l.descriptor.id,d)}},ut=function(e){var r=e.move,n=e.scrollDroppable,t=e.scrollWindow;return function(e){var o=e.scrollJumpRequest;if(o){var i=kr(e.impact);i||Ee();var a=function(e,r){if(!it(e,r))return r;var t=function(e,r){var n=e.frame;return n&&it(e,r)?nt({current:n.scroll.current,max:n.scroll.max,change:r}):null}(e,r);if(!t)return n(e.descriptor.id,r),null;var o=_e(r,t);return n(e.descriptor.id,o),_e(r,o)}(e.dimensions.droppables[i],o);if(a){var u=e.viewport,c=function(e,r,n){if(!e)return n;if(!ot(r,n))return n;var o=function(e,r){if(!ot(e,r))return null;var n=e.scroll.max,t=e.scroll.current;return nt({current:t,max:n,change:r})}(r,n);if(!o)return t(n),null;var i=_e(n,o);return t(i),_e(n,i)}(e.isWindowScrollAllowed,u,a);c&&function(e,n){var t=Me(e.current.client.selection,n);r({client:t})}(e,c)}}}},ct={base:Wn="data-rbd-drag-handle",draggableId:Wn+"-draggable-id",contextId:Wn+"-context-id"},lt=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),dt=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),st="data-rbd-scroll-container-context-id",pt=function(e,r){return e.map(function(e){var n=e.styles[r];return n?e.selector+" { "+n+" }":""}).join(" ")},ft="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect,gt=function(){var e=document.querySelector("head");return e||Ee(),e},bt=function(e){var r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.type="text/css",r};var mt=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function vt(e){return e instanceof mt(e).HTMLElement}function ht(){var e={draggables:{},droppables:{}},r=[];function n(e){r.length&&r.forEach(function(r){return r(e)})}function t(r){return e.draggables[r]||null}function o(r){return e.droppables[r]||null}return{draggable:{register:function(r){e.draggables[r.descriptor.id]=r,n({type:"ADDITION",value:r})},update:function(r,n){var t=e.draggables[n.descriptor.id];t&&t.uniqueId===r.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[r.descriptor.id]=r)},unregister:function(r){var o=r.descriptor.id,i=t(o);i&&r.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:r}))},getById:function(e){var r=t(e);return r||Ee(),r},findById:t,exists:function(e){return Boolean(t(e))},getAllByType:function(r){return Je(e.draggables).filter(function(e){return e.descriptor.type===r})}},droppable:{register:function(r){e.droppables[r.descriptor.id]=r},unregister:function(r){var n=o(r.descriptor.id);n&&r.uniqueId===n.uniqueId&&delete e.droppables[r.descriptor.id]},getById:function(e){var r=o(e);return r||Ee(),r},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(r){return Je(e.droppables).filter(function(e){return e.descriptor.type===r})}},subscribe:function(e){return r.push(e),function(){var n=r.indexOf(e);-1!==n&&r.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},r.length=0}}}var yt=o.a.createContext(null),Ot=function(){var e=document.body;return e||Ee(),e},xt={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},wt=0,Dt={separator:"::"};function Ct(e,r){return void 0===r&&(r=Dt),ae(function(){return""+e+r.separator+wt++},[r.separator,e])}var It=o.a.createContext(null);function Et(e){var r=Object(t.useRef)(e);return Object(t.useEffect)(function(){r.current=e}),r}var jt,Pt,St=((jt={})[13]=!0,jt[9]=!0,jt),At=function(e){St[e.keyCode]&&e.preventDefault()},Rt=function(){var e="visibilitychange";return"undefined"==typeof document?e:Ke([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],function(e){return"on"+e in document})||e}(),Nt={type:"IDLE"};function Bt(){}var Tt=((Pt={})[34]=!0,Pt[33]=!0,Pt[36]=!0,Pt[35]=!0,Pt);var Lt={type:"IDLE"},Mt={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};var _t=function(e){return ce(e.getBoundingClientRect()).center},Gt="undefined"==typeof document?"matches":Ke(["matches","msMatchesSelector","webkitMatchesSelector"],function(e){return e in Element.prototype})||"matches";function kt(e,r){var n,t=r.target;if(!((n=t)instanceof mt(n).Element))return null;var o=function(e,r){return e.closest?e.closest(r):function e(r,n){return null==r?null:r[Gt](n)?r:e(r.parentElement,n)}(e,r)}(t,"["+ct.contextId+'="'+e+'"]');return o&&vt(o)?o:null}function Ft(e){e.preventDefault()}function Ut(e){var r=e.expected,n=e.phase;return!!(0,e.isLockActive)()&&r===n}function Wt(e){var r=e.lockAPI,n=e.store,t=e.registry,o=e.draggableId;if(r.isClaimed())return!1;var i=t.draggable.findById(o);return!!i&&!!i.options.isEnabled&&!!qn(n.getState(),o)}function Ht(e){var r=e.lockAPI,n=e.contextId,t=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,c=e.sourceEvent;if(!Wt({lockAPI:r,store:t,registry:o,draggableId:i}))return null;var l=o.draggable.getById(i),d=function(e,r){var n="["+lt.contextId+'="'+e+'"]',t=Ke(Qe(document.querySelectorAll(n)),function(e){return e.getAttribute(lt.id)===r});return t&&vt(t)?t:null}(n,l.descriptor.id);if(!d)return null;if(c&&!l.options.canDragInteractiveElements&&function(e,r){var n=r.target;return!!vt(n)&&function e(r,n){if(null==n)return!1;if(Boolean(Mt[n.tagName.toLowerCase()]))return!0;var t=n.getAttribute("contenteditable");return"true"===t||""===t||n!==r&&e(r,n.parentElement)}(e,n)}(d,c))return null;var s=r.claim(a||De),p="PRE_DRAG";function f(){return l.options.shouldRespectForcePress}function g(){return r.isActive(s)}var b=function(e,r){Ut({expected:e,phase:p,isLockActive:g})&&t.dispatch(r())}.bind(null,"DRAGGING");function m(e){function n(){r.release(),p="COMPLETED"}function o(r,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=Ce(window,[{eventName:"click",fn:Ft,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),t.dispatch(bn({reason:r}))}return"PRE_DRAG"!==p&&(n(),"PRE_DRAG"!==p&&Ee()),t.dispatch(/* @__PURE__ */function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),p="DRAGGING",u({isActive:function(){return Ut({expected:"DRAGGING",phase:p,isLockActive:g})},shouldRespectForcePress:f,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return Ut({expected:"PRE_DRAG",phase:p,isLockActive:g})},shouldRespectForcePress:f,fluidLift:function(e){var r=xe(function(e){b(function(){return ln({client:e})})});return u({},m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return r.cancel()},actions:{move:r}}),{move:r})},snapLift:function(){var e={moveUp:function(){return b(dn)},moveRight:function(){return b(pn)},moveDown:function(){return b(sn)},moveLeft:function(){return b(fn)}};return m({liftActionArgs:{id:i,clientSelection:_t(d),movementMode:"SNAP"},cleanup:De,actions:e})},abort:function(){Ut({expected:"PRE_DRAG",phase:p,isLockActive:g})&&r.release()}}}var qt=[function(e){var r=Object(t.useRef)(Nt),n=Object(t.useRef)(De),o=ae(function(){return{eventName:"mousedown",fn:function(r){if(!r.defaultPrevented&&0===r.button&&!(r.ctrlKey||r.metaKey||r.shiftKey||r.altKey)){var t=e.findClosestDraggableId(r);if(t){var o=e.tryGetLock(t,u,{sourceEvent:r});if(o){r.preventDefault();var i={x:r.clientX,y:r.clientY};n.current(),d(o,i)}}}}}},[e]),i=ae(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(r){if(!r.defaultPrevented){var n=e.findClosestDraggableId(r);if(n){var t=e.findOptionsForDraggable(n);t&&(t.shouldRespectForcePress||e.canGetLock(n)&&r.preventDefault())}}}}},[e]),a=ue(function(){n.current=Ce(window,[i,o],{passive:!1,capture:!0})},[i,o]),u=ue(function(){"IDLE"!==r.current.type&&(r.current=Nt,n.current(),a())},[a]),c=ue(function(){var e=r.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[u]),l=ue(function(){var e=function(e){var r=e.cancel,n=e.completed,t=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var r=e.button,n=e.clientX,i=e.clientY;if(0===r){var a={x:n,y:i},u=t();if("DRAGGING"===u.type)return e.preventDefault(),void u.actions.move(a);if("PENDING"!==u.type&&Ee(),c=u.point,l=a,Math.abs(l.x-c.x)>=5||Math.abs(l.y-c.y)>=5){var c,l;e.preventDefault();var d=u.actions.fluidLift(a);o({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var o=t();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):r()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===t().type&&e.preventDefault(),r()}},{eventName:"keydown",fn:function(e){if("PENDING"!==t().type)return 27===e.keyCode?(e.preventDefault(),void r()):void At(e);r()}},{eventName:"resize",fn:r},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===t().type&&r()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=t();"IDLE"===n.type&&Ee(),n.actions.shouldRespectForcePress()?r():e.preventDefault()}},{eventName:Rt,fn:r}]}({cancel:c,completed:u,getPhase:function(){return r.current},setPhase:function(e){r.current=e}});n.current=Ce(window,e,{capture:!0,passive:!1})},[c,u]),d=ue(function(e,n){"IDLE"!==r.current.type&&Ee(),r.current={type:"PENDING",point:n,actions:e},l()},[l]);ft(function(){return a(),function(){n.current()}},[a])},function(e){var r=Object(t.useRef)(Bt),n=ae(function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var t=e.findClosestDraggableId(n);if(t){var i=e.tryGetLock(t,c,{sourceEvent:n});if(i){n.preventDefault();var a=!0,u=i.snapLift();r.current(),r.current=Ce(window,function(e,r){function n(){r(),e.cancel()}return[{eventName:"keydown",fn:function(t){return 27===t.keyCode?(t.preventDefault(),void n()):32===t.keyCode?(t.preventDefault(),r(),void e.drop()):40===t.keyCode?(t.preventDefault(),void e.moveDown()):38===t.keyCode?(t.preventDefault(),void e.moveUp()):39===t.keyCode?(t.preventDefault(),void e.moveRight()):37===t.keyCode?(t.preventDefault(),void e.moveLeft()):void(Tt[t.keyCode]?t.preventDefault():At(t))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Rt,fn:n}]}(u,c),{capture:!0,passive:!1})}}}function c(){a||Ee(),a=!1,r.current(),o()}}}},[e]),o=ue(function(){r.current=Ce(window,[n],{passive:!1,capture:!0})},[n]);ft(function(){return o(),function(){r.current()}},[o])},function(e){var r=Object(t.useRef)(Lt),n=Object(t.useRef)(De),o=ue(function(){return r.current},[]),i=ue(function(e){r.current=e},[]),a=ae(function(){return{eventName:"touchstart",fn:function(r){if(!r.defaultPrevented){var t=e.findClosestDraggableId(r);if(t){var o=e.tryGetLock(t,c,{sourceEvent:r});if(o){var i=r.touches[0],a={x:i.clientX,y:i.clientY};n.current(),p(o,a)}}}}}},[e]),u=ue(function(){n.current=Ce(window,[a],{capture:!0,passive:!1})},[a]),c=ue(function(){var e=r.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Lt),n.current(),u())},[u,i]),l=ue(function(){var e=r.current;c(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[c]),d=ue(function(){var e={capture:!0,passive:!1},r={cancel:l,completed:c,getPhase:o},t=Ce(window,function(e){var r=e.cancel,n=e.completed,t=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=t();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else r()}},{eventName:"touchend",fn:function(e){var o=t();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):r()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===t().type?(e.preventDefault(),r()):r()}},{eventName:"touchforcechange",fn:function(e){var n=t();"IDLE"===n.type&&Ee();var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void r():void e.preventDefault();i&&r()}}},{eventName:Rt,fn:r}]}(r),e),i=Ce(window,function(e){var r=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:r},{eventName:"resize",fn:r},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),r()):r()}},{eventName:Rt,fn:r}]}(r),e);n.current=function(){t(),i()}},[l,o,c]),s=ue(function(){var e=o();"PENDING"!==e.type&&Ee();var r=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:r,hasMoved:!1})},[o,i]),p=ue(function(e,r){"IDLE"!==o().type&&Ee();var n=setTimeout(s,120);i({type:"PENDING",point:r,actions:e,longPressTimerId:n}),d()},[d,o,i,s]);ft(function(){return u(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Lt))}},[o,u,i]),ft(function(){return Ce(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])},[])}];function Vt(e){return e.current||Ee(),e.current}function zt(e){var r=e.contextId,n=e.setCallbacks,i=e.sensors,a=e.nonce,c=e.dragHandleUsageInstructions,l=Object(t.useRef)(null),p=Et(e),f=ue(function(){return{onBeforeCapture:(e=p.current).onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate};var e},[p]),g=function(e){var r=ae(function(){return"rbd-announcement-"+e},[e]),n=Object(t.useRef)(null);return Object(t.useEffect)(function(){var e=document.createElement("div");return n.current=e,e.id=r,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),u(e.style,xt),Ot().appendChild(e),function(){setTimeout(function(){var r=Ot();r.contains(e)&&r.removeChild(e),e===n.current&&(n.current=null)})}},[r]),ue(function(e){var r=n.current;r&&(r.textContent=e)},[])}(r),m=function(e){var r=e.contextId,n=e.text,o=Ct("hidden-text",{separator:"-"}),i=ae(function(){return"rbd-hidden-text-"+(e={contextId:r,uniqueId:o}).contextId+"-"+e.uniqueId;var e},[o,r]);return Object(t.useEffect)(function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",Ot().appendChild(e),function(){var r=Ot();r.contains(e)&&r.removeChild(e)}},[i,n]),i}({contextId:r,text:c}),y=function(e,r){var n=ae(function(){return function(e){var r,n,t,o=(r=e,function(e){return"["+e+'="'+r+'"]'}),i=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(ct.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),a=[(t="\n transition: "+xn.outOfTheWay+";\n ",{selector:o(lt.contextId),styles:{dragging:t,dropAnimating:t,userCancel:t}}),i,{selector:o(dt.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:pt(a,"always"),resting:pt(a,"resting"),dragging:pt(a,"dragging"),dropAnimating:pt(a,"dropAnimating"),userCancel:pt(a,"userCancel")}}(e)},[e]),o=Object(t.useRef)(null),i=Object(t.useRef)(null),a=ue(Oe(function(e){var r=i.current;r||Ee(),r.textContent=e}),[]),u=ue(function(e){var r=o.current;r||Ee(),r.textContent=e},[]);ft(function(){(o.current||i.current)&&Ee();var t=bt(r),c=bt(r);return o.current=t,i.current=c,t.setAttribute("data-rbd-always",e),c.setAttribute("data-rbd-dynamic",e),gt().appendChild(t),gt().appendChild(c),u(n.always),a(n.resting),function(){var e=function(e){var r=e.current;r||Ee(),gt().removeChild(r),e.current=null};e(o),e(i)}},[r,u,a,n.always,n.resting,e]);var c=ue(function(){return a(n.dragging)},[a,n.dragging]),l=ue(function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)},[a,n.dropAnimating,n.userCancel]),d=ue(function(){i.current&&a(n.resting)},[a,n.resting]);return ae(function(){return{dragging:c,dropping:l,resting:d}},[c,l,d])}(r,a),O=ue(function(e){Vt(l).dispatch(e)},[]),x=ae(function(){return v({publishWhileDragging:tn,updateDroppableScroll:an,updateDroppableIsEnabled:un,updateDroppableIsCombineEnabled:cn,collectionStarting:on},O)},[O]),w=function(){var e=ae(ht,[]);return Object(t.useEffect)(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}(),D=ae(function(){return Hn(w,x)},[w,x]),I=ae(function(){return function(e){var r=e.scrollDroppable,n=e.scrollWindow,t=e.move,o=function(e){var r=e.scrollDroppable,n=xe(e.scrollWindow),t=xe(r),o=null,i=function(e){o||Ee();var r=o,i=r.shouldUseTimeDampening,a=r.dragStartTime;at({state:e,scrollWindow:n,scrollDroppable:t,dragStartTime:a,shouldUseTimeDampening:i})};return{start:function(e){o&&Ee();var r=Date.now(),n=!1,t=function(){n=!0};at({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:t,scrollDroppable:t}),o={dragStartTime:r,shouldUseTimeDampening:n},n&&i(e)},stop:function(){o&&(n.cancel(),t.cancel(),o=null)},scroll:i}}({scrollWindow:n,scrollDroppable:r}),i=ut({move:t,scrollWindow:n,scrollDroppable:r});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}}(u({scrollWindow:Vn,scrollDroppable:D.scrollDroppable},v({move:ln},O)))},[D.scrollDroppable,O]),E=function(e){var r=Object(t.useRef)({}),n=Object(t.useRef)(null),o=Object(t.useRef)(null),i=Object(t.useRef)(!1),a=ue(function(e,n){var t={id:e,focus:n};return r.current[e]=t,function(){var n=r.current;n[e]!==t&&delete n[e]}},[]),u=ue(function(r){var n=function(e,r){var n="["+ct.contextId+'="'+e+'"]',t=Qe(document.querySelectorAll(n));if(!t.length)return null;var o=Ke(t,function(e){return e.getAttribute(ct.draggableId)===r});return o&&vt(o)?o:null}(e,r);n&&n!==document.activeElement&&n.focus()},[e]),c=ue(function(e,r){n.current===e&&(n.current=r)},[]),l=ue(function(){o.current||i.current&&(o.current=requestAnimationFrame(function(){o.current=null;var e=n.current;e&&u(e)}))},[u]),d=ue(function(e){n.current=null;var r=document.activeElement;r&&r.getAttribute(ct.draggableId)===e&&(n.current=e)},[]);return ft(function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}},[]),ae(function(){return{register:a,tryRecordFocus:d,tryRestoreFocusRecorded:l,tryShiftRecord:c}},[a,d,l,c])}(r),j=ae(function(){return function(e){var r,n=e.dimensionMarshal,t=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,u=e.autoScroller;return b(nn,Mn(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),t=function(){throw new Error(s(15))},o={getState:n.getState,dispatch:function(){return t.apply(void 0,arguments)}},i=r.map(function(e){return e(o)});return t=h.apply(void 0,i)(n.dispatch),d(d({},n),{},{dispatch:t})}}}((r=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&r.dragging(),"DROP_ANIMATE"===n.type&&r.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||r.resting(),e(n)}}}),/* @__PURE__ */function(e){return function(){return function(r){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),r(n)}}}}(n),/* @__PURE__ */function(e){return function(r){var n=r.getState,t=r.dispatch;return function(r){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,u=i.clientSelection,c=i.movementMode,l=n();"DROP_ANIMATING"===l.phase&&t(gn({completed:l.completed})),"IDLE"!==n().phase&&Ee(),t({type:"FLUSH",payload:null}),t({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:c}});var d={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===c}},s=e.startPublishing(d),p=s.critical,f=s.dimensions,g=s.viewport;t(/* @__PURE__ */function(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:p,dimensions:f,clientSelection:u,movementMode:c,viewport:g}))}else r(o)}}}}(n),En,Bn,Tn,Ln,/* @__PURE__ */function(e){return function(r){return function(n){return function(t){if("DROP_COMPLETE"===(o=t).type||"DROP_ANIMATE"===o.type||"FLUSH"===o.type)return e.stop(),void n(t);var o;if("INITIAL_PUBLISH"===t.type){n(t);var i=r.getState();return"DRAGGING"!==i.phase&&Ee(),void e.start(i)}n(t),e.scroll(r.getState())}}}}(u),Pn,/* @__PURE__ */function(e){var r=!1;return function(){return function(n){return function(t){if("INITIAL_PUBLISH"===t.type)return r=!0,e.tryRecordFocus(t.payload.critical.draggable.id),n(t),void e.tryRestoreFocusRecorded();if(n(t),r){if("FLUSH"===t.type)return r=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===t.type){r=!1;var o=t.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(t),Nn(i,a))))}({announce:g,autoScroller:I,dimensionMarshal:D,focusMarshal:E,getResponders:f,styleMarshal:y})},[g,I,D,E,f,y]);l.current=j;var P=ue(function(){var e=Vt(l);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})},[]),S=ue(function(){var e=Vt(l).getState();return e.isDragging||"DROP_ANIMATING"===e.phase},[]);n(ae(function(){return{isDragging:S,tryAbort:P}},[S,P]));var A=ue(function(e){return qn(Vt(l).getState(),e)},[]),R=ue(function(){return Ur(Vt(l).getState())},[]),N=ae(function(){return{marshal:D,focus:E,contextId:r,canLift:A,isMovementAllowed:R,dragHandleUsageInstructionsId:m,registry:w}},[r,D,m,E,A,R,w]);return function(e){var r=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,u=[].concat(a?qt:[],i||[]),c=Object(t.useState)(function(){/* @__PURE__ */
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../_virtual/_commonjsHelpers/index.js"),r=require("../../../../../_virtual/index/index11.js"),n=require("react"),t=require("react-dom"),o=require("react-is");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=/* @__PURE__ */i(n),u=/* @__PURE__ */i(t),c=/* @__PURE__ */i(o);!function(e){var r,n,t;window,e.exports=(r=a.default,n=u.default,t=c.default,function(e){var r={};function n(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=/* @__PURE__ */Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)n.d(t,o,function(r){return e[r]}.bind(null,o));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=11)}([function(e,n){e.exports=r},function(e,r,n){e.exports=n(5)},function(e,r){e.exports=n},function(e,r){e.exports=t},function(e,r,n){var t=n(3),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(e){return t.isMemo(e)?a:u[e.$$typeof]||o}u[t.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[t.Memo]=a;var l=Object.defineProperty,d=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(r,n,t){if("string"!=typeof n){if(g){var o=f(n);o&&o!==g&&e(r,o,t)}var a=d(n);s&&(a=a.concat(s(n)));for(var u=c(r),b=c(n),m=0;m<a.length;++m){var v=a[m];if(!(i[v]||t&&t[v]||b&&b[v]||u&&u[v])){var h=p(n,v);try{l(r,v,h)}catch(y){}}}}return r}},function(e,r,n){n(6);var t=n(0),o=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),r.Fragment=i("react.fragment")}var a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,r,n){var t,i={},l=null,d=null;for(t in void 0!==n&&(l=""+n),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(d=r.ref),r)u.call(r,t)&&!c.hasOwnProperty(t)&&(i[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===i[t]&&(i[t]=r[t]);return{$$typeof:o,type:e,key:l,ref:d,props:i,_owner:a.current}}r.jsx=l,r.jsxs=l},function(e,r,n){var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=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 r={},n=0;n<10;n++)r["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(r).map(function(e){return r[e]}).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(o){return!1}}()?Object.assign:function(e,r){for(var n,a,u=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))o.call(n,l)&&(u[l]=n[l]);if(t){a=t(n);for(var d=0;d<a.length;d++)i.call(n,a[d])&&(u[a[d]]=n[a[d]])}}return u}},function(e,r,n){e.exports=n(8)()},function(e,r,n){var t=n(9);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,r,n,o,i,a){if(a!==t){var u=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 u.name="Invariant Violation",u}}function r(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,r,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,function(e,r,n){n.r(r),n.d(r,"default",function(){return ki}),n.d(r,"moveColumn",function(){return xi}),n.d(r,"moveCard",function(){return wi}),n.d(r,"addColumn",function(){return Di}),n.d(r,"removeColumn",function(){return Ci}),n.d(r,"changeColumn",function(){return Ii}),n.d(r,"addCard",function(){return Ei}),n.d(r,"removeCard",function(){return ji}),n.d(r,"changeCard",function(){return Pi});var t=n(0),o=n.n(t);function i(e,r){return(i=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function a(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,i(e,r)}function u(){return(u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e}).apply(this,arguments)}function c(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function l(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function d(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?l(Object(n),!0).forEach(function(r){c(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var p="function"==typeof Symbol&&Symbol.observable||"@@observable",f=function(){return Math.random().toString(36).substring(7).split("").join(".")},g={INIT:"@@redux/INIT"+f(),REPLACE:"@@redux/REPLACE"+f()};function b(e,r,n){var t;if("function"==typeof r&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(s(0));if("function"==typeof r&&void 0===n&&(n=r,r=void 0),void 0!==n){if("function"!=typeof n)throw new Error(s(1));return n(b)(e,r)}if("function"!=typeof e)throw new Error(s(2));var o=e,i=r,a=[],u=a,c=!1;function l(){u===a&&(u=a.slice())}function d(){if(c)throw new Error(s(3));return i}function f(e){if("function"!=typeof e)throw new Error(s(4));if(c)throw new Error(s(5));var r=!0;return l(),u.push(e),function(){if(r){if(c)throw new Error(s(6));r=!1,l();var n=u.indexOf(e);u.splice(n,1),a=null}}}function m(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var r=e;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}(e))throw new Error(s(7));if(void 0===e.type)throw new Error(s(8));if(c)throw new Error(s(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var r=a=u,n=0;n<r.length;n++)(0,r[n])();return e}return m({type:g.INIT}),(t={dispatch:m,subscribe:f,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw new Error(s(10));o=e,m({type:g.REPLACE})}})[p]=function(){var e,r=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(s(11));function n(){e.next&&e.next(d())}return n(),{unsubscribe:r(n)}}})[p]=function(){return this},e},t}function m(e,r){return function(){return r(e.apply(this,arguments))}}function v(e,r){if("function"==typeof e)return m(e,r);if("object"!=typeof e||null===e)throw new Error(s(16));var n={};for(var t in e){var o=e[t];"function"==typeof o&&(n[t]=m(o,r))}return n}function h(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return 0===r.length?function(e){return e}:1===r.length?r[0]:r.reduce(function(e,r){return function(){return e(r.apply(void 0,arguments))}})}n(7);var y=o.a.createContext(null),O=function(e){e()};var x={notify:function(){},get:function(){return[]}};function w(e,r){var n,t=x;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=r?r.addNestedSub(o):e.subscribe(o),t=function(){var e=O,r=null,n=null;return{clear:function(){r=null,n=null},notify:function(){e(function(){for(var e=r;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=r;n;)e.push(n),n=n.next;return e},subscribe:function(e){var t=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:r=o,function(){t&&null!==r&&(t=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:r=o.next)}}}}())}var a={addNestedSub:function(e){return i(),t.subscribe(e)},notifyNestedSubs:function(){t.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,t.clear(),t=x)},getListeners:function(){return t}};return a}var D="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect,C=function(e){var r=e.store,n=e.context,i=e.children,a=Object(t.useMemo)(function(){var e=w(r);return e.onStateChange=e.notifyNestedSubs,{store:r,subscription:e}},[r]),u=Object(t.useMemo)(function(){return r.getState()},[r]);D(function(){var e=a.subscription;return e.trySubscribe(),u!==r.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[a,u]);var c=n||y;return o.a.createElement(c.Provider,{value:a},i)};function I(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}var E=n(4),j=n.n(E),P=n(3),S=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],A=["reactReduxForwardedRef"],R=[],N=[null,null];function B(e,r){var n=e[1];return[r.payload,n+1]}function T(e,r,n){D(function(){return e.apply(void 0,r)},n)}function L(e,r,n,t,o,i,a){e.current=t,r.current=o,n.current=!1,i.current&&(i.current=null,a())}function M(e,r,n,t,o,i,a,u,c,l){if(e){var d=!1,s=null,p=function(){if(!d){var e,n,p=r.getState();try{e=t(p,o.current)}catch(f){n=f,s=f}n||(s=null),e===i.current?a.current||c():(i.current=e,u.current=e,a.current=!0,l({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=p,n.trySubscribe(),p(),function(){if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,s)throw s}}}var _=function(){return[null,0]};function G(e,r){void 0===r&&(r={});var n=r,i=n.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,c=n.methodName,l=void 0===c?"connectAdvanced":c,d=n.renderCountProp,s=void 0===d?void 0:d,p=n.shouldHandleStateChanges,f=void 0===p||p,g=n.storeKey,b=void 0===g?"store":g,m=n.forwardRef,v=void 0!==m&&m,h=n.context,O=void 0===h?y:h,x=I(n,S),D=O;return function(r){var n=r.displayName||r.name||"Component",i=a(n),c=u({},x,{getDisplayName:a,methodName:l,renderCountProp:s,shouldHandleStateChanges:f,storeKey:b,displayName:i,wrappedComponentName:n,WrappedComponent:r}),d=x.pure,p=d?t.useMemo:function(e){return e()};function g(n){var i=Object(t.useMemo)(function(){var e=n.reactReduxForwardedRef,r=I(n,A);return[n.context,e,r]},[n]),a=i[0],l=i[1],d=i[2],s=Object(t.useMemo)(function(){return a&&a.Consumer&&Object(P.isContextConsumer)(o.a.createElement(a.Consumer,null))?a:D},[a,D]),g=Object(t.useContext)(s),b=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),m=b?n.store:g.store,v=Object(t.useMemo)(function(){return e(m.dispatch,c)},[m]),h=Object(t.useMemo)(function(){if(!f)return N;var e=w(m,b?null:g.subscription),r=e.notifyNestedSubs.bind(e);return[e,r]},[m,b,g]),y=h[0],O=h[1],x=Object(t.useMemo)(function(){return b?g:u({},g,{subscription:y})},[b,g,y]),C=Object(t.useReducer)(B,R,_),E=C[0][0],j=C[1];if(E&&E.error)throw E.error;var S=Object(t.useRef)(),G=Object(t.useRef)(d),k=Object(t.useRef)(),F=Object(t.useRef)(!1),U=p(function(){return k.current&&d===G.current?k.current:v(m.getState(),d)},[m,E,d]);T(L,[G,S,F,d,U,k,O]),T(M,[f,m,y,v,G,S,F,k,O,j],[m,y,v]);var W=Object(t.useMemo)(function(){return o.a.createElement(r,u({},U,{ref:l}))},[l,r,U]);return Object(t.useMemo)(function(){return f?o.a.createElement(s.Provider,{value:x},W):W},[s,W,x])}var m=d?o.a.memo(g):g;if(m.WrappedComponent=r,m.displayName=g.displayName=i,v){var h=o.a.forwardRef(function(e,r){return o.a.createElement(m,u({},e,{reactReduxForwardedRef:r}))});return h.displayName=i,h.WrappedComponent=r,j()(h,r)}return j()(m,r)}}function k(e,r){return e===r?0!==e||0!==r||1/e==1/r:e!=e&&r!=r}function F(e,r){if(k(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var n=Object.keys(e),t=Object.keys(r);if(n.length!==t.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(r,n[o])||!k(e[n[o]],r[n[o]]))return!1;return!0}function U(e){return function(r,n){var t=e(r,n);function o(){return t}return o.dependsOnOwnProps=!1,o}}function W(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function H(e,r){return function(r,n){var t=function(e,r){return t.dependsOnOwnProps?t.mapToProps(e,r):t.mapToProps(e)};return t.dependsOnOwnProps=!0,t.mapToProps=function(r,n){t.mapToProps=e,t.dependsOnOwnProps=W(e);var o=t(r,n);return"function"==typeof o&&(t.mapToProps=o,t.dependsOnOwnProps=W(o),o=t(r,n)),o},t}}var q=[function(e){return"function"==typeof e?H(e):void 0},function(e){return e?void 0:U(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?U(function(r){return function(e,r){var n={},t=function(t){var o=e[t];"function"==typeof o&&(n[t]=function(){return r(o.apply(void 0,arguments))})};for(var o in e)t(o);return n}(e,r)}):void 0}],V=[function(e){return"function"==typeof e?H(e):void 0},function(e){return e?void 0:U(function(){return{}})}];function z(e,r,n){return u({},n,e,r)}var Y=[function(e){return"function"==typeof e?/* @__PURE__ */function(e){return function(r,n){var t,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(r,n,u){var c=e(r,n,u);return a?o&&i(c,t)||(t=c):(a=!0,t=c),t}}}(e):void 0},function(e){return e?void 0:function(){return z}}],$=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function J(e,r,n,t){return function(o,i){return n(e(o,i),r(t,i),i)}}function X(e,r,n,t,o){var i,a,u,c,l,d=o.areStatesEqual,s=o.areOwnPropsEqual,p=o.areStatePropsEqual,f=!1;return function(o,g){return f?function(o,f){var g,b,m=!s(f,a),v=!d(o,i);return i=o,a=f,m&&v?(u=e(i,a),r.dependsOnOwnProps&&(c=r(t,a)),l=n(u,c,a)):m?(e.dependsOnOwnProps&&(u=e(i,a)),r.dependsOnOwnProps&&(c=r(t,a)),l=n(u,c,a)):v?(g=e(i,a),b=!p(g,u),u=g,b&&(l=n(u,c,a)),l):l}(o,g):(u=e(i=o,a=g),c=r(t,a),l=n(u,c,a),f=!0,l)}}function K(e,r){var n=r.initMapStateToProps,t=r.initMapDispatchToProps,o=r.initMergeProps,i=I(r,$),a=n(e,i),u=t(e,i),c=o(e,i);return(i.pure?X:J)(a,u,c,e,i)}var Q=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Z(e,r,n){for(var t=r.length-1;t>=0;t--){var o=r[t](e);if(o)return o}return function(r,t){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+t.wrappedComponentName+".")}}function ee(e,r){return e===r}var re,ne=function(){var e={},r=e.connectHOC,n=void 0===r?G:r,t=e.mapStateToPropsFactories,o=void 0===t?V:t,i=e.mapDispatchToPropsFactories,a=void 0===i?q:i,c=e.mergePropsFactories,l=void 0===c?Y:c,d=e.selectorFactory,s=void 0===d?K:d;return function(e,r,t,i){void 0===i&&(i={});var c=i,d=c.pure,p=void 0===d||d,f=c.areStatesEqual,g=void 0===f?ee:f,b=c.areOwnPropsEqual,m=void 0===b?F:b,v=c.areStatePropsEqual,h=void 0===v?F:v,y=c.areMergedPropsEqual,O=void 0===y?F:y,x=I(c,Q),w=Z(e,o,"mapStateToProps"),D=Z(r,a,"mapDispatchToProps"),C=Z(t,l,"mergeProps");return n(s,u({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:D,initMergeProps:C,pure:p,areStatesEqual:g,areOwnPropsEqual:m,areStatePropsEqual:h,areMergedPropsEqual:O},x))}}(),te=n(2),oe=n.n(te);function ie(e,r){var n=Object(t.useState)(function(){return{inputs:r,result:e()}})[0],o=Object(t.useRef)(!0),i=Object(t.useRef)(n),a=o.current||Boolean(r&&i.current.inputs&&function(e,r){if(e.length!==r.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==r[n])return!1;return!0}(r,i.current.inputs))?i.current:{inputs:r,result:e()};return Object(t.useEffect)(function(){o.current=!1,i.current=a},[a]),a.result}re=te.unstable_batchedUpdates,O=re;var ae=ie,ue=function(e,r){return ie(function(){return e},r)},ce=function(e){var r=e.top,n=e.right,t=e.bottom,o=e.left;return{top:r,right:n,bottom:t,left:o,width:n-o,height:t-r,x:o,y:r,center:{x:(n+o)/2,y:(t+r)/2}}},le=function(e,r){return{top:e.top-r.top,left:e.left-r.left,bottom:e.bottom+r.bottom,right:e.right+r.right}},de=function(e,r){return{top:e.top+r.top,left:e.left+r.left,bottom:e.bottom-r.bottom,right:e.right-r.right}},se={top:0,right:0,bottom:0,left:0},pe=function(e){var r=e.borderBox,n=e.margin,t=void 0===n?se:n,o=e.border,i=void 0===o?se:o,a=e.padding,u=void 0===a?se:a,c=ce(le(r,t)),l=ce(de(r,i)),d=ce(de(l,u));return{marginBox:c,borderBox:ce(r),paddingBox:l,contentBox:d,margin:t,border:i,padding:u}},fe=function(e){var r=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(r);return isNaN(n)&&function(){throw new Error("Invariant failed")}(),n},ge=function(e,r){var n,t,o=e.borderBox,i=e.border,a=e.margin,u=e.padding,c=(t=r,{top:(n=o).top+t.y,left:n.left+t.x,bottom:n.bottom+t.y,right:n.right+t.x});return pe({borderBox:c,border:i,margin:a,padding:u})},be=function(e,r){return void 0===r&&(r={x:window.pageXOffset,y:window.pageYOffset}),ge(e,r)},me=function(e,r){var n={top:fe(r.marginTop),right:fe(r.marginRight),bottom:fe(r.marginBottom),left:fe(r.marginLeft)},t={top:fe(r.paddingTop),right:fe(r.paddingRight),bottom:fe(r.paddingBottom),left:fe(r.paddingLeft)},o={top:fe(r.borderTopWidth),right:fe(r.borderRightWidth),bottom:fe(r.borderBottomWidth),left:fe(r.borderLeftWidth)};return pe({borderBox:e,margin:n,padding:t,border:o})},ve=function(e){var r=e.getBoundingClientRect(),n=window.getComputedStyle(e);return me(r,n)},he=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ye(e,r){if(e.length!==r.length)return!1;for(var n=0;n<e.length;n++)if(!((t=e[n])===(o=r[n])||he(t)&&he(o)))return!1;var t,o;return!0}var Oe=function(e,r){var n;void 0===r&&(r=ye);var t,o=[],i=!1;return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return i&&n===this&&r(a,o)||(t=e.apply(this,a),i=!0,n=this,o=a),t}},xe=function(e){var r=[],n=null,t=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];r=o,n||(n=requestAnimationFrame(function(){n=null,e.apply(void 0,r)}))};return t.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},t};function we(e,r){}function De(){}function Ce(e,r,n){var t=r.map(function(r){var t=u({},n,{},r.options);return e.addEventListener(r.eventName,r.fn,t),function(){e.removeEventListener(r.eventName,r.fn,t)}});return function(){t.forEach(function(e){e()})}}function Ie(e){this.message=e}function Ee(e,r){throw new Ie("Invariant failed")}we.bind(null,"warn"),we.bind(null,"error"),Ie.prototype.toString=function(){return this.message};var je=function(e){function r(){for(var r,n=arguments.length,t=new Array(n),o=0;o<n;o++)t[o]=arguments[o];return(r=e.call.apply(e,[this].concat(t))||this).callbacks=null,r.unbind=De,r.onWindowError=function(e){var n=r.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof Ie&&e.preventDefault()},r.getCallbacks=function(){if(!r.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return r.callbacks},r.setCallbacks=function(e){r.callbacks=e},r}a(r,e);var n=r.prototype;return n.componentDidMount=function(){this.unbind=Ce(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof Ie))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},r}(o.a.Component),Pe=function(e){return e+1},Se=function(e,r){var n=e.droppableId===r.droppableId,t=Pe(e.index),o=Pe(r.index);return n?"\n You have moved the item from position "+t+"\n to position "+o+"\n ":"\n You have moved the item from position "+t+"\n in list "+e.droppableId+"\n to list "+r.droppableId+"\n in position "+o+"\n "},Ae=function(e,r,n){return r.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+r.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},Re=function(e){return"\n The item has returned to its starting position\n of "+Pe(e.index)+"\n"},Ne=function(e){return"\n You have lifted an item in position "+Pe(e.source.index)+"\n"},Be=function(e){var r=e.destination;if(r)return Se(e.source,r);var n=e.combine;return n?Ae(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},Te=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Re(e.source)+"\n ";var r=e.destination,n=e.combine;return r?"\n You have dropped the item.\n "+Se(e.source,r)+"\n ":n?"\n You have dropped the item.\n "+Ae(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Re(e.source)+"\n "},Le={x:0,y:0},Me=function(e,r){return{x:e.x+r.x,y:e.y+r.y}},_e=function(e,r){return{x:e.x-r.x,y:e.y-r.y}},Ge=function(e,r){return e.x===r.x&&e.y===r.y},ke=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Fe=function(e,r,n){var t;return void 0===n&&(n=0),(t={})[e]=r,t["x"===e?"y":"x"]=n,t},Ue=function(e,r){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))},We=function(e,r){return Math.min.apply(Math,r.map(function(r){return Ue(e,r)}))},He=function(e){return function(r){return{x:e(r.x),y:e(r.y)}}},qe=function(e,r){return{top:e.top+r.y,left:e.left+r.x,bottom:e.bottom+r.y,right:e.right+r.x}},Ve=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}]},ze=function(e,r){return r&&r.shouldClipSubject?function(e,r){var n=ce({top:Math.max(r.top,e.top),right:Math.min(r.right,e.right),bottom:Math.min(r.bottom,e.bottom),left:Math.max(r.left,e.left)});return n.width<=0||n.height<=0?null:n}(r.pageMarginBox,e):ce(e)},Ye=function(e){var r,n,t=e.page,o=e.withPlaceholder,i=e.axis,a=e.frame,c=function(e,r,n){var t;return n&&n.increasedBy?u({},e,((t={})[r.end]=e[r.end]+n.increasedBy[r.line],t)):e}((r=t.marginBox,(n=a)?qe(r,n.scroll.diff.displacement):r),i,o);return{page:t,withPlaceholder:o,active:ze(c,a)}},$e=function(e,r){e.frame||Ee();var n=e.frame,t=_e(r,n.scroll.initial),o=ke(t),i=u({},n,{scroll:{initial:n.scroll.initial,current:r,diff:{value:t,displacement:o},max:n.scroll.max}});return u({},e,{frame:i,subject:Ye({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})};function Je(e){return Object.values?Object.values(e):Object.keys(e).map(function(r){return e[r]})}function Xe(e,r){if(e.findIndex)return e.findIndex(r);for(var n=0;n<e.length;n++)if(r(e[n]))return n;return-1}function Ke(e,r){if(e.find)return e.find(r);var n=Xe(e,r);return-1!==n?e[n]:void 0}function Qe(e){return Array.prototype.slice.call(e)}var Ze=Oe(function(e){return e.reduce(function(e,r){return e[r.descriptor.id]=r,e},{})}),er=Oe(function(e){return e.reduce(function(e,r){return e[r.descriptor.id]=r,e},{})}),rr=Oe(function(e){return Je(e)}),nr=Oe(function(e){return Je(e)}),tr=Oe(function(e,r){return nr(r).filter(function(r){return e===r.descriptor.droppableId}).sort(function(e,r){return e.descriptor.index-r.descriptor.index})});function or(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function ir(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var ar=Oe(function(e,r){return r.filter(function(r){return r.descriptor.id!==e.descriptor.id})}),ur=function(e,r){return e.descriptor.droppableId===r.descriptor.id},cr={point:Le,value:0},lr={invisible:{},visible:{},all:[]},dr={displaced:lr,displacedBy:cr,at:null},sr=function(e,r){return function(n){return e<=n&&n<=r}},pr=function(e){var r=sr(e.top,e.bottom),n=sr(e.left,e.right);return function(t){if(r(t.top)&&r(t.bottom)&&n(t.left)&&n(t.right))return!0;var o=r(t.top)||r(t.bottom),i=n(t.left)||n(t.right);if(o&&i)return!0;var a=t.top<e.top&&t.bottom>e.bottom,u=t.left<e.left&&t.right>e.right;return!(!a||!u)||a&&i||u&&o}},fr=function(e){var r=sr(e.top,e.bottom),n=sr(e.left,e.right);return function(e){return r(e.top)&&r(e.bottom)&&n(e.left)&&n(e.right)}},gr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},br={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},mr=function(e){var r,n,t,o=e.target,i=e.destination,a=e.viewport,u=e.withDroppableDisplacement,c=e.isVisibleThroughFrameFn,l=u?function(e,r){var n=r.frame?r.frame.scroll.diff.displacement:Le;return qe(e,n)}(o,i):o;return r=l,t=c,!!(n=i).subject.active&&t(n.subject.active)(r)&&function(e,r,n){return n(r)(e)}(l,a,c)},vr=function(e){return mr(u({},e,{isVisibleThroughFrameFn:fr}))};function hr(e){var r=e.afterDragging,n=e.destination,t=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return r.reduce(function(e,r){var c=function(e,r){var n=e.page.marginBox,t={top:r.point.y,right:0,bottom:0,left:r.point.x};return ce(le(n,t))}(r,t),l=r.descriptor.id;if(e.all.push(l),!function(e){return mr(u({},e,{isVisibleThroughFrameFn:pr}))}({target:c,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[r.descriptor.id]=!0,e;var d={draggableId:l,shouldAnimate:function(e,r,n){if("boolean"==typeof n)return n;if(!r)return!0;var t=r.invisible,o=r.visible;if(t[e])return!1;var i=o[e];return!i||i.shouldAnimate}(l,a,i)};return e.visible[l]=d,e},{all:[],visible:{},invisible:{}})}function yr(e){var r=e.insideDestination,n=e.inHomeList,t=e.displacedBy,o=e.destination,i=function(e,r){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return r.inHomeList?n:n+1}(r,{inHomeList:n});return{displaced:lr,displacedBy:t,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function Or(e){var r=e.draggable,n=e.insideDestination,t=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,u=e.index,c=e.forceShouldAnimate,l=ur(r,t);if(null==u)return yr({insideDestination:n,inHomeList:l,displacedBy:i,destination:t});var d=Ke(n,function(e){return e.descriptor.index===u});if(!d)return yr({insideDestination:n,inHomeList:l,displacedBy:i,destination:t});var s=ar(r,n),p=n.indexOf(d);return{displaced:hr({afterDragging:s.slice(p),destination:t,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:c}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:t.descriptor.id,index:u}}}}function xr(e,r){return Boolean(r.effected[e])}var wr=function(e,r){return r.margin[e.start]+r.borderBox[e.size]/2},Dr=function(e,r,n){return r[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},Cr=function(e){var r=e.axis,n=e.moveRelativeTo,t=e.isMoving;return Fe(r.line,n.marginBox[r.end]+wr(r,t),Dr(r,n.marginBox,t))},Ir=function(e){var r,n,t=e.axis,o=e.moveRelativeTo,i=e.isMoving;return Fe(t.line,o.marginBox[t.start]-(r=t,(n=i).margin[r.end]+n.borderBox[r.size]/2),Dr(t,o.marginBox,i))},Er=function(e,r){var n=e.frame;return n?Me(r,n.scroll.diff.displacement):r},jr=function(e){var r=function(e){var r=e.impact,n=e.draggable,t=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,u=r.at;return t&&u?"REORDER"===u.type?function(e){var r=e.impact,n=e.draggable,t=e.draggables,o=e.droppable,i=e.afterCritical,a=tr(o.descriptor.id,t),u=n.page,c=o.axis;if(!a.length)return function(e){var r=e.axis,n=e.moveInto,t=e.isMoving;return Fe(r.line,n.contentBox[r.start]+wr(r,t),Dr(r,n.contentBox,t))}({axis:c,moveInto:o.page,isMoving:u});var l=r.displaced,d=r.displacedBy,s=l.all[0];if(s){var p=t[s];if(xr(s,i))return Ir({axis:c,moveRelativeTo:p.page,isMoving:u});var f=ge(p.page,d.point);return Ir({axis:c,moveRelativeTo:f,isMoving:u})}var g=a[a.length-1];if(g.descriptor.id===n.descriptor.id)return u.borderBox.center;if(xr(g.descriptor.id,i)){var b=ge(g.page,ke(i.displacedBy.point));return Cr({axis:c,moveRelativeTo:b,isMoving:u})}return Cr({axis:c,moveRelativeTo:g.page,isMoving:u})}({impact:r,draggable:n,draggables:o,droppable:t,afterCritical:i}):function(e){var r=e.afterCritical,n=e.impact,t=e.draggables,o=ir(n);o||Ee();var i=o.draggableId,a=t[i].page.borderBox.center,u=function(e){var r=e.displaced,n=e.afterCritical,t=e.combineWith,o=e.displacedBy,i=Boolean(r.visible[t]||r.invisible[t]);return xr(t,n)?i?Le:ke(o.point):i?o.point:Le}({displaced:n.displaced,afterCritical:r,combineWith:i,displacedBy:n.displacedBy});return Me(a,u)}({impact:r,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?Er(n,r):r},Pr=function(e,r){var n=_e(r,e.scroll.initial),t=ke(n);return{frame:ce({top:r.y,bottom:r.y+e.frame.height,left:r.x,right:r.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:r,diff:{value:n,displacement:t}}}};function Sr(e,r){return e.map(function(e){return r[e]})}var Ar=function(e){var r,n,t=e.pageBorderBoxCenter,o=e.draggable,i=(r=e.viewport,n=t,Me(r.scroll.diff.displacement,n)),a=_e(i,o.page.borderBox.center);return Me(o.client.borderBox.center,a)},Rr=function(e){var r=e.draggable,n=e.destination,t=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,c=void 0!==a&&a,l=_e(t,r.page.borderBox.center),d={target:qe(r.page.borderBox,l),destination:n,withDroppableDisplacement:i,viewport:o};return c?function(e){return mr(u({},e,{isVisibleThroughFrameFn:(r=e.destination.axis,function(e){var n=sr(e.top,e.bottom),t=sr(e.left,e.right);return function(e){return r===gr?n(e.top)&&n(e.bottom):t(e.left)&&t(e.right)}})}));var r}(d):vr(d)},Nr=function(e){var r=e.isMovingForward,n=e.draggable,t=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,c=e.previousPageBorderBoxCenter,l=e.previousClientSelection,d=e.afterCritical;if(!t.isEnabled)return null;var s=tr(t.descriptor.id,o),p=ur(n,t),f=function(e){var r=e.isMovingForward,n=e.draggable,t=e.destination,o=e.insideDestination,i=e.previousImpact;if(!t.isCombineEnabled)return null;if(!or(i))return null;function a(e){var r={type:"COMBINE",combine:{draggableId:e,droppableId:t.descriptor.id}};return u({},i,{at:r})}var c=i.displaced.all,l=c.length?c[0]:null;if(r)return l?a(l):null;var d=ar(n,o);if(!l)return d.length?a(d[d.length-1].descriptor.id):null;var s=Xe(d,function(e){return e.descriptor.id===l});-1===s&&Ee();var p=s-1;return p<0?null:a(d[p].descriptor.id)}({isMovingForward:r,draggable:n,destination:t,insideDestination:s,previousImpact:i})||function(e){var r=e.isMovingForward,n=e.isInHomeList,t=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,u=e.previousImpact,c=e.viewport,l=e.afterCritical,d=u.at;if(d||Ee(),"REORDER"===d.type){var s=function(e){var r=e.isMovingForward,n=e.isInHomeList,t=e.insideDestination,o=e.location;if(!t.length)return null;var i=o.index,a=r?i+1:i-1,u=t[0].descriptor.index,c=t[t.length-1].descriptor.index;return a<u||a>(n?c:c+1)?null:a}({isMovingForward:r,isInHomeList:n,location:d.destination,insideDestination:a});return null==s?null:Or({draggable:t,insideDestination:a,destination:i,viewport:c,last:u.displaced,displacedBy:u.displacedBy,index:s})}var p=function(e){var r=e.isMovingForward,n=e.draggables,t=e.combine,o=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var i=t.draggableId,a=n[i].descriptor.index;return xr(i,o)?r?a:a-1:r?a+1:a}({isMovingForward:r,destination:i,draggables:o,combine:d.combine,afterCritical:l});return null==p?null:Or({draggable:t,insideDestination:a,destination:i,viewport:c,last:u.displaced,displacedBy:u.displacedBy,index:p})}({isMovingForward:r,isInHomeList:p,draggable:n,draggables:o,destination:t,insideDestination:s,previousImpact:i,viewport:a,afterCritical:d});if(!f)return null;var g=jr({impact:f,draggable:n,droppable:t,draggables:o,afterCritical:d});if(Rr({draggable:n,destination:t,newPageBorderBoxCenter:g,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Ar({pageBorderBoxCenter:g,draggable:n,viewport:a}),impact:f,scrollJumpRequest:null};var b=_e(g,c);return{clientSelection:l,impact:function(e){var r=e.impact,n=e.viewport,t=e.destination,o=e.draggables,i=e.maxScrollChange,a=Pr(n,Me(n.scroll.current,i)),c=t.frame?$e(t,Me(t.frame.scroll.current,i)):t,l=r.displaced,d=hr({afterDragging:Sr(l.all,o),destination:t,displacedBy:r.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),s=hr({afterDragging:Sr(l.all,o),destination:c,displacedBy:r.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),p={},f={},g=[l,d,s];return l.all.forEach(function(e){var r=function(e,r){for(var n=0;n<r.length;n++){var t=r[n].visible[e];if(t)return t}return null}(e,g);r?f[e]=r:p[e]=!0}),u({},r,{displaced:{all:l.all,invisible:p,visible:f}})}({impact:f,viewport:a,destination:t,draggables:o,maxScrollChange:b}),scrollJumpRequest:b}},Br=function(e){var r=e.subject.active;return r||Ee(),r},Tr=function(e,r){var n=e.page.borderBox.center;return xr(e.descriptor.id,r)?_e(n,r.displacedBy.point):n},Lr=function(e,r){var n=e.page.borderBox;return xr(e.descriptor.id,r)?qe(n,ke(r.displacedBy.point)):n},Mr=Oe(function(e,r){var n=r[e.line];return{value:n,point:Fe(e.line,n)}}),_r=function(e,r){return u({},e,{scroll:u({},e.scroll,{max:r})})},Gr=function(e,r,n){var t=e.frame;ur(r,e)&&Ee(),e.subject.withPlaceholder&&Ee();var o=Mr(e.axis,r.displaceBy).point,i=function(e,r,n){var t=e.axis;if("virtual"===e.descriptor.mode)return Fe(t.line,r[t.line]);var o=e.subject.page.contentBox[t.size],i=tr(e.descriptor.id,n).reduce(function(e,r){return e+r.client.marginBox[t.size]},0)+r[t.line]-o;return i<=0?null:Fe(t.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!t)return u({},e,{subject:Ye({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame})});var c=i?Me(t.scroll.max,i):t.scroll.max,l=_r(t,c);return u({},e,{subject:Ye({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l}),frame:l})},kr=function(e){var r=e.at;return r?"REORDER"===r.type?r.destination.droppableId:r.combine.droppableId:null},Fr=function(e){var r=e.state,n=e.type,t=function(e,r){var n=kr(e);return n?r[n]:null}(r.impact,r.dimensions.droppables),o=Boolean(t),i=r.dimensions.droppables[r.critical.droppable.id],a=t||i,u=a.axis.direction,c="vertical"===u&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===u&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(c&&!o)return null;var l="MOVE_DOWN"===n||"MOVE_RIGHT"===n,d=r.dimensions.draggables[r.critical.draggable.id],s=r.current.page.borderBoxCenter,p=r.dimensions,f=p.draggables,g=p.droppables;return c?Nr({isMovingForward:l,previousPageBorderBoxCenter:s,draggable:d,destination:a,draggables:f,viewport:r.viewport,previousClientSelection:r.current.client.selection,previousImpact:r.impact,afterCritical:r.afterCritical}):function(e){var r=e.isMovingForward,n=e.previousPageBorderBoxCenter,t=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,u=e.viewport,c=e.afterCritical,l=function(e){var r=e.isMovingForward,n=e.pageBorderBoxCenter,t=e.source,o=e.droppables,i=e.viewport,a=t.subject.active;if(!a)return null;var u=t.axis,c=sr(a[u.start],a[u.end]),l=rr(o).filter(function(e){return e!==t}).filter(function(e){return e.isEnabled}).filter(function(e){return Boolean(e.subject.active)}).filter(function(e){return pr(i.frame)(Br(e))}).filter(function(e){var n=Br(e);return r?a[u.crossAxisEnd]<n[u.crossAxisEnd]:n[u.crossAxisStart]<a[u.crossAxisStart]}).filter(function(e){var r=Br(e),n=sr(r[u.start],r[u.end]);return c(r[u.start])||c(r[u.end])||n(a[u.start])||n(a[u.end])}).sort(function(e,n){var t=Br(e)[u.crossAxisStart],o=Br(n)[u.crossAxisStart];return r?t-o:o-t}).filter(function(e,r,n){return Br(e)[u.crossAxisStart]===Br(n[0])[u.crossAxisStart]});if(!l.length)return null;if(1===l.length)return l[0];var d=l.filter(function(e){return sr(Br(e)[u.start],Br(e)[u.end])(n[u.line])});return 1===d.length?d[0]:d.length>1?d.sort(function(e,r){return Br(e)[u.start]-Br(r)[u.start]})[0]:l.sort(function(e,r){var t=We(n,Ve(Br(e))),o=We(n,Ve(Br(r)));return t!==o?t-o:Br(e)[u.start]-Br(r)[u.start]})[0]}({isMovingForward:r,pageBorderBoxCenter:n,source:o,droppables:a,viewport:u});if(!l)return null;var d=tr(l.descriptor.id,i),s=function(e){var r=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,t=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,u=e.viewport,c=e.afterCritical;if(!n){if(t.length)return null;var l={displaced:lr,displacedBy:cr,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},d=jr({impact:l,draggable:o,droppable:a,draggables:i,afterCritical:c}),s=ur(o,a)?a:Gr(a,o,i);return Rr({draggable:o,destination:s,newPageBorderBoxCenter:d,viewport:u.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?l:null}var p,f=Boolean(r[a.axis.line]<=n.page.borderBox.center[a.axis.line]),g=(p=n.descriptor.index,n.descriptor.id===o.descriptor.id||f?p:p+1);return Or({draggable:o,insideDestination:t,destination:a,viewport:u,displacedBy:Mr(a.axis,o.displaceBy),last:lr,index:g})}({previousPageBorderBoxCenter:n,destination:l,draggable:t,draggables:i,moveRelativeTo:function(e){var r=e.pageBorderBoxCenter,n=e.viewport,t=e.destination,o=e.afterCritical;return e.insideDestination.filter(function(e){return vr({target:Lr(e,o),destination:t,viewport:n.frame,withDroppableDisplacement:!0})}).sort(function(e,n){var i=Ue(r,Er(t,Tr(e,o))),a=Ue(r,Er(t,Tr(n,o)));return i<a?-1:a<i?1:e.descriptor.index-n.descriptor.index})[0]||null}({pageBorderBoxCenter:n,viewport:u,destination:l,insideDestination:d,afterCritical:c}),insideDestination:d,viewport:u,afterCritical:c});if(!s)return null;var p=jr({impact:s,draggable:t,droppable:l,draggables:i,afterCritical:c});return{clientSelection:Ar({pageBorderBoxCenter:p,draggable:t,viewport:u}),impact:s,scrollJumpRequest:null}}({isMovingForward:l,previousPageBorderBoxCenter:s,draggable:d,isOver:a,draggables:f,droppables:g,viewport:r.viewport,afterCritical:r.afterCritical})};function Ur(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Wr(e){var r=sr(e.top,e.bottom),n=sr(e.left,e.right);return function(e){return r(e.y)&&n(e.x)}}var Hr=function(e,r){return ce(qe(e,r))};function qr(e){var r=e.displaced,n=e.id;return Boolean(r.visible[n]||r.invisible[n])}var Vr=function(e){var r=e.pageOffset,n=e.draggable,t=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,u=e.afterCritical,c=Hr(n.page.borderBox,r),l=function(e){var r=e.pageBorderBox,n=e.draggable,t=e.droppables,o=rr(t).filter(function(e){if(!e.isEnabled)return!1;var n,t,o=e.subject.active;if(!o)return!1;if(t=o,!((n=r).left<t.right&&n.right>t.left&&n.top<t.bottom&&n.bottom>t.top))return!1;if(Wr(o)(r.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],u=r[i.crossAxisStart],c=r[i.crossAxisEnd],l=sr(o[i.crossAxisStart],o[i.crossAxisEnd]),d=l(u),s=l(c);return!d&&!s||(d?u<a:c>a)});return o.length?1===o.length?o[0].descriptor.id:function(e){var r=e.pageBorderBox,n=e.candidates,t=e.draggable.page.borderBox.center,o=n.map(function(e){var n=e.axis,o=Fe(e.axis.line,r.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Ue(t,o)}}).sort(function(e,r){return r.distance-e.distance});return o[0]?o[0].id:null}({pageBorderBox:r,draggable:n,candidates:o}):null}({pageBorderBox:c,draggable:n,droppables:o});if(!l)return dr;var d,s,p=o[l],f=tr(p.descriptor.id,t),g=(d=c,(s=p.frame)?Hr(d,s.scroll.diff.value):d);return function(e){var r=e.draggable,n=e.pageBorderBoxWithDroppableScroll,t=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var u=o.axis,c=Mr(o.axis,r.displaceBy),l=c.value,d=n[u.start],s=n[u.end],p=Ke(ar(r,i),function(e){var r=e.descriptor.id,n=e.page.borderBox,o=n[u.size]/4,i=xr(r,a),c=qr({displaced:t.displaced,id:r});return i?c?s>n[u.start]+o&&s<n[u.end]-o:d>n[u.start]-l+o&&d<n[u.end]-l-o:c?s>n[u.start]+l+o&&s<n[u.end]+l-o:d>n[u.start]+o&&d<n[u.end]-o});return p?{displacedBy:c,displaced:t.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:g,draggable:n,previousImpact:i,destination:p,insideDestination:f,afterCritical:u})||function(e){var r=e.pageBorderBoxWithDroppableScroll,n=e.draggable,t=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,u=e.afterCritical,c=t.axis,l=Mr(t.axis,n.displaceBy),d=l.value,s=r[c.start],p=r[c.end],f=function(e){var r=e.draggable,n=e.closest;return n?e.inHomeList&&n.descriptor.index>r.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Ke(ar(n,o),function(e){var r=e.descriptor.id,n=e.page.borderBox.center[c.line],t=xr(r,u),o=qr({displaced:i,id:r});return t?o?p<=n:s<n-d:o?p<=n+d:s<n}),inHomeList:ur(n,t)});return Or({draggable:n,insideDestination:o,destination:t,viewport:a,last:i,displacedBy:l,index:f})}({pageBorderBoxWithDroppableScroll:g,draggable:n,destination:p,insideDestination:f,last:i.displaced,viewport:a,afterCritical:u})},zr=function(e,r){var n;return u({},e,((n={})[r.descriptor.id]=r,n))},Yr=function(e){var r=e.state,n=e.clientSelection,t=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,c=o||r.viewport,l=t||r.dimensions,d=n||r.current.client.selection,s=_e(d,r.initial.client.selection),p={offset:s,selection:d,borderBoxCenter:Me(r.initial.client.borderBoxCenter,s)},f={selection:Me(p.selection,c.scroll.current),borderBoxCenter:Me(p.borderBoxCenter,c.scroll.current),offset:Me(p.offset,c.scroll.diff.value)},g={client:p,page:f};if("COLLECTING"===r.phase)return u({phase:"COLLECTING"},r,{dimensions:l,viewport:c,current:g});var b=l.draggables[r.critical.draggable.id],m=i||Vr({pageOffset:f.offset,draggable:b,draggables:l.draggables,droppables:l.droppables,previousImpact:r.impact,viewport:c,afterCritical:r.afterCritical}),v=function(e){var r=e.draggable,n=e.draggables,t=e.droppables,o=e.impact,i=function(e){var r=e.previousImpact,n=e.impact,t=e.droppables,o=kr(r),i=kr(n);if(!o)return t;if(o===i)return t;var a=t[o];if(!a.subject.withPlaceholder)return t;var c=function(e){var r=e.subject.withPlaceholder;r||Ee();var n=e.frame;if(!n)return u({},e,{subject:Ye({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var t=r.oldFrameMaxScroll;t||Ee();var o=_r(n,t);return u({},e,{subject:Ye({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})}(a);return zr(t,c)}({previousImpact:e.previousImpact,impact:o,droppables:t}),a=kr(o);if(!a)return i;var c=t[a];if(ur(r,c))return i;if(c.subject.withPlaceholder)return i;var l=Gr(c,r,n);return zr(i,l)}({draggable:b,impact:m,previousImpact:r.impact,draggables:l.draggables,droppables:l.droppables});return u({},r,{current:g,dimensions:{draggables:l.draggables,droppables:v},impact:m,viewport:c,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})},$r=function(e){var r,n,t=e.impact,o=e.viewport,i=e.draggables,a=e.destination,c=e.forceShouldAnimate,l=t.displaced;return u({},t,{displaced:hr({afterDragging:(r=l.all,n=i,r.map(function(e){return n[e]})),destination:a,displacedBy:t.displacedBy,viewport:o.frame,forceShouldAnimate:c,last:l})})},Jr=function(e){var r=e.impact,n=e.draggable,t=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,u=jr({impact:r,draggable:n,draggables:o,droppable:t,afterCritical:a});return Ar({pageBorderBoxCenter:u,draggable:n,viewport:i})},Xr=function(e){var r=e.state,n=e.dimensions,t=e.viewport;"SNAP"!==r.movementMode&&Ee();var o=r.impact,i=t||r.viewport,a=n||r.dimensions,u=a.draggables,c=a.droppables,l=u[r.critical.draggable.id],d=kr(o);d||Ee();var s=c[d],p=$r({impact:o,viewport:i,destination:s,draggables:u}),f=Jr({impact:p,draggable:l,droppable:s,draggables:u,viewport:i,afterCritical:r.afterCritical});return Yr({impact:p,clientSelection:f,state:r,dimensions:a,viewport:i})},Kr=function(e){var r=e.draggable,n=e.home,t=e.draggables,o=e.viewport,i=Mr(n.axis,r.displaceBy),a=tr(n.descriptor.id,t),u=a.indexOf(r);-1===u&&Ee();var c,l=a.slice(u+1),d=l.reduce(function(e,r){return e[r.descriptor.id]=!0,e},{}),s={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:d};return{impact:{displaced:hr({afterDragging:l,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(c=r.descriptor,{index:c.index,droppableId:c.droppableId})}},afterCritical:s}},Qr=function(e){return"SNAP"===e.movementMode},Zr=function(e,r,n){var t,o,i=(o=r,{draggables:(t=e.dimensions).draggables,droppables:zr(t.droppables,o)});return!Qr(e)||n?Yr({state:e,dimensions:i}):Xr({state:e,dimensions:i})};function en(e){return e.isDragging&&"SNAP"===e.movementMode?u({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var rn={phase:"IDLE",completed:null,shouldFlush:!1},nn=function(e,r){if(void 0===e&&(e=rn),"FLUSH"===r.type)return u({},rn,{shouldFlush:!0});if("INITIAL_PUBLISH"===r.type){"IDLE"!==e.phase&&Ee();var n=r.payload,t=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,c=n.movementMode,l=a.draggables[t.draggable.id],d=a.droppables[t.droppable.id],s={selection:o,borderBoxCenter:l.client.borderBox.center,offset:Le},p={client:s,page:{selection:Me(s.selection,i.scroll.initial),borderBoxCenter:Me(s.selection,i.scroll.initial),offset:Me(s.selection,i.scroll.diff.value)}},f=rr(a.droppables).every(function(e){return!e.isFixedOnPage}),g=Kr({draggable:l,home:d,draggables:a.draggables,viewport:i}),b=g.impact;return{phase:"DRAGGING",isDragging:!0,critical:t,movementMode:c,dimensions:a,initial:p,current:p,isWindowScrollAllowed:f,impact:b,afterCritical:g.afterCritical,onLiftImpact:b,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===r.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&Ee(),u({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===r.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&Ee(),function(e){var r=e.state,n=e.published,t=n.modified.map(function(e){var n=r.dimensions.droppables[e.droppableId];return $e(n,e.scroll)}),o=u({},r.dimensions.droppables,{},Ze(t)),i=er(function(e){var r=e.additions,n=e.updatedDroppables,t=e.viewport,o=t.scroll.diff.value;return r.map(function(e){var r=e.descriptor.droppableId,i=function(e){var r=e.frame;return r||Ee(),r}(n[r]).scroll.diff.value;return function(e){var r=e.draggable,n=e.offset,t=e.initialWindowScroll,o=ge(r.client,n),i=be(o,t);return u({},r,{placeholder:u({},r.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:Me(o,i),initialWindowScroll:t.scroll.initial})})}({additions:n.additions,updatedDroppables:o,viewport:r.viewport})),a=u({},r.dimensions.draggables,{},i);n.removals.forEach(function(e){delete a[e]});var c={droppables:o,draggables:a},l=kr(r.impact),d=l?c.droppables[l]:null,s=c.draggables[r.critical.draggable.id],p=c.droppables[r.critical.droppable.id],f=Kr({draggable:s,home:p,draggables:a,viewport:r.viewport}),g=f.impact,b=f.afterCritical,m=d&&d.isCombineEnabled?r.impact:g,v=Vr({pageOffset:r.current.page.offset,draggable:c.draggables[r.critical.draggable.id],draggables:c.draggables,droppables:c.droppables,previousImpact:m,viewport:r.viewport,afterCritical:b}),h=u({phase:"DRAGGING"},r,{phase:"DRAGGING",impact:v,onLiftImpact:g,dimensions:c,afterCritical:b,forceShouldAnimate:!1});return"COLLECTING"===r.phase?h:u({phase:"DROP_PENDING"},h,{phase:"DROP_PENDING",reason:r.reason,isWaiting:!1})}({state:e,published:r.payload});if("MOVE"===r.type){if("DROP_PENDING"===e.phase)return e;Ur(e)||Ee();var m=r.payload.client;return Ge(m,e.current.client.selection)?e:Yr({state:e,clientSelection:m,impact:Qr(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===r.type){if("DROP_PENDING"===e.phase)return en(e);if("COLLECTING"===e.phase)return en(e);Ur(e)||Ee();var v=r.payload,h=v.id,y=v.newScroll,O=e.dimensions.droppables[h];if(!O)return e;var x=$e(O,y);return Zr(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;Ur(e)||Ee();var w=r.payload,D=w.id,C=w.isEnabled,I=e.dimensions.droppables[D];I||Ee(),I.isEnabled===C&&Ee();var E=u({},I,{isEnabled:C});return Zr(e,E,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;Ur(e)||Ee();var j=r.payload,P=j.id,S=j.isCombineEnabled,A=e.dimensions.droppables[P];A||Ee(),A.isCombineEnabled===S&&Ee();var R=u({},A,{isCombineEnabled:S});return Zr(e,R,!0)}if("MOVE_BY_WINDOW_SCROLL"===r.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Ur(e)||Ee(),e.isWindowScrollAllowed||Ee();var N=r.payload.newScroll;if(Ge(e.viewport.scroll.current,N))return en(e);var B=Pr(e.viewport,N);return Qr(e)?Xr({state:e,viewport:B}):Yr({state:e,viewport:B})}if("UPDATE_VIEWPORT_MAX_SCROLL"===r.type){if(!Ur(e))return e;var T=r.payload.maxScroll;if(Ge(T,e.viewport.scroll.max))return e;var L=u({},e.viewport,{scroll:u({},e.viewport.scroll,{max:T})});return u({phase:"DRAGGING"},e,{viewport:L})}if("MOVE_UP"===r.type||"MOVE_DOWN"===r.type||"MOVE_LEFT"===r.type||"MOVE_RIGHT"===r.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&Ee();var M=Fr({state:e,type:r.type});return M?Yr({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===r.type){var _=r.payload.reason;return"COLLECTING"!==e.phase&&Ee(),u({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:_})}if("DROP_ANIMATE"===r.type){var G=r.payload,k=G.completed,F=G.dropDuration,U=G.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&Ee(),{phase:"DROP_ANIMATING",completed:k,dropDuration:F,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===r.type?{phase:"IDLE",completed:r.payload.completed,shouldFlush:!1}:e},tn=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},on=function(){return{type:"COLLECTION_STARTING",payload:null}},an=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},un=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},cn=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},ln=function(e){return{type:"MOVE",payload:e}},dn=function(){return{type:"MOVE_UP",payload:null}},sn=function(){return{type:"MOVE_DOWN",payload:null}},pn=function(){return{type:"MOVE_RIGHT",payload:null}},fn=function(){return{type:"MOVE_LEFT",payload:null}},gn=function(e){return{type:"DROP_COMPLETE",payload:e}},bn=function(e){return{type:"DROP",payload:e}},mn="cubic-bezier(.2,1,.1,1)",vn=0,hn=.7,yn=.75,On="0.2s cubic-bezier(0.2, 0, 0, 1)",xn={fluid:"opacity "+On,snap:"transform "+On+", opacity "+On,drop:function(e){var r=e+"s "+mn;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+On,placeholder:"height "+On+", width "+On+", margin "+On},wn=function(e){return Ge(e,Le)?null:"translate("+e.x+"px, "+e.y+"px)"},Dn=wn,Cn=.33,In=.55-Cn,En=function(e){var r=e.getState,n=e.dispatch;return function(e){return function(t){if("DROP"===t.type){var o=r(),i=t.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&Ee(),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&Ee();var a=o.critical,c=o.dimensions,l=c.draggables[o.critical.draggable.id],d=function(e){var r=e.draggables,n=e.reason,t=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return t.at&&"DROP"===n?"REORDER"===t.at.type?{impact:t,didDropInsideDroppable:!0}:{impact:u({},t,{displaced:lr}),didDropInsideDroppable:!0}:{impact:$r({draggables:r,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),s=d.impact,p=d.didDropInsideDroppable,f=p?or(s):null,g=p?ir(s):null,b={index:a.draggable.index,droppableId:a.droppable.id},m={draggableId:l.descriptor.id,type:l.descriptor.type,source:b,reason:i,mode:o.movementMode,destination:f,combine:g},v=function(e){var r=e.impact,n=e.draggable,t=e.dimensions,o=e.viewport,i=e.afterCritical,a=t.draggables,u=t.droppables,c=kr(r),l=c?u[c]:null,d=u[n.descriptor.droppableId],s=Jr({impact:r,draggable:n,draggables:a,afterCritical:i,droppable:l||d,viewport:o});return _e(s,n.client.borderBox.center)}({impact:s,draggable:l,dimensions:c,viewport:o.viewport,afterCritical:o.afterCritical}),h={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:s};if(!Ge(o.current.client.offset,v)||Boolean(m.combine)){var y=function(e){var r=e.reason,n=Ue(e.current,e.destination);if(n<=0)return Cn;if(n>=1500)return.55;var t=Cn+In*(n/1500);return Number(("CANCEL"===r?.6*t:t).toFixed(2))}({current:o.current.client.offset,destination:v,reason:i});n(/* @__PURE__ */function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:y,completed:h}))}else n(gn({completed:h}))}}else n(/* @__PURE__ */function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(t)}}},jn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var Pn=function(e){var r=function(e){var r,n=e.onWindowScroll,t=xe(function(){n(jn())}),o=(r=t,{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||r()}}),i=De;function a(){return i!==De}return{start:function(){a()&&Ee(),i=Ce(window,[o])},stop:function(){a()||Ee(),t.cancel(),i(),i=De},isActive:a}}({onWindowScroll:function(r){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:r}})}});return function(e){return function(n){var t;r.isActive()||"INITIAL_PUBLISH"!==n.type||r.start(),r.isActive()&&("DROP_COMPLETE"===(t=n).type||"DROP_ANIMATE"===t.type||"FLUSH"===t.type)&&r.stop(),e(n)}}},Sn=function(e,r){r()},An=function(e,r){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:r}},Rn=function(e,r,n,t){if(e){var o=function(e){var r=!1,n=!1,t=setTimeout(function(){n=!0}),o=function(o){r||n||(r=!0,e(o),clearTimeout(t))};return o.wasCalled=function(){return r},o}(n);e(r,{announce:o}),o.wasCalled()||n(t(r))}else n(t(r))},Nn=function(e,r){var n=function(e,r){var n=function(){var e=[];return{add:function(r){var n=setTimeout(function(){return function(r){var n=Xe(e,function(e){return e.timerId===r});-1===n&&Ee(),e.splice(n,1)[0].callback()}(n)}),t={timerId:n,callback:r};e.push(t)},flush:function(){if(e.length){var r=[].concat(e);e.length=0,r.forEach(function(e){clearTimeout(e.timerId),e.callback()})}}}}(),t=null,o=function(n){t||Ee(),t=null,Sn(0,function(){return Rn(e().onDragEnd,n,r,Te)})};return{beforeCapture:function(r,n){t&&Ee(),Sn(0,function(){var t=e().onBeforeCapture;t&&t({draggableId:r,mode:n})})},beforeStart:function(r,n){t&&Ee(),Sn(0,function(){var t=e().onBeforeDragStart;t&&t(An(r,n))})},start:function(o,i){t&&Ee();var a=An(o,i);t={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add(function(){Sn(0,function(){return Rn(e().onDragStart,a,r,Ne)})})},update:function(o,i){var a=or(i),c=ir(i);t||Ee();var l=!function(e,r){if(e===r)return!0;var n=e.draggable.id===r.draggable.id&&e.draggable.droppableId===r.draggable.droppableId&&e.draggable.type===r.draggable.type&&e.draggable.index===r.draggable.index,t=e.droppable.id===r.droppable.id&&e.droppable.type===r.droppable.type;return n&&t}(o,t.lastCritical);l&&(t.lastCritical=o);var d,s,p=(s=a,!(null==(d=t.lastLocation)&&null==s||null!=d&&null!=s&&d.droppableId===s.droppableId&&d.index===s.index));p&&(t.lastLocation=a);var f,g,b=(g=c,!(null==(f=t.lastCombine)&&null==g||null!=f&&null!=g&&f.draggableId===g.draggableId&&f.droppableId===g.droppableId));if(b&&(t.lastCombine=c),l||p||b){var m=u({},An(o,t.mode),{combine:c,destination:a});n.add(function(){Sn(0,function(){return Rn(e().onDragUpdate,m,r,Be)})})}},flush:function(){t||Ee(),n.flush()},drop:o,abort:function(){if(t){var e=u({},An(t.lastCritical,t.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,r);return function(e){return function(r){return function(t){if("BEFORE_INITIAL_CAPTURE"!==t.type){if("INITIAL_PUBLISH"===t.type){var o=t.payload.critical;return n.beforeStart(o,t.payload.movementMode),r(t),void n.start(o,t.payload.movementMode)}if("DROP_COMPLETE"===t.type){var i=t.payload.completed.result;return n.flush(),r(t),void n.drop(i)}if(r(t),"FLUSH"!==t.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(t.payload.draggableId,t.payload.movementMode)}}}},Bn=function(e){return function(r){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var t=e.getState();"DROP_ANIMATING"!==t.phase&&Ee(),e.dispatch(gn({completed:t.completed}))}else r(n)}}},Tn=function(e){var r=null,n=null;return function(t){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),r&&(r(),r=null)),t(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame(function(){n=null,r=Ce(window,[i])})}}}},Ln=function(e){return function(r){return function(n){if(r(n),"PUBLISH_WHILE_DRAGGING"===n.type){var t=e.getState();"DROP_PENDING"===t.phase&&(t.isWaiting||e.dispatch(bn({reason:t.reason})))}}}},Mn=h,_n=function(e){var r=e.scrollHeight,n=e.scrollWidth,t=e.height,o=e.width,i=_e({x:n,y:r},{x:o,y:t});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Gn=function(){var e=document.documentElement;return e||Ee(),e},kn=function(){var e=Gn();return _n({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function Fn(e,r,n){return n.descriptor.id!==r.id&&n.descriptor.type===r.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var Un,Wn,Hn=function(e,r){var n=null,t=function(e){var r=e.registry,n=e.callbacks,t={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame(function(){o=null;var e=t,i=e.additions,a=e.removals,u=e.modified,c=Object.keys(i).map(function(e){return r.draggable.getById(e).getDimension(Le)}).sort(function(e,r){return e.descriptor.index-r.descriptor.index}),l=Object.keys(u).map(function(e){return{droppableId:e,scroll:r.droppable.getById(e).callbacks.getScrollWhileDragging()}}),d={additions:c,removals:Object.keys(a),modified:l};t={additions:{},removals:{},modified:{}},n.publish(d)}))};return{add:function(e){var r=e.descriptor.id;t.additions[r]=e,t.modified[e.descriptor.droppableId]=!0,t.removals[r]&&delete t.removals[r],i()},remove:function(e){var r=e.descriptor;t.removals[r.id]=!0,t.modified[r.droppableId]=!0,t.additions[r.id]&&delete t.additions[r.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,t={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:e}),o=function(r){n||Ee();var o=n.critical.draggable;"ADDITION"===r.type&&Fn(e,o,r.value)&&t.add(r.value),"REMOVAL"===r.type&&Fn(e,o,r.value)&&t.remove(r.value)};return{updateDroppableIsEnabled:function(t,o){e.droppable.exists(t)||Ee(),n&&r.updateDroppableIsEnabled({id:t,isEnabled:o})},updateDroppableIsCombineEnabled:function(t,o){n&&(e.droppable.exists(t)||Ee(),r.updateDroppableIsCombineEnabled({id:t,isCombineEnabled:o}))},scrollDroppable:function(r,t){n&&e.droppable.getById(r).callbacks.scroll(t)},updateDroppableScroll:function(t,o){n&&(e.droppable.exists(t)||Ee(),r.updateDroppableScroll({id:t,newScroll:o}))},startPublishing:function(r){n&&Ee();var t=e.draggable.getById(r.draggableId),i=e.droppable.getById(t.descriptor.droppableId),a={draggable:t.descriptor,droppable:i.descriptor},u=e.subscribe(o);return n={critical:a,unsubscribe:u},function(e){var r,n,t,o,i,a,u,c=e.critical,l=e.scrollOptions,d=e.registry,s=(r=jn(),n=kn(),t=r.y,o=r.x,a=(i=Gn()).clientWidth,u=i.clientHeight,{frame:ce({top:t,left:o,right:o+a,bottom:t+u}),scroll:{initial:r,current:r,max:n,diff:{value:Le,displacement:Le}}}),p=s.scroll.current,f=c.droppable,g=d.droppable.getAllByType(f.type).map(function(e){return e.callbacks.getDimensionAndWatchScroll(p,l)}),b=d.draggable.getAllByType(c.draggable.type).map(function(e){return e.getDimension(p)});return{dimensions:{draggables:er(b),droppables:Ze(g)},critical:c,viewport:s}}({critical:a,registry:e,scrollOptions:r.scrollOptions})},stopPublishing:function(){if(n){t.stop();var r=n.critical.droppable;e.droppable.getAllByType(r.type).forEach(function(e){return e.callbacks.dragStopped()}),n.unsubscribe(),n=null}}}},qn=function(e,r){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==r&&"DROP"===e.completed.result.reason},Vn=function(e){window.scrollBy(e.x,e.y)},zn=Oe(function(e){return rr(e).filter(function(e){return!!e.isEnabled&&!!e.frame})}),Yn=function(e){return Math.pow(e,2)},$n=function(e){var r=e.startOfRange,n=e.endOfRange,t=e.current,o=n-r;return 0===o?0:(t-r)/o},Jn=360,Xn=1200,Kn=function(e){var r=e.distanceToEdge,n=e.thresholds,t=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,r){if(e>r.startScrollingFrom)return 0;if(e<=r.maxScrollValueAt)return 28;if(e===r.startScrollingFrom)return 1;var n=$n({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),t=28*Yn(1-n);return Math.ceil(t)}(r,n);return 0===i?0:o?Math.max(function(e,r){var n=r,t=Xn,o=Date.now()-n;if(o>=Xn)return e;if(o<Jn)return 1;var i=$n({startOfRange:Jn,endOfRange:t,current:o}),a=e*Yn(i);return Math.ceil(a)}(i,t),1):i},Qn=function(e){var r,n,t=e.container,o=e.distanceToEdges,i=e.dragStartTime,a=e.axis,u=e.shouldUseTimeDampening,c={startScrollingFrom:.25*(r=t)[(n=a).size],maxScrollValueAt:.05*r[n.size]};return o[a.end]<o[a.start]?Kn({distanceToEdge:o[a.end],thresholds:c,dragStartTime:i,shouldUseTimeDampening:u}):-1*Kn({distanceToEdge:o[a.start],thresholds:c,dragStartTime:i,shouldUseTimeDampening:u})},Zn=He(function(e){return 0===e?0:e}),et=function(e){var r=e.dragStartTime,n=e.container,t=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},u=Qn({container:n,distanceToEdges:a,dragStartTime:r,axis:gr,shouldUseTimeDampening:i}),c=Qn({container:n,distanceToEdges:a,dragStartTime:r,axis:br,shouldUseTimeDampening:i}),l=Zn({x:c,y:u});if(Ge(l,Le))return null;var d=function(e){var r=e.container,n=e.subject,t=e.proposedScroll,o=n.height>r.height,i=n.width>r.width;return i||o?i&&o?null:{x:i?0:t.x,y:o?0:t.y}:t}({container:n,subject:t,proposedScroll:l});return d?Ge(d,Le)?null:d:null},rt=He(function(e){return 0===e?0:e>0?1:-1}),nt=(Un=function(e,r){return e<0?e:e>r?e-r:0},function(e){var r=e.current,n=e.max,t=e.change,o=Me(r,t),i={x:Un(o.x,n.x),y:Un(o.y,n.y)};return Ge(i,Le)?null:i}),tt=function(e){var r=e.max,n=e.current,t=e.change,o={x:Math.max(n.x,r.x),y:Math.max(n.y,r.y)},i=rt(t),a=nt({max:o,current:n,change:i});return!a||0!==i.x&&0===a.x||0!==i.y&&0===a.y},ot=function(e,r){return tt({current:e.scroll.current,max:e.scroll.max,change:r})},it=function(e,r){var n=e.frame;return!!n&&tt({current:n.scroll.current,max:n.scroll.max,change:r})},at=function(e){var r=e.state,n=e.dragStartTime,t=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=r.current.page.borderBoxCenter,u=r.dimensions.draggables[r.critical.draggable.id].page.marginBox;if(r.isWindowScrollAllowed){var c=function(e){var r=e.viewport,n=e.subject,t=e.center,o=e.shouldUseTimeDampening,i=et({dragStartTime:e.dragStartTime,container:r.frame,subject:n,center:t,shouldUseTimeDampening:o});return i&&ot(r,i)?i:null}({dragStartTime:n,viewport:r.viewport,subject:u,center:a,shouldUseTimeDampening:t});if(c)return void o(c)}var l=function(e){var r,n=e.center,t=e.destination,o=e.droppables;if(t){var i=o[t];return i.frame?i:null}return r=n,Ke(zn(o),function(e){return e.frame||Ee(),Wr(e.frame.pageMarginBox)(r)})}({center:a,destination:kr(r.impact),droppables:r.dimensions.droppables});if(l){var d=function(e){var r=e.droppable,n=e.subject,t=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=r.frame;if(!a)return null;var u=et({dragStartTime:o,container:a.pageMarginBox,subject:n,center:t,shouldUseTimeDampening:i});return u&&it(r,u)?u:null}({dragStartTime:n,droppable:l,subject:u,center:a,shouldUseTimeDampening:t});d&&i(l.descriptor.id,d)}},ut=function(e){var r=e.move,n=e.scrollDroppable,t=e.scrollWindow;return function(e){var o=e.scrollJumpRequest;if(o){var i=kr(e.impact);i||Ee();var a=function(e,r){if(!it(e,r))return r;var t=function(e,r){var n=e.frame;return n&&it(e,r)?nt({current:n.scroll.current,max:n.scroll.max,change:r}):null}(e,r);if(!t)return n(e.descriptor.id,r),null;var o=_e(r,t);return n(e.descriptor.id,o),_e(r,o)}(e.dimensions.droppables[i],o);if(a){var u=e.viewport,c=function(e,r,n){if(!e)return n;if(!ot(r,n))return n;var o=function(e,r){if(!ot(e,r))return null;var n=e.scroll.max,t=e.scroll.current;return nt({current:t,max:n,change:r})}(r,n);if(!o)return t(n),null;var i=_e(n,o);return t(i),_e(n,i)}(e.isWindowScrollAllowed,u,a);c&&function(e,n){var t=Me(e.current.client.selection,n);r({client:t})}(e,c)}}}},ct={base:Wn="data-rbd-drag-handle",draggableId:Wn+"-draggable-id",contextId:Wn+"-context-id"},lt=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),dt=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),st="data-rbd-scroll-container-context-id",pt=function(e,r){return e.map(function(e){var n=e.styles[r];return n?e.selector+" { "+n+" }":""}).join(" ")},ft="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect,gt=function(){var e=document.querySelector("head");return e||Ee(),e},bt=function(e){var r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.type="text/css",r};var mt=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function vt(e){return e instanceof mt(e).HTMLElement}function ht(){var e={draggables:{},droppables:{}},r=[];function n(e){r.length&&r.forEach(function(r){return r(e)})}function t(r){return e.draggables[r]||null}function o(r){return e.droppables[r]||null}return{draggable:{register:function(r){e.draggables[r.descriptor.id]=r,n({type:"ADDITION",value:r})},update:function(r,n){var t=e.draggables[n.descriptor.id];t&&t.uniqueId===r.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[r.descriptor.id]=r)},unregister:function(r){var o=r.descriptor.id,i=t(o);i&&r.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:r}))},getById:function(e){var r=t(e);return r||Ee(),r},findById:t,exists:function(e){return Boolean(t(e))},getAllByType:function(r){return Je(e.draggables).filter(function(e){return e.descriptor.type===r})}},droppable:{register:function(r){e.droppables[r.descriptor.id]=r},unregister:function(r){var n=o(r.descriptor.id);n&&r.uniqueId===n.uniqueId&&delete e.droppables[r.descriptor.id]},getById:function(e){var r=o(e);return r||Ee(),r},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(r){return Je(e.droppables).filter(function(e){return e.descriptor.type===r})}},subscribe:function(e){return r.push(e),function(){var n=r.indexOf(e);-1!==n&&r.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},r.length=0}}}var yt=o.a.createContext(null),Ot=function(){var e=document.body;return e||Ee(),e},xt={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},wt=0,Dt={separator:"::"};function Ct(e,r){return void 0===r&&(r=Dt),ae(function(){return""+e+r.separator+wt++},[r.separator,e])}var It=o.a.createContext(null);function Et(e){var r=Object(t.useRef)(e);return Object(t.useEffect)(function(){r.current=e}),r}var jt,Pt,St=((jt={})[13]=!0,jt[9]=!0,jt),At=function(e){St[e.keyCode]&&e.preventDefault()},Rt=function(){var e="visibilitychange";return"undefined"==typeof document?e:Ke([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],function(e){return"on"+e in document})||e}(),Nt={type:"IDLE"};function Bt(){}var Tt=((Pt={})[34]=!0,Pt[33]=!0,Pt[36]=!0,Pt[35]=!0,Pt);var Lt={type:"IDLE"},Mt={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};var _t=function(e){return ce(e.getBoundingClientRect()).center},Gt="undefined"==typeof document?"matches":Ke(["matches","msMatchesSelector","webkitMatchesSelector"],function(e){return e in Element.prototype})||"matches";function kt(e,r){var n,t=r.target;if(!((n=t)instanceof mt(n).Element))return null;var o=function(e,r){return e.closest?e.closest(r):function e(r,n){return null==r?null:r[Gt](n)?r:e(r.parentElement,n)}(e,r)}(t,"["+ct.contextId+'="'+e+'"]');return o&&vt(o)?o:null}function Ft(e){e.preventDefault()}function Ut(e){var r=e.expected,n=e.phase;return!!(0,e.isLockActive)()&&r===n}function Wt(e){var r=e.lockAPI,n=e.store,t=e.registry,o=e.draggableId;if(r.isClaimed())return!1;var i=t.draggable.findById(o);return!!i&&!!i.options.isEnabled&&!!qn(n.getState(),o)}function Ht(e){var r=e.lockAPI,n=e.contextId,t=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,c=e.sourceEvent;if(!Wt({lockAPI:r,store:t,registry:o,draggableId:i}))return null;var l=o.draggable.getById(i),d=function(e,r){var n="["+lt.contextId+'="'+e+'"]',t=Ke(Qe(document.querySelectorAll(n)),function(e){return e.getAttribute(lt.id)===r});return t&&vt(t)?t:null}(n,l.descriptor.id);if(!d)return null;if(c&&!l.options.canDragInteractiveElements&&function(e,r){var n=r.target;return!!vt(n)&&function e(r,n){if(null==n)return!1;if(Boolean(Mt[n.tagName.toLowerCase()]))return!0;var t=n.getAttribute("contenteditable");return"true"===t||""===t||n!==r&&e(r,n.parentElement)}(e,n)}(d,c))return null;var s=r.claim(a||De),p="PRE_DRAG";function f(){return l.options.shouldRespectForcePress}function g(){return r.isActive(s)}var b=function(e,r){Ut({expected:e,phase:p,isLockActive:g})&&t.dispatch(r())}.bind(null,"DRAGGING");function m(e){function n(){r.release(),p="COMPLETED"}function o(r,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=Ce(window,[{eventName:"click",fn:Ft,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),t.dispatch(bn({reason:r}))}return"PRE_DRAG"!==p&&(n(),"PRE_DRAG"!==p&&Ee()),t.dispatch(/* @__PURE__ */function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),p="DRAGGING",u({isActive:function(){return Ut({expected:"DRAGGING",phase:p,isLockActive:g})},shouldRespectForcePress:f,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return Ut({expected:"PRE_DRAG",phase:p,isLockActive:g})},shouldRespectForcePress:f,fluidLift:function(e){var r=xe(function(e){b(function(){return ln({client:e})})});return u({},m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return r.cancel()},actions:{move:r}}),{move:r})},snapLift:function(){var e={moveUp:function(){return b(dn)},moveRight:function(){return b(pn)},moveDown:function(){return b(sn)},moveLeft:function(){return b(fn)}};return m({liftActionArgs:{id:i,clientSelection:_t(d),movementMode:"SNAP"},cleanup:De,actions:e})},abort:function(){Ut({expected:"PRE_DRAG",phase:p,isLockActive:g})&&r.release()}}}var qt=[function(e){var r=Object(t.useRef)(Nt),n=Object(t.useRef)(De),o=ae(function(){return{eventName:"mousedown",fn:function(r){if(!r.defaultPrevented&&0===r.button&&!(r.ctrlKey||r.metaKey||r.shiftKey||r.altKey)){var t=e.findClosestDraggableId(r);if(t){var o=e.tryGetLock(t,u,{sourceEvent:r});if(o){r.preventDefault();var i={x:r.clientX,y:r.clientY};n.current(),d(o,i)}}}}}},[e]),i=ae(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(r){if(!r.defaultPrevented){var n=e.findClosestDraggableId(r);if(n){var t=e.findOptionsForDraggable(n);t&&(t.shouldRespectForcePress||e.canGetLock(n)&&r.preventDefault())}}}}},[e]),a=ue(function(){n.current=Ce(window,[i,o],{passive:!1,capture:!0})},[i,o]),u=ue(function(){"IDLE"!==r.current.type&&(r.current=Nt,n.current(),a())},[a]),c=ue(function(){var e=r.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[u]),l=ue(function(){var e=function(e){var r=e.cancel,n=e.completed,t=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var r=e.button,n=e.clientX,i=e.clientY;if(0===r){var a={x:n,y:i},u=t();if("DRAGGING"===u.type)return e.preventDefault(),void u.actions.move(a);if("PENDING"!==u.type&&Ee(),c=u.point,l=a,Math.abs(l.x-c.x)>=5||Math.abs(l.y-c.y)>=5){var c,l;e.preventDefault();var d=u.actions.fluidLift(a);o({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var o=t();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):r()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===t().type&&e.preventDefault(),r()}},{eventName:"keydown",fn:function(e){if("PENDING"!==t().type)return 27===e.keyCode?(e.preventDefault(),void r()):void At(e);r()}},{eventName:"resize",fn:r},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===t().type&&r()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=t();"IDLE"===n.type&&Ee(),n.actions.shouldRespectForcePress()?r():e.preventDefault()}},{eventName:Rt,fn:r}]}({cancel:c,completed:u,getPhase:function(){return r.current},setPhase:function(e){r.current=e}});n.current=Ce(window,e,{capture:!0,passive:!1})},[c,u]),d=ue(function(e,n){"IDLE"!==r.current.type&&Ee(),r.current={type:"PENDING",point:n,actions:e},l()},[l]);ft(function(){return a(),function(){n.current()}},[a])},function(e){var r=Object(t.useRef)(Bt),n=ae(function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var t=e.findClosestDraggableId(n);if(t){var i=e.tryGetLock(t,c,{sourceEvent:n});if(i){n.preventDefault();var a=!0,u=i.snapLift();r.current(),r.current=Ce(window,function(e,r){function n(){r(),e.cancel()}return[{eventName:"keydown",fn:function(t){return 27===t.keyCode?(t.preventDefault(),void n()):32===t.keyCode?(t.preventDefault(),r(),void e.drop()):40===t.keyCode?(t.preventDefault(),void e.moveDown()):38===t.keyCode?(t.preventDefault(),void e.moveUp()):39===t.keyCode?(t.preventDefault(),void e.moveRight()):37===t.keyCode?(t.preventDefault(),void e.moveLeft()):void(Tt[t.keyCode]?t.preventDefault():At(t))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Rt,fn:n}]}(u,c),{capture:!0,passive:!1})}}}function c(){a||Ee(),a=!1,r.current(),o()}}}},[e]),o=ue(function(){r.current=Ce(window,[n],{passive:!1,capture:!0})},[n]);ft(function(){return o(),function(){r.current()}},[o])},function(e){var r=Object(t.useRef)(Lt),n=Object(t.useRef)(De),o=ue(function(){return r.current},[]),i=ue(function(e){r.current=e},[]),a=ae(function(){return{eventName:"touchstart",fn:function(r){if(!r.defaultPrevented){var t=e.findClosestDraggableId(r);if(t){var o=e.tryGetLock(t,c,{sourceEvent:r});if(o){var i=r.touches[0],a={x:i.clientX,y:i.clientY};n.current(),p(o,a)}}}}}},[e]),u=ue(function(){n.current=Ce(window,[a],{capture:!0,passive:!1})},[a]),c=ue(function(){var e=r.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Lt),n.current(),u())},[u,i]),l=ue(function(){var e=r.current;c(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[c]),d=ue(function(){var e={capture:!0,passive:!1},r={cancel:l,completed:c,getPhase:o},t=Ce(window,function(e){var r=e.cancel,n=e.completed,t=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=t();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else r()}},{eventName:"touchend",fn:function(e){var o=t();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):r()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===t().type?(e.preventDefault(),r()):r()}},{eventName:"touchforcechange",fn:function(e){var n=t();"IDLE"===n.type&&Ee();var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void r():void e.preventDefault();i&&r()}}},{eventName:Rt,fn:r}]}(r),e),i=Ce(window,function(e){var r=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:r},{eventName:"resize",fn:r},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),r()):r()}},{eventName:Rt,fn:r}]}(r),e);n.current=function(){t(),i()}},[l,o,c]),s=ue(function(){var e=o();"PENDING"!==e.type&&Ee();var r=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:r,hasMoved:!1})},[o,i]),p=ue(function(e,r){"IDLE"!==o().type&&Ee();var n=setTimeout(s,120);i({type:"PENDING",point:r,actions:e,longPressTimerId:n}),d()},[d,o,i,s]);ft(function(){return u(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Lt))}},[o,u,i]),ft(function(){return Ce(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])},[])}];function Vt(e){return e.current||Ee(),e.current}function zt(e){var r=e.contextId,n=e.setCallbacks,i=e.sensors,a=e.nonce,c=e.dragHandleUsageInstructions,l=Object(t.useRef)(null),p=Et(e),f=ue(function(){return{onBeforeCapture:(e=p.current).onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate};var e},[p]),g=function(e){var r=ae(function(){return"rbd-announcement-"+e},[e]),n=Object(t.useRef)(null);return Object(t.useEffect)(function(){var e=document.createElement("div");return n.current=e,e.id=r,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),u(e.style,xt),Ot().appendChild(e),function(){setTimeout(function(){var r=Ot();r.contains(e)&&r.removeChild(e),e===n.current&&(n.current=null)})}},[r]),ue(function(e){var r=n.current;r&&(r.textContent=e)},[])}(r),m=function(e){var r=e.contextId,n=e.text,o=Ct("hidden-text",{separator:"-"}),i=ae(function(){return"rbd-hidden-text-"+(e={contextId:r,uniqueId:o}).contextId+"-"+e.uniqueId;var e},[o,r]);return Object(t.useEffect)(function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",Ot().appendChild(e),function(){var r=Ot();r.contains(e)&&r.removeChild(e)}},[i,n]),i}({contextId:r,text:c}),y=function(e,r){var n=ae(function(){return function(e){var r,n,t,o=(r=e,function(e){return"["+e+'="'+r+'"]'}),i=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(ct.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),a=[(t="\n transition: "+xn.outOfTheWay+";\n ",{selector:o(lt.contextId),styles:{dragging:t,dropAnimating:t,userCancel:t}}),i,{selector:o(dt.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:pt(a,"always"),resting:pt(a,"resting"),dragging:pt(a,"dragging"),dropAnimating:pt(a,"dropAnimating"),userCancel:pt(a,"userCancel")}}(e)},[e]),o=Object(t.useRef)(null),i=Object(t.useRef)(null),a=ue(Oe(function(e){var r=i.current;r||Ee(),r.textContent=e}),[]),u=ue(function(e){var r=o.current;r||Ee(),r.textContent=e},[]);ft(function(){(o.current||i.current)&&Ee();var t=bt(r),c=bt(r);return o.current=t,i.current=c,t.setAttribute("data-rbd-always",e),c.setAttribute("data-rbd-dynamic",e),gt().appendChild(t),gt().appendChild(c),u(n.always),a(n.resting),function(){var e=function(e){var r=e.current;r||Ee(),gt().removeChild(r),e.current=null};e(o),e(i)}},[r,u,a,n.always,n.resting,e]);var c=ue(function(){return a(n.dragging)},[a,n.dragging]),l=ue(function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)},[a,n.dropAnimating,n.userCancel]),d=ue(function(){i.current&&a(n.resting)},[a,n.resting]);return ae(function(){return{dragging:c,dropping:l,resting:d}},[c,l,d])}(r,a),O=ue(function(e){Vt(l).dispatch(e)},[]),x=ae(function(){return v({publishWhileDragging:tn,updateDroppableScroll:an,updateDroppableIsEnabled:un,updateDroppableIsCombineEnabled:cn,collectionStarting:on},O)},[O]),w=function(){var e=ae(ht,[]);return Object(t.useEffect)(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}(),D=ae(function(){return Hn(w,x)},[w,x]),I=ae(function(){return function(e){var r=e.scrollDroppable,n=e.scrollWindow,t=e.move,o=function(e){var r=e.scrollDroppable,n=xe(e.scrollWindow),t=xe(r),o=null,i=function(e){o||Ee();var r=o,i=r.shouldUseTimeDampening,a=r.dragStartTime;at({state:e,scrollWindow:n,scrollDroppable:t,dragStartTime:a,shouldUseTimeDampening:i})};return{start:function(e){o&&Ee();var r=Date.now(),n=!1,t=function(){n=!0};at({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:t,scrollDroppable:t}),o={dragStartTime:r,shouldUseTimeDampening:n},n&&i(e)},stop:function(){o&&(n.cancel(),t.cancel(),o=null)},scroll:i}}({scrollWindow:n,scrollDroppable:r}),i=ut({move:t,scrollWindow:n,scrollDroppable:r});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}}(u({scrollWindow:Vn,scrollDroppable:D.scrollDroppable},v({move:ln},O)))},[D.scrollDroppable,O]),E=function(e){var r=Object(t.useRef)({}),n=Object(t.useRef)(null),o=Object(t.useRef)(null),i=Object(t.useRef)(!1),a=ue(function(e,n){var t={id:e,focus:n};return r.current[e]=t,function(){var n=r.current;n[e]!==t&&delete n[e]}},[]),u=ue(function(r){var n=function(e,r){var n="["+ct.contextId+'="'+e+'"]',t=Qe(document.querySelectorAll(n));if(!t.length)return null;var o=Ke(t,function(e){return e.getAttribute(ct.draggableId)===r});return o&&vt(o)?o:null}(e,r);n&&n!==document.activeElement&&n.focus()},[e]),c=ue(function(e,r){n.current===e&&(n.current=r)},[]),l=ue(function(){o.current||i.current&&(o.current=requestAnimationFrame(function(){o.current=null;var e=n.current;e&&u(e)}))},[u]),d=ue(function(e){n.current=null;var r=document.activeElement;r&&r.getAttribute(ct.draggableId)===e&&(n.current=e)},[]);return ft(function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}},[]),ae(function(){return{register:a,tryRecordFocus:d,tryRestoreFocusRecorded:l,tryShiftRecord:c}},[a,d,l,c])}(r),j=ae(function(){return function(e){var r,n=e.dimensionMarshal,t=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,u=e.autoScroller;return b(nn,Mn(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),t=function(){throw new Error(s(15))},o={getState:n.getState,dispatch:function(){return t.apply(void 0,arguments)}},i=r.map(function(e){return e(o)});return t=h.apply(void 0,i)(n.dispatch),d(d({},n),{},{dispatch:t})}}}((r=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&r.dragging(),"DROP_ANIMATE"===n.type&&r.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||r.resting(),e(n)}}}),/* @__PURE__ */function(e){return function(){return function(r){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),r(n)}}}}(n),/* @__PURE__ */function(e){return function(r){var n=r.getState,t=r.dispatch;return function(r){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,u=i.clientSelection,c=i.movementMode,l=n();"DROP_ANIMATING"===l.phase&&t(gn({completed:l.completed})),"IDLE"!==n().phase&&Ee(),t({type:"FLUSH",payload:null}),t({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:c}});var d={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===c}},s=e.startPublishing(d),p=s.critical,f=s.dimensions,g=s.viewport;t(/* @__PURE__ */function(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:p,dimensions:f,clientSelection:u,movementMode:c,viewport:g}))}else r(o)}}}}(n),En,Bn,Tn,Ln,/* @__PURE__ */function(e){return function(r){return function(n){return function(t){if("DROP_COMPLETE"===(o=t).type||"DROP_ANIMATE"===o.type||"FLUSH"===o.type)return e.stop(),void n(t);var o;if("INITIAL_PUBLISH"===t.type){n(t);var i=r.getState();return"DRAGGING"!==i.phase&&Ee(),void e.start(i)}n(t),e.scroll(r.getState())}}}}(u),Pn,/* @__PURE__ */function(e){var r=!1;return function(){return function(n){return function(t){if("INITIAL_PUBLISH"===t.type)return r=!0,e.tryRecordFocus(t.payload.critical.draggable.id),n(t),void e.tryRestoreFocusRecorded();if(n(t),r){if("FLUSH"===t.type)return r=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===t.type){r=!1;var o=t.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(t),Nn(i,a))))}({announce:g,autoScroller:I,dimensionMarshal:D,focusMarshal:E,getResponders:f,styleMarshal:y})},[g,I,D,E,f,y]);l.current=j;var P=ue(function(){var e=Vt(l);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})},[]),S=ue(function(){var e=Vt(l).getState();return e.isDragging||"DROP_ANIMATING"===e.phase},[]);n(ae(function(){return{isDragging:S,tryAbort:P}},[S,P]));var A=ue(function(e){return qn(Vt(l).getState(),e)},[]),R=ue(function(){return Ur(Vt(l).getState())},[]),N=ae(function(){return{marshal:D,focus:E,contextId:r,canLift:A,isMovementAllowed:R,dragHandleUsageInstructionsId:m,registry:w}},[r,D,m,E,A,R,w]);return function(e){var r=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,u=[].concat(a?qt:[],i||[]),c=Object(t.useState)(function(){/* @__PURE__ */
2
2
  return function(){var e=null;function r(){e||Ee(),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(r){return r===e},claim:function(r){e&&Ee();var n={abandon:r};return e=n,n},release:r,tryAbandon:function(){e&&(e.abandon(),r())}}}()})[0],l=ue(function(e,r){e.isDragging&&!r.isDragging&&c.tryAbandon()},[c]);ft(function(){var e=n.getState();return n.subscribe(function(){var r=n.getState();l(e,r),e=r})},[c,n,l]),ft(function(){return c.tryAbandon},[c.tryAbandon]);for(var d=ue(function(e){return Wt({lockAPI:c,registry:o,store:n,draggableId:e})},[c,o,n]),s=ue(function(e,t,i){return Ht({lockAPI:c,registry:o,contextId:r,store:n,draggableId:e,forceSensorStop:t,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})},[r,c,o,n]),p=ue(function(e){return function(e,r){var n=kt(e,r);return n?n.getAttribute(ct.draggableId):null}(r,e)},[r]),f=ue(function(e){var r=o.draggable.findById(e);return r?r.options:null},[o.draggable]),g=ue(function(){c.isClaimed()&&(c.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))},[c,n]),b=ue(c.isClaimed,[c]),m=ae(function(){return{canGetLock:d,tryGetLock:s,findClosestDraggableId:p,findOptionsForDraggable:f,tryReleaseLock:g,isLockClaimed:b}},[d,s,p,f,g,b]),v=0;v<u.length;v++)u[v](m)}({contextId:r,store:j,registry:w,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),Object(t.useEffect)(function(){return P},[P]),o.a.createElement(It.Provider,{value:N},o.a.createElement(C,{context:yt,store:j},e.children))}var Yt=0;function $t(e){var r=ae(function(){return""+Yt++},[]),n=e.dragHandleUsageInstructions||"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n";return o.a.createElement(je,null,function(t){return o.a.createElement(zt,{nonce:e.nonce,contextId:r,setCallbacks:t,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)})}var Jt=function(e){return function(r){return e===r}},Xt=Jt("scroll"),Kt=Jt("auto"),Qt=function(e,r){return r(e.overflowX)||r(e.overflowY)},Zt=function e(r){return null==r||r===document.body||r===document.documentElement?null:function(e){var r=window.getComputedStyle(e),n={overflowX:r.overflowX,overflowY:r.overflowY};return Qt(n,Xt)||Qt(n,Kt)}(r)?r:e(r.parentElement)},eo=function(e){return{x:e.scrollLeft,y:e.scrollTop}},ro={passive:!1},no={passive:!0},to=function(e){return e.shouldPublishImmediately?ro:no};function oo(e){var r=Object(t.useContext)(e);return r||Ee(),r}var io=function(e){return e&&e.env.closestScrollable||null};function ao(){}var uo={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},co=o.a.memo(function(e){var r=Object(t.useRef)(null),n=ue(function(){r.current&&(clearTimeout(r.current),r.current=null)},[]),i=e.animate,a=e.onTransitionEnd,u=e.onClose,c=e.contextId,l=Object(t.useState)("open"===e.animate),d=l[0],s=l[1];Object(t.useEffect)(function(){return d?"open"!==i?(n(),s(!1),ao):r.current?ao:(r.current=setTimeout(function(){r.current=null,s(!1)}),n):ao},[i,d,n]);var p=ue(function(e){"height"===e.propertyName&&(a(),"close"===i&&u())},[i,u,a]),f=function(e){var r=e.isAnimatingOpenOnMount,n=e.placeholder,t=e.animate,o=function(e){var r=e.placeholder;return e.isAnimatingOpenOnMount||"close"===e.animate?uo:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}}({isAnimatingOpenOnMount:r,placeholder:n,animate:t});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==t?xn.placeholder:null}}({isAnimatingOpenOnMount:d,animate:e.animate,placeholder:e.placeholder});return o.a.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":c,onTransitionEnd:p,ref:e.innerRef})}),lo=o.a.createContext(null),so=function(e){function r(){for(var r,n=arguments.length,t=new Array(n),o=0;o<n;o++)t[o]=arguments[o];return(r=e.call.apply(e,[this].concat(t))||this).state={isVisible:Boolean(r.props.on),data:r.props.on,animate:r.props.shouldAnimate&&r.props.on?"open":"none"},r.onClose=function(){"close"===r.state.animate&&r.setState({isVisible:!1})},r}return a(r,e),r.getDerivedStateFromProps=function(e,r){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},r.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},r}(o.a.PureComponent),po=function(e,r){return r?xn.drop(r.duration):e?xn.snap:xn.fluid},fo=function(e,r){return e?r?vn:hn:null};function go(e){return"DRAGGING"===e.type?(o=(t=e).dimension.client,i=t.offset,a=t.combineWith,u=t.dropping,c=Boolean(a),l=null!=(r=t).forceShouldAnimate?r.forceShouldAnimate:"SNAP"===r.mode,s=(d=Boolean(u))?function(e,r){var n=wn(e);return n?r?n+" scale("+yn+")":n:null}(i,c):Dn(i),{position:"fixed",top:o.marginBox.top,left:o.marginBox.left,boxSizing:"border-box",width:o.borderBox.width,height:o.borderBox.height,transition:po(l,u),transform:s,opacity:fo(c,d),zIndex:d?4500:5e3,pointerEvents:"none"}):{transform:Dn((n=e).offset),transition:n.shouldAnimateDisplacement?null:"none"};var r,n,t,o,i,a,u,c,l,d,s}function bo(e){e.preventDefault()}var mo=function(e,r){return e===r},vo=function(e){var r=e.combine,n=e.destination;return n?n.droppableId:r?r.droppableId:null};function ho(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var yo={mapped:{type:"SECONDARY",offset:Le,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:ho(null)}},Oo=ne(function(){var e,r,n,t=(e=Oe(function(e,r){return{x:e,y:r}}),r=Oe(function(e,r,n,t,o){return{isDragging:!0,isClone:r,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:t,combineTargetFor:null}}),n=Oe(function(e,n,t,o,i,a,u){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:t,forceShouldAnimate:u,snapshot:r(n,o,i,a,null)}}}),function(t,o){if(t.isDragging){if(t.critical.draggable.id!==o.draggableId)return null;var i=t.current.client.offset,a=t.dimensions.draggables[o.draggableId],u=kr(t.impact),c=(d=t.impact).at&&"COMBINE"===d.at.type?d.at.combine.draggableId:null,l=t.forceShouldAnimate;return n(e(i.x,i.y),t.movementMode,a,o.isClone,u,c,l)}var d,s;if("DROP_ANIMATING"===t.phase){var p=t.completed;if(p.result.draggableId!==o.draggableId)return null;var f=o.isClone,g=t.dimensions.draggables[o.draggableId],b=p.result,m=b.mode,v=vo(b),h=(s=b).combine?s.combine.draggableId:null,y={duration:t.dropDuration,curve:mn,moveTo:t.newHomeClientOffset,opacity:h?vn:null,scale:h?yn:null};return{mapped:{type:"DRAGGING",offset:t.newHomeClientOffset,dimension:g,dropping:y,draggingOver:v,combineWith:h,mode:m,forceShouldAnimate:null,snapshot:r(m,f,v,h,y)}}}return null}),o=function(){var e=Oe(function(e,r){return{x:e,y:r}}),r=Oe(ho),n=Oe(function(e,n,t){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:t,snapshot:r(n)}}}),t=function(e){return e?n(Le,e,!0):null},o=function(r,o,i,a){var u=i.displaced.visible[r],c=Boolean(a.inVirtualList&&a.effected[r]),l=ir(i),d=l&&l.draggableId===r?o:null;if(!u){if(!c)return t(d);if(i.displaced.invisible[r])return null;var s=ke(a.displacedBy.point),p=e(s.x,s.y);return n(p,d,!0)}if(c)return t(d);var f=i.displacedBy.point,g=e(f.x,f.y);return n(g,d,u.shouldAnimate)};return function(e,r){if(e.isDragging)return e.critical.draggable.id===r.draggableId?null:o(r.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===r.draggableId?null:o(r.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,r){return t(e,r)||o(e,r)||yo}},{dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},null,{context:yt,pure:!0,areStatePropsEqual:mo})(function(e){var r=Object(t.useRef)(null),n=ue(function(e){r.current=e},[]),o=ue(function(){return r.current},[]),i=oo(It),a=i.contextId,u=i.dragHandleUsageInstructionsId,c=i.registry,l=oo(lo),d=l.type,s=l.droppableId,p=ae(function(){return{id:e.draggableId,index:e.index,type:d,droppableId:s}},[e.draggableId,e.index,d,s]),f=e.children,g=e.draggableId,b=e.isEnabled,m=e.shouldRespectForcePress,v=e.canDragInteractiveElements,h=e.isClone,y=e.mapped,O=e.dropAnimationFinished;h||function(e){var r=Ct("draggable"),n=e.descriptor,o=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,u=e.shouldRespectForcePress,c=e.isEnabled,l=ae(function(){return{canDragInteractiveElements:a,shouldRespectForcePress:u,isEnabled:c}},[a,c,u]),d=ue(function(e){var r=i();return r||Ee(),function(e,r,n){void 0===n&&(n=Le);var t=window.getComputedStyle(r),o=r.getBoundingClientRect(),i=me(o,t),a=be(i,n);return{descriptor:e,placeholder:{client:i,tagName:r.tagName.toLowerCase(),display:t.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,r,e)},[n,i]),s=ae(function(){return{uniqueId:r,descriptor:n,options:l,getDimension:d}},[n,d,l,r]),p=Object(t.useRef)(s),f=Object(t.useRef)(!0);ft(function(){return o.draggable.register(p.current),function(){return o.draggable.unregister(p.current)}},[o.draggable]),ft(function(){if(f.current)f.current=!1;else{var e=p.current;p.current=s,o.draggable.update(s,e)}},[s,o.draggable])}(ae(function(){return{descriptor:p,registry:c,getDraggableRef:o,canDragInteractiveElements:v,shouldRespectForcePress:m,isEnabled:b}},[p,c,o,v,m,b]));var x=ae(function(){return b?{tabIndex:0,role:"button","aria-describedby":u,"data-rbd-drag-handle-draggable-id":g,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:bo}:null},[a,u,g,b]),w=ue(function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&O()},[O,y]),D=ae(function(){var e=go(y),r="DRAGGING"===y.type&&y.dropping?w:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":g,style:e,onTransitionEnd:r},dragHandleProps:x}},[a,x,g,y,w,n]),C=ae(function(){return{draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}},[p.droppableId,p.id,p.index,p.type]);return f(D,y.snapshot,C)});function xo(e){return oo(lo).isUsingCloneFor!==e.draggableId||e.isClone?o.a.createElement(Oo,e):null}function wo(e){var r="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),t=Boolean(e.shouldRespectForcePress);return o.a.createElement(xo,u({},e,{isClone:!1,isEnabled:r,canDragInteractiveElements:n,shouldRespectForcePress:t}))}var Do=function(e,r){return e===r.droppable.type},Co=function(e,r){return r.draggables[e.draggable.id]},Io={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||Ee(),document.body}},Eo=ne(function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=u({},e,{shouldAnimatePlaceholder:!1}),n=Oe(function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}}),t=Oe(function(t,o,i,a,u,c){var l=u.descriptor.id;if(u.descriptor.droppableId===t){var d=c?{render:c,dragging:n(u.descriptor)}:null,s={isDraggingOver:i,draggingOverWith:i?l:null,draggingFromThisWith:l,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!1,snapshot:s,useClone:d}}if(!o)return r;if(!a)return e;var p={isDraggingOver:i,draggingOverWith:l,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}});return function(n,o){var i=o.droppableId,a=o.type,u=!o.isDropDisabled,c=o.renderClone;if(n.isDragging){var l=n.critical;if(!Do(a,l))return r;var d=Co(l,n.dimensions),s=kr(n.impact)===i;return t(i,u,s,s,d,c)}if("DROP_ANIMATING"===n.phase){var p=n.completed;if(!Do(a,p.critical))return r;var f=Co(p.critical,n.dimensions);return t(i,u,vo(p.result)===i,kr(p.impact)===i,f,c)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var g=n.completed;if(!Do(a,g.critical))return r;var b=kr(g.impact)===i,m=Boolean(g.impact.at&&"COMBINE"===g.impact.at.type),v=g.critical.droppable.id===i;return b?m?e:r:v?e:r}return r}},{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:yt,pure:!0,areStatePropsEqual:mo})(function(e){var r=Object(t.useContext)(It);r||Ee();var n=r.contextId,i=r.isMovementAllowed,a=Object(t.useRef)(null),u=Object(t.useRef)(null),c=e.children,l=e.droppableId,d=e.type,s=e.mode,p=e.direction,f=e.ignoreContainerClipping,g=e.isDropDisabled,b=e.isCombineEnabled,m=e.snapshot,v=e.useClone,h=e.updateViewportMaxScroll,y=e.getContainerForClone,O=ue(function(){return a.current},[]),x=ue(function(e){a.current=e},[]),w=(ue(function(){return u.current},[]),ue(function(e){u.current=e},[])),D=ue(function(){i()&&h({maxScroll:kn()})},[i,h]);!function(e){var r=Object(t.useRef)(null),n=oo(It),o=Ct("droppable"),i=n.registry,a=n.marshal,u=Et(e),c=ae(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),l=Object(t.useRef)(c),d=ae(function(){return Oe(function(e,n){r.current||Ee();var t={x:e,y:n};a.updateDroppableScroll(c.id,t)})},[c.id,a]),s=ue(function(){var e=r.current;return e&&e.env.closestScrollable?eo(e.env.closestScrollable):Le},[]),p=ue(function(){var e=s();d(e.x,e.y)},[s,d]),f=ae(function(){return xe(p)},[p]),g=ue(function(){var e=r.current,n=io(e);e&&n||Ee(),e.scrollOptions.shouldPublishImmediately?p():f()},[f,p]),b=ue(function(e,t){r.current&&Ee();var o=u.current,i=o.getDroppableRef();i||Ee();var a=function(e){return{closestScrollable:Zt(e),isFixedOnPage:function e(r){return!!r&&("fixed"===window.getComputedStyle(r).position||e(r.parentElement))}(e)}}(i),l={ref:i,descriptor:c,env:a,scrollOptions:t};r.current=l;var d=function(e){var r=e.ref,n=e.descriptor,t=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,u=e.isCombineEnabled,c=e.shouldClipSubject,l=t.closestScrollable,d=function(e,r){var n=ve(e);if(!r)return n;if(e!==r)return n;var t=n.paddingBox.top-r.scrollTop,o=n.paddingBox.left-r.scrollLeft,i=t+r.scrollHeight,a=o+r.scrollWidth,u=le({top:t,right:a,bottom:i,left:o},n.border);return pe({borderBox:u,margin:n.margin,border:n.border,padding:n.padding})}(r,l),s=be(d,o),p=function(){if(!l)return null;var e=ve(l),r={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:e,page:be(e,o),scroll:eo(l),scrollSize:r,shouldClipSubject:c}}();return function(e){var r=e.descriptor,n=e.isEnabled,t=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,u=e.page,c=e.closest,l=function(){if(!c)return null;var e=c.scrollSize,r=c.client,n=_n({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:r.paddingBox.height,width:r.paddingBox.width});return{pageMarginBox:c.page.marginBox,frameClient:r,scrollSize:e,shouldClipSubject:c.shouldClipSubject,scroll:{initial:c.scroll,current:c.scroll,max:n,diff:{value:Le,displacement:Le}}}}(),d="vertical"===i?gr:br;return{descriptor:r,isCombineEnabled:t,isFixedOnPage:o,axis:d,isEnabled:n,client:a,page:u,frame:l,subject:Ye({page:u,withPlaceholder:null,axis:d,frame:l})}}({descriptor:n,isEnabled:!a,isCombineEnabled:u,isFixedOnPage:t.isFixedOnPage,direction:i,client:d,page:s,closest:p})}({ref:i,descriptor:c,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),s=a.closestScrollable;return s&&(s.setAttribute(st,n.contextId),s.addEventListener("scroll",g,to(l.scrollOptions))),d},[n.contextId,c,g,u]),m=ue(function(){var e=r.current,n=io(e);return e&&n||Ee(),eo(n)},[]),v=ue(function(){var e=r.current;e||Ee();var n=io(e);r.current=null,n&&(f.cancel(),n.removeAttribute(st),n.removeEventListener("scroll",g,to(e.scrollOptions)))},[g,f]),h=ue(function(e){var n=r.current;n||Ee();var t=io(n);t||Ee(),t.scrollTop+=e.y,t.scrollLeft+=e.x},[]),y=ae(function(){return{getDimensionAndWatchScroll:b,getScrollWhileDragging:m,dragStopped:v,scroll:h}},[v,b,m,h]),O=ae(function(){return{uniqueId:o,descriptor:c,callbacks:y}},[y,c,o]);ft(function(){return l.current=O.descriptor,i.droppable.register(O),function(){r.current&&v(),i.droppable.unregister(O)}},[y,c,v,O,a,i.droppable]),ft(function(){r.current&&a.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),ft(function(){r.current&&a.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}({droppableId:l,type:d,mode:s,direction:p,isDropDisabled:g,isCombineEnabled:b,ignoreContainerClipping:f,getDroppableRef:O});var C=o.a.createElement(so,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(e){var r=e.onClose,t=e.data,i=e.animate;return o.a.createElement(co,{placeholder:t,onClose:r,innerRef:w,animate:i,contextId:n,onTransitionEnd:D})}),I=ae(function(){return{innerRef:x,placeholder:C,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":n}}},[n,l,C,x]),E=v?v.dragging.draggableId:null,j=ae(function(){return{droppableId:l,type:d,isUsingCloneFor:E}},[l,E,d]);return o.a.createElement(lo.Provider,{value:j},c(I,m),function(){if(!v)return null;var e=v.dragging,r=v.render,n=o.a.createElement(xo,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(n,t){return r(n,t,e)});return oe.a.createPortal(n,y())}())});Eo.defaultProps=Io;var jo=n(1);function Po(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function So(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Po(Object(n),!0).forEach(function(r){Ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Po(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ao(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var Ro=function(e){var r=e.children,n=e.index,t=e.renderCard,o=e.disableCardDrag;return Object(jo.jsx)(wo,{draggableId:String(r.id),index:n,isDragDisabled:o,children:function(e,r){var n=r.isDragging;return Object(jo.jsx)("div",So(So(So({ref:e.innerRef},e.draggableProps),e.dragHandleProps),{},{children:Object(jo.jsx)("div",{style:{display:"inline-block",whiteSpace:"normal"},children:t(n)})}))}})},No=["children"];function Bo(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function To(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Bo(Object(n),!0).forEach(function(r){Lo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lo(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var Mo=function(e){return function(r){var n=r.children,t=function(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(r,No);return Object(jo.jsx)(Eo,To(To({},t),{},{children:function(r){return Object(jo.jsxs)(e,To(To({ref:r.innerRef},r.droppableProps),{},{children:[n,r.placeholder]}))}}))}};function _o(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function Go(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?_o(Object(n),!0).forEach(function(r){ko(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ko(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Fo(e){return function(e){if(Array.isArray(e))return Uo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return Uo(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uo(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uo(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function Wo(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),t=1;t<r;t++)n[t-1]=arguments[t];return function(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return e.apply(void 0,t.concat(n))}}function Ho(e,r,n){var t=Fo(e);return t.splice(n,0,r),t}function qo(e,r){return e.reduce(function(e,n,t){return t===r?e:[].concat(Fo(e),[n])},[])}function Vo(e,r,n){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return function(e){return r.reduce(function(e,r){return r(e)},e)}}(Wo(qo,r),Wo(Ho,e[r],n))(e)}function zo(e){return e}function Yo(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zo;return function(n){if(r(e))return n(e)}}function $o(e){return function(r){return e.map(function(e){return r.when(e)?r.for(e):e})}}var Jo=function(e){var r=e.onConfirm,n=e.onCancel,o=Object(t.useRef)(),i=Object(t.useRef)();return Object(jo.jsx)("div",{className:"react-kanban-card-adder-form",children:Object(jo.jsxs)("form",{onSubmit:function(e){e.preventDefault(),Yo(o.current.value)(function(e){r({title:e,description:i.current.value})})},children:[Object(jo.jsx)("input",{className:"react-kanban-card-adder-form__title",name:"title",autoFocus:!0,defaultValue:"Title",ref:o}),Object(jo.jsx)("input",{className:"react-kanban-card-adder-form__description",name:"description",defaultValue:"Description",ref:i}),Object(jo.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"5px"},children:[Object(jo.jsx)("button",{className:"react-kanban-card-adder-form__button",type:"submit",children:"Add"}),Object(jo.jsx)("button",{className:"react-kanban-card-adder-form__button",type:"button",onClick:n,children:"Cancel"})]})]})})};function Xo(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function Ko(e){var r=e.column,n=e.onConfirm,o=function(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),i.length!==r);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,r)||function(e,r){if(e){if("string"==typeof e)return Xo(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xo(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(t.useState)(!1),2),i=o[0],a=o[1];return Object(jo.jsx)(jo.Fragment,{children:i?Object(jo.jsx)(Jo,{onConfirm:function(e){n(r,e),a(!1)},onCancel:function(){return a(!1)}}):Object(jo.jsx)("button",{className:"react-kanban-card-adder-button",onClick:function(){return a(!i)},children:"+"})})}function Qo(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function Zo(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Qo(Object(n),!0).forEach(function(r){ei(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ei(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var ri=Mo(Object(t.forwardRef)(function(e,r){return Object(jo.jsx)("div",Zo({ref:r,style:{minHeight:"inherit",height:"inherit"}},e))})),ni=function(e){var r=e.children,n=e.index,t=e.renderCard,o=e.renderColumnHeader,i=e.disableColumnDrag,a=e.disableCardDrag,u=e.onCardNew,c=e.allowAddCard;return Object(jo.jsx)(wo,{draggableId:"column-draggable-".concat(r.id),index:n,isDragDisabled:i,children:function(e){var n,i=(n=e.draggableProps,Object.keys(n).reduce(function(e,r){return"style"===r?e:Go(Go({},e),{},ko({},r,n[r]))},{}));return Object(jo.jsxs)("div",Zo(Zo({ref:e.innerRef},i),{},{style:Zo({height:"100%",minHeight:"28px",display:"inline-block",verticalAlign:"top"},e.draggableProps.style),className:"react-kanban-column",children:[Object(jo.jsx)("div",Zo(Zo({},e.dragHandleProps),{},{children:o(r)})),c&&Object(jo.jsx)(Ko,{column:r,onConfirm:u}),Object(jo.jsx)(ri,{droppableId:String(r.id),children:r.cards.length?r.cards.map(function(e,n){return Object(jo.jsx)(Ro,{index:n,renderCard:function(n){return t(r,e,n)},disableCardDrag:a,children:e},e.id)}):Object(jo.jsx)("div",{className:"react-kanban-card-skeleton"})})]}))}})},ti=function(e){var r=e.onConfirm,n=e.onCancel,o=Object(t.createRef)();return Object(jo.jsx)("div",{className:"react-kanban-column",style:{minWidth:"230px"},children:Object(jo.jsxs)("form",{style:{display:"flex",justifyContent:"space-between"},onSubmit:function(e){e.preventDefault(),Yo(o.current.value)(r)},children:[Object(jo.jsx)("input",{type:"text",ref:o,autoFocus:!0}),Object(jo.jsx)("button",{type:"submit",children:"Add"}),Object(jo.jsx)("button",{type:"button",onClick:n,children:"Cancel"})]})})};function oi(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}var ii=function(e){var r=e.onConfirm,n=function(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),i.length!==r);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,r)||function(e,r){if(e){if("string"==typeof e)return oi(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oi(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(t.useState)(!1),2),o=n[0],i=n[1];return o?Object(jo.jsx)(ti,{onConfirm:function(e){r(e),i(!1)},onCancel:function(){return i(!1)}}):Object(jo.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minWidth:"230px"},className:"react-kanban-column-adder-button",onClick:function(){return i(!0)},role:"button",children:"➕"})};function ai(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),i.length!==r);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,r)||function(e,r){if(e){if("string"==typeof e)return ui(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ui(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ui(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function ci(e){var r=e.allowRenameColumn,n=e.onClick,t=e.children;return r?Object(jo.jsx)("span",{style:{cursor:"pointer"},onClick:n,children:t}):Object(jo.jsx)("span",{children:t})}var li=function(e){var r=e.children,n=e.allowRemoveColumn,o=e.onColumnRemove,i=e.allowRenameColumn,a=e.onColumnRename,u=function(){var e=ai(Object(t.useState)(!1),2),r=e[0],n=e[1];return[r,function(){n(!r)}]}(),c=ai(u,2),l=c[0],d=c[1],s=ai(Object(t.useState)(""),2),p=s[0],f=s[1];function g(){f(r.title),d()}return Object(jo.jsx)("div",{className:"react-kanban-column-header",children:l?Object(jo.jsxs)("form",{onSubmit:function(e){e.preventDefault(),a(r,p),d()},children:[Object(jo.jsx)("span",{children:Object(jo.jsx)("input",{type:"text",value:p,onChange:function(e){var r=e.target.value;return f(r)},autoFocus:!0})}),Object(jo.jsxs)("span",{children:[Object(jo.jsx)("button",{className:"react-kanban-column-header__button",type:"submit",children:"Rename"}),Object(jo.jsx)("button",{className:"react-kanban-column-header__button",type:"button",onClick:g,children:"Cancel"})]})]}):Object(jo.jsxs)(jo.Fragment,{children:[Object(jo.jsx)(ci,{allowRenameColumn:i,onClick:g,children:r.title}),n&&Object(jo.jsx)("span",{onClick:function(){return o(r)},children:"×"})]})})},di=function(e){var r=e.children,n=e.dragging,t=e.allowRemoveCard,o=e.onCardRemove;return Object(jo.jsxs)("div",{className:"react-kanban-card ".concat(n?"react-kanban-card--dragging":""),children:[Object(jo.jsx)("span",{children:Object(jo.jsxs)("div",{className:"react-kanban-card__title",children:[Object(jo.jsx)("span",{children:r.title}),t&&Object(jo.jsx)("span",{style:{cursor:"pointer"},onClick:function(){return o(r)},children:"×"})]})}),Object(jo.jsx)("div",{className:"react-kanban-card__description",children:r.description})]})};function si(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function pi(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?si(Object(n),!0).forEach(function(r){fi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fi(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function gi(e){return"BOARD"===e}function bi(e,r){return e.columns.find(function(e){return e.id===r.fromColumnId}).cards[r.fromPosition]}function mi(e,r){return e.columns.find(function(e){var n=e.id;return String(n)===r})}function vi(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function hi(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?vi(Object(n),!0).forEach(function(r){yi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yi(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Oi(e,r){return hi(hi({},e),{},{cards:r(e.cards)})}function xi(e,r,n){var t=r.fromPosition,o=n.toPosition;return hi(hi({},e),{},{columns:Vo(e.columns,t,o)})}function wi(e,r,n){var t=r.fromPosition,o=r.fromColumnId,i=n.toPosition,a=n.toColumnId,u=e.columns.find(function(e){return e.id===o}),c=e.columns.find(function(e){return e.id===a}),l=function(r){return hi(hi({},e),{},{columns:e.columns.map(r)})},d=Oi.bind(null,u),s=Oi.bind(null,c);if(u.id===c.id){var p=d(function(e){return Vo(e,t,i)});return l(function(e){return e.id===u.id?p:e})}var f=d(function(e){return qo(e,t)}),g=s(function(e){return Ho(e,u.cards[t],i)});return l(function(e){return e.id===u.id?f:e.id===c.id?g:e})}function Di(e,r){return hi(hi({},e),{},{columns:Ho(e.columns,r,e.columns.length)})}function Ci(e,r){return hi(hi({},e),{},{columns:e.columns.filter(function(e){return e.id!==r.id})})}function Ii(e,r,n){var t=$o(e.columns)({when:function(e){return e.id===r.id},for:function(e){return hi(hi({},e),n)}});return hi(hi({},e),{},{columns:t})}function Ei(e,r,n){var t=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).on,o=e.columns.find(function(e){return e.id===r.id}),i=Ho(o.cards,n,"top"===t?0:o.cards.length),a=$o(e.columns)({when:function(e){var n=e.id;return r.id===n},for:function(e){return hi(hi({},e),{},{cards:i})}});return hi(hi({},e),{},{columns:a})}function ji(e,r,n){var t=e.columns.find(function(e){return e.id===r.id}),o=t.cards.filter(function(e){var r=e.id;return n.id!==r}),i=hi(hi({},t),{},{cards:o}),a=e.columns.map(function(e){return r.id===e.id?i:e});return hi(hi({},e),{},{columns:a})}function Pi(e,r,n){return hi(hi({},e),{},{columns:e.columns.map(function(e){return hi(hi({},e),{},{cards:(t=e.cards,$o(t)({when:function(e){return e.id===r},for:function(e){return hi(hi({},e),n)}}))});var t})})}function Si(e,r,n,t,o,i,a){try{var u=e[i](a),c=u.value}catch(l){return void n(l)}u.done?r(c):Promise.resolve(c).then(t,o)}function Ai(e){return function(){var r=this,n=arguments;return new Promise(function(t,o){var i=e.apply(r,n);function a(e){Si(i,t,o,a,u,"next",e)}function u(e){Si(i,t,o,a,u,"throw",e)}a(void 0)})}}function Ri(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function Ni(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function Bi(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Ni(Object(n),!0).forEach(function(r){Ti(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ti(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var Li=Mo(Object(t.forwardRef)(function(e,r){return Object(jo.jsx)("div",Bi({ref:r,style:{whiteSpace:"nowrap"}},e))}));function Mi(e){var r=e.initialBoard,n=e.onCardDragEnd,o=e.onColumnDragEnd,i=e.allowAddColumn,a=e.renderColumnAdder,u=e.onNewColumnConfirm,c=e.onColumnRemove,l=e.renderColumnHeader,d=e.allowRemoveColumn,s=e.allowRenameColumn,p=e.onColumnRename,f=e.onCardNew,g=e.renderCard,b=e.allowRemoveCard,m=e.onCardRemove,v=e.onColumnNew,h=e.disableCardDrag,y=e.disableColumnDrag,O=e.allowAddCard,x=e.onNewCardConfirm,w=function(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),i.length!==r);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,r)||function(e,r){if(e){if("string"==typeof e)return Ri(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ri(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(t.useState)(r),2),D=w[0],C=w[1],I=Wo(j,{moveCallback:wi,notifyCallback:n}),E=Wo(j,{moveCallback:xi,notifyCallback:o});function j(e,r){var n=e.source,t=e.destination,o=e.subject,i=r.moveCallback,a=r.notifyCallback,u=i(D,n,t);Yo(a)(function(e){return e(u,o,n,t)}),C(u)}function P(e){return S.apply(this,arguments)}function S(){return(S=Ai(function*(e){var r=a?e:yield u(e),n=Di(D,r);v(n,r),C(n)})).apply(this,arguments)}function A(e){var r=Ci(D,e);c(r,e),C(r)}function R(e,r){var n=Ii(D,e,{title:r});p(n,Bi(Bi({},e),{},{title:r})),C(n)}function N(e,r){var n=Ei(D,e,r,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});f(n,n.columns.find(function(r){return r.id===e.id}),r),C(n)}function B(){return(B=Ai(function*(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};N(e,yield x(r),n)})).apply(this,arguments)}function T(e,r){var n=ji(D,e,r);m(n,n.columns.find(function(r){return r.id===e.id}),r),C(n)}return Object(jo.jsx)(Gi,Bi(Bi({onCardDragEnd:I,onColumnDragEnd:E,renderColumnAdder:function(){return i?a?a({addColumn:P}):u?Object(jo.jsx)(ii,{onConfirm:function(e){return P({title:e,cards:[]})}}):null:null}},l&&{renderColumnHeader:function(e){return l(e,{removeColumn:A.bind(null,e),renameColumn:R.bind(null,e),addCard:N.bind(null,e)})}}),{},{renderCard:function(e,r,n){return g?g(r,{removeCard:T.bind(null,e,r),dragging:n}):Object(jo.jsx)(di,{dragging:n,allowRemoveCard:b,onCardRemove:function(r){return T(e,r)},children:r})},allowRemoveColumn:d,onColumnRemove:A,allowRenameColumn:s,onColumnRename:R,disableColumnDrag:y,disableCardDrag:h,onCardNew:function(e,r){return function(e,r){return B.apply(this,arguments)}(e,r,O)},allowAddCard:O&&x,children:D}))}function _i(e){var r=e.children,n=e.onCardDragEnd,t=e.onColumnDragEnd,o=e.allowAddColumn,i=e.renderColumnAdder,a=e.onNewColumnConfirm,u=e.onColumnRemove,c=e.renderColumnHeader,l=e.allowRemoveColumn,d=e.allowRenameColumn,s=e.onColumnRename,p=e.renderCard,f=e.allowRemoveCard,g=e.onCardRemove,b=e.disableCardDrag,m=e.disableColumnDrag,v=Wo(y,{notifyCallback:n}),h=Wo(y,{notifyCallback:t});function y(e,r){var n=e.source,t=e.destination,o=e.subject;Yo(r.notifyCallback)(function(e){return e(o,n,t)})}return Object(jo.jsx)(Gi,Bi(Bi({onCardDragEnd:v,onColumnDragEnd:h,renderColumnAdder:function(){return o?i?i():a?Object(jo.jsx)(ii,{onConfirm:function(e){return a({title:e,cards:[]})}}):null:null}},c&&{renderColumnHeader:c}),{},{renderCard:function(e,r,n){return p?p(r,{dragging:n}):Object(jo.jsx)(di,{dragging:n,allowRemoveCard:f,onCardRemove:g,children:r})},allowRemoveColumn:l,onColumnRemove:u,allowRenameColumn:d,onColumnRename:s,disableColumnDrag:m,disableCardDrag:b,children:r}))}function Gi(e){var r=e.children,n=e.renderCard,t=e.disableColumnDrag,o=e.disableCardDrag,i=e.renderColumnHeader,a=e.renderColumnAdder,u=e.allowRemoveColumn,c=e.onColumnRemove,l=e.allowRenameColumn,d=e.onColumnRename,s=e.onColumnDragEnd,p=e.onCardDragEnd,f=e.onCardNew,g=e.allowAddCard;return Object(jo.jsx)($t,{onDragEnd:function(e){var n,t=function(e,r){if(null===e.destination)return{};var n={fromPosition:e.source.index},t={toPosition:e.destination.index};return gi(e.type)?{source:n,destination:t}:{source:pi(pi({},n),{},{fromColumnId:mi(r,e.source.droppableId).id}),destination:pi(pi({},t),{},{toColumnId:mi(r,e.destination.droppableId).id})}}(e,r);t.source&&(gi(e.type)?(n=t).source.fromPosition!==n.destination.toPosition&&s(Bi(Bi({},t),{},{subject:r.columns[t.source.fromPosition]})):function(e){return!(e.source.fromPosition===e.destination.toPosition&&e.source.fromColumnId===e.destination.toColumnId)}(t)&&p(Bi(Bi({},t),{},{subject:bi(r,t.source)})))},children:Object(jo.jsxs)("div",{style:{overflowY:"hidden",display:"flex",alignItems:"flex-start"},className:"react-kanban-board",children:[Object(jo.jsx)(Li,{droppableId:"board-droppable",direction:"horizontal",type:"BOARD",children:r.columns.map(function(e,r){return Object(jo.jsx)(ni,{index:r,renderCard:n,renderColumnHeader:function(e){return i?i(e):Object(jo.jsx)(li,{allowRemoveColumn:u,onColumnRemove:c,allowRenameColumn:l,onColumnRename:d,children:e})},disableColumnDrag:t,disableCardDrag:o,onCardNew:f,allowAddCard:g,children:e},e.id)})}),a()]})})}var ki=function(e){return e.initialBoard?Object(jo.jsx)(Mi,Bi({},e)):Object(jo.jsx)(_i,Bi({},e))}}]))}(r.__module);var l=r.__module.exports,d=/* @__PURE__ */e.getDefaultExportFromCjs(l);exports.default=d;
3
3
  //# sourceMappingURL=index.js.map