1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4354],{35653:(e,t,r)=>{r.d(t,{JY:()=>ri,gL:()=>rW,sx:()=>rh});var n=r(31079),l=r(16422),i=r(30627),a=r(69725),o=r(34290),d=r(54138),s=r(51302),u=r(92220),c=r(62174);function p(e,t){}p.bind(null,"warn");p.bind(null,"error");function f(){}function g(e,t,r){let n=t.map(t=>{var n;let l=(n=t.options,{...r,...n});return e.addEventListener(t.eventName,t.fn,l),function(){e.removeEventListener(t.eventName,t.fn,l)}});return function(){n.forEach(e=>{e()})}}class m extends Error{}function b(e,t){throw new m("Invariant failed")}m.prototype.toString=function(){return this.message};class h extends n.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=f,this.onWindowError=e=>{let t=this.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof m&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=g(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(e instanceof m)return void this.setState({});throw e}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}let y=(e,t)=>{let r=e.droppableId===t.droppableId,n=e.index+1,l=t.index+1;return r?` 2 You have moved the item from position ${n} 3 to position ${l} 4 `:` 5 You have moved the item from position ${n} 6 in list ${e.droppableId} 7 to list ${t.droppableId} 8 in position ${l} 9 `},I=(e,t,r)=>t.droppableId===r.droppableId?` 10 The item ${e} 11 has been combined with ${r.draggableId}`:` 12 The item ${e} 13 in list ${t.droppableId} 14 has been combined with ${r.draggableId} 15 in list ${r.droppableId} 16 `,v=e=>` 17 The item has returned to its starting position 18 of ${e.index+1} 19`,x={dragHandleUsageInstructions:` 20 Press space bar to start a drag. 21 When dragging you can use the arrow keys to move the item around and escape to cancel. 22 Some screen readers may require you to be in focus mode or to use your pass through key 23`,onDragStart:e=>` 24 You have lifted an item in position ${e.source.index+1} 25`,onDragUpdate:e=>{let t=e.destination;if(t)return y(e.source,t);let r=e.combine;return r?I(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},onDragEnd:e=>{if("CANCEL"===e.reason)return` 26 Movement cancelled. 27 ${v(e.source)} 28 `;let t=e.destination,r=e.combine;return t?` 29 You have dropped the item. 30 ${y(e.source,t)} 31 `:r?` 32 You have dropped the item. 33 ${I(e.draggableId,e.source,r)} 34 `:` 35 The item has been dropped while not over a drop area. 36 ${v(e.source)} 37 `}},D={x:0,y:0},E=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),A=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),N=(e,t)=>e.x===t.x&&e.y===t.y,C=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),R=(e,t,r=0)=>"x"===e?{x:t,y:r}:{x:r,y:t},P=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),w=(e,t)=>Math.min(...t.map(t=>P(e,t))),O=e=>t=>({x:e(t.x),y:e(t.y)}),S=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),B=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}];var G=({page:e,withPlaceholder:t,axis:r,frame:n})=>{let l=((e,t)=>t&&t.shouldClipSubject?((e,t)=>{let r=(0,d.l)({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r})(t.pageMarginBox,e):(0,d.l)(e))(((e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e)(((e,t)=>t?S(e,t.scroll.diff.displacement):e)(e.marginBox,n),r,t),n);return{page:e,withPlaceholder:t,active:l}},L=(e,t)=>{e.frame||b();let r=e.frame,n=A(t,r.scroll.initial),l=C(n),i={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:l},max:r.scroll.max}},a=G({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:a}};let T=(0,s.A)(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),_=(0,s.A)(e=>e.reduce((e,t)=>
37(e[t.descriptor.id]=t,e),{})),M=(0,s.A)(e=>Object.values(e)),F=(0,s.A)(e=>Object.values(e));var k=(0,s.A)((e,t)=>F(t).filter(t=>e===t.descriptor.droppableId).sort((e,t)=>e.descriptor.index-t.descriptor.index));function $(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function W(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var U=(0,s.A)((e,t)=>t.filter(t=>t.descriptor.id!==e.descriptor.id)),H=(e,t)=>e.descriptor.droppableId===t.descriptor.id;let V={point:D,value:0},K={invisible:{},visible:{},all:[]},j={displaced:K,displacedBy:V,at:null};var z=(e,t)=>r=>e<=r&&r<=t,q=e=>{let t=z(e.top,e.bottom),r=z(e.left,e.right);return n=>{if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;let l=t(n.top)||t(n.bottom),i=r(n.left)||r(n.right);if(l&&i)return!0;let a=n.top<e.top&&n.bottom>e.bottom,o=n.left<e.left&&n.right>e.right;return!!a&&!!o||a&&i||o&&l}},Y=e=>{let t=z(e.top,e.bottom),r=z(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)};let J={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},X={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Q=({target:e,destination:t,viewport:r,withDroppableDisplacement:n,isVisibleThroughFrameFn:l})=>{let i=n?((e,t)=>S(e,t.frame?t.frame.scroll.diff.displacement:D))(e,t):e;return((e,t,r)=>!!t.subject.active&&r(t.subject.active)(e))(i,t,l)&&l(r)(i)},Z=e=>Q({...e,isVisibleThroughFrameFn:Y});function ee({afterDragging:e,destination:t,displacedBy:r,viewport:n,forceShouldAnimate:l,last:i}){return e.reduce(function(e,a){let o=function(e,t){let r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return(0,d.l)((0,d.fT)(r,n))}(a,r),s=a.descriptor.id;if(e.all.push(s),!Q({target:o,destination:t,viewport:n,withDroppableDisplacement:!0,isVisibleThroughFrameFn:q}))return e.invisible[a.descriptor.id]=!0,e;let u=((e,t,r)=>{if("boolean"==typeof r)return r;if(!t)return!0;let{invisible:n,visible:l}=t;if(n[e])return!1;let i=l[e];return!i||i.shouldAnimate})(s,i,l);return e.visible[s]={draggableId:s,shouldAnimate:u},e},{all:[],visible:{},invisible:{}})}function et({insideDestination:e,inHomeList:t,displacedBy:r,destination:n}){let l=function(e,t){if(!e.length)return 0;let r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(e,{inHomeList:t});return{displaced:K,displacedBy:r,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function er({draggable:e,insideDestination:t,destination:r,viewport:n,displacedBy:l,last:i,index:a,forceShouldAnimate:o}){let d=H(e,r);if(null==a)return et({insideDestination:t,inHomeList:d,displacedBy:l,destination:r});let s=t.find(e=>e.descriptor.index===a);if(!s)return et({insideDestination:t,inHomeList:d,displacedBy:l,destination:r});let u=U(e,t),c=t.indexOf(s);return{displaced:ee({afterDragging:u.slice(c),destination:r,displacedBy:l,last:i,viewport:n.frame,forceShouldAnimate:o}),displacedBy:l,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function en(e,t){return!!t.effected[e]}let el=(e,t)=>
37t.margin[e.start]+t.borderBox[e.size]/2,ei=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,ea=({axis:e,moveRelativeTo:t,isMoving:r})=>R(e.line,t.marginBox[e.end]+el(e,r),ei(e,t.marginBox,r)),eo=({axis:e,moveRelativeTo:t,isMoving:r})=>R(e.line,t.marginBox[e.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(e,r),ei(e,t.marginBox,r));var ed=(e,t)=>{let r=e.frame;return r?E(t,r.scroll.diff.displacement):t},es=e=>{let t=(({impact:e,draggable:t,droppable:r,draggables:n,afterCritical:l})=>{let i=t.page.borderBox.center,a=e.at;return r&&a?"REORDER"===a.type?(({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:l})=>{let i=k(n.descriptor.id,r),a=t.page,o=n.axis;if(!i.length)return(({axis:e,moveInto:t,isMoving:r})=>R(e.line,t.contentBox[e.start]+el(e,r),ei(e,t.contentBox,r)))({axis:o,moveInto:n.page,isMoving:a});let{displaced:s,displacedBy:u}=e,c=s.all[0];if(c){let e=r[c];return en(c,l)?eo({axis:o,moveRelativeTo:e.page,isMoving:a}):eo({axis:o,moveRelativeTo:(0,d.cY)(e.page,u.point),isMoving:a})}let p=i[i.length-1];return p.descriptor.id===t.descriptor.id?a.borderBox.center:en(p.descriptor.id,l)?ea({axis:o,moveRelativeTo:(0,d.cY)(p.page,C(l.displacedBy.point)),isMoving:a}):ea({axis:o,moveRelativeTo:p.page,isMoving:a})})({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:l}):(({afterCritical:e,impact:t,draggables:r})=>{let n=W(t);n||b();let l=n.draggableId;return E(r[l].page.borderBox.center,(({displaced:e,afterCritical:t,combineWith:r,displacedBy:n})=>{let l=!!(e.visible[r]||e.invisible[r]);return en(r,t)?l?D:C(n.point):l?n.point:D})({displaced:t.displaced,afterCritical:e,combineWith:l,displacedBy:t.displacedBy}))})({impact:e,draggables:n,afterCritical:l}):i})(e),r=e.droppable;return r?ed(r,t):t},eu=(e,t)=>{let r=A(t,e.scroll.initial),n=C(r);return{frame:(0,d.l)({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function ec(e,t){return e.map(e=>t[e])}var ep=({pageBorderBoxCenter:e,draggable:t,viewport:r})=>{let n=A(E(r.scroll.diff.displacement,e),t.page.borderBox.center);return E(t.client.borderBox.center,n)},ef=({draggable:e,destination:t,newPageBorderBoxCenter:r,viewport:n,withDroppableDisplacement:l,onlyOnMainAxis:i=!1})=>{let a=A(r,e.page.borderBox.center),o={target:S(e.page.borderBox,a),destination:t,withDroppableDisplacement:l,viewport:n};return i?(e=>{let t;return Q({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{let r=z(e.top,e.bottom),n=z(e.left,e.right);return e=>t===J?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)})})})(o):Z(o)};let eg=e=>{let t=e.subject.active;return t||b(),t},em=(e,t)=>{let r=e.page.borderBox.center;return en(e.descriptor.id,t)?A(r,t.displacedBy.point):r};var eb=(0,s.A)(function(e,t){let r=t[e.line];return{value:r,point:R(e.line,r)}});let eh=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),ey=(e,t,r)=>{let n=e.frame;H(t,e)&&b(),e.subject.withPlaceholder&&b();let l=eb(e.axis,t.displaceBy).point,i=((e,t,r)=>{let n=e.axis;if("virtual"===e.descriptor.mode)return R(n.line,t[n.line]);let l=e.subject.page.contentBox[n.size],i=k(e.descriptor.id,r).reduce((e,t)=>e+t.client.marginBox[n.size],0)+t[n.line]-l;return i<=0?null:R(n.line,i)})(e,l,r),a={placeholderSize:l,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){let t=G({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:t}}let o=i?E(n.scroll.max,i):n.scroll.max,d=eh(n,o),s=G({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:d});return{...e,subject:s,frame:d}};var eI=e=>{let t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null};function ev(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function ex(e){let t=z(e.top,e.bottom),r=z(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}let eD=(e,t)=>(0,d.l)(S(e,t));function eE({displaced:e,id:t}){return!!(e.visible[t]||e.invisible[t])}var eA=({pageOffset:e,draggable:t,draggables:r,droppables:n,previousImpact:l,viewport:i,afterCritical:a})=>{let o=eD(t.page.borderBox,e),d=function({pageBorderBox:e,draggable:t,droppables:r}){let n=M(r).filter(t=>{if(!t.isEnabled)return!1;let r=t.subject.active;if(!r||!(e.left<r.right)||!(e.right>r.left)||!(e.top<r.bottom)||!(e.bottom>r.top))return!1;if(ex(r)(e.center))return!0;let n=t.axis,l=r.center[n.crossAxisLine],i=e[n.crossAxisStart],a=e[n.crossAxisEnd],o=z(r[n.crossAxisStart],r[n.crossAxisEnd]),d=o(i),s=o(a);return!d&&!s||(d?i<l:a>l)});return n.length?1===n.length?n[0].descriptor.id:function({pageBorderBox:e,draggable:t,candidates:r}){let n=t.page.borderBox.center,l=r.map(t=>{let r=t.axis,l=R(t.axis.line,e.center[r.line],t.page.borderBox.center[r.crossAxisLine]);return{id:t.descriptor.id,distance:P(n,l)}}).sort((e,t)=>
37t.distance-e.distance);return l[0]?l[0].id:null}({pageBorderBox:e,draggable:t,candidates:n}):null}({pageBorderBox:o,draggable:t,droppables:n});if(!d)return j;let s=n[d],u=k(s.descriptor.id,r),c=((e,t)=>{let r=e.frame;return r?eD(t,r.scroll.diff.value):t})(s,o);return(({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:r,destination:n,insideDestination:l,afterCritical:i})=>{if(!n.isCombineEnabled)return null;let a=n.axis,o=eb(n.axis,e.displaceBy),d=o.value,s=t[a.start],u=t[a.end],c=U(e,l).find(e=>{let t=e.descriptor.id,n=e.page.borderBox,l=n[a.size]/4,o=en(t,i),c=eE({displaced:r.displaced,id:t});return o?c?u>n[a.start]+l&&u<n[a.end]-l:s>n[a.start]-d+l&&s<n[a.end]-d-l:c?u>n[a.start]+d+l&&u<n[a.end]+d-l:s>n[a.start]+l&&s<n[a.end]-l});return c?{displacedBy:o,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:c.descriptor.id,droppableId:n.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:c,draggable:t,previousImpact:l,destination:s,insideDestination:u,afterCritical:a})||(({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:r,insideDestination:n,last:l,viewport:i,afterCritical:a})=>{let o=r.axis,d=eb(r.axis,t.displaceBy),s=d.value,u=e[o.start],c=e[o.end],p=U(t,n).find(e=>{let t=e.descriptor.id,r=e.page.borderBox.center[o.line],n=en(t,a),i=eE({displaced:l,id:t});return n?i?c<=r:u<r-s:i?c<=r+s:u<r})||null,f=function({draggable:e,closest:t,inHomeList:r}){return t?r&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:p,inHomeList:H(t,r)});return er({draggable:t,insideDestination:n,destination:r,viewport:i,last:l,displacedBy:d,index:f})})({pageBorderBoxWithDroppableScroll:c,draggable:t,destination:s,insideDestination:u,last:l.displaced,viewport:i,afterCritical:a})},eN=(e,t)=>({...e,[t.descriptor.id]:t}),eC=({state:e,clientSelection:t,dimensions:r,viewport:n,impact:l,scrollJumpRequest:i})=>{let a=n||e.viewport,o=r||e.dimensions,d=t||e.current.client.selection,s=A(d,e.initial.client.selection),u={offset:s,selection:d,borderBoxCenter:E(e.initial.client.borderBoxCenter,s)},c={selection:E(u.selection,a.scroll.current),borderBoxCenter:E(u.borderBoxCenter,a.scroll.current),offset:E(u.offset,a.scroll.diff.value)},p={client:u,page:c};if("COLLECTING"===e.phase)return{...e,dimensions:o,viewport:a,current:p};let f=o.draggables[e.critical.draggable.id],g=l||eA({pageOffset:c.offset,draggable:f,draggables:o.draggables,droppables:o.droppables,previousImpact:e.impact,viewport:
37a,afterCritical:e.afterCritical}),m=(({draggable:e,draggables:t,droppables:r,previousImpact:n,impact:l})=>{let i=(({previousImpact:e,impact:t,droppables:r})=>{let n=eI(e),l=eI(t);if(!n||n===l)return r;let i=r[n];return i.subject.withPlaceholder?eN(r,(e=>{let t=e.subject.withPlaceholder;t||b();let r=e.frame;if(!r){let t=G({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}let n=t.oldFrameMaxScroll;n||b();let l=eh(r,n),i=G({page:e.subject.page,axis:e.axis,frame:l,withPlaceholder:null});return{...e,subject:i,frame:l}})(i)):r})({previousImpact:n,impact:l,droppables:r}),a=eI(l);if(!a)return i;let o=r[a];return H(e,o)||o.subject.withPlaceholder?i:eN(i,ey(o,e,t))})({draggable:f,impact:g,previousImpact:e.impact,draggables:o.draggables,droppables:o.droppables});return{...e,current:p,dimensions:{draggables:o.draggables,droppables:m},impact:g,viewport:a,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null}},eR=({impact:e,viewport:t,draggables:r,destination:n,forceShouldAnimate:l})=>{var i;let a=e.displaced,o=ee({afterDragging:(i=a.all,i.map(e=>r[e])),destination:n,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:l,last:a});return{...e,displaced:o}},eP=({impact:e,draggable:t,droppable:r,draggables:n,viewport:l,afterCritical:i})=>ep({pageBorderBoxCenter:es({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:i}),draggable:t,viewport:l}),ew=({state:e,dimensions:t,viewport:r})=>{"SNAP"!==e.movementMode&&b();let n=e.impact,l=r||e.viewport,i=t||e.dimensions,{draggables:a,droppables:o}=i,d=a[e.critical.draggable.id],s=eI(n);s||b();let u=o[s],c=eR({impact:n,viewport:l,destination:u,draggables:a}),p=eP({impact:c,draggable:d,droppable:u,draggables:a,viewport:l,afterCritical:e.afterCritical});return eC({impact:c,clientSelection:p,state:e,dimensions:i,viewport:l})},eO=({draggable:e,home:t,draggables:r,viewport:n})=>{let l=eb(t.axis,e.displaceBy),i=k(t.descriptor.id,r),a=i.indexOf(e);-1===a&&b();let o=i.slice(a+1),d=o.reduce((e,t)=>(e[t.descriptor.id]=!0,e),{}),s={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:l,effected:d};return{impact:{displaced:ee({afterDragging:o,destination:t,displacedBy:l,last:null,viewport:n.frame,forceShouldAnimate:!1}),displacedBy:l,at:{type:"REORDER",destination:(e=>({index:e.index,droppableId:e.droppableId}))(e.descriptor)}},afterCritical:s}};let eS=e=>{},eB=e=>{},eG=(e,t,r)=>{let n=((e,t)=>({draggables:e.draggables,droppables:eN(e.droppables,t)}))(e.dimensions,t);return"SNAP"!==e.movementMode||r?eC({state:e,dimensions:n}):ew({state:e,dimensions:n})};function eL(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}let eT={phase:"IDLE",completed:null,shouldFlush:!1};var e_=(e=eT,t)=>{if("FLUSH"===t.type)return{...eT,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&b();let{critical:r,clientSelection:n,viewport:l,dimensions:i,movementMode:a}=t.payload,o=i.draggables[r.draggable.id],d=i.droppables[r.droppable.id],s={selection:n,borderBoxCenter:o.client.borderBox.center,offset:D},u={client:s,page:{selection:E(s.selection,l.scroll.initial),borderBoxCenter:E(s.selection,l.scroll.initial),offset:E(s.selection,l.scroll.diff.value)}},c=M(i.droppables).every(e=>!e.isFixedOnPage),{impact:p,afterCritical:f}=eO({draggable:o,home:d,draggables:i.draggables,viewport:l});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:i,initial:u,current:u,isWindowScrollAllowed:c,impact:p,afterCritical:f,onLiftImpact:p,viewport:l,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&b(),{...e,phase:"COLLECTING"});if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&b(),(({state:e,published:t})=>{eS();let r=t.modified.map(t=>L(e.dimensions.droppables[t.droppableId],t.scroll)),n={...e.dimensions.droppables,...T(r)},l=_((({additions:e,updatedDroppables:t,viewport:r})=>{let n=r.scroll.diff.value;return e.map(e=>{let l=E(n,(e=>{let t=e.frame;return t||b(),t})(t[e.descriptor.droppableId]).scroll.diff.value);return(({draggable:e,offset:t,initialWindowScroll:r})=>{let n=(0,d.cY)(e.client,t),l=(0,d.SQ)(n,r);return{...e,placeholder:{...e.placeholder,client:n},client:n,page:l}})({draggable:e,offset:l,initialWindowScroll:r.scroll.initial})})})({additions:t.additions,updatedDroppables:n,viewport:e.viewport})),i={...e.dimensions.draggables,...l};
37t.removals.forEach(e=>{delete i[e]});let a={droppables:n,draggables:i},o=eI(e.impact),s=o?a.droppables[o]:null,{impact:u,afterCritical:c}=eO({draggable:a.draggables[e.critical.draggable.id],home:a.droppables[e.critical.droppable.id],draggables:i,viewport:e.viewport}),p=s&&s.isCombineEnabled?e.impact:u,f=eA({pageOffset:e.current.page.offset,draggable:a.draggables[e.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:p,viewport:e.viewport,afterCritical:c});eB("Processing dynamic changes");let g={...e,phase:"DRAGGING",impact:f,onLiftImpact:u,dimensions:a,afterCritical:c,forceShouldAnimate:!1};return"COLLECTING"===e.phase?g:{...g,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;ev(e)||b();let{client:r}=t.payload;return N(r,e.current.client.selection)?e:eC({state:e,clientSelection:r,impact:"SNAP"===e.movementMode?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"COLLECTING"===e.phase)return eL(e);ev(e)||b();let{id:r,newScroll:n}=t.payload,l=e.dimensions.droppables[r];return l?eG(e,L(l,n),!1):e}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;ev(e)||b();let{id:r,isEnabled:n}=t.payload,l=e.dimensions.droppables[r];return l||b(),l.isEnabled===n&&b(),eG(e,{...l,isEnabled:n},!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;ev(e)||b();let{id:r,isCombineEnabled:n}=t.payload,l=e.dimensions.droppables[r];return l||b(),l.isCombineEnabled===n&&b(),eG(e,{...l,isCombineEnabled:n},!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;ev(e)||b(),e.isWindowScrollAllowed||b();let r=t.payload.newScroll;if(N(e.viewport.scroll.current,r))return eL(e);let n=eu(e.viewport,r);return"SNAP"===e.movementMode?ew({state:e,viewport:n}):eC({state:e,viewport:n})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!ev(e))return e;let r=t.payload.maxScroll;if(N(r,e.viewport.scroll.max))return e;let n={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:n}}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&b();let r=(({state:e,type:t})=>{let r=((e,t)=>{let r=eI(e);return r?t[r]:null})(e.impact,e.dimensions.droppables),n=!!r,l=e.dimensions.droppables[e.critical.droppable.id],i=r||l,a=i.axis.direction,o="vertical"===a&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===a&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(o&&!n)return null;let d="MOVE_DOWN"===t||"MOVE_RIGHT"===t,s=e.dimensions.draggables[e.critical.draggable.id],u=e.current.page.borderBoxCenter,{draggables:c,droppables:p}=e.dimensions;return o?(({isMovingForward:e,draggable:t,destination:r,draggables:n,previousImpact:l,viewport:i,previousPageBorderBoxCenter:a,previousClientSelection:o,afterCritical:d})=>{if(!r.isEnabled)return null;let s=k(r.descriptor.id,n),u=H(t,r),c=(({isMovingForward:e,draggable:t,destination:r,insideDestination:n,previousImpact:l})=>{if(!r.isCombineEnabled||!$(l))return null;function i(e){let t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return{...l,at:t}}let a=l.displaced.all,o=a.length?a[0]:null;if(e)return o?i(o):null;let d=U(t,n);if(!o)return d.length?i(d[d.length-1].descriptor.id):null;let s=d.findIndex(e=>e.descriptor.id===o);-1===s&&b();let u=s-1;return u<0?null:i(d[u].descriptor.id)})({isMovingForward:e,draggable:t,destination:r,insideDestination:s,previousImpact:l})||(({isMovingForward:e,isInHomeList:t,draggable:r,draggables:n,destination:l,insideDestination:i,previousImpact:a,viewport:o,afterCritical:d})=>{let s=a.at;if(s||b(),"REORDER"===s.type){let n=(({isMovingForward:e,isInHomeList:t,insideDestination:r,location:n})=>{if(!r.length)return null;let l=n.index,i=e?l+1:l-1,a=r[0].descriptor.index,o=r[r.length-1].descriptor.index;return i<a||i>(t?o:o+1)?null:i})({isMovingForward:e,isInHomeList:t,location:s.destination,insideDestination:i});return null==n?null:er({draggable:r,insideDestination:i,destination:l,viewport:o,last:a.displaced,displacedBy:a.displacedBy,index:n})}let u=(({isMovingForward:e,destination:t,draggables:r,combine:n,afterCritical:l})=>
37{if(!t.isCombineEnabled)return null;let i=n.draggableId,a=r[i].descriptor.index;return en(i,l)?e?a:a-1:e?a+1:a})({isMovingForward:e,destination:l,displaced:a.displaced,draggables:n,combine:s.combine,afterCritical:d});return null==u?null:er({draggable:r,insideDestination:i,destination:l,viewport:o,last:a.displaced,displacedBy:a.displacedBy,index:u})})({isMovingForward:e,isInHomeList:u,draggable:t,draggables:n,destination:r,insideDestination:s,previousImpact:l,viewport:i,afterCritical:d});if(!c)return null;let p=es({impact:c,draggable:t,droppable:r,draggables:n,afterCritical:d});if(ef({draggable:t,destination:r,newPageBorderBoxCenter:p,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:ep({pageBorderBoxCenter:p,draggable:t,viewport:i}),impact:c,scrollJumpRequest:null};let f=A(p,a),g=(({impact:e,viewport:t,destination:r,draggables:n,maxScrollChange:l})=>{let i=eu(t,E(t.scroll.current,l)),a=r.frame?L(r,E(r.frame.scroll.current,l)):r,o=e.displaced,d=ee({afterDragging:ec(o.all,n),destination:r,displacedBy:e.displacedBy,viewport:i.frame,last:o,forceShouldAnimate:!1}),s=ee({afterDragging:ec(o.all,n),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:o,forceShouldAnimate:!1}),u={},c={},p=[o,d,s];return o.all.forEach(e=>{let t=function(e,t){for(let r=0;r<t.length;r++){let n=t[r].visible[e];if(n)return n}return null}(e,p);if(t){c[e]=t;return}u[e]=!0}),{...e,displaced:{all:o.all,invisible:u,visible:c}}})({impact:c,viewport:i,destination:r,draggables:n,maxScrollChange:f});return{clientSelection:o,impact:g,scrollJumpRequest:f}})({isMovingForward:d,previousPageBorderBoxCenter:u,draggable:s,destination:i,draggables:c,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):(({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:r,isOver:n,draggables:l,droppables:i,viewport:a,afterCritical:o})=>{let d=(({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:n,viewport:l})=>{let i=r.subject.active;if(!i)return null;let a=r.axis,o=z(i[a.start],i[a.end]),d=M(n).filter(e=>e!==r).filter(e=>e.isEnabled).filter(e=>!!e.subject.active).filter(e=>q(l.frame)(eg(e))).filter(t=>{let r=eg(t);return e?i[a.crossAxisEnd]<r[a.crossAxisEnd]:r[a.crossAxisStart]<i[a.crossAxisStart]}).filter(e=>{let t=eg(e),r=z(t[a.start],t[a.end]);return o(t[a.start])||o(t[a.end])||r(i[a.start])||r(i[a.end])}).sort((t,r)=>{let n=eg(t)[a.crossAxisStart],l=eg(r)[a.crossAxisStart];return e?n-l:l-n}).filter((e,t,r)=>eg(e)[a.crossAxisStart]===eg(r[0])[a.crossAxisStart]);if(!d.length)return null;if(1===d.length)return d[0];let s=d.filter(e=>z(eg(e)[a.start],eg(e)[a.end])(t[a.line]));return 1===s.length?s[0]:s.length>1?s.sort((e,t)=>eg(e)[a.start]-eg(t)[a.start])[0]:d.sort((e,r)=>{let n=w(t,B(eg(e))),l=w(t,B(eg(r)));return n!==l?n-l:eg(e)[a.start]-eg(r)[a.start]})[0]})({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:i,viewport:a});if(!d)return null;let s=k(d.descriptor.id,l),u=(({pageBorderBoxCenter:e,viewport:t,destination:r,insideDestination:n,afterCritical:l})=>n.filter(e=>Z({target:((e,t)=>{let r=e.page.borderBox;return en(e.descriptor.id,t)?S(r,C(t.displacedBy.point)):r})(e,l),destination:r,viewport:t.frame,withDroppableDisplacement:!0})).sort((t,n)=>{let i=P(e,ed(r,em(t,l))),a=P(e,ed(r,em(n,l)));return i<a?-1:a<i?1:t.descriptor.index-n.descriptor.index})[0]||null)({pageBorderBoxCenter:t,viewport:a,destination:d,insideDestination:s,afterCritical:o}),c=(({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:r,draggable:n,draggables:l,destination:i,viewport:a,afterCritical:o})=>{if(!t){if(r.length)return null;let e={displaced:K,displacedBy:V,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},t=es({impact:e,draggable:n,droppable:i,draggables:l,afterCritical:o}),d=H(n,i)?i:ey(i,n,l);return ef({draggable:n,destination:d,newPageBorderBoxCenter:t,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}let d=e[i.axis.line]<=t.page.borderBox.center[i.axis.line],s=(()=>{let e=t.descriptor.index;return t.descriptor.id===n.descriptor.id||d?e:e+1})(),u=eb(i.axis,n.displaceBy);return er({draggable:n,insideDestination:r,destination:i,viewport:
37a,displacedBy:u,last:K,index:s})})({previousPageBorderBoxCenter:t,destination:d,draggable:r,draggables:l,moveRelativeTo:u,insideDestination:s,viewport:a,afterCritical:o});return c?{clientSelection:ep({pageBorderBoxCenter:es({impact:c,draggable:r,droppable:d,draggables:l,afterCritical:o}),draggable:r,viewport:a}),impact:c,scrollJumpRequest:null}:null})({isMovingForward:d,previousPageBorderBoxCenter:u,draggable:s,isOver:i,draggables:c,droppables:p,viewport:e.viewport,afterCritical:e.afterCritical})})({state:e,type:t.type});return r?eC({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){let r=t.payload.reason;return"COLLECTING"!==e.phase&&b(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if("DROP_ANIMATE"===t.type){let{completed:r,dropDuration:n,newHomeClientOffset:l}=t.payload;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&b(),{phase:"DROP_ANIMATING",completed:r,dropDuration:n,newHomeClientOffset:l,dimensions:e.dimensions}}if("DROP_COMPLETE"===t.type){let{completed:e}=t.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};function eM(e,t){return e instanceof Object&&"type"in e&&e.type===t}let eF=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),ek=()=>({type:"COLLECTION_STARTING",payload:null}),e$=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),eW=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),eU=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),eH=e=>({type:"MOVE",payload:e}),eV=()=>({type:"MOVE_UP",payload:null}),eK=()=>({type:"MOVE_DOWN",payload:null}),ej=()=>({type:"MOVE_RIGHT",payload:null}),ez=()=>({type:"MOVE_LEFT",payload:null}),eq=()=>({type:"FLUSH",payload:null}),eY=e=>({type:"DROP_COMPLETE",payload:e}),eJ=e=>({type:"DROP",payload:e}),eX=()=>({type:"DROP_ANIMATION_FINISHED",payload:null}),eQ={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},eZ={opacity:{drop:0,combining:.7},scale:{drop:.75}},e0={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},e1=`${e0.outOfTheWay}s ${eQ.outOfTheWay}`,e2={fluid:`opacity ${e1}`,snap:`transform ${e1}, opacity ${e1}`,drop:e=>{let t=`${e}s ${eQ.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${e1}`,placeholder:`height ${e1}, width ${e1}, margin ${e1}`},e3=e=>N(e,D)?void 0:`translate(${e.x}px, ${e.y}px)`,e5={moveTo:e3,drop:(e,t)=>{let r=e3(e);if(r)return t?`${r} scale(${eZ.scale.drop})`:r}},{minDropTime:e4,maxDropTime:e7}=e0,e6=e7-e4,e9=({getState:e,dispatch:t})=>r=>n=>{if(!eM(n,"DROP"))return void r(n);let l=e(),i=n.payload.reason;if("COLLECTING"===l.phase)return void t({type:"DROP_PENDING",payload:{reason:i}});if("IDLE"===l.phase)return;"DROP_PENDING"===l.phase&&l.isWaiting&&b(),"DRAGGING"!==l.phase&&"DROP_PENDING"!==l.phase&&b();let a=l.critical,o=l.dimensions,d=o.draggables[l.critical.draggable.id],{impact:s,didDropInsideDroppable:u}=(({draggables:e,reason:t,lastImpact:r,home:n,viewport:l,onLiftImpact:i})=>r.at&&"DROP"===t?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:K},didDropInsideDroppable:!0}:{impact:eR({draggables:e,impact:i,destination:n,viewport:l,forceShouldAnimate:!0}),didDropInsideDroppable:!1})({reason:i,lastImpact:l.impact,afterCritical:l.afterCritical,onLiftImpact:l.onLiftImpact,home:l.dimensions.droppables[l.critical.droppable.id],viewport:l.viewport,draggables:l.dimensions.draggables}),c=u?$(s):null,p=u?W(s):null,f={index:a.draggable.index,droppableId:a.droppable.id},g={draggableId:d.descriptor.id,type:d.descriptor.type,source:f,reason:i,mode:l.movementMode,destination:c,combine:p},m=(({impact:e,draggable:t,dimensions:r,viewport:n,afterCritical:l})=>{let{draggables:i,droppables:a}=r,o=eI(e),d=o?a[o]:null,s=a[t.descriptor.droppableId];return A(eP({impact:e,draggable:t,draggables:i,afterCritical:l,droppable:d||s,viewport:n}),t.client.borderBox.center)})({impact:s,draggable:d,dimensions:o,viewport:l.viewport,afterCritical:l.afterCritical}),h={critical:l.critical,afterCritical:l.afterCritical,result:g,impact:s};if(!(!N(l.current.client.offset,m)||g.combine))return void t(eY({completed:h}
37));let y=(({current:e,destination:t,reason:r})=>{let n=P(e,t);if(n<=0)return e4;if(n>=1500)return e7;let l=e4+n/1500*e6;return Number(("CANCEL"===r?.6*l:l).toFixed(2))})({current:l.current.client.offset,destination:m,reason:i});t({type:"DROP_ANIMATE",payload:{newHomeClientOffset:m,dropDuration:y,completed:h}})};var e8=()=>({x:window.pageXOffset,y:window.pageYOffset});let te=e=>{let t=function({onWindowScroll:e}){let t=(0,u.A)(function(){e(e8())}),r={eventName:"scroll",options:{passive:!0,capture:!1},fn:e=>{(e.target===window||e.target===window.document)&&t()}},n=f;function l(){return n!==f}return{start:function(){l()&&b(),n=g(window,[r])},stop:function(){l()||b(),t.cancel(),n(),n=f},isActive:l}}({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>r=>{!t.isActive()&&eM(r,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&(e=>eM(e,"DROP_COMPLETE")||eM(e,"DROP_ANIMATE")||eM(e,"FLUSH"))(r)&&t.stop(),e(r)}},tt=(e,t)=>{eS(),t(),eB()},tr=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function tn(e,t,r,n){if(!e)return void r(n(t));let l=(e=>{let t=!1,r=!1,n=setTimeout(()=>{r=!0}),l=l=>{!t&&(r||(t=!0,e(l),clearTimeout(n)))};return l.wasCalled=()=>t,l})(r);e(t,{announce:l}),l.wasCalled()||r(n(t))}let tl=e=>t=>r=>{if(!eM(r,"DROP_ANIMATION_FINISHED"))return void t(r);let n=e.getState();"DROP_ANIMATING"!==n.phase&&b(),e.dispatch(eY({completed:n.completed}))},ti=e=>{let t=null,r=null;return n=>l=>{if((eM(l,"FLUSH")||eM(l,"DROP_COMPLETE")||eM(l,"DROP_ANIMATION_FINISHED"))&&(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(l),!eM(l,"DROP_ANIMATE"))return;let i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch(eX())}};r=requestAnimationFrame(()=>{r=null,t=g(window,[i])})}},ta=e=>t=>r=>{if(t(r),!eM(r,"PUBLISH_WHILE_DRAGGING"))return;let n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(eJ({reason:n.reason})))},to=i.Zz,td=()=>({additions:{},removals:{},modified:{}});var ts=({scrollHeight:e,scrollWidth:t,height:r,width:n})=>{let l=A({x:t,y:e},{x:n,y:r});return{x:Math.max(0,l.x),y:Math.max(0,l.y)}},tu=()=>{let e=document.documentElement;return e||b(),e},tc=()=>{let e=tu();return ts({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function tp(e,t,r){return r.descriptor.id!==t.id&&r.descriptor.type===t.type&&"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode}var tf=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason,tg=e=>{window.scrollBy(e.x,e.y)};let tm=(0,s.A)(e=>M(e).filter(e=>!!e.isEnabled&&!!e.frame)),tb={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var th=({startOfRange:e,endOfRange:t,current:r})=>{let n=t-e;return 0===n?0:(r-e)/n},ty=({distanceToEdge:e,thresholds:t,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:l})=>{let i=((e,t,r=()=>tb)=>{let n=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return n.maxPixelScroll;if(e===t.startScrollingFrom)return 1;let l=th({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e});return Math.ceil(n.maxPixelScroll*n.ease(1-l))})(e,t,l);return 0===i?0:n?Math.max(((e,t,r)=>{let n=r(),l=n.durationDampening.accelerateAt,i=n.durationDampening.stopDampeningAt,a=Date.now()-t;if(a>=i)return e;if(a<l)return 1;let o=th({startOfRange:l,endOfRange:i,current:a});return Math.ceil(e*n.ease(o))})(i,r,l),1):i},tI=({container:e,distanceToEdges:t,dragStartTime:r,axis:n,shouldUseTimeDampening:l,getAutoScrollerOptions:i})=>{let a=((e,t,r=()=>tb)=>{let n=r(),l=e[t.size]*n.startFromPercentage;return{startScrollingFrom:l,maxScrollValueAt:e[t.size]*n.maxScrollAtPercentage}})(e,n,i);return t[n.end]<t[n.start]?ty({distanceToEdge:t[n.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:l,getAutoScrollerOptions:i}):-1*ty({distanceToEdge:t[n.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:l,getAutoScrollerOptions:i})};let tv=O(e=>0===e?0:e);var tx=({dragStartTime:e,container:t,subject:r,center:n,shouldUseTimeDampening:l,getAutoScrollerOptions:i})=>{let a={top:n.y-t.top,right:t.right-n.x,bottom:t.bottom-n.y,left:n.x-t.left},o=tI({container:t,distanceToEdges:a,dragStartTime:e,axis:J,shouldUseTimeDampening:l,getAutoScrollerOptions:i}),d=tv({x:tI({container:t,distanceToEdges:a,dragStartTime:e,axis:X,shouldUseTimeDampening:l,getAutoScrollerOptions:i}),y:o});if(N(d,D))return null;let s=(({container:e,subject:t,proposedScroll:r})=>{let n=t.height>e.height,l=t.width>e.width;return l||n?l&&n?null:{x:l?0:r.x,y:n?0:r.y}:r})({container:t,subject:r,proposedScroll:d});return s?N(s,D)?null:s:null};let tD=O(e=>0===e?0:e>0?1:-1),tE=(()=>{let e=(e,t)=>
37e<0?e:e>t?e-t:0;return({current:t,max:r,change:n})=>{let l=E(t,n),i={x:e(l.x,r.x),y:e(l.y,r.y)};return N(i,D)?null:i}})(),tA=({max:e,current:t,change:r})=>{let n={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},l=tD(r),i=tE({max:n,current:t,change:l});return!i||0!==l.x&&0===i.x||0!==l.y&&0===i.y},tN=(e,t)=>tA({current:e.scroll.current,max:e.scroll.max,change:t}),tC=(e,t)=>{let r=e.frame;return!!r&&tA({current:r.scroll.current,max:r.scroll.max,change:t})};var tR=({state:e,dragStartTime:t,shouldUseTimeDampening:r,scrollWindow:n,scrollDroppable:l,getAutoScrollerOptions:i})=>{let a=e.current.page.borderBoxCenter,o=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){let l=(({viewport:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:l,getAutoScrollerOptions:i})=>{let a=tx({dragStartTime:n,container:e.frame,subject:t,center:r,shouldUseTimeDampening:l,getAutoScrollerOptions:i});return a&&tN(e,a)?a:null})({dragStartTime:t,viewport:e.viewport,subject:o,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:i});if(l)return void n(l)}let d=(({center:e,destination:t,droppables:r})=>{if(t){let e=r[t];return e.frame?e:null}return tm(r).find(t=>(t.frame||b(),ex(t.frame.pageMarginBox)(e)))||null})({center:a,destination:eI(e.impact),droppables:e.dimensions.droppables});if(!d)return;let s=(({droppable:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:l,getAutoScrollerOptions:i})=>{let a=e.frame;if(!a)return null;let o=tx({dragStartTime:n,container:a.pageMarginBox,subject:t,center:r,shouldUseTimeDampening:l,getAutoScrollerOptions:i});return o&&tC(e,o)?o:null})({dragStartTime:t,droppable:d,subject:o,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:i});s&&l(d.descriptor.id,s)};let tP="data-rfd",tw=(()=>{let e=`${tP}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),tO=(()=>{let e=`${tP}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),tS=(()=>{let e=`${tP}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),tB={contextId:`${tP}-scroll-container-context-id`},tG=(e,t)=>e.map(e=>{let r=e.styles[t];return r?`${e.selector} { ${r} }`:""}).join(" "),tL="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,tT=()=>{let e=document.querySelector("head");return e||b(),e},t_=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function tM(e,t){return Array.from(e.querySelectorAll(t))}var tF=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function tk(e){return e instanceof tF(e).HTMLElement}function t$(e,t){let r=tM(document,`[${tw.contextId}="${e}"]`);if(!r.length)return null;let n=r.find(e=>e.getAttribute(tw.draggableId)===t);return n&&tk(n)?n:null}function tW(){let e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach(t=>t(e))}function n(t){return e.draggables[t]||null}function l(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:(t,r)=>{let n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{let l=t.descriptor.id,i=n(l);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[l],e.droppables[t.descriptor.droppableId]&&r({type:"REMOVAL",value:t}))},getById:function(e){let t=n(e);return t||b(),t},findById:n,exists:e=>!!n(e),getAllByType:t=>Object.values(e.draggables).filter(e=>e.descriptor.type===t)},droppable:{register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{let r=l(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){let t=l(e);return t||b(),t},findById:l,exists:e=>!!l(e),getAllByType:t=>Object.values(e.droppables).filter(e=>e.descriptor.type===t)},subscribe:function(e){return t.push(e),function(){let r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var tU=n.createContext(null),tH=()=>{let e=document.body;return e||b(),e};let tV={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},tK={separator:"::"};function tj(e,t=tK){let r=n.useId();return(0,o.Kr)(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}var tz=n.createContext(null),tq={react:"^18.0.0"};let tY=/(\d+)\.(\d+)\.(\d+)/,tJ=e=>{let t=tY.exec(e);null==t&&b();let r=Number(t[1]);return{major:r,minor:Number(t[2]),patch:Number(t[3]),raw:e}};function tX(e,t){}function tQ(e){let t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{t.current=e}),t}function tZ(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}let t0={13:!0,9:!0};var t1=e=>{t0[e.keyCode]&&e.preventDefault()};let t2=(()=>{let e="visibilitychange";return"undefined"==typeof document?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(e=>`on${e}`in document)||e})(),t3={type:"IDLE"};function t5(){}let t4={34:!0,33:!0,36:!0,35:!0},t7={type:"IDLE"},t6=["input","button","textarea","select","option","optgroup","video","audio"],t9=(()=>{let e="matches";
37return"undefined"==typeof document?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(e=>e in Element.prototype)||e})();function t8(e){e.preventDefault()}function re({expected:e,phase:t,isLockActive:r,shouldWarn:n}){return!!r()&&e===t}function rt({lockAPI:e,store:t,registry:r,draggableId:n}){if(e.isClaimed())return!1;let l=r.draggable.findById(n);return!!l&&!!l.options.isEnabled&&!!tf(t.getState(),n)}let rr=[function(e){let t=(0,n.useRef)(t3),r=(0,n.useRef)(f),l=(0,o.Kr)(()=>({eventName:"mousedown",fn:function(t){if(t.defaultPrevented||0!==t.button||t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)return;let n=e.findClosestDraggableId(t);if(!n)return;let l=e.tryGetLock(n,d,{sourceEvent:t});if(!l)return;t.preventDefault();let i={x:t.clientX,y:t.clientY};r.current(),c(l,i)}}),[e]),i=(0,o.Kr)(()=>({eventName:"webkitmouseforcewillbegin",fn:t=>{if(t.defaultPrevented)return;let r=e.findClosestDraggableId(t);if(!r)return;let n=e.findOptionsForDraggable(r);n&&!n.shouldRespectForcePress&&e.canGetLock(r)&&t.preventDefault()}}),[e]),a=(0,o.hb)(function(){r.current=g(window,[i,l],{passive:!1,capture:!0})},[i,l]),d=(0,o.hb)(()=>{"IDLE"!==t.current.type&&(t.current=t3,r.current(),a())},[a]),s=(0,o.hb)(()=>{let e=t.current;d(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[d]),u=(0,o.hb)(function(){r.current=g(window,function({cancel:e,completed:t,getPhase:r,setPhase:n}){return[{eventName:"mousemove",fn:e=>{var t;let{button:l,clientX:i,clientY:a}=e;if(0!==l)return;let o={x:i,y:a},d=r();if("DRAGGING"===d.type){e.preventDefault(),d.actions.move(o);return}"PENDING"!==d.type&&b(),t=d.point,(Math.abs(o.x-t.x)>=5||Math.abs(o.y-t.y)>=5)&&(e.preventDefault(),n({type:"DRAGGING",actions:d.actions.fluidLift(o)}))}},{eventName:"mouseup",fn:n=>{let l=r();if("DRAGGING"!==l.type)return void e();n.preventDefault(),l.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"mousedown",fn:t=>{"DRAGGING"===r().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:t=>{if("PENDING"===r().type)return void e();if(27===t.keyCode){t.preventDefault(),e();return}t1(t)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===r().type&&e()}},{eventName:"webkitmouseforcedown",fn:t=>{let n=r();if("IDLE"===n.type&&b(),n.actions.shouldRespectForcePress())return void e();t.preventDefault()}},{eventName:t2,fn:e}]}({cancel:s,completed:d,getPhase:()=>t.current,setPhase:e=>{t.current=e}}),{capture:!0,passive:!1})},[s,d]),c=(0,o.hb)(function(e,r){"IDLE"!==t.current.type&&b(),t.current={type:"PENDING",point:r,actions:e},u()},[u]);tL(function(){return a(),function(){r.current()}},[a])},function(e){let t=(0,n.useRef)(t5),r=(0,o.Kr)(()=>({eventName:"keydown",fn:function(r){if(r.defaultPrevented||32!==r.keyCode)return;let n=e.findClosestDraggableId(r);if(!n)return;let i=e.tryGetLock(n,d,{sourceEvent:r});if(!i)return;r.preventDefault();let a=!0,o=i.snapLift();function d(){a||b(),a=!1,t.current(),l()}t.current(),t.current=g(window,function(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:n=>{if(27===n.keyCode){n.preventDefault(),r();return}if(32===n.keyCode){n.preventDefault(),t(),e.drop();return}if(40===n.keyCode){n.preventDefault(),e.moveDown();return}if(38===n.keyCode){n.preventDefault(),e.moveUp();return}if(39===n.keyCode){n.preventDefault(),e.moveRight();return}if(37===n.keyCode){n.preventDefault(),e.moveLeft();return}if(t4[n.keyCode])return void n.preventDefault();t1(n)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:t2,fn:r}]}(o,d),{capture:!0,passive:!1})}}),[e]),l=(0,o.hb)(function(){t.current=g(window,[r],{passive:!1,capture:!0})},[r]);tL(function(){return l(),function(){t.current()}},[l])},function(e){let t=(0,n.useRef)(t7),r=(0,n.useRef)(f),l=(0,o.hb)(function(){return t.current},[]),i=(0,o.hb)(function(e){t.current=e},[]),a=(0,o.Kr)(()=>({eventName:"touchstart",fn:function(t){if(t.defaultPrevented)return;let n=e.findClosestDraggableId(t);if(!n)return;let l=e.tryGetLock(n,s,{sourceEvent:t});if(!l)return;let{clientX:i,clientY:a}=t.touches[0];r.current(),m(l,{x:i,y:a})}}),[e]),d=(0,o.hb)(function(){r.current=g(window,[a],{capture:!0,passive:!1})},[a]),s=(0,o.hb)(()=>{let e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(t7),r.current(),d())},[d,i]),u=(0,o.hb)(()=>{let e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),c=(0,o.hb)(function(){let e={capture:!0,passive:!1},t={cancel:u,completed:s,getPhase:l},n=g(window,function({cancel:e,completed:t,getPhase:r}){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{let n=r();if("DRAGGING"!==n.type)return void e();n.hasMoved=!0;let{clientX:l,clientY:i}=t.touches[0];t.preventDefault(),n.actions.move({x:l,y:i})}},{eventName:"touchend",fn:n=>{let l=r();if("DRAGGING"!==l.type)return void e();n.preventDefault(),l.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"touchcancel",fn:t=>{if("DRAGGING"!==r().type)return void e();t.preventDefault(),e()}},{eventName:"touchforcechange",fn:t=>{let n=r();"IDLE"===n.type&&b();let l=t.touches[0];if(!l||!(l.force>=.15))return;let i=n.actions.shouldRespectForcePress();if("PENDING"===n.type){i&&e();return}if(i)return n.hasMoved?void t.preventDefault():void e();t.preventDefault()}},{eventName:t2,fn:e}]}(t),e),i=g(window,function({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:r=>{if("DRAGGING"!==t().type)return void e();27===r.keyCode&&r.preventDefault(),e()}},{eventName:t2,fn:e}]}(t),e);r.current=function(){n(),i()}},[u,l,s]),p=(0,o.hb)(function(){let e=l();"PENDING"!==e.type&&b(),i({type:"DRAGGING",actions:e.actions.fluidLift(e.point),hasMoved:!1})},[l,i]),m=(0,o.hb)(function(e,t){"IDLE"!==l().type&&b(),i({type:"PENDING",point:t,actions:e,longPressTimerId:setTimeout(p,120)}),c()},[c,l,i,p]);tL(function(){return d(),function(){r.current();let e=l();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(t7))}},[l,d,i]),tL(function(){return g(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}];function rn(e){return e.current||b(),e.current}
37function rl(e){let{contextId:t,setCallbacks:r,sensors:p,nonce:m,dragHandleUsageInstructions:h}=e,y=(0,n.useRef)(null);tX(()=>{((e,t)=>{let r,n;if(r=tJ(e),(n=tJ(t)).major>r.major||!(n.major<r.major)&&(n.minor>r.minor||!(n.minor<r.minor)&&n.patch>=r.patch))return})(tq.react,n.version);let e=document.doctype;e&&(e.name.toLowerCase(),e.publicId)},[]);let I=tQ(e),v=(0,o.hb)(()=>{let e;return{onBeforeCapture:t=>{(0,l.flushSync)(()=>{e.onBeforeCapture&&e.onBeforeCapture(t)})},onBeforeDragStart:(e=I.current).onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}},[I]),N=(0,o.hb)(()=>{let e;return e=I.current,{...tb,...e.autoScrollerOptions,durationDampening:{...tb.durationDampening,...e.autoScrollerOptions}}},[I]),C=function(e){let t=(0,o.Kr)(()=>`rfd-announcement-${e}`,[e]),r=(0,n.useRef)(null);return(0,n.useEffect)(function(){let e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,c.A)(e.style,tV),tH().appendChild(e),function(){setTimeout(function(){let t=tH();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)})}},[t]),(0,o.hb)(e=>{let t=r.current;if(t){t.textContent=e;return}},[])}(t),R=function({contextId:e,text:t}){let r=tj("hidden-text",{separator:"-"}),l=(0,o.Kr)(()=>(function({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`})({contextId:e,uniqueId:r}),[r,e]);return(0,n.useEffect)(function(){let e=document.createElement("div");return e.id=l,e.textContent=t,e.style.display="none",tH().appendChild(e),function(){let t=tH();t.contains(e)&&t.removeChild(e)}},[l,t]),l}({contextId:t,text:h}),P=function(e,t){let r=(0,o.Kr)(()=>(e=>{let t=t=>`[${t}="${e}"]`,r=(()=>{let e=` 38 cursor: -webkit-grab; 39 cursor: grab; 40 `;return{selector:t(tw.contextId),styles:{always:` 41 -webkit-touch-callout: none; 42 -webkit-tap-highlight-color: rgba(0,0,0,0); 43 touch-action: manipulation; 44 `,resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),n=(()=>{let e=` 45 transition: ${e2.outOfTheWay}; 46 `;return{selector:t(tO.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),l=[n,r,{selector:t(tS.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:` 47 cursor: grabbing; 48 cursor: -webkit-grabbing; 49 user-select: none; 50 -webkit-user-select: none; 51 -moz-user-select: none; 52 -ms-user-select: none; 53 overflow-anchor: none; 54 `}}];return{always:tG(l,"always"),resting:tG(l,"resting"),dragging:tG(l,"dragging"),dropAnimating:tG(l,"dropAnimating"),userCancel:tG(l,"userCancel")}})(e),[e]),l=(0,n.useRef)(null),i=(0,n.useRef)(null),a=(0,o.hb)((0,s.A)(e=>{let t=i.current;t||b(),t.textContent=e}),[]),d=(0,o.hb)(e=>{let t=l.current;t||b(),t.textContent=e},[]);tL(()=>{(l.current||i.current)&&b();let n=t_(t),o=t_(t);return l.current=n,i.current=o,n.setAttribute(`${tP}-always`,e),o.setAttribute(`${tP}-dynamic`,e),tT().appendChild(n),tT().appendChild(o),d(r.always),a(r.resting),()=>{let e=e=>{let t=e.current;t||b(),tT().removeChild(t),e.current=null};e(l),e(i)}},[t,d,a,r.always,r.resting,e]);let u=(0,o.hb)(()=>a(r.dragging),[a,r.dragging]),c=(0,o.hb)(e=>{if("DROP"===e)return void a(r.dropAnimating);a(r.userCancel)},[a,r.dropAnimating,r.userCancel]),p=(0,o.hb)(()=>{i.current&&a(r.resting)},[a,r.resting]);return(0,o.Kr)(()=>({dragging:u,dropping:c,resting:p}),[u,c,p])}(t,m),w=(0,o.hb)(e=>{rn(y).dispatch(e)},[]),O=(0,o.Kr)(()=>(0,i.zH)({publishWhileDragging:eF,updateDroppableScroll:e$,updateDroppableIsEnabled:eW,updateDroppableIsCombineEnabled:eU,collectionStarting:ek},w),[w]),S=function(){let e=(0,o.Kr)(tW,[]);return(0,n.useEffect)(()=>function(){e.clean()},[e]),e}(),B=(0,o.Kr)(()=>((e,t)=>{let r=null,n=function({registry:e,callbacks:t}){let r=td(),n=null,l=()=>{n||(t.collectionStarting(),n=requestAnimationFrame(()=>{n=null,eS();let{additions:l,removals:i,modified:a}=r,o=Object.keys(l).map(t=>e.draggable.getById(t).getDimension(D)).sort((e,t)=>e.descriptor.index-t.descriptor.index),d=Object.keys(a).map(t=>{let r=e.droppable.getById(t).callbacks.getScrollWhileDragging();return{droppableId:t,scroll:r}}),s={additions:o,removals:Object.keys(i),modified:d};r=td(),eB(),t.publish(s)}))};return{add:e=>{let t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],l(
54)},remove:e=>{let t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],l()},stop:()=>{n&&(cancelAnimationFrame(n),n=null,r=td())}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),l=t=>{r||b();let l=r.critical.draggable;"ADDITION"===t.type&&tp(e,l,t.value)&&n.add(t.value),"REMOVAL"===t.type&&tp(e,l,t.value)&&n.remove(t.value)};return{updateDroppableIsEnabled:(n,l)=>{e.droppable.exists(n)||b(),r&&t.updateDroppableIsEnabled({id:n,isEnabled:l})},updateDroppableIsCombineEnabled:(n,l)=>{r&&(e.droppable.exists(n)||b(),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:l}))},scrollDroppable:(t,n)=>{r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:(n,l)=>{r&&(e.droppable.exists(n)||b(),t.updateDroppableScroll({id:n,newScroll:l}))},startPublishing:t=>{r&&b();let n=e.draggable.getById(t.draggableId),i=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:i.descriptor};return r={critical:a,unsubscribe:e.subscribe(l)},(({critical:e,scrollOptions:t,registry:r})=>{eS();let n=(()=>{let e=e8(),t=tc(),r=e.y,n=e.x,l=tu(),i=l.clientWidth,a=l.clientHeight;return{frame:(0,d.l)({top:r,left:n,right:n+i,bottom:r+a}),scroll:{initial:e,current:e,max:t,diff:{value:D,displacement:D}}}})(),l=n.scroll.current,i=e.droppable,a=r.droppable.getAllByType(i.type).map(e=>e.callbacks.getDimensionAndWatchScroll(l,t)),o={draggables:_(r.draggable.getAllByType(e.draggable.type).map(e=>e.getDimension(l))),droppables:T(a)};return eB(),{dimensions:o,critical:e,viewport:n}})({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!r)return;n.stop();let t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach(e=>e.callbacks.dragStopped()),r.unsubscribe(),r=null}}})(S,O),[S,O]),G=(0,o.Kr)(()=>(({scrollDroppable:e,scrollWindow:t,move:r,getAutoScrollerOptions:n})=>{let l=(({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:r=()=>tb})=>{let n=(0,u.A)(e),l=(0,u.A)(t),i=null,a=e=>{i||b();let{shouldUseTimeDampening:t,dragStartTime:a}=i;tR({state:e,scrollWindow:n,scrollDroppable:l,dragStartTime:a,shouldUseTimeDampening:t,getAutoScrollerOptions:r})};return{start:e=>{eS(),i&&b();let t=Date.now(),n=!1,l=()=>{n=!0};tR({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:l,scrollDroppable:l,getAutoScrollerOptions:r}),i={dragStartTime:t,shouldUseTimeDampening:n},eB(),n&&a(e)},stop:()=>{i&&(n.cancel(),l.cancel(),i=null)},scroll:a}})({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:n}),i=(({move:e,scrollDroppable:t,scrollWindow:r})=>n=>{let l=n.scrollJumpRequest;if(!l)return;let i=eI(n.impact);i||b();let a=((e,r)=>{if(!tC(e,r))return r;let n=((e,t)=>{let r=e.frame;return r&&tC(e,t)?tE({current:r.scroll.current,max:r.scroll.max,change:t}):null})(e,r);if(!n)return t(e.descriptor.id,r),null;let l=A(r,n);return t(e.descriptor.id,l),A(r,l)})(n.dimensions.droppables[i],l);if(!a)return;let o=n.viewport,d=((e,t,n)=>{if(!e||!tN(t,n))return n;let l=((e,t)=>{if(!tN(e,t))return null;let r=e.scroll.max;return tE({current:e.scroll.current,max:r,change:t})})(t,n);if(!l)return r(n),null;let i=A(n,l);return r(i),A(n,i)})(n.isWindowScrollAllowed,o,a);d&&e({client:E(n.current.client.selection,d)})})({move:r,scrollWindow:t,scrollDroppable:e});return{scroll:e=>{if(!n().disabled&&"DRAGGING"===e.phase){if("FLUID"===e.movementMode)return void l.scroll(e);e.scrollJumpRequest&&i(e)}},start:l.start,stop:l.stop}})({scrollWindow:tg,scrollDroppable:B.scrollDroppable,getAutoScrollerOptions:N,...(0,i.zH)({move:eH},w)}),[B.scrollDroppable,w,N]),L=function(e){let t=(0,n.useRef)({}),r=(0,n.useRef)(null),l=(0,n.useRef)(null),i=(0,n.useRef)(!1),a=(0,o.hb)(function(e,r){let n={id:e,focus:r};return t.current[e]=n,function(){let r=t.current;r[e]!==n&&delete r[e]}},[]),d=(0,o.hb)(function(t){let r=t$(e,t);r&&r!==document.activeElement&&r.focus()},[e]),s=(0,o.hb)(function(e,t){r.current===e&&(r.current=t)},[]),u=(0,o.hb)(function(){!l.current&&i.current&&(l.current=requestAnimationFrame(()=>{l.current=null;let e=r.current;e&&d(e)}))},[d]),c=(0,o.hb)(function(e){r.current=null;let t=document.activeElement;t&&t.getAttribute(tw.draggableId)===e&&(r.current=e)},[]);return tL(()=>(i.current=!0,function(){i.current=!1;let e=l.current;e&&cancelAnimationFrame(e)}),[]),(0,o.Kr)(()=>({register:a,tryRecordFocus:c,tryRestoreFocusRecorded:u,tryShiftRecord:s}),[a,c,u,s])}(t),M=(0,o.Kr)(()=>(({dimensionMarshal:e,focusMarshal:t,styleMarshal:r,getResponders:n,announce:l,autoScroller:a})=>{var o;let d,s,u;return(0,i.y$)(e_,to((0,i.Tw)((d=r,()=>e=>t=>{eM(t,"INITIAL_PUBLISH")&&d.dragging(),eM(t,"DROP_ANIMATE")&&d.dropping(t.payload.completed.result.reason),(eM(t,"FLUSH")||eM(t,"DROP_COMPLETE"))&&d.resting(),e(t)}),()=>t=>r=>{(eM(r,"DROP_COMPLETE")||eM(r,"FLUSH")||eM(r,"DROP_ANIMATE"))&&e.stopPublishing(),t(r)},({getState:t,dispatch:r})=>n=>l=>{if(!eM(l,"LIFT"))return void n(l);let{id:i,clientSelection:a,movementMode:o}=l.payload,d=t();"DROP_ANIMATING"===d.phase&&r(eY({completed:d.completed})),"IDLE"!==t().phase&&b(),r(eq()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:o}});let{critical:s,dimensions:u,viewport:c}=e.startPublishing({draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===o}});r({type:"INITIAL_PUBLISH",payload:{critical:s,dimensions:u,clientSelection:a,movementMode:o,viewport:c}})},e9,tl,ti,ta,(s=a,e=>t=>r=>{let n;if(eM(n=r,"DROP_COMPLETE")||eM(n,"DROP_ANIMATE")||eM(n,"FLUSH")){s.stop(),t(r);return}if(eM(r,"INITIAL_PUBLISH")){t(r);let n=e.getState();"DRAGGING"!==n.phase&&b(),s.start(n);return}t(r),s.scroll(e.getState())}),te,(o=t,u=!1,()=>e=>t=>{if(eM(t,"INITIAL_PUBLISH")){u=!0,o.tryRecordFocus(t.payload.critical.draggable.id),e(t),o.tryRestoreFocusRecorded();return}if(e(t),u){if(eM(t,"FLUSH")){u=!1,o.tryRestoreFocusRecorded();return}if(eM(t,"DROP_COMPLETE")){u=!1;let e=t.payload.completed.result;e.combine&&o.tryShiftRecord(e.draggableId,e.combine.draggableId),o.tryRestoreFocusRecorded()}}}),((e,t)=>{let r=((e,t)=>{let r=(()=>{let e=[];return{add:t=>{let r=setTimeout(()=>(t=>{let r=e.findIndex(e=>e.timerId===t);-1===r&&b();let[n]=e.splice(r,1);n.callback()})(r));e.push({timerId:r,callback:t})},flush:()=>
54{if(!e.length)return;let t=[...e];e.length=0,t.forEach(e=>{clearTimeout(e.timerId),e.callback()})}}})(),n=null,l=r=>{n||b(),n=null,tt("onDragEnd",()=>tn(e().onDragEnd,r,t,x.onDragEnd))};return{beforeCapture:(t,r)=>{n&&b(),tt("onBeforeCapture",()=>{let n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})})},beforeStart:(t,r)=>{n&&b(),tt("onBeforeDragStart",()=>{let n=e().onBeforeDragStart;n&&n(tr(t,r))})},start:(l,i)=>{n&&b();let a=tr(l,i);n={mode:i,lastCritical:l,lastLocation:a.source,lastCombine:null},r.add(()=>{tt("onDragStart",()=>tn(e().onDragStart,a,t,x.onDragStart))})},update:(l,i)=>{let a,o,d,s,u=$(i),c=W(i);n||b();let p=!((e,t)=>{if(e===t)return!0;let r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n})(l,n.lastCritical);p&&(n.lastCritical=l);let f=(a=n.lastLocation,o=u,(null!=a||null!=o)&&(null==a||null==o||a.droppableId!==o.droppableId||a.index!==o.index));f&&(n.lastLocation=u);let g=(d=n.lastCombine,s=c,(null!=d||null!=s)&&(null==d||null==s||d.draggableId!==s.draggableId||d.droppableId!==s.droppableId));
54if(g&&(n.lastCombine=c),!p&&!f&&!g)return;let m={...tr(l,n.mode),combine:c,destination:u};r.add(()=>{tt("onDragUpdate",()=>tn(e().onDragUpdate,m,t,x.onDragUpdate))})},flush:()=>{n||b(),r.flush()},drop:l,abort:()=>{n&&l({...tr(n.lastCritical,n.mode),combine:null,destination:null,reason:"CANCEL"})}}})(e,t);return e=>t=>n=>{if(eM(n,"BEFORE_INITIAL_CAPTURE"))return void r.beforeCapture(n.payload.draggableId,n.payload.movementMode);if(eM(n,"INITIAL_PUBLISH")){let e=n.payload.critical;r.beforeStart(e,n.payload.movementMode),t(n),r.start(e,n.payload.movementMode);return}if(eM(n,"DROP_COMPLETE")){let e=n.payload.completed.result;r.flush(),t(n),r.drop(e);return}if(t(n),eM(n,"FLUSH"))return void r.abort();let l=e.getState();"DRAGGING"===l.phase&&r.update(l.critical,l.impact)}})(n,l))))})({announce:C,autoScroller:G,dimensionMarshal:B,focusMarshal:L,getResponders:v,styleMarshal:P}),[C,G,B,L,v,P]);y.current=M;let F=(0,o.hb)(()=>{let e=rn(y);"IDLE"!==e.getState().phase&&e.dispatch(eq())},[]),k=(0,o.hb)(()=>{let e=rn(y).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]);r((0,o.Kr)(()=>({isDragging:k,tryAbort:F}),[k,F]));let U=(0,o.hb)(e=>tf(rn(y).getState(),e),[]),H=(0,o.hb)(()=>ev(rn(y).getState()),[]),V=(0,o.Kr)(()=>({marshal:B,focus:L,contextId:t,canLift:U,isMovementAllowed:H,dragHandleUsageInstructionsId:R,registry:S}),[t,B,R,L,U,H,S]);return!function({contextId:e,store:t,registry:r,customSensors:l,enableDefaultSensors:i}){let a=[...i?rr:[],...l||[]],s=(0,n.useState)(()=>(function(){let e=null;function t(){e||b(),e=null}return{isClaimed:function(){return!!e},isActive:function(t){return t===e},claim:function(t){e&&b();let r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}})())[0],c=(0,o.hb)(function(e,t){tZ(e)&&!tZ(t)&&s.tryAbandon()},[s]);tL(function(){let e=t.getState();return t.subscribe(()=>{let r=t.getState();c(e,r),e=r})},[s,t,c]),tL(()=>s.tryAbandon,[s.tryAbandon]);let p=(0,o.hb)(e=>rt({lockAPI:s,registry:r,store:t,draggableId:e}),[s,r,t]),m=(0,o.hb)((n,l,i)=>(function({lockAPI:e,contextId:t,store:r,registry:n,draggableId:l,forceSensorStop:i,sourceEvent:a}){if(!rt({lockAPI:e,store:r,registry:n,draggableId:l}))return null;let o=n.draggable.getById(l),s=function(e,t){let r=tM(document,`[${tO.contextId}="${e}"]`).find(e=>e.getAttribute(tO.id)===t);return r&&tk(r)?r:null}(t,o.descriptor.id);if(!s||a&&!o.options.canDragInteractiveElements&&function(e,t){let r=t.target;return!!tk(r)&&function e(t,r){if(null==r)return!1;if(t6.includes(r.tagName.toLowerCase()))return!0;let n=r.getAttribute("contenteditable");return"true"===n||""===n||r!==t&&e(t,r.parentElement)}(e,r)}(s,a))return null;let c=e.claim(i||f),p="PRE_DRAG";function m(){return o.options.shouldRespectForcePress}function h(){return e.isActive(c)}let y=(function(e,t){re({expected:e,phase:p,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}).bind(null,"DRAGGING");function I(t){function n(){e.release(),p="COMPLETED"}function l(e,i={shouldBlockNextClick:!1}){t.cleanup(),i.shouldBlockNextClick&&setTimeout(g(window,[{eventName:"click",fn:t8,options:{once:!0,passive:!1,capture:!0}}])),n(),r.dispatch(eJ({reason:e}))}return"PRE_DRAG"!==p&&(n(),b()),r.dispatch({type:"LIFT",payload:t.liftActionArgs}),p="DRAGGING",{isActive:()=>re({expected:"DRAGGING",phase:p,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:m,drop:e=>l("DROP",e),cancel:e=>l("CANCEL",e),...t.actions}}return{isActive:()=>re({expected:"PRE_DRAG",phase:p,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:m,fluidLift:function(e){let t=(0,u.A)(e=>{y(()=>eH({client:e}))});return{...I({liftActionArgs:{id:l,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){return I({liftActionArgs:{id:l,clientSelection:(0,d.l)(s.getBoundingClientRect()).center,movementMode:"SNAP"},cleanup:f,actions:{moveUp:()=>y(eV),moveRight:()=>y(ej),moveDown:()=>y(eK),moveLeft:()=>y(ez)}})},abort:function(){re({expected:"PRE_DRAG",phase:p,isLockActive:h,shouldWarn:!0})&&e.release()}}})({lockAPI:s,registry:r,contextId:e,store:t,draggableId:n,forceSensorStop:l||null,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null}),[e,s,r,t]),h=(0,o.hb)(t=>(function(e,t){let r=function(e,t){let r=t.target;if(!(r instanceof tF(r).Element))return null;let n=`[${tw.contextId}="${e}"]`,l=r.closest?r.closest(n):function e(t,r){return null==t?null:t[t9](r)?t:e(t.parentElement,r)}(r,n);return l&&tk(l)?l:null}(e,t);return r?r.getAttribute(tw.draggableId):null})(e,t),[e]),y=(0,o.hb)(e=>{let t=r.draggable.findById(e);return t?t.options:null},[r.draggable]),I=(0,o.hb)(function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch(eq()))},[s,t]),v=(0,o.hb)(()=>s.isClaimed(),[s]),x=(0,o.Kr)(()=>({canGetLock:p,tryGetLock:m,findClosestDraggableId:h,findOptionsForDraggable:y,tryReleaseLock:I,isLockClaimed:v}),[p,m,h,y,I,v]);for(let e=0;e<a.length;e++)a[e](x)}({contextId:t,store:M,registry:S,customSensors:p||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)(()=>F,[F]),n.createElement(tz.Provider,{value:V},n.createElement(a.Kq,{context:tU,store:M},e.children))}function ri(e){let t=n.useId(),r=e.dragHandleUsageInstructions||x.dragHandleUsageInstructions;return n.createElement(h,null,l=>n.createElement(rl,{nonce:e.nonce,contextId:t,setCallbacks:l,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}let ra={dragging:5e3,dropAnimating:4500};var ro=n.createContext(null);function rd(e){e&&tk(e)||b()}function rs(e){let t=(0,n.useContext)(e);return t||b(),t}function ru(e){e.preventDefault()}var rc=(e,t)=>e===t,rp=e=>{let{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};function rf(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,comb
54ineWith:null}}let rg={mapped:{type:"SECONDARY",offset:D,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:rf(null)}},rm=(0,a.Ng)(()=>{let e=function(){let e=(0,s.A)((e,t)=>({x:e,y:t})),t=(0,s.A)((e,t,r=null,n=null,l=null)=>({isDragging:!0,isClone:t,isDropAnimating:!!l,dropAnimation:l,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null})),r=(0,s.A)((e,r,n,l,i=null,a=null,o=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:o,snapshot:t(r,l,i,a,null)}}));return(n,l)=>{if(tZ(n)){let t;if(n.critical.draggable.id!==l.draggableId)return null;let i=n.current.client.offset,a=n.dimensions.draggables[l.draggableId],o=eI(n.impact),d=(t=n.impact).at&&"COMBINE"===t.at.type?t.at.combine.draggableId:null,s=n.forceShouldAnimate;return r(e(i.x,i.y),n.movementMode,a,l.isClone,o,d,s)}if("DROP_ANIMATING"===n.phase){let e=n.completed;if(e.result.draggableId!==l.draggableId)return null;let r=l.isClone,i=n.dimensions.draggables[l.draggableId],a=e.result,o=a.mode,d=rp(a),s=a.combine?a.combine.draggableId:null,u={duration:n.dropDuration,curve:eQ.drop,moveTo:n.newHomeClientOffset,opacity:s?eZ.opacity.drop:null,scale:s?eZ.scale.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:i,dropping:u,draggingOver:d,combineWith:s,mode:o,forceShouldAnimate:null,snapshot:t(o,r,d,s,u)}}}return null}}(),t=function(){let e=(0,s.A)((e,t)=>({x:e,y:t})),t=(0,s.A)(rf),r=(0,s.A)((e,r=null,n)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:t(r)}})),n=e=>e?r(D,e,!0):null,l=(t,l,i,a)=>{let o=i.displaced.visible[t],d=!!(a.inVirtualList&&a.effected[t]),s=W(i),u=s&&s.draggableId===t?l:null;if(!o){if(!d)return n(u);if(i.displaced.invisible[t])return null;let l=C(a.displacedBy.point);return r(e(l.x,l.y),u,!0)}if(d)return n(u);let c=i.displacedBy.point;return r(e(c.x,c.y),u,o.shouldAnimate)};return(e,t)=>{if(tZ(e))return e.critical.draggable.id===t.draggableId?null:l(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){let r=e.completed;return r.result.draggableId===t.draggableId?null:l(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return(r,n)=>e(r,n)||t(r,n)||rg},{dropAnimationFinished:eX},null,{context:tU,areStatePropsEqual:rc})(e=>{let t=(0,n.useRef)(null),r=(0,o.hb)((e=null)=>{t.current=e},[]),i=(0,o.hb)(()=>t.current,[]),{contextId:a,dragHandleUsageInstructionsId:s,registry:u}=rs(tz),{type:c,droppableId:p}=rs(ro),f=(0,o.Kr)(()=>({id:e.draggableId,index:e.index,type:c,droppableId:p}),[e.draggableId,e.index,c,p]),{children:g,draggableId:m,isEnabled:h,shouldRespectForcePress:y,canDragInteractiveElements:I,isClone:v,mapped:x,dropAnimationFinished:E}=e;!function(e,t,r){tX(()=>{let n=e.draggableId;n||b(!1),"string"!=typeof n&&b(!1),Number.isInteger(e.index)||b(!1),"DRAGGING"!==e.mapped.type&&(rd(r()),e.isEnabled&&(t$(t,n)||b(!1)))})}(e,a,i),v||function(e){let t=tj("draggable"),{descriptor:r,registry:l,getDraggableRef:i,canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:u}=e,c=(0,o.Kr)(()=>({canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:u}),[a,u,s]),p=(0,o.hb)(e=>{let t=i();return t||b(),function(e,t,r=D){let n=window.getComputedStyle(t),l=t.getBoundingClientRect(),i=(0,d.a)(l,n),a=(0,d.SQ)(i,r),o={client:i,tagName:t.tagName.toLowerCase(),display:n.display};return{descriptor:e,placeholder:o,displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(r,t,e)},[r,i]),f=(0,o.Kr)(()=>({uniqueId:t,descriptor:r,options:c,getDimension:p}),[r,p,c,t]),g=(0,n.useRef)(f),m=(0,n.useRef)(!0);tL(()=>(l.draggable.register(g.current),()=>l.draggable.unregister(g.current)),[l.draggable]),tL(()=>{if(m.current){m.current=!1;return}let e=g.current;g.current=f,l.draggable.update(f,e)},[f,l.draggable])}((0,o.Kr)(()=>({descriptor:f,registry:u,getDraggableRef:i,canDragInteractiveElements:I,shouldRespectForcePress:y,isEnabled:h}),[f,u,i,I,y,h]));let A=(0,o.Kr)(()=>h?{tabIndex:0,role:"button","aria-describedby":s,"data-rfd-drag-handle-draggable-id":m,"data-rfd-drag-handle-context-id":a,draggable:!1,onDragStart:ru}:null,[a,s,m,h]),N=(0,o.hb)(e=>{"DRAGGING"===x.type&&x.dropping&&"transform"===e.propertyName&&(0,l.flushSync)(E)},[E,x]),C=(0,o.Kr)(()=>{let e=function(e){return"DRAGGING"===e.type?function(e){let t=e.dimension.client,{offset:r,combineWith:n,dropping:l}=e,i=!!n,a=null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode,o=!!l,d=o?e5.drop(r,i):e5.moveTo(r);
54return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:l?e2.drop(l.duration):a?e2.snap:e2.fluid,transform:d,opacity:((e,t)=>{if(e)return t?eZ.opacity.drop:eZ.opacity.combining})(i,o),zIndex:o?ra.dropAnimating:ra.dragging,pointerEvents:"none"}}(e):{transform:e5.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}(x);return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":a,"data-rfd-draggable-id":m,style:e,onTransitionEnd:"DRAGGING"===x.type&&x.dropping?N:void 0},dragHandleProps:A}},[a,A,m,x,N,r]),R=(0,o.Kr)(()=>({draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}),[f.droppableId,f.id,f.index,f.type]);return n.createElement(n.Fragment,null,g(C,x.snapshot,R))});function rb(e){return rs(ro).isUsingCloneFor!==e.draggableId||e.isClone?n.createElement(rm,e):null}function rh(e){let t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=!!e.disableInteractiveElementBlocking,l=!!e.shouldRespectForcePress;return n.createElement(rb,(0,c.A)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:l}))}let ry=e=>t=>e===t,rI=ry("scroll"),rv=ry("auto");ry("visible");let rx=(e,t)=>t(e.overflowX)||t(e.overflowY),rD=e=>null==e||e===document.body||e===document.documentElement?null:(e=>{let t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return rx(r,rI)||rx(r,rv)})(e)?e:rD(e.parentElement);var rE=e=>({x:e.scrollLeft,y:e.scrollTop});let rA=e=>!!e&&("fixed"===window.getComputedStyle(e).position||rA(e.parentElement)),rN={passive:!1},rC={passive:!0};var rR=e=>e.shouldPublishImmediately?rN:rC;let rP=e=>e&&e.env.closestScrollable||null;function rw(){}let rO={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};var rS=n.memo(e=>{let t=(0,n.useRef)(null),r=(0,o.hb)(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:l,onTransitionEnd:i,onClose:a,contextId:d}
54=e,[s,u]=(0,n.useState)("open"===e.animate);(0,n.useEffect)(()=>s?"open"!==l?(r(),u(!1),rw):t.current?rw:(t.current=setTimeout(()=>{t.current=null,u(!1)}),r):rw,[l,s,r]);let c=(0,o.hb)(e=>{"height"===e.propertyName&&(i(),"close"===l&&a())},[l,a,i]),p=(({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>{let n=(({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>e||"close"===r?rO:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin})({isAnimatingOpenOnMount:e,placeholder:t,animate:r});return{display:t.display,boxSizing:"border-box",width:n.width,height:n.height,marginTop:n.margin.top,marginRight:n.margin.right,marginBottom:n.margin.bottom,marginLeft:n.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?e2.placeholder:null}})({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return n.createElement(e.placeholder.tagName,{style:p,"data-rfd-placeholder-context-id":d,onTransitionEnd:c,ref:e.innerRef})});function rB(e){return"boolean"==typeof e}function rG(e,t){t.forEach(t=>t(e))}let rL=[function({props:e}){e.droppableId||b(),"string"!=typeof e.droppableId&&b()},function({props:e}){rB(e.isDropDisabled)||b(),rB(e.isCombineEnabled)||b(),rB(e.ignoreContainerClipping)||b()},function({getDroppableRef:e}){rd(e())}],rT=[function({props:e,getPlaceholderRef:t}){if(!e.placeholder||t())return}],r_=[function({props:e}){e.renderClone||b()},function({getPlaceholderRef:e}){e()&&b()}];class rM extends n.PureComponent{constructor(...e){super(...e),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!e.on,data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;let e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}let rF={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||b(),document.body}},rk=e=>{let t,r={...e};for(t in rF)void 0===e[t]&&(r={...r,[t]:rF[t]});return r},r$=(e,t)=>t.draggables[e.draggable.id];var rW=(0,a.Ng)(()=>{let e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=(0,s.A)(e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}})),n=(0,s.A)((n,l,i,a,o,d)=>{let s=o.descriptor.id;if(o.descriptor.droppableId===n){let e=d?{render:d,dragging:r(o.descriptor)}:null;return{placeholder:o.placeholder,shouldAnimatePlaceholder:!1,snapshot:{isDraggingOver:i,draggingOverWith:i?s:null,draggingFromThisWith:s,isUsingPlaceholder:!0},useClone:e}}return l?a?{placeholder:o.placeholder,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:i,draggingOverWith:s,draggingFromThisWith:null,isUsingPlaceholder:!0},useClone:null}:e:t});return(r,l)=>{let i=rk(l),a=i.droppableId,o=i.type,d=!i.isDropDisabled,s=i.renderClone;if(tZ(r)){let e=r.critical;if(o!==e.droppable.type)return t;let l=r$(e,r.dimensions),i=eI(r.impact)===a;return n(a,d,i,i,l,s)}if("DROP_ANIMATING"===r.phase){let e=r.completed;if(o!==e.critical.droppable.type)return t;let l=r$(e.critical,r.dimensions);return n(a,d,rp(e.result)===a,eI(e.impact)===a,l,s)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){let n=r.completed;if(o!==n.critical.droppable.type)return t;let l=eI(n.impact)===a,i=!!(n.impact.at&&"COMBINE"===n.impact.at.type),d=n.critical.droppable.id===a;if(l)return i?e:t;if(d)return e}return t}},{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},(e,t,r)=>({...rk(r),...e,...t}),{context:tU,areStatePropsEqual:rc})(e=>{let t=(0,n.useContext)(tz);t||b();let{contextId:r,isMovementAllowed:i}=t,a=(0,n.useRef)(null),c=(0,n.useRef)(null),{children:p,droppableId:f,type:g,mode:m,direction:h,ignoreContainerClipping:y,isDropDisabled:I,isCombine
54Enabled:v,snapshot:x,useClone:E,updateViewportMaxScroll:A,getContainerForClone:N}=e,C=(0,o.hb)(()=>a.current,[]),R=(0,o.hb)((e=null)=>{a.current=e},[]),P=(0,o.hb)(()=>c.current,[]),w=(0,o.hb)((e=null)=>{c.current=e},[]);!function(e){tX(()=>{rG(e,rL),"standard"===e.props.mode&&rG(e,rT),"virtual"===e.props.mode&&rG(e,r_)})}({props:e,getDroppableRef:C,getPlaceholderRef:P});let O=(0,o.hb)(()=>{i()&&A({maxScroll:tc()})},[i,A]);!function(e){let t=(0,n.useRef)(null),r=rs(tz),l=tj("droppable"),{registry:i,marshal:a}=r,c=tQ(e),p=(0,o.Kr)(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),f=(0,n.useRef)(p),g=(0,o.Kr)(()=>(0,s.A)((e,r)=>{t.current||b(),a.updateDroppableScroll(p.id,{x:e,y:r})}),[p.id,a]),m=(0,o.hb)(()=>{let e=t.current;return e&&e.env.closestScrollable?rE(e.env.closestScrollable):D},[]),h=(0,o.hb)(()=>{let e=m();g(e.x,e.y)},[m,g]),y=(0,o.Kr)(()=>(0,u.A)(h),[h]),I=(0,o.hb)(()=>{let e=t.current,r=rP(e);if(e&&r||b(),e.scrollOptions.shouldPublishImmediately)return void h();y()},[y,h]),v=(0,o.hb)((e,n)=>{var l;t.current&&b();let i=c.current,a=i.getDroppableRef();a||b();let o={closestScrollable:rD(l=a),isFixedOnPage:rA(l)},s={ref:a,descriptor:p,env:o,scrollOptions:n};t.current=s;let u=(({ref:e,descriptor:t,env:r,windowScroll:n,direction:l,isDropDisabled:i,isCombineEnabled:a,shouldClipSubject:o})=>{let s=r.closestScrollable,u=((e,t)=>{let r=(0,d.YH)(e);if(!t||e!==t)return r;let n=r.paddingBox.top-t.scrollTop,l=r.paddingBox.left-t.scrollLeft,i=n+t.scrollHeight,a=l+t.scrollWidth,o=(0,d.fT)({top:n,right:a,bottom:i,left:l},r.border);return(0,d.ge)({borderBox:o,margin:r.margin,border:r.border,padding:r.padding})})(e,s),c=(0,d.SQ)(u,n),p=(()=>
54{if(!s)return null;let e=(0,d.YH)(s),t={scrollHeight:s.scrollHeight,scrollWidth:s.scrollWidth};return{client:e,page:(0,d.SQ)(e,n),scroll:rE(s),scrollSize:t,shouldClipSubject:o}})();return(({descriptor:e,isEnabled:t,isCombineEnabled:r,isFixedOnPage:n,direction:l,client:i,page:a,closest:o})=>{let d=(()=>{if(!o)return null;let{scrollSize:e,client:t}=o,r=ts({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:o.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:o.shouldClipSubject,scroll:{initial:o.scroll,current:o.scroll,max:r,diff:{value:D,displacement:D}}}})(),s="vertical"===l?J:X,u=G({page:a,withPlaceholder:null,axis:s,frame:d});return{descriptor:e,isCombineEnabled:r,isFixedOnPage:n,axis:s,isEnabled:t,client:i,page:a,frame:d,subject:u}})({descriptor:t,isEnabled:!i,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:l,client:u,page:c,closest:p})})({ref:a,descriptor:p,env:o,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),f=o.closestScrollable;return f&&(f.setAttribute(tB.contextId,r.contextId),f.addEventListener("scroll",I,rR(s.scrollOptions))),u},[r.contextId,p,I,c]),x=(0,o.hb)(()=>{let e=t.current,r=rP(e);return e&&r||b(),rE(r)},[]),E=(0,o.hb)(()=>{let e=t.current;e||b();let r=rP(e);t.current=null,r&&(y.cancel(),r.removeAttribute(tB.contextId),r.removeEventListener("scroll",I,rR(e.scrollOptions)))},[I,y]),A=(0,o.hb)(e=>{let r=t.current;r||b();let n=rP(r);n||b(),n.scrollTop+=e.y,n.scrollLeft+=e.x},[]),N=(0,o.Kr)(()=>({getDimensionAndWatchScroll:v,getScrollWhileDragging:x,dragStopped:E,scroll:A}),[E,v,x,A]),C=(0,o.Kr)(()=>({uniqueId:l,descriptor:p,callbacks:N}),[N,p,l]);tL(()=>(f.current=C.descriptor,i.droppable.register(C),()=>{t.current&&E(),i.droppable.unregister(C)}),[N,p,E,C,a,i.droppable]),tL(()=>{t.current&&a.updateDroppableIsEnabled(f.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),tL(()=>{t.current&&a.updateDroppableIsCombineEnabled(f.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}({droppableId:f,type:g,mode:m,direction:h,isDropDisabled:I,isCombine
54Enabled:v,ignoreContainerClipping:y,getDroppableRef:C});let S=(0,o.Kr)(()=>n.createElement(rM,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:e,data:t,animate:l})=>n.createElement(rS,{placeholder:t,onClose:e,innerRef:w,animate:l,contextId:r,onTransitionEnd:O})),[r,O,e.placeholder,e.shouldAnimatePlaceholder,w]),B=(0,o.Kr)(()=>({innerRef:R,placeholder:S,droppableProps:{"data-rfd-droppable-id":f,"data-rfd-droppable-context-id":r}}),[r,f,S,R]),L=E?E.dragging.draggableId:null,T=(0,o.Kr)(()=>({droppableId:f,type:g,isUsingCloneFor:L}),[f,L,g]);return n.createElement(ro.Provider,{value:T},p(B,x),function(){if(!E)return null;let{dragging:e,render:t}=E,r=n.createElement(rb,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(r,n)=>t(r,n,e));return l.createPortal(r,N())}())})}}]);
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.