PageSourceSearch

https://www.theprose.com/_next/static/chunks/1cc2734a-f02af7d043b8586417ad.js

js theprose.com collected 2026-09-24 09:26:57 UTC 87,923 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6139],{3473:function(e,r,n){n.d(r,{Z5:function(){return It},_l:function(){return ni},bK:function(){return li}});var t=n(27378),i=n(88863),a=n(25773),o=n(45106),l=n(23884),c=n(3495),u=n(33216),d=n(56583),s=n(18726),p=n(31542);function f(e,r){}f.bind(null,"warn"),f.bind(null,"error");function g(){}function v(e,r,n){var t=r.map((function(r){var t=function(e,r){return(0,a.Z)({},e,{},r)}(n,r.options);return e.addEventListener(r.eventName,r.fn,t),function(){e.removeEventListener(r.eventName,r.fn,t)}}));return function(){t.forEach((function(e){e()}))}}var m="Invariant failed";function b(e){this.message=e}function h(e,r){if(!e)throw new b(m)}b.prototype.toString=function(){return this.message};var I=function(e){function r(){for(var r,n=arguments.length,t=new Array(n),i=0;i<n;i++)t[i]=arguments[i];return(r=e.call.apply(e,[this].concat(t))||this).callbacks=null,r.unbind=g,r.onWindowError=function(e){var n=r.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof b&&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 n=r.prototype;return n.componentDidMount=function(){this.unbind=v(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof b))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},r}(t.Component),y=function(e){return e+1},D=function(e,r){var n=e.droppableId===r.droppableId,t=y(e.index),i=y(r.index);return n?"\n      You have moved the item from position "+t+"\n      to position "+i+"\n    ":"\n    You have moved the item from position "+t+"\n    in list "+e.droppableId+"\n    to list "+r.droppableId+"\n    in position "+i+"\n  "},x=function(e,r,n){return r.droppableId===n.droppableId?"\n      The item "+e+"\n      has been combined with "+n.draggableId:"\n      The item "+e+"\n      in list "+r.droppableId+"\n      has been combined with "+n.draggableId+"\n      in list "+n.droppableId+"\n    "},E=function(e){return"\n  The item has returned to its starting position\n  of "+y(e.index)+"\n"},w="\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",C=function(e){return"\n  You have lifted an item in position "+y(e.source.index)+"\n"},A=function(e){var r=e.destination;if(r)return D(e.source,r);var n=e.combine;return n?x(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},B=function(e){if("CANCEL"===e.reason)return"\n      Movement cancelled.\n      "+E(e.source)+"\n    ";var r=e.destination,n=e.combine;return r?"\n      You have dropped the item.\n      "+D(e.source,r)+"\n    ":n?"\n      You have dropped the item.\n      "+x(e.draggableId,e.source,n)+"\n    ":"\n    The item has been dropped while not over a drop area.\n    "+E(e.source)+"\n  "},R={x:0,y:0},N=function(e,r){return{x:e.x+r.x,y:e.y+r.y}},S=function(e,r){return{x:e.x-r.x,y:e.y-r.y}},P=function(e,r){return e.x===r.x&&e.y===r.y},O=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},L=function(e,r,n){var t;return void 0===n&&(n=0),(t={})[e]=r,t["x"===e?"y":"x"]=n,t},T=function(e,r){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))},G=function(e,r){return Math.min.apply(Math,r.map((function(r){return T(e,r)})))},M=function(e){return function(r){return{x:e(r.x),y:e(r.y)}}},_=function(e,r){return{top:e.top+r.y,left:e.left+r.x,bottom:e.bottom+r.y,right:e.right+r.x}},F=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}]},k=function(e,r){return r&&r.shouldClipSubject?function(e,r){var n=(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 n.width<=0||n.height<=0?null:n}(r.pageMarginBox,e):(0,u.Dz)(e)},W=function(e){var r=e.page,n=e.withPlaceholder,t=e.axis,i=e.frame,o=function(e,r,n){var t;return n&&n.increasedBy?(0,a.Z)({},e,((t={})[r.end]=e[r.end]+n.increasedBy[r.line],t)):e}(function(e,r){return r?_(e,r.scroll.diff.displacement):e}(r.marginBox,i),t,n);return{page:r,withPlaceholder:n,active:k(o,i)}},U=function(e,r){e.frame||h(!1);var n=e.frame,t=S(r,n.scroll.initial),i=O(t),o=(0,a.Z)({},n,{scroll:{initial:n.scroll.initial,current:r,diff:{value:t,displacement:i},max:n.scroll.max}}),l=W({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return(0,a.Z)({},e,{frame:o,subject:l})};function Z(e){return Object.values?Object.values(e):Object.keys(e).map((function(r){return e[r]}))}function H(e,r){if(e.findIndex)return e.findIndex(r);for(var n=0;n<e.length;n++)if(r(e[n]))return n;return-1}function Y(e,r){if(e.find)return e.find(r);var n=H(e,r);return-1!==n?e[n]:void 0}function j(e){return Array.prototype.slice.call(e)}var V=(0,d.Z)((function(e){return e.reduce((function(e,r){return e[r.descriptor.id]=r,e}),{})})),z=(0,d.Z)((function(e){return e.reduce((function(e,r){return e[r.descriptor.id]=r,e}),{})})),q=(0,d.Z)((function(e){return Z(e)})),J=(0,d.Z)((function(e){return Z(e)})),X=(0,d.Z)((function(e,r){return J(r).filter((function(r){return e===r.descriptor.droppableId})).sort((function(e,r){return e.descriptor.index-r.descriptor.index}))}));function K(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function $(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Q=(0,d.Z)((function(e,r){return r.filter((function(r){return r.descriptor.id!==e.descriptor.id}))})),ee=function(e,r){return e.descriptor.droppableId===r.descriptor.id},re={point:R,value:0},ne={invisible:{},visible:{},all:[]},te={displaced:ne,displacedBy:re,at:null},ie=function(e,r){return function(n){return e<=n&&n<=r}},ae=function(e){var r=ie(e.top,e.bottom),n=ie(e.left,e.right);return function(t){if(r(t.top)&&r(t.bottom)&&n(t.left)&&n(t.right))return!0;var i=r(t.top)||r(t.bottom),a=n(t.left)||n(t.right);if(i&&a)return!0;var o=t.top<e.top&&t.bottom>e.bottom,l=t.left<e.left&&t.right>e.right;return!(!o||!l)||(o&&a||l&&i)}},oe=function(e){var r=ie(e.top,e.bottom),n=ie(e.left,e.right);return function(e){return r(e.top)&&r(e.bottom)&&n(e.left)&&n(e.right)}},le={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ce={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ue=function(e){var r=e.target,n=e.destination,t=e.viewport,i=e.withDroppableDisplacement,a=e.isVisibleThroughFrameFn,o=i?function(e,r){var n=r.frame?r.frame.scroll.diff.displacement:R;return _(e,n)}(r,n):r;return function(e,r,n){return!!r.subject.active&&n(r.subject.active)(e)}(o,n,a)&&function(e,r,n){return n(r)(e)}(o,t,a)},de=function(e){return ue((0,a.Z)({},e,{isVisibleThroughFrameFn:ae}))},se=function(e){return ue((0,a.Z)({},e,{isVisibleThroughFrameFn:oe}))};
1function pe(e){var r=e.afterDragging,n=e.destination,t=e.displacedBy,i=e.viewport,a=e.forceShouldAnimate,o=e.last;return r.reduce((function(e,r){var l=function(e,r){var n=e.page.marginBox,t={top:r.point.y,right:0,bottom:0,left:r.point.x};return(0,u.Dz)((0,u.jn)(n,t))}(r,t),c=r.descriptor.id;if(e.all.push(c),!de({target:l,destination:n,viewport:i,withDroppableDisplacement:!0}))return e.invisible[r.descriptor.id]=!0,e;var d={draggableId:c,shouldAnimate:function(e,r,n){if("boolean"===typeof n)return n;if(!r)return!0;var t=r.invisible,i=r.visible;if(t[e])return!1;var a=i[e];return!a||a.shouldAnimate}(c,o,a)};return e.visible[c]=d,e}),{all:[],visible:{},invisible:{}})}function fe(e){var r=e.insideDestination,n=e.inHomeList,t=e.displacedBy,i=e.destination,a=function(e,r){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return r.inHomeList?n:n+1}(r,{inHomeList:n});return{displaced:ne,displacedBy:t,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:a}}}}function ge(e){var r=e.draggable,n=e.insideDestination,t=e.destination,i=e.viewport,a=e.displacedBy,o=e.last,l=e.index,c=e.forceShouldAnimate,u=ee(r,t);if(null==l)return fe({insideDestination:n,inHomeList:u,displacedBy:a,destination:t});var d=Y(n,(function(e){return e.descriptor.index===l}));if(!d)return fe({insideDestination:n,inHomeList:u,displacedBy:a,destination:t});var s=Q(r,n),p=n.indexOf(d);return{displaced:pe({afterDragging:s.slice(p),destination:t,displacedBy:a,last:o,viewport:i.frame,forceShouldAnimate:c}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:t.descriptor.id,index:l}}}}function ve(e,r){return Boolean(r.effected[e])}var me=function(e){var r=e.isMovingForward,n=e.isInHomeList,t=e.draggable,i=e.draggables,a=e.destination,o=e.insideDestination,l=e.previousImpact,c=e.viewport,u=e.afterCritical,d=l.at;if(d||h(!1),"REORDER"===d.type){var s=function(e){var r=e.isMovingForward,n=e.isInHomeList,t=e.insideDestination,i=e.location;if(!t.length)return null;var a=i.index,o=r?a+1:a-1,l=t[0].descriptor.index,c=t[t.length-1].descriptor.index;return o<l||o>(n?c:c+1)?null:o}({isMovingForward:r,isInHomeList:n,location:d.destination,insideDestination:o});return null==s?null:ge({draggable:t,insideDestination:o,destination:a,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:s})}var p=function(e){var r=e.isMovingForward,n=e.destination,t=e.draggables,i=e.combine,a=e.afterCritical;if(!n.isCombineEnabled)return null;var o=i.draggableId,l=t[o].descriptor.index;return ve(o,a)?r?l:l-1:r?l+1:l}({isMovingForward:r,destination:a,displaced:l.displaced,draggables:i,combine:d.combine,afterCritical:u});return null==p?null:ge({draggable:t,insideDestination:o,destination:a,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:p})},be=function(e){var r=e.afterCritical,n=e.impact,t=e.draggables,i=$(n);i||h(!1);var a=i.draggableId,o=t[a].page.borderBox.center,l=function(e){var r=e.displaced,n=e.afterCritical,t=e.combineWith,i=e.displacedBy,a=Boolean(r.visible[t]||r.invisible[t]);return ve(t,n)?a?R:O(i.point):a?i.point:R}({displaced:n.displaced,afterCritical:r,combineWith:a,displacedBy:n.displacedBy});return N(o,l)},he=function(e,r){return r.margin[e.start]+r.borderBox[e.size]/2},Ie=function(e,r,n){return r[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},ye=function(e){var r=e.axis,n=e.moveRelativeTo,t=e.isMoving;return L(r.line,n.marginBox[r.end]+he(r,t),Ie(r,n.marginBox,t))},De=function(e){var r=e.axis,n=e.moveRelativeTo,t=e.isMoving;return L(r.line,n.marginBox[r.start]-function(e,r){return r.margin[e.end]+r.borderBox[e.size]/2}(r,t),Ie(r,n.marginBox,t))},xe=function(e){var r=e.impact,n=e.draggable,t=e.draggables,i=e.droppable,a=e.afterCritical,o=X(i.descriptor.id,t),l=n.page,c=i.axis;if(!o.length)return function(e){var r=e.axis,n=e.moveInto,t=e.isMoving;return L(r.line,n.contentBox[r.start]+he(r,t),Ie(r,n.contentBox,t))}({axis:c,moveInto:i.page,isMoving:l});var d=r.displaced,s=r.displacedBy,p=d.all[0];if(p){var f=t[p];if(ve(p,a))return De({axis:c,moveRelativeTo:f.page,isMoving:l});var g=(0,u.cv)(f.page,s.point);return De({axis:c,moveRelativeTo:g,isMoving:l})}var v=o[o.length-1];if(v.descriptor.id===n.descriptor.id)return l.borderBox.center;if(ve(v.descriptor.id,a)){var m=(0,u.cv)(v.page,O(a.displacedBy.point));return ye({axis:c,moveRelativeTo:m,isMoving:l})}return ye({axis:c,moveRelativeTo:v.page,isMoving:l})},Ee=function(e,r){var n=e.frame;return n?N(r,n.scroll.diff.displacement):r},we=function(e){var r=function(e){var r=e.impact,n=e.draggable,t=e.droppable,i=e.draggables,a=e.afterCritical,o=n.page.borderBox.center,l=r.at;return t&&l?"REORDER"===l.type?xe({impact:r,draggable:n,draggables:i,droppable:t,afterCritical:a}):be({impact:r,draggables:i,afterCritical:a}):o}(e),n=e.droppable;return n?Ee(n,r):r},Ce=function(e,r){var n=S(r,e.scroll.initial),t=O(n);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:n,displacement:t}}}};function Ae(e,r){return e.map((function(e){return r[e]}))}var Be=function(e){var r=e.pageBorderBoxCenter,n=e.draggable,t=function(e,r){return N(e.scroll.diff.displacement,r)}(e.viewport,r),i=S(t,n.page.borderBox.center);return N(n.client.borderBox.center,i)},Re=function(e){var r=e.draggable,n=e.destination,t=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,l=e.onlyOnMainAxis,c=void 0!==l&&l,u=S(t,r.page.borderBox.center),d={target:_(r.page.borderBox,u),destination:n,withDroppableDisplacement:o,viewport:i};return c?function(e){return ue((0,a.Z)({},e,{isVisibleThroughFrameFn:(r=e.destination.axis,function(e){var n=ie(e.top,e.bottom),t=ie(e.left,e.right);return function(e){return r===le?n(e.top)&&n(e.bottom):t(e.left)&&t(e.right)}})}));var r}(d):se(d)},Ne=function(e){var r=e.isMovingForward,n=e.draggable,t=e.destination,i=e.draggables,o=e.previousImpact,l=e.viewport,c=e.previousPageBorderBoxCenter,u=e.previousClientSelection,d=e.afterCritical;if(!t.isEnabled)return null;var s=X(t.descriptor.id,i),p=ee(n,t),f=function(e){var r=e.isMovingForward,n=e.draggable,t=e.destination,i=e.insideDestination,o=e.previousImpact;
1if(!t.isCombineEnabled)return null;if(!K(o))return null;function l(e){var r={type:"COMBINE",combine:{draggableId:e,droppableId:t.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 d=Q(n,i);if(!u)return d.length?l(d[d.length-1].descriptor.id):null;var s=H(d,(function(e){return e.descriptor.id===u}));-1===s&&h(!1);var p=s-1;return p<0?null:l(d[p].descriptor.id)}({isMovingForward:r,draggable:n,destination:t,insideDestination:s,previousImpact:o})||me({isMovingForward:r,isInHomeList:p,draggable:n,draggables:i,destination:t,insideDestination:s,previousImpact:o,viewport:l,afterCritical:d});if(!f)return null;var g=we({impact:f,draggable:n,droppable:t,draggables:i,afterCritical:d});if(Re({draggable:n,destination:t,newPageBorderBoxCenter:g,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Be({pageBorderBoxCenter:g,draggable:n,viewport:l}),impact:f,scrollJumpRequest:null};var v=S(g,c);return{clientSelection:u,impact:function(e){var r=e.impact,n=e.viewport,t=e.destination,i=e.draggables,o=e.maxScrollChange,l=Ce(n,N(n.scroll.current,o)),c=t.frame?U(t,N(t.frame.scroll.current,o)):t,u=r.displaced,d=pe({afterDragging:Ae(u.all,i),destination:t,displacedBy:r.displacedBy,viewport:l.frame,last:u,forceShouldAnimate:!1}),s=pe({afterDragging:Ae(u.all,i),destination:c,displacedBy:r.displacedBy,viewport:n.frame,last:u,forceShouldAnimate:!1}),p={},f={},g=[u,d,s];return u.all.forEach((function(e){var r=function(e,r){for(var n=0;n<r.length;n++){var t=r[n].visible[e];if(t)return t}return null}(e,g);r?f[e]=r:p[e]=!0})),(0,a.Z)({},r,{displaced:{all:u.all,invisible:p,visible:f}})}({impact:f,viewport:l,destination:t,draggables:i,maxScrollChange:v}),scrollJumpRequest:v}},Se=function(e){var r=e.subject.active;return r||h(!1),r},Pe=function(e,r){var n=e.page.borderBox.center;return ve(e.descriptor.id,r)?S(n,r.displacedBy.point):n},Oe=function(e,r){var n=e.page.borderBox;return ve(e.descriptor.id,r)?_(n,O(r.displacedBy.point)):n},Le=(0,d.Z)((function(e,r){var n=r[e.line];return{value:n,point:L(e.line,n)}})),Te=function(e,r){return(0,a.Z)({},e,{scroll:(0,a.Z)({},e.scroll,{max:r})})},Ge=function(e,r,n){var t=e.frame;ee(r,e)&&h(!1),e.subject.withPlaceholder&&h(!1);var i=Le(e.axis,r.displaceBy).point,o=function(e,r,n){var t=e.axis;if("virtual"===e.descriptor.mode)return L(t.line,r[t.line]);var i=e.subject.page.contentBox[t.size],a=X(e.descriptor.id,n).reduce((function(e,r){return e+r.client.marginBox[t.size]}),0)+r[t.line]-i;return a<=0?null:L(t.line,a)}(e,i,n),l={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!t){var c=W({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:e.frame});return(0,a.Z)({},e,{subject:c})}var u=o?N(t.scroll.max,o):t.scroll.max,d=Te(t,u),s=W({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:d});return(0,a.Z)({},e,{subject:s,frame:d})},Me=function(e){var r=e.isMovingForward,n=e.previousPageBorderBoxCenter,t=e.draggable,i=e.isOver,a=e.draggables,o=e.droppables,l=e.viewport,c=e.afterCritical,u=function(e){var r=e.isMovingForward,n=e.pageBorderBoxCenter,t=e.source,i=e.droppables,a=e.viewport,o=t.subject.active;if(!o)return null;var l=t.axis,c=ie(o[l.start],o[l.end]),u=q(i).filter((function(e){return e!==t})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return ae(a.frame)(Se(e))})).filter((function(e){var n=Se(e);return r?o[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<o[l.crossAxisStart]})).filter((function(e){var r=Se(e),n=ie(r[l.start],r[l.end]);return c(r[l.start])||c(r[l.end])||n(o[l.start])||n(o[l.end])})).sort((function(e,n){var t=Se(e)[l.crossAxisStart],i=Se(n)[l.crossAxisStart];return r?t-i:i-t})).filter((function(e,r,n){return Se(e)[l.crossAxisStart]===Se(n[0])[l.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var d=u.filter((function(e){return ie(Se(e)[l.start],Se(e)[l.end])(n[l.line])}));return 1===d.length?d[0]:d.length>1?d.sort((function(e,r){return Se(e)[l.start]-Se(r)[l.start]}
1))[0]:u.sort((function(e,r){var t=G(n,F(Se(e))),i=G(n,F(Se(r)));return t!==i?t-i:Se(e)[l.start]-Se(r)[l.start]}))[0]}({isMovingForward:r,pageBorderBoxCenter:n,source:i,droppables:o,viewport:l});if(!u)return null;var d=X(u.descriptor.id,a),s=function(e){var r=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,t=e.insideDestination,i=e.draggable,a=e.draggables,o=e.destination,l=e.viewport,c=e.afterCritical;if(!n){if(t.length)return null;var u={displaced:ne,displacedBy:re,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},d=we({impact:u,draggable:i,droppable:o,draggables:a,afterCritical:c}),s=ee(i,o)?o:Ge(o,i,a);return Re({draggable:i,destination:s,newPageBorderBoxCenter:d,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}var p=Boolean(r[o.axis.line]<=n.page.borderBox.center[o.axis.line]),f=function(){var e=n.descriptor.index;return n.descriptor.id===i.descriptor.id||p?e:e+1}(),g=Le(o.axis,i.displaceBy);return ge({draggable:i,insideDestination:t,destination:o,viewport:l,displacedBy:g,last:ne,index:f})}({previousPageBorderBoxCenter:n,destination:u,draggable:t,draggables:a,moveRelativeTo:function(e){var r=e.pageBorderBoxCenter,n=e.viewport,t=e.destination,i=e.insideDestination,a=e.afterCritical;return i.filter((function(e){return se({target:Oe(e,a),destination:t,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var i=T(r,Ee(t,Pe(e,a))),o=T(r,Ee(t,Pe(n,a)));return i<o?-1:o<i?1:e.descriptor.index-n.descriptor.index}))[0]||null}({pageBorderBoxCenter:n,viewport:l,destination:u,insideDestination:d,afterCritical:c}),insideDestination:d,viewport:l,afterCritical:c});if(!s)return null;var p=we({impact:s,draggable:t,droppable:u,draggables:a,afterCritical:c});return{clientSelection:Be({pageBorderBoxCenter:p,draggable:t,viewport:l}),impact:s,scrollJumpRequest:null}},_e=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,n=e.type,t=function(e,r){var n=_e(e);return n?r[n]:null}(r.impact,r.dimensions.droppables),i=Boolean(t),a=r.dimensions.droppables[r.critical.droppable.id],o=t||a,l=o.axis.direction,c="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(c&&!i)return null;var u="MOVE_DOWN"===n||"MOVE_RIGHT"===n,d=r.dimensions.draggables[r.critical.draggable.id],s=r.current.page.borderBoxCenter,p=r.dimensions,f=p.draggables,g=p.droppables;return c?Ne({isMovingForward:u,previousPageBorderBoxCenter:s,draggable:d,destination:o,draggables:f,viewport:r.viewport,previousClientSelection:r.current.client.selection,previousImpact:r.impact,afterCritical:r.afterCritical}):Me({isMovingForward:u,previousPageBorderBoxCenter:s,draggable:d,isOver:o,draggables:f,droppables:g,viewport:r.viewport,afterCritical:r.afterCritical})};function ke(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function We(e){var r=ie(e.top,e.bottom),n=ie(e.left,e.right);return function(e){return r(e.y)&&n(e.x)}}function Ue(e){var r=e.pageBorderBox,n=e.draggable,t=e.droppables,i=q(t).filter((function(e){if(!e.isEnabled)return!1;var n,t,i=e.subject.active;if(!i)return!1;if(t=i,!((n=r).left<t.right&&n.right>t.left&&n.top<t.bottom&&n.bottom>t.top))return!1;if(We(i)(r.center))return!0;var a=e.axis,o=i.center[a.crossAxisLine],l=r[a.crossAxisStart],c=r[a.crossAxisEnd],u=ie(i[a.crossAxisStart],i[a.crossAxisEnd]),d=u(l),s=u(c);return!d&&!s||(d?l<o:c>o)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var r=e.pageBorderBox,n=e.draggable,t=e.candidates,i=n.page.borderBox.center,a=t.map((function(e){var n=e.axis,t=L(e.axis.line,r.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:T(i,t)}})).sort((function(e,r){return r.distance-e.distance}));return a[0]?a[0].id:null}({pageBorderBox:r,draggable:n,candidates:i}):null}var Ze=function(e,r){return(0,u.Dz)(_(e,r))};function He(e){var r=e.displaced,n=e.id;return Boolean(r.visible[n]||r.invisible[n])}var Ye=function(e){var r=e.pageOffset,n=e.draggable,t=e.draggables,i=e.droppables,a=e.previousImpact,o=e.viewport,l=e.afterCritical,c=Ze(n.page.borderBox,r),u=Ue({pageBorderBox:c,draggable:n,droppables:i});if(!u)return te;var d=i[u],s=X(d.descriptor.id,t),p=function(e,r){var n=e.frame;return n?Ze(r,n.scroll.diff.value):r}(d,c);return function(e){var r=e.draggable,n=e.pageBorderBoxWithDroppableScroll,t=e.previousImpact,i=e.destination,a=e.insideDestination,o=e.afterCritical;
1if(!i.isCombineEnabled)return null;var l=i.axis,c=Le(i.axis,r.displaceBy),u=c.value,d=n[l.start],s=n[l.end],p=Y(Q(r,a),(function(e){var r=e.descriptor.id,n=e.page.borderBox,i=n[l.size]/4,a=ve(r,o),c=He({displaced:t.displaced,id:r});return a?c?s>n[l.start]+i&&s<n[l.end]-i:d>n[l.start]-u+i&&d<n[l.end]-u-i:c?s>n[l.start]+u+i&&s<n[l.end]+u-i:d>n[l.start]+i&&d<n[l.end]-i}));return p?{displacedBy:c,displaced:t.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:n,previousImpact:a,destination:d,insideDestination:s,afterCritical:l})||function(e){var r=e.pageBorderBoxWithDroppableScroll,n=e.draggable,t=e.destination,i=e.insideDestination,a=e.last,o=e.viewport,l=e.afterCritical,c=t.axis,u=Le(t.axis,n.displaceBy),d=u.value,s=r[c.start],p=r[c.end],f=function(e){var r=e.draggable,n=e.closest,t=e.inHomeList;return n?t&&n.descriptor.index>r.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Y(Q(n,i),(function(e){var r=e.descriptor.id,n=e.page.borderBox.center[c.line],t=ve(r,l),i=He({displaced:a,id:r});return t?i?p<=n:s<n-d:i?p<=n+d:s<n})),inHomeList:ee(n,t)});return ge({draggable:n,insideDestination:i,destination:t,viewport:o,last:a,displacedBy:u,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:n,destination:d,insideDestination:s,last:a.displaced,viewport:o,afterCritical:l})},je=function(e,r){var n;return(0,a.Z)({},e,((n={})[r.descriptor.id]=r,n))},Ve=function(e){var r=e.previousImpact,n=e.impact,t=e.droppables,i=_e(r),o=_e(n);if(!i)return t;if(i===o)return t;var l=t[i];if(!l.subject.withPlaceholder)return t;var c=function(e){var r=e.subject.withPlaceholder;r||h(!1);var n=e.frame;if(!n){var t=W({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,a.Z)({},e,{subject:t})}var i=r.oldFrameMaxScroll;i||h(!1);var o=Te(n,i),l=W({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return(0,a.Z)({},e,{subject:l,frame:o})}(l);return je(t,c)},ze=function(e){var r=e.state,n=e.clientSelection,t=e.dimensions,i=e.viewport,o=e.impact,l=e.scrollJumpRequest,c=i||r.viewport,u=t||r.dimensions,d=n||r.current.client.selection,s=S(d,r.initial.client.selection),p={offset:s,selection:d,borderBoxCenter:N(r.initial.client.borderBoxCenter,s)},f={selection:N(p.selection,c.scroll.current),borderBoxCenter:N(p.borderBoxCenter,c.scroll.current),offset:N(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||Ye({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,n=e.draggables,t=e.droppables,i=e.previousImpact,a=e.impact,o=Ve({previousImpact:i,impact:a,droppables:t}),l=_e(a);if(!l)return o;var c=t[l];if(ee(r,c))return o;if(c.subject.withPlaceholder)return o;var u=Ge(c,r,n);return je(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 qe=function(e){var r=e.impact,n=e.viewport,t=e.draggables,i=e.destination,o=e.forceShouldAnimate,l=r.displaced,c=pe({afterDragging:function(e,r){return e.map((function(e){return r[e]}))}(l.all,t),destination:i,displacedBy:r.displacedBy,viewport:n.frame,forceShouldAnimate:o,last:l});return(0,a.Z)({},r,{displaced:c})},Je=function(e){var r=e.impact,n=e.draggable,t=e.droppable,i=e.draggables,a=e.viewport,o=e.afterCritical,l=we({impact:r,draggable:n,draggables:i,droppable:t,afterCritical:o});return Be({pageBorderBoxCenter:l,draggable:n,viewport:a})},Xe=function(e){var r=e.state,n=e.dimensions,t=e.viewport;"SNAP"!==r.movementMode&&h(!1);var i=r.impact,a=t||r.viewport,o=n||r.dimensions,l=o.draggables,c=o.droppables,u=l[r.critical.draggable.id],d=_e(i);d||h(!1);var s=c[d],p=qe({impact:i,viewport:a,destination:s,draggables:l}
1),f=Je({impact:p,draggable:u,droppable:s,draggables:l,viewport:a,afterCritical:r.afterCritical});return ze({impact:p,clientSelection:f,state:r,dimensions:o,viewport:a})},Ke=function(e){var r=e.draggable,n=e.home,t=e.draggables,i=e.viewport,a=Le(n.axis,r.displaceBy),o=X(n.descriptor.id,t),l=o.indexOf(r);-1===l&&h(!1);var c,u=o.slice(l+1),d=u.reduce((function(e,r){return e[r.descriptor.id]=!0,e}),{}),s={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:a,effected:d};return{impact:{displaced:pe({afterDragging:u,destination:n,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:s}},$e=function(e){0},Qe=function(e){0},er=function(e){var r=e.additions,n=e.updatedDroppables,t=e.viewport,i=t.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}(n[r]).scroll.diff.value;return function(e){var r=e.draggable,n=e.offset,t=e.initialWindowScroll,i=(0,u.cv)(r.client,n),o=(0,u.oc)(i,t);return(0,a.Z)({},r,{placeholder:(0,a.Z)({},r.placeholder,{client:i}),client:i,page:o})}({draggable:e,offset:N(i,o),initialWindowScroll:t.scroll.initial})}))},rr=function(e){return"SNAP"===e.movementMode},nr=function(e,r,n){var t=function(e,r){return{draggables:e.draggables,droppables:je(e.droppables,r)}}(e.dimensions,r);return!rr(e)||n?ze({state:e,dimensions:t}):Xe({state:e,dimensions:t})};function tr(e){return e.isDragging&&"SNAP"===e.movementMode?(0,a.Z)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var ir={phase:"IDLE",completed:null,shouldFlush:!1},ar=function(e,r){if(void 0===e&&(e=ir),"FLUSH"===r.type)return(0,a.Z)({},ir,{shouldFlush:!0});if("INITIAL_PUBLISH"===r.type){"IDLE"!==e.phase&&h(!1);var n=r.payload,t=n.critical,i=n.clientSelection,o=n.viewport,l=n.dimensions,c=n.movementMode,u=l.draggables[t.draggable.id],d=l.droppables[t.droppable.id],s={selection:i,borderBoxCenter:u.client.borderBox.center,offset:R},p={client:s,page:{selection:N(s.selection,o.scroll.initial),borderBoxCenter:N(s.selection,o.scroll.initial),offset:N(s.selection,o.scroll.diff.value)}},f=q(l.droppables).every((function(e){return!e.isFixedOnPage})),g=Ke({draggable:u,home:d,draggables:l.draggables,viewport:o}),v=g.impact;return{phase:"DRAGGING",isDragging:!0,critical:t,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,n=e.published;$e();var t=n.modified.map((function(e){var n=r.dimensions.droppables[e.droppableId];return U(n,e.scroll)})),i=(0,a.Z)({},r.dimensions.droppables,{},V(t)),o=z(er({additions:n.additions,updatedDroppables:i,viewport:r.viewport})),l=(0,a.Z)({},r.dimensions.draggables,{},o);n.removals.forEach((function(e){delete l[e]}));var c={droppables:i,draggables:l},u=_e(r.impact),d=u?c.droppables[u]:null,s=c.draggables[r.critical.draggable.id],p=c.droppables[r.critical.droppable.id],f=Ke({draggable:s,home:p,draggables:l,viewport:r.viewport}),g=f.impact,v=f.afterCritical,m=d&&d.isCombineEnabled?r.impact:g,b=Ye({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});Qe();var h=(0,a.Z)({phase:"DRAGGING"},r,{phase:"DRAGGING",impact:b,onLiftImpact:g,dimensions:c,afterCritical:v,forceShouldAnimate:!1});return"COLLECTING"===r.phase?h:(0,a.Z)({phase:"DROP_PENDING"},h,{phase:"DROP_PENDING",reason:r.reason,isWaiting:!1})}({state:e,published:r.payload});if("MOVE"===r.type){if("DROP_PENDING"===e.phase)return e;ke(e)||h(!1);var m=r.payload.client;return P(m,e.current.client.selection)?e:ze({state:e,clientSelection:m,impact:rr(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);ke(e)||h(!1);var b=r.payload,I=b.id,y=b.newScroll,D=e.dimensions.droppables[I];if(!D)return e;var x=U(D,y);return nr(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;ke(e)||h(!1);var E=r.payload,w=E.id,C=E.isEnabled,A=e.dimensions.droppables[w];A||h(!1),A.isEnabled===C&&h(!1);var B=(0,a.Z)({},A,{isEnabled:C});return nr(e,B,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;ke(e)||h(!1);
1var S=r.payload,O=S.id,L=S.isCombineEnabled,T=e.dimensions.droppables[O];T||h(!1),T.isCombineEnabled===L&&h(!1);var G=(0,a.Z)({},T,{isCombineEnabled:L});return nr(e,G,!0)}if("MOVE_BY_WINDOW_SCROLL"===r.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;ke(e)||h(!1),e.isWindowScrollAllowed||h(!1);var M=r.payload.newScroll;if(P(e.viewport.scroll.current,M))return tr(e);var _=Ce(e.viewport,M);return rr(e)?Xe({state:e,viewport:_}):ze({state:e,viewport:_})}if("UPDATE_VIEWPORT_MAX_SCROLL"===r.type){if(!ke(e))return e;var F=r.payload.maxScroll;if(P(F,e.viewport.scroll.max))return e;var k=(0,a.Z)({},e.viewport,{scroll:(0,a.Z)({},e.viewport.scroll,{max:F})});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 W=Fe({state:e,type:r.type});return W?ze({state:e,impact:W.impact,clientSelection:W.clientSelection,scrollJumpRequest:W.scrollJumpRequest}):e}if("DROP_PENDING"===r.type){var Z=r.payload.reason;return"COLLECTING"!==e.phase&&h(!1),(0,a.Z)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:Z})}if("DROP_ANIMATE"===r.type){var H=r.payload,Y=H.completed,j=H.dropDuration,J=H.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&h(!1),{phase:"DROP_ANIMATING",completed:Y,dropDuration:j,newHomeClientOffset:J,dimensions:e.dimensions}}return"DROP_COMPLETE"===r.type?{phase:"IDLE",completed:r.payload.completed,shouldFlush:!1}: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}},dr=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},sr=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(e){return{type:"DROP_COMPLETE",payload:e}},br=function(e){return{type:"DROP",payload:e}},hr=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var Ir="cubic-bezier(.2,1,.1,1)",yr={drop:0,combining:.7},Dr={drop:.75},xr=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Er={fluid:"opacity "+xr,snap:"transform "+xr+", opacity "+xr,drop:function(e){var r=e+"s "+Ir;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+xr,placeholder:"height "+xr+", width "+xr+", margin "+xr},wr=function(e){return P(e,R)?null:"translate("+e.x+"px, "+e.y+"px)"},Cr=wr,Ar=function(e,r){var n=wr(e);return n?r?n+" scale("+Dr.drop+")":n:null},Br=.33,Rr=.55,Nr=Rr-Br,Sr=function(e){var r=e.getState,n=e.dispatch;return function(e){return function(t){if("DROP"===t.type){var i=r(),o=t.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],d=function(e){var r=e.draggables,n=e.reason,t=e.lastImpact,i=e.home,o=e.viewport,l=e.onLiftImpact;return t.at&&"DROP"===n?"REORDER"===t.at.type?{impact:t,didDropInsideDroppable:!0}:{impact:(0,a.Z)({},t,{displaced:ne}),didDropInsideDroppable:!0}:{impact:qe({draggables:r,impact:l,destination:i,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),s=d.impact,p=d.didDropInsideDroppable,f=p?K(s):null,g=p?$(s):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,n=e.draggable,t=e.dimensions,i=e.viewport,a=e.afterCritical,o=t.draggables,l=t.droppables,c=_e(r),u=c?l[c]:null,d=l[n.descriptor.droppableId],s=Je({impact:r,draggable:n,draggables:o,afterCritical:a,droppable:u||d,viewport:i});return S(s,n.client.borderBox.center)}({impact:s,draggable:u,dimensions:c,viewport:i.viewport,afterCritical:i.afterCritical}),I={critical:i.critical,afterCritical:i.afterCritical,result:m,impact:s};if(!P(i.current.client.offset,b)||Boolean(m.combine)){var y=function(e){var r=e.current,n=e.destination,t=e.reason,i=T(r,n);if(i<=0)return Br;if(i>=1500)return Rr;
1var a=Br+Nr*(i/1500);return Number(("CANCEL"===t?.6*a:a).toFixed(2))}({current:i.current.client.offset,destination:b,reason:o});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:b,dropDuration:y,completed:I}))}else n(mr({completed:I}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:o}))}else e(t)}}},Pr=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Or(e){var r=e.onWindowScroll;var n=(0,s.Z)((function(){r(Pr())})),t=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(r){r.target!==window&&r.target!==window.document||e()}}}(n),i=g;function a(){return i!==g}return{start:function(){a()&&h(!1),i=v(window,[t])},stop:function(){a()||h(!1),n.cancel(),i(),i=g},isActive:a}}var Lr=function(e){var r=Or({onWindowScroll:function(r){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:r}})}});return function(e){return function(n){r.isActive()||"INITIAL_PUBLISH"!==n.type||r.start(),r.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&r.stop(),e(n)}}},Tr=function(){var e=[];return{add:function(r){var n=setTimeout((function(){return function(r){var n=H(e,(function(e){return e.timerId===r}));-1===n&&h(!1),e.splice(n,1)[0].callback()}(n)})),t={timerId:n,callback:r};e.push(t)},flush:function(){if(e.length){var r=[].concat(e);e.length=0,r.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Gr=function(e,r){$e(),r(),Qe()},Mr=function(e,r){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:r}},_r=function(e,r,n,t){if(e){var i=function(e){var r=!1,n=!1,t=setTimeout((function(){n=!0})),i=function(i){r||n||(r=!0,e(i),clearTimeout(t))};return i.wasCalled=function(){return r},i}(n);e(r,{announce:i}),i.wasCalled()||n(t(r))}else n(t(r))},Fr=function(e,r){var n=function(e,r){var n=Tr(),t=null,i=function(n){t||h(!1),t=null,Gr(0,(function(){return _r(e().onDragEnd,n,r,B)}))};return{beforeCapture:function(r,n){t&&h(!1),Gr(0,(function(){var t=e().onBeforeCapture;t&&t({draggableId:r,mode:n})}))},beforeStart:function(r,n){t&&h(!1),Gr(0,(function(){var t=e().onBeforeDragStart;t&&t(Mr(r,n))}))},start:function(i,a){t&&h(!1);var o=Mr(i,a);t={mode:a,lastCritical:i,lastLocation:o.source,lastCombine:null},n.add((function(){Gr(0,(function(){return _r(e().onDragStart,o,r,C)}))}))},update:function(i,o){var l=K(o),c=$(o);t||h(!1);var u=!function(e,r){if(e===r)return!0;var n=e.draggable.id===r.draggable.id&&e.draggable.droppableId===r.draggable.droppableId&&e.draggable.type===r.draggable.type&&e.draggable.index===r.draggable.index,t=e.droppable.id===r.droppable.id&&e.droppable.type===r.droppable.type;return n&&t}(i,t.lastCritical);u&&(t.lastCritical=i);var d,s,p=(s=l,!(null==(d=t.lastLocation)&&null==s||null!=d&&null!=s&&d.droppableId===s.droppableId&&d.index===s.index));p&&(t.lastLocation=l);var f=!function(e,r){return null==e&&null==r||null!=e&&null!=r&&e.draggableId===r.draggableId&&e.droppableId===r.droppableId}(t.lastCombine,c);if(f&&(t.lastCombine=c),u||p||f){var g=(0,a.Z)({},Mr(i,t.mode),{combine:c,destination:l});n.add((function(){Gr(0,(function(){return _r(e().onDragUpdate,g,r,A)}))}))}},flush:function(){t||h(!1),n.flush()},drop:i,abort:function(){if(t){var e=(0,a.Z)({},Mr(t.lastCritical,t.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,r);return function(e){return function(r){return function(t){if("BEFORE_INITIAL_CAPTURE"!==t.type){if("INITIAL_PUBLISH"===t.type){var i=t.payload.critical;return n.beforeStart(i,t.payload.movementMode),r(t),void n.start(i,t.payload.movementMode)}if("DROP_COMPLETE"===t.type){var a=t.payload.completed.result;return n.flush(),r(t),void n.drop(a)}if(r(t),"FLUSH"!==t.type){var o=e.getState();"DRAGGING"===o.phase&&n.update(o.critical,o.impact)}else n.abort()}else n.beforeCapture(t.payload.draggableId,t.payload.movementMode)}}}},kr=function(e){return function(r){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var t=e.getState();"DROP_ANIMATING"!==t.phase&&h(!1),e.dispatch(mr({completed:t.completed}))}else r(n)}}},Wr=function(e){var r=null,n=null;return function(t){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(n&&(cancelAnimationFrame(n),n=null),r&&(r(),r=null)),t(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})}};n=requestAnimationFrame((function(){n=null,r=v(window,[a])}))}}}},Ur=function(e){return function(r){return function(n){if(r(n),"PUBLISH_WHILE_DRAGGING"===n.type){var t=e.getState();"DROP_PENDING"===t.phase&&(t.isWaiting||e.dispatch(br({reason:t.reason})))}}}},Zr=o.qC,Hr=function(e){var r,n=e.dimensionMarshal,t=e.focusMarshal,i=e.styleMarshal,a=e.getResponders,l=e.announce,c=e.autoScroller;return(0,o.MT)(ar,Zr((0,o.md)((r=i,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&r.dragging(),"DROP_ANIMATE"===n.type&&r.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||r.resting(),e(n)}}}),function(e){return function(){return function(r){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),r(n)}}}}(n),function(e){return function(r){var n=r.getState,t=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=n();"DROP_ANIMATING"===u.phase&&t(mr({completed:u.completed})),"IDLE"!==n().phase&&h(!1),t({type:"FLUSH",payload:null}),t({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:o,movementMode:c}});var d={draggableId:o,scrollOptions:{shouldPublishImmediately:"SNAP"===c}},s=e.startPublishing(d),p=s.critical,f=s.dimensions,g=s.viewport;t({type:"INITIAL_PUBLISH",payload:{critical:p,dimensions:f,clientSelection:l,movementMode:c,viewport:g}})}else r(i)}}}}(n),Sr,kr,Wr,Ur,function(e){return function(r){return function(n){return function(t){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(t))return e.stop(),void n(t);if("INITIAL_PUBLISH"===t.type){n(t);var i=r.getState();return"DRAGGING"!==i.phase&&h(!1),void e.start(i)}n(t),e.scroll(r.getState())}}}}(c),Lr,function(e){var r=!1;return function(){return function(n){return function(t){if("INITIAL_PUBLISH"===t.type)return r=!0,e.tryRecordFocus(t.payload.critical.draggable.id),n(t),void e.tryRestoreFocusRecorded();if(n(t),r){if("FLUSH"===t.type)return r=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===t.type){r=!1;var i=t.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(t),Fr(a,l))))};var Yr=function(e){var r=e.scrollHeight,n=e.scrollWidth,t=e.height,i=e.width,a=S({x:n,y:r},{x:i,y:t});return{x:Math.max(0,a.x),y:Math.max(0,a.y)}},jr=function(){var e=document.documentElement;return e||h(!1),e},Vr=function(){var e=jr();return Yr({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},zr=function(e){var r=e.critical,n=e.scrollOptions,t=e.registry;$e();var i=function(){var e=Pr(),r=Vr(),n=e.y,t=e.x,i=jr(),a=t+i.clientWidth,o=n+i.clientHeight;return{frame:(0,u.Dz)({top:n,left:t,right:a,bottom:o}),scroll:{initial:e,current:e,max:r,diff:{value:R,displacement:R}}}}(),a=i.scroll.current,o=r.droppable,l=t.droppable.getAllByType(o.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(a,n)})),c=t.draggable.getAllByType(r.draggable.type).map((function(e){return e.getDimension(a)})),d={draggables:z(c),droppables:V(l)};return Qe(),{dimensions:d,critical:r,viewport:i}};function qr(e,r,n){return n.descriptor.id!==r.id&&(n.descriptor.type===r.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Jr=function(e,r){var n=null,t=function(e){var r=e.registry,n=e.callbacks,t={additions:{},removals:{},modified:{}},i=null,a=function(){i||(n.collectionStarting(),i=requestAnimationFrame((function(){i=null,$e();var e=t,a=e.additions,o=e.removals,l=e.modified,c=Object.keys(a).map((function(e){return r.draggable.getById(e).getDimension(R)})).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()}})),d={additions:c,removals:Object.keys(o),modified:u};t={additions:{},removals:{},modified:{}},Qe(),n.publish(d)})))};return{add:function(e){var r=e.descriptor.id;t.additions[r]=e,t.modified[e.descriptor.droppableId]=!0,t.removals[r]&&delete t.removals[r],a()},remove:function(e){var r=e.descriptor;t.removals[r.id]=!0,t.modified[r.droppableId]=!0,t.additions[r.id]&&delete t.additions[r.id],a()},stop:function(){i&&(cancelAnimationFrame(i),i=null,t={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:e}),i=function(r){n||h(!1);var i=n.critical.draggable;"ADDITION"===r.type&&qr(e,i,r.value)&&t.add(r.value),"REMOVAL"===r.type&&qr(e,i,r.value)&&t.remove(r.value)};return{updateDroppableIsEnabled:function(t,i){e.droppable.exists(t)||h(!1),n&&r.updateDroppableIsEnabled({id:t,isEnabled:i})}
1,updateDroppableIsCombineEnabled:function(t,i){n&&(e.droppable.exists(t)||h(!1),r.updateDroppableIsCombineEnabled({id:t,isCombineEnabled:i}))},scrollDroppable:function(r,t){n&&e.droppable.getById(r).callbacks.scroll(t)},updateDroppableScroll:function(t,i){n&&(e.droppable.exists(t)||h(!1),r.updateDroppableScroll({id:t,newScroll:i}))},startPublishing:function(r){n&&h(!1);var t=e.draggable.getById(r.draggableId),a=e.droppable.getById(t.descriptor.droppableId),o={draggable:t.descriptor,droppable:a.descriptor},l=e.subscribe(i);return n={critical:o,unsubscribe:l},zr({critical:o,registry:e,scrollOptions:r.scrollOptions})},stopPublishing:function(){if(n){t.stop();var r=n.critical.droppable;e.droppable.getAllByType(r.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}}},Xr=function(e,r){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==r&&"DROP"===e.completed.result.reason)},Kr=function(e){window.scrollBy(e.x,e.y)},$r=(0,d.Z)((function(e){return q(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Qr=function(e){var r=e.center,n=e.destination,t=e.droppables;if(n){var i=t[n];return i.frame?i:null}return function(e,r){return Y($r(r),(function(r){return r.frame||h(!1),We(r.frame.pageMarginBox)(e)}))}(r,t)},en=.25,rn=.05,nn=28,tn=function(e){return Math.pow(e,2)},an={stopDampeningAt:1200,accelerateAt:360},on=function(e){var r=e.startOfRange,n=e.endOfRange,t=e.current,i=n-r;return 0===i?0:(t-r)/i},ln=an.accelerateAt,cn=an.stopDampeningAt,un=function(e){var r=e.distanceToEdge,n=e.thresholds,t=e.dragStartTime,i=e.shouldUseTimeDampening,a=function(e,r){if(e>r.startScrollingFrom)return 0;if(e<=r.maxScrollValueAt)return nn;if(e===r.startScrollingFrom)return 1;var n=on({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),t=nn*tn(1-n);return Math.ceil(t)}(r,n);return 0===a?0:i?Math.max(function(e,r){var n=r,t=cn,i=Date.now()-n;if(i>=cn)return e;if(i<ln)return 1;var a=on({startOfRange:ln,endOfRange:t,current:i}),o=e*tn(a);return Math.ceil(o)}(a,t),1):a},dn=function(e){var r=e.container,n=e.distanceToEdges,t=e.dragStartTime,i=e.axis,a=e.shouldUseTimeDampening,o=function(e,r){return{startScrollingFrom:e[r.size]*en,maxScrollValueAt:e[r.size]*rn}}(r,i);return n[i.end]<n[i.start]?un({distanceToEdge:n[i.end],thresholds:o,dragStartTime:t,shouldUseTimeDampening:a}):-1*un({distanceToEdge:n[i.start],thresholds:o,dragStartTime:t,shouldUseTimeDampening:a})},sn=M((function(e){return 0===e?0:e})),pn=function(e){var r=e.dragStartTime,n=e.container,t=e.subject,i=e.center,a=e.shouldUseTimeDampening,o={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},l=dn({container:n,distanceToEdges:o,dragStartTime:r,axis:le,shouldUseTimeDampening:a}),c=dn({container:n,distanceToEdges:o,dragStartTime:r,axis:ce,shouldUseTimeDampening:a}),u=sn({x:c,y:l});if(P(u,R))return null;var d=function(e){var r=e.container,n=e.subject,t=e.proposedScroll,i=n.height>r.height,a=n.width>r.width;return a||i?a&&i?null:{x:a?0:t.x,y:i?0:t.y}:t}({container:n,subject:t,proposedScroll:u});return d?P(d,R)?null:d:null},fn=M((function(e){return 0===e?0:e>0?1:-1})),gn=function(){var e=function(e,r){return e<0?e:e>r?e-r:0};return function(r){var n=r.current,t=r.max,i=r.change,a=N(n,i),o={x:e(a.x,t.x),y:e(a.y,t.y)};return P(o,R)?null:o}}(),vn=function(e){var r=e.max,n=e.current,t=e.change,i={x:Math.max(n.x,r.x),y:Math.max(n.y,r.y)},a=fn(t),o=gn({max:i,current:n,change:a});return!o||(0!==a.x&&0===o.x||0!==a.y&&0===o.y)},mn=function(e,r){return vn({current:e.scroll.current,max:e.scroll.max,change:r})},bn=function(e,r){var n=e.frame;return!!n&&vn({current:n.scroll.current,max:n.scroll.max,change:r})},hn=function(e){var r=e.state,n=e.dragStartTime,t=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,n=e.subject,t=e.center,i=e.dragStartTime,a=e.shouldUseTimeDampening,o=pn({dragStartTime:i,container:r.frame,subject:n,center:t,shouldUseTimeDampening:a});return o&&mn(r,o)?o:null}({dragStartTime:n,viewport:r.viewport,subject:l,center:o,shouldUseTimeDampening:t});if(c)return void i(c)}var u=Qr({center:o,destination:_e(r.impact),droppables:r.dimensions.droppables});if(u){var d=function(e){var r=e.droppable,n=e.subject,t=e.center,i=e.dragStartTime,a=e.shouldUseTimeDampening,o=r.frame;if(!o)return null;var l=pn({dragStartTime:i,container:o.pageMarginBox,subject:n,center:t,shouldUseTimeDampening:a});return l&&bn(r,l)?l:null}({dragStartTime:n,droppable:u,subject:l,center:o,shouldUseTimeDampening:t});d&&a(u.descriptor.id,d)}},In=function(e){var r=e.move,n=e.scrollDroppable,t=e.scrollWindow,i=function(e,r){if(!bn(e,r))return r;var t=function(e,r){var n=e.frame;
1return n&&bn(e,r)?gn({current:n.scroll.current,max:n.scroll.max,change:r}):null}(e,r);if(!t)return n(e.descriptor.id,r),null;var i=S(r,t);return n(e.descriptor.id,i),S(r,i)},a=function(e,r,n){if(!e)return n;if(!mn(r,n))return n;var i=function(e,r){if(!mn(e,r))return null;var n=e.scroll.max,t=e.scroll.current;return gn({current:t,max:n,change:r})}(r,n);if(!i)return t(n),null;var a=S(n,i);return t(a),S(n,a)};return function(e){var n=e.scrollJumpRequest;if(n){var t=_e(e.impact);t||h(!1);var o=i(e.dimensions.droppables[t],n);if(o){var l=e.viewport,c=a(e.isWindowScrollAllowed,l,o);c&&function(e,n){var t=N(e.current.client.selection,n);r({client:t})}(e,c)}}}},yn=function(e){var r=e.scrollDroppable,n=e.scrollWindow,t=e.move,i=function(e){var r=e.scrollWindow,n=e.scrollDroppable,t=(0,s.Z)(r),i=(0,s.Z)(n),a=null,o=function(e){a||h(!1);var r=a,n=r.shouldUseTimeDampening,o=r.dragStartTime;hn({state:e,scrollWindow:t,scrollDroppable:i,dragStartTime:o,shouldUseTimeDampening:n})};return{start:function(e){$e(),a&&h(!1);var r=Date.now(),n=!1,t=function(){n=!0};hn({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:t,scrollDroppable:t}),a={dragStartTime:r,shouldUseTimeDampening:n},Qe(),n&&o(e)},stop:function(){a&&(t.cancel(),i.cancel(),a=null)},scroll:o}}({scrollWindow:n,scrollDroppable:r}),a=In({move:t,scrollWindow:n,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}},Dn=function(){var e="data-rbd-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),xn=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),En=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),wn={contextId:"data-rbd-scroll-container-context-id"},Cn=function(e,r){return e.map((function(e){var n=e.styles[r];return n?e.selector+" { "+n+" }":""})).join(" ")},An="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?t.useLayoutEffect:t.useEffect,Bn=function(){var e=document.querySelector("head");return e||h(!1),e},Rn=function(e){var r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.type="text/css",r};function Nn(e,r){var n=(0,c.Ye)((function(){return function(e){var r,n=(r=e,function(e){return"["+e+'="'+r+'"]'}),t=function(){var e="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ";return{selector:n(Dn.contextId),styles:{always:"\n          -webkit-touch-callout: none;\n          -webkit-tap-highlight-color: rgba(0,0,0,0);\n          touch-action: manipulation;\n        ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),i=[function(){var e="\n      transition: "+Er.outOfTheWay+";\n    ";return{selector:n(xn.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),t,{selector:n(En.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:Cn(i,"always"),resting:Cn(i,"resting"),dragging:Cn(i,"dragging"),dropAnimating:Cn(i,"dropAnimating"),userCancel:Cn(i,"userCancel")}}(e)}),[e]),i=(0,t.useRef)(null),a=(0,t.useRef)(null),o=(0,c.I4)((0,d.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}),[]);An((function(){(i.current||a.current)&&h(!1);var t=Rn(r),c=Rn(r);return i.current=t,a.current=c,t.setAttribute("data-rbd-always",e),c.setAttribute("data-rbd-dynamic",e),Bn().appendChild(t),Bn().appendChild(c),l(n.always),o(n.resting),function(){var e=function(e){var r=e.current;r||h(!1),Bn().removeChild(r),e.current=null};e(i),e(a)}}),[r,l,o,n.always,n.resting,e]);var u=(0,c.I4)((function(){return o(n.dragging)}),[o,n.dragging]),s=(0,c.I4)((function(e){o("DROP"!==e?n.userCancel:n.dropAnimating)}
1),[o,n.dropAnimating,n.userCancel]),p=(0,c.I4)((function(){a.current&&o(n.resting)}),[o,n.resting]);return(0,c.Ye)((function(){return{dragging:u,dropping:s,resting:p}}),[u,s,p])}var Sn=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Pn(e){return e instanceof Sn(e).HTMLElement}function On(e,r){var n="["+Dn.contextId+'="'+e+'"]',t=j(document.querySelectorAll(n));if(!t.length)return null;var i=Y(t,(function(e){return e.getAttribute(Dn.draggableId)===r}));return i&&Pn(i)?i:null}function Ln(){var e={draggables:{},droppables:{}},r=[];function n(e){r.length&&r.forEach((function(r){return r(e)}))}function t(r){return e.draggables[r]||null}function i(r){return e.droppables[r]||null}return{draggable:{register:function(r){e.draggables[r.descriptor.id]=r,n({type:"ADDITION",value:r})},update:function(r,n){var t=e.draggables[n.descriptor.id];t&&t.uniqueId===r.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[r.descriptor.id]=r)},unregister:function(r){var i=r.descriptor.id,a=t(i);a&&r.uniqueId===a.uniqueId&&(delete e.draggables[i],n({type:"REMOVAL",value:r}))},getById:function(e){var r=t(e);return r||h(!1),r},findById:t,exists:function(e){return Boolean(t(e))},getAllByType:function(r){return Z(e.draggables).filter((function(e){return e.descriptor.type===r}))}},droppable:{register:function(r){e.droppables[r.descriptor.id]=r},unregister:function(r){var n=i(r.descriptor.id);n&&r.uniqueId===n.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 Z(e.droppables).filter((function(e){return e.descriptor.type===r}))}},subscribe:function(e){return r.push(e),function(){var n=r.indexOf(e);-1!==n&&r.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},r.length=0}}}var Tn=t.createContext(null),Gn=function(){var e=document.body;return e||h(!1),e},Mn={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var _n=0,Fn={separator:"::"};function kn(e,r){return void 0===r&&(r=Fn),(0,c.Ye)((function(){return""+e+r.separator+_n++}),[r.separator,e])}var Wn=t.createContext(null);function Un(e){0}function Zn(e,r){Un()}function Hn(){Zn()}function Yn(e){var r=(0,t.useRef)(e);return(0,t.useEffect)((function(){r.current=e})),r}var jn,Vn=((jn={})[13]=!0,jn[9]=!0,jn),zn=function(e){Vn[e.keyCode]&&e.preventDefault()},qn=function(){var e="visibilitychange";return"undefined"===typeof document?e:Y([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Jn,Xn={type:"IDLE"};function Kn(e){var r=e.cancel,n=e.completed,t=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var r=e.button,n=e.clientX,a=e.clientY;if(0===r){var o={x:n,y:a},l=t();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(o);"PENDING"!==l.type&&h(!1);var c=l.point;if(u=c,d=o,Math.abs(d.x-u.x)>=5||Math.abs(d.y-u.y)>=5){var u,d;e.preventDefault();var s=l.actions.fluidLift(o);i({type:"DRAGGING",actions:s})}}}},{eventName:"mouseup",fn:function(e){var i=t();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):r()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===t().type&&e.preventDefault(),r()}},{eventName:"keydown",fn:function(e){if("PENDING"!==t().type)return 27===e.keyCode?(e.preventDefault(),void r()):void zn(e);r()}},{eventName:"resize",fn:r},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===t().type&&r()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=t();"IDLE"===n.type&&h(!1),n.actions.shouldRespectForcePress()?r():e.preventDefault()}},{eventName:qn,fn:r}]}function $n(){}var Qn=((Jn={})[34]=!0,Jn[33]=!0,Jn[36]=!0,Jn[35]=!0,Jn);function et(e,r){function n(){r(),e.cancel()}return[{eventName:"keydown",fn:function(t){return 27===t.keyCode?(t.preventDefault(),void n()):32===t.keyCode?(t.preventDefault(),r(),void e.drop()):40===t.keyCode?(t.preventDefault(),void e.moveDown()):38===t.keyCode?(t.preventDefault(),void e.moveUp()):39===t.keyCode?(t.preventDefault(),void e.moveRight()):37===t.keyCode?(t.preventDefault(),void e.moveLeft()):void(Qn[t.keyCode]?t.preventDefault():zn(t))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:qn,fn:n}]}var rt={type:"IDLE"};var nt={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function tt(e,r){if(null==r)return!1;if(Boolean(nt[r.tagName.toLowerCase()]))return!0;var n=r.getAttribute("contenteditable");return"true"===n||""===n||r!==e&&tt(e,r.parentElement)}function it(e,r){var n=r.target;return!!Pn(n)&&tt(e,n)}var at=function(e){return(0,u.Dz)(e.getBoundingClientRect()).center};var ot=function(){var e="matches";
1return"undefined"===typeof document?e:Y([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function lt(e,r){return null==e?null:e[ot](r)?e:lt(e.parentElement,r)}function ct(e,r){return e.closest?e.closest(r):lt(e,r)}function ut(e,r){var n,t=r.target;if(!((n=t)instanceof Sn(n).Element))return null;var i=ct(t,function(e){return"["+Dn.contextId+'="'+e+'"]'}(e));return i&&Pn(i)?i:null}function dt(e){e.preventDefault()}function st(e){var r=e.expected,n=e.phase,t=e.isLockActive;e.shouldWarn;return!!t()&&r===n}function pt(e){var r=e.lockAPI,n=e.store,t=e.registry,i=e.draggableId;if(r.isClaimed())return!1;var a=t.draggable.findById(i);return!!a&&(!!a.options.isEnabled&&!!Xr(n.getState(),i))}function ft(e){var r=e.lockAPI,n=e.contextId,t=e.store,i=e.registry,o=e.draggableId,l=e.forceSensorStop,c=e.sourceEvent;if(!pt({lockAPI:r,store:t,registry:i,draggableId:o}))return null;var u=i.draggable.getById(o),d=function(e,r){var n="["+xn.contextId+'="'+e+'"]',t=Y(j(document.querySelectorAll(n)),(function(e){return e.getAttribute(xn.id)===r}));return t&&Pn(t)?t:null}(n,u.descriptor.id);if(!d)return null;if(c&&!u.options.canDragInteractiveElements&&it(d,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 I=function(e,r){st({expected:e,phase:f,isLockActive:b,shouldWarn:!0})&&t.dispatch(r())}.bind(null,"DRAGGING");function y(e){function n(){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:dt,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(a)}n(),t.dispatch(br({reason:r}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&h(!1)),t.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),f="DRAGGING",(0,a.Z)({isActive:function(){return st({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 st({expected:"PRE_DRAG",phase:f,isLockActive:b,shouldWarn:!1})},shouldRespectForcePress:m,fluidLift:function(e){var r=(0,s.Z)((function(e){I((function(){return sr({client:e})}))})),n=y({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return r.cancel()},actions:{move:r}});return(0,a.Z)({},n,{move:r})},snapLift:function(){var e={moveUp:function(){return I(pr)},moveRight:function(){return I(gr)},moveDown:function(){return I(fr)},moveLeft:function(){return I(vr)}};return y({liftActionArgs:{id:o,clientSelection:at(d),movementMode:"SNAP"},cleanup:g,actions:e})},abort:function(){st({expected:"PRE_DRAG",phase:f,isLockActive:b,shouldWarn:!0})&&r.release()}}}var gt=[function(e){var r=(0,t.useRef)(Xn),n=(0,t.useRef)(g),i=(0,c.Ye)((function(){return{eventName:"mousedown",fn:function(r){if(!r.defaultPrevented&&0===r.button&&!(r.ctrlKey||r.metaKey||r.shiftKey||r.altKey)){var t=e.findClosestDraggableId(r);if(t){var i=e.tryGetLock(t,l,{sourceEvent:r});if(i){r.preventDefault();var a={x:r.clientX,y:r.clientY};n.current(),s(i,a)}}}}}}),[e]),a=(0,c.Ye)((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(r){if(!r.defaultPrevented){var n=e.findClosestDraggableId(r);if(n){var t=e.findOptionsForDraggable(n);t&&(t.shouldRespectForcePress||e.canGetLock(n)&&r.preventDefault())}}}}}),[e]),o=(0,c.I4)((function(){n.current=v(window,[a,i],{passive:!1,capture:!0})}),[a,i]),l=(0,c.I4)((function(){"IDLE"!==r.current.type&&(r.current=Xn,n.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]),d=(0,c.I4)((function(){var e=Kn({cancel:u,completed:l,getPhase:function(){return r.current},setPhase:function(e){r.current=e}});n.current=v(window,e,{capture:!0,passive:!1})}),[u,l]),s=(0,c.I4)((function(e,n){"IDLE"!==r.current.type&&h(!1),r.current={type:"PENDING",point:n,actions:e},d()}),[d]);An((function(){return o(),function(){n.current()}}),[o])},function(e){var r=(0,t.useRef)($n),n=(0,c.Ye)((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var t=e.findClosestDraggableId(n);if(t){var a=e.tryGetLock(t,c,{sourceEvent:n});if(a){n.preventDefault();var o=!0,l=a.snapLift();r.current(),r.current=v(window,et(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,[n],{passive:!1,capture:!0})}),[n]);An((function(){return i(),function(){r.current()}}),[i])},function(e){var r=(0,t.useRef)(rt),n=(0,t.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 t=e.findClosestDraggableId(r);if(t){var i=e.tryGetLock(t,u,{sourceEvent:r});if(i){var a=r.touches[0],o={x:a.clientX,y:a.clientY};n.current(),f(i,o)}}}}}}),[e]),l=(0,c.I4)((function(){n.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(rt),n.current(),l())}),[l,a]),d=(0,c.I4)((function(){var e=r.current;
1u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),s=(0,c.I4)((function(){var e={capture:!0,passive:!1},r={cancel:d,completed:u,getPhase:i},t=v(window,function(e){var r=e.cancel,n=e.completed,t=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=t();if("DRAGGING"===n.type){n.hasMoved=!0;var i=e.touches[0],a={x:i.clientX,y:i.clientY};e.preventDefault(),n.actions.move(a)}else r()}},{eventName:"touchend",fn:function(e){var i=t();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):r()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===t().type?(e.preventDefault(),r()):r()}},{eventName:"touchforcechange",fn:function(e){var n=t();"IDLE"===n.type&&h(!1);var i=e.touches[0];if(i&&i.force>=.15){var a=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return a?n.hasMoved?void e.preventDefault():void r():void e.preventDefault();a&&r()}}},{eventName:qn,fn:r}]}(r),e),a=v(window,function(e){var r=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:r},{eventName:"resize",fn:r},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),r()):r()}},{eventName:qn,fn:r}]}(r),e);n.current=function(){t(),a()}}),[d,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 n=setTimeout(p,120);a({type:"PENDING",point:r,actions:e,longPressTimerId:n}),s()}),[s,i,a,p]);An((function(){return l(),function(){n.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(rt))}}),[i,l,a]),An((function(){return v(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function vt(e){var r=e.contextId,n=e.store,i=e.registry,a=e.customSensors,o=e.enableDefaultSensors,l=[].concat(o?gt:[],a||[]),u=(0,t.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 n={abandon:r};return e=n,n},release:r,tryAbandon:function(){e&&(e.abandon(),r())}}}()}))[0],d=(0,c.I4)((function(e,r){e.isDragging&&!r.isDragging&&u.tryAbandon()}),[u]);An((function(){var e=n.getState();return n.subscribe((function(){var r=n.getState();d(e,r),e=r}))}),[u,n,d]),An((function(){return u.tryAbandon}),[u.tryAbandon]);var s=(0,c.I4)((function(e){return pt({lockAPI:u,registry:i,store:n,draggableId:e})}),[u,i,n]),p=(0,c.I4)((function(e,t,a){return ft({lockAPI:u,registry:i,contextId:r,store:n,draggableId:e,forceSensorStop:t,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})}),[r,u,i,n]),f=(0,c.I4)((function(e){return function(e,r){var n=ut(e,r);return n?n.getAttribute(Dn.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"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[u,n]),m=(0,c.I4)(u.isClaimed,[u]),b=(0,c.Ye)((function(){return{canGetLock:s,tryGetLock:p,findClosestDraggableId:f,findOptionsForDraggable:g,tryReleaseLock:v,isLockClaimed:m}}),[s,p,f,g,v,m]);Un();for(var I=0;I<l.length;I++)l[I](b)}function mt(e){return e.current||h(!1),e.current}function bt(e){var r=e.contextId,n=e.setCallbacks,i=e.sensors,u=e.nonce,d=e.dragHandleUsageInstructions,s=(0,t.useRef)(null);Hn();var p=Yn(e),f=(0,c.I4)((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(p.current)}),[p]),g=function(e){var r=(0,c.Ye)((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=(0,t.useRef)(null);return(0,t.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=r,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,a.Z)(e.style,Mn),Gn().appendChild(e),function(){setTimeout((function(){var r=Gn();r.contains(e)&&r.removeChild(e),e===n.current&&(n.current=null)}))}}),[r]),(0,c.I4)((function(e){var r=n.current;r&&(r.textContent=e)}),[])}(r),v=function(e){var r=e.contextId,n=e.text,i=kn("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,t.useEffect)((function(){var e=document.createElement("div");return e.id=a,e.textContent=n,e.style.display="none",Gn().appendChild(e),function(){var r=Gn();r.contains(e)&&r.removeChild(e)}}),[a,n]),a}({contextId:r,text:d}),m=Nn(r,u),b=(0,c.I4)((function(e){mt(s).dispatch(e)}),[]),h=(0,c.Ye)((function(){return(0,o.DE)({publishWhileDragging:or,updateDroppableScroll:cr,updateDroppableIsEnabled:ur,updateDroppableIsCombine
1Enabled:dr,collectionStarting:lr},b)}),[b]),I=function(){var e=(0,c.Ye)(Ln,[]);return(0,t.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),y=(0,c.Ye)((function(){return Jr(I,h)}),[I,h]),D=(0,c.Ye)((function(){return yn((0,a.Z)({scrollWindow:Kr,scrollDroppable:y.scrollDroppable},(0,o.DE)({move:sr},b)))}),[y.scrollDroppable,b]),x=function(e){var r=(0,t.useRef)({}),n=(0,t.useRef)(null),i=(0,t.useRef)(null),a=(0,t.useRef)(!1),o=(0,c.I4)((function(e,n){var t={id:e,focus:n};return r.current[e]=t,function(){var n=r.current;n[e]!==t&&delete n[e]}}),[]),l=(0,c.I4)((function(r){var n=On(e,r);n&&n!==document.activeElement&&n.focus()}),[e]),u=(0,c.I4)((function(e,r){n.current===e&&(n.current=r)}),[]),d=(0,c.I4)((function(){i.current||a.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=n.current;e&&l(e)})))}),[l]),s=(0,c.I4)((function(e){n.current=null;var r=document.activeElement;r&&r.getAttribute(Dn.draggableId)===e&&(n.current=e)}),[]);return An((function(){return a.current=!0,function(){a.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),(0,c.Ye)((function(){return{register:o,tryRecordFocus:s,tryRestoreFocusRecorded:d,tryShiftRecord:u}}),[o,s,d,u])}(r),E=(0,c.Ye)((function(){return Hr({announce:g,autoScroller:D,dimensionMarshal:y,focusMarshal:x,getResponders:f,styleMarshal:m})}),[g,D,y,x,f,m]);s.current=E;var w=(0,c.I4)((function(){var e=mt(s);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),C=(0,c.I4)((function(){var e=mt(s).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n((0,c.Ye)((function(){return{isDragging:C,tryAbort:w}}),[C,w]));var A=(0,c.I4)((function(e){return Xr(mt(s).getState(),e)}),[]),B=(0,c.I4)((function(){return ke(mt(s).getState())}),[]),R=(0,c.Ye)((function(){return{marshal:y,focus:x,contextId:r,canLift:A,isMovementAllowed:B,dragHandleUsageInstructionsId:v,registry:I}}),[r,y,v,x,A,B,I]);return vt({contextId:r,store:E,registry:I,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,t.useEffect)((function(){return w}),[w]),t.createElement(Wn.Provider,{value:R},t.createElement(l.zt,{context:Tn,store:E},e.children))}var ht=0;function It(e){var r=(0,c.Ye)((function(){return""+ht++}),[]),n=e.dragHandleUsageInstructions||w;return t.createElement(I,null,(function(i){return t.createElement(bt,{nonce:e.nonce,contextId:r,setCallbacks:i,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var yt=function(e){return function(r){return e===r}},Dt=yt("scroll"),xt=yt("auto"),Et=(yt("visible"),function(e,r){return r(e.overflowX)||r(e.overflowY)}),wt=function(e){var r=window.getComputedStyle(e),n={overflowX:r.overflowX,overflowY:r.overflowY};return Et(n,Dt)||Et(n,xt)},Ct=function e(r){return null==r||r===document.body||r===document.documentElement?null:wt(r)?r:e(r.parentElement)},At=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Bt=function e(r){return!!r&&("fixed"===window.getComputedStyle(r).position||e(r.parentElement))},Rt=function(e){return{closestScrollable:Ct(e),isFixedOnPage:Bt(e)}},Nt=function(e){var r=e.ref,n=e.descriptor,t=e.env,i=e.windowScroll,a=e.direction,o=e.isDropDisabled,l=e.isCombineEnabled,c=e.shouldClipSubject,d=t.closestScrollable,s=function(e,r){var n=(0,u.iz)(e);if(!r)return n;if(e!==r)return n;var t=n.paddingBox.top-r.scrollTop,i=n.paddingBox.left-r.scrollLeft,a=t+r.scrollHeight,o={top:t,right:i+r.scrollWidth,bottom:a,left:i},l=(0,u.jn)(o,n.border);return(0,u.dO)({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})}(r,d),p=(0,u.oc)(s,i),f=function(){if(!d)return null;var e=(0,u.iz)(d),r={scrollHeight:d.scrollHeight,scrollWidth:d.scrollWidth};return{client:e,page:(0,u.oc)(e,i),scroll:At(d),scrollSize:r,shouldClipSubject:c}}();return function(e){var r=e.descriptor,n=e.isEnabled,t=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,n=Yr({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:r.paddingBox.height,width:r.paddingBox.width});return{pageMarginBox:c.page.marginBox,frameClient:r,scrollSize:e,shouldClipSubject:c.shouldClipSubject,scroll:{initial:c.scroll,current:c.scroll,max:n,diff:{value:R,displacement:R}}}}(),d="vertical"===a?le:ce;
1return{descriptor:r,isCombineEnabled:t,isFixedOnPage:i,axis:d,isEnabled:n,client:o,page:l,frame:u,subject:W({page:l,withPlaceholder:null,axis:d,frame:u})}}({descriptor:n,isEnabled:!o,isCombineEnabled:l,isFixedOnPage:t.isFixedOnPage,direction:a,client:s,page:p,closest:f})},St={passive:!1},Pt={passive:!0},Ot=function(e){return e.shouldPublishImmediately?St:Pt};function Lt(e){var r=(0,t.useContext)(e);return r||h(!1),r}var Tt=function(e){return e&&e.env.closestScrollable||null};function Gt(){}var Mt={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},_t=function(e){var r=e.isAnimatingOpenOnMount,n=e.placeholder,t=e.animate,i=function(e){var r=e.isAnimatingOpenOnMount,n=e.placeholder,t=e.animate;return r||"close"===t?Mt:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:r,placeholder:n,animate:t});return{display:n.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"!==t?Er.placeholder:null}};var Ft=t.memo((function(e){var r=(0,t.useRef)(null),n=(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,t.useState)("open"===e.animate),d=u[0],s=u[1];(0,t.useEffect)((function(){return d?"open"!==i?(n(),s(!1),Gt):r.current?Gt:(r.current=setTimeout((function(){r.current=null,s(!1)})),n):Gt}),[i,d,n]);var p=(0,c.I4)((function(e){"height"===e.propertyName&&(a(),"close"===i&&o())}),[i,o,a]),f=_t({isAnimatingOpenOnMount:d,animate:e.animate,placeholder:e.placeholder});return t.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":l,onTransitionEnd:p,ref:e.innerRef})})),kt=t.createContext(null);var Wt=function(e){function r(){for(var r,n=arguments.length,t=new Array(n),i=0;i<n;i++)t[i]=arguments[i];return(r=e.call.apply(e,[this].concat(t))||this).state={isVisible:Boolean(r.props.on),data:r.props.on,animate:r.props.shouldAnimate&&r.props.on?"open":"none"},r.onClose=function(){"close"===r.state.animate&&r.setState({isVisible:!1})},r}return(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}(t.PureComponent),Ut=5e3,Zt=4500,Ht=function(e,r){return r?Er.drop(r.duration):e?Er.snap:Er.fluid},Yt=function(e,r){return e?r?yr.drop:yr.combining:null};function jt(e){return"DRAGGING"===e.type?function(e){var r=e.dimension.client,n=e.offset,t=e.combineWith,i=e.dropping,a=Boolean(t),o=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),l=Boolean(i),c=l?Ar(n,a):Cr(n);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:Ht(o,i),transform:c,opacity:Yt(a,l),zIndex:l?Zt:Ut,pointerEvents:"none"}}(e):{transform:Cr((r=e).offset),transition:r.shouldAnimateDisplacement?null:"none"};var r}function Vt(e){var r=kn("draggable"),n=e.descriptor,i=e.registry,a=e.getDraggableRef,o=e.canDragInteractiveElements,l=e.shouldRespectForcePress,d=e.isEnabled,s=(0,c.Ye)((function(){return{canDragInteractiveElements:o,shouldRespectForcePress:l,isEnabled:d}}),[o,d,l]),p=(0,c.I4)((function(e){var r=a();return r||h(!1),function(e,r,n){void 0===n&&(n=R);var t=window.getComputedStyle(r),i=r.getBoundingClientRect(),a=(0,u.Oq)(i,t),o=(0,u.oc)(a,n);return{descriptor:e,placeholder:{client:a,tagName:r.tagName.toLowerCase(),display:t.display},displaceBy:{x:a.marginBox.width,y:a.marginBox.height},client:a,page:o}}(n,r,e)}),[n,a]),f=(0,c.Ye)((function(){return{uniqueId:r,descriptor:n,options:s,getDimension:p}}),[n,p,s,r]),g=(0,t.useRef)(f),v=(0,t.useRef)(!0);An((function(){return i.draggable.register(g.current),function(){return i.draggable.unregister(g.current)}}),[i.draggable]),An((function(){if(v.current)v.current=!1;else{var e=g.current;g.current=f,i.draggable.update(f,e)}}),[f,i.draggable])}function zt(e,r,n){Zn()}function qt(e){e.preventDefault()}var Jt=function(e,r){return e===r},Xt=function(e){var r=e.combine,n=e.destination;return n?n.droppableId:r?r.droppableId:null};function Kt(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,comb
1ineWith:null}}var $t={mapped:{type:"SECONDARY",offset:R,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Kt(null)}};var Qt={dropAnimationFinished:hr},ei=(0,l.$j)((function(){var e=function(){var e=(0,d.Z)((function(e,r){return{x:e,y:r}})),r=(0,d.Z)((function(e,r,n,t,i){return{isDragging:!0,isClone:r,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:n,combineWith:t,combineTargetFor:null}})),n=(0,d.Z)((function(e,n,t,i,a,o,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:a,combineWith:o,mode:n,offset:e,dimension:t,forceShouldAnimate:l,snapshot:r(n,i,a,o,null)}}}));return function(t,i){if(t.isDragging){if(t.critical.draggable.id!==i.draggableId)return null;var a=t.current.client.offset,o=t.dimensions.draggables[i.draggableId],l=_e(t.impact),c=(d=t.impact).at&&"COMBINE"===d.at.type?d.at.combine.draggableId:null,u=t.forceShouldAnimate;return n(e(a.x,a.y),t.movementMode,o,i.isClone,l,c,u)}var d;if("DROP_ANIMATING"===t.phase){var s=t.completed;if(s.result.draggableId!==i.draggableId)return null;var p=i.isClone,f=t.dimensions.draggables[i.draggableId],g=s.result,v=g.mode,m=Xt(g),b=function(e){return e.combine?e.combine.draggableId:null}(g),h={duration:t.dropDuration,curve:Ir,moveTo:t.newHomeClientOffset,opacity:b?yr.drop:null,scale:b?Dr.drop:null};return{mapped:{type:"DRAGGING",offset:t.newHomeClientOffset,dimension:f,dropping:h,draggingOver:m,combineWith:b,mode:v,forceShouldAnimate:null,snapshot:r(v,p,m,b,h)}}}return null}}(),r=function(){var e=(0,d.Z)((function(e,r){return{x:e,y:r}})),r=(0,d.Z)(Kt),n=(0,d.Z)((function(e,n,t){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:t,snapshot:r(n)}}})),t=function(e){return e?n(R,e,!0):null},i=function(r,i,a,o){var l=a.displaced.visible[r],c=Boolean(o.inVirtualList&&o.effected[r]),u=$(a),d=u&&u.draggableId===r?i:null;if(!l){if(!c)return t(d);if(a.displaced.invisible[r])return null;var s=O(o.displacedBy.point),p=e(s.x,s.y);return n(p,d,!0)}if(c)return t(d);var f=a.displacedBy.point,g=e(f.x,f.y);return n(g,d,l.shouldAnimate)};return function(e,r){if(e.isDragging)return e.critical.draggable.id===r.draggableId?null:i(r.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===r.draggableId?null:i(r.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(n,t){return e(n,t)||r(n,t)||$t}}),Qt,null,{context:Tn,pure:!0,areStatePropsEqual:Jt})((function(e){var r=(0,t.useRef)(null),n=(0,c.I4)((function(e){r.current=e}),[]),i=(0,c.I4)((function(){return r.current}),[]),a=Lt(Wn),o=a.contextId,l=a.dragHandleUsageInstructionsId,u=a.registry,d=Lt(kt),s=d.type,p=d.droppableId,f=(0,c.Ye)((function(){return{id:e.draggableId,index:e.index,type:s,droppableId:p}}),[e.draggableId,e.index,s,p]),g=e.children,v=e.draggableId,m=e.isEnabled,b=e.shouldRespectForcePress,h=e.canDragInteractiveElements,I=e.isClone,y=e.mapped,D=e.dropAnimationFinished;zt(),Un(),I||Vt((0,c.Ye)((function(){return{descriptor:f,registry:u,getDraggableRef:i,canDragInteractiveElements:h,shouldRespectForcePress:b,isEnabled:m}}),[f,u,i,h,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:qt}:null}),[o,l,v,m]),E=(0,c.I4)((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&D()}),[D,y]),w=(0,c.Ye)((function(){var e=jt(y),r="DRAGGING"===y.type&&y.dropping?E:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":v,style:e,onTransitionEnd:r},dragHandleProps:x}}),[o,x,v,y,E,n]),C=(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(w,y.snapshot,C)}));function ri(e){return Lt(kt).isUsingCloneFor!==e.draggableId||e.isClone?t.createElement(ei,e):null}function ni(e){var r="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),i=Boolean(e.shouldRespectForcePress);return t.createElement(ri,(0,a.Z)({},e,{isClone:!1,isEnabled:r,canDragInteractiveElements:n,shouldRespectForcePress:i}))}var ti=function(e,r){return e===r.droppable.type},ii=function(e,r){return r.draggables[e.draggable.id]},ai={updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}};var oi={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombine
1Enabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||h(!1),document.body}},li=(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}),n=(0,d.Z)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),t=(0,d.Z)((function(t,i,a,o,l,c){var u=l.descriptor.id;if(l.descriptor.droppableId===t){var d=c?{render:c,dragging:n(l.descriptor)}:null,s={isDraggingOver:a,draggingOverWith:a?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:s,useClone:d}}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(n,i){var a=i.droppableId,o=i.type,l=!i.isDropDisabled,c=i.renderClone;if(n.isDragging){var u=n.critical;if(!ti(o,u))return r;var d=ii(u,n.dimensions),s=_e(n.impact)===a;return t(a,l,s,s,d,c)}if("DROP_ANIMATING"===n.phase){var p=n.completed;if(!ti(o,p.critical))return r;var f=ii(p.critical,n.dimensions);return t(a,l,Xt(p.result)===a,_e(p.impact)===a,f,c)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var g=n.completed;if(!ti(o,g.critical))return r;var v=_e(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}}),ai,null,{context:Tn,pure:!0,areStatePropsEqual:Jt})((function(e){var r=(0,t.useContext)(Wn);r||h(!1);var n=r.contextId,i=r.isMovementAllowed,a=(0,t.useRef)(null),o=(0,t.useRef)(null),l=e.children,u=e.droppableId,f=e.type,g=e.mode,v=e.direction,m=e.ignoreContainerClipping,b=e.isDropDisabled,I=e.isCombineEnabled,y=e.snapshot,D=e.useClone,x=e.updateViewportMaxScroll,E=e.getContainerForClone,w=(0,c.I4)((function(){return a.current}),[]),C=(0,c.I4)((function(e){a.current=e}),[]),A=((0,c.I4)((function(){return o.current}),[]),(0,c.I4)((function(e){o.current=e}),[]));Zn();var B=(0,c.I4)((function(){i()&&x({maxScroll:Vr()})}),[i,x]);!function(e){var r=(0,t.useRef)(null),n=Lt(Wn),i=kn("droppable"),a=n.registry,o=n.marshal,l=Yn(e),u=(0,c.Ye)((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),p=(0,t.useRef)(u),f=(0,c.Ye)((function(){return(0,d.Z)((function(e,n){r.current||h(!1);var t={x:e,y:n};o.updateDroppableScroll(u.id,t)}))}),[u.id,o]),g=(0,c.I4)((function(){var e=r.current;return e&&e.env.closestScrollable?At(e.env.closestScrollable):R}),[]),v=(0,c.I4)((function(){var e=g();f(e.x,e.y)}),[g,f]),m=(0,c.Ye)((function(){return(0,s.Z)(v)}),[v]),b=(0,c.I4)((function(){var e=r.current,n=Tt(e);e&&n||h(!1),e.scrollOptions.shouldPublishImmediately?v():m()}),[m,v]),I=(0,c.I4)((function(e,t){r.current&&h(!1);var i=l.current,a=i.getDroppableRef();a||h(!1);var o=Rt(a),c={ref:a,descriptor:u,env:o,scrollOptions:t};r.current=c;var d=Nt({ref:a,descriptor:u,env:o,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),s=o.closestScrollable;return s&&(s.setAttribute(wn.contextId,n.contextId),s.addEventListener("scroll",b,Ot(c.scrollOptions))),d}),[n.contextId,u,b,l]),y=(0,c.I4)((function(){var e=r.current,n=Tt(e);return e&&n||h(!1),At(n)}),[]),D=(0,c.I4)((function(){var e=r.current;e||h(!1);var n=Tt(e);r.current=null,n&&(m.cancel(),n.removeAttribute(wn.contextId),n.removeEventListener("scroll",b,Ot(e.scrollOptions)))}),[b,m]),x=(0,c.I4)((function(e){var n=r.current;n||h(!1);var t=Tt(n);t||h(!1),t.scrollTop+=e.y,t.scrollLeft+=e.x}),[]),E=(0,c.Ye)((function(){return{getDimensionAndWatchScroll:I,getScrollWhileDragging:y,dragStopped:D,scroll:x}}),[D,I,y,x]),w=(0,c.Ye)((function(){return{uniqueId:i,descriptor:u,callbacks:E}}),[E,u,i]);An((function(){return p.current=w.descriptor,a.droppable.register(w),function(){r.current&&D(),a.droppable.unregister(w)}}),[E,u,D,w,o,a.droppable]),An((function(){r.current&&o.updateDroppableIsEnabled(p.current.id,!e.isDropDisabled)}),[e.isDropDisabled,o]),An((function(){r.current&&o.updateDroppableIsCombine
1Enabled(p.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,o])}({droppableId:u,type:f,mode:g,direction:v,isDropDisabled:b,isCombineEnabled:I,ignoreContainerClipping:m,getDroppableRef:w});var N=t.createElement(Wt,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var r=e.onClose,i=e.data,a=e.animate;return t.createElement(Ft,{placeholder:i,onClose:r,innerRef:A,animate:a,contextId:n,onTransitionEnd:B})})),S=(0,c.Ye)((function(){return{innerRef:C,placeholder:N,droppableProps:{"data-rbd-droppable-id":u,"data-rbd-droppable-context-id":n}}}),[n,u,N,C]),P=D?D.dragging.draggableId:null,O=(0,c.Ye)((function(){return{droppableId:u,type:f,isUsingCloneFor:P}}),[u,P,f]);return t.createElement(kt.Provider,{value:O},l(S,y),function(){if(!D)return null;var e=D.dragging,r=D.render,n=t.createElement(ri,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,t){return r(n,t,e)}));return p.createPortal(n,E())}())}));li.defaultProps=oi}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.