@nocobase/app 1.6.32 → 1.6.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/{8322.9f2262bc.async.js → 8322.f0183d7f.async.js} +18 -18
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/npm._at_dnd-kit.72e72910.async.js +5 -0
- package/dist/client/npm._at_formily.767cec20.async.js +96 -0
- package/dist/client/{npm._at_rc-component.43f95f42.async.js → npm._at_rc-component.80492f90.async.js} +1 -1
- package/dist/client/{npm.antd.483a9a61.async.js → npm.antd.067726e5.async.js} +7 -7
- package/dist/client/{npm.rc-menu.adf5ade6.async.js → npm.rc-menu.d085c10c.async.js} +1 -1
- package/dist/client/{npm.rc-tree.f61b7d87.async.js → npm.rc-tree.9e735086.async.js} +1 -1
- package/dist/client/p__index.f8e5185c.async.js +1640 -0
- package/dist/client/{umi.21d5dc54.js → umi.4ca8dcf6.js} +2 -2
- package/package.json +6 -6
- package/dist/client/npm._at_dnd-kit.209d0158.async.js +0 -9
- package/dist/client/npm._at_formily.31a4282a.async.js +0 -100
- package/dist/client/p__index.620d7d1e.async.js +0 -1640
package/dist/client/index.html
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[4989],{60887:function(sn,He,oe){oe.r(He),oe.d(He,{AutoScrollActivator:function(){return je},DndContext:function(){return sr},DragOverlay:function(){return Cr},KeyboardCode:function(){return O},KeyboardSensor:function(){return Et},MeasuringFrequency:function(){return Ft},MeasuringStrategy:function(){return ht},MouseSensor:function(){return ze},PointerSensor:function(){return gt},TouchSensor:function(){return Q},TraversalOrder:function(){return Be},applyModifiers:function(){return _t},closestCenter:function(){return Ct},closestCorners:function(){return et},defaultAnnouncements:function(){return qe},defaultCoordinates:function(){return Z},defaultDropAnimation:function(){return wn},defaultDropAnimationSideEffects:function(){return yn},defaultKeyboardCoordinateGetter:function(){return zt},defaultScreenReaderInstructions:function(){return Le},getClientRect:function(){return m},getFirstCollision:function(){return _e},getScrollableAncestors:function(){return M},pointerWithin:function(){return w},rectIntersection:function(){return lt},useDndContext:function(){return mn},useDndMonitor:function(){return Ve},useDraggable:function(){return lr},useDroppable:function(){return fr},useSensor:function(){return wt},useSensors:function(){return xt}});var s=oe(67294),Y=oe(73935),d=oe(24285);const be={display:"none"};function Je(e){let{id:t,value:n}=e;return s.createElement("div",{id:t,style:be},n)}function me(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return s.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function Se(){const[e,t]=(0,s.useState)("");return{announce:(0,s.useCallback)(r=>{r!=null&&t(r)},[]),announcement:e}}const Ge=(0,s.createContext)(null);function Ve(e){const t=(0,s.useContext)(Ge);(0,s.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Te(){const[e]=(0,s.useState)(()=>new Set),t=(0,s.useCallback)(r=>(e.add(r),()=>e.delete(r)),[e]);return[(0,s.useCallback)(r=>{let{type:i,event:o}=r;e.forEach(c=>{var a;return(a=c[i])==null?void 0:a.call(c,o)})},[e]),t]}const Le={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
|
+
`},qe={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 Ze(e){let{announcements:t=qe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Le}=e;const{announce:o,announcement:c}=Se(),a=(0,d.Ld)("DndLiveRegion"),[l,f]=(0,s.useState)(!1);if((0,s.useEffect)(()=>{f(!0)},[]),Ve((0,s.useMemo)(()=>({onDragStart(g){let{active:D}=g;o(t.onDragStart({active:D}))},onDragMove(g){let{active:D,over:C}=g;t.onDragMove&&o(t.onDragMove({active:D,over:C}))},onDragOver(g){let{active:D,over:C}=g;o(t.onDragOver({active:D,over:C}))},onDragEnd(g){let{active:D,over:C}=g;o(t.onDragEnd({active:D,over:C}))},onDragCancel(g){let{active:D,over:C}=g;o(t.onDragCancel({active:D,over:C}))}}),[o,t])),!l)return null;const b=s.createElement(s.Fragment,null,s.createElement(Je,{id:r,value:i.draggable}),s.createElement(me,{id:a,announcement:c}));return n?(0,Y.createPortal)(b,n):b}var U;(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"})(U||(U={}));function de(){}function wt(e,t){return(0,s.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function xt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.useMemo)(()=>[...t].filter(r=>r!=null),[...t])}const Z=Object.freeze({x:0,y:0});function ke(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function it(e,t){const n=(0,d.DC)(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 Pe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function st(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Qe(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function _e(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function at(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 Ct=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=at(t,t.left,t.top),o=[];for(const c of r){const{id:a}=c,l=n.get(a);if(l){const f=ke(at(l),i);o.push({id:a,data:{droppableContainer:c,value:f}})}}return o.sort(Pe)},et=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=Qe(t),o=[];for(const c of r){const{id:a}=c,l=n.get(a);if(l){const f=Qe(l),b=i.reduce((D,C,j)=>D+ke(f[j],C),0),g=Number((b/4).toFixed(4));o.push({id:a,data:{droppableContainer:c,value:g}})}}return o.sort(Pe)};function ct(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),c=i-r,a=o-n;if(r<i&&n<o){const l=t.width*t.height,f=e.width*e.height,b=c*a,g=b/(l+f-b);return Number(g.toFixed(4))}return 0}const lt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:c}=o,a=n.get(c);if(a){const l=ct(a,t);l>0&&i.push({id:c,data:{droppableContainer:o,value:l}})}}return i.sort(st)};function u(e,t){const{top:n,left:r,bottom:i,right:o}=t;return n<=e.y&&e.y<=i&&r<=e.x&&e.x<=o}const w=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const i=[];for(const o of t){const{id:c}=o,a=n.get(c);if(a&&u(r,a)){const f=Qe(a).reduce((g,D)=>g+ke(r,D),0),b=Number((f/4).toFixed(4));i.push({id:c,data:{droppableContainer:o,value:b}})}}return i.sort(Pe)};function R(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function H(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Z}function G(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((c,a)=>({...c,top:c.top+e*a.y,bottom:c.bottom+e*a.y,left:c.left+e*a.x,right:c.right+e*a.x}),{...n})}}const h=G(1);function v(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 y(e,t,n){const r=v(t);if(!r)return e;const{scaleX:i,scaleY:o,x:c,y:a}=r,l=e.left-c-(1-i)*parseFloat(n),f=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),b=i?e.width/i:e.width,g=o?e.height/o:e.height;return{width:b,height:g,top:f,right:l+b,bottom:f+g,left:l}}const p={ignoreTransform:!1};function m(e,t){t===void 0&&(t=p);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:f,transformOrigin:b}=(0,d.Jj)(e).getComputedStyle(e);f&&(n=y(n,f,b))}const{top:r,left:i,width:o,height:c,bottom:a,right:l}=n;return{top:r,left:i,width:o,height:c,bottom:a,right:l}}function x(e){return m(e,{ignoreTransform:!0})}function S(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function A(e,t){return t===void 0&&(t=(0,d.Jj)(e).getComputedStyle(e)),t.position==="fixed"}function F(e,t){t===void 0&&(t=(0,d.Jj)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=t[i];return typeof o=="string"?n.test(o):!1})}function M(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if((0,d.qk)(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,d.Re)(i)||(0,d.vZ)(i)||n.includes(i))return n;const o=(0,d.Jj)(e).getComputedStyle(i);return i!==e&&F(i,o)&&n.push(i),A(i,o)?n:r(i.parentNode)}return e?r(e):n}function P(e){const[t]=M(e,1);return t??null}function B(e){return!d.Nq||!e?null:(0,d.FJ)(e)?e:(0,d.UG)(e)?(0,d.qk)(e)||e===(0,d.r3)(e).scrollingElement?window:(0,d.Re)(e)?e:null:null}function X(e){return(0,d.FJ)(e)?e.scrollX:e.scrollLeft}function J(e){return(0,d.FJ)(e)?e.scrollY:e.scrollTop}function fe(e){return{x:X(e),y:J(e)}}var K;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(K||(K={}));function ie(e){return!d.Nq||!e?!1:e===document.scrollingElement}function Re(e){const t={x:0,y:0},n=ie(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,c=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:c,isRight:a,maxScroll:r,minScroll:t}}const ye={x:.2,y:.2};function ge(e,t,n,r,i){let{top:o,left:c,right:a,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=ye);const{isTop:f,isBottom:b,isLeft:g,isRight:D}=Re(e),C={x:0,y:0},j={x:0,y:0},E={height:t.height*i.y,width:t.width*i.x};return!f&&o<=t.top+E.height?(C.y=K.Backward,j.y=r*Math.abs((t.top+E.height-o)/E.height)):!b&&l>=t.bottom-E.height&&(C.y=K.Forward,j.y=r*Math.abs((t.bottom-E.height-l)/E.height)),!D&&a>=t.right-E.width?(C.x=K.Forward,j.x=r*Math.abs((t.right-E.width-a)/E.width)):!g&&c<=t.left+E.width&&(C.x=K.Backward,j.x=r*Math.abs((t.left+E.width-c)/E.width)),{direction:C,speed:j}}function ee(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:c}=window;return{top:0,left:0,right:o,bottom:c,width:o,height:c}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Ee(e){return e.reduce((t,n)=>(0,d.IH)(t,fe(n)),Z)}function we(e){return e.reduce((t,n)=>t+X(n),0)}function ut(e){return e.reduce((t,n)=>t+J(n),0)}function Dt(e,t){if(t===void 0&&(t=m),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);P(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Jt=[["x",["left","right"],we],["y",["top","bottom"],ut]];class dt{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=M(n),i=Ee(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,c,a]of Jt)for(const l of c)Object.defineProperty(this,l,{get:()=>{const f=a(r),b=i[o]-f;return this.rect[l]+b},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class he{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 i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Gt(e){const{EventTarget:t}=(0,d.Jj)(e);return e instanceof t?e:(0,d.r3)(e)}function St(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?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:!1}var se;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(se||(se={}));function Rt(e){e.preventDefault()}function Vt(e){e.stopPropagation()}var O;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(O||(O={}));const Pt={start:[O.Space,O.Enter],cancel:[O.Esc],end:[O.Space,O.Enter,O.Tab]},zt=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case O.Right:return{...n,x:n.x+25};case O.Left:return{...n,x:n.x-25};case O.Down:return{...n,y:n.y+25};case O.Up:return{...n,y:n.y-25}}};class Et{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 he((0,d.r3)(n)),this.windowListeners=new he((0,d.Jj)(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(se.Resize,this.handleCancel),this.windowListeners.add(se.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(se.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Dt(r),n(Z)}handleKeyDown(t){if((0,d.vd)(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=Pt,coordinateGetter:c=zt,scrollBehavior:a="smooth"}=i,{code:l}=t;if(o.end.includes(l)){this.handleEnd(t);return}if(o.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:f}=r.current,b=f?{x:f.left,y:f.top}:Z;this.referenceCoordinates||(this.referenceCoordinates=b);const g=c(t,{active:n,context:r.current,currentCoordinates:b});if(g){const D=(0,d.$X)(g,b),C={x:0,y:0},{scrollableAncestors:j}=r.current;for(const E of j){const I=t.code,{isTop:L,isRight:z,isLeft:k,isBottom:_,maxScroll:$,minScroll:W}=Re(E),N=ee(E),T={x:Math.min(I===O.Right?N.right-N.width/2:N.right,Math.max(I===O.Right?N.left:N.left+N.width/2,g.x)),y:Math.min(I===O.Down?N.bottom-N.height/2:N.bottom,Math.max(I===O.Down?N.top:N.top+N.height/2,g.y))},V=I===O.Right&&!z||I===O.Left&&!k,te=I===O.Down&&!_||I===O.Up&&!L;if(V&&T.x!==g.x){const q=E.scrollLeft+D.x,Ae=I===O.Right&&q<=$.x||I===O.Left&&q>=W.x;if(Ae&&!D.y){E.scrollTo({left:q,behavior:a});return}Ae?C.x=E.scrollLeft-q:C.x=I===O.Right?E.scrollLeft-$.x:E.scrollLeft-W.x,C.x&&E.scrollBy({left:-C.x,behavior:a});break}else if(te&&T.y!==g.y){const q=E.scrollTop+D.y,Ae=I===O.Down&&q<=$.y||I===O.Up&&q>=W.y;if(Ae&&!D.x){E.scrollTo({top:q,behavior:a});return}Ae?C.y=E.scrollTop-q:C.y=I===O.Down?E.scrollTop-$.y:E.scrollTop-W.y,C.y&&E.scrollBy({top:-C.y,behavior:a});break}}this.handleMove(t,(0,d.IH)((0,d.$X)(g,this.referenceCoordinates),C))}}}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()}}Et.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Pt,onActivation:i}=t,{active:o}=n;const{code:c}=e.nativeEvent;if(r.start.includes(c)){const a=o.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function jt(e){return!!(e&&"distance"in e)}function Ie(e){return!!(e&&"delay"in e)}class ft{constructor(t,n,r){var i;r===void 0&&(r=Gt(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:o}=t,{target:c}=o;this.props=t,this.events=n,this.document=(0,d.r3)(c),this.documentListeners=new he(this.document),this.listeners=new he(r),this.windowListeners=new he((0,d.Jj)(c)),this.initialCoordinates=(i=(0,d.DC)(o))!=null?i:Z,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),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(se.Resize,this.handleCancel),this.windowListeners.add(se.DragStart,Rt),this.windowListeners.add(se.VisibilityChange,this.handleCancel),this.windowListeners.add(se.ContextMenu,Rt),this.documentListeners.add(se.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ie(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(jt(n)){this.handlePending(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)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(se.Click,Vt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(se.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:c,options:{activationConstraint:a}}=o;if(!i)return;const l=(n=(0,d.DC)(t))!=null?n:Z,f=(0,d.$X)(i,l);if(!r&&a){if(jt(a)){if(a.tolerance!=null&&St(f,a.tolerance))return this.handleCancel();if(St(f,a.distance))return this.handleStart()}if(Ie(a)&&St(f,a.tolerance))return this.handleCancel();this.handlePending(a,f);return}t.cancelable&&t.preventDefault(),c(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===O.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Bt={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class gt extends ft{constructor(t){const{event:n}=t,r=(0,d.r3)(n.target);super(t,Bt,r)}}gt.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 an={move:{name:"mousemove"},end:{name:"mouseup"}};var It;(function(e){e[e.RightClick=2]="RightClick"})(It||(It={}));class ze extends ft{constructor(t){super(t,an,(0,d.r3)(t.event.target))}}ze.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===It.RightClick?!1:(r==null||r({event:n}),!0)}}];const xe={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Q extends ft{constructor(t){super(t,xe)}static setup(){return window.addEventListener(xe.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(xe.move.name,t)};function t(){}}}Q.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var je;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(je||(je={}));var Be;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Be||(Be={}));function At(e){let{acceleration:t,activator:n=je.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:c=5,order:a=Be.TreeOrder,pointerCoordinates:l,scrollableAncestors:f,scrollableAncestorRects:b,delta:g,threshold:D}=e;const C=Zt({delta:g,disabled:!o}),[j,E]=(0,d.Yz)(),I=(0,s.useRef)({x:0,y:0}),L=(0,s.useRef)({x:0,y:0}),z=(0,s.useMemo)(()=>{switch(n){case je.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case je.DraggableRect:return i}},[n,i,l]),k=(0,s.useRef)(null),_=(0,s.useCallback)(()=>{const W=k.current;if(!W)return;const N=I.current.x*L.current.x,T=I.current.y*L.current.y;W.scrollBy(N,T)},[]),$=(0,s.useMemo)(()=>a===Be.TreeOrder?[...f].reverse():f,[a,f]);(0,s.useEffect)(()=>{if(!o||!f.length||!z){E();return}for(const W of $){if((r==null?void 0:r(W))===!1)continue;const N=f.indexOf(W),T=b[N];if(!T)continue;const{direction:V,speed:te}=ge(W,T,z,t,D);for(const q of["x","y"])C[q][V[q]]||(te[q]=0,V[q]=0);if(te.x>0||te.y>0){E(),k.current=W,j(_,c),I.current=te,L.current=V;return}}I.current={x:0,y:0},L.current={x:0,y:0},E()},[t,_,r,E,o,c,JSON.stringify(z),JSON.stringify(C),j,f,$,b,JSON.stringify(D)])}const qt={x:{[K.Backward]:!1,[K.Forward]:!1},y:{[K.Backward]:!1,[K.Forward]:!1}};function Zt(e){let{delta:t,disabled:n}=e;const r=(0,d.D9)(t);return(0,d.Gj)(i=>{if(n||!r||!i)return qt;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[K.Backward]:i.x[K.Backward]||o.x===-1,[K.Forward]:i.x[K.Forward]||o.x===1},y:{[K.Backward]:i.y[K.Backward]||o.y===-1,[K.Forward]:i.y[K.Forward]||o.y===1}}},[n,t,r])}function Fn(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return(0,d.Gj)(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function Xn(e,t){return(0,s.useMemo)(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(c=>({eventName:c.eventName,handler:t(c.handler,r)}));return[...n,...o]},[]),[e,t])}var ht;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ht||(ht={}));var Ft;(function(e){e.Optimized="optimized"})(Ft||(Ft={}));const cn=new Map;function Kn(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,c]=(0,s.useState)(null),{frequency:a,measure:l,strategy:f}=i,b=(0,s.useRef)(e),g=I(),D=(0,d.Ey)(g),C=(0,s.useCallback)(function(L){L===void 0&&(L=[]),!D.current&&c(z=>z===null?L:z.concat(L.filter(k=>!z.includes(k))))},[D]),j=(0,s.useRef)(null),E=(0,d.Gj)(L=>{if(g&&!n)return cn;if(!L||L===cn||b.current!==e||o!=null){const z=new Map;for(let k of e){if(!k)continue;if(o&&o.length>0&&!o.includes(k.id)&&k.rect.current){z.set(k.id,k.rect.current);continue}const _=k.node.current,$=_?new dt(l(_),_):null;k.rect.current=$,$&&z.set(k.id,$)}return z}return L},[e,o,n,g,l]);return(0,s.useEffect)(()=>{b.current=e},[e]),(0,s.useEffect)(()=>{g||C()},[n,g]),(0,s.useEffect)(()=>{o&&o.length>0&&c(null)},[JSON.stringify(o)]),(0,s.useEffect)(()=>{g||typeof a!="number"||j.current!==null||(j.current=setTimeout(()=>{C(),j.current=null},a))},[a,g,C,...r]),{droppableRects:E,measureDroppableContainers:C,measuringScheduled:o!=null};function I(){switch(f){case ht.Always:return!1;case ht.BeforeDragging:return n;default:return!n}}}function Qt(e,t){return(0,d.Gj)(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function $n(e,t){return Qt(e,t)}function Yn(e){let{callback:t,disabled:n}=e;const r=(0,d.zX)(t),i=(0,s.useMemo)(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return(0,s.useEffect)(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Xt(e){let{callback:t,disabled:n}=e;const r=(0,d.zX)(t),i=(0,s.useMemo)(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return(0,s.useEffect)(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Un(e){return new dt(m(e),e)}function ln(e,t,n){t===void 0&&(t=Un);const[r,i]=(0,s.useState)(null);function o(){i(l=>{if(!e)return null;if(e.isConnected===!1){var f;return(f=l??n)!=null?f:null}const b=t(e);return JSON.stringify(l)===JSON.stringify(b)?l:b})}const c=Yn({callback(l){if(e)for(const f of l){const{type:b,target:g}=f;if(b==="childList"&&g instanceof HTMLElement&&g.contains(e)){o();break}}}}),a=Xt({callback:o});return(0,d.LI)(()=>{o(),e?(a==null||a.observe(e),c==null||c.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),c==null||c.disconnect())},[e]),r}function Wn(e){const t=Qt(e);return H(e,t)}const un=[];function Hn(e){const t=(0,s.useRef)(e),n=(0,d.Gj)(r=>e?r&&r!==un&&e&&t.current&&e.parentNode===t.current.parentNode?r:M(e):un,[e]);return(0,s.useEffect)(()=>{t.current=e},[e]),n}function Jn(e){const[t,n]=(0,s.useState)(null),r=(0,s.useRef)(e),i=(0,s.useCallback)(o=>{const c=B(o.target);c&&n(a=>a?(a.set(c,fe(c)),new Map(a)):null)},[]);return(0,s.useEffect)(()=>{const o=r.current;if(e!==o){c(o);const a=e.map(l=>{const f=B(l);return f?(f.addEventListener("scroll",i,{passive:!0}),[f,fe(f)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),r.current=e}return()=>{c(e),c(o)};function c(a){a.forEach(l=>{const f=B(l);f==null||f.removeEventListener("scroll",i)})}},[i,e]),(0,s.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((o,c)=>(0,d.IH)(o,c),Z):Ee(e):Z,[e,t])}function dn(e,t){t===void 0&&(t=[]);const n=(0,s.useRef)(null);return(0,s.useEffect)(()=>{n.current=null},t),(0,s.useEffect)(()=>{const r=e!==Z;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?(0,d.$X)(e,n.current):Z}function Gn(e){(0,s.useEffect)(()=>{if(!d.Nq)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 Vn(e,t){return(0,s.useMemo)(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=c=>{o(c,t)},n},{}),[e,t])}function fn(e){return(0,s.useMemo)(()=>e?S(e):null,[e])}const gn=[];function qn(e,t){t===void 0&&(t=m);const[n]=e,r=fn(n?(0,d.Jj)(n):null),[i,o]=(0,s.useState)(gn);function c(){o(()=>e.length?e.map(l=>ie(l)?r:new dt(t(l),l)):gn)}const a=Xt({callback:c});return(0,d.LI)(()=>{a==null||a.disconnect(),c(),e.forEach(l=>a==null?void 0:a.observe(l))},[e]),i}function hn(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,d.Re)(t)?t:e}function Zn(e){let{measure:t}=e;const[n,r]=(0,s.useState)(null),i=(0,s.useCallback)(f=>{for(const{target:b}of f)if((0,d.Re)(b)){r(g=>{const D=t(b);return g?{...g,width:D.width,height:D.height}:D});break}},[t]),o=Xt({callback:i}),c=(0,s.useCallback)(f=>{const b=hn(f);o==null||o.disconnect(),b&&(o==null||o.observe(b)),r(b?t(b):null)},[t,o]),[a,l]=(0,d.wm)(c);return(0,s.useMemo)(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const Qn=[{sensor:gt,options:{}},{sensor:Et,options:{}}],_n={current:{}},Kt={draggable:{measure:x},droppable:{measure:x,strategy:ht.WhileDragging,frequency:Ft.Optimized},dragOverlay:{measure:m}};class Mt 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 er={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Mt,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:de},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Kt,measureDroppableContainers:de,windowRect:null,measuringScheduled:!1},vn={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:de,draggableNodes:new Map,over:null,measureDroppableContainers:de},Ot=(0,s.createContext)(vn),pn=(0,s.createContext)(er);function tr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Mt}}}function nr(e,t){switch(t.type){case U.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case U.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case U.DragEnd:case U.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case U.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Mt(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case U.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const c=new Mt(e.droppable.containers);return c.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:c}}}case U.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Mt(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function rr(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=(0,s.useContext)(Ot),o=(0,d.D9)(r),c=(0,d.D9)(n==null?void 0:n.id);return(0,s.useEffect)(()=>{if(!t&&!r&&o&&c!=null){if(!(0,d.vd)(o)||document.activeElement===o.target)return;const a=i.get(c);if(!a)return;const{activatorNode:l,node:f}=a;if(!l.current&&!f.current)return;requestAnimationFrame(()=>{for(const b of[l.current,f.current]){if(!b)continue;const g=(0,d.so)(b);if(g){g.focus();break}}})}},[r,t,i,c,o]),null}function _t(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function or(e){return(0,s.useMemo)(()=>({draggable:{...Kt.draggable,...e==null?void 0:e.draggable},droppable:{...Kt.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Kt.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 ir(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=(0,s.useRef)(!1),{x:c,y:a}=typeof i=="boolean"?{x:i,y:i}:i;(0,d.LI)(()=>{if(!c&&!a||!t){o.current=!1;return}if(o.current||!r)return;const f=t==null?void 0:t.node.current;if(!f||f.isConnected===!1)return;const b=n(f),g=H(b,r);if(c||(g.x=0),a||(g.y=0),o.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const D=P(f);D&&D.scrollBy({top:g.y,left:g.x})}},[t,c,a,r,n])}const $t=(0,s.createContext)({...Z,scaleX:1,scaleY:1});var Fe;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Fe||(Fe={}));const sr=(0,s.memo)(function(t){var n,r,i,o;let{id:c,accessibility:a,autoScroll:l=!0,children:f,sensors:b=Qn,collisionDetection:g=lt,measuring:D,modifiers:C,...j}=t;const E=(0,s.useReducer)(nr,void 0,tr),[I,L]=E,[z,k]=Te(),[_,$]=(0,s.useState)(Fe.Uninitialized),W=_===Fe.Initialized,{draggable:{active:N,nodes:T,translate:V},droppable:{containers:te}}=I,q=N!=null?T.get(N):null,Ae=(0,s.useRef)({initial:null,translated:null}),Me=(0,s.useMemo)(()=>{var re;return N!=null?{id:N,data:(re=q==null?void 0:q.data)!=null?re:_n,rect:Ae}:null},[N,q]),Xe=(0,s.useRef)(null),[Cn,Dn]=(0,s.useState)(null),[Oe,Sn]=(0,s.useState)(null),tt=(0,d.Ey)(j,Object.values(j)),en=(0,d.Ld)("DndDescribedBy",c),Rn=(0,s.useMemo)(()=>te.getEnabled(),[te]),nt=or(D),{droppableRects:vt,measureDroppableContainers:Yt,measuringScheduled:En}=Kn(Rn,{dragging:W,dependencies:[V.x,V.y],config:nt.droppable}),ve=Fn(T,N),In=(0,s.useMemo)(()=>Oe?(0,d.DC)(Oe):null,[Oe]),An=Or(),Mn=$n(ve,nt.draggable.measure);ir({activeNode:N!=null?T.get(N):null,config:An.layoutShiftCompensation,initialRect:Mn,measure:nt.draggable.measure});const pe=ln(ve,nt.draggable.measure,Mn),tn=ln(ve?ve.parentElement:null),rt=(0,s.useRef)({activatorEvent:null,active:null,activeNode:ve,collisionRect:null,collisions:null,droppableRects:vt,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:te,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),On=te.getNodeFor((n=rt.current.over)==null?void 0:n.id),ot=Zn({measure:nt.dragOverlay.measure}),Ut=(r=ot.nodeRef.current)!=null?r:ve,pt=W?(i=ot.rect)!=null?i:pe:null,Nn=!!(ot.nodeRef.current&&ot.rect),Tn=Wn(Nn?null:pe),nn=fn(Ut?(0,d.Jj)(Ut):null),Ke=Hn(W?On??ve:null),Wt=qn(Ke),Ht=_t(C,{transform:{x:V.x-Tn.x,y:V.y-Tn.y,scaleX:1,scaleY:1},activatorEvent:Oe,active:Me,activeNodeRect:pe,containerNodeRect:tn,draggingNodeRect:pt,over:rt.current.over,overlayNodeRect:ot.rect,scrollableAncestors:Ke,scrollableAncestorRects:Wt,windowRect:nn}),Ln=In?(0,d.IH)(In,V):null,kn=Jn(Ke),Dr=dn(kn),Sr=dn(kn,[pe]),bt=(0,d.IH)(Ht,Dr),mt=pt?h(pt,Ht):null,Nt=Me&&mt?g({active:Me,collisionRect:mt,droppableRects:vt,droppableContainers:Rn,pointerCoordinates:Ln}):null,Pn=_e(Nt,"id"),[$e,zn]=(0,s.useState)(null),Rr=Nn?Ht:(0,d.IH)(Ht,Sr),Er=R(Rr,(o=$e==null?void 0:$e.rect)!=null?o:null,pe),rn=(0,s.useRef)(null),jn=(0,s.useCallback)((re,ae)=>{let{sensor:ce,options:Ye}=ae;if(Xe.current==null)return;const ue=T.get(Xe.current);if(!ue)return;const le=re.nativeEvent,Ce=new ce({active:Xe.current,activeNode:ue,event:le,options:Ye,context:rt,onAbort(ne){if(!T.get(ne))return;const{onDragAbort:De}=tt.current,Ne={id:ne};De==null||De(Ne),z({type:"onDragAbort",event:Ne})},onPending(ne,Ue,De,Ne){if(!T.get(ne))return;const{onDragPending:Lt}=tt.current,We={id:ne,constraint:Ue,initialCoordinates:De,offset:Ne};Lt==null||Lt(We),z({type:"onDragPending",event:We})},onStart(ne){const Ue=Xe.current;if(Ue==null)return;const De=T.get(Ue);if(!De)return;const{onDragStart:Ne}=tt.current,Tt={activatorEvent:le,active:{id:Ue,data:De.data,rect:Ae}};(0,Y.unstable_batchedUpdates)(()=>{Ne==null||Ne(Tt),$(Fe.Initializing),L({type:U.DragStart,initialCoordinates:ne,active:Ue}),z({type:"onDragStart",event:Tt}),Dn(rn.current),Sn(le)})},onMove(ne){L({type:U.DragMove,coordinates:ne})},onEnd:yt(U.DragEnd),onCancel:yt(U.DragCancel)});rn.current=Ce;function yt(ne){return async function(){const{active:De,collisions:Ne,over:Tt,scrollAdjustedTranslate:Lt}=rt.current;let We=null;if(De&&Lt){const{cancelDrop:kt}=tt.current;We={activatorEvent:le,active:De,collisions:Ne,delta:Lt,over:Tt},ne===U.DragEnd&&typeof kt=="function"&&await Promise.resolve(kt(We))&&(ne=U.DragCancel)}Xe.current=null,(0,Y.unstable_batchedUpdates)(()=>{L({type:ne}),$(Fe.Uninitialized),zn(null),Dn(null),Sn(null),rn.current=null;const kt=ne===U.DragEnd?"onDragEnd":"onDragCancel";if(We){const on=tt.current[kt];on==null||on(We),z({type:kt,event:We})}})}}},[T]),Ir=(0,s.useCallback)((re,ae)=>(ce,Ye)=>{const ue=ce.nativeEvent,le=T.get(Ye);if(Xe.current!==null||!le||ue.dndKit||ue.defaultPrevented)return;const Ce={active:le};re(ce,ae.options,Ce)===!0&&(ue.dndKit={capturedBy:ae.sensor},Xe.current=Ye,jn(ce,ae))},[T,jn]),Bn=Xn(b,Ir);Gn(b),(0,d.LI)(()=>{pe&&_===Fe.Initializing&&$(Fe.Initialized)},[pe,_]),(0,s.useEffect)(()=>{const{onDragMove:re}=tt.current,{active:ae,activatorEvent:ce,collisions:Ye,over:ue}=rt.current;if(!ae||!ce)return;const le={active:ae,activatorEvent:ce,collisions:Ye,delta:{x:bt.x,y:bt.y},over:ue};(0,Y.unstable_batchedUpdates)(()=>{re==null||re(le),z({type:"onDragMove",event:le})})},[bt.x,bt.y]),(0,s.useEffect)(()=>{const{active:re,activatorEvent:ae,collisions:ce,droppableContainers:Ye,scrollAdjustedTranslate:ue}=rt.current;if(!re||Xe.current==null||!ae||!ue)return;const{onDragOver:le}=tt.current,Ce=Ye.get(Pn),yt=Ce&&Ce.rect.current?{id:Ce.id,rect:Ce.rect.current,data:Ce.data,disabled:Ce.disabled}:null,ne={active:re,activatorEvent:ae,collisions:ce,delta:{x:ue.x,y:ue.y},over:yt};(0,Y.unstable_batchedUpdates)(()=>{zn(yt),le==null||le(ne),z({type:"onDragOver",event:ne})})},[Pn]),(0,d.LI)(()=>{rt.current={activatorEvent:Oe,active:Me,activeNode:ve,collisionRect:mt,collisions:Nt,droppableRects:vt,draggableNodes:T,draggingNode:Ut,draggingNodeRect:pt,droppableContainers:te,over:$e,scrollableAncestors:Ke,scrollAdjustedTranslate:bt},Ae.current={initial:pt,translated:mt}},[Me,ve,Nt,mt,T,Ut,pt,vt,te,$e,Ke,bt]),At({...An,delta:V,draggingRect:mt,pointerCoordinates:Ln,scrollableAncestors:Ke,scrollableAncestorRects:Wt});const Ar=(0,s.useMemo)(()=>({active:Me,activeNode:ve,activeNodeRect:pe,activatorEvent:Oe,collisions:Nt,containerNodeRect:tn,dragOverlay:ot,draggableNodes:T,droppableContainers:te,droppableRects:vt,over:$e,measureDroppableContainers:Yt,scrollableAncestors:Ke,scrollableAncestorRects:Wt,measuringConfiguration:nt,measuringScheduled:En,windowRect:nn}),[Me,ve,pe,Oe,Nt,tn,ot,T,te,vt,$e,Yt,Ke,Wt,nt,En,nn]),Mr=(0,s.useMemo)(()=>({activatorEvent:Oe,activators:Bn,active:Me,activeNodeRect:pe,ariaDescribedById:{draggable:en},dispatch:L,draggableNodes:T,over:$e,measureDroppableContainers:Yt}),[Oe,Bn,Me,pe,L,en,T,$e,Yt]);return s.createElement(Ge.Provider,{value:k},s.createElement(Ot.Provider,{value:Mr},s.createElement(pn.Provider,{value:Ar},s.createElement($t.Provider,{value:Er},f)),s.createElement(rr,{disabled:(a==null?void 0:a.restoreFocus)===!1})),s.createElement(Ze,{...a,hiddenTextDescribedById:en}));function Or(){const re=(Cn==null?void 0:Cn.autoScrollEnabled)===!1,ae=typeof l=="object"?l.enabled===!1:l===!1,ce=W&&!re&&!ae;return typeof l=="object"?{...l,enabled:ce}:{enabled:ce}}}),ar=(0,s.createContext)(null),bn="button",cr="Draggable";function lr(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=(0,d.Ld)(cr),{activators:c,activatorEvent:a,active:l,activeNodeRect:f,ariaDescribedById:b,draggableNodes:g,over:D}=(0,s.useContext)(Ot),{role:C=bn,roleDescription:j="draggable",tabIndex:E=0}=i??{},I=(l==null?void 0:l.id)===t,L=(0,s.useContext)(I?$t:ar),[z,k]=(0,d.wm)(),[_,$]=(0,d.wm)(),W=Vn(c,t),N=(0,d.Ey)(n);(0,d.LI)(()=>(g.set(t,{id:t,key:o,node:z,activatorNode:_,data:N}),()=>{const V=g.get(t);V&&V.key===o&&g.delete(t)}),[g,t]);const T=(0,s.useMemo)(()=>({role:C,tabIndex:E,"aria-disabled":r,"aria-pressed":I&&C===bn?!0:void 0,"aria-roledescription":j,"aria-describedby":b.draggable}),[r,C,E,I,j,b.draggable]);return{active:l,activatorEvent:a,activeNodeRect:f,attributes:T,isDragging:I,listeners:r?void 0:W,node:z,over:D,setNodeRef:k,setActivatorNodeRef:$,transform:L}}function mn(){return(0,s.useContext)(pn)}const ur="Droppable",dr={timeout:25};function fr(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=(0,d.Ld)(ur),{active:c,dispatch:a,over:l,measureDroppableContainers:f}=(0,s.useContext)(Ot),b=(0,s.useRef)({disabled:n}),g=(0,s.useRef)(!1),D=(0,s.useRef)(null),C=(0,s.useRef)(null),{disabled:j,updateMeasurementsFor:E,timeout:I}={...dr,...i},L=(0,d.Ey)(E??r),z=(0,s.useCallback)(()=>{if(!g.current){g.current=!0;return}C.current!=null&&clearTimeout(C.current),C.current=setTimeout(()=>{f(Array.isArray(L.current)?L.current:[L.current]),C.current=null},I)},[I]),k=Xt({callback:z,disabled:j||!c}),_=(0,s.useCallback)((T,V)=>{k&&(V&&(k.unobserve(V),g.current=!1),T&&k.observe(T))},[k]),[$,W]=(0,d.wm)(_),N=(0,d.Ey)(t);return(0,s.useEffect)(()=>{!k||!$.current||(k.disconnect(),g.current=!1,k.observe($.current))},[$,k]),(0,s.useEffect)(()=>(a({type:U.RegisterDroppable,element:{id:r,key:o,disabled:n,node:$,rect:D,data:N}}),()=>a({type:U.UnregisterDroppable,key:o,id:r})),[r]),(0,s.useEffect)(()=>{n!==b.current.disabled&&(a({type:U.SetDroppableDisabled,id:r,key:o,disabled:n}),b.current.disabled=n)},[r,o,n,a]),{active:c,rect:D,isOver:(l==null?void 0:l.id)===r,node:$,over:l,setNodeRef:W}}function gr(e){let{animation:t,children:n}=e;const[r,i]=(0,s.useState)(null),[o,c]=(0,s.useState)(null),a=(0,d.D9)(n);return!n&&!r&&a&&i(a),(0,d.LI)(()=>{if(!o)return;const l=r==null?void 0:r.key,f=r==null?void 0:r.props.id;if(l==null||f==null){i(null);return}Promise.resolve(t(f,o)).then(()=>{i(null)})},[t,r,o]),s.createElement(s.Fragment,null,n,r?(0,s.cloneElement)(r,{ref:c}):null)}const hr={x:0,y:0,scaleX:1,scaleY:1};function vr(e){let{children:t}=e;return s.createElement(Ot.Provider,{value:vn},s.createElement($t.Provider,{value:hr},t))}const pr={position:"fixed",touchAction:"none"},br=e=>(0,d.vd)(e)?"transform 250ms ease":void 0,mr=(0,s.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:o,className:c,rect:a,style:l,transform:f,transition:b=br}=e;if(!a)return null;const g=i?f:{...f,scaleX:1,scaleY:1},D={...pr,width:a.width,height:a.height,top:a.top,left:a.left,transform:d.ux.Transform.toString(g),transformOrigin:i&&r?it(r,a):void 0,transition:typeof b=="function"?b(r):b,...l};return s.createElement(n,{className:c,style:D,ref:t},o)}),yn=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:c}=e;if(o!=null&&o.active)for(const[a,l]of Object.entries(o.active))l!==void 0&&(i[a]=n.node.style.getPropertyValue(a),n.node.style.setProperty(a,l));if(o!=null&&o.dragOverlay)for(const[a,l]of Object.entries(o.dragOverlay))l!==void 0&&r.node.style.setProperty(a,l);return c!=null&&c.active&&n.node.classList.add(c.active),c!=null&&c.dragOverlay&&r.node.classList.add(c.dragOverlay),function(){for(const[l,f]of Object.entries(i))n.node.style.setProperty(l,f);c!=null&&c.active&&n.node.classList.remove(c.active)}},wn={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:d.ux.Transform.toString(t)},{transform:d.ux.Transform.toString(n)}]},sideEffects:yn({styles:{active:{opacity:"0"}}})};function yr(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return(0,d.zX)((o,c)=>{if(t===null)return;const a=n.get(o);if(!a)return;const l=a.node.current;if(!l)return;const f=hn(c);if(!f)return;const{transform:b}=(0,d.Jj)(c).getComputedStyle(c),g=v(b);if(!g)return;const D=typeof t=="function"?t:wr(t);return Dt(l,i.draggable.measure),D({active:{id:o,data:a.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:c,rect:i.dragOverlay.measure(f)},droppableContainers:r,measuringConfiguration:i,transform:g})})}function wr(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...wn,...e};return o=>{let{active:c,dragOverlay:a,transform:l,...f}=o;if(!t)return;const b={x:a.rect.left-c.rect.left,y:a.rect.top-c.rect.top},g={scaleX:l.scaleX!==1?c.rect.width*l.scaleX/a.rect.width:1,scaleY:l.scaleY!==1?c.rect.height*l.scaleY/a.rect.height:1},D={x:l.x-b.x,y:l.y-b.y,...g},C=i({...f,active:c,dragOverlay:a,transform:{initial:l,final:D}}),[j]=C,E=C[C.length-1];if(JSON.stringify(j)===JSON.stringify(E))return;const I=r==null?void 0:r({active:c,dragOverlay:a,...f}),L=a.node.animate(C,{duration:t,easing:n,fill:"forwards"});return new Promise(z=>{L.onfinish=()=>{I==null||I(),z()}})}}let xn=0;function xr(e){return(0,s.useMemo)(()=>{if(e!=null)return xn++,xn},[e])}const Cr=s.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:o,modifiers:c,wrapperElement:a="div",className:l,zIndex:f=999}=e;const{activatorEvent:b,active:g,activeNodeRect:D,containerNodeRect:C,draggableNodes:j,droppableContainers:E,dragOverlay:I,over:L,measuringConfiguration:z,scrollableAncestors:k,scrollableAncestorRects:_,windowRect:$}=mn(),W=(0,s.useContext)($t),N=xr(g==null?void 0:g.id),T=_t(c,{activatorEvent:b,active:g,activeNodeRect:D,containerNodeRect:C,draggingNodeRect:I.rect,over:L,overlayNodeRect:I.rect,scrollableAncestors:k,scrollableAncestorRects:_,transform:W,windowRect:$}),V=Qt(D),te=yr({config:r,draggableNodes:j,droppableContainers:E,measuringConfiguration:z}),q=V?I.setRef:void 0;return s.createElement(vr,null,s.createElement(gr,{animation:te},g&&N?s.createElement(mr,{key:N,id:g.id,ref:q,as:a,activatorEvent:b,adjustScale:t,className:l,transition:o,rect:V,style:{zIndex:f,...i},transform:T},n):null))})},45587:function(sn,He,oe){oe.r(He),oe.d(He,{SortableContext:function(){return it},arrayMove:function(){return be},arraySwap:function(){return Je},defaultAnimateLayoutChanges:function(){return st},defaultNewIndexGetter:function(){return Pe},hasSortableData:function(){return u},horizontalListSortingStrategy:function(){return Le},rectSortingStrategy:function(){return Ze},rectSwappingStrategy:function(){return U},sortableKeyboardCoordinates:function(){return R},useSortable:function(){return ct},verticalListSortingStrategy:function(){return wt}});var s=oe(67294),Y=oe(60887),d=oe(24285);function be(h,v,y){const p=h.slice();return p.splice(y<0?p.length+y:y,0,p.splice(v,1)[0]),p}function Je(h,v,y){const p=h.slice();return p[v]=h[y],p[y]=h[v],p}function me(h,v){return h.reduce((y,p,m)=>{const x=v.get(p);return x&&(y[m]=x),y},Array(h.length))}function Se(h){return h!==null&&h>=0}function Ge(h,v){if(h===v)return!0;if(h.length!==v.length)return!1;for(let y=0;y<h.length;y++)if(h[y]!==v[y])return!1;return!0}function Ve(h){return typeof h=="boolean"?{draggable:h,droppable:h}:h}const Te={scaleX:1,scaleY:1},Le=h=>{var v;let{rects:y,activeNodeRect:p,activeIndex:m,overIndex:x,index:S}=h;const A=(v=y[m])!=null?v:p;if(!A)return null;const F=qe(y,S,m);if(S===m){const M=y[x];return M?{x:m<x?M.left+M.width-(A.left+A.width):M.left-A.left,y:0,...Te}:null}return S>m&&S<=x?{x:-A.width-F,y:0,...Te}:S<m&&S>=x?{x:A.width+F,y:0,...Te}:{x:0,y:0,...Te}};function qe(h,v,y){const p=h[v],m=h[v-1],x=h[v+1];return!p||!m&&!x?0:y<v?m?p.left-(m.left+m.width):x.left-(p.left+p.width):x?x.left-(p.left+p.width):p.left-(m.left+m.width)}const Ze=h=>{let{rects:v,activeIndex:y,overIndex:p,index:m}=h;const x=be(v,p,y),S=v[m],A=x[m];return!A||!S?null:{x:A.left-S.left,y:A.top-S.top,scaleX:A.width/S.width,scaleY:A.height/S.height}},U=h=>{let{activeIndex:v,index:y,rects:p,overIndex:m}=h,x,S;return y===v&&(x=p[y],S=p[m]),y===m&&(x=p[y],S=p[v]),!S||!x?null:{x:S.left-x.left,y:S.top-x.top,scaleX:S.width/x.width,scaleY:S.height/x.height}},de={scaleX:1,scaleY:1},wt=h=>{var v;let{activeIndex:y,activeNodeRect:p,index:m,rects:x,overIndex:S}=h;const A=(v=x[y])!=null?v:p;if(!A)return null;if(m===y){const M=x[S];return M?{x:0,y:y<S?M.top+M.height-(A.top+A.height):M.top-A.top,...de}:null}const F=xt(x,m,y);return m>y&&m<=S?{x:0,y:-A.height-F,...de}:m<y&&m>=S?{x:0,y:A.height+F,...de}:{x:0,y:0,...de}};function xt(h,v,y){const p=h[v],m=h[v-1],x=h[v+1];return p?y<v?m?p.top-(m.top+m.height):x?x.top-(p.top+p.height):0:x?x.top-(p.top+p.height):m?p.top-(m.top+m.height):0:0}const Z="Sortable",ke=s.createContext({activeIndex:-1,containerId:Z,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Ze,disabled:{draggable:!1,droppable:!1}});function it(h){let{children:v,id:y,items:p,strategy:m=Ze,disabled:x=!1}=h;const{active:S,dragOverlay:A,droppableRects:F,over:M,measureDroppableContainers:P}=(0,Y.useDndContext)(),B=(0,d.Ld)(Z,y),X=A.rect!==null,J=(0,s.useMemo)(()=>p.map(we=>typeof we=="object"&&"id"in we?we.id:we),[p]),fe=S!=null,K=S?J.indexOf(S.id):-1,ie=M?J.indexOf(M.id):-1,Re=(0,s.useRef)(J),ye=!Ge(J,Re.current),ge=ie!==-1&&K===-1||ye,ee=Ve(x);(0,d.LI)(()=>{ye&&fe&&P(J)},[ye,J,fe,P]),(0,s.useEffect)(()=>{Re.current=J},[J]);const Ee=(0,s.useMemo)(()=>({activeIndex:K,containerId:B,disabled:ee,disableTransforms:ge,items:J,overIndex:ie,useDragOverlay:X,sortedRects:me(J,F),strategy:m}),[K,B,ee.draggable,ee.droppable,ge,J,ie,F,X,m]);return s.createElement(ke.Provider,{value:Ee},v)}const Pe=h=>{let{id:v,items:y,activeIndex:p,overIndex:m}=h;return be(y,p,m).indexOf(v)},st=h=>{let{containerId:v,isSorting:y,wasDragging:p,index:m,items:x,newIndex:S,previousItems:A,previousContainerId:F,transition:M}=h;return!M||!p||A!==x&&m===S?!1:y?!0:S!==m&&v===F},Qe={duration:200,easing:"ease"},_e="transform",at=d.ux.Transition.toString({property:_e,duration:0,easing:"linear"}),Ct={roleDescription:"sortable"};function et(h){let{disabled:v,index:y,node:p,rect:m}=h;const[x,S]=(0,s.useState)(null),A=(0,s.useRef)(y);return(0,d.LI)(()=>{if(!v&&y!==A.current&&p.current){const F=m.current;if(F){const M=(0,Y.getClientRect)(p.current,{ignoreTransform:!0}),P={x:F.left-M.left,y:F.top-M.top,scaleX:F.width/M.width,scaleY:F.height/M.height};(P.x||P.y)&&S(P)}}y!==A.current&&(A.current=y)},[v,y,p,m]),(0,s.useEffect)(()=>{x&&S(null)},[x]),x}function ct(h){let{animateLayoutChanges:v=st,attributes:y,disabled:p,data:m,getNewIndex:x=Pe,id:S,strategy:A,resizeObserverConfig:F,transition:M=Qe}=h;const{items:P,containerId:B,activeIndex:X,disabled:J,disableTransforms:fe,sortedRects:K,overIndex:ie,useDragOverlay:Re,strategy:ye}=(0,s.useContext)(ke),ge=lt(p,J),ee=P.indexOf(S),Ee=(0,s.useMemo)(()=>({sortable:{containerId:B,index:ee,items:P},...m}),[B,m,ee,P]),we=(0,s.useMemo)(()=>P.slice(P.indexOf(S)),[P,S]),{rect:ut,node:Dt,isOver:Jt,setNodeRef:dt}=(0,Y.useDroppable)({id:S,data:Ee,disabled:ge.droppable,resizeObserverConfig:{updateMeasurementsFor:we,...F}}),{active:he,activatorEvent:Gt,activeNodeRect:St,attributes:se,setNodeRef:Rt,listeners:Vt,isDragging:O,over:Pt,setActivatorNodeRef:zt,transform:Et}=(0,Y.useDraggable)({id:S,data:Ee,attributes:{...Ct,...y},disabled:ge.draggable}),jt=(0,d.HB)(dt,Rt),Ie=!!he,ft=Ie&&!fe&&Se(X)&&Se(ie),Bt=!Re&&O,gt=Bt&&ft?Et:null,It=ft?gt??(A??ye)({rects:K,activeNodeRect:St,activeIndex:X,overIndex:ie,index:ee}):null,ze=Se(X)&&Se(ie)?x({id:S,items:P,activeIndex:X,overIndex:ie}):ee,xe=he==null?void 0:he.id,Q=(0,s.useRef)({activeId:xe,items:P,newIndex:ze,containerId:B}),je=P!==Q.current.items,Be=v({active:he,containerId:B,isDragging:O,isSorting:Ie,id:S,index:ee,items:P,newIndex:Q.current.newIndex,previousItems:Q.current.items,previousContainerId:Q.current.containerId,transition:M,wasDragging:Q.current.activeId!=null}),At=et({disabled:!Be,index:ee,node:Dt,rect:ut});return(0,s.useEffect)(()=>{Ie&&Q.current.newIndex!==ze&&(Q.current.newIndex=ze),B!==Q.current.containerId&&(Q.current.containerId=B),P!==Q.current.items&&(Q.current.items=P)},[Ie,ze,B,P]),(0,s.useEffect)(()=>{if(xe===Q.current.activeId)return;if(xe&&!Q.current.activeId){Q.current.activeId=xe;return}const Zt=setTimeout(()=>{Q.current.activeId=xe},50);return()=>clearTimeout(Zt)},[xe]),{active:he,activeIndex:X,attributes:se,data:Ee,rect:ut,index:ee,newIndex:ze,items:P,isOver:Jt,isSorting:Ie,isDragging:O,listeners:Vt,node:Dt,overIndex:ie,over:Pt,setNodeRef:jt,setActivatorNodeRef:zt,setDroppableNodeRef:dt,setDraggableNodeRef:Rt,transform:At??It,transition:qt()};function qt(){if(At||je&&Q.current.newIndex===ee)return at;if(!(Bt&&!(0,d.vd)(Gt)||!M)&&(Ie||Be))return d.ux.Transition.toString({...M,property:_e})}}function lt(h,v){var y,p;return typeof h=="boolean"?{draggable:h,droppable:!1}:{draggable:(y=h==null?void 0:h.draggable)!=null?y:v.draggable,droppable:(p=h==null?void 0:h.droppable)!=null?p:v.droppable}}function u(h){if(!h)return!1;const v=h.data.current;return!!(v&&"sortable"in v&&typeof v.sortable=="object"&&"containerId"in v.sortable&&"items"in v.sortable&&"index"in v.sortable)}const w=[Y.KeyboardCode.Down,Y.KeyboardCode.Right,Y.KeyboardCode.Up,Y.KeyboardCode.Left],R=(h,v)=>{let{context:{active:y,collisionRect:p,droppableRects:m,droppableContainers:x,over:S,scrollableAncestors:A}}=v;if(w.includes(h.code)){if(h.preventDefault(),!y||!p)return;const F=[];x.getEnabled().forEach(B=>{if(!B||B!=null&&B.disabled)return;const X=m.get(B.id);if(X)switch(h.code){case Y.KeyboardCode.Down:p.top<X.top&&F.push(B);break;case Y.KeyboardCode.Up:p.top>X.top&&F.push(B);break;case Y.KeyboardCode.Left:p.left>X.left&&F.push(B);break;case Y.KeyboardCode.Right:p.left<X.left&&F.push(B);break}});const M=(0,Y.closestCorners)({active:y,collisionRect:p,droppableRects:m,droppableContainers:F,pointerCoordinates:null});let P=(0,Y.getFirstCollision)(M,"id");if(P===(S==null?void 0:S.id)&&M.length>1&&(P=M[1].id),P!=null){const B=x.get(y.id),X=x.get(P),J=X?m.get(X.id):null,fe=X==null?void 0:X.node.current;if(fe&&J&&B&&X){const ie=(0,Y.getScrollableAncestors)(fe).some((we,ut)=>A[ut]!==we),Re=H(B,X),ye=G(B,X),ge=ie||!Re?{x:0,y:0}:{x:ye?p.width-J.width:0,y:ye?p.height-J.height:0},ee={x:J.left,y:J.top};return ge.x&&ge.y?ee:(0,d.$X)(ee,ge)}}}};function H(h,v){return!u(h)||!u(v)?!1:h.data.current.sortable.containerId===v.data.current.sortable.containerId}function G(h,v){return!u(h)||!u(v)||!H(h,v)?!1:h.data.current.sortable.index<v.data.current.sortable.index}},24285:function(sn,He,oe){oe.d(He,{$X:function(){return st},D9:function(){return xt},DC:function(){return Ct},Ey:function(){return U},FJ:function(){return be},Gj:function(){return de},HB:function(){return Y},IH:function(){return Pe},Jj:function(){return me},LI:function(){return Le},Ld:function(){return ke},Nq:function(){return d},Re:function(){return Ge},UG:function(){return Je},Yz:function(){return Ze},qk:function(){return Se},r3:function(){return Te},so:function(){return lt},ux:function(){return et},vZ:function(){return Ve},vd:function(){return _e},wm:function(){return wt},zX:function(){return qe}});var s=oe(67294);function Y(){for(var u=arguments.length,w=new Array(u),R=0;R<u;R++)w[R]=arguments[R];return(0,s.useMemo)(()=>H=>{w.forEach(G=>G(H))},w)}const d=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function be(u){const w=Object.prototype.toString.call(u);return w==="[object Window]"||w==="[object global]"}function Je(u){return"nodeType"in u}function me(u){var w,R;return u?be(u)?u:Je(u)&&(w=(R=u.ownerDocument)==null?void 0:R.defaultView)!=null?w:window:window}function Se(u){const{Document:w}=me(u);return u instanceof w}function Ge(u){return be(u)?!1:u instanceof me(u).HTMLElement}function Ve(u){return u instanceof me(u).SVGElement}function Te(u){return u?be(u)?u.document:Je(u)?Se(u)?u:Ge(u)||Ve(u)?u.ownerDocument:document:document:document}const Le=d?s.useLayoutEffect:s.useEffect;function qe(u){const w=(0,s.useRef)(u);return Le(()=>{w.current=u}),(0,s.useCallback)(function(){for(var R=arguments.length,H=new Array(R),G=0;G<R;G++)H[G]=arguments[G];return w.current==null?void 0:w.current(...H)},[])}function Ze(){const u=(0,s.useRef)(null),w=(0,s.useCallback)((H,G)=>{u.current=setInterval(H,G)},[]),R=(0,s.useCallback)(()=>{u.current!==null&&(clearInterval(u.current),u.current=null)},[]);return[w,R]}function U(u,w){w===void 0&&(w=[u]);const R=(0,s.useRef)(u);return Le(()=>{R.current!==u&&(R.current=u)},w),R}function de(u,w){const R=(0,s.useRef)();return(0,s.useMemo)(()=>{const H=u(R.current);return R.current=H,H},[...w])}function wt(u){const w=qe(u),R=(0,s.useRef)(null),H=(0,s.useCallback)(G=>{G!==R.current&&(w==null||w(G,R.current)),R.current=G},[]);return[R,H]}function xt(u){const w=(0,s.useRef)();return(0,s.useEffect)(()=>{w.current=u},[u]),w.current}let Z={};function ke(u,w){return(0,s.useMemo)(()=>{if(w)return w;const R=Z[u]==null?0:Z[u]+1;return Z[u]=R,u+"-"+R},[u,w])}function it(u){return function(w){for(var R=arguments.length,H=new Array(R>1?R-1:0),G=1;G<R;G++)H[G-1]=arguments[G];return H.reduce((h,v)=>{const y=Object.entries(v);for(const[p,m]of y){const x=h[p];x!=null&&(h[p]=x+u*m)}return h},{...w})}}const Pe=it(1),st=it(-1);function Qe(u){return"clientX"in u&&"clientY"in u}function _e(u){if(!u)return!1;const{KeyboardEvent:w}=me(u.target);return w&&u instanceof w}function at(u){if(!u)return!1;const{TouchEvent:w}=me(u.target);return w&&u instanceof w}function Ct(u){if(at(u)){if(u.touches&&u.touches.length){const{clientX:w,clientY:R}=u.touches[0];return{x:w,y:R}}else if(u.changedTouches&&u.changedTouches.length){const{clientX:w,clientY:R}=u.changedTouches[0];return{x:w,y:R}}}return Qe(u)?{x:u.clientX,y:u.clientY}:null}const et=Object.freeze({Translate:{toString(u){if(!u)return;const{x:w,y:R}=u;return"translate3d("+(w?Math.round(w):0)+"px, "+(R?Math.round(R):0)+"px, 0)"}},Scale:{toString(u){if(!u)return;const{scaleX:w,scaleY:R}=u;return"scaleX("+w+") scaleY("+R+")"}},Transform:{toString(u){if(u)return[et.Translate.toString(u),et.Scale.toString(u)].join(" ")}},Transition:{toString(u){let{property:w,duration:R,easing:H}=u;return w+" "+R+"ms "+H}}}),ct="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function lt(u){return u.matches(ct)?u:u.querySelector(ct)}}}]);
|