PageSourceSearch

https://cdn.archidekt.com/_next/static/chunks/27c727de-015f19fc30ab2281.js

js archidekt.com collected 2026-09-25 18:53:32 UTC 81,272 bytes, 55 lines download raw bytes

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

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.