PageSourceSearch

https://likedtabs.com/assets/vendor-dnd-Bdjc1axw.js

js likedtabs.com collected 2026-10-02 01:34:16 UTC 60,244 bytes, 1 lines download raw bytes

vendor: 7,417 bytes, line 1
1import{r as e,t}from"./rolldown-runtime-DwynqlJ6.js";var n=t(e=>{var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),v=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,h={};function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}function b(){}function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var w=m.prototype=new b;w.constructor=m,g(w,y.prototype),w.isPureReactComponent=!0;var x=Array.isArray;function E(){}var R={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function S(e,n,r){var o=r.ref;return{$$typeof:t,type:e,key:n,ref:void 0!==o?o:null,props:r}}function D(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var O=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function _(e,r,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u=!1;if(null===e)u=!0;else switch(s){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case t:case n:u=!0;break;case d:return _((u=e._init)(e._payload),r,o,i,a)}}if(u)return a=a(e),u=""===i?"."+N(e,0):i,x(a)?(o="",null!=u&&(o=u.replace(O,"$&/")+"/"),_(a,r,o,"",function(e){return e})):null!=a&&(D(a)&&(l=a,c=o+(null==a.key||e&&e.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+u,a=S(l.type,c,l.props)),r.push(a)),1;u=0;var f,p=""===i?".":i+":";if(x(e))for(var g=0;g<e.length;g++)u+=_(i=e[g],r,o,s=p+N(i,g),a);else if("function"==typeof(g=null===(f=e)||"object"!=typeof f?null:"function"==typeof(f=v&&f[v]||f["@@iterator"])?f:null))for(e=g.call(e),g=0;!(i=e.next()).done;)u+=_(i=i.value,r,o,s=p+N(i,g++),a);else if("object"===s){if("function"==typeof e.then)return _(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(E,E):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),r,o,i,a);throw r=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return u}function T(e,t,n){if(null==e)return e;var r=[],o=0;return _(e,r,"","",function(e){return t.call(n,e,o++)}),r}function M(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var k="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)},A={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};e.Activity=f,e.Children=A,e.Component=y,e.Fragment=r,e.Profiler=i,e.PureComponent=m,e.StrictMode=o,e.Suspense=c,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return R.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!C.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return S(e.type,o,r)},e.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:a,_context:e},e},e.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)C.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return S(e,i,o)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:l,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:M}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},e.startTransition=function(e){var t=R.T,n={};R.T=n;try{var r=e(),o=R.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(E,k)}catch(i){k(i)}finally{null!==t&&null!==n.types&&(t.types=n.types),R.T=t}},e.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},e.use=function(e){return R.H.use(e)},e.useActionState=function(e,t,n){return R.H.useActionState(e,t,n)},e.useCallback=function(e,t){return R.H.useCallback(e,t)},e.useContext=function(e){return R.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return R.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return R.H.useEffect(e,t)},e.useEffectEvent=function(e){return R.H.useEffectEvent(e)},e.useId=function(){return R.H.useId()},e.useImperativeHandle=function(e,t,n){return R.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return R.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return R.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return R.H.useMemo(e,t)},e.useOptimistic=function(e,t){return R.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return R.H.useReducer(e,t,n)},e.useRef=function(e){return R.H.useRef(e)},e.useState=function(e){return R.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return R.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return R.H.useTransition()}
1,e.version="19.2.8"}),r=t((e,t)=>{t.exports=n()}),o=t(e=>{var t=r();function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},a=Symbol.for("react.portal");var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:a,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,i.d.C(e,t))},e.prefetchDNS=function(e){"string"==typeof e&&i.d.D(e)},e.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=l(n,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,a="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?i.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:o,fetchPriority:a}):"script"===n&&i.d.X(e,{crossOrigin:r,integrity:o,fetchPriority:a,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},e.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=l(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=l(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},e.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=l(t.as,t.crossOrigin);i.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version="19.2.8"}),i=t((e,t)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),t.exports=o()}),a=e(i()),s=e(r());var l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function c(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function u(e){return"nodeType"in e}function d(e){var t,n;return e?c(e)?e:u(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function f(e){const{Document:t}=d(e);return e instanceof t}function v(e){return!c(e)&&e instanceof d(e).HTMLElement}function p(e){return e instanceof d(e).SVGElement}function g(e){return e?c(e)?e.document:u(e)?f(e)?e:v(e)||p(e)?e.ownerDocument:document:document:document}var h=l?s.useLayoutEffect:s.useEffect;function y(e){const t=(0,s.useRef)(e);return h(()=>{t.current=e}),(0,s.useCallback)(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function b(e,t){void 0===t&&(t=[e]);const n=(0,s.useRef)(e);return h(()=>{n.current!==e&&(n.current=e)},t),n}function m(e,t){const n=(0,s.useRef)();return(0,s.useMemo)(()=>{const t=e(n.current);return n.current=t,t},[...t])}function w(e){const t=y(e),n=(0,s.useRef)(null);return[n,(0,s.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function x(e){const t=(0,s.useRef)();return(0,s.useEffect)(()=>{t.current=e},[e]),t.current}var E={};function R(e,t){return(0,s.useMemo)(()=>
vendor: 2,878 bytes, line 1
1{if(t)return t;const n=null==E[e]?0:E[e]+1;return E[e]=n,e+"-"+n},[e,t])}function C(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((t,n)=>{const r=Object.entries(n);for(const[o,i]of r){const n=t[o];null!=n&&(t[o]=n+e*i)}return t},{...t})}}var S=C(1),D=C(-1);function O(e){if(!e)return!1;const{KeyboardEvent:t}=d(e.target);return t&&e instanceof t}function N(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=d(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}var _=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[_.Translate.toString(e),_.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),T="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function M(e){return e.matches(T)?e:e.querySelector(T)}var k={display:"none"};function A(e){let{id:t,value:n}=e;return s.createElement("div",{id:t,style:k},n)}function I(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return s.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}var L=(0,s.createContext)(null);var P,j={draggable:"\n    To pick up a draggable item, press the space bar.\n    While dragging, use the arrow keys to move the item.\n    Press space again to drop the item in its new position, or press escape to cancel.\n  "},H={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 B(e){let{announcements:t=H,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=j}=e;const{announce:i,announcement:l}=function(){const[e,t]=(0,s.useState)("");return{announce:(0,s.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}
1(),c=R("DndLiveRegion"),[u,d]=(0,s.useState)(!1);if((0,s.useEffect)(()=>{d(!0)},[]),function(e){const t=(0,s.useContext)(L);(0,s.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}((0,s.useMemo)(()=>({onDragStart(e){let{active:n}=e;i(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&i(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;i(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;i(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;i(t.onDragCancel({active:n,over:r}))}}),[i,t])),!u)return null;const f=s.createElement(s.Fragment,null,s.createElement(A,{id:r,value:o.draggable}),s.createElement(I,{id:c,announcement:l}));return n?(0,a.createPortal)(f,n):f}function U(){}function z(e,t){return(0,s.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function F(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}!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"}(P||(P={}));var Y=Object.freeze({x:0,y:0});function X(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function $(e,t){const n=N(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function K(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function W(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function V(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 q(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function G(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}var J=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=G(t,t.left,t.top),i=[];for(const a of r){const{id:e}=a,t=n.get(e);if(t){const n=X(G(t),o);i.push({id:e,data:{droppableContainer:a,value:n}})}}return i.sort(K)};function Q(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),a=o-r,s=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*s;return Number((o/(n+r-o)).toFixed(4))}return 0}var Z=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:e}=i,r=n.get(e);if(r){const n=Q(r,t);n>0&&o.push({id:e,data:{droppableContainer:i,value:n}})}}return o.sort(W)};function ee(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Y}function te(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((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var ne=te(1);function re(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]}}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}var oe,ie={ignoreTransform:!1};function ae(e,t){void 0===t&&(t=ie);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=d(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=re(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,l=e.left-a-(1-o)*parseFloat(n),c=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(n,t,r))}const{top:r,left:o,width:i,height:a,bottom:s,right:l}=n;return{top:r,left:o,width:i,height:a,bottom:s,right:l}}function se(e){return ae(e,{ignoreTransform:!0})}function le(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(f(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!v(o)||p(o))return n;if(n.includes(o))return n;const i=d(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=d(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(o,i)&&n.push(o),function(e,t){return void 0===t&&(t=d(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?n:r(o.parentNode)}(e):n}function ce(e){const[t]=le(e,1);return null!=t?t:null}function ue(e){return l&&e?c(e)?e:u(e)?f(e)||e===g(e).scrollingElement?window:v(e)?e:null:null:null}function de(e){return c(e)?e.scrollX:e.scrollLeft}function fe(e){return c(e)?e.scrollY:e.scrollTop}function ve(e){return{x:de(e),y:fe(e)}}function pe(e){return!(!l||!e)&&e===document.scrollingElement}function ge(e){const t={x:0,y:0},n=pe(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(oe||(oe={}));var he={x:.2,y:.2};function ye(e,t,n,r,o){let{top:i,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===o&&(o=he);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=ge(e),v={x:0,y:0},p={x:0,y:0},g=t.height*o.y,h=t.width*o.x;return!c&&i<=t.top+g?(v.y=oe.Backward,p.y=r*Math.abs((t.top+g-i)/g)):!u&&l>=t.bottom-g&&(v.y=oe.Forward,p.y=r*Math.abs((t.bottom-g-l)/g)),!f&&s>=t.right-h?(v.x=oe.Forward,p.x=r*Math.abs((t.right-h-s)/h)):!d&&a<=t.left+h&&(v.x=oe.Backward,p.x=r*Math.abs((t.left+h-a)/h)),{direction:v,speed:p}}function be(e){if(e===document.scrollingElement){const{innerWidth:e,innerHe
vendor: 6,738 bytes, line 1
1ight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}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 me(e){return e.reduce((e,t)=>S(e,ve(t)),Y)}function we(e,t){if(void 0===t&&(t=ae),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);ce(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}var xe,Ee,Re=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+de(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+fe(t),0)}]],Ce=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=le(t),r=me(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[o,i,a]of Re)for(const e of i)Object.defineProperty(this,e,{get:()=>{const t=a(n),i=r[o]-t;return this.rect[e]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},Se=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function De(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function Oe(e){e.preventDefault()}function Ne(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(xe||(xe={})),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"}(Ee||(Ee={}));var _e={start:[Ee.Space,Ee.Enter],cancel:[Ee.Esc],end:[Ee.Space,Ee.Enter,Ee.Tab]},Te=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ee.Right:return{...n,x:n.x+25};case Ee.Left:return{...n,x:n.x-25};case Ee.Down:return{...n,y:n.y+25};case Ee.Up:return{...n,y:n.y-25}}},Me=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Se(g(t)),this.windowListeners=new Se(d(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(xe.Resize,this.handleCancel),this.windowListeners.add(xe.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(xe.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&we(n),t(Y)}handleKeyDown(e){if(O(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=_e,coordinateGetter:i=Te,scrollBehavior:a="smooth"}=r,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:Y;this.referenceCoordinates||(this.referenceCoordinates=c);const u=i(e,{active:t,context:n.current,currentCoordinates:c});if(u){const t=D(u,c),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:s,isLeft:l,isBottom:c,maxScroll:d,minScroll:f}=ge(n),v=be(n),p={x:Math.min(o===Ee.Right?v.right-v.width/2:v.right,Math.max(o===Ee.Right?v.left:v.left+v.width/2,u.x)),y:Math.min(o===Ee.Down?v.bottom-v.height/2:v.bottom,Math.max(o===Ee.Down?v.top:v.top+v.height/2,u.y))},g=o===Ee.Right&&!s||o===Ee.Left&&!l,h=o===Ee.Down&&!c||o===Ee.Up&&!i;if(g&&p.x!==u.x){const e=n.scrollLeft+t.x,i=o===Ee.Right&&e<=d.x||o===Ee.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=i?n.scrollLeft-e:o===Ee.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(h&&p.y!==u.y){const e=n.scrollTop+t.y,i=o===Ee.Down&&e<=d.y||o===Ee.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=i?n.scrollTop-e:o===Ee.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,S(D(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};function ke(e){return Boolean(e&&"distance"in e)}function Ae(e){return Boolean(e&&"delay"in e)}Me.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=_e,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];var Ie=class{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=d(e);return e instanceof t?e:g(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=g(i),this.documentListeners=new Se(this.document),this.listeners=new Se(n),this.windowListeners=new Se(d(i)),this.initialCoordinates=null!=(r=N(o))?r:Y,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:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(xe.Resize,this.handleCancel),this.windowListeners.add(xe.DragStart,Oe),this.windowListeners.add(xe.VisibilityChange,this.handleCancel),this.windowListeners.add(xe.ContextMenu,Oe),this.documentListeners.add(xe.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ae(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(ke(t))return void this.handlePending(t)}
1this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(xe.Click,Ne,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(xe.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const s=null!=(t=N(e))?t:Y,l=D(r,s);if(!n&&a){if(ke(a)){if(null!=a.tolerance&&De(l,a.tolerance))return this.handleCancel();if(De(l,a.distance))return this.handleStart()}return Ae(a)&&De(l,a.tolerance)?this.handleCancel():void this.handlePending(a,l)}e.cancelable&&e.preventDefault(),i(s)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===Ee.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}},Le={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},Pe=class extends Ie{constructor(e){const{event:t}=e,n=g(t.target);super(e,Le,n)}};Pe.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(r?.({event:n}),!0)}}];var je,He={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(je||(je={}));var Be=class extends Ie{constructor(e){super(e,He,g(e.event.target))}};Be.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==je.RightClick&&(r?.({event:n}),!0)}}];var Ue,ze,Fe={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};function Ye(e){let{acceleration:t,activator:n=Ue.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:l=ze.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:v}=e;const p=function(e){let{delta:t,disabled:n}=e;const r=x(t);return m(e=>{if(n||!r||!e)return Ke;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[oe.Backward]:e.x[oe.Backward]||-1===o.x,[oe.Forward]:e.x[oe.Forward]||1===o.x},y:{[oe.Backward]:e.y[oe.Backward]||-1===o.y,[oe.Forward]:e.y[oe.Forward]||1===o.y}}},[n,t,r])}({delta:f,disabled:!i}),[g,h]=function(){const e=(0,s.useRef)(null);return[(0,s.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,s.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),y=(0,s.useRef)({x:0,y:0}),b=(0,s.useRef)({x:0,y:0}),w=(0,s.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]),E=(0,s.useRef)(null),R=(0,s.useCallback)(()=>{const e=E.current;if(!e)return;const t=y.current.x*b.current.x,n=y.current.y*b.current.y;e.scrollBy(t,n)},[]),C=(0,s.useMemo)(()=>l===ze.TreeOrder?[...u].reverse():u,[l,u]);(0,s.useEffect)(()=>{if(i&&u.length&&w){for(const e of C){if(!1===(null==r?void 0:r(e)))continue;const n=u.indexOf(e),o=d[n];if(!o)continue;const{direction:i,speed:s}=ye(e,o,w,t,v);for(const e of["x","y"])p[e][i[e]]||(s[e]=0,i[e]=0);if(s.x>0||s.y>0)return h(),E.current=e,g(R,a),y.current=s,void(b.current=i)}y.current={x:0,y:0},b.current={x:0,y:0},h()}else h()},[t,R,r,h,i,a,JSON.stringify(w),JSON.stringify(p),g,u,C,d,JSON.stringify(v)])}(class extends Ie{constructor(e){super(e,Fe)}static setup(){return window.addEventListener(Fe.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Fe.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1)&&(r?.({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Ue||(Ue={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
1sedTreeOrder"}(ze||(ze={}));var Xe,$e,Ke={x:{[oe.Backward]:!1,[oe.Forward]:!1},y:{[oe.Backward]:!1,[oe.Forward]:!1}};!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Xe||(Xe={})),function(e){e.Optimized="optimized"}($e||($e={}));var We=new Map;function Ve(e,t){return m(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function qe(e){let{callback:t,disabled:n}=e;const r=y(t),o=(0,s.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)},[n]);return(0,s.useEffect)(()=>()=>null==o?void 0:o.disconnect(),[o]),o}function Ge(e){return new Ce(ae(e),e)}function Je(e,t,n){void 0===t&&(t=Ge);const[r,o]=(0,s.useState)(null);function i(){o(r=>{if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}const a=function(e){let{callback:t,disabled:n}=e;const r=y(t),o=(0,s.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,s.useEffect)(()=>()=>null==o?void 0:o.disconnect(),[o]),o}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),l=qe({callback:i});return h(()=>{i(),e?(l?.observe(e),a?.observe(document.body,{childList:!0,subtree:!0})):(l?.disconnect(),a?.disconnect())},[e]),r}var Qe=[];function Ze(e,t){void 0===t&&(t=[]);const n=(0,s.useRef)(null);return(0,s.useEffect)(()=>{n.current=null},t),(0,s.useEffect)(()=>{const t=e!==Y;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?D(e,n.current):Y}function et(e){return(0,s.useMemo)(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}var tt=[];function nt(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return v(t)?t:e}var rt=[{sensor:Pe,options:{}},{sensor:Me,options:{}}],ot={current:{}},it={draggable:{measure:se},droppable:{measure:se,strategy:Xe.WhileDragging,frequency:$e.Optimized},dragOverlay:{measure:ae}},at=class extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}},st={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new at,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:U},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:it,measureDroppableContainers:U,windowRect:null,measuringScheduled:!1},lt={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:U,draggableNodes:new Map,over:null,measureDroppableContainers:U},ct=(0,s.createContext)(lt),ut=(0,s.createContext)(st);function dt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new at}}}function ft(e,t){switch(t.type){case P.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case P.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case P.DragEnd:case P.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case P.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new at(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case P.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new at(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case P.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;
1const i=new at(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function vt(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=(0,s.useContext)(ct),i=x(r),a=x(null==n?void 0:n.id);return(0,s.useEffect)(()=>{if(!t&&!r&&i&&null!=a){if(!O(i))return;if(document.activeElement===i.target)return;const e=o.get(a);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=M(e);if(t){t.focus();break}}})}},[r,t,o,a,i]),null}function pt(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}var gt,ht=(0,s.createContext)({...Y,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(gt||(gt={}));var yt=(0,s.memo)(function(e){var t,n,r,o;let{id:i,accessibility:c,autoScroll:u=!0,children:f,sensors:p=rt,collisionDetection:g=Z,measuring:y,modifiers:x,...E}=e;const[C,D]=(0,s.useReducer)(ft,void 0,dt),[O,_]=function(){const[e]=(0,s.useState)(()=>new Set),t=(0,s.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,s.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}
1(),[T,M]=(0,s.useState)(gt.Uninitialized),k=T===gt.Initialized,{draggable:{active:A,nodes:I,translate:j},droppable:{containers:H}}=C,U=null!=A?I.get(A):null,z=(0,s.useRef)({initial:null,translated:null}),F=(0,s.useMemo)(()=>{var e;return null!=A?{id:A,data:null!=(e=null==U?void 0:U.data)?e:ot,rect:z}:null},[A,U]),X=(0,s.useRef)(null),[$,K]=(0,s.useState)(null),[W,V]=(0,s.useState)(null),G=b(E,Object.values(E)),J=R("DndDescribedBy",i),Q=(0,s.useMemo)(()=>H.getEnabled(),[H]),te=(re=y,(0,s.useMemo)(()=>({draggable:{...it.draggable,...null==re?void 0:re.draggable},droppable:{...it.droppable,...null==re?void 0:re.droppable},dragOverlay:{...it.dragOverlay,...null==re?void 0:re.dragOverlay}}),[null==re?void 0:re.draggable,null==re?void 0:re.droppable,null==re?void 0:re.dragOverlay]));var re;const{droppableRects:oe,measureDroppableContainers:ie,measuringScheduled:se}=function(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,a]=(0,s.useState)(null),{frequency:l,measure:c,strategy:u}=o,d=(0,s.useRef)(e),f=function(){switch(u){case Xe.Always:return!1;case Xe.BeforeDragging:return n;default:return!n}}(),v=b(f),p=(0,s.useCallback)(function(e){void 0===e&&(e=[]),v.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[v]),g=(0,s.useRef)(null),h=m(t=>{if(f&&!n)return We;if(!t||t===We||d.current!==e||null!=i){const t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new Ce(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,i,n,f,c]);return(0,s.useEffect)(()=>{d.current=e},[e]),(0,s.useEffect)(()=>{f||p()},[n,f]),(0,s.useEffect)(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),(0,s.useEffect)(()=>{f||"number"!=typeof l||null!==g.current||(g.current=setTimeout(()=>{p(),g.current=null},l))},[l,f,p,...r]),{droppableRects:h,measureDroppableContainers:p,measuringScheduled:null!=i}}(Q,{dragging:k,dependencies:[j.x,j.y],config:te.droppable}),de=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return m(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(I,A),fe=(0,s.useMemo)(()=>W?N(W):null,[W]),ge=function(){const e=!1===(null==$?void 0:$.autoScrollEnabled),t="object"==typeof u?!1===u.enabled:!1===u,n=k&&!e&&!t;return"object"==typeof u?{...u,enabled:n}:{enabled:n}}(),he=function(e,t){return Ve(e,t)}(de,te.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=(0,s.useRef)(!1),{x:a,y:l}="boolean"==typeof o?{x:o,y:o}:o;h(()=>{if(!a&&!l||!t)return void(i.current=!1);if(i.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const o=ee(n(e),r);if(a||(o.x=0),l||(o.y=0),i.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const t=ce(e);t&&t.scrollBy({top:o.y,left:o.x})}},[t,a,l,r,n])}({activeNode:null!=A?I.get(A):null,config:ge.layoutShiftCompensation,initialRect:he,measure:te.draggable.measure});const ye=Je(de,te.draggable.measure,he),be=Je(de?de.parentElement:null),we=(0,s.useRef)({activatorEvent:null,active:null,activeNode:de,collisionRect:null,collisions:null,droppableRects:oe,draggableNodes:I,draggingNode:null,draggingNodeRect:null,droppableContainers:H,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),xe=H.getNodeFor(null==(t=we.current.over)?void 0:t.id),Ee=function(e){let{measure:t}=e;const[n,r]=(0,s.useState)(null),o=qe({callback:(0,s.useCallback)(e=>{for(const{target:n}of e)if(v(n)){r(e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),i=(0,s.useCallback)(e=>{const n=nt(e);o?.disconnect(),n&&o?.observe(n),r(n?t(n):null)},[t,o]),[a,l]=w(i);return(0,s.useMemo)(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}({measure:te.dragOverlay.measure}),Re=null!=(n=Ee.nodeRef.current)?n:de,Se=k?null!=(r=Ee.rect)?r:ye:null,De=Boolean(Ee.nodeRef.current&&Ee.rect),Oe=ee(Ne=De?null:ye,Ve(Ne));var Ne;const _e=et(Re?d(Re):null),Te=function(e){const t=(0,s.useRef)(e),n=m(n=>e?n&&n!==Qe&&e&&t.current&&e.parentNode===t.current.parentNode?n:le(e):Qe,[e]);return(0,s.useEffect)(()=>{t.current=e},[e]),n}(k?null!=xe?xe:de:null),Me=function(e,t){void 0===t&&(t=ae);
1const[n]=e,r=et(n?d(n):null),[o,i]=(0,s.useState)(tt);function a(){i(()=>e.length?e.map(e=>pe(e)?r:new Ce(t(e),e)):tt)}const l=qe({callback:a});return h(()=>{l?.disconnect(),a(),e.forEach(e=>null==l?void 0:l.observe(e))},[e]),o}(Te),ke=pt(x,{transform:{x:j.x-Oe.x,y:j.y-Oe.y,scaleX:1,scaleY:1},activatorEvent:W,active:F,activeNodeRect:ye,containerNodeRect:be,draggingNodeRect:Se,over:we.current.over,overlayNodeRect:Ee.rect,scrollableAncestors:Te,scrollableAncestorRects:Me,windowRect:_e}),Ae=fe?S(fe,j):null,Ie=function(e){const[t,n]=(0,s.useState)(null),r=(0,s.useRef)(e),o=(0,s.useCallback)(e=>{const t=ue(e.target);t&&n(e=>e?(e.set(t,ve(t)),new Map(e)):null)},[]);return(0,s.useEffect)(()=>{const t=r.current;if(e!==t){i(t);const a=e.map(e=>{const t=ue(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,ve(t)]):null}).filter(e=>null!=e);n(a.length?new Map(a):null),r.current=e}return()=>{i(e),i(t)};function i(e){e.forEach(e=>{ue(e)?.removeEventListener("scroll",o)})}},[o,e]),(0,s.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>S(e,t),Y):me(e):Y,[e,t])}(Te),Le=Ze(Ie),Pe=Ze(Ie,[ye]),je=S(ke,Le),He=Se?ne(Se,ke):null,Be=F&&He?g({active:F,collisionRect:He,droppableRects:oe,droppableContainers:Q,pointerCoordinates:Ae}):null,Ue=q(Be,"id"),[ze,Fe]=(0,s.useState)(null),$e=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(De?ke:S(ke,Pe),null!=(o=null==ze?void 0:ze.rect)?o:null,ye),Ke=(0,s.useRef)(null),Ge=(0,s.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==X.current)return;const o=I.get(X.current);if(!o)return;const i=e.nativeEvent,s=new n({active:X.current,activeNode:o,event:i,options:r,context:we,onAbort(e){if(!I.get(e))return;const{onDragAbort:t}=G.current,n={id:e};t?.(n),O({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!I.get(e))return;const{onDragPending:o}=G.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};o?.(i),O({type:"onDragPending",event:i})},onStart(e){const t=X.current;if(null==t)return;const n=I.get(t);if(!n)return;const{onDragStart:r}=G.current,o={activatorEvent:i,active:{id:t,data:n.data,rect:z}};(0,a.unstable_batchedUpdates)(()=>{r?.(o),M(gt.Initializing),D({type:P.DragStart,initialCoordinates:e,active:t}),O({type:"onDragStart",event:o}),K(Ke.current),V(i)})},onMove(e){D({type:P.DragMove,coordinates:e})},onEnd:l(P.DragEnd),onCancel:l(P.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=we.current;let s=null;if(t&&o){const{cancelDrop:a}=G.current;s={activatorEvent:i,active:t,collisions:n,delta:o,over:r},e===P.DragEnd&&"function"==typeof a&&await Promise.resolve(a(s))&&(e=P.DragCancel)}X.current=null,(0,a.unstable_batchedUpdates)(()=>{D({type:e}),M(gt.Uninitialized),Fe(null),K(null),V(null),Ke.current=null;const t=e===P.DragEnd?"onDragEnd":"onDragCancel";if(s){const e=G.current[t];e?.(s),O({type:t,event:s})}})}}Ke.current=s},[I]),at=function(e,t){return(0,s.useMemo)(()=>e.reduce((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(p,(0,s.useCallback)((e,t)=>(n,r)=>{const o=n.nativeEvent,i=I.get(r);if(null!==X.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},X.current=r,Ge(n,t))},[I,Ge]));!function(e){(0,s.useEffect)(()=>{if(!l)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}(p),h(()=>{ye&&T===gt.Initializing&&M(gt.Initialized)},[ye,T]),(0,s.useEffect)(()=>{const{onDragMove:e}=G.current,{active:t,activatorEvent:n,collisions:r,over:o}=we.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:r,delta:{x:je.x,y:je.y},over:o};(0,a.unstable_batchedUpdates)(()=>{e?.(i),O({type:"onDragMove",event:i})})},[je.x,je.y]),(0,s.useEffect)(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=we.current;if(!e||null==X.current||!t||!o)return;const{onDragOver:i}=G.current,s=r.get(Ue),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:l};(0,a.unstable_batchedUpdates)(()=>{Fe(l),i?.(c),O({type:"onDragOver",event:c})})},[Ue]),h(()=>{we.current={activatorEvent:W,active:F,activeNode:de,collisionRect:He,collisions:Be,droppableRects:oe,draggableNodes:I,draggingNode:Re,draggingNodeRect:Se,droppableContainers:H,over:ze,scrollableAncestors:Te,scrollAdjustedTranslate:je},z.current={initial:Se,translated:He}},[F,de,Be,He,I,Re,Se,oe,H,ze,Te,je]),Ye({...ge,delta:j,draggingRect:He,pointerCoordinates:Ae,scrollableAncestors:Te,scrollableAncestorRects:Me});const st=(0,s.useMemo)(()=>({active:F,activeNode:de,activeNodeRect:ye,activatorEvent:W,collisions:Be,containerNodeRect:be,dragOverlay:Ee,draggableNodes:I,droppableContainers:H,droppableRects:oe,over:ze,measureDroppableContainers:ie,scrollableAncestors:Te,scrollableAncestorRects:Me,measuringConfiguration:te,measuringScheduled:se,windowRect:_e}),[F,de,ye,W,Be,be,Ee,I,H,oe,ze,ie,Te,Me,te,se,_e]),lt=(0,s.useMemo)(()=>({activatorEvent:W,activators:at,active:F,activeNodeRect:ye,ariaDescribedById:{draggable:J},dispatch:D,draggableNodes:I,over:ze,measureDroppableContainers:ie}),[W,at,F,ye,D,J,I,ze,ie]);return s.createElement(L.Provider,{value:_},s.createElement(ct.Provider,{value:lt},s.createElement(ut.Provider,{value:st},s.createElement(ht.Provider,{value:$e},f)),s.createElement(vt,{disabled:!1===(null==c?void 0:c.restoreFocus)}
1)),s.createElement(B,{...c,hiddenTextDescribedById:J}))}),bt=(0,s.createContext)(null),mt="button";function wt(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=R("Draggable"),{activators:a,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:v}=(0,s.useContext)(ct),{role:p=mt,roleDescription:g="draggable",tabIndex:y=0}=null!=o?o:{},m=(null==c?void 0:c.id)===t,x=(0,s.useContext)(m?ht:bt),[E,C]=w(),[S,D]=w(),O=function(e,t){return(0,s.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e},{}),[e,t])}(a,t),N=b(n);return h(()=>(f.set(t,{id:t,key:i,node:E,activatorNode:S,data:N}),()=>{const e=f.get(t);e&&e.key===i&&f.delete(t)}),[f,t]),{active:c,activatorEvent:l,activeNodeRect:u,attributes:(0,s.useMemo)(()=>({role:p,tabIndex:y,"aria-disabled":r,"aria-pressed":!(!m||p!==mt)||void 0,"aria-roledescription":g,"aria-describedby":d.draggable}),[r,p,y,m,g,d.draggable]),isDragging:m,listeners:r?void 0:O,node:E,over:v,setNodeRef:C,setActivatorNodeRef:D,transform:x}}function xt(){return(0,s.useContext)(ut)}var Et={timeout:25};function Rt(e){let{animation:t,children:n}=e;
1const[r,o]=(0,s.useState)(null),[i,a]=(0,s.useState)(null),l=x(n);return n||r||!l||o(l),h(()=>{if(!i)return;const e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;null!=e&&null!=n?Promise.resolve(t(n,i)).then(()=>{o(null)}):o(null)},[t,r,i]),s.createElement(s.Fragment,null,n,r?(0,s.cloneElement)(r,{ref:a}):null)}var Ct={x:0,y:0,scaleX:1,scaleY:1};function St(e){let{children:t}=e;return s.createElement(ct.Provider,{value:lt},s.createElement(ht.Provider,{value:Ct},t))}var Dt={position:"fixed",touchAction:"none"},Ot=e=>O(e)?"transform 250ms ease":void 0,Nt=(0,s.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:o,children:i,className:a,rect:l,style:c,transform:u,transition:d=Ot}=e;if(!l)return null;const f=o?u:{...u,scaleX:1,scaleY:1},v={...Dt,width:l.width,height:l.height,top:l.top,left:l.left,transform:_.Transform.toString(f),transformOrigin:o&&r?$(r,l):void 0,transition:"function"==typeof d?d(r):d,...c};return s.createElement(n,{className:a,style:v,ref:t},i)}),_t=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:i,className:a}=e;if(null!=i&&i.active)for(const[e,s]of Object.entries(i.active))void 0!==s&&(o[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,s));if(null!=i&&i.dragOverlay)for(const[e,s]of Object.entries(i.dragOverlay))void 0!==s&&r.node.style.setProperty(e,s);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(o))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},Tt={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:_.Transform.toString(t)},{transform:_.Transform.toString(n)}]},sideEffects:_t({styles:{active:{opacity:"0"}}})};function Mt(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return y((e,i)=>{if(null===t)return;const a=n.get(e);if(!a)return;const s=a.node.current;if(!s)return;const l=nt(i);if(!l)return;const{transform:c}=d(i).getComputedStyle(i),u=re(c);if(!u)return;const f="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...Tt,...e};return e=>{let{active:i,dragOverlay:a,transform:s,...l}=e;if(!t)return;const c={x:a.rect.left-i.rect.left,y:a.rect.top-i.rect.top},u={scaleX:1!==s.scaleX?i.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?i.rect.height*s.scaleY/a.rect.height:1},d={x:s.x-c.x,y:s.y-c.y,...u},f=o({...l,active:i,dragOverlay:a,transform:{initial:s,final:d}}),[v]=f,p=f[f.length-1];if(JSON.stringify(v)===JSON.stringify(p))return;const g=null==r?void 0:r({active:i,dragOverlay:a,...l}),h=a.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{h.onfinish=()=>{g?.(),e()}})}}(t);return we(s,o.draggable.measure),f({active:{id:e,data:a.data,node:s,rect:o.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:i,rect:o.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:o,transform:u})})}var kt=0;function At(e){return(0,s.useMemo)(()=>{if(null!=e)return++kt},[e])}var It=s.memo(e=>
1{let{adjustScale:t=!1,children:n,dropAnimation:r,style:o,transition:i,modifiers:a,wrapperElement:l="div",className:c,zIndex:u=999}=e;const{activatorEvent:d,active:f,activeNodeRect:v,containerNodeRect:p,draggableNodes:g,droppableContainers:h,dragOverlay:y,over:b,measuringConfiguration:m,scrollableAncestors:w,scrollableAncestorRects:x,windowRect:E}=xt(),R=(0,s.useContext)(ht),C=At(null==f?void 0:f.id),S=pt(a,{activatorEvent:d,active:f,activeNodeRect:v,containerNodeRect:p,draggingNodeRect:y.rect,over:b,overlayNodeRect:y.rect,scrollableAncestors:w,scrollableAncestorRects:x,transform:R,windowRect:E}),D=Ve(v),O=Mt({config:r,draggableNodes:g,droppableContainers:h,measuringConfiguration:m}),N=D?y.setRef:void 0;return s.createElement(St,null,s.createElement(Rt,{animation:O},f&&C?s.createElement(Nt,{key:C,id:f.id,ref:N,as:l,activatorEvent:d,adjustScale:t,className:c,transition:i,rect:D,style:{zIndex:u,...o},transform:S},n):null))});function Lt(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Pt(e,t){return e.reduce((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e},Array(e.length))}function jt(e){return null!==e&&e>=0}var Ht=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=Lt(t,r,n),a=t[o],s=i[o];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},Bt="Sortable",Ut=s.createContext({activeIndex:-1,containerId:Bt,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Ht,disabled:{draggable:!1,droppable:!1}});function zt(e){let{children:t,id:n,items:r,strategy:o=Ht,disabled:i=!1}=e;const{active:a,dragOverlay:l,droppableRects:c,over:u,measureDroppableContainers:d}=xt(),f=R(Bt,n),v=Boolean(null!==l.rect),p=(0,s.useMemo)(()=>r.map(e=>"object"==typeof e&&"id"in e?e.id:e),[r]),g=null!=a,y=a?p.indexOf(a.id):-1,b=u?p.indexOf(u.id):-1,m=(0,s.useRef)(p),w=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(p,m.current),x=-1!==b&&-1===y||w,E=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(i);h(()=>{w&&g&&d(p)},[w,p,g,d]),(0,s.useEffect)(()=>{m.current=p},[p]);const C=(0,s.useMemo)(()=>({activeIndex:y,containerId:f,disabled:E,disableTransforms:x,items:p,overIndex:b,useDragOverlay:v,sortedRects:Pt(p,c),strategy:o}),[y,f,E.draggable,E.droppable,x,p,b,c,v,o]);return s.createElement(Ut.Provider,{value:C},t)}var Ft=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return Lt(n,r,o).indexOf(t)},Yt=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!(!c||!r)&&((s===i||o!==a)&&(!!n||a!==o&&t===l))},Xt={duration:200,easing:"ease"},$t="transform",Kt=_.Transition.toString({property:$t,duration:0,easing:"linear"}),Wt={roleDescription:"sortable"};function Vt(e){let{animateLayoutChanges:t=Yt,attributes:n,disabled:r,data:o,getNewIndex:i=Ft,id:a,strategy:l,resizeObserverConfig:c,transition:u=Xt}=e;const{items:d,containerId:f,activeIndex:v,disabled:p,disableTransforms:g,sortedRects:y,overIndex:m,useDragOverlay:x,strategy:E}=(0,s.useContext)(Ut),C=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(r,p),S=d.indexOf(a),D=(0,s.useMemo)(()=>({sortable:{containerId:f,index:S,items:d},...o}),[f,o,S,d]),N=(0,s.useMemo)(()=>d.slice(d.indexOf(a)),[d,a]),{rect:T,node:M,isOver:k,setNodeRef:A}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=R("Droppable"),{active:a,dispatch:l,over:c,measureDroppableContainers:u}=(0,s.useContext)(ct),d=(0,s.useRef)({disabled:n}),f=(0,s.useRef)(!1),v=(0,s.useRef)(null),p=(0,s.useRef)(null),{disabled:g,updateMeasurementsFor:h,timeout:y}={...Et,...o},m=b(null!=h?h:r),x=qe({callback:(0,s.useCallback)(()=>{f.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{u(Array.isArray(m.current)?m.current:[m.current]),p.current=null},y)):f.current=!0},[y]),disabled:g||!a}),E=(0,s.useCallback)((e,t)=>{x&&(t&&(x.unobserve(t),f.current=!1),e&&x.observe(e))},[x]),[C,S]=w(E),D=b(t);return(0,s.useEffect)(()=>{x&&C.current&&(x.disconnect(),f.current=!1,x.observe(C.current))},[C,x]),(0,s.useEffect)(()=>(l({type:P.RegisterDroppable,element:{id:r,key:i,disabled:n,node:C,rect:v,data:D}}),()=>l({type:P.UnregisterDroppable,key:i,id:r})),[r]),(0,s.useEffect)(()=>{n!==d.current.disabled&&(l({type:P.SetDroppableDisabled,id:r,key:i,disabled:n}),d.current.disabled=n)},[r,i,n,l]),{active:a,rect:v,isOver:(null==c?void 0:c.id)===r,node:C,over:c,setNodeRef:S}}({id:a,data:D,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:N,...c}}),{active:I,activatorEvent:L,activeNodeRect:j,attributes:H,setNodeRef:B,listeners:U,isDragging:z,over:F,setActivatorNodeRef:Y,transform:X}=wt({id:a,data:D,attributes:{...Wt,...n},disabled:C.draggable}),$=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}(A,B),K=Boolean(I),W=K&&!g&&jt(v)&&jt(m),V=!x&&z,q=V&&W?X:null,G=W?null!=q?q:(null!=l?l:E)({rects:y,activeNodeRect:j,activeIndex:v,overIndex:m,index:S}):null,J=jt(v)&&jt(m)?i({id:a,items:d,activeIndex:v,overIndex:m}):S,Q=null==I?void 0:I.id,Z=(0,s.useRef)({activeId:Q,items:d,newIndex:J,containerId:f}),ee=d!==Z.current.items,te=t({active:I,containerId:f,isDragging:z,isSorting:K,id:a,index:S,items:d,newIndex:Z.current.newIndex,previousItems:Z.current.items,previousContainerId:Z.current.containerId,transition:u,wasDragging:null!=Z.current.activeId}),ne=function(e){let{disabled:t,index:n,node:r,rect:o}=e;
1const[i,a]=(0,s.useState)(null),l=(0,s.useRef)(n);return h(()=>{if(!t&&n!==l.current&&r.current){const e=o.current;if(e){const t=ae(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&a(n)}}n!==l.current&&(l.current=n)},[t,n,r,o]),(0,s.useEffect)(()=>{i&&a(null)},[i]),i}({disabled:!te,index:S,node:M,rect:T});return(0,s.useEffect)(()=>{K&&Z.current.newIndex!==J&&(Z.current.newIndex=J),f!==Z.current.containerId&&(Z.current.containerId=f),d!==Z.current.items&&(Z.current.items=d)},[K,J,f,d]),(0,s.useEffect)(()=>{if(Q===Z.current.activeId)return;if(null!=Q&&null==Z.current.activeId)return void(Z.current.activeId=Q);const e=setTimeout(()=>{Z.current.activeId=Q},50);return()=>clearTimeout(e)},[Q]),{active:I,activeIndex:v,attributes:H,data:D,rect:T,index:S,newIndex:J,items:d,isOver:k,isSorting:K,isDragging:z,listeners:U,node:M,overIndex:m,over:F,setNodeRef:$,setActivatorNodeRef:Y,setDroppableNodeRef:A,setDraggableNodeRef:B,transform:null!=ne?ne:G,transition:function(){if(ne||ee&&Z.current.newIndex===S)return Kt;if(V&&!O(L)||!u)return;if(K||te)return _.Transition.toString({...u,property:$t})}()}}function qt(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}var Gt=[Ee.Down,Ee.Right,Ee.Up,Ee.Left],Jt=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:i,over:a,scrollableAncestors:s}}=t;if(Gt.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];i.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;const i=o.get(n.id);if(i)switch(e.code){case Ee.Down:r.top<i.top&&t.push(n);break;case Ee.Up:r.top>i.top&&t.push(n);break;case Ee.Left:r.left>i.left&&t.push(n);break;case Ee.Right:r.left<i.left&&t.push(n)}});const u=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=V(t),i=[];for(const a of r){const{id:e}=a,t=n.get(e);if(t){const n=V(t),r=o.reduce((e,t,r)=>e+X(n[r],t),0),s=Number((r/4).toFixed(4));i.push({id:e,data:{droppableContainer:a,value:s}})}}return i.sort(K)})({active:n,collisionRect:r,droppableRects:o,droppableContainers:t,pointerCoordinates:null});let d=q(u,"id");if(d===(null==a?void 0:a.id)&&u.length>1&&(d=u[1].id),null!=d){const e=i.get(n.id),t=i.get(d),a=t?o.get(t.id):null,u=null==t?void 0:t.node.current;if(u&&a&&e&&t){const n=le(u).some((e,t)=>s[t]!==e),o=Qt(e,t),i=(c=t,!(!qt(l=e)||!qt(c))&&!!Qt(l,c)&&l.data.current.sortable.index<c.data.current.sortable.index),d=n||!o?{x:0,y:0}:{x:i?r.width-a.width:0,y:i?r.height-a.height:0},f={x:a.left,y:a.top};return d.x&&d.y?f:D(f,d)}}}var l,c};function Qt(e,t){return!(!qt(e)||!qt(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}export{It as a,J as c,_ as d,i as f,yt as i,z as l,Jt as n,Me as o,r as p,Vt as r,Be as s,zt as t,F as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.