1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5587],{60887:function(e,t,n){n.d(t,{LB:function(){return eW},y9:function(){return e6},g4:function(){return p},Lg:function(){return eb},we:function(){return eD},pE:function(){return U},ey:function(){return H},Ai:function(){return e3},VK:function(){return V},_8:function(){return J},hI:function(){return Z},Cj:function(){return e$},O1:function(){return eV},Zj:function(){return eQ},VT:function(){return j},Dy:function(){return A}});var r,l,i,u,o,a,s,c,d,f,h,g,p,v,b,y,m,w,x,D=n(67294),E=n(73935),C=n(24285);let R={display:"none"};function S(e){let{id:t,value:n}=e;return D.createElement("div",{id:t,style:R},n)}let M={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function L(e){let{id:t,announcement:n}=e;return D.createElement("div",{id:t,style:M,role:"status","aria-live":"assertive","aria-atomic":!0},n)}let k=(0,D.createContext)(null),I={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 "},O={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 T(e){let{announcements:t=O,container:n,hiddenTextDescribedById:r,screenReaderInstructions:l=I}=e,{announce:i,announcement:u}=function(){let[e,t]=(0,D.useState)(""),n=(0,D.useCallback)(e=>{null!=e&&t(e)},[]);return{announce:n,announcement:e}}(),o=(0,C.Ld)("DndLiveRegion"),[a,s]=(0,D.useState)(!1);if((0,D.useEffect)(()=>{s(!0)},[]),!function(e){let t=(0,D.useContext)(k);(0,D.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of <DndContext>");let n=t(e);return n},[e,t])}((0,D.useMemo)(()=>({onDragStart(e){let{active:n}=e;i(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&i(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;i(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;i(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;i(t.onDragCancel({active:n,over:r}))}}),[i,t])),!a)return null;let c=D.createElement(D.Fragment,null,D.createElement(S,{id:r,value:l.draggable}),D.createElement(L,{id:o,announcement:u}));return n?(0,E.createPortal)(c,n):c}function N(){}function j(e,t){return(0,D.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function A(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,D.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}(r=f||(f={})).DragStart="dragStart",r.DragMove="dragMove",r.DragEnd="dragEnd",r.DragCancel="dragCancel",r.DragOver="dragOver",r.RegisterDroppable="registerDroppable",r.SetDroppableDisabled="setDroppableDisabled",r.UnregisterDroppable="unregisterDroppable";let X=Object.freeze({x:0,y:0});function z(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function P(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function B(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function F(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 J(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}function Y(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 U=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=Y(t,t.left,t.top),i=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=z(Y(r),l);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(P)},H=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=F(t),i=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=F(r),u=l.reduce((e,t,r)=>e+z(n[r],t),0),o=Number((u/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:o}})}}return i.sort(P)},K=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 u=t.width*t.height,o=e.width*e.height,a=(l-r)*(i-n);return Number((a/(u+o-a)).toFixed(4))}return 0}(i,t);n>0&&l.push({id:r,data:{droppableContainer:e,value:n}})}}return l.sort(B)};function q(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:X}let W=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+1*t.y,bottom:e.bottom+1*t.y,left:e.left+1*t.x,right:e.right+1*t.x}),{...e})};function _(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 G={ignoreTransform:!1};function V(e,t){void 0===t&&(t=G);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=(0,C.Jj)(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=_(t);if(!r)return e;let{scaleX:l,scaleY:i,x:u,y:o}=r,a=e.left-u-(1-l)*parseFloat(n),s=e.top-o-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=l?e.width/l:e.width,d=i?e.height/i:e.height;return{width:c,height:d,top:s,right:a+c,bottom:s+d,left:a}}(n,t,r))}let{top:r,left:l,width:i,height:u,bottom:o,right:a}=n;return{top:r,left:l,width:i,height:u,bottom:o,right:a}}function $(e){return V(e,{ignoreTransform:!0})}function Z(e,t){let n=[];return e?function r(l){var i;if(null!=t&&n.length>=t||!l)return n;if((0,C.qk)(l)&&null!=l.scrollingElement&&!n.includes(l.scrollingElement))return n.push(l.scrollingElement),n;if(!(0,C.Re)(l)||(0,C.vZ)(l)||n.includes(l))return n;let u=(0,C.Jj)(e).getComputedStyle(l);return(l!==e&&function(e,t){void 0===t&&(t=(0,C.Jj)(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(l,u)&&n.push(l),void 0===(i=u)&&(i=(0,C.Jj)(l).getComputedStyle(l)),"fixed"===i.position)?n:r(l.parentNode)}(e):n}function Q(e){let[t]=Z(e,1);return null!=t?t:null}function ee(e){return C.Nq&&e?(0,C.FJ)(e)?e:(0,C.UG)(e)?(0,C.qk)(e)||e===(0,C.r3)(e).scrollingElement?window:(0,C.Re)(e)?e:null:null:null}function et(e){return(0,C.FJ)(e)?e.scrollX:e.scrollLeft}function en(e){return(0,C.FJ)(e)?e.scrollY:e.scrollTop}function er(e){return{x:et(e),y:en(e)}}function el(e){return!!C.Nq&&!!e&&e===document.scrollingElement}function ei(e){let t={x:0,y:0},n=el(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,u=e.scrollTop>=r.y,o=e.scrollLeft>=r.x;return{isTop:l,isLeft:i,isBottom:u,isRight:o,maxScroll:r,minScroll:t}}
1(l=h||(h={}))[l.Forward=1]="Forward",l[l.Backward=-1]="Backward";let eu={x:.2,y:.2};function eo(e){return e.reduce((e,t)=>(0,C.IH)(e,er(t)),X)}function ea(e,t){if(void 0===t&&(t=V),!e)return;let{top:n,left:r,bottom:l,right:i}=t(e),u=Q(e);u&&(l<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let es=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+et(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+en(t),0)}]];class ec{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;let n=Z(t),r=eo(n);for(let[t,l,i]of(this.rect={...e},this.width=e.width,this.height=e.height,es))for(let e of l)Object.defineProperty(this,e,{get:()=>{let l=i(n),u=r[t]-l;return this.rect[e]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ed{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 ef(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 eh(e){e.preventDefault()}function eg(e){e.stopPropagation()}(i=g||(g={})).Click="click",i.DragStart="dragstart",i.Keydown="keydown",i.ContextMenu="contextmenu",i.Resize="resize",i.SelectionChange="selectionchange",i.VisibilityChange="visibilitychange",(u=p||(p={})).Space="Space",u.Down="ArrowDown",u.Right="ArrowRight",u.Left="ArrowLeft",u.Up="ArrowUp",u.Esc="Escape",u.Enter="Enter";let ep={start:[p.Space,p.Enter],cancel:[p.Esc],end:[p.Space,p.Enter]},ev=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case p.Right:return{...n,x:n.x+25};case p.Left:return{...n,x:n.x-25};case p.Down:return{...n,y:n.y+25};case p.Up:return{...n,y:n.y-25}}};class eb{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new ed((0,C.r3)(t)),this.windowListeners=new ed((0,C.Jj)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(g.Resize,this.handleCancel),this.windowListeners.add(g.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(g.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&ea(n),t(X)}handleKeyDown(e){if((0,C.vd)(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:l=ep,coordinateGetter:i=ev,scrollBehavior:u="smooth"}=r,{code:o}=e;if(l.end.includes(o)){this.handleEnd(e);return}if(l.cancel.includes(o)){this.handleCancel(e);return}let{collisionRect:a}=n.current,s=a?{x:a.left,y:a.top}:X;this.referenceCoordinates||(this.referenceCoordinates=s);let c=i(e,{active:t,context:n.current,currentCoordinates:s});if(c){let t=(0,C.$X)(c,s),r={x:0,y:0},{scrollableAncestors:l}=n.current;for(let n of l){let l=e.code,{isTop:i,isRight:o,isLeft:a,isBottom:s,maxScroll:d,minScroll:f}=ei(n),h=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight: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),g={x:Math.min(l===p.Right?h.right-h.width/2:h.right,Math.max(l===p.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(l===p.Down?h.bottom-h.height/2:h.bottom,Math.max(l===p.Down?h.top:h.top+h.height/2,c.y))},v=l===p.Right&&!o||l===p.Left&&!a,b=l===p.Down&&!s||l===p.Up&&!i;if(v&&g.x!==c.x){let e=n.scrollLeft+t.x,i=l===p.Right&&e<=d.x||l===p.Left&&e>=f.x;if(i&&!t.y){n.scrollTo({left:e,behavior:u});return}i?r.x=n.scrollLeft-e:r.x=l===p.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:u});break}if(b&&g.y!==c.y){let e=n.scrollTop+t.y,i=l===p.Down&&e<=d.y||l===p.Up&&e>=f.y;if(i&&!t.x){n.scrollTo({top:e,behavior:u});return}i?r.y=n.scrollTop-e:r.y=l===p.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:u});break}}this.handleMove(e,(0,C.IH)((0,C.$X)(c,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 ey(e){return!!(e&&"distance"in e)}function em(e){return!!(e&&"delay"in e)}eb.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ep,onActivation:l}=t,{active:i}=n,{code:u}=e.nativeEvent;if(r.start.includes(u)){let t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==l||l({event:e.nativeEvent}),!0)}return!1}}];class ew{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=(0,C.Jj)(e);return e instanceof t?e:(0,C.r3)(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;let{event:l}=e,{target:i}=l;this.props=e,this.events=t,this.document=(0,C.r3)(i),this.documentListeners=new ed(this.document),this.listeners=new ed(n),this.windowListeners=new ed((0,C.Jj)(i)),this.initialCoordinates=null!=(r=(0,C.DC)(l))?r:X,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}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(g.Resize,this.handleCancel),this.windowListeners.add(g.DragStart,eh),this.windowListeners.add(g.VisibilityChange,this.handleCancel),this.windowListeners.add(g.ContextMenu,eh),this.documentListeners.add(g.Keydown,this.handleKeydown),t){if(ey(t))return;if(em(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(g.Click,eg,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(g.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:l}=this,{onMove:i,options:{activationConstraint:u}}=l;if(!r)return;let o=null!=(t=(0,C.DC)(e))?t:X,a=(0,C.$X)(r,o);if(!n&&u){if(em(u))return ef(a,u.tolerance)?this.handleCancel():void 0;if(ey(u))return null!=u.tolerance&&ef(a,u.tolerance)?this.handleCancel():ef(a,u.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onEnd:e}=this.props;this.detach(),e()}handleCancel(){let{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===p.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let ex={move:{name:"pointermove"},end:{name:"pointerup"}};class eD extends ew{constructor(e){let{event:t}=e,n=(0,C.r3)(t.target);super(e,ex,n)}}eD.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)}}],(o=v||(v={}))[o.RightClick=2]="RightClick",(a=b||(b={}))[a.Pointer=0]="Pointer",a[a.DraggableRect=1]="DraggableRect",(s=y||(y={}
1))[s.TreeOrder=0]="TreeOrder",s[s.ReversedTreeOrder=1]="ReversedTreeOrder";let eE={x:{[h.Backward]:!1,[h.Forward]:!1},y:{[h.Backward]:!1,[h.Forward]:!1}};(c=m||(m={}))[c.Always=0]="Always",c[c.BeforeDragging=1]="BeforeDragging",c[c.WhileDragging=2]="WhileDragging",(w||(w={})).Optimized="optimized";let eC=new Map;function eR(e,t){return(0,C.Gj)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function eS(e){let{callback:t,disabled:n}=e,r=(0,C.zX)(t),l=(0,D.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,D.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}function eM(e){return new ec(V(e),e)}function eL(e,t,n){void 0===t&&(t=eM);let[r,l]=(0,D.useReducer)(function(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},null),i=function(e){let{callback:t,disabled:n}=e,r=(0,C.zX)(t),l=(0,D.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,D.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)){l();break}}}}),u=eS({callback:l});return(0,C.LI)(()=>{l(),e?(null==u||u.observe(e),null==i||i.observe(document.body,{childList:!0,subtree:!0})):(null==u||u.disconnect(),null==i||i.disconnect())},[e]),r}let ek=[];function eI(e,t){void 0===t&&(t=[]);let n=(0,D.useRef)(null);return(0,D.useEffect)(()=>{n.current=null},t),(0,D.useEffect)(()=>{let t=e!==X;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,C.$X)(e,n.current):X}function eO(e){return(0,D.useMemo)(()=>e?function(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}let eT=[];function eN(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,C.Re)(t)?t:e}let ej=[{sensor:eD,options:{}},{sensor:eb,options:{}}],eA={current:{}},eX={draggable:{measure:$},droppable:{measure:$,strategy:m.WhileDragging,frequency:w.Optimized},dragOverlay:{measure:V}};class ez 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 ez,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:N},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eX,measureDroppableContainers:N,windowRect:null,measuringScheduled:!1},eB={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:N,draggableNodes:new Map,over:null,measureDroppableContainers:N},eF=(0,D.createContext)(eB),eJ=(0,D.createContext)(eP);function eY(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ez}}}function eU(e,t){switch(t.type){case f.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case f.DragMove:if(!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 f.DragEnd:case f.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case f.RegisterDroppable:{let{element:n}=t,{id:r}=n,l=new ez(e.droppable.containers);return l.set(r,n),{...e,droppable:{...e.droppable,containers:l}}}case f.SetDroppableDisabled:{let{id:n,key:r,disabled:l}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let u=new ez(e.droppable.containers);return u.set(n,{...i,disabled:l}),{...e,droppable:{...e.droppable,containers:u}}}case f.UnregisterDroppable:{let{id:n,key:r}=t,l=e.droppable.containers.get(n);if(!l||r!==l.key)return e;
1let i=new ez(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function eH(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:l}=(0,D.useContext)(eF),i=(0,C.D9)(r),u=(0,C.D9)(null==n?void 0:n.id);return(0,D.useEffect)(()=>{if(!t&&!r&&i&&null!=u){if(!(0,C.vd)(i)||document.activeElement===i.target)return;let e=l.get(u);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,C.so)(e);if(t){t.focus();break}}})}},[r,t,l,u,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 eq=(0,D.createContext)({...X,scaleX:1,scaleY:1});(d=x||(x={}))[d.Uninitialized=0]="Uninitialized",d[d.Initializing=1]="Initializing",d[d.Initialized=2]="Initialized";let eW=(0,D.memo)(function(e){var t,n,r,l,i;let{id:u,accessibility:o,autoScroll:a=!0,children:s,sensors:c=ej,collisionDetection:d=K,measuring:g,modifiers:p,...v}=e,w=(0,D.useReducer)(eU,void 0,eY),[R,S]=w,[M,L]=function(){let[e]=(0,D.useState)(()=>new Set),t=(0,D.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]),n=(0,D.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]);return[n,t]}(),[I,O]=(0,D.useState)(x.Uninitialized),N=I===x.Initialized,{draggable:{active:j,nodes:A,translate:z},droppable:{containers:P}}=R,B=j?A.get(j):null,F=(0,D.useRef)({initial:null,translated:null}),Y=(0,D.useMemo)(()=>{var e;return null!=j?{id:j,data:null!=(e=null==B?void 0:B.data)?e:eA,rect:F}:null},[j,B]),U=(0,D.useRef)(null),[H,_]=(0,D.useState)(null),[G,$]=(0,D.useState)(null),et=(0,C.Ey)(v,Object.values(v)),en=(0,C.Ld)("DndDescribedBy",u),ea=(0,D.useMemo)(()=>P.getEnabled(),[P]),es=(0,D.useMemo)(()=>({draggable:{...eX.draggable,...null==g?void 0:g.draggable},droppable:{...eX.droppable,...null==g?void 0:g.droppable},dragOverlay:{...eX.dragOverlay,...null==g?void 0:g.dragOverlay}}),[null==g?void 0:g.draggable,null==g?void 0:g.droppable,null==g?void 0:g.dragOverlay]),{droppableRects:ed,measureDroppableContainers:ef,measuringScheduled:eh}=function(e,t){let{dragging:n,dependencies:r,config:l}=t,[i,u]=(0,D.useState)(null),{frequency:o,measure:a,strategy:s}=l,c=(0,D.useRef)(e),d=function(){switch(s){case m.Always:return!1;case m.BeforeDragging:return n;default:return!n}}(),f=(0,C.Ey)(d),h=(0,D.useCallback)(function(e){void 0===e&&(e=[]),f.current||u(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),g=(0,D.useRef)(null),p=(0,C.Gj)(t=>{if(d&&!n)return eC;if(!t||t===eC||c.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 ec(a(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,i,n,d,a]);return(0,D.useEffect)(()=>{c.current=e},[e]),(0,D.useEffect)(()=>{d||h()},[n,d]),(0,D.useEffect)(()=>{i&&i.length>0&&u(null)},[JSON.stringify(i)]),(0,D.useEffect)(()=>{d||"number"!=typeof o||null!==g.current||(g.current=setTimeout(()=>{h(),g.current=null},o))},[o,d,h,...r]),{droppableRects:p,measureDroppableContainers:h,measuringScheduled:null!=i}}(ea,{dragging:N,dependencies:[z.x,z.y],config:es.droppable}),eg=function(e,t){let n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,C.Gj)(e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(A,j),ep=(0,D.useMemo)(()=>G?(0,C.DC)(G):null,[G]),ev=function(){let e=(null==H?void 0:H.autoScrollEnabled)===!1,t="object"==typeof a?!1===a.enabled:!1===a,n=N&&!e&&!t;return"object"==typeof a?{...a,enabled:n}:{enabled:n}}(),eb=eR(eg,es.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:l=!0}=e,i=(0,D.useRef)(!1),{x:u,y:o}="boolean"==typeof l?{x:l,y:l}:l;(0,C.LI)(()=>{let e=!u&&!o;if(e||!t){i.current=!1;return}if(i.current||!r)return;let l=null==t?void 0:t.node.current;if(!l||!1===l.isConnected)return;let a=n(l),s=q(a,r);if(u||(s.x=0),o||(s.y=0),i.current=!0,Math.abs(s.x)>0||Math.abs(s.y)>0){let e=Q(l);e&&e.scrollBy({top:s.y,left:s.x})}},[t,u,o,r,n])}({activeNode:j?A.get(j):null,config:ev.layoutShiftCompensation,initialRect:eb,measure:es.draggable.measure});let ey=eL(eg,es.draggable.measure,eb),em=eL(eg?eg.parentElement:null),ew=(0,D.useRef)({activatorEvent:null,active:null,activeNode:eg,collisionRect:null,collisions:null,droppableRects:ed,draggableNodes:A,draggingNode:null,draggingNodeRect:null,droppableContainers:P,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ex=P.getNodeFor(null==(t=ew.current.over)?void 0:t.id),eD=function(e){let{measure:t}=e,[n,r]=(0,D.useState)(null),l=(0,D.useCallback)(e=>{for(let{target:n}of e)if((0,C.Re)(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t]),i=eS({callback:l}),u=(0,D.useCallback)(e=>{let n=eN(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]),[o,a]=(0,C.wm)(u);return(0,D.useMemo)(()=>({nodeRef:o,rect:n,setRef:a}),[n,o,a])}({measure:es.dragOverlay.measure}),eM=null!=(n=eD.nodeRef.current)?n:eg,ez=N?null!=(r=eD.rect)?r:ey:null,eP=!!(eD.nodeRef.current&&eD.rect),eB=function(e){let t=eR(e);return q(e,t)}(eP?null:ey),eW=eO(eM?(0,C.Jj)(eM):null),e_=function(e){let t=(0,D.useRef)(e),n=(0,C.Gj)(n=>e?n&&n!==ek&&e&&t.current&&e.parentNode===t.current.parentNode?n:Z(e):ek,[e]);return(0,D.useEffect)(()=>{t.current=e},[e]),n}(N?null!=ex?ex:eg:null),eG=function(e,t){void 0===t&&(t=V);let[n]=e,r=eO(n?(0,C.Jj)(n):null),[l,i]=(0,D.useReducer)(function(){return e.length?e.map(e=>el(e)?r:new ec(t(e),e)):eT},eT),u=eS({callback:i});return e.length>0&&l===eT&&i(),(0,C.LI)(()=>
1{e.length?e.forEach(e=>null==u?void 0:u.observe(e)):(null==u||u.disconnect(),i())},[e]),l}(e_),eV=eK(p,{transform:{x:z.x-eB.x,y:z.y-eB.y,scaleX:1,scaleY:1},activatorEvent:G,active:Y,activeNodeRect:ey,containerNodeRect:em,draggingNodeRect:ez,over:ew.current.over,overlayNodeRect:eD.rect,scrollableAncestors:e_,scrollableAncestorRects:eG,windowRect:eW}),e$=ep?(0,C.IH)(ep,z):null,eZ=function(e){let[t,n]=(0,D.useState)(null),r=(0,D.useRef)(e),l=(0,D.useCallback)(e=>{let t=ee(e.target);t&&n(e=>e?(e.set(t,er(t)),new Map(e)):null)},[]);return(0,D.useEffect)(()=>{let t=r.current;if(e!==t){i(t);let u=e.map(e=>{let t=ee(e);return t?(t.addEventListener("scroll",l,{passive:!0}),[t,er(t)]):null}).filter(e=>null!=e);n(u.length?new Map(u):null),r.current=e}return()=>{i(e),i(t)};function i(e){e.forEach(e=>{let t=ee(e);null==t||t.removeEventListener("scroll",l)})}},[l,e]),(0,D.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,C.IH)(e,t),X):eo(e):X,[e,t])}(e_),eQ=eI(eZ),e0=eI(eZ,[ey]),e1=(0,C.IH)(eV,eQ),e2=ez?W(ez,eV):null,e5=Y&&e2?d({active:Y,collisionRect:e2,droppableRects:ed,droppableContainers:ea,pointerCoordinates:e$}):null,e4=J(e5,"id"),[e9,e3]=(0,D.useState)(null),e8=eP?eV:(0,C.IH)(eV,e0),e7=(i=null!=(l=null==e9?void 0:e9.rect)?l:null,{...e8,scaleX:i&&ey?i.width/ey.width:1,scaleY:i&&ey?i.height/ey.height:1}),e6=(0,D.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==U.current)return;let l=A.get(U.current);if(!l)return;let i=e.nativeEvent,u=new n({active:U.current,activeNode:l,event:i,options:r,context:ew,onStart(e){let t=U.current;if(null==t)return;let n=A.get(t);if(!n)return;let{onDragStart:r}=et.current,l={active:{id:t,data:n.data,rect:F}};(0,E.unstable_batchedUpdates)(()=>{null==r||r(l),O(x.Initializing),S({type:f.DragStart,initialCoordinates:e,active:t}),M({type:"onDragStart",event:l})})},onMove(e){S({type:f.DragMove,coordinates:e})},onEnd:o(f.DragEnd),onCancel:o(f.DragCancel)});function o(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:l}=ew.current,u=null;if(t&&l){let{cancelDrop:o}=et.current;if(u={activatorEvent:i,active:t,collisions:n,delta:l,over:r},e===f.DragEnd&&"function"==typeof o){let t=await Promise.resolve(o(u));t&&(e=f.DragCancel)}}U.current=null,(0,E.unstable_batchedUpdates)(()=>{S({type:e}),O(x.Uninitialized),e3(null),_(null),$(null);let t=e===f.DragEnd?"onDragEnd":"onDragCancel";if(u){let e=et.current[t];null==e||e(u),M({type:t,event:u})}})}}(0,E.unstable_batchedUpdates)(()=>
1{_(u),$(e.nativeEvent)})},[A]),te=(0,D.useCallback)((e,t)=>(n,r)=>{let l=n.nativeEvent,i=A.get(r);if(null!==U.current||!i||l.dndKit||l.defaultPrevented)return;let u=e(n,t.options,{active:i});!0===u&&(l.dndKit={capturedBy:t.sensor},U.current=r,e6(n,t))},[A,e6]),tt=(0,D.useMemo)(()=>c.reduce((e,t)=>{let{sensor:n}=t,r=n.activators.map(e=>({eventName:e.eventName,handler:te(e.handler,t)}));return[...e,...r]},[]),[c,te]);(0,D.useEffect)(()=>{if(!C.Nq)return;let e=c.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},c.map(e=>{let{sensor:t}=e;return t})),(0,C.LI)(()=>{ey&&I===x.Initializing&&O(x.Initialized)},[ey,I]),(0,D.useEffect)(()=>{let{onDragMove:e}=et.current,{active:t,activatorEvent:n,collisions:r,over:l}=ew.current;if(!t||!n)return;let i={active:t,activatorEvent:n,collisions:r,delta:{x:e1.x,y:e1.y},over:l};(0,E.unstable_batchedUpdates)(()=>{null==e||e(i),M({type:"onDragMove",event:i})})},[e1.x,e1.y]),(0,D.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:l}=ew.current;if(!e||null==U.current||!t||!l)return;let{onDragOver:i}=et.current,u=r.get(e4),o=u&&u.rect.current?{id:u.id,rect:u.rect.current,data:u.data,disabled:u.disabled}:null,a={active:e,activatorEvent:t,collisions:n,delta:{x:l.x,y:l.y},over:o};(0,E.unstable_batchedUpdates)(()=>{e3(o),null==i||i(a),M({type:"onDragOver",event:a})})},[e4]),(0,C.LI)(()=>{ew.current={activatorEvent:G,active:Y,activeNode:eg,collisionRect:e2,collisions:e5,droppableRects:ed,draggableNodes:A,draggingNode:eM,draggingNodeRect:ez,droppableContainers:P,over:e9,scrollableAncestors:e_,scrollAdjustedTranslate:e1},F.current={initial:ez,translated:e2}},[Y,eg,e5,e2,A,eM,ez,ed,P,e9,e_,e1]),function(e){let{acceleration:t,activator:n=b.Pointer,canScroll:r,draggingRect:l,enabled:i,interval:u=5,order:o=y.TreeOrder,pointerCoordinates:a,scrollableAncestors:s,scrollableAncestorRects:c,delta:d,threshold:f}=e,g=function(e){let{delta:t,disabled:n}=e,r=(0,C.D9)(t);return(0,C.Gj)(e=>{if(n||!r||!e)return eE;let l={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[h.Backward]:e.x[h.Backward]||-1===l.x,[h.Forward]:e.x[h.Forward]||1===l.x},y:{[h.Backward]:e.y[h.Backward]||-1===l.y,[h.Forward]:e.y[h.Forward]||1===l.y}}},[n,t,r])}({delta:d,disabled:!i}),[p,v]=(0,C.Yz)(),m=(0,D.useRef)({x:0,y:0}),w=(0,D.useRef)({x:0,y:0}),x=(0,D.useMemo)(()=>{switch(n){case b.Pointer:return a?{top:a.y,bottom:a.y,left:a.x,right:a.x}:null;case b.DraggableRect:return l}},[n,l,a]),E=(0,D.useRef)(null),R=(0,D.useCallback)(()=>{let e=E.current;if(!e)return;let t=m.current.x*w.current.x,n=m.current.y*w.current.y;e.scrollBy(t,n)},[]),S=(0,D.useMemo)(()=>o===y.TreeOrder?[...s].reverse():s,[o,s]);(0,D.useEffect)(()=>{if(!i||!s.length||!x){v();return}for(let e of S){if((null==r?void 0:r(e))===!1)continue;let n=s.indexOf(e),l=c[n];if(!l)continue;let{direction:i,speed:o}=function(e,t,n,r,l){let{top:i,left:u,right:o,bottom:a}=n;void 0===r&&(r=10),void 0===l&&(l=eu);let{isTop:s,isBottom:c,isLeft:d,isRight:f}=ei(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=h.Backward,p.y=r*Math.abs((t.top+v.height-i)/v.height)):!c&&a>=t.bottom-v.height&&(g.y=h.Forward,p.y=r*Math.abs((t.bottom-v.height-a)/v.height)),!f&&o>=t.right-v.width?(g.x=h.Forward,p.x=r*Math.abs((t.right-v.width-o)/v.width)):!d&&u<=t.left+v.width&&(g.x=h.Backward,p.x=r*Math.abs((t.left+v.width-u)/v.width)),{direction:g,speed:p}}(e,l,x,t,f);for(let e of["x","y"])g[e][i[e]]||(o[e]=0,i[e]=0);if(o.x>0||o.y>0){v(),E.current=e,p(R,u),m.current=o,w.current=i;return}}m.current={x:0,y:0},w.current={x:0,y:0},v()},[t,R,r,v,i,u,JSON.stringify(x),JSON.stringify(g),p,s,S,c,JSON.stringify(f)])}({...ev,delta:z,draggingRect:e2,pointerCoordinates:e$,scrollableAncestors:e_,scrollableAncestorRects:eG});let tn=(0,D.useMemo)(()=>({active:Y,activeNode:eg,activeNodeRect:ey,activatorEvent:G,collisions:e5,containerNodeRect:em,dragOverlay:eD,draggableNodes:A,droppableContainers:P,droppableRects:ed,over:e9,measureDroppableContainers:ef,scrollableAncestors:e_,scrollableAncestorRects:eG,measuringConfiguration:es,measuringScheduled:eh,windowRect:eW}),[Y,eg,ey,G,e5,em,eD,A,P,ed,e9,ef,e_,eG,es,eh,eW]),tr=(0,D.useMemo)(()=>({activatorEvent:G,activators:tt,active:Y,activeNodeRect:ey,ariaDescribedById:{draggable:en},dispatch:S,draggableNodes:A,over:e9,measureDroppableContainers:ef}),[G,tt,Y,ey,S,en,A,e9,ef]);return D.createElement(k.Provider,{value:L},D.createElement(eF.Provider,{value:tr},D.createElement(eJ.Provider,{value:tn},D.createElement(eq.Provider,{value:e7},s)),D.createElement(eH,{disabled:(null==o?void 0:o.restoreFocus)===!1})),D.createElement(T,{...o,hiddenTextDescribedById:en}
1))}),e_=(0,D.createContext)(null),eG="button";function eV(e){let{id:t,data:n,disabled:r=!1,attributes:l}=e,i=(0,C.Ld)("Droppable"),{activators:u,activatorEvent:o,active:a,activeNodeRect:s,ariaDescribedById:c,draggableNodes:d,over:f}=(0,D.useContext)(eF),{role:h=eG,roleDescription:g="draggable",tabIndex:p=0}=null!=l?l:{},v=(null==a?void 0:a.id)===t,b=(0,D.useContext)(v?eq:e_),[y,m]=(0,C.wm)(),[w,x]=(0,C.wm)(),E=(0,D.useMemo)(()=>u.reduce((e,n)=>{let{eventName:r,handler:l}=n;return e[r]=e=>{l(e,t)},e},{}),[u,t]),R=(0,C.Ey)(n);(0,C.LI)(()=>(d.set(t,{id:t,key:i,node:y,activatorNode:w,data:R}),()=>{let e=d.get(t);e&&e.key===i&&d.delete(t)}),[d,t]);let S=(0,D.useMemo)(()=>({role:h,tabIndex:p,"aria-disabled":r,"aria-pressed":!!v&&h===eG||void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[r,h,p,v,g,c.draggable]);return{active:a,activatorEvent:o,activeNodeRect:s,attributes:S,isDragging:v,listeners:r?void 0:E,node:y,over:f,setNodeRef:m,setActivatorNodeRef:x,transform:b}}function e$(){return(0,D.useContext)(eJ)}let eZ={timeout:25};function eQ(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:l}=e,i=(0,C.Ld)("Droppable"),{active:u,dispatch:o,over:a,measureDroppableContainers:s}=(0,D.useContext)(eF),c=(0,D.useRef)({disabled:n}),d=(0,D.useRef)(!1),h=(0,D.useRef)(null),g=(0,D.useRef)(null),{disabled:p,updateMeasurementsFor:v,timeout:b}={...eZ,...l},y=(0,C.Ey)(null!=v?v:r),m=(0,D.useCallback)(()=>{if(!d.current){d.current=!0;return}null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{s(Array.isArray(y.current)?y.current:[y.current]),g.current=null},b)},[b]),w=eS({callback:m,disabled:p||!u}),x=(0,D.useCallback)((e,t)=>{w&&(t&&(w.unobserve(t),d.current=!1),e&&w.observe(e))},[w]),[E,R]=(0,C.wm)(x),S=(0,C.Ey)(t);return(0,D.useEffect)(()=>{w&&E.current&&(w.disconnect(),d.current=!1,w.observe(E.current))},[E,w]),(0,C.LI)(()=>(o({type:f.RegisterDroppable,element:{id:r,key:i,disabled:n,node:E,rect:h,data:S}}),()=>o({type:f.UnregisterDroppable,key:i,id:r})),[r]),(0,D.useEffect)(()=>{n!==c.current.disabled&&(o({type:f.SetDroppableDisabled,id:r,key:i,disabled:n}),c.current.disabled=n)},[r,i,n,o]),{active:u,rect:h,isOver:(null==a?void 0:a.id)===r,node:E,over:a,setNodeRef:R}}function e0(e){let{animation:t,children:n}=e,[r,l]=(0,D.useState)(null),[i,u]=(0,D.useState)(null),o=(0,C.D9)(n);return n||r||!o||l(o),(0,C.LI)(()=>{if(!i)return;let e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;if(null==e||null==n){l(null);return}Promise.resolve(t(n,i)).then(()=>{l(null)})},[t,r,i]),D.createElement(D.Fragment,null,n,r?(0,D.cloneElement)(r,{ref:u}):null)}let e1={x:0,y:0,scaleX:1,scaleY:1};function e2(e){let{children:t}=e;return D.createElement(eF.Provider,{value:eB},D.createElement(eq.Provider,{value:e1},t))}let e5={position:"fixed",touchAction:"none"},e4=e=>{let t=(0,C.vd)(e);return t?"transform 250ms ease":void 0},e9=(0,D.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:l,children:i,className:u,rect:o,style:a,transform:s,transition:c=e4}=e;if(!o)return null;let d=l?s:{...s,scaleX:1,scaleY:1},f={...e5,width:o.width,height:o.height,top:o.top,left:o.left,transform:C.ux.Transform.toString(d),transformOrigin:l&&r?function(e,t){let n=(0,C.DC)(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 c?c(r):c,...a};return D.createElement(n,{className:u,style:f,ref:t},i)}),e3=e=>t=>{let{active:n,dragOverlay:r}=t,l={},{styles:i,className:u}=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!=u&&u.active&&n.node.classList.add(u.active),null!=u&&u.dragOverlay&&r.node.classList.add(u.dragOverlay),function(){for(let[e,t]of Object.entries(l))n.node.style.setProperty(e,t);null!=u&&u.active&&n.node.classList.remove(u.active)}},e8={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:C.ux.Transform.toString(t)},{transform:C.ux.Transform.toString(n)}]},sideEffects:e3({styles:{active:{opacity:"0"}}})},e7=0,e6=D.memo(e=>{var t;
1let{adjustScale:n=!1,children:r,dropAnimation:l,style:i,transition:u,modifiers:o,wrapperElement:a="div",className:s,zIndex:c=999}=e,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:g,draggableNodes:p,droppableContainers:v,dragOverlay:b,over:y,measuringConfiguration:m,scrollableAncestors:w,scrollableAncestorRects:x,windowRect:E}=e$(),R=(0,D.useContext)(eq),S=(t=null==f?void 0:f.id,(0,D.useMemo)(()=>{if(null!=t)return++e7},[t])),M=eK(o,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:b.rect,over:y,overlayNodeRect:b.rect,scrollableAncestors:w,scrollableAncestorRects:x,transform:R,windowRect:E}),L=eR(h),k=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:l}=e;return(0,C.zX)((e,i)=>{if(null===t)return;let u=n.get(e);if(!u)return;let o=u.node.current;if(!o)return;let a=eN(i);if(!a)return;let{transform:s}=(0,C.Jj)(i).getComputedStyle(i),c=_(s);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:l}={...e8,...e};return e=>{let{active:i,dragOverlay:u,transform:o,...a}=e;if(!t)return;let s={x:u.rect.left-i.rect.left,y:u.rect.top-i.rect.top},c={scaleX:1!==o.scaleX?i.rect.width*o.scaleX/u.rect.width:1,scaleY:1!==o.scaleY?i.rect.height*o.scaleY/u.rect.height:1},d={x:o.x-s.x,y:o.y-s.y,...c},f=l({...a,active:i,dragOverlay:u,transform:{initial:o,final:d}}),[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:u,...a}),v=u.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{v.onfinish=()=>{null==p||p(),e()}})}}(t);return ea(o,l.draggable.measure),d({active:{id:e,data:u.data,node:o,rect:l.draggable.measure(o)},draggableNodes:n,dragOverlay:{node:i,rect:l.dragOverlay.measure(a)},droppableContainers:r,measuringConfiguration:l,transform:c})})}({config:l,draggableNodes:p,droppableContainers:v,measuringConfiguration:m}),I=L?b.setRef:void 0;return D.createElement(e2,null,D.createElement(e0,{animation:k},f&&S?D.createElement(e9,{key:S,id:f.id,ref:I,as:a,activatorEvent:d,adjustScale:n,className:s,transition:u,rect:L,style:{zIndex:c,...i},transform:M},r):null))})},45587:function(e,t,n){n.d(t,{Fo:function(){return p},PG:function(){return s},Rp:function(){return u},is:function(){return R},nB:function(){return D},qw:function(){return f}});var r=n(67294),l=n(60887),i=n(24285);function u(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function o(e){return null!==e&&e>=0}let a={scaleX:1,scaleY:1},s=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:l,overIndex:i,index:u}=e,o=null!=(t=n[l])?t:r;if(!o)return null;let s=function(e,t,n){let r=e[t],l=e[t-1],i=e[t+1];return r&&(l||i)?n<t?l?r.left-(l.left+l.width):i.left-(r.left+r.width):i?i.left-(r.left+r.width):r.left-(l.left+l.width):0}(n,u,l);if(u===l){let e=n[i];return e?{x:l<i?e.left+e.width-(o.left+o.width):e.left-o.left,y:0,...a}:null}return u>l&&u<=i?{x:-o.width-s,y:0,...a}:u<l&&u>=i?{x:o.width+s,y:0,...a}:{x:0,y:0,...a}},c=e=>{let{rects:t,activeIndex:n,overIndex:r,index:l}=e,i=u(t,r,n),o=t[l],a=i[l];return a&&o?{x:a.left-o.left,y:a.top-o.top,scaleX:a.width/o.width,scaleY:a.height/o.height}:null},d={scaleX:1,scaleY:1},f=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:l,rects:i,overIndex:u}=e,o=null!=(t=i[n])?t:r;if(!o)return null;if(l===n){let e=i[u];return e?{x:0,y:n<u?e.top+e.height-(o.top+o.height):e.top-o.top,...d}:null}let a=function(e,t,n){let r=e[t],l=e[t-1],i=e[t+1];return r?n<t?l?r.top-(l.top+l.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):l?r.top-(l.top+l.height):0:0}(i,l,n);return l>n&&l<=u?{x:0,y:-o.height-a,...d}:l<n&&l>=u?{x:0,y:o.height+a,...d}:{x:0,y:0,...d}},h="Sortable",g=r.createContext({activeIndex:-1,containerId:h,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:c,disabled:{draggable:!1,droppable:!1}});function p(e){let{children:t,id:n,items:u,strategy:o=c,disabled:a=!1}=e,{active:s,dragOverlay:d,droppableRects:f,over:p,measureDroppableContainers:v}=(0,l.Cj)(),b=(0,i.Ld)(h,n),y=null!==d.rect,m=(0,r.useMemo)(()=>u.map(e=>"object"==typeof e&&"id"in e?e.id:e),[u]),w=null!=s,x=s?m.indexOf(s.id):-1,D=p?m.indexOf(p.id):-1,E=(0,r.useRef)(m),C=!function(e,t){if(e===t)return!0;
1if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(m,E.current),R=-1!==D&&-1===x||C,S="boolean"==typeof a?{draggable:a,droppable:a}:a;(0,i.LI)(()=>{C&&w&&v(m)},[C,m,w,v]),(0,r.useEffect)(()=>{E.current=m},[m]);let M=(0,r.useMemo)(()=>({activeIndex:x,containerId:b,disabled:S,disableTransforms:R,items:m,overIndex:D,useDragOverlay:y,sortedRects:m.reduce((e,t,n)=>{let r=f.get(t);return r&&(e[n]=r),e},Array(m.length)),strategy:o}),[x,b,S.draggable,S.droppable,R,m,D,f,y,o]);return r.createElement(g.Provider,{value:M},t)}let v=e=>{let{id:t,items:n,activeIndex:r,overIndex:l}=e;return u(n,r,l).indexOf(t)},b=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:l,items:i,newIndex:u,previousItems:o,previousContainerId:a,transition:s}=e;return!!s&&!!r&&(o===i||l!==u)&&(!!n||u!==l&&t===a)},y={duration:200,easing:"ease"},m="transform",w=i.ux.Transition.toString({property:m,duration:0,easing:"linear"}),x={roleDescription:"sortable"};function D(e){var t,n;let{animateLayoutChanges:u=b,attributes:a,disabled:s,data:c,getNewIndex:d=v,id:f,strategy:h,resizeObserverConfig:p,transition:D=y}=e,{items:E,containerId:C,activeIndex:R,disabled:S,disableTransforms:M,sortedRects:L,overIndex:k,useDragOverlay:I,strategy:O}=(0,r.useContext)(g),T="boolean"==typeof s?{draggable:s,droppable:!1}:{draggable:null!=(t=null==s?void 0:s.draggable)?t:S.draggable,droppable:null!=(n=null==s?void 0:s.droppable)?n:S.droppable},N=E.indexOf(f),j=(0,r.useMemo)(()=>({sortable:{containerId:C,index:N,items:E},...c}),[C,c,N,E]),A=(0,r.useMemo)(()=>E.slice(E.indexOf(f)),[E,f]),{rect:X,node:z,isOver:P,setNodeRef:B}=(0,l.Zj)({id:f,data:j,disabled:T.droppable,resizeObserverConfig:{updateMeasurementsFor:A,...p}}),{active:F,activatorEvent:J,activeNodeRect:Y,attributes:U,setNodeRef:H,listeners:K,isDragging:q,over:W,setActivatorNodeRef:_,transform:G}=(0,l.O1)({id:f,data:j,attributes:{...x,...a},disabled:T.draggable}),V=(0,i.HB)(B,H),$=!!F,Z=$&&!M&&o(R)&&o(k),Q=!I&&q,ee=Q&&Z?G:null,et=Z?null!=ee?ee:(null!=h?h:O)({rects:L,activeNodeRect:Y,activeIndex:R,overIndex:k,index:N}):null,en=o(R)&&o(k)?d({id:f,items:E,activeIndex:R,overIndex:k}):N,er=null==F?void 0:F.id,el=(0,r.useRef)({activeId:er,items:E,newIndex:en,containerId:C}),ei=E!==el.current.items,eu=u({active:F,containerId:C,isDragging:q,isSorting:$,id:f,index:N,items:E,newIndex:el.current.newIndex,previousItems:el.current.items,previousContainerId:el.current.containerId,transition:D,wasDragging:null!=el.current.activeId}),eo=function(e){let{disabled:t,index:n,node:u,rect:o}=e,[a,s]=(0,r.useState)(null),c=(0,r.useRef)(n);return(0,i.LI)(()=>{if(!t&&n!==c.current&&u.current){let e=o.current;if(e){let t=(0,l.VK)(u.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)&&s(n)}}n!==c.current&&(c.current=n)},[t,n,u,o]),(0,r.useEffect)(()=>{a&&s(null)},[a]),a}({disabled:!eu,index:N,node:z,rect:X});return(0,r.useEffect)(()=>{$&&el.current.newIndex!==en&&(el.current.newIndex=en),C!==el.current.containerId&&(el.current.containerId=C),E!==el.current.items&&(el.current.items=E)},[$,en,C,E]),(0,r.useEffect)(()=>{if(er===el.current.activeId)return;if(er&&!el.current.activeId){el.current.activeId=er;return}let e=setTimeout(()=>{el.current.activeId=er},50);return()=>clearTimeout(e)},[er]),{active:F,activeIndex:R,attributes:U,data:j,rect:X,index:N,newIndex:en,items:E,isOver:P,isSorting:$,isDragging:q,listeners:K,node:z,overIndex:k,over:W,setNodeRef:V,setActivatorNodeRef:_,setDroppableNodeRef:B,setDraggableNodeRef:H,transform:null!=eo?eo:et,transition:eo||ei&&el.current.newIndex===N?w:(!Q||(0,i.vd)(J))&&D&&($||eu)?i.ux.Transition.toString({...D,property:m}):void 0}}function E(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 C=[l.g4.Down,l.g4.Right,l.g4.Up,l.g4.Left],R=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:u,droppableContainers:o,over:a,scrollableAncestors:s}}=t;if(C.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];
1o.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let i=u.get(n.id);if(i)switch(e.code){case l.g4.Down:r.top<i.top&&t.push(n);break;case l.g4.Up:r.top>i.top&&t.push(n);break;case l.g4.Left:r.left>i.left&&t.push(n);break;case l.g4.Right:r.left<i.left&&t.push(n)}});let c=(0,l.ey)({active:n,collisionRect:r,droppableRects:u,droppableContainers:t,pointerCoordinates:null}),d=(0,l._8)(c,"id");if(d===(null==a?void 0:a.id)&&c.length>1&&(d=c[1].id),null!=d){let e=o.get(n.id),t=o.get(d),a=t?u.get(t.id):null,c=null==t?void 0:t.node.current;if(c&&a&&e&&t){let n=(0,l.hI)(c),u=n.some((e,t)=>s[t]!==e),o=S(e,t),d=!!(E(e)&&E(t)&&S(e,t))&&e.data.current.sortable.index<t.data.current.sortable.index,f=u||!o?{x:0,y:0}:{x:d?r.width-a.width:0,y:d?r.height-a.height:0},h={x:a.left,y:a.top},g=f.x&&f.y?h:(0,i.$X)(h,f);return g}}}};function S(e,t){return!!(E(e)&&E(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},24285:function(e,t,n){n.d(t,{$X:function(){return C},D9:function(){return m},DC:function(){return S},Ey:function(){return v},FJ:function(){return u},Gj:function(){return b},HB:function(){return l},IH:function(){return E},Jj:function(){return a},LI:function(){return h},Ld:function(){return x},Nq:function(){return i},Re:function(){return c},UG:function(){return o},Yz:function(){return p},qk:function(){return s},r3:function(){return f},so:function(){return k},ux:function(){return M},vZ:function(){return d},vd:function(){return R},wm:function(){return y},zX:function(){return g}});var r=n(67294);function l(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function u(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function o(e){return"nodeType"in e}function a(e){var t,n;return e?u(e)?e:o(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function s(e){let{Document:t}=a(e);return e instanceof t}function c(e){return!u(e)&&e instanceof a(e).HTMLElement}function d(e){return e instanceof a(e).SVGElement}function f(e){return e?u(e)?e.document:o(e)?s(e)?e:c(e)?e.ownerDocument:document:document:document}let h=i?r.useLayoutEffect:r.useEffect;function g(e){let t=(0,r.useRef)(e);return h(()=>{t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function p(){let e=(0,r.useRef)(null),t=(0,r.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),n=(0,r.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function v(e,t){void 0===t&&(t=[e]);let n=(0,r.useRef)(e);return h(()=>{n.current!==e&&(n.current=e)},t),n}function b(e,t){let n=(0,r.useRef)();return(0,r.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function y(e){let t=g(e),n=(0,r.useRef)(null),l=(0,r.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,l]}function m(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}let w={};function x(e,t){return(0,r.useMemo)(()=>{if(t)return t;let n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n},[e,t])}function D(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),l=1;l<n;l++)r[l-1]=arguments[l];return r.reduce((t,n)=>{let r=Object.entries(n);for(let[n,l]of r){let r=t[n];null!=r&&(t[n]=r+e*l)}return t},{...t})}}let E=D(1),C=D(-1);function R(e){if(!e)return!1;let{KeyboardEvent:t}=a(e.target);return t&&e instanceof t}function S(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=a(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let M=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[M.Translate.toString(e),M.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),L="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function k(e){return e.matches(L)?e:e.querySelector(L)}}}]);
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.