集成,总结MES功能
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

6 linhas
57 KiB

  1. !(function(){"use strict";var ci=Object.defineProperty,ui=Object.defineProperties;var di=Object.getOwnPropertyDescriptors;var wt=Object.getOwnPropertySymbols;var Jn=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable;var Jt=Math.pow,Gn=(z,B,S)=>B in z?ci(z,B,{enumerable:!0,configurable:!0,writable:!0,value:S}):z[B]=S,b=(z,B)=>{for(var S in B||(B={}))Jn.call(B,S)&&Gn(z,S,B[S]);if(wt)for(var S of wt(B))Qn.call(B,S)&&Gn(z,S,B[S]);return z},T=(z,B)=>ui(z,di(B));var xt=(z,B)=>{var S={};for(var Y in z)Jn.call(z,Y)&&B.indexOf(Y)<0&&(S[Y]=z[Y]);if(z!=null&&wt)for(var Y of wt(z))B.indexOf(Y)<0&&Qn.call(z,Y)&&(S[Y]=z[Y]);return S};var qn=(z,B,S)=>new Promise((Y,ye)=>{var M=k=>{try{se(S.next(k))}catch(l){ye(l)}},Ke=k=>{try{se(S.throw(k))}catch(l){ye(l)}},se=k=>k.done?Y(k.value):Promise.resolve(k.value).then(M,Ke);se((S=S.apply(z,B)).next())});(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[635],{62763:function(z,B,S){S.d(B,{Z:function(){return ei}});var Y=S(74165),ye=S(15861),M=S(1413),Ke=S(97685),se=S(91),k=S(87462),l=S(67294),et=S(48792),Qt=S(32867),qt=function(t,n){return l.createElement(Qt.Z,(0,k.Z)({},t,{ref:n,icon:et.Z}))},St=l.forwardRef(qt),Ct=St,j=S(28459),K=S(21770),fe=S(83145),ve=S(36459),we=S(48171),Re=S(73935);function _n(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,l.useMemo)(()=>r=>{t.forEach(o=>o(r))},t)}const tt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function Ee(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Dt(e){return"nodeType"in e}function H(e){var t,n;return e?Ee(e)?e:Dt(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Rt(e){const{Document:t}=H(e);return e instanceof t}function Pe(e){return Ee(e)?!1:e instanceof H(e).HTMLElement}function _t(e){return e instanceof H(e).SVGElement}function Ie(e){return e?Ee(e)?e.document:Dt(e)?Rt(e)?e:Pe(e)||_t(e)?e.ownerDocument:document:document:document}const ne=tt?l.useLayoutEffect:l.useEffect;function Et(e){const t=(0,l.useRef)(e);return ne(()=>{t.current=e}),(0,l.useCallback)(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function er(){const e=(0,l.useRef)(null),t=(0,l.useCallback)((r,o)=>{e.current=setInterval(r,o)},[]),n=(0,l.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function ze(e,t){t===void 0&&(t=[e]);const n=(0,l.useRef)(e);return ne(()=>{n.current!==e&&(n.current=e)},t),n}function Be(e,t){const n=(0,l.useRef)();return(0,l.useMemo)(()=>{const r=e(n.current);return n.current=r,r},[...t])}function nt(e){const t=Et(e),n=(0,l.useRef)(null),r=(0,l.useCallback)(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function It(e){const t=(0,l.useRef)();return(0,l.useEffect)(()=>{t.current=e},[e]),t.current}let At={};function Ze(e,t){return(0,l.useMemo)(()=>{if(t)return t;const n=At[e]==null?0:At[e]+1;return At[e]=n,e+"-"+n},[e,t])}function en(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,s)=>{const a=Object.entries(s);for(const[c,u]of a){const f=i[c];f!=null&&(i[c]=f+e*u)}return i},b({},t))}}const Ae=en(1),rt=en(-1);function tr(e){return"clientX"in e&&"clientY"in e}function Ot(e){if(!e)return!1;const{KeyboardEvent:t}=H(e.target);return t&&e instanceof t}function nr(e){if(!e)return!1;const{TouchEvent:t}=H(e.target);return t&&e instanceof t}function Tt(e){if(nr(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return tr(e)?{x:e.clientX,y:e.clientY}:null}const xe=Object.freeze({Translate:{toString(e){if(!e)return;const{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;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[xe.Translate.toString(e),xe.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),tn="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function rr(e){return e.matches(tn)?e:e.querySelector(tn)}const or={display:"none"};function ir(e){let{id:t,value:n}=e;return l.createElement("div",{id:t,style:or},n)}function sr(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={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"};return l.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function ar(){const[e,t]=(0,l.useState)("");return{announce:(0,l.useCallback)(r=>{r!=null&&t(r)},[]),announcement:e}}const nn=(0,l.createContext)(null);function lr(e){const t=(0,l.useContext)(nn);(0,l.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function cr(){const[e]=(0,l.useState)(()=>new Set),t=(0,l.useCallback)(r=>(e.add(r),()=>e.delete(r)),[e]);return[(0,l.useCallback)(r=>{let{type:o,event:i}=r;e.forEach(s=>{var a;return(a=s[o])==null?void 0:a.call(s,i)})},[e]),t]}const ur={draggable:`
  2. To pick up a draggable item, press the space bar.
  3. While dragging, use the arrow keys to move the item.
  4. Press space again to drop the item in its new position, or press escape to cancel.
  5. `},dr={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 fr(e){let{announcements:t=dr,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=ur}=e;const{announce:i,announcement:s}=ar(),a=Ze("DndLiveRegion"),[c,u]=(0,l.useState)(!1);if((0,l.useEffect)(()=>{u(!0)},[]),lr((0,l.useMemo)(()=>({onDragStart(d){let{active:g}=d;i(t.onDragStart({active:g}))},onDragMove(d){let{active:g,over:v}=d;t.onDragMove&&i(t.onDragMove({active:g,over:v}))},onDragOver(d){let{active:g,over:v}=d;i(t.onDragOver({active:g,over:v}))},onDragEnd(d){let{active:g,over:v}=d;i(t.onDragEnd({active:g,over:v}))},onDragCancel(d){let{active:g,over:v}=d;i(t.onDragCancel({active:g,over:v}))}}),[i,t])),!c)return null;const f=l.createElement(l.Fragment,null,l.createElement(ir,{id:r,value:o.draggable}),l.createElement(sr,{id:a,announcement:s}));return n?(0,Re.createPortal)(f,n):f}var Z;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Z||(Z={}));function ot(){}function rn(e,t){return(0,l.useMemo)(()=>({sensor:e,options:t!=null?t:{}}),[e,t])}function vr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,l.useMemo)(()=>[...t].filter(r=>r!=null),[...t])}const re=Object.freeze({x:0,y:0});function Mt(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function fi(e,t){const n=getEventCoordinates(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function Nt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function gr(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Lt(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function hr(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function on(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const pr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=on(t,t.left,t.top),i=[];for(const s of r){const{id:a}=s,c=n.get(a);if(c){const u=Mt(on(c),o);i.push({id:a,data:{droppableContainer:s,value:u}})}}return i.sort(Nt)},vi=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=Lt(t),i=[];for(const s of r){const{id:a}=s,c=n.get(a);if(c){const u=Lt(c),f=o.reduce((g,v,m)=>g+Mt(u[m],v),0),d=Number((f/4).toFixed(4));i.push({id:a,data:{droppableContainer:s,value:d}})}}return i.sort(Nt)};function br(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=o-r,a=i-n;if(r<o&&n<i){const c=t.width*t.height,u=e.width*e.height,f=s*a,d=f/(c+u-f);return Number(d.toFixed(4))}return 0}const mr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:s}=i,a=n.get(s);if(a){const c=br(a,t);c>0&&o.push({id:s,data:{droppableContainer:i,value:c}})}}return o.sort(gr)};function yr(e,t){const{top:n,left:r,bottom:o,right:i}=t;return n<=e.y&&e.y<=o&&r<=e.x&&e.x<=i}const gi=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const o=[];for(const i of t){const{id:s}=i,a=n.get(s);if(a&&yr(r,a)){const u=Lt(a).reduce((d,g)=>d+Mt(r,g),0),f=Number((u/4).toFixed(4));o.push({id:s,data:{droppableContainer:i,value:f}})}}return o.sort(Nt)};function wr(e,t,n){return T(b({},e),{scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1})}function sn(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:re}function xr(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((s,a)=>T(b({},s),{top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),b({},n))}}const Sr=xr(1);function an(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Cr(e,t,n){const r=an(t);if(!r)return e;const{scaleX:o,scaleY:i,x:s,y:a}=r,c=e.left-s-(1-o)*parseFloat(n),u=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),f=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c}}const Dr={ignoreTransform:!1};function Oe(e,t){t===void 0&&(t=Dr);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:f}=H(e).getComputedStyle(e);u&&(n=Cr(n,u,f))}const{top:r,left:o,width:i,height:s,bottom:a,right:c}=n;return{top:r,left:o,width:i,height:s,bottom:a,right:c}}function ln(e){return Oe(e,{ignoreTransform:!0})}function Rr(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Er(e,t){return t===void 0&&(t=H(e).getComputedStyle(e)),t.position==="fixed"}function Ir(e,t){t===void 0&&(t=H(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):!1})}function kt(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(Rt(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Pe(o)||_t(o)||n.includes(o))return n;const i=H(e).getComputedStyle(o);return o!==e&&Ir(o,i)&&n.push(o),Er(o,i)?n:r(o.parentNode)}return e?r(e):n}function cn(e){const[t]=kt(e,1);return t!=null?t:null}function jt(e){return!tt||!e?null:Ee(e)?e:Dt(e)?Rt(e)||e===Ie(e).scrollingElement?window:Pe(e)?e:null:null}function un(e){return Ee(e)?e.scrollX:e.scrollLeft}function dn(e){return Ee(e)?e.scrollY:e.scrollTop}function Kt(e){return{x:un(e),y:dn(e)}}var U;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(U||(U={}));function fn(e){return!tt||!e?!1:e===document.scrollingElement}function vn(e){const t={x:0,y:0},n=fn(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}const Ar={x:.2,y:.2};function Or(e,t,n,r,o){let{top:i,left:s,right:a,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=Ar);const{isTop:u,isBottom:f,isLeft:d,isRight:g}=vn(e),v={x:0,y:0},m={x:0,y:0},h={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+h.height?(v.y=U.Backward,m.y=r*Math.abs((t.top+h.height-i)/h.height)):!f&&c>=t.bottom-h.height&&(v.y=U.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!g&&a>=t.right-h.width?(v.x=U.Forward,m.x=r*Math.abs((t.right-h.width-a)/h.width)):!d&&s<=t.left+h.width&&(v.x=U.Backward,m.x=r*Math.abs((t.left+h.width-s)/h.width)),{direction:v,speed:m}}function Tr(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function gn(e){return e.reduce((t,n)=>Ae(t,Kt(n)),re)}function Mr(e){return e.reduce((t,n)=>t+un(n),0)}function Nr(e){return e.reduce((t,n)=>t+dn(n),0)}function hn(e,t){if(t===void 0&&(t=Oe),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);cn(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Lr=[["x",["left","right"],Mr],["y",["top","bottom"],Nr]];class Pt{constructor(t,n){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 r=kt(n),o=gn(r);this.rect=b({},t),this.width=t.width,this.height=t.height;for(const[i,s,a]of Lr)for(const c of s)Object.defineProperty(this,c,{get:()=>{const u=a(r),f=o[i]-u;return this.rect[c]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Fe{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function kr(e){const{EventTarget:t}=H(e);return e instanceof t?e:Ie(e)}function zt(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(Jt(n,2)+Jt(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:!1}var _;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(_||(_={}));function pn(e){e.preventDefault()}function jr(e){e.stopPropagation()}var N;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(N||(N={}));const bn={start:[N.Space,N.Enter],cancel:[N.Esc],end:[N.Space,N.Enter]},Kr=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case N.Right:return T(b({},n),{x:n.x+25});case N.Left:return T(b({},n),{x:n.x-25});case N.Down:return T(b({},n),{y:n.y+25});case N.Up:return T(b({},n),{y:n.y-25})}};class mn{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Fe(Ie(n)),this.windowListeners=new Fe(H(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(_.Resize,this.handleCancel),this.windowListeners.add(_.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(_.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&hn(r),n(re)}handleKeyDown(t){if(Ot(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=bn,coordinateGetter:s=Kr,scrollBehavior:a="smooth"}=o,{code:c}=t;if(i.end.includes(c)){this.handleEnd(t);return}if(i.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:u}=r.current,f=u?{x:u.left,y:u.top}:re;this.referenceCoordinates||(this.referenceCoordinates=f);const d=s(t,{active:n,context:r.current,currentCoordinates:f});if(d){const g=rt(d,f),v={x:0,y:0},{scrollableAncestors:m}=r.current;for(const h of m){const p=t.code,{isTop:y,isRight:x,isLeft:w,isBottom:R,maxScroll:E,minScroll:A}=vn(h),D=Tr(h),I={x:Math.min(p===N.Right?D.right-D.width/2:D.right,Math.max(p===N.Right?D.left:D.left+D.width/2,d.x)),y:Math.min(p===N.Down?D.bottom-D.height/2:D.bottom,Math.max(p===N.Down?D.top:D.top+D.height/2,d.y))},C=p===N.Right&&!x||p===N.Left&&!w,P=p===N.Down&&!R||p===N.Up&&!y;if(C&&I.x!==d.x){const O=h.scrollLeft+g.x,W=p===N.Right&&O<=E.x||p===N.Left&&O>=A.x;if(W&&!g.y){h.scrollTo({left:O,behavior:a});return}W?v.x=h.scrollLeft-O:v.x=p===N.Right?h.scrollLeft-E.x:h.scrollLeft-A.x,v.x&&h.scrollBy({left:-v.x,behavior:a});break}else if(P&&I.y!==d.y){const O=h.scrollTop+g.y,W=p===N.Down&&O<=E.y||p===N.Up&&O>=A.y;if(W&&!g.x){h.scrollTo({top:O,behavior:a});return}W?v.y=h.scrollTop-O:v.y=p===N.Down?h.scrollTop-E.y:h.scrollTop-A.y,v.y&&h.scrollBy({top:-v.y,behavior:a});break}}this.handleMove(t,Ae(rt(d,this.referenceCoordinates),v))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}mn.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=bn,onActivation:o}=t,{active:i}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const a=i.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function yn(e){return!!(e&&"distance"in e)}function wn(e){return!!(e&&"delay"in e)}class Bt{constructor(t,n,r){var o;r===void 0&&(r=kr(t.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=t,this.events=n;const{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=Ie(s),this.documentListeners=new Fe(this.document),this.listeners=new Fe(r),this.windowListeners=new Fe(H(s)),this.initialCoordinates=(o=Tt(i))!=null?o:re,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(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(_.Resize,this.handleCancel),this.windowListeners.add(_.DragStart,pn),this.windowListeners.add(_.VisibilityChange,this.handleCancel),this.windowListeners.add(_.ContextMenu,pn),this.documentListeners.add(_.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(wn(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(yn(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(_.Click,jr,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(_.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!o)return;const c=(n=Tt(t))!=null?n:re,u=rt(o,c);if(!r&&a){if(yn(a)){if(a.tolerance!=null&&zt(u,a.tolerance))return this.handleCancel();if(zt(u,a.distance))return this.handleStart()}return wn(a)&&zt(u,a.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),s(c)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===N.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Pr={move:{name:"pointermove"},end:{name:"pointerup"}};class Zt extends Bt{constructor(t){const{event:n}=t,r=Ie(n.target);super(t,Pr,r)}}Zt.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const zr={move:{name:"mousemove"},end:{name:"mouseup"}};var Ft;(function(e){e[e.RightClick=2]="RightClick"})(Ft||(Ft={}));class xn extends Bt{constructor(t){super(t,zr,Ie(t.event.target))}}xn.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Ft.RightClick?!1:(r==null||r({event:n}),!0)}}];const Ut={move:{name:"touchmove"},end:{name:"touchend"}};class Br extends Bt{constructor(t){super(t,Ut)}static setup(){return window.addEventListener(Ut.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Ut.move.name,t)};function t(){}}}Br.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var Ue;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ue||(Ue={}));var it;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(it||(it={}));function Zr(e){let{acceleration:t,activator:n=Ue.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:a=it.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:f,delta:d,threshold:g}=e;const v=Ur({delta:d,disabled:!i}),[m,h]=er(),p=(0,l.useRef)({x:0,y:0}),y=(0,l.useRef)({x:0,y:0}),x=(0,l.useMemo)(()=>{switch(n){case Ue.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Ue.DraggableRect:return o}},[n,o,c]),w=(0,l.useRef)(null),R=(0,l.useCallback)(()=>{const A=w.current;if(!A)return;const D=p.current.x*y.current.x,I=p.current.y*y.current.y;A.scrollBy(D,I)},[]),E=(0,l.useMemo)(()=>a===it.TreeOrder?[...u].reverse():u,[a,u]);(0,l.useEffect)(()=>{if(!i||!u.length||!x){h();return}for(const A of E){if((r==null?void 0:r(A))===!1)continue;const D=u.indexOf(A),I=f[D];if(!I)continue;const{direction:C,speed:P}=Or(A,I,x,t,g);for(const O of["x","y"])v[O][C[O]]||(P[O]=0,C[O]=0);if(P.x>0||P.y>0){h(),w.current=A,m(R,s),p.current=P,y.current=C;return}}p.current={x:0,y:0},y.current={x:0,y:0},h()},[t,R,r,h,i,s,JSON.stringify(x),JSON.stringify(v),m,u,E,f,JSON.stringify(g)])}const Fr={x:{[U.Backward]:!1,[U.Forward]:!1},y:{[U.Backward]:!1,[U.Forward]:!1}};function Ur(e){let{delta:t,disabled:n}=e;const r=It(t);return Be(o=>{if(n||!r||!o)return Fr;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[U.Backward]:o.x[U.Backward]||i.x===-1,[U.Forward]:o.x[U.Forward]||i.x===1},y:{[U.Backward]:o.y[U.Backward]||i.y===-1,[U.Forward]:o.y[U.Forward]||i.y===1}}},[n,t,r])}function Xr(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return Be(o=>{var i;return t===null?null:(i=r!=null?r:o)!=null?i:null},[r,t])}function Yr(e,t){return(0,l.useMemo)(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...i]},[]),[e,t])}var Xe;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Xe||(Xe={}));var Xt;(function(e){e.Optimized="optimized"})(Xt||(Xt={}));const Sn=new Map;function $r(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,s]=(0,l.useState)(null),{frequency:a,measure:c,strategy:u}=o,f=(0,l.useRef)(e),d=p(),g=ze(d),v=(0,l.useCallback)(function(y){y===void 0&&(y=[]),!g.current&&s(x=>x===null?y:x.concat(y.filter(w=>!x.includes(w))))},[g]),m=(0,l.useRef)(null),h=Be(y=>{if(d&&!n)return Sn;if(!y||y===Sn||f.current!==e||i!=null){const x=new Map;for(let w of e){if(!w)continue;if(i&&i.length>0&&!i.includes(w.id)&&w.rect.current){x.set(w.id,w.rect.current);continue}const R=w.node.current,E=R?new Pt(c(R),R):null;w.rect.current=E,E&&x.set(w.id,E)}return x}return y},[e,i,n,d,c]);return(0,l.useEffect)(()=>{f.current=e},[e]),(0,l.useEffect)(()=>{d||v()},[n,d]),(0,l.useEffect)(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),(0,l.useEffect)(()=>{d||typeof a!="number"||m.current!==null||(m.current=setTimeout(()=>{v(),m.current=null},a))},[a,d,v,...r]),{droppableRects:h,measureDroppableContainers:v,measuringScheduled:i!=null};function p(){switch(u){case Xe.Always:return!1;case Xe.BeforeDragging:return n;default:return!n}}}function Cn(e,t){return Be(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Hr(e,t){return Cn(e,t)}function Wr(e){let{callback:t,disabled:n}=e;const r=Et(t),o=(0,l.useMemo)(()=>{if(n||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return(0,l.useEffect)(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function st(e){let{callback:t,disabled:n}=e;const r=Et(t),o=(0,l.useMemo)(()=>{if(n||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return(0,l.useEffect)(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Vr(e){return new Pt(Oe(e),e)}function Dn(e,t,n){t===void 0&&(t=Vr);const[r,o]=(0,l.useReducer)(a,null),i=Wr({callback(c){if(e)for(const u of c){const{type:f,target:d}=u;if(f==="childList"&&d instanceof HTMLElement&&d.contains(e)){o();break}}}}),s=st({callback:o});return ne(()=>{o(),e?(s==null||s.observe(e),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),i==null||i.disconnect())},[e]),r;function a(c){if(!e)return null;if(e.isConnected===!1){var u;return(u=c!=null?c:n)!=null?u:null}const f=t(e);return JSON.stringify(c)===JSON.stringify(f)?c:f}}function Gr(e){const t=Cn(e);return sn(e,t)}const Rn=[];function Jr(e){const t=(0,l.useRef)(e),n=Be(r=>e?r&&r!==Rn&&e&&t.current&&e.parentNode===t.current.parentNode?r:kt(e):Rn,[e]);return(0,l.useEffect)(()=>{t.current=e},[e]),n}function Qr(e){const[t,n]=(0,l.useState)(null),r=(0,l.useRef)(e),o=(0,l.useCallback)(i=>{const s=jt(i.target);s&&n(a=>a?(a.set(s,Kt(s)),new Map(a)):null)},[]);return(0,l.useEffect)(()=>{const i=r.current;if(e!==i){s(i);const a=e.map(c=>{const u=jt(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,Kt(u)]):null}).filter(c=>c!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(i)};function s(a){a.forEach(c=>{const u=jt(c);u==null||u.removeEventListener("scroll",o)})}},[o,e]),(0,l.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>Ae(i,s),re):gn(e):re,[e,t])}function En(e,t){t===void 0&&(t=[]);const n=(0,l.useRef)(null);return(0,l.useEffect)(()=>{n.current=null},t),(0,l.useEffect)(()=>{const r=e!==re;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?rt(e,n.current):re}function qr(e){(0,l.useEffect)(()=>{if(!tt)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function _r(e,t){return(0,l.useMemo)(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=s=>{i(s,t)},n},{}),[e,t])}function In(e){return(0,l.useMemo)(()=>e?Rr(e):null,[e])}const Yt=[];function eo(e,t){t===void 0&&(t=Oe);const[n]=e,r=In(n?H(n):null),[o,i]=(0,l.useReducer)(a,Yt),s=st({callback:i});return e.length>0&&o===Yt&&i(),ne(()=>{e.length?e.forEach(c=>s==null?void 0:s.observe(c)):(s==null||s.disconnect(),i())},[e]),o;function a(){return e.length?e.map(c=>fn(c)?r:new Pt(t(c),c)):Yt}}function An(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Pe(t)?t:e}function to(e){let{measure:t}=e;const[n,r]=(0,l.useState)(null),o=(0,l.useCallback)(u=>{for(const{target:f}of u)if(Pe(f)){r(d=>{const g=t(f);return d?T(b({},d),{width:g.width,height:g.height}):g});break}},[t]),i=st({callback:o}),s=(0,l.useCallback)(u=>{const f=An(u);i==null||i.disconnect(),f&&(i==null||i.observe(f)),r(f?t(f):null)},[t,i]),[a,c]=nt(s);return(0,l.useMemo)(()=>({nodeRef:a,rect:n,setRef:c}),[n,a,c])}const no=[{sensor:Zt,options:{}},{sensor:mn,options:{}}],ro={current:{}},at={draggable:{measure:ln},droppable:{measure:ln,strategy:Xe.WhileDragging,frequency:Xt.Optimized},dragOverlay:{measure:Oe}};class Ye extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const oo={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ye,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ot},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:at,measureDroppableContainers:ot,windowRect:null,measuringScheduled:!1},On={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ot,draggableNodes:new Map,over:null,measureDroppableContainers:ot},$e=(0,l.createContext)(On),Tn=(0,l.createContext)(oo);function io(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ye}}}function so(e,t){switch(t.type){case Z.DragStart:return T(b({},e),{draggable:T(b({},e.draggable),{initialCoordinates:t.initialCoordinates,active:t.active})});case Z.DragMove:return e.draggable.active?T(b({},e),{draggable:T(b({},e.draggable),{translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}})}):e;case Z.DragEnd:case Z.DragCancel:return T(b({},e),{draggable:T(b({},e.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case Z.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Ye(e.droppable.containers);return o.set(r,n),T(b({},e),{droppable:T(b({},e.droppable),{containers:o})})}case Z.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const s=new Ye(e.droppable.containers);return s.set(n,T(b({},i),{disabled:o})),T(b({},e),{droppable:T(b({},e.droppable),{containers:s})})}case Z.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Ye(e.droppable.containers);return i.delete(n),T(b({},e),{droppable:T(b({},e.droppable),{containers:i})})}default:return e}}function ao(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=(0,l.useContext)($e),i=It(r),s=It(n==null?void 0:n.id);return(0,l.useEffect)(()=>{if(!t&&!r&&i&&s!=null){if(!Ot(i)||document.activeElement===i.target)return;const a=o.get(s);if(!a)return;const{activatorNode:c,node:u}=a;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const f of[c.current,u.current]){if(!f)continue;const d=rr(f);if(d){d.focus();break}}})}},[r,t,o,s,i]),null}function lo(e,t){let o=t,{transform:n}=o,r=xt(o,["transform"]);return e!=null&&e.length?e.reduce((i,s)=>s(b({transform:i},r)),n):n}function co(e){return(0,l.useMemo)(()=>({draggable:b(b({},at.draggable),e==null?void 0:e.draggable),droppable:b(b({},at.droppable),e==null?void 0:e.droppable),dragOverlay:b(b({},at.dragOverlay),e==null?void 0:e.dragOverlay)}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function uo(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=(0,l.useRef)(!1),{x:s,y:a}=typeof o=="boolean"?{x:o,y:o}:o;ne(()=>{if(!s&&!a||!t){i.current=!1;return}if(i.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const f=n(u),d=sn(f,r);if(s||(d.x=0),a||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const g=cn(u);g&&g.scrollBy({top:d.y,left:d.x})}},[t,s,a,r,n])}const $t=(0,l.createContext)(T(b({},re),{scaleX:1,scaleY:1}));var ge;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(ge||(ge={}));const fo=(0,l.memo)(function(t){var n,r,o,i;let Wn=t,{id:s,accessibility:a,autoScroll:c=!0,children:u,sensors:f=no,collisionDetection:d=mr,measuring:g,modifiers:v}=Wn,m=xt(Wn,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const h=(0,l.useReducer)(so,void 0,io),[p,y]=h,[x,w]=cr(),[R,E]=(0,l.useState)(ge.Uninitialized),A=R===ge.Initialized,{draggable:{active:D,nodes:I,translate:C},droppable:{containers:P}}=p,O=D?I.get(D):null,W=(0,l.useRef)({initial:null,translated:null}),F=(0,l.useMemo)(()=>{var X;return D!=null?{id:D,data:(X=O==null?void 0:O.data)!=null?X:ro,rect:W}:null},[D,O]),ee=(0,l.useRef)(null),[Se,ft]=(0,l.useState)(null),[G,vt]=(0,l.useState)(null),Ce=ze(m,Object.values(m)),He=Ze("DndDescribedBy",s),gt=(0,l.useMemo)(()=>P.getEnabled(),[P]),V=co(g),{droppableRects:ce,measureDroppableContainers:De,measuringScheduled:We}=$r(gt,{dragging:A,dependencies:[C.x,C.y],config:V.droppable}),J=Xr(I,D),ht=(0,l.useMemo)(()=>G?Tt(G):null,[G]),he=li(),ue=Hr(J,V.draggable.measure);uo({activeNode:D?I.get(D):null,config:he.layoutShiftCompensation,initialRect:ue,measure:V.draggable.measure});const L=Dn(J,V.draggable.measure,ue),Ve=Dn(J?J.parentElement:null),ae=(0,l.useRef)({activatorEvent:null,active:null,activeNode:J,collisionRect:null,collisions:null,droppableRects:ce,draggableNodes:I,draggingNode:null,draggingNodeRect:null,droppableContainers:P,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Te=P.getNodeFor((n=ae.current.over)==null?void 0:n.id),de=to({measure:V.dragOverlay.measure}),Me=(r=de.nodeRef.current)!=null?r:J,Ne=A?(o=de.rect)!=null?o:L:null,Bn=!!(de.nodeRef.current&&de.rect),Zn=Gr(Bn?null:L),Vt=In(Me?H(Me):null),pe=Jr(A?Te!=null?Te:J:null),pt=eo(pe),bt=lo(v,{transform:{x:C.x-Zn.x,y:C.y-Zn.y,scaleX:1,scaleY:1},activatorEvent:G,active:F,activeNodeRect:L,containerNodeRect:Ve,draggingNodeRect:Ne,over:ae.current.over,overlayNodeRect:de.rect,scrollableAncestors:pe,scrollableAncestorRects:pt,windowRect:Vt}),Fn=ht?Ae(ht,C):null,Un=Qr(pe),ti=En(Un),ni=En(Un,[L]),Le=Ae(bt,ti),ke=Ne?Sr(Ne,bt):null,Ge=F&&ke?d({active:F,collisionRect:ke,droppableRects:ce,droppableContainers:gt,pointerCoordinates:Fn}):null,Xn=hr(Ge,"id"),[be,Yn]=(0,l.useState)(null),ri=Bn?bt:Ae(bt,ni),oi=wr(ri,(i=be==null?void 0:be.rect)!=null?i:null,L),$n=(0,l.useCallback)((X,Q)=>{let{sensor:q,options:me}=Q;if(ee.current==null)return;const te=I.get(ee.current);if(!te)return;const oe=X.nativeEvent,le=new q({active:ee.current,activeNode:te,event:oe,options:me,context:ae,onStart(ie){const Je=ee.current;if(Je==null)return;const Qe=I.get(Je);if(!Qe)return;const{onDragStart:mt}=Ce.current,yt={active:{id:Je,data:Qe.data,rect:W}};(0,Re.unstable_batchedUpdates)(()=>{mt==null||mt(yt),E(ge.Initializing),y({type:Z.DragStart,initialCoordinates:ie,active:Je}),x({type:"onDragStart",event:yt})})},onMove(ie){y({type:Z.DragMove,coordinates:ie})},onEnd:je(Z.DragEnd),onCancel:je(Z.DragCancel)});(0,Re.unstable_batchedUpdates)(()=>{ft(le),vt(X.nativeEvent)});function je(ie){return function(){return qn(this,null,function*(){const{active:Qe,collisions:mt,over:yt,scrollAdjustedTranslate:Vn}=ae.current;let qe=null;if(Qe&&Vn){const{cancelDrop:_e}=Ce.current;qe={activatorEvent:oe,active:Qe,collisions:mt,delta:Vn,over:yt},ie===Z.DragEnd&&typeof _e=="function"&&(yield Promise.resolve(_e(qe)))&&(ie=Z.DragCancel)}ee.current=null,(0,Re.unstable_batchedUpdates)(()=>{y({type:ie}),E(ge.Uninitialized),Yn(null),ft(null),vt(null);const _e=ie===Z.DragEnd?"onDragEnd":"onDragCancel";if(qe){const Gt=Ce.current[_e];Gt==null||Gt(qe),x({type:_e,event:qe})}})})}}},[I]),ii=(0,l.useCallback)((X,Q)=>(q,me)=>{const te=q.nativeEvent,oe=I.get(me);if(ee.current!==null||!oe||te.dndKit||te.defaultPrevented)return;const le={active:oe};X(q,Q.options,le)===!0&&(te.dndKit={capturedBy:Q.sensor},ee.current=me,$n(q,Q))},[I,$n]),Hn=Yr(f,ii);qr(f),ne(()=>{L&&R===ge.Initializing&&E(ge.Initialized)},[L,R]),(0,l.useEffect)(()=>{const{onDragMove:X}=Ce.current,{active:Q,activatorEvent:q,collisions:me,over:te}=ae.current;if(!Q||!q)return;const oe={active:Q,activatorEvent:q,collisions:me,delta:{x:Le.x,y:Le.y},over:te};(0,Re.unstable_batchedUpdates)(()=>{X==null||X(oe),x({type:"onDragMove",event:oe})})},[Le.x,Le.y]),(0,l.useEffect)(()=>{const{active:X,activatorEvent:Q,collisions:q,droppableContainers:me,scrollAdjustedTranslate:te}=ae.current;if(!X||ee.current==null||!Q||!te)return;const{onDragOver:oe}=Ce.current,le=me.get(Xn),je=le&&le.rect.current?{id:le.id,rect:le.rect.current,data:le.data,disabled:le.disabled}:null,ie={active:X,activatorEvent:Q,collisions:q,delta:{x:te.x,y:te.y},over:je};(0,Re.unstable_batchedUpdates)(()=>{Yn(je),oe==null||oe(ie),x({type:"onDragOver",event:ie})})},[Xn]),ne(()=>{ae.current={activatorEvent:G,active:F,activeNode:J,collisionRect:ke,collisions:Ge,droppableRects:ce,draggableNodes:I,draggingNode:Me,draggingNodeRect:Ne,droppableContainers:P,over:be,scrollableAncestors:pe,scrollAdjustedTranslate:Le},W.current={initial:Ne,translated:ke}},[F,J,Ge,ke,I,Me,Ne,ce,P,be,pe,Le]),Zr(T(b({},he),{delta:C,draggingRect:ke,pointerCoordinates:Fn,scrollableAncestors:pe,scrollableAncestorRects:pt}));const si=(0,l.useMemo)(()=>({active:F,activeNode:J,activeNodeRect:L,activatorEvent:G,collisions:Ge,containerNodeRect:Ve,dragOverlay:de,draggableNodes:I,droppableContainers:P,droppableRects:ce,over:be,measureDroppableContainers:De,scrollableAncestors:pe,scrollableAncestorRects:pt,measuringConfiguration:V,measuringScheduled:We,windowRect:Vt}),[F,J,L,G,Ge,Ve,de,I,P,ce,be,De,pe,pt,V,We,Vt]),ai=(0,l.useMemo)(()=>({activatorEvent:G,activators:Hn,active:F,activeNodeRect:L,ariaDescribedById:{draggable:He},dispatch:y,draggableNodes:I,over:be,measureDroppableContainers:De}),[G,Hn,F,L,y,He,I,be,De]);return l.createElement(nn.Provider,{value:w},l.createElement($e.Provider,{value:ai},l.createElement(Tn.Provider,{value:si},l.createElement($t.Provider,{value:oi},u)),l.createElement(ao,{disabled:(a==null?void 0:a.restoreFocus)===!1})),l.createElement(fr,T(b({},a),{hiddenTextDescribedById:He})));function li(){const X=(Se==null?void 0:Se.autoScrollEnabled)===!1,Q=typeof c=="object"?c.enabled===!1:c===!1,q=A&&!X&&!Q;return typeof c=="object"?T(b({},c),{enabled:q}):{enabled:q}}}),vo=(0,l.createContext)(null),Mn="button",go="Droppable";function ho(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=Ze(go),{activators:s,activatorEvent:a,active:c,activeNodeRect:u,ariaDescribedById:f,draggableNodes:d,over:g}=(0,l.useContext)($e),{role:v=Mn,roleDescription:m="draggable",tabIndex:h=0}=o!=null?o:{},p=(c==null?void 0:c.id)===t,y=(0,l.useContext)(p?$t:vo),[x,w]=nt(),[R,E]=nt(),A=_r(s,t),D=ze(n);ne(()=>(d.set(t,{id:t,key:i,node:x,activatorNode:R,data:D}),()=>{const C=d.get(t);C&&C.key===i&&d.delete(t)}),[d,t]);const I=(0,l.useMemo)(()=>({role:v,tabIndex:h,"aria-disabled":r,"aria-pressed":p&&v===Mn?!0:void 0,"aria-roledescription":m,"aria-describedby":f.draggable}),[r,v,h,p,m,f.draggable]);return{active:c,activatorEvent:a,activeNodeRect:u,attributes:I,isDragging:p,listeners:r?void 0:A,node:x,over:g,setNodeRef:w,setActivatorNodeRef:E,transform:y}}function po(){return(0,l.useContext)(Tn)}const bo="Droppable",mo={timeout:25};function yo(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=Ze(bo),{active:s,dispatch:a,over:c,measureDroppableContainers:u}=(0,l.useContext)($e),f=(0,l.useRef)({disabled:n}),d=(0,l.useRef)(!1),g=(0,l.useRef)(null),v=(0,l.useRef)(null),{disabled:m,updateMeasurementsFor:h,timeout:p}=b(b({},mo),o),y=ze(h!=null?h:r),x=(0,l.useCallback)(()=>{if(!d.current){d.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),v.current=null},p)},[p]),w=st({callback:x,disabled:m||!s}),R=(0,l.useCallback)((I,C)=>{w&&(C&&(w.unobserve(C),d.current=!1),I&&w.observe(I))},[w]),[E,A]=nt(R),D=ze(t);return(0,l.useEffect)(()=>{!w||!E.current||(w.disconnect(),d.current=!1,w.observe(E.current))},[E,w]),ne(()=>(a({type:Z.RegisterDroppable,element:{id:r,key:i,disabled:n,node:E,rect:g,data:D}}),()=>a({type:Z.UnregisterDroppable,key:i,id:r})),[r]),(0,l.useEffect)(()=>{n!==f.current.disabled&&(a({type:Z.SetDroppableDisabled,id:r,key:i,disabled:n}),f.current.disabled=n)},[r,i,n,a]),{active:s,rect:g,isOver:(c==null?void 0:c.id)===r,node:E,over:c,setNodeRef:A}}function hi(e){let{animation:t,children:n}=e;const[r,o]=useState(null),[i,s]=useState(null),a=usePrevious(n);return!n&&!r&&a&&o(a),useIsomorphicLayoutEffect(()=>{if(!i)return;const c=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(c==null||u==null){o(null);return}Promise.resolve(t(u,i)).then(()=>{o(null)})},[t,r,i]),React.createElement(React.Fragment,null,n,r?cloneElement(r,{ref:s}):null)}const wo={x:0,y:0,scaleX:1,scaleY:1};function pi(e){let{children:t}=e;return React.createElement($e.Provider,{value:On},React.createElement($t.Provider,{value:wo},t))}const bi={position:"fixed",touchAction:"none"},mi=e=>isKeyboardEvent(e)?"transform 250ms ease":void 0,yi=null,xo={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:xe.Transform.toString(t)},{transform:xe.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:i,className:s}=e;if(i!=null&&i.active)for(const[a,c]of Object.entries(i.active))c!==void 0&&(o[a]=n.node.style.getPropertyValue(a),n.node.style.setProperty(a,c));if(i!=null&&i.dragOverlay)for(const[a,c]of Object.entries(i.dragOverlay))c!==void 0&&r.node.style.setProperty(a,c);return s!=null&&s.active&&n.node.classList.add(s.active),s!=null&&s.dragOverlay&&r.node.classList.add(s.dragOverlay),function(){for(const[c,u]of Object.entries(o))n.node.style.setProperty(c,u);s!=null&&s.active&&n.node.classList.remove(s.active)}})({styles:{active:{opacity:"0"}}})};function Si(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return useEvent((i,s)=>{if(t===null)return;const a=n.get(i);if(!a)return;const c=a.node.current;if(!c)return;const u=An(s);if(!u)return;const{transform:f}=getWindow(s).getComputedStyle(s),d=an(f);if(!d)return;const g=typeof t=="function"?t:So(t);return hn(c,o.draggable.measure),g({active:{id:i,data:a.data,node:c,rect:o.draggable.measure(c)},draggableNodes:n,dragOverlay:{node:s,rect:o.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:o,transform:d})})}function So(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}=b(b({},xo),e);return i=>{let x=i,{active:s,dragOverlay:a,transform:c}=x,u=xt(x,["active","dragOverlay","transform"]);if(!t)return;const f={x:a.rect.left-s.rect.left,y:a.rect.top-s.rect.top},d={scaleX:c.scaleX!==1?s.rect.width*c.scaleX/a.rect.width:1,scaleY:c.scaleY!==1?s.rect.height*c.scaleY/a.rect.height:1},g=b({x:c.x-f.x,y:c.y-f.y},d),v=o(T(b({},u),{active:s,dragOverlay:a,transform:{initial:c,final:g}})),[m]=v,h=v[v.length-1];if(JSON.stringify(m)===JSON.stringify(h))return;const p=r==null?void 0:r(b({active:s,dragOverlay:a},u)),y=a.node.animate(v,{duration:t,easing:n,fill:"forwards"});return new Promise(w=>{y.onfinish=()=>{p==null||p(),w()}})}}let Nn=0;function Ci(e){return useMemo(()=>{if(e!=null)return Nn++,Nn},[e])}const Di=null;function Ri(e){return t=>{let{transform:n}=t;return T(b({},n),{x:Math.ceil(n.x/e)*e,y:Math.ceil(n.y/e)*e})}}const Ei=e=>{let{transform:t}=e;return T(b({},t),{y:0})};function Ht(e,t,n){const r=b({},e);return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}const Ii=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return!n||!t?r:Ht(r,n,t)},Ai=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:r}=e;const o=r[0];return!t||!o?n:Ht(n,t,o)},Co=e=>{let{transform:t}=e;return T(b({},t),{x:0})},Oi=e=>{let{transform:t,draggingNodeRect:n,windowRect:r}=e;return!n||!r?t:Ht(t,n,r)},Ti=e=>{let{activatorEvent:t,draggingNodeRect:n,transform:r}=e;if(n&&t){const o=getEventCoordinates(t);if(!o)return r;const i=o.x-n.left,s=o.y-n.top;return T(b({},r),{x:r.x+i-n.width/2,y:r.y+s-n.height/2})}return r};function Wt(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Mi(e,t,n){const r=e.slice();return r[t]=e[n],r[n]=e[t],r}function Do(e,t){return e.reduce((n,r,o)=>{const i=t.get(r);return i&&(n[o]=i),n},Array(e.length))}function lt(e){return e!==null&&e>=0}function Ro(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}function Eo(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const ct={scaleX:1,scaleY:1},Ni=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:o,overIndex:i,index:s}=e;const a=(t=n[o])!=null?t:r;if(!a)return null;const c=Io(n,s,o);if(s===o){const u=n[i];return u?b({x:o<i?u.left+u.width-(a.left+a.width):u.left-a.left,y:0},ct):null}return s>o&&s<=i?b({x:-a.width-c,y:0},ct):s<o&&s>=i?b({x:a.width+c,y:0},ct):b({x:0,y:0},ct)};function Io(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return!r||!o&&!i?0:n<t?o?r.left-(o.left+o.width):i.left-(r.left+r.width):i?i.left-(r.left+r.width):r.left-(o.left+o.width)}const Ln=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=Wt(t,r,n),s=t[o],a=i[o];return!a||!s?null:{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}},Li=e=>{let{activeIndex:t,index:n,rects:r,overIndex:o}=e,i,s;return n===t&&(i=r[n],s=r[o]),n===o&&(i=r[n],s=r[t]),!s||!i?null:{x:s.left-i.left,y:s.top-i.top,scaleX:s.width/i.width,scaleY:s.height/i.height}},ut={scaleX:1,scaleY:1},Ao=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:s}=e;const a=(t=i[n])!=null?t:r;if(!a)return null;if(o===n){const u=i[s];return u?b({x:0,y:n<s?u.top+u.height-(a.top+a.height):u.top-a.top},ut):null}const c=Oo(i,o,n);return o>n&&o<=s?b({x:0,y:-a.height-c},ut):o<n&&o>=s?b({x:0,y:a.height+c},ut):b({x:0,y:0},ut)};function Oo(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?n<t?o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const kn="Sortable",jn=l.createContext({activeIndex:-1,containerId:kn,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Ln,disabled:{draggable:!1,droppable:!1}});function To(e){let{children:t,id:n,items:r,strategy:o=Ln,disabled:i=!1}=e;const{active:s,dragOverlay:a,droppableRects:c,over:u,measureDroppableContainers:f}=po(),d=Ze(kn,n),g=a.rect!==null,v=(0,l.useMemo)(()=>r.map(A=>typeof A=="object"&&"id"in A?A.id:A),[r]),m=s!=null,h=s?v.indexOf(s.id):-1,p=u?v.indexOf(u.id):-1,y=(0,l.useRef)(v),x=!Ro(v,y.current),w=p!==-1&&h===-1||x,R=Eo(i);ne(()=>{x&&m&&f(v)},[x,v,m,f]),(0,l.useEffect)(()=>{y.current=v},[v]);const E=(0,l.useMemo)(()=>({activeIndex:h,containerId:d,disabled:R,disableTransforms:w,items:v,overIndex:p,useDragOverlay:g,sortedRects:Do(v,c),strategy:o}),[h,d,R.draggable,R.droppable,w,v,p,c,g,o]);return l.createElement(jn.Provider,{value:E},t)}const Mo=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return Wt(n,r,o).indexOf(t)},No=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:s,previousItems:a,previousContainerId:c,transition:u}=e;return!u||!r||a!==i&&o===s?!1:n?!0:s!==o&&t===c},Lo={duration:200,easing:"ease"},Kn="transform",ko=xe.Transition.toString({property:Kn,duration:0,easing:"linear"}),jo={roleDescription:"sortable"};function Ko(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,s]=(0,l.useState)(null),a=(0,l.useRef)(n);return ne(()=>{if(!t&&n!==a.current&&r.current){const c=o.current;if(c){const u=Oe(r.current,{ignoreTransform:!0}),f={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(f.x||f.y)&&s(f)}}n!==a.current&&(a.current=n)},[t,n,r,o]),(0,l.useEffect)(()=>{i&&s(null)},[i]),i}function Po(e){let{animateLayoutChanges:t=No,attributes:n,disabled:r,data:o,getNewIndex:i=Mo,id:s,strategy:a,resizeObserverConfig:c,transition:u=Lo}=e;const{items:f,containerId:d,activeIndex:g,disabled:v,disableTransforms:m,sortedRects:h,overIndex:p,useDragOverlay:y,strategy:x}=(0,l.useContext)(jn),w=zo(r,v),R=f.indexOf(s),E=(0,l.useMemo)(()=>b({sortable:{containerId:d,index:R,items:f}},o),[d,o,R,f]),A=(0,l.useMemo)(()=>f.slice(f.indexOf(s)),[f,s]),{rect:D,node:I,isOver:C,setNodeRef:P}=yo({id:s,data:E,disabled:w.droppable,resizeObserverConfig:b({updateMeasurementsFor:A},c)}),{active:O,activatorEvent:W,activeNodeRect:F,attributes:ee,setNodeRef:Se,listeners:ft,isDragging:G,over:vt,setActivatorNodeRef:Ce,transform:He}=ho({id:s,data:E,attributes:b(b({},jo),n),disabled:w.draggable}),gt=_n(P,Se),V=!!O,ce=V&&!m&&lt(g)&&lt(p),De=!y&&G,We=De&&ce?He:null,J=a!=null?a:x,ht=ce?We!=null?We:J({rects:h,activeNodeRect:F,activeIndex:g,overIndex:p,index:R}):null,he=lt(g)&&lt(p)?i({id:s,items:f,activeIndex:g,overIndex:p}):R,ue=O==null?void 0:O.id,L=(0,l.useRef)({activeId:ue,items:f,newIndex:he,containerId:d}),Ve=f!==L.current.items,ae=t({active:O,containerId:d,isDragging:G,isSorting:V,id:s,index:R,items:f,newIndex:L.current.newIndex,previousItems:L.current.items,previousContainerId:L.current.containerId,transition:u,wasDragging:L.current.activeId!=null}),Te=Ko({disabled:!ae,index:R,node:I,rect:D});return(0,l.useEffect)(()=>{V&&L.current.newIndex!==he&&(L.current.newIndex=he),d!==L.current.containerId&&(L.current.containerId=d),f!==L.current.items&&(L.current.items=f)},[V,he,d,f]),(0,l.useEffect)(()=>{if(ue===L.current.activeId)return;if(ue&&!L.current.activeId){L.current.activeId=ue;return}const Me=setTimeout(()=>{L.current.activeId=ue},50);return()=>clearTimeout(Me)},[ue]),{active:O,activeIndex:g,attributes:ee,data:E,rect:D,index:R,newIndex:he,items:f,isOver:C,isSorting:V,isDragging:G,listeners:ft,node:I,overIndex:p,over:vt,setNodeRef:gt,setActivatorNodeRef:Ce,setDroppableNodeRef:P,setDraggableNodeRef:Se,transform:Te!=null?Te:ht,transition:de()};function de(){if(Te||Ve&&L.current.newIndex===R)return ko;if(!(De&&!Ot(W)||!u)&&(V||ae))return xe.Transition.toString(T(b({},u),{property:Kn}))}}function zo(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}function dt(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Bo=[N.Down,N.Right,N.Up,N.Left],ki=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:i,over:s,scrollableAncestors:a}}=t;if(Bo.includes(e.code)){if(e.preventDefault(),!n||!r)return;const c=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const g=o.get(d.id);if(g)switch(e.code){case KeyboardCode.Down:r.top<g.top&&c.push(d);break;case KeyboardCode.Up:r.top>g.top&&c.push(d);break;case KeyboardCode.Left:r.left>g.left&&c.push(d);break;case KeyboardCode.Right:r.left<g.left&&c.push(d);break}});const u=closestCorners({active:n,collisionRect:r,droppableRects:o,droppableContainers:c,pointerCoordinates:null});let f=getFirstCollision(u,"id");if(f===(s==null?void 0:s.id)&&u.length>1&&(f=u[1].id),f!=null){const d=i.get(n.id),g=i.get(f),v=g?o.get(g.id):null,m=g==null?void 0:g.node.current;if(m&&v&&d&&g){const p=getScrollableAncestors(m).some((A,D)=>a[D]!==A),y=Pn(d,g),x=Zo(d,g),w=p||!y?{x:0,y:0}:{x:x?r.width-v.width:0,y:x?r.height-v.height:0},R={x:v.left,y:v.top};return w.x&&w.y?R:subtract(R,w)}}}};function Pn(e,t){return!dt(e)||!dt(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Zo(e,t){return!dt(e)||!dt(t)||!Pn(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}var $=S(85893),Fo=["DragHandle","dragSortKey"],Uo=["dragSortKey"],zn=(0,l.createContext)({handle:null}),Xo=function(t){var n=Po({id:t.id}),r=n.attributes,o=n.listeners,i=n.setNodeRef,s=n.transform,a=n.transition,c=(0,M.Z)({transform:xe.Transform.toString(s),transition:a},t==null?void 0:t.style),u=t.DragHandle,f=t.dragSortKey,d=(0,se.Z)(t,Fo);if(f){var g=[];return l.Children.forEach(d.children,function(v,m){if(v.key===f){var h,p;g.push((0,$.jsx)(zn.Provider,{value:{handle:(0,$.jsx)(u,(0,M.Z)((0,M.Z)({rowData:v==null||(h=v.props)===null||h===void 0?void 0:h.record,index:v==null||(p=v.props)===null||p===void 0?void 0:p.index},o),r))},children:v},v.key||m));return}g.push(v)}),(0,$.jsx)("tr",(0,M.Z)((0,M.Z)({},d),{},{ref:i,style:c,children:g}))}return(0,$.jsx)("tr",(0,M.Z)((0,M.Z)((0,M.Z)({},d),{},{ref:i,style:c},r),o))},Yo=l.memo(function(e){var t=e.dragSortKey,n=(0,se.Z)(e,Uo),r=(0,l.useContext)(zn),o=r.handle;return o?(0,$.jsx)("td",(0,M.Z)((0,M.Z)({},n),{},{children:(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[o," ",n.children]})})):(0,$.jsx)("td",(0,M.Z)({},n))}),$o=function(t){return(0,$.jsx)("tbody",(0,M.Z)({},t))};function Ho(e){var t=e.dataSource,n=t===void 0?[]:t,r=e.onDragSortEnd,o=e.DragHandle,i=e.dragSortKey,s=vr(rn(Zt),rn(xn)),a=(0,l.useCallback)(function(v){var m,h=v.active,p=v.over;if(p!=null&&(m=p.id)!==null&&m!==void 0&&m.toString()&&h.id!==(p==null?void 0:p.id)){var y=Wt(n||[],parseInt(h.id),parseInt(p.id));r==null||r(parseInt(h.id),parseInt(p.id),y||[])}},[n,r]),c=(0,we.J)(function(v){return(0,$.jsx)(To,{items:n.map(function(m,h){return h==null?void 0:h.toString()}),strategy:Ao,children:(0,$.jsx)($o,(0,M.Z)({},v))})}),u=(0,we.J)(function(v){var m,h=Object.assign({},((0,ve.Z)(v),v)),p=(m=n.findIndex(function(y){var x;return y[(x=e.rowKey)!==null&&x!==void 0?x:"index"]===h["data-row-key"]}))===null||m===void 0?void 0:m.toString();return(0,$.jsx)(Xo,(0,M.Z)({id:p,dragSortKey:i,DragHandle:o},h),p)}),f=e.components||{};if(i){var d;f.body=(0,M.Z)({wrapper:c,row:u,cell:Yo},((d=e.components)===null||d===void 0?void 0:d.body)||{})}var g=(0,l.useMemo)(function(){return function(v){return(0,$.jsx)(fo,{modifiers:[Co],sensors:s,collisionDetection:pr,onDragEnd:a,children:v.children})}},[a,s]);return{DndContext:g,components:f}}var Wo=S(4942),Vo=S(98082),Go=function(t){return(0,Wo.Z)({},t.componentCls,{"&-icon":{marginInlineEnd:8,color:t.colorTextSecondary,cursor:"grab !important",padding:4,fontSize:12,borderRadius:t.borderRadius,"&:hover":{color:t.colorText,backgroundColor:t.colorInfoBg}}})};function Jo(e){return(0,Vo.Xj)("DragSortTable",function(t){var n=(0,M.Z)((0,M.Z)({},t),{},{componentCls:".".concat(e)});return[Go(n)]})}var Qo=["rowKey","dragSortKey","dragSortHandlerRender","onDragSortEnd","onDataSourceChange","defaultData","dataSource","onLoad"],qo=["rowData","index","className"];function _o(e){var t,n=e.rowKey,r=e.dragSortKey,o=e.dragSortHandlerRender,i=e.onDragSortEnd,s=e.onDataSourceChange,a=e.defaultData,c=e.dataSource,u=e.onLoad,f=(0,se.Z)(e,Qo),d=(0,l.useContext)(j.ZP.ConfigContext),g=d.getPrefixCls,v=(0,K.Z)(function(){return a||[]},{value:c,onChange:s}),m=(0,Ke.Z)(v,2),h=m[0],p=m[1],y=Jo(g("pro-table-drag")),x=y.wrapSSR,w=y.hashId,R=(0,l.useMemo)(function(){return function(C){var P=C.rowData,O=C.index,W=C.className,F=(0,se.Z)(C,qo),ee=(0,$.jsx)(Ct,(0,M.Z)((0,M.Z)({},F),{},{className:"".concat(g("pro-table-drag-icon")," ").concat(W||""," ").concat(w||"").trim()})),Se=o?o(C==null?void 0:C.rowData,C==null?void 0:C.index):ee;return(0,$.jsx)("div",(0,M.Z)((0,M.Z)({},F),{},{children:Se}))}},[g]),E=Ho({dataSource:h==null?void 0:h.slice(),dragSortKey:r,onDragSortEnd:i,components:e.components,rowKey:n,DragHandle:R}),A=E.components,D=E.DndContext,I=function(){var C=(0,ye.Z)((0,Y.Z)().mark(function P(O){return(0,Y.Z)().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return p(O),F.abrupt("return",u==null?void 0:u(O));case 2:case"end":return F.stop()}},P)}));return function(O){return C.apply(this,arguments)}}();return x((0,$.jsx)(fe.Z,(0,M.Z)((0,M.Z)({},f),{},{columns:(t=f.columns)===null||t===void 0?void 0:t.map(function(C){return(C.dataIndex==r||C.key===r)&&(C.render||(C.render=function(){return null})),C}),onLoad:I,rowKey:n,tableViewRender:function(P,O){return(0,$.jsx)(D,{children:O})},dataSource:h,components:A,onDataSourceChange:s})))}var ei=_o},57632:function(z,B,S){S.d(B,{Z:function(){return Ct}});var Y=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ye={randomUUID:Y},M,Ke=new Uint8Array(16);function se(){if(!M&&(M=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!M))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return M(Ke)}for(var k=[],l=0;l<256;++l)k.push((l+256).toString(16).slice(1));function et(j,K=0){return(k[j[K+0]]+k[j[K+1]]+k[j[K+2]]+k[j[K+3]]+"-"+k[j[K+4]]+k[j[K+5]]+"-"+k[j[K+6]]+k[j[K+7]]+"-"+k[j[K+8]]+k[j[K+9]]+"-"+k[j[K+10]]+k[j[K+11]]+k[j[K+12]]+k[j[K+13]]+k[j[K+14]]+k[j[K+15]]).toLowerCase()}function Qt(j,K=0){var fe=et(j,K);if(!validate(fe))throw TypeError("Stringified UUID is invalid");return fe}var qt=null;function St(j,K,fe){if(ye.randomUUID&&!K&&!j)return ye.randomUUID();j=j||{};var ve=j.random||(j.rng||se)();if(ve[6]=ve[6]&15|64,ve[8]=ve[8]&63|128,K){fe=fe||0;for(var we=0;we<16;++we)K[fe+we]=ve[we];return K}return et(ve)}var Ct=St}}]);
  6. }());