summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/7707.d32bdcf8038b7eebaa97.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/gui/v2/7707.d32bdcf8038b7eebaa97.js')
-rw-r--r--web/gui/v2/7707.d32bdcf8038b7eebaa97.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/gui/v2/7707.d32bdcf8038b7eebaa97.js b/web/gui/v2/7707.d32bdcf8038b7eebaa97.js
new file mode 100644
index 000000000..66627882a
--- /dev/null
+++ b/web/gui/v2/7707.d32bdcf8038b7eebaa97.js
@@ -0,0 +1,2 @@
+/*! For license information please see 7707.d32bdcf8038b7eebaa97.js.LICENSE.txt */
+!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="4c822564-d282-4514-a2b4-be612a6802cb",e._sentryDebugIdIdentifier="sentry-dbid-4c822564-d282-4514-a2b4-be612a6802cb")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"6845f9ce010d5a446e5d4a40f17204cb8341a07a"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[7707],{17563:function(e,r,t){const n=t(70610),i=t(44020),a=t(80500),o=t(92806),l=Symbol("encodeFragmentIdentifier");function c(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(e,r){return r.encode?r.strict?n(e):encodeURIComponent(e):e}function s(e,r){return r.decode?i(e):e}function d(e){return Array.isArray(e)?e.sort():"object"===typeof e?d(Object.keys(e)).sort(((e,r)=>Number(e)-Number(r))).map((r=>e[r])):e}function p(e){const r=e.indexOf("#");return-1!==r&&(e=e.slice(0,r)),e}function f(e){const r=(e=p(e)).indexOf("?");return-1===r?"":e.slice(r+1)}function g(e,r){return r.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!r.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function v(e,r){c((r=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},r)).arrayFormatSeparator);const t=function(e){let r;switch(e.arrayFormat){case"index":return(e,t,n)=>{r=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),r?(void 0===n[e]&&(n[e]={}),n[e][r[1]]=t):n[e]=t};case"bracket":return(e,t,n)=>{r=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),r?void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=[t]:n[e]=t};case"colon-list-separator":return(e,t,n)=>{r=/(:list)$/.exec(e),e=e.replace(/:list$/,""),r?void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=[t]:n[e]=t};case"comma":case"separator":return(r,t,n)=>{const i="string"===typeof t&&t.includes(e.arrayFormatSeparator),a="string"===typeof t&&!i&&s(t,e).includes(e.arrayFormatSeparator);t=a?s(t,e):t;const o=i||a?t.split(e.arrayFormatSeparator).map((r=>s(r,e))):null===t?t:s(t,e);n[r]=o};case"bracket-separator":return(r,t,n)=>{const i=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!i)return void(n[r]=t?s(t,e):t);const a=null===t?[]:t.split(e.arrayFormatSeparator).map((r=>s(r,e)));void 0!==n[r]?n[r]=[].concat(n[r],a):n[r]=a};default:return(e,r,t)=>{void 0!==t[e]?t[e]=[].concat(t[e],r):t[e]=r}}}(r),n=Object.create(null);if("string"!==typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const i of e.split("&")){if(""===i)continue;let[e,o]=a(r.decode?i.replace(/\+/g," "):i,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?o:s(o,r),t(s(e,r),o,n)}for(const i of Object.keys(n)){const e=n[i];if("object"===typeof e&&null!==e)for(const t of Object.keys(e))e[t]=g(e[t],r);else n[i]=g(e,r)}return!1===r.sort?n:(!0===r.sort?Object.keys(n).sort():Object.keys(n).sort(r.sort)).reduce(((e,r)=>{const t=n[r];return Boolean(t)&&"object"===typeof t&&!Array.isArray(t)?e[r]=d(t):e[r]=t,e}),Object.create(null))}r.extract=f,r.parse=v,r.stringify=(e,r)=>{if(!e)return"";c((r=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},r)).arrayFormatSeparator);const t=t=>{return r.skipNull&&(null===(n=e[t])||void 0===n)||r.skipEmptyString&&""===e[t];var n},n=function(e){switch(e.arrayFormat){case"index":return r=>(t,n)=>{const i=t.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,[u(r,e),"[",i,"]"].join("")]:[...t,[u(r,e),"[",u(i,e),"]=",u(n,e)].join("")]};case"bracket":return r=>(t,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,[u(r,e),"[]"].join("")]:[...t,[u(r,e),"[]=",u(n,e)].join("")];case"colon-list-separator":return r=>(t,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,[u(r,e),":list="].join("")]:[...t,[u(r,e),":list=",u(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const r="bracket-separator"===e.arrayFormat?"[]=":"=";return t=>(n,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length?[[u(t,e),r,u(i,e)].join("")]:[[n,u(i,e)].join(e.arrayFormatSeparator)])}default:return r=>(t,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,u(r,e)]:[...t,[u(r,e),"=",u(n,e)].join("")]}}(r),i={};for(const o of Object.keys(e))t(o)||(i[o]=e[o]);const a=Object.keys(i);return!1!==r.sort&&a.sort(r.sort),a.map((t=>{const i=e[t];return void 0===i?"":null===i?u(t,r):Array.isArray(i)?0===i.length&&"bracket-separator"===r.arrayFormat?u(t,r)+"[]":i.reduce(n(t),[]).join("&"):u(t,r)+"="+u(i,r)})).filter((e=>e.length>0)).join("&")},r.parseUrl=(e,r)=>{r=Object.assign({decode:!0},r);const[t,n]=a(e,"#");return Object.assign({url:t.split("?")[0]||"",query:v(f(e),r)},r&&r.parseFragmentIdentifier&&n?{fragmentIdentifier:s(n,r)}:{})},r.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[l]:!0},t);const n=p(e.url).split("?")[0]||"",i=r.extract(e.url),a=r.parse(i,{sort:!1}),o=Object.assign(a,e.query);let c=r.stringify(o,t);c&&(c=`?${c}`);let s=function(e){let r="";const t=e.indexOf("#");return-1!==t&&(r=e.slice(t)),r}(e.url);return e.fragmentIdentifier&&(s=`#${t[l]?u(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${n}${c}${s}`},r.pick=(e,t,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[l]:!1},n);const{url:i,query:a,fragmentIdentifier:c}=r.parseUrl(e,n);return r.stringifyUrl({url:i,query:o(a,t),fragmentIdentifier:c},n)},r.exclude=(e,t,n)=>{const i=Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r);return r.pick(e,i,n)}},97554:function(e,r,t){t.d(r,{Z5:function(){return Bn},_l:function(){return fi},bK:function(){return yi}});var n=t(67294),i=t(94578),a=t(87462),o=t(14890),l=t(28216),c=t(51163),u=t(27642),s=t(30845),d=function(e){var r=[],t=null,n=function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];r=i,t||(t=requestAnimationFrame((function(){t=null,e.apply(void 0,r)})))};return n.cancel=function(){t&&(cancelAnimationFrame(t),t=null)},n},p=t(73935);function f(e,r){}f.bind(null,"warn"),f.bind(null,"error");function g(){}function v(e,r,t){var n=r.map((function(r){var n=function(e,r){return(0,a.Z)({},e,{},r)}(t,r.options);return e.addEventListener(r.eventName,r.fn,n),function(){e.removeEventListener(r.eventName,r.fn,n)}}));return function(){n.forEach((function(e){e()}))}}var m=!0,b="Invariant failed";function y(e){this.message=e}function h(e,r){if(!e)throw new y(m?b:b+": "+(r||""))}y.prototype.toString=function(){return this.message};var I=function(e){function r(){for(var r,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(r=e.call.apply(e,[this].concat(n))||this).callbacks=null,r.unbind=g,r.onWindowError=function(e){var t=r.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof y&&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}(0,i.Z)(r,e);var t=r.prototype;return t.componentDidMount=function(){this.unbind=v(window,[{eventName:"error",fn:this.onWindowError}])},t.componentDidCatch=function(e){if(!(e instanceof y))throw e;this.setState({})},t.componentWillUnmount=function(){this.unbind()},t.render=function(){return this.props.children(this.setCallbacks)},r}(n.Component),D=function(e){return e+1},x=function(e,r){var t=e.droppableId===r.droppableId,n=D(e.index),i=D(r.index);return t?"\n You have moved the item from position "+n+"\n to position "+i+"\n ":"\n You have moved the item from position "+n+"\n in list "+e.droppableId+"\n to list "+r.droppableId+"\n in position "+i+"\n "},w=function(e,r,t){return r.droppableId===t.droppableId?"\n The item "+e+"\n has been combined with "+t.draggableId:"\n The item "+e+"\n in list "+r.droppableId+"\n has been combined with "+t.draggableId+"\n in list "+t.droppableId+"\n "},E=function(e){return"\n The item has returned to its starting position\n of "+D(e.index)+"\n"},A={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n You have lifted an item in position "+D(e.source.index)+"\n"},onDragUpdate:function(e){var r=e.destination;if(r)return x(e.source,r);var t=e.combine;return t?w(e.draggableId,e.source,t):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+E(e.source)+"\n ";var r=e.destination,t=e.combine;return r?"\n You have dropped the item.\n "+x(e.source,r)+"\n ":t?"\n You have dropped the item.\n "+w(e.draggableId,e.source,t)+"\n ":"\n The item has been dropped while not over a drop area.\n "+E(e.source)+"\n "}},C={x:0,y:0},S=function(e,r){return{x:e.x+r.x,y:e.y+r.y}},O=function(e,r){return{x:e.x-r.x,y:e.y-r.y}},N=function(e,r){return e.x===r.x&&e.y===r.y},B=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},R=function(e,r,t){var n;return void 0===t&&(t=0),(n={})[e]=r,n["x"===e?"y":"x"]=t,n},P=function(e,r){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))},T=function(e,r){return Math.min.apply(Math,r.map((function(r){return P(e,r)})))},L=function(e){return function(r){return{x:e(r.x),y:e(r.y)}}},G=function(e,r){return{top:e.top+r.y,left:e.left+r.x,bottom:e.bottom+r.y,right:e.right+r.x}},M=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}]},F=function(e,r){return r&&r.shouldClipSubject?function(e,r){var t=(0,u.Dz)({top:Math.max(r.top,e.top),right:Math.min(r.right,e.right),bottom:Math.min(r.bottom,e.bottom),left:Math.max(r.left,e.left)});return t.width<=0||t.height<=0?null:t}(r.pageMarginBox,e):(0,u.Dz)(e)},_=function(e){var r=e.page,t=e.withPlaceholder,n=e.axis,i=e.frame,o=function(e,r){return r?G(e,r.scroll.diff.displacement):e}(r.marginBox,i),l=function(e,r,t){var n;return t&&t.increasedBy?(0,a.Z)({},e,((n={})[r.end]=e[r.end]+t.increasedBy[r.line],n)):e}(o,n,t);return{page:r,withPlaceholder:t,active:F(l,i)}},j=function(e,r){e.frame||h(!1);var t=e.frame,n=O(r,t.scroll.initial),i=B(n),o=(0,a.Z)({},t,{scroll:{initial:t.scroll.initial,current:r,diff:{value:n,displacement:i},max:t.scroll.max}}),l=_({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return(0,a.Z)({},e,{frame:o,subject:l})};function k(e){return Object.values?Object.values(e):Object.keys(e).map((function(r){return e[r]}))}function U(e,r){if(e.findIndex)return e.findIndex(r);for(var t=0;t<e.length;t++)if(r(e[t]))return t;return-1}function W(e,r){if(e.find)return e.find(r);var t=U(e,r);return-1!==t?e[t]:void 0}function H(e){return Array.prototype.slice.call(e)}var Z=(0,s.Z)((function(e){return e.reduce((function(e,r){return e[r.descriptor.id]=r,e}),{})})),Y=(0,s.Z)((function(e){return e.reduce((function(e,r){return e[r.descriptor.id]=r,e}),{})})),q=(0,s.Z)((function(e){return k(e)})),z=(0,s.Z)((function(e){return k(e)})),V=(0,s.Z)((function(e,r){var t=z(r).filter((function(r){return e===r.descriptor.droppableId})).sort((function(e,r){return e.descriptor.index-r.descriptor.index}));return t}));function $(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function J(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var X=(0,s.Z)((function(e,r){return r.filter((function(r){return r.descriptor.id!==e.descriptor.id}))})),K=function(e,r){return e.descriptor.droppableId===r.descriptor.id},Q={point:C,value:0},ee={invisible:{},visible:{},all:[]},re={displaced:ee,displacedBy:Q,at:null},te=function(e,r){return function(t){return e<=t&&t<=r}},ne=function(e){var r=te(e.top,e.bottom),t=te(e.left,e.right);return function(n){if(r(n.top)&&r(n.bottom)&&t(n.left)&&t(n.right))return!0;var i=r(n.top)||r(n.bottom),a=t(n.left)||t(n.right);if(i&&a)return!0;var o=n.top<e.top&&n.bottom>e.bottom,l=n.left<e.left&&n.right>e.right;return!(!o||!l)||(o&&a||l&&i)}},ie=function(e){var r=te(e.top,e.bottom),t=te(e.left,e.right);return function(e){return r(e.top)&&r(e.bottom)&&t(e.left)&&t(e.right)}},ae={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},oe={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},le=function(e){var r=e.target,t=e.destination,n=e.viewport,i=e.withDroppableDisplacement,a=e.isVisibleThroughFrameFn,o=i?function(e,r){var t=r.frame?r.frame.scroll.diff.displacement:C;return G(e,t)}(r,t):r;return function(e,r,t){return!!r.subject.active&&t(r.subject.active)(e)}(o,t,a)&&function(e,r,t){return t(r)(e)}(o,n,a)},ce=function(e){return le((0,a.Z)({},e,{isVisibleThroughFrameFn:ne}))},ue=function(e){return le((0,a.Z)({},e,{isVisibleThroughFrameFn:ie}))},se=function(e,r,t){if("boolean"===typeof t)return t;if(!r)return!0;var n=r.invisible,i=r.visible;if(n[e])return!1;var a=i[e];return!a||a.shouldAnimate};function de(e){var r=e.afterDragging,t=e.destination,n=e.displacedBy,i=e.viewport,a=e.forceShouldAnimate,o=e.last;return r.reduce((function(e,r){var l=function(e,r){var t=e.page.marginBox,n={top:r.point.y,right:0,bottom:0,left:r.point.x};return(0,u.Dz)((0,u.jn)(t,n))}(r,n),c=r.descriptor.id;if(e.all.push(c),!ce({target:l,destination:t,viewport:i,withDroppableDisplacement:!0}))return e.invisible[r.descriptor.id]=!0,e;var s={draggableId:c,shouldAnimate:se(c,o,a)};return e.visible[c]=s,e}),{all:[],visible:{},invisible:{}})}function pe(e){var r=e.insideDestination,t=e.inHomeList,n=e.displacedBy,i=e.destination,a=function(e,r){if(!e.length)return 0;var t=e[e.length-1].descriptor.index;return r.inHomeList?t:t+1}(r,{inHomeList:t});return{displaced:ee,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:a}}}}function fe(e){var r=e.draggable,t=e.insideDestination,n=e.destination,i=e.viewport,a=e.displacedBy,o=e.last,l=e.index,c=e.forceShouldAnimate,u=K(r,n);if(null==l)return pe({insideDestination:t,inHomeList:u,displacedBy:a,destination:n});var s=W(t,(function(e){return e.descriptor.index===l}));if(!s)return pe({insideDestination:t,inHomeList:u,displacedBy:a,destination:n});var d=X(r,t),p=t.indexOf(s);return{displaced:de({afterDragging:d.slice(p),destination:n,displacedBy:a,last:o,viewport:i.frame,forceShouldAnimate:c}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function ge(e,r){return Boolean(r.effected[e])}var ve=function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.draggable,i=e.draggables,a=e.destination,o=e.insideDestination,l=e.previousImpact,c=e.viewport,u=e.afterCritical,s=l.at;if(s||h(!1),"REORDER"===s.type){var d=function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.insideDestination,i=e.location;if(!n.length)return null;var a=i.index,o=r?a+1:a-1,l=n[0].descriptor.index,c=n[n.length-1].descriptor.index;return o<l||o>(t?c:c+1)?null:o}({isMovingForward:r,isInHomeList:t,location:s.destination,insideDestination:o});return null==d?null:fe({draggable:n,insideDestination:o,destination:a,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:d})}var p=function(e){var r=e.isMovingForward,t=e.destination,n=e.draggables,i=e.combine,a=e.afterCritical;if(!t.isCombineEnabled)return null;var o=i.draggableId,l=n[o].descriptor.index;return ge(o,a)?r?l:l-1:r?l+1:l}({isMovingForward:r,destination:a,displaced:l.displaced,draggables:i,combine:s.combine,afterCritical:u});return null==p?null:fe({draggable:n,insideDestination:o,destination:a,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:p})},me=function(e){var r=e.afterCritical,t=e.impact,n=e.draggables,i=J(t);i||h(!1);var a=i.draggableId,o=n[a].page.borderBox.center,l=function(e){var r=e.displaced,t=e.afterCritical,n=e.combineWith,i=e.displacedBy,a=Boolean(r.visible[n]||r.invisible[n]);return ge(n,t)?a?C:B(i.point):a?i.point:C}({displaced:t.displaced,afterCritical:r,combineWith:a,displacedBy:t.displacedBy});return S(o,l)},be=function(e,r){return r.margin[e.start]+r.borderBox[e.size]/2},ye=function(e,r,t){return r[e.crossAxisStart]+t.margin[e.crossAxisStart]+t.borderBox[e.crossAxisSize]/2},he=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return R(r.line,t.marginBox[r.end]+be(r,n),ye(r,t.marginBox,n))},Ie=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return R(r.line,t.marginBox[r.start]-function(e,r){return r.margin[e.end]+r.borderBox[e.size]/2}(r,n),ye(r,t.marginBox,n))},De=function(e){var r=e.impact,t=e.draggable,n=e.draggables,i=e.droppable,a=e.afterCritical,o=V(i.descriptor.id,n),l=t.page,c=i.axis;if(!o.length)return function(e){var r=e.axis,t=e.moveInto,n=e.isMoving;return R(r.line,t.contentBox[r.start]+be(r,n),ye(r,t.contentBox,n))}({axis:c,moveInto:i.page,isMoving:l});var s=r.displaced,d=r.displacedBy,p=s.all[0];if(p){var f=n[p];if(ge(p,a))return Ie({axis:c,moveRelativeTo:f.page,isMoving:l});var g=(0,u.cv)(f.page,d.point);return Ie({axis:c,moveRelativeTo:g,isMoving:l})}var v=o[o.length-1];if(v.descriptor.id===t.descriptor.id)return l.borderBox.center;if(ge(v.descriptor.id,a)){var m=(0,u.cv)(v.page,B(a.displacedBy.point));return he({axis:c,moveRelativeTo:m,isMoving:l})}return he({axis:c,moveRelativeTo:v.page,isMoving:l})},xe=function(e,r){var t=e.frame;return t?S(r,t.scroll.diff.displacement):r},we=function(e){var r=function(e){var r=e.impact,t=e.draggable,n=e.droppable,i=e.draggables,a=e.afterCritical,o=t.page.borderBox.center,l=r.at;return n&&l?"REORDER"===l.type?De({impact:r,draggable:t,draggables:i,droppable:n,afterCritical:a}):me({impact:r,draggables:i,afterCritical:a}):o}(e),t=e.droppable;return t?xe(t,r):r},Ee=function(e,r){var t=O(r,e.scroll.initial),n=B(t);return{frame:(0,u.Dz)({top:r.y,bottom:r.y+e.frame.height,left:r.x,right:r.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:r,diff:{value:t,displacement:n}}}};function Ae(e,r){return e.map((function(e){return r[e]}))}var Ce=function(e){var r=e.pageBorderBoxCenter,t=e.draggable,n=function(e,r){return S(e.scroll.diff.displacement,r)}(e.viewport,r),i=O(n,t.page.borderBox.center);return S(t.client.borderBox.center,i)},Se=function(e){var r=e.draggable,t=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,l=e.onlyOnMainAxis,c=void 0!==l&&l,u=O(n,r.page.borderBox.center),s={target:G(r.page.borderBox,u),destination:t,withDroppableDisplacement:o,viewport:i};return c?function(e){return le((0,a.Z)({},e,{isVisibleThroughFrameFn:(r=e.destination.axis,function(e){var t=te(e.top,e.bottom),n=te(e.left,e.right);return function(e){return r===ae?t(e.top)&&t(e.bottom):n(e.left)&&n(e.right)}})}));var r}(s):ue(s)},Oe=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,i=e.draggables,o=e.previousImpact,l=e.viewport,c=e.previousPageBorderBoxCenter,u=e.previousClientSelection,s=e.afterCritical;if(!n.isEnabled)return null;var d=V(n.descriptor.id,i),p=K(t,n),f=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,i=e.insideDestination,o=e.previousImpact;if(!n.isCombineEnabled)return null;if(!$(o))return null;function l(e){var r={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return(0,a.Z)({},o,{at:r})}var c=o.displaced.all,u=c.length?c[0]:null;if(r)return u?l(u):null;var s=X(t,i);if(!u)return s.length?l(s[s.length-1].descriptor.id):null;var d=U(s,(function(e){return e.descriptor.id===u}));-1===d&&h(!1);var p=d-1;return p<0?null:l(s[p].descriptor.id)}({isMovingForward:r,draggable:t,destination:n,insideDestination:d,previousImpact:o})||ve({isMovingForward:r,isInHomeList:p,draggable:t,draggables:i,destination:n,insideDestination:d,previousImpact:o,viewport:l,afterCritical:s});if(!f)return null;var g=we({impact:f,draggable:t,droppable:n,draggables:i,afterCritical:s});if(Se({draggable:t,destination:n,newPageBorderBoxCenter:g,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Ce({pageBorderBoxCenter:g,draggable:t,viewport:l}),impact:f,scrollJumpRequest:null};var v=O(g,c),m=function(e){var r=e.impact,t=e.viewport,n=e.destination,i=e.draggables,o=e.maxScrollChange,l=Ee(t,S(t.scroll.current,o)),c=n.frame?j(n,S(n.frame.scroll.current,o)):n,u=r.displaced,s=de({afterDragging:Ae(u.all,i),destination:n,displacedBy:r.displacedBy,viewport:l.frame,last:u,forceShouldAnimate:!1}),d=de({afterDragging:Ae(u.all,i),destination:c,displacedBy:r.displacedBy,viewport:t.frame,last:u,forceShouldAnimate:!1}),p={},f={},g=[u,s,d];return u.all.forEach((function(e){var r=function(e,r){for(var t=0;t<r.length;t++){var n=r[t].visible[e];if(n)return n}return null}(e,g);r?f[e]=r:p[e]=!0})),(0,a.Z)({},r,{displaced:{all:u.all,invisible:p,visible:f}})}({impact:f,viewport:l,destination:n,draggables:i,maxScrollChange:v});return{clientSelection:u,impact:m,scrollJumpRequest:v}},Ne=function(e){var r=e.subject.active;return r||h(!1),r},Be=function(e,r){var t=e.page.borderBox.center;return ge(e.descriptor.id,r)?O(t,r.displacedBy.point):t},Re=function(e,r){var t=e.page.borderBox;return ge(e.descriptor.id,r)?G(t,B(r.displacedBy.point)):t},Pe=(0,s.Z)((function(e,r){var t=r[e.line];return{value:t,point:R(e.line,t)}})),Te=function(e,r){return(0,a.Z)({},e,{scroll:(0,a.Z)({},e.scroll,{max:r})})},Le=function(e,r,t){var n=e.frame;K(r,e)&&h(!1),e.subject.withPlaceholder&&h(!1);var i=Pe(e.axis,r.displaceBy).point,o=function(e,r,t){var n=e.axis;if("virtual"===e.descriptor.mode)return R(n.line,r[n.line]);var i=e.subject.page.contentBox[n.size],a=V(e.descriptor.id,t).reduce((function(e,r){return e+r.client.marginBox[n.size]}),0)+r[n.line]-i;return a<=0?null:R(n.line,a)}(e,i,t),l={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){var c=_({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:e.frame});return(0,a.Z)({},e,{subject:c})}var u=o?S(n.scroll.max,o):n.scroll.max,s=Te(n,u),d=_({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:s});return(0,a.Z)({},e,{subject:d,frame:s})},Ge=function(e){var r=e.isMovingForward,t=e.previousPageBorderBoxCenter,n=e.draggable,i=e.isOver,a=e.draggables,o=e.droppables,l=e.viewport,c=e.afterCritical,u=function(e){var r=e.isMovingForward,t=e.pageBorderBoxCenter,n=e.source,i=e.droppables,a=e.viewport,o=n.subject.active;if(!o)return null;var l=n.axis,c=te(o[l.start],o[l.end]),u=q(i).filter((function(e){return e!==n})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return ne(a.frame)(Ne(e))})).filter((function(e){var t=Ne(e);return r?o[l.crossAxisEnd]<t[l.crossAxisEnd]:t[l.crossAxisStart]<o[l.crossAxisStart]})).filter((function(e){var r=Ne(e),t=te(r[l.start],r[l.end]);return c(r[l.start])||c(r[l.end])||t(o[l.start])||t(o[l.end])})).sort((function(e,t){var n=Ne(e)[l.crossAxisStart],i=Ne(t)[l.crossAxisStart];return r?n-i:i-n})).filter((function(e,r,t){return Ne(e)[l.crossAxisStart]===Ne(t[0])[l.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var s=u.filter((function(e){return te(Ne(e)[l.start],Ne(e)[l.end])(t[l.line])}));return 1===s.length?s[0]:s.length>1?s.sort((function(e,r){return Ne(e)[l.start]-Ne(r)[l.start]}))[0]:u.sort((function(e,r){var n=T(t,M(Ne(e))),i=T(t,M(Ne(r)));return n!==i?n-i:Ne(e)[l.start]-Ne(r)[l.start]}))[0]}({isMovingForward:r,pageBorderBoxCenter:t,source:i,droppables:o,viewport:l});if(!u)return null;var s=V(u.descriptor.id,a),d=function(e){var r=e.pageBorderBoxCenter,t=e.viewport,n=e.destination,i=e.insideDestination,a=e.afterCritical,o=i.filter((function(e){return ue({target:Re(e,a),destination:n,viewport:t.frame,withDroppableDisplacement:!0})})).sort((function(e,t){var i=P(r,xe(n,Be(e,a))),o=P(r,xe(n,Be(t,a)));return i<o?-1:o<i?1:e.descriptor.index-t.descriptor.index}));return o[0]||null}({pageBorderBoxCenter:t,viewport:l,destination:u,insideDestination:s,afterCritical:c}),p=function(e){var r=e.previousPageBorderBoxCenter,t=e.moveRelativeTo,n=e.insideDestination,i=e.draggable,a=e.draggables,o=e.destination,l=e.viewport,c=e.afterCritical;if(!t){if(n.length)return null;var u={displaced:ee,displacedBy:Q,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},s=we({impact:u,draggable:i,droppable:o,draggables:a,afterCritical:c}),d=K(i,o)?o:Le(o,i,a);return Se({draggable:i,destination:d,newPageBorderBoxCenter:s,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}var p=Boolean(r[o.axis.line]<=t.page.borderBox.center[o.axis.line]),f=function(){var e=t.descriptor.index;return t.descriptor.id===i.descriptor.id||p?e:e+1}(),g=Pe(o.axis,i.displaceBy);return fe({draggable:i,insideDestination:n,destination:o,viewport:l,displacedBy:g,last:ee,index:f})}({previousPageBorderBoxCenter:t,destination:u,draggable:n,draggables:a,moveRelativeTo:d,insideDestination:s,viewport:l,afterCritical:c});if(!p)return null;var f=we({impact:p,draggable:n,droppable:u,draggables:a,afterCritical:c});return{clientSelection:Ce({pageBorderBoxCenter:f,draggable:n,viewport:l}),impact:p,scrollJumpRequest:null}},Me=function(e){var r=e.at;return r?"REORDER"===r.type?r.destination.droppableId:r.combine.droppableId:null},Fe=function(e){var r=e.state,t=e.type,n=function(e,r){var t=Me(e);return t?r[t]:null}(r.impact,r.dimensions.droppables),i=Boolean(n),a=r.dimensions.droppables[r.critical.droppable.id],o=n||a,l=o.axis.direction,c="vertical"===l&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===l&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(c&&!i)return null;var u="MOVE_DOWN"===t||"MOVE_RIGHT"===t,s=r.dimensions.draggables[r.critical.draggable.id],d=r.current.page.borderBoxCenter,p=r.dimensions,f=p.draggables,g=p.droppables;return c?Oe({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:s,destination:o,draggables:f,viewport:r.viewport,previousClientSelection:r.current.client.selection,previousImpact:r.impact,afterCritical:r.afterCritical}):Ge({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:s,isOver:o,draggables:f,droppables:g,viewport:r.viewport,afterCritical:r.afterCritical})};function _e(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function je(e){var r=te(e.top,e.bottom),t=te(e.left,e.right);return function(e){return r(e.y)&&t(e.x)}}function ke(e){var r=e.pageBorderBox,t=e.draggable,n=e.droppables,i=q(n).filter((function(e){if(!e.isEnabled)return!1;var t,n,i=e.subject.active;if(!i)return!1;if(n=i,!((t=r).left<n.right&&t.right>n.left&&t.top<n.bottom&&t.bottom>n.top))return!1;if(je(i)(r.center))return!0;var a=e.axis,o=i.center[a.crossAxisLine],l=r[a.crossAxisStart],c=r[a.crossAxisEnd],u=te(i[a.crossAxisStart],i[a.crossAxisEnd]),s=u(l),d=u(c);return!s&&!d||(s?l<o:c>o)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var r=e.pageBorderBox,t=e.draggable,n=e.candidates,i=t.page.borderBox.center,a=n.map((function(e){var t=e.axis,n=R(e.axis.line,r.center[t.line],e.page.borderBox.center[t.crossAxisLine]);return{id:e.descriptor.id,distance:P(i,n)}})).sort((function(e,r){return r.distance-e.distance}));return a[0]?a[0].id:null}({pageBorderBox:r,draggable:t,candidates:i}):null}var Ue=function(e,r){return(0,u.Dz)(G(e,r))};function We(e){var r=e.displaced,t=e.id;return Boolean(r.visible[t]||r.invisible[t])}var He=function(e){var r=e.pageOffset,t=e.draggable,n=e.draggables,i=e.droppables,a=e.previousImpact,o=e.viewport,l=e.afterCritical,c=Ue(t.page.borderBox,r),u=ke({pageBorderBox:c,draggable:t,droppables:i});if(!u)return re;var s=i[u],d=V(s.descriptor.id,n),p=function(e,r){var t=e.frame;return t?Ue(r,t.scroll.diff.value):r}(s,c);return function(e){var r=e.draggable,t=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,i=e.destination,a=e.insideDestination,o=e.afterCritical;if(!i.isCombineEnabled)return null;var l=i.axis,c=Pe(i.axis,r.displaceBy),u=c.value,s=t[l.start],d=t[l.end],p=W(X(r,a),(function(e){var r=e.descriptor.id,t=e.page.borderBox,i=t[l.size]/4,a=ge(r,o),c=We({displaced:n.displaced,id:r});return a?c?d>t[l.start]+i&&d<t[l.end]-i:s>t[l.start]-u+i&&s<t[l.end]-u-i:c?d>t[l.start]+u+i&&d<t[l.end]+u-i:s>t[l.start]+i&&s<t[l.end]-i}));return p?{displacedBy:c,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:t,previousImpact:a,destination:s,insideDestination:d,afterCritical:l})||function(e){var r=e.pageBorderBoxWithDroppableScroll,t=e.draggable,n=e.destination,i=e.insideDestination,a=e.last,o=e.viewport,l=e.afterCritical,c=n.axis,u=Pe(n.axis,t.displaceBy),s=u.value,d=r[c.start],p=r[c.end],f=function(e){var r=e.draggable,t=e.closest,n=e.inHomeList;return t?n&&t.descriptor.index>r.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:W(X(t,i),(function(e){var r=e.descriptor.id,t=e.page.borderBox.center[c.line],n=ge(r,l),i=We({displaced:a,id:r});return n?i?p<=t:d<t-s:i?p<=t+s:d<t})),inHomeList:K(t,n)});return fe({draggable:t,insideDestination:i,destination:n,viewport:o,last:a,displacedBy:u,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:t,destination:s,insideDestination:d,last:a.displaced,viewport:o,afterCritical:l})},Ze=function(e,r){var t;return(0,a.Z)({},e,((t={})[r.descriptor.id]=r,t))},Ye=function(e){var r=e.previousImpact,t=e.impact,n=e.droppables,i=Me(r),o=Me(t);if(!i)return n;if(i===o)return n;var l=n[i];if(!l.subject.withPlaceholder)return n;var c=function(e){var r=e.subject.withPlaceholder;r||h(!1);var t=e.frame;if(!t){var n=_({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,a.Z)({},e,{subject:n})}var i=r.oldFrameMaxScroll;i||h(!1);var o=Te(t,i),l=_({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return(0,a.Z)({},e,{subject:l,frame:o})}(l);return Ze(n,c)},qe=function(e){var r=e.state,t=e.clientSelection,n=e.dimensions,i=e.viewport,o=e.impact,l=e.scrollJumpRequest,c=i||r.viewport,u=n||r.dimensions,s=t||r.current.client.selection,d=O(s,r.initial.client.selection),p={offset:d,selection:s,borderBoxCenter:S(r.initial.client.borderBoxCenter,d)},f={selection:S(p.selection,c.scroll.current),borderBoxCenter:S(p.borderBoxCenter,c.scroll.current),offset:S(p.offset,c.scroll.diff.value)},g={client:p,page:f};if("COLLECTING"===r.phase)return(0,a.Z)({phase:"COLLECTING"},r,{dimensions:u,viewport:c,current:g});var v=u.draggables[r.critical.draggable.id],m=o||He({pageOffset:f.offset,draggable:v,draggables:u.draggables,droppables:u.droppables,previousImpact:r.impact,viewport:c,afterCritical:r.afterCritical}),b=function(e){var r=e.draggable,t=e.draggables,n=e.droppables,i=e.previousImpact,a=e.impact,o=Ye({previousImpact:i,impact:a,droppables:n}),l=Me(a);if(!l)return o;var c=n[l];if(K(r,c))return o;if(c.subject.withPlaceholder)return o;var u=Le(c,r,t);return Ze(o,u)}({draggable:v,impact:m,previousImpact:r.impact,draggables:u.draggables,droppables:u.droppables});return(0,a.Z)({},r,{current:g,dimensions:{draggables:u.draggables,droppables:b},impact:m,viewport:c,scrollJumpRequest:l||null,forceShouldAnimate:!l&&null})};var ze=function(e){var r=e.impact,t=e.viewport,n=e.draggables,i=e.destination,o=e.forceShouldAnimate,l=r.displaced,c=function(e,r){return e.map((function(e){return r[e]}))}(l.all,n),u=de({afterDragging:c,destination:i,displacedBy:r.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:l});return(0,a.Z)({},r,{displaced:u})},Ve=function(e){var r=e.impact,t=e.draggable,n=e.droppable,i=e.draggables,a=e.viewport,o=e.afterCritical,l=we({impact:r,draggable:t,draggables:i,droppable:n,afterCritical:o});return Ce({pageBorderBoxCenter:l,draggable:t,viewport:a})},$e=function(e){var r=e.state,t=e.dimensions,n=e.viewport;"SNAP"!==r.movementMode&&h(!1);var i=r.impact,a=n||r.viewport,o=t||r.dimensions,l=o.draggables,c=o.droppables,u=l[r.critical.draggable.id],s=Me(i);s||h(!1);var d=c[s],p=ze({impact:i,viewport:a,destination:d,draggables:l}),f=Ve({impact:p,draggable:u,droppable:d,draggables:l,viewport:a,afterCritical:r.afterCritical});return qe({impact:p,clientSelection:f,state:r,dimensions:o,viewport:a})},Je=function(e){var r=e.draggable,t=e.home,n=e.draggables,i=e.viewport,a=Pe(t.axis,r.displaceBy),o=V(t.descriptor.id,n),l=o.indexOf(r);-1===l&&h(!1);var c,u=o.slice(l+1),s=u.reduce((function(e,r){return e[r.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:a,effected:s};return{impact:{displaced:de({afterDragging:u,destination:t,displacedBy:a,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:a,at:{type:"REORDER",destination:(c=r.descriptor,{index:c.index,droppableId:c.droppableId})}},afterCritical:d}},Xe=function(e){0},Ke=function(e){0},Qe=function(e){var r=e.additions,t=e.updatedDroppables,n=e.viewport,i=n.scroll.diff.value;return r.map((function(e){var r=e.descriptor.droppableId,o=function(e){var r=e.frame;return r||h(!1),r}(t[r]),l=o.scroll.diff.value,c=function(e){var r=e.draggable,t=e.offset,n=e.initialWindowScroll,i=(0,u.cv)(r.client,t),o=(0,u.oc)(i,n);return(0,a.Z)({},r,{placeholder:(0,a.Z)({},r.placeholder,{client:i}),client:i,page:o})}({draggable:e,offset:S(i,l),initialWindowScroll:n.scroll.initial});return c}))},er=function(e){return"SNAP"===e.movementMode},rr=function(e,r,t){var n=function(e,r){return{draggables:e.draggables,droppables:Ze(e.droppables,r)}}(e.dimensions,r);return!er(e)||t?qe({state:e,dimensions:n}):$e({state:e,dimensions:n})};function tr(e){return e.isDragging&&"SNAP"===e.movementMode?(0,a.Z)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var nr={phase:"IDLE",completed:null,shouldFlush:!1},ir=function(e,r){if(void 0===e&&(e=nr),"FLUSH"===r.type)return(0,a.Z)({},nr,{shouldFlush:!0});if("INITIAL_PUBLISH"===r.type){"IDLE"!==e.phase&&h(!1);var t=r.payload,n=t.critical,i=t.clientSelection,o=t.viewport,l=t.dimensions,c=t.movementMode,u=l.draggables[n.draggable.id],s=l.droppables[n.droppable.id],d={selection:i,borderBoxCenter:u.client.borderBox.center,offset:C},p={client:d,page:{selection:S(d.selection,o.scroll.initial),borderBoxCenter:S(d.selection,o.scroll.initial),offset:S(d.selection,o.scroll.diff.value)}},f=q(l.droppables).every((function(e){return!e.isFixedOnPage})),g=Je({draggable:u,home:s,draggables:l.draggables,viewport:o}),v=g.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:c,dimensions:l,initial:p,current:p,isWindowScrollAllowed:f,impact:v,afterCritical:g.afterCritical,onLiftImpact:v,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===r.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&h(!1),(0,a.Z)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===r.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&h(!1),function(e){var r=e.state,t=e.published;Xe();var n=t.modified.map((function(e){var t=r.dimensions.droppables[e.droppableId];return j(t,e.scroll)})),i=(0,a.Z)({},r.dimensions.droppables,{},Z(n)),o=Y(Qe({additions:t.additions,updatedDroppables:i,viewport:r.viewport})),l=(0,a.Z)({},r.dimensions.draggables,{},o);t.removals.forEach((function(e){delete l[e]}));var c={droppables:i,draggables:l},u=Me(r.impact),s=u?c.droppables[u]:null,d=c.draggables[r.critical.draggable.id],p=c.droppables[r.critical.droppable.id],f=Je({draggable:d,home:p,draggables:l,viewport:r.viewport}),g=f.impact,v=f.afterCritical,m=s&&s.isCombineEnabled?r.impact:g,b=He({pageOffset:r.current.page.offset,draggable:c.draggables[r.critical.draggable.id],draggables:c.draggables,droppables:c.droppables,previousImpact:m,viewport:r.viewport,afterCritical:v});Ke();var y=(0,a.Z)({phase:"DRAGGING"},r,{phase:"DRAGGING",impact:b,onLiftImpact:g,dimensions:c,afterCritical:v,forceShouldAnimate:!1});return"COLLECTING"===r.phase?y:(0,a.Z)({phase:"DROP_PENDING"},y,{phase:"DROP_PENDING",reason:r.reason,isWaiting:!1})}({state:e,published:r.payload});if("MOVE"===r.type){if("DROP_PENDING"===e.phase)return e;_e(e)||h(!1);var m=r.payload.client;return N(m,e.current.client.selection)?e:qe({state:e,clientSelection:m,impact:er(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===r.type){if("DROP_PENDING"===e.phase)return tr(e);if("COLLECTING"===e.phase)return tr(e);_e(e)||h(!1);var b=r.payload,y=b.id,I=b.newScroll,D=e.dimensions.droppables[y];if(!D)return e;var x=j(D,I);return rr(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;_e(e)||h(!1);var w=r.payload,E=w.id,A=w.isEnabled,O=e.dimensions.droppables[E];O||h(!1),O.isEnabled===A&&h(!1);var B=(0,a.Z)({},O,{isEnabled:A});return rr(e,B,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;_e(e)||h(!1);var R=r.payload,P=R.id,T=R.isCombineEnabled,L=e.dimensions.droppables[P];L||h(!1),L.isCombineEnabled===T&&h(!1);var G=(0,a.Z)({},L,{isCombineEnabled:T});return rr(e,G,!0)}if("MOVE_BY_WINDOW_SCROLL"===r.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;_e(e)||h(!1),e.isWindowScrollAllowed||h(!1);var M=r.payload.newScroll;if(N(e.viewport.scroll.current,M))return tr(e);var F=Ee(e.viewport,M);return er(e)?$e({state:e,viewport:F}):qe({state:e,viewport:F})}if("UPDATE_VIEWPORT_MAX_SCROLL"===r.type){if(!_e(e))return e;var _=r.payload.maxScroll;if(N(_,e.viewport.scroll.max))return e;var k=(0,a.Z)({},e.viewport,{scroll:(0,a.Z)({},e.viewport.scroll,{max:_})});return(0,a.Z)({phase:"DRAGGING"},e,{viewport:k})}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&&h(!1);var U=Fe({state:e,type:r.type});return U?qe({state:e,impact:U.impact,clientSelection:U.clientSelection,scrollJumpRequest:U.scrollJumpRequest}):e}if("DROP_PENDING"===r.type){var W=r.payload.reason;return"COLLECTING"!==e.phase&&h(!1),(0,a.Z)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:W})}if("DROP_ANIMATE"===r.type){var H=r.payload,z=H.completed,V=H.dropDuration,$=H.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&h(!1),{phase:"DROP_ANIMATING",completed:z,dropDuration:V,newHomeClientOffset:$,dimensions:e.dimensions}}return"DROP_COMPLETE"===r.type?{phase:"IDLE",completed:r.payload.completed,shouldFlush:!1}:e},ar=function(e){return{type:"LIFT",payload:e}},or=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},lr=function(){return{type:"COLLECTION_STARTING",payload:null}},cr=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},ur=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},sr=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},dr=function(e){return{type:"MOVE",payload:e}},pr=function(){return{type:"MOVE_UP",payload:null}},fr=function(){return{type:"MOVE_DOWN",payload:null}},gr=function(){return{type:"MOVE_RIGHT",payload:null}},vr=function(){return{type:"MOVE_LEFT",payload:null}},mr=function(){return{type:"FLUSH",payload:null}},br=function(e){return{type:"DROP_COMPLETE",payload:e}},yr=function(e){return{type:"DROP",payload:e}},hr=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var Ir="cubic-bezier(.2,1,.1,1)",Dr={drop:0,combining:.7},xr={drop:.75},wr=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Er={fluid:"opacity "+wr,snap:"transform "+wr+", opacity "+wr,drop:function(e){var r=e+"s "+Ir;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+wr,placeholder:"height "+wr+", width "+wr+", margin "+wr},Ar=function(e){return N(e,C)?null:"translate("+e.x+"px, "+e.y+"px)"},Cr={moveTo:Ar,drop:function(e,r){var t=Ar(e);return t?r?t+" scale("+xr.drop+")":t:null}},Sr=.33,Or=.55,Nr=Or-Sr,Br=function(e){var r=e.getState,t=e.dispatch;return function(e){return function(n){if("DROP"===n.type){var i=r(),o=n.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&h(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&h(!1);var l=i.critical,c=i.dimensions,u=c.draggables[i.critical.draggable.id],s=function(e){var r=e.draggables,t=e.reason,n=e.lastImpact,i=e.home,o=e.viewport,l=e.onLiftImpact;return n.at&&"DROP"===t?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:(0,a.Z)({},n,{displaced:ee}),didDropInsideDroppable:!0}:{impact:ze({draggables:r,impact:l,destination:i,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),d=s.impact,p=s.didDropInsideDroppable,f=p?$(d):null,g=p?J(d):null,v={index:l.draggable.index,droppableId:l.droppable.id},m={draggableId:u.descriptor.id,type:u.descriptor.type,source:v,reason:o,mode:i.movementMode,destination:f,combine:g},b=function(e){var r=e.impact,t=e.draggable,n=e.dimensions,i=e.viewport,a=e.afterCritical,o=n.draggables,l=n.droppables,c=Me(r),u=c?l[c]:null,s=l[t.descriptor.droppableId],d=Ve({impact:r,draggable:t,draggables:o,afterCritical:a,droppable:u||s,viewport:i});return O(d,t.client.borderBox.center)}({impact:d,draggable:u,dimensions:c,viewport:i.viewport,afterCritical:i.afterCritical}),y={critical:i.critical,afterCritical:i.afterCritical,result:m,impact:d};if(!N(i.current.client.offset,b)||Boolean(m.combine)){var I=function(e){var r=e.current,t=e.destination,n=e.reason,i=P(r,t);if(i<=0)return Sr;if(i>=1500)return Or;var a=Sr+Nr*(i/1500);return Number(("CANCEL"===n?.6*a:a).toFixed(2))}({current:i.current.client.offset,destination:b,reason:o});t(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:b,dropDuration:I,completed:y}))}else t(br({completed:y}))}}else t(function(e){return{type:"DROP_PENDING",payload:e}}({reason:o}))}else e(n)}}},Rr=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Pr(e){var r=e.onWindowScroll;var t=d((function(){r(Rr())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(r){r.target!==window&&r.target!==window.document||e()}}}(t),i=g;function a(){return i!==g}return{start:function(){a()&&h(!1),i=v(window,[n])},stop:function(){a()||h(!1),t.cancel(),i(),i=g},isActive:a}}var Tr=function(e){var r=Pr({onWindowScroll:function(r){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:r}})}});return function(e){return function(t){r.isActive()||"INITIAL_PUBLISH"!==t.type||r.start(),r.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(t)&&r.stop(),e(t)}}},Lr=function(){var e=[];return{add:function(r){var t=setTimeout((function(){return function(r){var t=U(e,(function(e){return e.timerId===r}));-1===t&&h(!1),e.splice(t,1)[0].callback()}(t)})),n={timerId:t,callback:r};e.push(n)},flush:function(){if(e.length){var r=[].concat(e);e.length=0,r.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Gr=function(e,r){Xe(),r(),Ke()},Mr=function(e,r){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:r}},Fr=function(e,r,t,n){if(e){var i=function(e){var r=!1,t=!1,n=setTimeout((function(){t=!0})),i=function(i){r||t||(r=!0,e(i),clearTimeout(n))};return i.wasCalled=function(){return r},i}(t);e(r,{announce:i}),i.wasCalled()||t(n(r))}else t(n(r))},_r=function(e,r){var t=function(e,r){var t=Lr(),n=null,i=function(t){n||h(!1),n=null,Gr(0,(function(){return Fr(e().onDragEnd,t,r,A.onDragEnd)}))};return{beforeCapture:function(r,t){n&&h(!1),Gr(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:r,mode:t})}))},beforeStart:function(r,t){n&&h(!1),Gr(0,(function(){var n=e().onBeforeDragStart;n&&n(Mr(r,t))}))},start:function(i,a){n&&h(!1);var o=Mr(i,a);n={mode:a,lastCritical:i,lastLocation:o.source,lastCombine:null},t.add((function(){Gr(0,(function(){return Fr(e().onDragStart,o,r,A.onDragStart)}))}))},update:function(i,o){var l=$(o),c=J(o);n||h(!1);var u=!function(e,r){if(e===r)return!0;var t=e.draggable.id===r.draggable.id&&e.draggable.droppableId===r.draggable.droppableId&&e.draggable.type===r.draggable.type&&e.draggable.index===r.draggable.index,n=e.droppable.id===r.droppable.id&&e.droppable.type===r.droppable.type;return t&&n}(i,n.lastCritical);u&&(n.lastCritical=i);var s,d,p=(d=l,!(null==(s=n.lastLocation)&&null==d||null!=s&&null!=d&&s.droppableId===d.droppableId&&s.index===d.index));p&&(n.lastLocation=l);var f=!function(e,r){return null==e&&null==r||null!=e&&null!=r&&e.draggableId===r.draggableId&&e.droppableId===r.droppableId}(n.lastCombine,c);if(f&&(n.lastCombine=c),u||p||f){var g=(0,a.Z)({},Mr(i,n.mode),{combine:c,destination:l});t.add((function(){Gr(0,(function(){return Fr(e().onDragUpdate,g,r,A.onDragUpdate)}))}))}},flush:function(){n||h(!1),t.flush()},drop:i,abort:function(){if(n){var e=(0,a.Z)({},Mr(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,r);return function(e){return function(r){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var i=n.payload.critical;return t.beforeStart(i,n.payload.movementMode),r(n),void t.start(i,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var a=n.payload.completed.result;return t.flush(),r(n),void t.drop(a)}if(r(n),"FLUSH"!==n.type){var o=e.getState();"DRAGGING"===o.phase&&t.update(o.critical,o.impact)}else t.abort()}else t.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},jr=function(e){return function(r){return function(t){if("DROP_ANIMATION_FINISHED"===t.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&h(!1),e.dispatch(br({completed:n.completed}))}else r(t)}}},kr=function(e){var r=null,t=null;return function(n){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(t&&(cancelAnimationFrame(t),t=null),r&&(r(),r=null)),n(i),"DROP_ANIMATE"===i.type){var a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};t=requestAnimationFrame((function(){t=null,r=v(window,[a])}))}}}},Ur=function(e){return function(r){return function(t){if(r(t),"PUBLISH_WHILE_DRAGGING"===t.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(yr({reason:n.reason})))}}}},Wr=o.qC,Hr=function(e){var r,t=e.dimensionMarshal,n=e.focusMarshal,i=e.styleMarshal,a=e.getResponders,l=e.announce,c=e.autoScroller;return(0,o.MT)(ir,Wr((0,o.md)((r=i,function(){return function(e){return function(t){"INITIAL_PUBLISH"===t.type&&r.dragging(),"DROP_ANIMATE"===t.type&&r.dropping(t.payload.completed.result.reason),"FLUSH"!==t.type&&"DROP_COMPLETE"!==t.type||r.resting(),e(t)}}}),function(e){return function(){return function(r){return function(t){"DROP_COMPLETE"!==t.type&&"FLUSH"!==t.type&&"DROP_ANIMATE"!==t.type||e.stopPublishing(),r(t)}}}}(t),function(e){return function(r){var t=r.getState,n=r.dispatch;return function(r){return function(i){if("LIFT"===i.type){var a=i.payload,o=a.id,l=a.clientSelection,c=a.movementMode,u=t();"DROP_ANIMATING"===u.phase&&n(br({completed:u.completed})),"IDLE"!==t().phase&&h(!1),n(mr()),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:o,movementMode:c}});var s={draggableId:o,scrollOptions:{shouldPublishImmediately:"SNAP"===c}},d=e.startPublishing(s),p=d.critical,f=d.dimensions,g=d.viewport;n({type:"INITIAL_PUBLISH",payload:{critical:p,dimensions:f,clientSelection:l,movementMode:c,viewport:g}})}else r(i)}}}}(t),Br,jr,kr,Ur,function(e){return function(r){return function(t){return function(n){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n))return e.stop(),void t(n);if("INITIAL_PUBLISH"===n.type){t(n);var i=r.getState();return"DRAGGING"!==i.phase&&h(!1),void e.start(i)}t(n),e.scroll(r.getState())}}}}(c),Tr,function(e){var r=!1;return function(){return function(t){return function(n){if("INITIAL_PUBLISH"===n.type)return r=!0,e.tryRecordFocus(n.payload.critical.draggable.id),t(n),void e.tryRestoreFocusRecorded();if(t(n),r){if("FLUSH"===n.type)return r=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){r=!1;var i=n.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(n),_r(a,l))))};var Zr=function(e){var r=e.scrollHeight,t=e.scrollWidth,n=e.height,i=e.width,a=O({x:t,y:r},{x:i,y:n});return{x:Math.max(0,a.x),y:Math.max(0,a.y)}},Yr=function(){var e=document.documentElement;return e||h(!1),e},qr=function(){var e=Yr();return Zr({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},zr=function(e){var r=e.critical,t=e.scrollOptions,n=e.registry;Xe();var i=function(){var e=Rr(),r=qr(),t=e.y,n=e.x,i=Yr(),a=n+i.clientWidth,o=t+i.clientHeight;return{frame:(0,u.Dz)({top:t,left:n,right:a,bottom:o}),scroll:{initial:e,current:e,max:r,diff:{value:C,displacement:C}}}}(),a=i.scroll.current,o=r.droppable,l=n.droppable.getAllByType(o.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(a,t)})),c=n.draggable.getAllByType(r.draggable.type).map((function(e){return e.getDimension(a)})),s={draggables:Y(c),droppables:Z(l)};return Ke(),{dimensions:s,critical:r,viewport:i}};function Vr(e,r,t){return t.descriptor.id!==r.id&&(t.descriptor.type===r.type&&"virtual"===e.droppable.getById(t.descriptor.droppableId).descriptor.mode)}var $r=function(e,r){var t=null,n=function(e){var r=e.registry,t=e.callbacks,n={additions:{},removals:{},modified:{}},i=null,a=function(){i||(t.collectionStarting(),i=requestAnimationFrame((function(){i=null,Xe();var e=n,a=e.additions,o=e.removals,l=e.modified,c=Object.keys(a).map((function(e){return r.draggable.getById(e).getDimension(C)})).sort((function(e,r){return e.descriptor.index-r.descriptor.index})),u=Object.keys(l).map((function(e){return{droppableId:e,scroll:r.droppable.getById(e).callbacks.getScrollWhileDragging()}})),s={additions:c,removals:Object.keys(o),modified:u};n={additions:{},removals:{},modified:{}},Ke(),t.publish(s)})))};return{add:function(e){var r=e.descriptor.id;n.additions[r]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[r]&&delete n.removals[r],a()},remove:function(e){var r=e.descriptor;n.removals[r.id]=!0,n.modified[r.droppableId]=!0,n.additions[r.id]&&delete n.additions[r.id],a()},stop:function(){i&&(cancelAnimationFrame(i),i=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:e}),i=function(r){t||h(!1);var i=t.critical.draggable;"ADDITION"===r.type&&Vr(e,i,r.value)&&n.add(r.value),"REMOVAL"===r.type&&Vr(e,i,r.value)&&n.remove(r.value)},a={updateDroppableIsEnabled:function(n,i){e.droppable.exists(n)||h(!1),t&&r.updateDroppableIsEnabled({id:n,isEnabled:i})},updateDroppableIsCombineEnabled:function(n,i){t&&(e.droppable.exists(n)||h(!1),r.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:i}))},scrollDroppable:function(r,n){t&&e.droppable.getById(r).callbacks.scroll(n)},updateDroppableScroll:function(n,i){t&&(e.droppable.exists(n)||h(!1),r.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:function(r){t&&h(!1);var n=e.draggable.getById(r.draggableId),a=e.droppable.getById(n.descriptor.droppableId),o={draggable:n.descriptor,droppable:a.descriptor},l=e.subscribe(i);return t={critical:o,unsubscribe:l},zr({critical:o,registry:e,scrollOptions:r.scrollOptions})},stopPublishing:function(){if(t){n.stop();var r=t.critical.droppable;e.droppable.getAllByType(r.type).forEach((function(e){return e.callbacks.dragStopped()})),t.unsubscribe(),t=null}}};return a},Jr=function(e,r){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==r&&"DROP"===e.completed.result.reason)},Xr=function(e){window.scrollBy(e.x,e.y)},Kr=(0,s.Z)((function(e){return q(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Qr=function(e){var r=e.center,t=e.destination,n=e.droppables;if(t){var i=n[t];return i.frame?i:null}var a=function(e,r){var t=W(Kr(r),(function(r){return r.frame||h(!1),je(r.frame.pageMarginBox)(e)}));return t}(r,n);return a},et=.25,rt=.05,tt=28,nt=function(e){return Math.pow(e,2)},it={stopDampeningAt:1200,accelerateAt:360},at=function(e){var r=e.startOfRange,t=e.endOfRange,n=e.current,i=t-r;return 0===i?0:(n-r)/i},ot=it.accelerateAt,lt=it.stopDampeningAt,ct=function(e){var r=e.distanceToEdge,t=e.thresholds,n=e.dragStartTime,i=e.shouldUseTimeDampening,a=function(e,r){if(e>r.startScrollingFrom)return 0;if(e<=r.maxScrollValueAt)return tt;if(e===r.startScrollingFrom)return 1;var t=at({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),n=tt*nt(1-t);return Math.ceil(n)}(r,t);return 0===a?0:i?Math.max(function(e,r){var t=r,n=lt,i=Date.now()-t;if(i>=lt)return e;if(i<ot)return 1;var a=at({startOfRange:ot,endOfRange:n,current:i}),o=e*nt(a);return Math.ceil(o)}(a,n),1):a},ut=function(e){var r=e.container,t=e.distanceToEdges,n=e.dragStartTime,i=e.axis,a=e.shouldUseTimeDampening,o=function(e,r){return{startScrollingFrom:e[r.size]*et,maxScrollValueAt:e[r.size]*rt}}(r,i);return t[i.end]<t[i.start]?ct({distanceToEdge:t[i.end],thresholds:o,dragStartTime:n,shouldUseTimeDampening:a}):-1*ct({distanceToEdge:t[i.start],thresholds:o,dragStartTime:n,shouldUseTimeDampening:a})},st=L((function(e){return 0===e?0:e})),dt=function(e){var r=e.dragStartTime,t=e.container,n=e.subject,i=e.center,a=e.shouldUseTimeDampening,o={top:i.y-t.top,right:t.right-i.x,bottom:t.bottom-i.y,left:i.x-t.left},l=ut({container:t,distanceToEdges:o,dragStartTime:r,axis:ae,shouldUseTimeDampening:a}),c=ut({container:t,distanceToEdges:o,dragStartTime:r,axis:oe,shouldUseTimeDampening:a}),u=st({x:c,y:l});if(N(u,C))return null;var s=function(e){var r=e.container,t=e.subject,n=e.proposedScroll,i=t.height>r.height,a=t.width>r.width;return a||i?a&&i?null:{x:a?0:n.x,y:i?0:n.y}:n}({container:t,subject:n,proposedScroll:u});return s?N(s,C)?null:s:null},pt=L((function(e){return 0===e?0:e>0?1:-1})),ft=function(){var e=function(e,r){return e<0?e:e>r?e-r:0};return function(r){var t=r.current,n=r.max,i=r.change,a=S(t,i),o={x:e(a.x,n.x),y:e(a.y,n.y)};return N(o,C)?null:o}}(),gt=function(e){var r=e.max,t=e.current,n=e.change,i={x:Math.max(t.x,r.x),y:Math.max(t.y,r.y)},a=pt(n),o=ft({max:i,current:t,change:a});return!o||(0!==a.x&&0===o.x||0!==a.y&&0===o.y)},vt=function(e,r){return gt({current:e.scroll.current,max:e.scroll.max,change:r})},mt=function(e,r){var t=e.frame;return!!t&&gt({current:t.scroll.current,max:t.scroll.max,change:r})},bt=function(e){var r=e.state,t=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,a=e.scrollDroppable,o=r.current.page.borderBoxCenter,l=r.dimensions.draggables[r.critical.draggable.id].page.marginBox;if(r.isWindowScrollAllowed){var c=function(e){var r=e.viewport,t=e.subject,n=e.center,i=e.dragStartTime,a=e.shouldUseTimeDampening,o=dt({dragStartTime:i,container:r.frame,subject:t,center:n,shouldUseTimeDampening:a});return o&&vt(r,o)?o:null}({dragStartTime:t,viewport:r.viewport,subject:l,center:o,shouldUseTimeDampening:n});if(c)return void i(c)}var u=Qr({center:o,destination:Me(r.impact),droppables:r.dimensions.droppables});if(u){var s=function(e){var r=e.droppable,t=e.subject,n=e.center,i=e.dragStartTime,a=e.shouldUseTimeDampening,o=r.frame;if(!o)return null;var l=dt({dragStartTime:i,container:o.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:a});return l&&mt(r,l)?l:null}({dragStartTime:t,droppable:u,subject:l,center:o,shouldUseTimeDampening:n});s&&a(u.descriptor.id,s)}},yt=function(e){var r=e.move,t=e.scrollDroppable,n=e.scrollWindow,i=function(e,r){if(!mt(e,r))return r;var n=function(e,r){var t=e.frame;return t&&mt(e,r)?ft({current:t.scroll.current,max:t.scroll.max,change:r}):null}(e,r);if(!n)return t(e.descriptor.id,r),null;var i=O(r,n);return t(e.descriptor.id,i),O(r,i)},a=function(e,r,t){if(!e)return t;if(!vt(r,t))return t;var i=function(e,r){if(!vt(e,r))return null;var t=e.scroll.max,n=e.scroll.current;return ft({current:n,max:t,change:r})}(r,t);if(!i)return n(t),null;var a=O(t,i);return n(a),O(t,a)};return function(e){var t=e.scrollJumpRequest;if(t){var n=Me(e.impact);n||h(!1);var o=i(e.dimensions.droppables[n],t);if(o){var l=e.viewport,c=a(e.isWindowScrollAllowed,l,o);c&&function(e,t){var n=S(e.current.client.selection,t);r({client:n})}(e,c)}}}},ht=function(e){var r=e.scrollDroppable,t=e.scrollWindow,n=e.move,i=function(e){var r=e.scrollWindow,t=e.scrollDroppable,n=d(r),i=d(t),a=null,o=function(e){a||h(!1);var r=a,t=r.shouldUseTimeDampening,o=r.dragStartTime;bt({state:e,scrollWindow:n,scrollDroppable:i,dragStartTime:o,shouldUseTimeDampening:t})};return{start:function(e){Xe(),a&&h(!1);var r=Date.now(),t=!1,n=function(){t=!0};bt({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),a={dragStartTime:r,shouldUseTimeDampening:t},Ke(),t&&o(e)},stop:function(){a&&(n.cancel(),i.cancel(),a=null)},scroll:o}}({scrollWindow:t,scrollDroppable:r}),a=yt({move:n,scrollWindow:t,scrollDroppable:r});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):i.scroll(e))},start:i.start,stop:i.stop}},It="data-rbd",Dt=function(){var e=It+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),xt=function(){var e=It+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),wt=function(){var e=It+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Et={contextId:It+"-scroll-container-context-id"},At=function(e,r){return e.map((function(e){var t=e.styles[r];return t?e.selector+" { "+t+" }":""})).join(" ")},Ct=function(e){var r,t=(r=e,function(e){return"["+e+'="'+r+'"]'}),n=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(Dt.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),i=[function(){var e="\n transition: "+Er.outOfTheWay+";\n ";return{selector:t(xt.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),n,{selector:t(wt.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:At(i,"always"),resting:At(i,"resting"),dragging:At(i,"dragging"),dropAnimating:At(i,"dropAnimating"),userCancel:At(i,"userCancel")}},St="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?n.useLayoutEffect:n.useEffect,Ot=function(){var e=document.querySelector("head");return e||h(!1),e},Nt=function(e){var r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.type="text/css",r};var Bt=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Rt(e){return e instanceof Bt(e).HTMLElement}function Pt(e,r){var t="["+Dt.contextId+'="'+e+'"]',n=H(document.querySelectorAll(t));if(!n.length)return null;var i=W(n,(function(e){return e.getAttribute(Dt.draggableId)===r}));return i&&Rt(i)?i:null}function Tt(){var e={draggables:{},droppables:{}},r=[];function t(e){r.length&&r.forEach((function(r){return r(e)}))}function n(r){return e.draggables[r]||null}function i(r){return e.droppables[r]||null}return{draggable:{register:function(r){e.draggables[r.descriptor.id]=r,t({type:"ADDITION",value:r})},update:function(r,t){var n=e.draggables[t.descriptor.id];n&&n.uniqueId===r.uniqueId&&(delete e.draggables[t.descriptor.id],e.draggables[r.descriptor.id]=r)},unregister:function(r){var i=r.descriptor.id,a=n(i);a&&r.uniqueId===a.uniqueId&&(delete e.draggables[i],t({type:"REMOVAL",value:r}))},getById:function(e){var r=n(e);return r||h(!1),r},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(r){return k(e.draggables).filter((function(e){return e.descriptor.type===r}))}},droppable:{register:function(r){e.droppables[r.descriptor.id]=r},unregister:function(r){var t=i(r.descriptor.id);t&&r.uniqueId===t.uniqueId&&delete e.droppables[r.descriptor.id]},getById:function(e){var r=i(e);return r||h(!1),r},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(r){return k(e.droppables).filter((function(e){return e.descriptor.type===r}))}},subscribe:function(e){return r.push(e),function(){var t=r.indexOf(e);-1!==t&&r.splice(t,1)}},clean:function(){e.draggables={},e.droppables={},r.length=0}}}var Lt=n.createContext(null),Gt=function(){var e=document.body;return e||h(!1),e},Mt={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Ft=function(e){return"rbd-announcement-"+e};var _t=0,jt={separator:"::"};function kt(e,r){return void 0===r&&(r=jt),(0,c.Ye)((function(){return""+e+r.separator+_t++}),[r.separator,e])}var Ut=n.createContext(null);function Wt(e){0}function Ht(e,r){Wt()}function Zt(e){var r=(0,n.useRef)(e);return(0,n.useEffect)((function(){r.current=e})),r}var Yt,qt=27,zt=32,Vt=37,$t=38,Jt=39,Xt=40,Kt=((Yt={})[13]=!0,Yt[9]=!0,Yt),Qt=function(e){Kt[e.keyCode]&&e.preventDefault()},en=function(){var e="visibilitychange";return"undefined"===typeof document?e:W([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),rn=0,tn=5;var nn,an={type:"IDLE"};function on(e){var r=e.cancel,t=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var r=e.button,t=e.clientX,a=e.clientY;if(r===rn){var o={x:t,y:a},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(o);"PENDING"!==l.type&&h(!1);var c=l.point;if(u=c,s=o,Math.abs(s.x-u.x)>=tn||Math.abs(s.y-u.y)>=tn){var u,s;e.preventDefault();var d=l.actions.fluidLift(o);i({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):r()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),r()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return e.keyCode===qt?(e.preventDefault(),void r()):void Qt(e);r()}},{eventName:"resize",fn:r},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&r()}},{eventName:"webkitmouseforcedown",fn:function(e){var t=n();"IDLE"===t.type&&h(!1),t.actions.shouldRespectForcePress()?r():e.preventDefault()}},{eventName:en,fn:r}]}function ln(){}var cn=((nn={})[34]=!0,nn[33]=!0,nn[36]=!0,nn[35]=!0,nn);function un(e,r){function t(){r(),e.cancel()}return[{eventName:"keydown",fn:function(n){return n.keyCode===qt?(n.preventDefault(),void t()):n.keyCode===zt?(n.preventDefault(),r(),void e.drop()):n.keyCode===Xt?(n.preventDefault(),void e.moveDown()):n.keyCode===$t?(n.preventDefault(),void e.moveUp()):n.keyCode===Jt?(n.preventDefault(),void e.moveRight()):n.keyCode===Vt?(n.preventDefault(),void e.moveLeft()):void(cn[n.keyCode]?n.preventDefault():Qt(n))}},{eventName:"mousedown",fn:t},{eventName:"mouseup",fn:t},{eventName:"click",fn:t},{eventName:"touchstart",fn:t},{eventName:"resize",fn:t},{eventName:"wheel",fn:t,options:{passive:!0}},{eventName:en,fn:t}]}var sn={type:"IDLE"},dn=.15;var pn={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function fn(e,r){if(null==r)return!1;if(Boolean(pn[r.tagName.toLowerCase()]))return!0;var t=r.getAttribute("contenteditable");return"true"===t||""===t||r!==e&&fn(e,r.parentElement)}function gn(e,r){var t=r.target;return!!Rt(t)&&fn(e,t)}var vn=function(e){return(0,u.Dz)(e.getBoundingClientRect()).center};var mn=function(){var e="matches";return"undefined"===typeof document?e:W([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function bn(e,r){return null==e?null:e[mn](r)?e:bn(e.parentElement,r)}function yn(e,r){return e.closest?e.closest(r):bn(e,r)}function hn(e,r){var t,n=r.target;if(!((t=n)instanceof Bt(t).Element))return null;var i=function(e){return"["+Dt.contextId+'="'+e+'"]'}(e),a=yn(n,i);return a&&Rt(a)?a:null}function In(e){e.preventDefault()}function Dn(e){var r=e.expected,t=e.phase,n=e.isLockActive;e.shouldWarn;return!!n()&&r===t}function xn(e){var r=e.lockAPI,t=e.store,n=e.registry,i=e.draggableId;if(r.isClaimed())return!1;var a=n.draggable.findById(i);return!!a&&(!!a.options.isEnabled&&!!Jr(t.getState(),i))}function wn(e){var r=e.lockAPI,t=e.contextId,n=e.store,i=e.registry,o=e.draggableId,l=e.forceSensorStop,c=e.sourceEvent;if(!xn({lockAPI:r,store:n,registry:i,draggableId:o}))return null;var u=i.draggable.getById(o),s=function(e,r){var t="["+xt.contextId+'="'+e+'"]',n=W(H(document.querySelectorAll(t)),(function(e){return e.getAttribute(xt.id)===r}));return n&&Rt(n)?n:null}(t,u.descriptor.id);if(!s)return null;if(c&&!u.options.canDragInteractiveElements&&gn(s,c))return null;var p=r.claim(l||g),f="PRE_DRAG";function m(){return u.options.shouldRespectForcePress}function b(){return r.isActive(p)}var y=function(e,r){Dn({expected:e,phase:f,isLockActive:b,shouldWarn:!0})&&n.dispatch(r())}.bind(null,"DRAGGING");function I(e){function t(){r.release(),f="COMPLETED"}function i(r,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var a=v(window,[{eventName:"click",fn:In,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(a)}t(),n.dispatch(yr({reason:r}))}return"PRE_DRAG"!==f&&(t(),"PRE_DRAG"!==f&&h(!1)),n.dispatch(ar(e.liftActionArgs)),f="DRAGGING",(0,a.Z)({isActive:function(){return Dn({expected:"DRAGGING",phase:f,isLockActive:b,shouldWarn:!1})},shouldRespectForcePress:m,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return Dn({expected:"PRE_DRAG",phase:f,isLockActive:b,shouldWarn:!1})},shouldRespectForcePress:m,fluidLift:function(e){var r=d((function(e){y((function(){return dr({client:e})}))})),t=I({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return r.cancel()},actions:{move:r}});return(0,a.Z)({},t,{move:r})},snapLift:function(){var e={moveUp:function(){return y(pr)},moveRight:function(){return y(gr)},moveDown:function(){return y(fr)},moveLeft:function(){return y(vr)}};return I({liftActionArgs:{id:o,clientSelection:vn(s),movementMode:"SNAP"},cleanup:g,actions:e})},abort:function(){Dn({expected:"PRE_DRAG",phase:f,isLockActive:b,shouldWarn:!0})&&r.release()}}}var En=[function(e){var r=(0,n.useRef)(an),t=(0,n.useRef)(g),i=(0,c.Ye)((function(){return{eventName:"mousedown",fn:function(r){if(!r.defaultPrevented&&r.button===rn&&!(r.ctrlKey||r.metaKey||r.shiftKey||r.altKey)){var n=e.findClosestDraggableId(r);if(n){var i=e.tryGetLock(n,l,{sourceEvent:r});if(i){r.preventDefault();var a={x:r.clientX,y:r.clientY};t.current(),d(i,a)}}}}}}),[e]),a=(0,c.Ye)((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(r){if(!r.defaultPrevented){var t=e.findClosestDraggableId(r);if(t){var n=e.findOptionsForDraggable(t);n&&(n.shouldRespectForcePress||e.canGetLock(t)&&r.preventDefault())}}}}}),[e]),o=(0,c.I4)((function(){t.current=v(window,[a,i],{passive:!1,capture:!0})}),[a,i]),l=(0,c.I4)((function(){"IDLE"!==r.current.type&&(r.current=an,t.current(),o())}),[o]),u=(0,c.I4)((function(){var e=r.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),s=(0,c.I4)((function(){var e=on({cancel:u,completed:l,getPhase:function(){return r.current},setPhase:function(e){r.current=e}});t.current=v(window,e,{capture:!0,passive:!1})}),[u,l]),d=(0,c.I4)((function(e,t){"IDLE"!==r.current.type&&h(!1),r.current={type:"PENDING",point:t,actions:e},s()}),[s]);St((function(){return o(),function(){t.current()}}),[o])},function(e){var r=(0,n.useRef)(ln),t=(0,c.Ye)((function(){return{eventName:"keydown",fn:function(t){if(!t.defaultPrevented&&t.keyCode===zt){var n=e.findClosestDraggableId(t);if(n){var a=e.tryGetLock(n,c,{sourceEvent:t});if(a){t.preventDefault();var o=!0,l=a.snapLift();r.current(),r.current=v(window,un(l,c),{capture:!0,passive:!1})}}}function c(){o||h(!1),o=!1,r.current(),i()}}}}),[e]),i=(0,c.I4)((function(){r.current=v(window,[t],{passive:!1,capture:!0})}),[t]);St((function(){return i(),function(){r.current()}}),[i])},function(e){var r=(0,n.useRef)(sn),t=(0,n.useRef)(g),i=(0,c.I4)((function(){return r.current}),[]),a=(0,c.I4)((function(e){r.current=e}),[]),o=(0,c.Ye)((function(){return{eventName:"touchstart",fn:function(r){if(!r.defaultPrevented){var n=e.findClosestDraggableId(r);if(n){var i=e.tryGetLock(n,u,{sourceEvent:r});if(i){var a=r.touches[0],o={x:a.clientX,y:a.clientY};t.current(),f(i,o)}}}}}}),[e]),l=(0,c.I4)((function(){t.current=v(window,[o],{capture:!0,passive:!1})}),[o]),u=(0,c.I4)((function(){var e=r.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(sn),t.current(),l())}),[l,a]),s=(0,c.I4)((function(){var e=r.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),d=(0,c.I4)((function(){var e={capture:!0,passive:!1},r={cancel:s,completed:u,getPhase:i},n=v(window,function(e){var r=e.cancel,t=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var t=n();if("DRAGGING"===t.type){t.hasMoved=!0;var i=e.touches[0],a={x:i.clientX,y:i.clientY};e.preventDefault(),t.actions.move(a)}else r()}},{eventName:"touchend",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):r()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),r()):r()}},{eventName:"touchforcechange",fn:function(e){var t=n();"IDLE"===t.type&&h(!1);var i=e.touches[0];if(i&&i.force>=dn){var a=t.actions.shouldRespectForcePress();if("PENDING"!==t.type)return a?t.hasMoved?void e.preventDefault():void r():void e.preventDefault();a&&r()}}},{eventName:en,fn:r}]}(r),e),a=v(window,function(e){var r=e.cancel,t=e.getPhase;return[{eventName:"orientationchange",fn:r},{eventName:"resize",fn:r},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===t().type?(e.keyCode===qt&&e.preventDefault(),r()):r()}},{eventName:en,fn:r}]}(r),e);t.current=function(){n(),a()}}),[s,i,u]),p=(0,c.I4)((function(){var e=i();"PENDING"!==e.type&&h(!1);var r=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:r,hasMoved:!1})}),[i,a]),f=(0,c.I4)((function(e,r){"IDLE"!==i().type&&h(!1);var t=setTimeout(p,120);a({type:"PENDING",point:r,actions:e,longPressTimerId:t}),d()}),[d,i,a,p]);St((function(){return l(),function(){t.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(sn))}}),[i,l,a]),St((function(){return v(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function An(e){var r=e.contextId,t=e.store,i=e.registry,a=e.customSensors,o=e.enableDefaultSensors,l=[].concat(o?En:[],a||[]),u=(0,n.useState)((function(){return function(){var e=null;function r(){e||h(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(r){return r===e},claim:function(r){e&&h(!1);var t={abandon:r};return e=t,t},release:r,tryAbandon:function(){e&&(e.abandon(),r())}}}()}))[0],s=(0,c.I4)((function(e,r){e.isDragging&&!r.isDragging&&u.tryAbandon()}),[u]);St((function(){var e=t.getState();return t.subscribe((function(){var r=t.getState();s(e,r),e=r}))}),[u,t,s]),St((function(){return u.tryAbandon}),[u.tryAbandon]);var d=(0,c.I4)((function(e){return xn({lockAPI:u,registry:i,store:t,draggableId:e})}),[u,i,t]),p=(0,c.I4)((function(e,n,a){return wn({lockAPI:u,registry:i,contextId:r,store:t,draggableId:e,forceSensorStop:n,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})}),[r,u,i,t]),f=(0,c.I4)((function(e){return function(e,r){var t=hn(e,r);return t?t.getAttribute(Dt.draggableId):null}(r,e)}),[r]),g=(0,c.I4)((function(e){var r=i.draggable.findById(e);return r?r.options:null}),[i.draggable]),v=(0,c.I4)((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch(mr()))}),[u,t]),m=(0,c.I4)(u.isClaimed,[u]),b=(0,c.Ye)((function(){return{canGetLock:d,tryGetLock:p,findClosestDraggableId:f,findOptionsForDraggable:g,tryReleaseLock:v,isLockClaimed:m}}),[d,p,f,g,v,m]);Wt();for(var y=0;y<l.length;y++)l[y](b)}var Cn=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function Sn(e){return e.current||h(!1),e.current}function On(e){var r=e.contextId,t=e.setCallbacks,i=e.sensors,u=e.nonce,d=e.dragHandleUsageInstructions,p=(0,n.useRef)(null);Ht();var f=Zt(e),g=(0,c.I4)((function(){return Cn(f.current)}),[f]),v=function(e){var r=(0,c.Ye)((function(){return Ft(e)}),[e]),t=(0,n.useRef)(null);return(0,n.useEffect)((function(){var e=document.createElement("div");return t.current=e,e.id=r,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,a.Z)(e.style,Mt),Gt().appendChild(e),function(){setTimeout((function(){var r=Gt();r.contains(e)&&r.removeChild(e),e===t.current&&(t.current=null)}))}}),[r]),(0,c.I4)((function(e){var r=t.current;r&&(r.textContent=e)}),[])}(r),m=function(e){var r=e.contextId,t=e.text,i=kt("hidden-text",{separator:"-"}),a=(0,c.Ye)((function(){return"rbd-hidden-text-"+(e={contextId:r,uniqueId:i}).contextId+"-"+e.uniqueId;var e}),[i,r]);return(0,n.useEffect)((function(){var e=document.createElement("div");return e.id=a,e.textContent=t,e.style.display="none",Gt().appendChild(e),function(){var r=Gt();r.contains(e)&&r.removeChild(e)}}),[a,t]),a}({contextId:r,text:d}),b=function(e,r){var t=(0,c.Ye)((function(){return Ct(e)}),[e]),i=(0,n.useRef)(null),a=(0,n.useRef)(null),o=(0,c.I4)((0,s.Z)((function(e){var r=a.current;r||h(!1),r.textContent=e})),[]),l=(0,c.I4)((function(e){var r=i.current;r||h(!1),r.textContent=e}),[]);St((function(){(i.current||a.current)&&h(!1);var n=Nt(r),c=Nt(r);return i.current=n,a.current=c,n.setAttribute(It+"-always",e),c.setAttribute(It+"-dynamic",e),Ot().appendChild(n),Ot().appendChild(c),l(t.always),o(t.resting),function(){var e=function(e){var r=e.current;r||h(!1),Ot().removeChild(r),e.current=null};e(i),e(a)}}),[r,l,o,t.always,t.resting,e]);var u=(0,c.I4)((function(){return o(t.dragging)}),[o,t.dragging]),d=(0,c.I4)((function(e){o("DROP"!==e?t.userCancel:t.dropAnimating)}),[o,t.dropAnimating,t.userCancel]),p=(0,c.I4)((function(){a.current&&o(t.resting)}),[o,t.resting]);return(0,c.Ye)((function(){return{dragging:u,dropping:d,resting:p}}),[u,d,p])}(r,u),y=(0,c.I4)((function(e){Sn(p).dispatch(e)}),[]),I=(0,c.Ye)((function(){return(0,o.DE)({publishWhileDragging:or,updateDroppableScroll:cr,updateDroppableIsEnabled:ur,updateDroppableIsCombineEnabled:sr,collectionStarting:lr},y)}),[y]),D=function(){var e=(0,c.Ye)(Tt,[]);return(0,n.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),x=(0,c.Ye)((function(){return $r(D,I)}),[D,I]),w=(0,c.Ye)((function(){return ht((0,a.Z)({scrollWindow:Xr,scrollDroppable:x.scrollDroppable},(0,o.DE)({move:dr},y)))}),[x.scrollDroppable,y]),E=function(e){var r=(0,n.useRef)({}),t=(0,n.useRef)(null),i=(0,n.useRef)(null),a=(0,n.useRef)(!1),o=(0,c.I4)((function(e,t){var n={id:e,focus:t};return r.current[e]=n,function(){var t=r.current;t[e]!==n&&delete t[e]}}),[]),l=(0,c.I4)((function(r){var t=Pt(e,r);t&&t!==document.activeElement&&t.focus()}),[e]),u=(0,c.I4)((function(e,r){t.current===e&&(t.current=r)}),[]),s=(0,c.I4)((function(){i.current||a.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=t.current;e&&l(e)})))}),[l]),d=(0,c.I4)((function(e){t.current=null;var r=document.activeElement;r&&r.getAttribute(Dt.draggableId)===e&&(t.current=e)}),[]);return St((function(){return a.current=!0,function(){a.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),(0,c.Ye)((function(){return{register:o,tryRecordFocus:d,tryRestoreFocusRecorded:s,tryShiftRecord:u}}),[o,d,s,u])}(r),A=(0,c.Ye)((function(){return Hr({announce:v,autoScroller:w,dimensionMarshal:x,focusMarshal:E,getResponders:g,styleMarshal:b})}),[v,w,x,E,g,b]);p.current=A;var C=(0,c.I4)((function(){var e=Sn(p);"IDLE"!==e.getState().phase&&e.dispatch(mr())}),[]),S=(0,c.I4)((function(){var e=Sn(p).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);t((0,c.Ye)((function(){return{isDragging:S,tryAbort:C}}),[S,C]));var O=(0,c.I4)((function(e){return Jr(Sn(p).getState(),e)}),[]),N=(0,c.I4)((function(){return _e(Sn(p).getState())}),[]),B=(0,c.Ye)((function(){return{marshal:x,focus:E,contextId:r,canLift:O,isMovementAllowed:N,dragHandleUsageInstructionsId:m,registry:D}}),[r,x,m,E,O,N,D]);return An({contextId:r,store:A,registry:D,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)((function(){return C}),[C]),n.createElement(Ut.Provider,{value:B},n.createElement(l.zt,{context:Lt,store:A},e.children))}var Nn=0;function Bn(e){var r=(0,c.Ye)((function(){return""+Nn++}),[]),t=e.dragHandleUsageInstructions||A.dragHandleUsageInstructions;return n.createElement(I,null,(function(i){return n.createElement(On,{nonce:e.nonce,contextId:r,setCallbacks:i,dragHandleUsageInstructions:t,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Rn=function(e){return function(r){return e===r}},Pn=Rn("scroll"),Tn=Rn("auto"),Ln=(Rn("visible"),function(e,r){return r(e.overflowX)||r(e.overflowY)}),Gn=function(e){var r=window.getComputedStyle(e),t={overflowX:r.overflowX,overflowY:r.overflowY};return Ln(t,Pn)||Ln(t,Tn)},Mn=function e(r){return null==r||r===document.body||r===document.documentElement?null:Gn(r)?r:e(r.parentElement)},Fn=function(e){return{x:e.scrollLeft,y:e.scrollTop}},_n=function e(r){return!!r&&("fixed"===window.getComputedStyle(r).position||e(r.parentElement))},jn=function(e){return{closestScrollable:Mn(e),isFixedOnPage:_n(e)}},kn=function(e){var r=e.ref,t=e.descriptor,n=e.env,i=e.windowScroll,a=e.direction,o=e.isDropDisabled,l=e.isCombineEnabled,c=e.shouldClipSubject,s=n.closestScrollable,d=function(e,r){var t=(0,u.iz)(e);if(!r)return t;if(e!==r)return t;var n=t.paddingBox.top-r.scrollTop,i=t.paddingBox.left-r.scrollLeft,a=n+r.scrollHeight,o={top:n,right:i+r.scrollWidth,bottom:a,left:i},l=(0,u.jn)(o,t.border);return(0,u.dO)({borderBox:l,margin:t.margin,border:t.border,padding:t.padding})}(r,s),p=(0,u.oc)(d,i),f=function(){if(!s)return null;var e=(0,u.iz)(s),r={scrollHeight:s.scrollHeight,scrollWidth:s.scrollWidth};return{client:e,page:(0,u.oc)(e,i),scroll:Fn(s),scrollSize:r,shouldClipSubject:c}}(),g=function(e){var r=e.descriptor,t=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,a=e.direction,o=e.client,l=e.page,c=e.closest,u=function(){if(!c)return null;var e=c.scrollSize,r=c.client,t=Zr({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:t,diff:{value:C,displacement:C}}}}(),s="vertical"===a?ae:oe;return{descriptor:r,isCombineEnabled:n,isFixedOnPage:i,axis:s,isEnabled:t,client:o,page:l,frame:u,subject:_({page:l,withPlaceholder:null,axis:s,frame:u})}}({descriptor:t,isEnabled:!o,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:a,client:d,page:p,closest:f});return g},Un={passive:!1},Wn={passive:!0},Hn=function(e){return e.shouldPublishImmediately?Un:Wn};function Zn(e){var r=(0,n.useContext)(e);return r||h(!1),r}var Yn=function(e){return e&&e.env.closestScrollable||null};function qn(){}var zn={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Vn=function(e){var r=e.isAnimatingOpenOnMount,t=e.placeholder,n=e.animate,i=function(e){var r=e.isAnimatingOpenOnMount,t=e.placeholder,n=e.animate;return r||"close"===n?zn:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}}({isAnimatingOpenOnMount:r,placeholder:t,animate:n});return{display:t.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?Er.placeholder:null}};var $n=n.memo((function(e){var r=(0,n.useRef)(null),t=(0,c.I4)((function(){r.current&&(clearTimeout(r.current),r.current=null)}),[]),i=e.animate,a=e.onTransitionEnd,o=e.onClose,l=e.contextId,u=(0,n.useState)("open"===e.animate),s=u[0],d=u[1];(0,n.useEffect)((function(){return s?"open"!==i?(t(),d(!1),qn):r.current?qn:(r.current=setTimeout((function(){r.current=null,d(!1)})),t):qn}),[i,s,t]);var p=(0,c.I4)((function(e){"height"===e.propertyName&&(a(),"close"===i&&o())}),[i,o,a]),f=Vn({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return n.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":l,onTransitionEnd:p,ref:e.innerRef})})),Jn=n.createContext(null);var Xn=function(e){function r(){for(var r,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(r=e.call.apply(e,[this].concat(n))||this).state={isVisible:Boolean(r.props.on),data:r.props.on,animate:r.props.shouldAnimate&&r.props.on?"open":"none"},r.onClose=function(){"close"===r.state.animate&&r.setState({isVisible:!1})},r}return(0,i.Z)(r,e),r.getDerivedStateFromProps=function(e,r){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},r.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},r}(n.PureComponent),Kn={dragging:5e3,dropAnimating:4500},Qn=function(e,r){return r?Er.drop(r.duration):e?Er.snap:Er.fluid},ei=function(e,r){return e?r?Dr.drop:Dr.combining:null},ri=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode};function ti(e){return"DRAGGING"===e.type?function(e){var r=e.dimension.client,t=e.offset,n=e.combineWith,i=e.dropping,a=Boolean(n),o=ri(e),l=Boolean(i),c=l?Cr.drop(t,a):Cr.moveTo(t);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:Qn(o,i),transform:c,opacity:ei(a,l),zIndex:l?Kn.dropAnimating:Kn.dragging,pointerEvents:"none"}}(e):(r=e,{transform:Cr.moveTo(r.offset),transition:r.shouldAnimateDisplacement?null:"none"});var r}function ni(e){var r=kt("draggable"),t=e.descriptor,i=e.registry,a=e.getDraggableRef,o=e.canDragInteractiveElements,l=e.shouldRespectForcePress,s=e.isEnabled,d=(0,c.Ye)((function(){return{canDragInteractiveElements:o,shouldRespectForcePress:l,isEnabled:s}}),[o,s,l]),p=(0,c.I4)((function(e){var r=a();return r||h(!1),function(e,r,t){void 0===t&&(t=C);var n=window.getComputedStyle(r),i=r.getBoundingClientRect(),a=(0,u.Oq)(i,n),o=(0,u.oc)(a,t);return{descriptor:e,placeholder:{client:a,tagName:r.tagName.toLowerCase(),display:n.display},displaceBy:{x:a.marginBox.width,y:a.marginBox.height},client:a,page:o}}(t,r,e)}),[t,a]),f=(0,c.Ye)((function(){return{uniqueId:r,descriptor:t,options:d,getDimension:p}}),[t,p,d,r]),g=(0,n.useRef)(f),v=(0,n.useRef)(!0);St((function(){return i.draggable.register(g.current),function(){return i.draggable.unregister(g.current)}}),[i.draggable]),St((function(){if(v.current)v.current=!1;else{var e=g.current;g.current=f,i.draggable.update(f,e)}}),[f,i.draggable])}function ii(e,r,t){Ht()}function ai(e){e.preventDefault()}var oi=function(e,r){return e===r},li=function(e){var r=e.combine,t=e.destination;return t?t.droppableId:r?r.droppableId:null};function ci(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var ui={mapped:{type:"SECONDARY",offset:C,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:ci(null)}};var si={dropAnimationFinished:hr},di=(0,l.$j)((function(){var e=function(){var e=(0,s.Z)((function(e,r){return{x:e,y:r}})),r=(0,s.Z)((function(e,r,t,n,i){return{isDragging:!0,isClone:r,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:t,combineWith:n,combineTargetFor:null}})),t=(0,s.Z)((function(e,t,n,i,a,o,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:a,combineWith:o,mode:t,offset:e,dimension:n,forceShouldAnimate:l,snapshot:r(t,i,a,o,null)}}}));return function(n,i){if(n.isDragging){if(n.critical.draggable.id!==i.draggableId)return null;var a=n.current.client.offset,o=n.dimensions.draggables[i.draggableId],l=Me(n.impact),c=(s=n.impact).at&&"COMBINE"===s.at.type?s.at.combine.draggableId:null,u=n.forceShouldAnimate;return t(e(a.x,a.y),n.movementMode,o,i.isClone,l,c,u)}var s;if("DROP_ANIMATING"===n.phase){var d=n.completed;if(d.result.draggableId!==i.draggableId)return null;var p=i.isClone,f=n.dimensions.draggables[i.draggableId],g=d.result,v=g.mode,m=li(g),b=function(e){return e.combine?e.combine.draggableId:null}(g),y={duration:n.dropDuration,curve:Ir,moveTo:n.newHomeClientOffset,opacity:b?Dr.drop:null,scale:b?xr.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:f,dropping:y,draggingOver:m,combineWith:b,mode:v,forceShouldAnimate:null,snapshot:r(v,p,m,b,y)}}}return null}}(),r=function(){var e=(0,s.Z)((function(e,r){return{x:e,y:r}})),r=(0,s.Z)(ci),t=(0,s.Z)((function(e,t,n){return void 0===t&&(t=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:t,shouldAnimateDisplacement:n,snapshot:r(t)}}})),n=function(e){return e?t(C,e,!0):null},i=function(r,i,a,o){var l=a.displaced.visible[r],c=Boolean(o.inVirtualList&&o.effected[r]),u=J(a),s=u&&u.draggableId===r?i:null;if(!l){if(!c)return n(s);if(a.displaced.invisible[r])return null;var d=B(o.displacedBy.point),p=e(d.x,d.y);return t(p,s,!0)}if(c)return n(s);var f=a.displacedBy.point,g=e(f.x,f.y);return t(g,s,l.shouldAnimate)};return function(e,r){if(e.isDragging)return e.critical.draggable.id===r.draggableId?null:i(r.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var t=e.completed;return t.result.draggableId===r.draggableId?null:i(r.draggableId,t.result.draggableId,t.impact,t.afterCritical)}return null}}();return function(t,n){return e(t,n)||r(t,n)||ui}}),si,null,{context:Lt,pure:!0,areStatePropsEqual:oi})((function(e){var r=(0,n.useRef)(null),t=(0,c.I4)((function(e){r.current=e}),[]),i=(0,c.I4)((function(){return r.current}),[]),a=Zn(Ut),o=a.contextId,l=a.dragHandleUsageInstructionsId,u=a.registry,s=Zn(Jn),d=s.type,p=s.droppableId,f=(0,c.Ye)((function(){return{id:e.draggableId,index:e.index,type:d,droppableId:p}}),[e.draggableId,e.index,d,p]),g=e.children,v=e.draggableId,m=e.isEnabled,b=e.shouldRespectForcePress,y=e.canDragInteractiveElements,h=e.isClone,I=e.mapped,D=e.dropAnimationFinished;ii(),Wt(),h||ni((0,c.Ye)((function(){return{descriptor:f,registry:u,getDraggableRef:i,canDragInteractiveElements:y,shouldRespectForcePress:b,isEnabled:m}}),[f,u,i,y,b,m]));var x=(0,c.Ye)((function(){return m?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":v,"data-rbd-drag-handle-context-id":o,draggable:!1,onDragStart:ai}:null}),[o,l,v,m]),w=(0,c.I4)((function(e){"DRAGGING"===I.type&&I.dropping&&"transform"===e.propertyName&&D()}),[D,I]),E=(0,c.Ye)((function(){var e=ti(I),r="DRAGGING"===I.type&&I.dropping?w:null;return{innerRef:t,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":v,style:e,onTransitionEnd:r},dragHandleProps:x}}),[o,x,v,I,w,t]),A=(0,c.Ye)((function(){return{draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}}),[f.droppableId,f.id,f.index,f.type]);return g(E,I.snapshot,A)}));function pi(e){return Zn(Jn).isUsingCloneFor!==e.draggableId||e.isClone?n.createElement(di,e):null}function fi(e){var r="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,t=Boolean(e.disableInteractiveElementBlocking),i=Boolean(e.shouldRespectForcePress);return n.createElement(pi,(0,a.Z)({},e,{isClone:!1,isEnabled:r,canDragInteractiveElements:t,shouldRespectForcePress:i}))}var gi=function(e,r){return e===r.droppable.type},vi=function(e,r){return r.draggables[e.draggable.id]},mi={updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}};var bi={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||h(!1),document.body}},yi=(0,l.$j)((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=(0,a.Z)({},e,{shouldAnimatePlaceholder:!1}),t=(0,s.Z)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),n=(0,s.Z)((function(n,i,a,o,l,c){var u=l.descriptor.id;if(l.descriptor.droppableId===n){var s=c?{render:c,dragging:t(l.descriptor)}:null,d={isDraggingOver:a,draggingOverWith:a?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:s}}if(!i)return r;if(!o)return e;var p={isDraggingOver:a,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(t,i){var a=i.droppableId,o=i.type,l=!i.isDropDisabled,c=i.renderClone;if(t.isDragging){var u=t.critical;if(!gi(o,u))return r;var s=vi(u,t.dimensions),d=Me(t.impact)===a;return n(a,l,d,d,s,c)}if("DROP_ANIMATING"===t.phase){var p=t.completed;if(!gi(o,p.critical))return r;var f=vi(p.critical,t.dimensions);return n(a,l,li(p.result)===a,Me(p.impact)===a,f,c)}if("IDLE"===t.phase&&t.completed&&!t.shouldFlush){var g=t.completed;if(!gi(o,g.critical))return r;var v=Me(g.impact)===a,m=Boolean(g.impact.at&&"COMBINE"===g.impact.at.type),b=g.critical.droppable.id===a;return v?m?e:r:b?e:r}return r}}),mi,null,{context:Lt,pure:!0,areStatePropsEqual:oi})((function(e){var r=(0,n.useContext)(Ut);r||h(!1);var t=r.contextId,i=r.isMovementAllowed,a=(0,n.useRef)(null),o=(0,n.useRef)(null),l=e.children,u=e.droppableId,f=e.type,g=e.mode,v=e.direction,m=e.ignoreContainerClipping,b=e.isDropDisabled,y=e.isCombineEnabled,I=e.snapshot,D=e.useClone,x=e.updateViewportMaxScroll,w=e.getContainerForClone,E=(0,c.I4)((function(){return a.current}),[]),A=(0,c.I4)((function(e){a.current=e}),[]),S=((0,c.I4)((function(){return o.current}),[]),(0,c.I4)((function(e){o.current=e}),[]));Ht();var O=(0,c.I4)((function(){i()&&x({maxScroll:qr()})}),[i,x]);!function(e){var r=(0,n.useRef)(null),t=Zn(Ut),i=kt("droppable"),a=t.registry,o=t.marshal,l=Zt(e),u=(0,c.Ye)((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),p=(0,n.useRef)(u),f=(0,c.Ye)((function(){return(0,s.Z)((function(e,t){r.current||h(!1);var n={x:e,y:t};o.updateDroppableScroll(u.id,n)}))}),[u.id,o]),g=(0,c.I4)((function(){var e=r.current;return e&&e.env.closestScrollable?Fn(e.env.closestScrollable):C}),[]),v=(0,c.I4)((function(){var e=g();f(e.x,e.y)}),[g,f]),m=(0,c.Ye)((function(){return d(v)}),[v]),b=(0,c.I4)((function(){var e=r.current,t=Yn(e);e&&t||h(!1),e.scrollOptions.shouldPublishImmediately?v():m()}),[m,v]),y=(0,c.I4)((function(e,n){r.current&&h(!1);var i=l.current,a=i.getDroppableRef();a||h(!1);var o=jn(a),c={ref:a,descriptor:u,env:o,scrollOptions:n};r.current=c;var s=kn({ref:a,descriptor:u,env:o,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),d=o.closestScrollable;return d&&(d.setAttribute(Et.contextId,t.contextId),d.addEventListener("scroll",b,Hn(c.scrollOptions))),s}),[t.contextId,u,b,l]),I=(0,c.I4)((function(){var e=r.current,t=Yn(e);return e&&t||h(!1),Fn(t)}),[]),D=(0,c.I4)((function(){var e=r.current;e||h(!1);var t=Yn(e);r.current=null,t&&(m.cancel(),t.removeAttribute(Et.contextId),t.removeEventListener("scroll",b,Hn(e.scrollOptions)))}),[b,m]),x=(0,c.I4)((function(e){var t=r.current;t||h(!1);var n=Yn(t);n||h(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x}),[]),w=(0,c.Ye)((function(){return{getDimensionAndWatchScroll:y,getScrollWhileDragging:I,dragStopped:D,scroll:x}}),[D,y,I,x]),E=(0,c.Ye)((function(){return{uniqueId:i,descriptor:u,callbacks:w}}),[w,u,i]);St((function(){return p.current=E.descriptor,a.droppable.register(E),function(){r.current&&D(),a.droppable.unregister(E)}}),[w,u,D,E,o,a.droppable]),St((function(){r.current&&o.updateDroppableIsEnabled(p.current.id,!e.isDropDisabled)}),[e.isDropDisabled,o]),St((function(){r.current&&o.updateDroppableIsCombineEnabled(p.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,o])}({droppableId:u,type:f,mode:g,direction:v,isDropDisabled:b,isCombineEnabled:y,ignoreContainerClipping:m,getDroppableRef:E});var N=n.createElement(Xn,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var r=e.onClose,i=e.data,a=e.animate;return n.createElement($n,{placeholder:i,onClose:r,innerRef:S,animate:a,contextId:t,onTransitionEnd:O})})),B=(0,c.Ye)((function(){return{innerRef:A,placeholder:N,droppableProps:{"data-rbd-droppable-id":u,"data-rbd-droppable-context-id":t}}}),[t,u,N,A]),R=D?D.dragging.draggableId:null,P=(0,c.Ye)((function(){return{droppableId:u,type:f,isUsingCloneFor:R}}),[u,R,f]);return n.createElement(Jn.Provider,{value:P},l(B,I),function(){if(!D)return null;var e=D.dragging,r=D.render,t=n.createElement(pi,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(t,n){return r(t,n,e)}));return p.createPortal(t,w())}())}));yi.defaultProps=bi},69921:function(e,r){var t,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function b(e){if("object"===typeof e&&null!==e){var r=e.$$typeof;switch(r){case n:switch(e=e.type){case a:case l:case o:case p:case f:return e;default:switch(e=e&&e.$$typeof){case s:case u:case d:case v:case g:case c:return e;default:return r}}case i:return r}}}t=Symbol.for("react.module.reference"),r.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===l||e===o||e===p||e===f||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===t||void 0!==e.getModuleId)},r.typeOf=b},59864:function(e,r,t){e.exports=t(69921)},99416:function(e,r,t){t.d(r,{zoF:function(){return fe},UID:function(){return q},BPw:function(){return ye},ETc:function(){return ve},pMU:function(){return Ie},zGw:function(){return de},DYV:function(){return De}});var n=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function i(e,r,t){return function(){if(0===arguments.length)return t();var i=arguments[arguments.length-1];if(!n(i)){for(var a=0;a<e.length;){if("function"===typeof i[e[a]])return i[e[a]].apply(i,Array.prototype.slice.call(arguments,0,-1));a+=1}if(function(e){return null!=e&&"function"===typeof e["@@transducer/step"]}(i))return r.apply(null,Array.prototype.slice.call(arguments,0,-1))(i)}return t.apply(this,arguments)}}var a=function(){return this.xf["@@transducer/init"]()},o=function(e){return this.xf["@@transducer/result"](e)};function l(e){return null!=e&&"object"===typeof e&&!0===e["@@functional/placeholder"]}function c(e){return function r(t){return 0===arguments.length||l(t)?r:e.apply(this,arguments)}}function u(e){return function r(t,n){switch(arguments.length){case 0:return r;case 1:return l(t)?r:c((function(r){return e(t,r)}));default:return l(t)&&l(n)?r:l(t)?c((function(r){return e(r,n)})):l(n)?c((function(r){return e(t,r)})):e(t,n)}}}function s(e){for(var r,t=[];!(r=e.next()).done;)t.push(r.value);return t}function d(e,r,t){for(var n=0,i=t.length;n<i;){if(e(r,t[n]))return!0;n+=1}return!1}function p(e,r){return Object.prototype.hasOwnProperty.call(r,e)}var f="function"===typeof Object.is?Object.is:function(e,r){return e===r?0!==e||1/e===1/r:e!==e&&r!==r},g=Object.prototype.toString,v=function(){return"[object Arguments]"===g.call(arguments)?function(e){return"[object Arguments]"===g.call(e)}:function(e){return p("callee",e)}}(),m=v,b=!{toString:null}.propertyIsEnumerable("toString"),y=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],h=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),I=function(e,r){for(var t=0;t<e.length;){if(e[t]===r)return!0;t+=1}return!1},D="function"!==typeof Object.keys||h?c((function(e){if(Object(e)!==e)return[];var r,t,n=[],i=h&&m(e);for(r in e)!p(r,e)||i&&"length"===r||(n[n.length]=r);if(b)for(t=y.length-1;t>=0;)p(r=y[t],e)&&!I(n,r)&&(n[n.length]=r),t-=1;return n})):c((function(e){return Object(e)!==e?[]:Object.keys(e)})),x=c((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function w(e,r,t,n){var i=s(e);function a(e,r){return E(e,r,t.slice(),n.slice())}return!d((function(e,r){return!d(a,r,e)}),s(r),i)}function E(e,r,t,n){if(f(e,r))return!0;var i=x(e);if(i!==x(r))return!1;if("function"===typeof e["fantasy-land/equals"]||"function"===typeof r["fantasy-land/equals"])return"function"===typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](r)&&"function"===typeof r["fantasy-land/equals"]&&r["fantasy-land/equals"](e);if("function"===typeof e.equals||"function"===typeof r.equals)return"function"===typeof e.equals&&e.equals(r)&&"function"===typeof r.equals&&r.equals(e);switch(i){case"Arguments":case"Array":case"Object":if("function"===typeof e.constructor&&"Promise"===function(e){var r=String(e).match(/^function (\w*)/);return null==r?"":r[1]}(e.constructor))return e===r;break;case"Boolean":case"Number":case"String":if(typeof e!==typeof r||!f(e.valueOf(),r.valueOf()))return!1;break;case"Date":if(!f(e.valueOf(),r.valueOf()))return!1;break;case"Error":return e.name===r.name&&e.message===r.message;case"RegExp":if(e.source!==r.source||e.global!==r.global||e.ignoreCase!==r.ignoreCase||e.multiline!==r.multiline||e.sticky!==r.sticky||e.unicode!==r.unicode)return!1}for(var a=t.length-1;a>=0;){if(t[a]===e)return n[a]===r;a-=1}switch(i){case"Map":return e.size===r.size&&w(e.entries(),r.entries(),t.concat([e]),n.concat([r]));case"Set":return e.size===r.size&&w(e.values(),r.values(),t.concat([e]),n.concat([r]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o=D(e);if(o.length!==D(r).length)return!1;var l=t.concat([e]),c=n.concat([r]);for(a=o.length-1;a>=0;){var u=o[a];if(!p(u,r)||!E(r[u],e[u],l,c))return!1;a-=1}return!0}var A=u((function(e,r){return E(e,r,[],[])}));function C(e,r){return function(e,r,t){var n,i;if("function"===typeof e.indexOf)switch(typeof r){case"number":if(0===r){for(n=1/r;t<e.length;){if(0===(i=e[t])&&1/i===n)return t;t+=1}return-1}if(r!==r){for(;t<e.length;){if("number"===typeof(i=e[t])&&i!==i)return t;t+=1}return-1}return e.indexOf(r,t);case"string":case"boolean":case"function":case"undefined":return e.indexOf(r,t);case"object":if(null===r)return e.indexOf(r,t)}for(;t<e.length;){if(A(e[t],r))return t;t+=1}return-1}(r,e,0)>=0}function S(e,r){for(var t=0,n=r.length,i=Array(n);t<n;)i[t]=e(r[t]),t+=1;return i}function O(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var N=function(e){return(e<10?"0":"")+e},B="function"===typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+N(e.getUTCMonth()+1)+"-"+N(e.getUTCDate())+"T"+N(e.getUTCHours())+":"+N(e.getUTCMinutes())+":"+N(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function R(e,r,t){for(var n=0,i=t.length;n<i;)r=e(r,t[n]),n+=1;return r}function P(e){return"[object Object]"===Object.prototype.toString.call(e)}var T=function(){function e(e,r){this.xf=r,this.f=e}return e.prototype["@@transducer/init"]=a,e.prototype["@@transducer/result"]=o,e.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.xf["@@transducer/step"](e,r):e},e}();function L(e){return function(r){return new T(e,r)}}var G=u(i(["fantasy-land/filter","filter"],L,(function(e,r){return P(r)?R((function(t,n){return e(r[n])&&(t[n]=r[n]),t}),{},D(r)):function(e,r){for(var t=0,n=r.length,i=[];t<n;)e(r[t])&&(i[i.length]=r[t]),t+=1;return i}(e,r)}))),M=u((function(e,r){return G((t=e,function(){return!t.apply(this,arguments)}),r);var t})),F=M;function _(e,r){var t=function(t){var n=r.concat([e]);return C(t,n)?"<Circular>":_(t,n)},n=function(e,r){return S((function(r){return O(r)+": "+t(e[r])}),r.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+S(t,e).join(", ")+"))";case"[object Array]":return"["+S(t,e).concat(n(e,F((function(e){return/^\d+$/.test(e)}),D(e)))).join(", ")+"]";case"[object Boolean]":return"object"===typeof e?"new Boolean("+t(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?t(NaN):O(B(e)))+")";case"[object Map]":return"new Map("+t(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"===typeof e?"new Number("+t(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+t(Array.from(e).sort())+")";case"[object String]":return"object"===typeof e?"new String("+t(e.valueOf())+")":O(e);case"[object Undefined]":return"undefined";default:if("function"===typeof e.toString){var i=e.toString();if("[object Object]"!==i)return i}return"{"+n(e,D(e)).join(", ")+"}"}}var j=c((function(e){return _(e,[])})),k=function(){function e(e,r){this.xf=r,this.f=e}return e.prototype["@@transducer/init"]=a,e.prototype["@@transducer/result"]=o,e.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},e}(),U=function(e){return function(r){return new k(e,r)}};function W(e,r){switch(e){case 0:return function(){return r.apply(this,arguments)};case 1:return function(e){return r.apply(this,arguments)};case 2:return function(e,t){return r.apply(this,arguments)};case 3:return function(e,t,n){return r.apply(this,arguments)};case 4:return function(e,t,n,i){return r.apply(this,arguments)};case 5:return function(e,t,n,i,a){return r.apply(this,arguments)};case 6:return function(e,t,n,i,a,o){return r.apply(this,arguments)};case 7:return function(e,t,n,i,a,o,l){return r.apply(this,arguments)};case 8:return function(e,t,n,i,a,o,l,c){return r.apply(this,arguments)};case 9:return function(e,t,n,i,a,o,l,c,u){return r.apply(this,arguments)};case 10:return function(e,t,n,i,a,o,l,c,u,s){return r.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function H(e,r,t){return function(){for(var n=[],i=0,a=e,o=0;o<r.length||i<arguments.length;){var c;o<r.length&&(!l(r[o])||i>=arguments.length)?c=r[o]:(c=arguments[i],i+=1),n[o]=c,l(c)||(a-=1),o+=1}return a<=0?t.apply(this,n):W(a,H(e,n,t))}}var Z=u((function(e,r){return 1===e?c(r):W(e,H(e,[],r))})),Y=u(i(["fantasy-land/map","map"],U,(function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return Z(r.length,(function(){return e.call(this,r.apply(this,arguments))}));case"[object Object]":return R((function(t,n){return t[n]=e(r[n]),t}),{},D(r));default:return S(e,r)}}))),q=Y,z=Number.isInteger||function(e){return e<<0===e};function V(e){return"[object String]"===Object.prototype.toString.call(e)}var $=u((function(e,r){var t=e<0?r.length+e:e;return V(r)?r.charAt(t):r[t]}));function J(e){return function r(t,n,i){switch(arguments.length){case 0:return r;case 1:return l(t)?r:u((function(r,n){return e(t,r,n)}));case 2:return l(t)&&l(n)?r:l(t)?u((function(r,t){return e(r,n,t)})):l(n)?u((function(r,n){return e(t,r,n)})):c((function(r){return e(t,n,r)}));default:return l(t)&&l(n)&&l(i)?r:l(t)&&l(n)?u((function(r,t){return e(r,t,i)})):l(t)&&l(i)?u((function(r,t){return e(r,n,t)})):l(n)&&l(i)?u((function(r,n){return e(t,r,n)})):l(t)?c((function(r){return e(r,n,i)})):l(n)?c((function(r){return e(t,r,i)})):l(i)?c((function(r){return e(t,n,r)})):e(t,n,i)}}}var X=c((function(e){return!!n(e)||!!e&&("object"===typeof e&&(!V(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),K="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator";function Q(e,r,t){return function(n,i,a){if(X(a))return e(n,i,a);if(null==a)return i;if("function"===typeof a["fantasy-land/reduce"])return r(n,i,a,"fantasy-land/reduce");if(null!=a[K])return t(n,i,a[K]());if("function"===typeof a.next)return t(n,i,a);if("function"===typeof a.reduce)return r(n,i,a,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ee(e,r,t){for(var n=0,i=t.length;n<i;){if((r=e["@@transducer/step"](r,t[n]))&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}n+=1}return e["@@transducer/result"](r)}var re=u((function(e,r){return W(e.length,(function(){return e.apply(r,arguments)}))})),te=re;function ne(e,r,t){for(var n=t.next();!n.done;){if((r=e["@@transducer/step"](r,n.value))&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}n=t.next()}return e["@@transducer/result"](r)}function ie(e,r,t,n){return e["@@transducer/result"](t[n](te(e["@@transducer/step"],e),r))}var ae=Q(ee,ie,ne),oe=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,r){return this.f(e,r)},e}();var le=J((function(e,r,t){return ae("function"===typeof e?new oe(e):e,r,t)}));function ce(e,r){return function(){return r.call(this,e.apply(this,arguments))}}function ue(e,r){return function(){var t=arguments.length;if(0===t)return r();var i=arguments[t-1];return n(i)||"function"!==typeof i[e]?r.apply(this,arguments):i[e].apply(i,Array.prototype.slice.call(arguments,0,t-1))}}var se=c(ue("tail",J(ue("slice",(function(e,r,t){return Array.prototype.slice.call(t,e,r)})))(1,1/0)));function de(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return W(arguments[0].length,le(ce,arguments[0],se(arguments)))}function pe(e){var r=Object.prototype.toString.call(e);return"[object Function]"===r||"[object AsyncFunction]"===r||"[object GeneratorFunction]"===r||"[object AsyncGeneratorFunction]"===r}var fe=u((function(e,r){if(n(e)){if(n(r))return e.concat(r);throw new TypeError(j(r)+" is not an array")}if(V(e)){if(V(r))return e+r;throw new TypeError(j(r)+" is not a string")}if(null!=e&&pe(e["fantasy-land/concat"]))return e["fantasy-land/concat"](r);if(null!=e&&pe(e.concat))return e.concat(r);throw new TypeError(j(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));"function"===typeof Object.assign&&Object.assign;var ge=u((function(e,r){return e.map((function(e){for(var t,n=r,i=0;i<e.length;){if(null==n)return;t=e[i],n=z(t)?$(t,n):n[t],i+=1}return n}))})),ve=u((function(e,r){return ge([e],r)[0]})),me=J((function(e,r,t){var n,i={};for(n in t=t||{},r=r||{})p(n,r)&&(i[n]=p(n,t)?e(n,r[n],t[n]):r[n]);for(n in t)p(n,t)&&!p(n,i)&&(i[n]=t[n]);return i})),be=J((function e(r,t,n){return me((function(t,n,i){return P(n)&&P(i)?e(r,n,i):r(t,n,i)}),t,n)})),ye=u((function(e,r){return be((function(e,r,t){return t}),e,r)}));var he=u((function(e,r){return null==r||r!==r?e:r})),Ie=J((function(e,r,t){return he(e,ve(r,t))}));var De=u((function(e,r){return Array.prototype.slice.call(r,0).sort(e)}));var xe="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";String.prototype.trim}}]); \ No newline at end of file