PageSourceSearch

https://fossilsketch.org/_next/static/chunks/e1533f8b-ae951bda3dab2c27.js

js fossilsketch.org collected 2026-10-09 00:41:58 UTC 83,830 bytes, 1 lines download raw bytes

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

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.