1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,902769,439119,e=>{"use strict";var t,n,r,l,i,a,o,u,s,d,c,f,h,g,p,v,b,m,y,w=e.i(485954),x=e.i(6396),E=e.i(998518);let D={display:"none"};function C(e){let{id:t,value:n}=e;return w.default.createElement("div",{id:t,style:D},n)}function S(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return w.default.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let M=(0,w.createContext)(null),R={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},L={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function O(e){var t;let n,{announcements:r=L,container:l,hiddenTextDescribedById:i,screenReaderInstructions:a=R}=e,{announce:o,announcement:u}=function(){let[e,t]=(0,w.useState)("");return{announce:(0,w.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),s=(0,E.useUniqueId)("DndLiveRegion"),[d,c]=(0,w.useState)(!1);if((0,w.useEffect)(()=>{c(!0)},[]),t=(0,w.useMemo)(()=>({onDragStart(e){let{active:t}=e;o(r.onDragStart({active:t}))},onDragMove(e){let{active:t,over:n}=e;r.onDragMove&&o(r.onDragMove({active:t,over:n}))},onDragOver(e){let{active:t,over:n}=e;o(r.onDragOver({active:t,over:n}))},onDragEnd(e){let{active:t,over:n}=e;o(r.onDragEnd({active:t,over:n}))},onDragCancel(e){let{active:t,over:n}=e;o(r.onDragCancel({active:t,over:n}))}}),[o,r]),n=(0,w.useContext)(M),(0,w.useEffect)(()=>{if(!n)throw Error("useDndMonitor must be used within a children of <DndContext>");return n(t)},[t,n]),!d)return null;let f=w.default.createElement(w.default.Fragment,null,w.default.createElement(C,{id:i,value:a.draggable}),w.default.createElement(S,{id:s,announcement:u}));return l?(0,x.createPortal)(f,l):f}function T(){}(t=d||(d={})).DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable";let I=Object.freeze({x:0,y:0});function k(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function N(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function P(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function A(e){let{left:t,top:n,height:r,width:l}=e;return[{x:t,y:n},{x:t+l,y:n},{x:t,y:n+r},{x:t+l,y:n+r}]}function z(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}function U(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}let B=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=A(t),i=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=A(r),a=Number((l.reduce((e,t,r)=>e+k(n[r],t),0)/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:a}})}}return i.sort(N)},W=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=[];for(let e of r){let{id:r}=e,i=n.get(r);if(i){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),l=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height);if(r<l&&n<i){let a=t.width*t.height,o=e.width*e.height,u=(l-r)*(i-n);return Number((u/(a+o-u)).toFixed(4))}return 0}(i,t);n>0&&l.push({id:r,data:{droppableContainer:e,value:n}})}}return l.sort(P)};function F(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:I}let K=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((e,t)=>
1({...e,top:e.top+ +t.y,bottom:e.bottom+ +t.y,left:e.left+ +t.x,right:e.right+ +t.x}),{...e})};function X(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let Y={ignoreTransform:!1};function j(e,t){void 0===t&&(t=Y);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=(0,E.getWindow)(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=X(t);if(!r)return e;let{scaleX:l,scaleY:i,x:a,y:o}=r,u=e.left-a-(1-l)*parseFloat(n),s=e.top-o-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=l?e.width/l:e.width,c=i?e.height/i:e.height;return{width:d,height:c,top:s,right:u+d,bottom:s+c,left:u}}(n,t,r))}let{top:r,left:l,width:i,height:a,bottom:o,right:u}=n;return{top:r,left:l,width:i,height:a,bottom:o,right:u}}function H(e){return j(e,{ignoreTransform:!0})}function V(e,t){let n=[];return e?function r(l){var i,a;let o;if(null!=t&&n.length>=t||!l)return n;if((0,E.isDocument)(l)&&null!=l.scrollingElement&&!n.includes(l.scrollingElement))return n.push(l.scrollingElement),n;if(!(0,E.isHTMLElement)(l)||(0,E.isSVGElement)(l)||n.includes(l))return n;let u=(0,E.getWindow)(e).getComputedStyle(l);return(l!==e&&(void 0===(i=u)&&(i=(0,E.getWindow)(l).getComputedStyle(l)),o=/(auto|scroll|overlay)/,["overflow","overflowX","overflowY"].some(e=>{let t=i[e];return"string"==typeof t&&o.test(t)}))&&n.push(l),void 0===(a=u)&&(a=(0,E.getWindow)(l).getComputedStyle(l)),"fixed"===a.position)?n:r(l.parentNode)}(e):n}function q(e){let[t]=V(e,1);return null!=t?t:null}function J(e){return E.canUseDOM&&e?(0,E.isWindow)(e)?e:(0,E.isNode)(e)?(0,E.isDocument)(e)||e===(0,E.getOwnerDocument)(e).scrollingElement?window:(0,E.isHTMLElement)(e)?e:null:null:null}function _(e){return(0,E.isWindow)(e)?e.scrollX:e.scrollLeft}function G(e){return(0,E.isWindow)(e)?e.scrollY:e.scrollTop}function Q(e){return{x:_(e),y:G(e)}}function Z(e){return!!E.canUseDOM&&!!e&&e===document.scrollingElement}function $(e){let t={x:0,y:0},n=Z(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},l=e.scrollTop<=t.y,i=e.scrollLeft<=t.x;return{isTop:l,isLeft:i,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(n=c||(c={}))[n.Forward=1]="Forward",n[n.Backward=-1]="Backward";let ee={x:.2,y:.2};function et(e){return e.reduce((e,t)=>(0,E.add)(e,Q(t)),I)}function en(e,t){if(void 0===t&&(t=j),!e)return;let{top:n,left:r,bottom:l,right:i}=t(e);q(e)&&(l<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let er=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+_(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+G(t),0)}]];class el{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=V(t),r=et(n);for(const[t,l,i]of(this.rect={...e},this.width=e.width,this.height=e.height,er))for(const e of l)Object.defineProperty(this,e,{get:()=>{let l=i(n),a=r[t]-l;return this.rect[e]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ei{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ea(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function eo(e){e.preventDefault()}function eu(e){e.stopPropagation()}(r=f||(f={})).Click="click",r.DragStart="dragstart",r.Keydown="keydown",r.ContextMenu="contextmenu",r.Resize="resize",r.SelectionChange="selectionchange",r.VisibilityChange="visibilitychange",(l=h||(h={})).Space="Space",l.Down="ArrowDown",l.Right="ArrowRight",l.Left="ArrowLeft",l.Up="ArrowUp",l.Esc="Escape",l.Enter="Enter",l.Tab="Tab";let es={start:[h.Space,h.Enter],cancel:[h.Esc],end:[h.Space,h.Enter,h.Tab]},ed=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case h.Right:return{...n,x:n.x+25};case h.Left:return{...n,x:n.x-25};case h.Down:return{...n,y:n.y+25};case h.Up:return{...n,y:n.y-25}}};class ec{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new ei((0,E.getOwnerDocument)(t)),this.windowListeners=new ei((0,E.getWindow)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(f.Resize,this.handleCancel),this.windowListeners.add(f.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(f.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&en(n),t(I)}handleKeyDown(e){if((0,E.isKeyboardEvent)(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:l=es,coordinateGetter:i=ed,scrollBehavior:a="smooth"}=r,{code:o}=e;if(l.end.includes(o))return void this.handleEnd(e);if(l.cancel.includes(o))return void this.handleCancel(e);let{collisionRect:u}=n.current,s=u?{x:u.left,y:u.top}:I;this.referenceCoordinates||(this.referenceCoordinates=s);let d=i(e,{active:t,context:n.current,currentCoordinates:s});if(d){let t=(0,E.subtract)(d,s),r={x:0,y:0},{scrollableAncestors:l}=n.current;for(let n of l){let l=e.code,{isTop:i,isRight:o,isLeft:u,isBottom:s,maxScroll:c,minScroll:f}=$(n),g=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHe
1ight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:l}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:l,width:e.clientWidth,height:e.clientHeight}}(n),p={x:Math.min(l===h.Right?g.right-g.width/2:g.right,Math.max(l===h.Right?g.left:g.left+g.width/2,d.x)),y:Math.min(l===h.Down?g.bottom-g.height/2:g.bottom,Math.max(l===h.Down?g.top:g.top+g.height/2,d.y))},v=l===h.Right&&!o||l===h.Left&&!u,b=l===h.Down&&!s||l===h.Up&&!i;if(v&&p.x!==d.x){let e=n.scrollLeft+t.x,i=l===h.Right&&e<=c.x||l===h.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});i?r.x=n.scrollLeft-e:r.x=l===h.Right?n.scrollLeft-c.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(b&&p.y!==d.y){let e=n.scrollTop+t.y,i=l===h.Down&&e<=c.y||l===h.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});i?r.y=n.scrollTop-e:r.y=l===h.Down?n.scrollTop-c.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,(0,E.add)((0,E.subtract)(d,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ef(e){return!!(e&&"distance"in e)}function eh(e){return!!(e&&"delay"in e)}ec.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=es,onActivation:l}=t,{active:i}=n,{code:a}=e.nativeEvent;if(r.start.includes(a)){let t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==l||l({event:e.nativeEvent}),!0)}return!1}}];class eg{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=(0,E.getWindow)(e);return e instanceof t?e:(0,E.getOwnerDocument)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:l}=e,{target:i}=l;this.props=e,this.events=t,this.document=(0,E.getOwnerDocument)(i),this.documentListeners=new ei(this.document),this.listeners=new ei(n),this.windowListeners=new ei((0,E.getWindow)(i)),this.initialCoordinates=null!=(r=(0,E.getEventCoordinates)(l))?r:I,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(f.Resize,this.handleCancel),this.windowListeners.add(f.DragStart,eo),this.windowListeners.add(f.VisibilityChange,this.handleCancel),this.windowListeners.add(f.ContextMenu,eo),this.documentListeners.add(f.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(eh(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(ef(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(f.Click,eu,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(f.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:l}=this,{onMove:i,options:{activationConstraint:a}}=l;if(!r)return;
1let o=null!=(t=(0,E.getEventCoordinates)(e))?t:I,u=(0,E.subtract)(r,o);if(!n&&a){if(ef(a)){if(null!=a.tolerance&&ea(u,a.tolerance))return this.handleCancel();if(ea(u,a.distance))return this.handleStart()}return eh(a)&&ea(u,a.tolerance)?this.handleCancel():void this.handlePending(a,u)}e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===h.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let ep={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ev extends eg{constructor(e){const{event:t}=e;super(e,ep,(0,E.getOwnerDocument)(t.target))}}ev.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];(i=g||(g={}))[i.RightClick=2]="RightClick";let eb={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class em extends eg{constructor(e){super(e,eb)}static setup(){return window.addEventListener(eb.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(eb.move.name,e)};function e(){}}}em.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:l}=n;return!(l.length>1)&&(null==r||r({event:n}),!0)}}],(a=p||(p={}))[a.Pointer=0]="Pointer",a[a.DraggableRect=1]="DraggableRect",(o=v||(v={}))[o.TreeOrder=0]="TreeOrder",o[o.ReversedTreeOrder=1]="ReversedTreeOrder";let ey={x:{[c.Backward]:!1,[c.Forward]:!1},y:{[c.Backward]:!1,[c.Forward]:!1}};(u=b||(b={}))[u.Always=0]="Always",u[u.BeforeDragging=1]="BeforeDragging",u[u.WhileDragging=2]="WhileDragging",(m||(m={})).Optimized="optimized";let ew=new Map;function ex(e,t){return(0,E.useLazyMemo)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function eE(e){let{callback:t,disabled:n}=e,r=(0,E.useEvent)(t),l=(0,w.useMemo)(()=>{if(n||"u"<typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,w.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}function eD(e){return new el(j(e),e)}function eC(e,t,n){void 0===t&&(t=eD);let[r,l]=(0,w.useState)(null);function i(){l(r=>{if(!e)return null;if(!1===e.isConnected){var l;return null!=(l=null!=r?r:n)?l:null}let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let a=function(e){let{callback:t,disabled:n}=e,r=(0,E.useEvent)(t),l=(0,w.useMemo)(()=>{if(n||"u"<typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,w.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),o=eE({callback:i});return(0,E.useIsomorphicLayoutEffect)(()=>{i(),e?(null==o||o.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==o||o.disconnect(),null==a||a.disconnect())},[e]),r}let eS=[];function eM(e,t){void 0===t&&(t=[]);let n=(0,w.useRef)(null);return(0,w.useEffect)(()=>{n.current=null},t),(0,w.useEffect)(()=>{let t=e!==I;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,E.subtract)(e,n.current):I}function eR(e){return(0,w.useMemo)(()=>{let t,n;return e?(t=e.innerWidth,{top:0,left:0,right:t,bottom:n=e.innerHeight,width:t,height:n}):null},[e])}let eL=[];function eO(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,E.isHTMLElement)(t)?t:e}let eT=[{sensor:ev,options:{}},{sensor:ec,options:{}}],eI={current:{}},ek={draggable:{measure:H},droppable:{measure:H,strategy:b.WhileDragging,frequency:m.Optimized},dragOverlay:{measure:j}};class eN extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let eP={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eN,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:T},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ek,measureDroppableContainers:T,windowRect:null,measuringScheduled:!1},eA={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:T,draggableNodes:new Map,over:null,measureDroppableContainers:T},ez=(0,w.createContext)(eA),eU=(0,w.createContext)(eP);function eB(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eN}}}function eW(e,t){switch(t.type){case d.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case d.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case d.DragEnd:case d.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case d.RegisterDroppable:{let{element:n}=t,{id:r}
1=n,l=new eN(e.droppable.containers);return l.set(r,n),{...e,droppable:{...e.droppable,containers:l}}}case d.SetDroppableDisabled:{let{id:n,key:r,disabled:l}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new eN(e.droppable.containers);return a.set(n,{...i,disabled:l}),{...e,droppable:{...e.droppable,containers:a}}}case d.UnregisterDroppable:{let{id:n,key:r}=t,l=e.droppable.containers.get(n);if(!l||r!==l.key)return e;let i=new eN(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function eF(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:l}=(0,w.useContext)(ez),i=(0,E.usePrevious)(r),a=(0,E.usePrevious)(null==n?void 0:n.id);return(0,w.useEffect)(()=>{if(!t&&!r&&i&&null!=a){if(!(0,E.isKeyboardEvent)(i)||document.activeElement===i.target)return;let e=l.get(a);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=(0,E.findFirstFocusableNode)(e);if(t){t.focus();break}}})}},[r,t,l,a,i]),null}function eK(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let eX=(0,w.createContext)({...I,scaleX:1,scaleY:1});(s=y||(y={}))[s.Uninitialized=0]="Uninitialized",s[s.Initializing=1]="Initializing",s[s.Initialized=2]="Initialized";let eY=(0,w.memo)(function(e){var t,n,r,l,i,a,o,u;let s,f,h,g,m,D,C,S,{id:R,accessibility:L,autoScroll:T=!0,children:k,sensors:N=eT,collisionDetection:P=W,measuring:A,modifiers:U,...B}=e,[X,Y]=(0,w.useReducer)(eW,void 0,eB),[H,_]=function(){let[e]=(0,w.useState)(()=>new Set),t=(0,w.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,w.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[G,en]=(0,w.useState)(y.Uninitialized),er=G===y.Initialized,{draggable:{active:ei,nodes:ea,translate:eo},droppable:{containers:eu}}=X,es=null!=ei?ea.get(ei):null,ed=(0,w.useRef)({initial:null,translated:null}),ec=(0,w.useMemo)(()=>{var e;return null!=ei?{id:ei,data:null!=(e=null==es?void 0:es.data)?e:eI,rect:ed}:null},[ei,es]),ef=(0,w.useRef)(null),[eh,eg]=(0,w.useState)(null),[ep,ev]=(0,w.useState)(null),eb=(0,E.useLatestValue)(B,Object.values(B)),em=(0,E.useUniqueId)("DndDescribedBy",R),eD=(0,w.useMemo)(()=>eu.getEnabled(),[eu]),eN=(0,w.useMemo)(()=>({draggable:{...ek.draggable,...null==A?void 0:A.draggable},droppable:{...ek.droppable,...null==A?void 0:A.droppable},dragOverlay:{...ek.dragOverlay,...null==A?void 0:A.dragOverlay}}),[null==A?void 0:A.draggable,null==A?void 0:A.droppable,null==A?void 0:A.dragOverlay]),{droppableRects:eP,measureDroppableContainers:eA,measuringScheduled:eY}=function(e,t){let{dragging:n,dependencies:r,config:l}=t,[i,a]=(0,w.useState)(null),{frequency:o,measure:u,strategy:s}=l,d=(0,w.useRef)(e),c=function(){switch(s){case b.Always:return!1;case b.BeforeDragging:return n;default:return!n}}(),f=(0,E.useLatestValue)(c),h=(0,w.useCallback)(function(e){void 0===e&&(e=[]),f.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),g=(0,w.useRef)(null),p=(0,E.useLazyMemo)(t=>{if(c&&!n)return ew;if(!t||t===ew||d.current!==e||null!=i){let t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new el(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,i,n,c,u]);return(0,w.useEffect)(()=>{d.current=e},[e]),(0,w.useEffect)(()=>{c||h()},[n,c]),(0,w.useEffect)(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),(0,w.useEffect)(()=>{c||"number"!=typeof o||null!==g.current||(g.current=setTimeout(()=>{h(),g.current=null},o))},[o,c,h,...r]),{droppableRects:p,measureDroppableContainers:h,measuringScheduled:null!=i}}(eD,{dragging:er,dependencies:[eo.x,eo.y],config:eN.droppable}),ej=(m=(g=null!=ei?ea.get(ei):void 0)?g.node.current:null,(0,E.useLazyMemo)(e=>{var t;return null==ei?null:null!=(t=null!=m?m:e)?t:null},[m,ei])),eH=(0,w.useMemo)(()=>ep?(0,E.getEventCoordinates)(ep):null,[ep]),eV=(s=(null==eh?void 0:eh.autoScrollEnabled)===!1,f="object"==typeof T?!1===T.enabled:!1===T,h=er&&!s&&!f,"object"==typeof T?{...T,enabled:h}:{enabled:h}),eq=ex(ej,eN.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:l=!0}=e,i=(0,w.useRef)(!1),{x:a,y:o}="boolean"==typeof l?{x:l,y:l}:l;(0,E.useIsomorphicLayoutEffect)(()=>
1{if(!a&&!o||!t){i.current=!1;return}if(i.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let l=F(n(e),r);if(a||(l.x=0),o||(l.y=0),i.current=!0,Math.abs(l.x)>0||Math.abs(l.y)>0){let t=q(e);t&&t.scrollBy({top:l.y,left:l.x})}},[t,a,o,r,n])}({activeNode:null!=ei?ea.get(ei):null,config:eV.layoutShiftCompensation,initialRect:eq,measure:eN.draggable.measure});let eJ=eC(ej,eN.draggable.measure,eq),e_=eC(ej?ej.parentElement:null),eG=(0,w.useRef)({activatorEvent:null,active:null,activeNode:ej,collisionRect:null,collisions:null,droppableRects:eP,draggableNodes:ea,draggingNode:null,draggingNodeRect:null,droppableContainers:eu,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eQ=eu.getNodeFor(null==(t=eG.current.over)?void 0:t.id),eZ=function(e){let{measure:t}=e,[n,r]=(0,w.useState)(null),l=eE({callback:(0,w.useCallback)(e=>{for(let{target:n}of e)if((0,E.isHTMLElement)(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),i=(0,w.useCallback)(e=>{let n=eO(e);null==l||l.disconnect(),n&&(null==l||l.observe(n)),r(n?t(n):null)},[t,l]),[a,o]=(0,E.useNodeRef)(i);return(0,w.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}({measure:eN.dragOverlay.measure}),e$=null!=(n=eZ.nodeRef.current)?n:ej,e0=er?null!=(r=eZ.rect)?r:eJ:null,e1=!!(eZ.nodeRef.current&&eZ.rect),e2=(D=ex(i=e1?null:eJ),F(i,D)),e5=eR(e$?(0,E.getWindow)(e$):null),e9=(a=er?null!=eQ?eQ:ej:null,C=(0,w.useRef)(a),S=(0,E.useLazyMemo)(e=>a?e&&e!==eS&&a&&C.current&&a.parentNode===C.current.parentNode?e:V(a):eS,[a]),(0,w.useEffect)(()=>{C.current=a},[a]),S),e4=function(e,t){void 0===t&&(t=j);let[n]=e,r=eR(n?(0,E.getWindow)(n):null),[l,i]=(0,w.useState)(eL);function a(){i(()=>e.length?e.map(e=>Z(e)?r:new el(t(e),e)):eL)}let o=eE({callback:a});return(0,E.useIsomorphicLayoutEffect)(()=>{null==o||o.disconnect(),a(),e.forEach(e=>null==o?void 0:o.observe(e))},[e]),l}(e9),e3=eK(U,{transform:{x:eo.x-e2.x,y:eo.y-e2.y,scaleX:1,scaleY:1},activatorEvent:ep,active:ec,activeNodeRect:eJ,containerNodeRect:e_,draggingNodeRect:e0,over:eG.current.over,overlayNodeRect:eZ.rect,scrollableAncestors:e9,scrollableAncestorRects:e4,windowRect:e5}),e6=eH?(0,E.add)(eH,eo):null,e7=function(e){let[t,n]=(0,w.useState)(null),r=(0,w.useRef)(e),l=(0,w.useCallback)(e=>{let t=J(e.target);t&&n(e=>e?(e.set(t,Q(t)),new Map(e)):null)},[]);return(0,w.useEffect)(()=>{let t=r.current;if(e!==t){i(t);let a=e.map(e=>{let t=J(e);return t?(t.addEventListener("scroll",l,{passive:!0}),[t,Q(t)]):null}).filter(e=>null!=e);n(a.length?new Map(a):null),r.current=e}return()=>{i(e),i(t)};function i(e){e.forEach(e=>{let t=J(e);null==t||t.removeEventListener("scroll",l)})}},[l,e]),(0,w.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,E.add)(e,t),I):et(e):I,[e,t])}(e9),e8=eM(e7),te=eM(e7,[eJ]),tt=(0,E.add)(e3,e8),tn=e0?K(e0,e3):null,tr=ec&&tn?P({active:ec,collisionRect:tn,droppableRects:eP,droppableContainers:eD,pointerCoordinates:e6}):null,tl=z(tr,"id"),[ti,ta]=(0,w.useState)(null),to=(o=e1?e3:(0,E.add)(e3,te),u=null!=(l=null==ti?void 0:ti.rect)?l:null,{...o,scaleX:u&&eJ?u.width/eJ.width:1,scaleY:u&&eJ?u.height/eJ.height:1}),tu=(0,w.useRef)(null),ts=(0,w.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==ef.current)return;let l=ea.get(ef.current);if(!l)return;let i=e.nativeEvent,a=new n({active:ef.current,activeNode:l,event:i,options:r,context:eG,onAbort(e){if(!ea.get(e))return;let{onDragAbort:t}=eb.current,n={id:e};null==t||t(n),H({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!ea.get(e))return;let{onDragPending:l}=eb.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==l||l(i),H({type:"onDragPending",event:i})},onStart(e){let t=ef.current;if(null==t)return;let n=ea.get(t);if(!n)return;let{onDragStart:r}=eb.current,l={activatorEvent:i,active:{id:t,data:n.data,rect:ed}};(0,x.unstable_batchedUpdates)(()=>{null==r||r(l),en(y.Initializing),Y({type:d.DragStart,initialCoordinates:e,active:t}),H({type:"onDragStart",event:l}),eg(tu.current),ev(i)})},onMove(e){Y({type:d.DragMove,coordinates:e})},onEnd:o(d.DragEnd),onCancel:o(d.DragCancel)});function o(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:l}=eG.current,a=null;if(t&&l){let{cancelDrop:o}=eb.current;a={activatorEvent:i,active:t,collisions:n,delta:l,over:r},e===d.DragEnd&&"function"==typeof o&&await Promise.resolve(o(a))&&(e=d.DragCancel)}ef.current=null,(0,x.unstable_batchedUpdates)(()=>{Y({type:e}),en(y.Uninitialized),ta(null),eg(null),ev(null),tu.current=null;let t=e===d.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=eb.current[t];null==e||e(a),H({type:t,event:a})}})}}tu.current=a},[ea]),td=(0,w.useCallback)((e,t)=>(n,r)=>{let l=n.nativeEvent,i=ea.get(r);null!==ef.current||!i||l.dndKit||l.defaultPrevented||!0===e(n,t.options,{active:i})&&(l.dndKit={capturedBy:t.sensor},ef.current=r,ts(n,t))},[ea,ts]),tc=(0,w.useMemo)(()=>N.reduce((e,t)=>
1{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:td(e.handler,t)}))]},[]),[N,td]);(0,w.useEffect)(()=>{if(!E.canUseDOM)return;let e=N.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},N.map(e=>{let{sensor:t}=e;return t})),(0,E.useIsomorphicLayoutEffect)(()=>{eJ&&G===y.Initializing&&en(y.Initialized)},[eJ,G]),(0,w.useEffect)(()=>{let{onDragMove:e}=eb.current,{active:t,activatorEvent:n,collisions:r,over:l}=eG.current;if(!t||!n)return;let i={active:t,activatorEvent:n,collisions:r,delta:{x:tt.x,y:tt.y},over:l};(0,x.unstable_batchedUpdates)(()=>{null==e||e(i),H({type:"onDragMove",event:i})})},[tt.x,tt.y]),(0,w.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:l}=eG.current;if(!e||null==ef.current||!t||!l)return;let{onDragOver:i}=eb.current,a=r.get(tl),o=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,u={active:e,activatorEvent:t,collisions:n,delta:{x:l.x,y:l.y},over:o};(0,x.unstable_batchedUpdates)(()=>{ta(o),null==i||i(u),H({type:"onDragOver",event:u})})},[tl]),(0,E.useIsomorphicLayoutEffect)(()=>{eG.current={activatorEvent:ep,active:ec,activeNode:ej,collisionRect:tn,collisions:tr,droppableRects:eP,draggableNodes:ea,draggingNode:e$,draggingNodeRect:e0,droppableContainers:eu,over:ti,scrollableAncestors:e9,scrollAdjustedTranslate:tt},ed.current={initial:e0,translated:tn}},[ec,ej,tr,tn,ea,e$,e0,eP,eu,ti,e9,tt]),function(e){let{acceleration:t,activator:n=p.Pointer,canScroll:r,draggingRect:l,enabled:i,interval:a=5,order:o=v.TreeOrder,pointerCoordinates:u,scrollableAncestors:s,scrollableAncestorRects:d,delta:f,threshold:h}=e,g=function(e){let{delta:t,disabled:n}=e,r=(0,E.usePrevious)(t);return(0,E.useLazyMemo)(e=>{if(n||!r||!e)return ey;let l={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[c.Backward]:e.x[c.Backward]||-1===l.x,[c.Forward]:e.x[c.Forward]||1===l.x},y:{[c.Backward]:e.y[c.Backward]||-1===l.y,[c.Forward]:e.y[c.Forward]||1===l.y}}},[n,t,r])}({delta:f,disabled:!i}),[b,m]=(0,E.useInterval)(),y=(0,w.useRef)({x:0,y:0}),x=(0,w.useRef)({x:0,y:0}),D=(0,w.useMemo)(()=>{switch(n){case p.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case p.DraggableRect:return l}},[n,l,u]),C=(0,w.useRef)(null),S=(0,w.useCallback)(()=>{let e=C.current;if(!e)return;let t=y.current.x*x.current.x,n=y.current.y*x.current.y;e.scrollBy(t,n)},[]),M=(0,w.useMemo)(()=>o===v.TreeOrder?[...s].reverse():s,[o,s]);(0,w.useEffect)(()=>{if(!i||!s.length||!D)return void m();for(let e of M){if((null==r?void 0:r(e))===!1)continue;let n=d[s.indexOf(e)];if(!n)continue;let{direction:l,speed:i}=function(e,t,n,r,l){let{top:i,left:a,right:o,bottom:u}=n;void 0===r&&(r=10),void 0===l&&(l=ee);
1let{isTop:s,isBottom:d,isLeft:f,isRight:h}=$(e),g={x:0,y:0},p={x:0,y:0},v={height:t.height*l.y,width:t.width*l.x};return!s&&i<=t.top+v.height?(g.y=c.Backward,p.y=r*Math.abs((t.top+v.height-i)/v.height)):!d&&u>=t.bottom-v.height&&(g.y=c.Forward,p.y=r*Math.abs((t.bottom-v.height-u)/v.height)),!h&&o>=t.right-v.width?(g.x=c.Forward,p.x=r*Math.abs((t.right-v.width-o)/v.width)):!f&&a<=t.left+v.width&&(g.x=c.Backward,p.x=r*Math.abs((t.left+v.width-a)/v.width)),{direction:g,speed:p}}(e,n,D,t,h);for(let e of["x","y"])g[e][l[e]]||(i[e]=0,l[e]=0);if(i.x>0||i.y>0){m(),C.current=e,b(S,a),y.current=i,x.current=l;return}}y.current={x:0,y:0},x.current={x:0,y:0},m()},[t,S,r,m,i,a,JSON.stringify(D),JSON.stringify(g),b,s,M,d,JSON.stringify(h)])}({...eV,delta:eo,draggingRect:tn,pointerCoordinates:e6,scrollableAncestors:e9,scrollableAncestorRects:e4});let tf=(0,w.useMemo)(()=>({active:ec,activeNode:ej,activeNodeRect:eJ,activatorEvent:ep,collisions:tr,containerNodeRect:e_,dragOverlay:eZ,draggableNodes:ea,droppableContainers:eu,droppableRects:eP,over:ti,measureDroppableContainers:eA,scrollableAncestors:e9,scrollableAncestorRects:e4,measuringConfiguration:eN,measuringScheduled:eY,windowRect:e5}),[ec,ej,eJ,ep,tr,e_,eZ,ea,eu,eP,ti,eA,e9,e4,eN,eY,e5]),th=(0,w.useMemo)(()=>({activatorEvent:ep,activators:tc,active:ec,activeNodeRect:eJ,ariaDescribedById:{draggable:em},dispatch:Y,draggableNodes:ea,over:ti,measureDroppableContainers:eA}),[ep,tc,ec,eJ,Y,em,ea,ti,eA]);return w.default.createElement(M.Provider,{value:_},w.default.createElement(ez.Provider,{value:th},w.default.createElement(eU.Provider,{value:tf},w.default.createElement(eX.Provider,{value:to},k)),w.default.createElement(eF,{disabled:(null==L?void 0:L.restoreFocus)===!1})),w.default.createElement(O,{...L,hiddenTextDescribedById:em}))}),ej=(0,w.createContext)(null),eH="button";function eV(e){let{id:t,data:n,disabled:r=!1,attributes:l}=e,i=(0,E.useUniqueId)("Draggable"),{activators:a,activatorEvent:o,active:u,activeNodeRect:s,ariaDescribedById:d,draggableNodes:c,over:f}=(0,w.useContext)(ez),{role:h=eH,roleDescription:g="draggable",tabIndex:p=0}=null!=l?l:{},v=(null==u?void 0:u.id)===t,b=(0,w.useContext)(v?eX:ej),[m,y]=(0,E.useNodeRef)(),[x,D]=(0,E.useNodeRef)(),C=(0,w.useMemo)(()=>a.reduce((e,n)=>{let{eventName:r,handler:l}=n;return e[r]=e=>{l(e,t)},e},{}),[a,t]),S=(0,E.useLatestValue)(n);return(0,E.useIsomorphicLayoutEffect)(()=>(c.set(t,{id:t,key:i,node:m,activatorNode:x,data:S}),()=>{let e=c.get(t);e&&e.key===i&&c.delete(t)}),[c,t]),{active:u,activatorEvent:o,activeNodeRect:s,attributes:(0,w.useMemo)(()=>({role:h,tabIndex:p,"aria-disabled":r,"aria-pressed":!!v&&h===eH||void 0,"aria-roledescription":g,"aria-describedby":d.draggable}),[r,h,p,v,g,d.draggable]),isDragging:v,listeners:r?void 0:C,node:m,over:f,setNodeRef:y,setActivatorNodeRef:D,transform:b}}function eq(){return(0,w.useContext)(eU)}let eJ={timeout:25};function e_(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:l}=e,i=(0,E.useUniqueId)("Droppable"),{active:a,dispatch:o,over:u,measureDroppableContainers:s}=(0,w.useContext)(ez),c=(0,w.useRef)({disabled:n}),f=(0,w.useRef)(!1),h=(0,w.useRef)(null),g=(0,w.useRef)(null),{disabled:p,updateMeasurementsFor:v,timeout:b}={...eJ,...l},m=(0,E.useLatestValue)(null!=v?v:r),y=eE({callback:(0,w.useCallback)(()=>{if(!f.current){f.current=!0;return}null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{s(Array.isArray(m.current)?m.current:[m.current]),g.current=null},b)},[b]),disabled:p||!a}),x=(0,w.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),f.current=!1),e&&y.observe(e))},[y]),[D,C]=(0,E.useNodeRef)(x),S=(0,E.useLatestValue)(t);return(0,w.useEffect)(()=>{y&&D.current&&(y.disconnect(),f.current=!1,y.observe(D.current))},[D,y]),(0,w.useEffect)(()=>(o({type:d.RegisterDroppable,element:{id:r,key:i,disabled:n,node:D,rect:h,data:S}}),()=>o({type:d.UnregisterDroppable,key:i,id:r})),[r]),(0,w.useEffect)(()=>{n!==c.current.disabled&&(o({type:d.SetDroppableDisabled,id:r,key:i,disabled:n}),c.current.disabled=n)},[r,i,n,o]),{active:a,rect:h,isOver:(null==u?void 0:u.id)===r,node:D,over:u,setNodeRef:C}}function eG(e){let{animation:t,children:n}=e,[r,l]=(0,w.useState)(null),[i,a]=(0,w.useState)(null),o=(0,E.usePrevious)(n);return n||r||!o||l(o),(0,E.useIsomorphicLayoutEffect)(()=>
1{if(!i)return;let e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;null==e||null==n?l(null):Promise.resolve(t(n,i)).then(()=>{l(null)})},[t,r,i]),w.default.createElement(w.default.Fragment,null,n,r?(0,w.cloneElement)(r,{ref:a}):null)}let eQ={x:0,y:0,scaleX:1,scaleY:1};function eZ(e){let{children:t}=e;return w.default.createElement(ez.Provider,{value:eA},w.default.createElement(eX.Provider,{value:eQ},t))}let e$={position:"fixed",touchAction:"none"},e0=e=>(0,E.isKeyboardEvent)(e)?"transform 250ms ease":void 0,e1=(0,w.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:l,children:i,className:a,rect:o,style:u,transform:s,transition:d=e0}=e;if(!o)return null;let c=l?s:{...s,scaleX:1,scaleY:1},f={...e$,width:o.width,height:o.height,top:o.top,left:o.left,transform:E.CSS.Transform.toString(c),transformOrigin:l&&r?function(e,t){let n=(0,E.getEventCoordinates)(e);if(!n)return"0 0";let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}(r,o):void 0,transition:"function"==typeof d?d(r):d,...u};return w.default.createElement(n,{className:a,style:f,ref:t},i)}),e2=e=>t=>{let{active:n,dragOverlay:r}=t,l={},{styles:i,className:a}=e;if(null!=i&&i.active)for(let[e,t]of Object.entries(i.active))void 0!==t&&(l[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(let[e,t]of Object.entries(i.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(let[e,t]of Object.entries(l))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},e5={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:E.CSS.Transform.toString(t)},{transform:E.CSS.Transform.toString(n)}]},sideEffects:e2({styles:{active:{opacity:"0"}}})},e9=0,e4=w.default.memo(e=>{var t;let{adjustScale:n=!1,children:r,dropAnimation:l,style:i,transition:a,modifiers:o,wrapperElement:u="div",className:s,zIndex:d=999}=e,{activatorEvent:c,active:f,activeNodeRect:h,containerNodeRect:g,draggableNodes:p,droppableContainers:v,dragOverlay:b,over:m,measuringConfiguration:y,scrollableAncestors:x,scrollableAncestorRects:D,windowRect:C}=eq(),S=(0,w.useContext)(eX),M=(t=null==f?void 0:f.id,(0,w.useMemo)(()=>{if(null!=t)return++e9},[t])),R=eK(o,{activatorEvent:c,active:f,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:b.rect,over:m,overlayNodeRect:b.rect,scrollableAncestors:x,scrollableAncestorRects:D,transform:S,windowRect:C}),L=ex(h),O=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:l}=e;return(0,E.useEvent)((e,i)=>{if(null===t)return;let a=n.get(e);if(!a)return;let o=a.node.current;if(!o)return;let u=eO(i);if(!u)return;let{transform:s}=(0,E.getWindow)(i).getComputedStyle(i),d=X(s);if(!d)return;let c="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:l}={...e5,...e};return e=>{let{active:i,dragOverlay:a,transform:o,...u}=e;if(!t)return;let s={x:a.rect.left-i.rect.left,y:a.rect.top-i.rect.top},d={scaleX:1!==o.scaleX?i.rect.width*o.scaleX/a.rect.width:1,scaleY:1!==o.scaleY?i.rect.height*o.scaleY/a.rect.height:1},c={x:o.x-s.x,y:o.y-s.y,...d},f=l({...u,active:i,dragOverlay:a,transform:{initial:o,final:c}}),[h]=f,g=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(g))return;let p=null==r?void 0:r({active:i,dragOverlay:a,...u}),v=a.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{v.onfinish=()=>{null==p||p(),e()}})}}(t);return en(o,l.draggable.measure),c({active:{id:e,data:a.data,node:o,rect:l.draggable.measure(o)},draggableNodes:n,dragOverlay:{node:i,rect:l.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:l,transform:d})})}({config:l,draggableNodes:p,droppableContainers:v,measuringConfiguration:y}),T=L?b.setRef:void 0;return w.default.createElement(eZ,null,w.default.createElement(eG,{animation:O},f&&M?w.default.createElement(e1,{key:M,id:f.id,ref:T,as:u,activatorEvent:c,adjustScale:n,className:s,transition:a,rect:L,style:{zIndex:d,...i},transform:R},r):null))});function e3(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function e6(e){return null!==e&&e>=0}e.s(["DndContext",0,eY,"DragOverlay",0,e4,"KeyboardCode",0,h,"KeyboardSensor",0,ec,"MeasuringStrategy",0,b,"PointerSensor",0,ev,"TouchSensor",0,em,"closestCenter",0,e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=U(t,t.left,t.top),i=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=k(U(r),l);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(N)},"closestCorners",0,B,"defaultDropAnimationSideEffects",0,e2,"getClientRect",0,j,"getFirstCollision",0,z,"getScrollableAncestors",0,V,"pointerWithin",0,e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];let l=[];for(let e of t){let{id:t}=e,i=n.get(t);if(i&&function(e,t){let{top:n,left:r,bottom:l,right:i}=t;return n<=e.y&&e.y<=l&&r<=e.x&&e.x<=i}(r,i)){let n=Number((A(i).reduce((e,t)=>
1e+k(r,t),0)/4).toFixed(4));l.push({id:t,data:{droppableContainer:e,value:n}})}}return l.sort(N)},"rectIntersection",0,W,"useDndContext",0,eq,"useDraggable",0,eV,"useDroppable",0,e_,"useSensor",0,function(e,t){return(0,w.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])},"useSensors",0,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,w.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}],439119);let e7={scaleX:1,scaleY:1},e8=e=>{let{rects:t,activeIndex:n,overIndex:r,index:l}=e,i=e3(t,r,n),a=t[l],o=i[l];return o&&a?{x:o.left-a.left,y:o.top-a.top,scaleX:o.width/a.width,scaleY:o.height/a.height}:null},te={scaleX:1,scaleY:1},tt="Sortable",tn=w.default.createContext({activeIndex:-1,containerId:tt,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:e8,disabled:{draggable:!1,droppable:!1}}),tr=e=>{let{id:t,items:n,activeIndex:r,overIndex:l}=e;return e3(n,r,l).indexOf(t)},tl=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:l,items:i,newIndex:a,previousItems:o,previousContainerId:u,transition:s}=e;return!!s&&!!r&&(o===i||l!==a)&&(!!n||a!==l&&t===u)},ti={duration:200,easing:"ease"},ta="transform",to=E.CSS.Transition.toString({property:ta,duration:0,easing:"linear"}),tu={roleDescription:"sortable"};function ts(e){if(!e)return!1;let t=e.data.current;return!!t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable}let td=[h.Down,h.Right,h.Up,h.Left];function tc(e,t){return!!ts(e)&&!!ts(t)&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}e.s(["SortableContext",0,function(e){let{children:t,id:n,items:r,strategy:l=e8,disabled:i=!1}=e,{active:a,dragOverlay:o,droppableRects:u,over:s,measureDroppableContainers:d}=eq(),c=(0,E.useUniqueId)(tt,n),f=null!==o.rect,h=(0,w.useMemo)(()=>r.map(e=>"object"==typeof e&&"id"in e?e.id:e),[r]),g=null!=a,p=a?h.indexOf(a.id):-1,v=s?h.indexOf(s.id):-1,b=(0,w.useRef)(h),m=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(h,b.current),y=-1!==v&&-1===p||m,x="boolean"==typeof i?{draggable:i,droppable:i}:i;(0,E.useIsomorphicLayoutEffect)(()=>{m&&g&&d(h)},[m,h,g,d]),(0,w.useEffect)(()=>{b.current=h},[h]);let D=(0,w.useMemo)(()=>({activeIndex:p,containerId:c,disabled:x,disableTransforms:y,items:h,overIndex:v,useDragOverlay:f,sortedRects:h.reduce((e,t,n)=>{let r=u.get(t);return r&&(e[n]=r),e},Array(h.length)),strategy:l}),[p,c,x.draggable,x.droppable,y,h,v,u,f,l]);return w.default.createElement(tn.Provider,{value:D},t)},"arrayMove",0,e3,"defaultAnimateLayoutChanges",0,tl,"horizontalListSortingStrategy",0,e=>{var t,n,r,l;let i,a,o,{rects:u,activeNodeRect:s,activeIndex:d,overIndex:c,index:f}=e,h=null!=(t=u[d])?t:s;if(!h)return null;let g=(n=u,r=f,l=d,i=n[r],a=n[r-1],o=n[r+1],i&&(a||o)?l<r?a?i.left-(a.left+a.width):o.left-(i.left+i.width):o?o.left-(i.left+i.width):i.left-(a.left+a.width):0);if(f===d){let e=u[c];return e?{x:d<c?e.left+e.width-(h.left+h.width):e.left-h.left,y:0,...e7}:null}return f>d&&f<=c?{x:-h.width-g,y:0,...e7}:f<d&&f>=c?{x:h.width+g,y:0,...e7}:{x:0,y:0,...e7}},"rectSortingStrategy",0,e8,"sortableKeyboardCoordinates",0,(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:l,droppableContainers:i,over:a,scrollableAncestors:o}}=t;if(td.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];i.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let i=l.get(n.id);if(i)switch(e.code){case h.Down:r.top<i.top&&t.push(n);break;case h.Up:r.top>i.top&&t.push(n);break;case h.Left:r.left>i.left&&t.push(n);break;case h.Right:r.left<i.left&&t.push(n)}});let d=B({active:n,collisionRect:r,droppableRects:l,droppableContainers:t,pointerCoordinates:null}),c=z(d,"id");if(c===(null==a?void 0:a.id)&&d.length>1&&(c=d[1].id),null!=c){let e=i.get(n.id),t=i.get(c),a=t?l.get(t.id):null,d=null==t?void 0:t.node.current;if(d&&a&&e&&t){var u,s;let n=V(d).some((e,t)=>o[t]!==e),l=tc(e,t),i=(u=e,s=t,!!ts(u)&&!!ts(s)&&!!tc(u,s)&&u.data.current.sortable.index<s.data.current.sortable.index),c=n||!l?{x:0,y:0}:{x:i?r.width-a.width:0,y:i?r.height-a.height:0},f={x:a.left,y:a.top};return c.x&&c.y?f:(0,E.subtract)(f,c)}}}},"useSortable",0,function(e){var t,n,r,l;let{animateLayoutChanges:i=tl,attributes:a,disabled:o,data:u,getNewIndex:s=tr,id:d,strategy:c,resizeObserverConfig:f,transition:h=ti}=e,{items:g,containerId:p,activeIndex:v,disabled:b,disableTransforms:m,sortedRects:y,overIndex:x,useDragOverlay:D,strategy:C}=(0,w.useContext)(tn),S=(t=o,n=b,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(r=null==t?void 0:t.draggable)?r:n.draggable,droppable:null!=(l=null==t?void 0:t.droppable)?l:n.droppable}),M=g.indexOf(d),R=(0,w.useMemo)(()=>({sortable:{containerId:p,index:M,items:g},...u}),[p,u,M,g]),L=(0,w.useMemo)(()=>g.slice(g.indexOf(d)),[g,d]),{rect:O,node:T,isOver:I,setNodeRef:k}=e_({id:d,data:R,disabled:S.droppable,resizeObserverConfig:{updateMeasurementsFor:L,...f}}),{active:N,activatorEvent:P,activeNodeRect:A,attributes:z,setNodeRef:U,listeners:B,isDragging:W,over:F,setActivatorNodeRef:K,transform:X}=eV({id:d,data:R,attributes:{...tu,...a},disabled:S.draggable}),Y=(0,E.useCombinedRefs)(k,U),H=!!N,V=H&&!m&&e6(v)&&e6(x),q=!D&&W,J=q&&V?X:null,_=V?null!=J?J:(null!=c?c:C)({rects:y,activeNodeRect:A,activeIndex:v,overIndex:x,index:M}):null,G=e6(v)&&e6(x)?s({id:d,items:g,activeIndex:v,overIndex:x}):M,Q=null==N?void 0:N.id,Z=(0,w.useRef)({activeId:Q,items:g,newIndex:G,containerId:p}),$=g!==Z.current.items,ee=i({active:N,containerId:p,isDragging:W,isSorting:H,id:d,index:M,items:g,newIndex:Z.current.newIndex,previousItems:Z.current.items,previousContainerId:Z.current.containerId,transition:h,wasDragging:null!=Z.current.activeId}),et=function(e){let{disabled:t,index:n,node:r,rect:l}=e,[i,a]=(0,w.useState)(null),o=(0,w.useRef)(n);return(0,E.useIsomorphicLayoutEffect)(()=>
1{if(!t&&n!==o.current&&r.current){let e=l.current;if(e){let t=j(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&a(n)}}n!==o.current&&(o.current=n)},[t,n,r,l]),(0,w.useEffect)(()=>{i&&a(null)},[i]),i}({disabled:!ee,index:M,node:T,rect:O});return(0,w.useEffect)(()=>{H&&Z.current.newIndex!==G&&(Z.current.newIndex=G),p!==Z.current.containerId&&(Z.current.containerId=p),g!==Z.current.items&&(Z.current.items=g)},[H,G,p,g]),(0,w.useEffect)(()=>{if(Q===Z.current.activeId)return;if(null!=Q&&null==Z.current.activeId){Z.current.activeId=Q;return}let e=setTimeout(()=>{Z.current.activeId=Q},50);return()=>clearTimeout(e)},[Q]),{active:N,activeIndex:v,attributes:z,data:R,rect:O,index:M,newIndex:G,items:g,isOver:I,isSorting:H,isDragging:W,listeners:B,node:T,overIndex:x,over:F,setNodeRef:Y,setActivatorNodeRef:K,setDroppableNodeRef:k,setDraggableNodeRef:U,transform:null!=et?et:_,transition:et||$&&Z.current.newIndex===M?to:(!q||(0,E.isKeyboardEvent)(P))&&h&&(H||ee)?E.CSS.Transition.toString({...h,property:ta}):void 0}},"verticalListSortingStrategy",0,e=>{var t,n,r,l;let i,a,o,{activeIndex:u,activeNodeRect:s,index:d,rects:c,overIndex:f}=e,h=null!=(t=c[u])?t:s;if(!h)return null;if(d===u){let e=c[f];return e?{x:0,y:u<f?e.top+e.height-(h.top+h.height):e.top-h.top,...te}:null}let g=(n=c,r=d,l=u,i=n[r],a=n[r-1],o=n[r+1],i?l<r?a?i.top-(a.top+a.height):o?o.top-(i.top+i.height):0:o?o.top-(i.top+i.height):a?i.top-(a.top+a.height):0:0);return d>u&&d<=f?{x:0,y:-h.height-g,...te}:d<u&&d>=f?{x:0,y:h.height+g,...te}:{x:0,y:0,...te}}],902769)}]);
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.