PageSourceSearch

https://seekingalpha.com/samw/static/js/c.43375.d5415d0ab.js

js seekingalpha.com collected 2026-10-01 07:35:57 UTC 41,009 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunksamw=globalThis.webpackChunksamw||[]).push([[43375],{243375(e,t,n){n.d(t,{Mp:()=>_e,Hd:()=>ct,vL:()=>te,uN:()=>ae,cA:()=>ve,IG:()=>pe,fp:()=>R,y$:()=>S,Sj:()=>z,Vy:()=>E,sl:()=>B,fF:()=>Qe,PM:()=>Je,zM:()=>Ze,MS:()=>g,FR:()=>p});var r=n(296540),o=n(440961),i=n(274979);const a={display:"none"};function l(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:a},n)}function s(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return r.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":o,"aria-atomic":!0},n)}const c=(0,r.createContext)(null),u={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  "},d={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 f(e){let{announcements:t=d,container:n,hiddenTextDescribedById:a,screenReaderInstructions:f=u}=e;const{announce:h,announcement:v}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),g=(0,i.YG)("DndLiveRegion"),[p,b]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{b(!0)},[]),function(e){const t=(0,r.useContext)(c);(0,r.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}((0,r.useMemo)(()=>({onDragStart(e){let{active:n}=e;h(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&h(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;h(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;h(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;h(t.onDragCancel({active:n,over:r}))}}),[h,t])),!p)return null;const m=r.createElement(r.Fragment,null,r.createElement(l,{id:a,value:f.draggable}),r.createElement(s,{id:g,announcement:v}));return n?(0,o.createPortal)(m,n):m}var h;function v(){}function g(e,t){return(0,r.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.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"}(h||(h={}));const b=Object.freeze({x:0,y:0});function m(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function y(e,t){const n=(0,i.e_)(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function w(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function x(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function C(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 E(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function D(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}}const R=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=D(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=m(D(r),o);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(w)},S=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=C(t),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=C(r),a=o.reduce((e,t,r)=>e+m(n[r],t),0),l=Number((a/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:l}})}}return i.sort(w)};function N(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,l=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const k=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=N(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(x)};function M(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:b}function O(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})}}const A=O(1);function T(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}const L={ignoreTransform:!1};function z(e,t){void 0===t&&(t=L);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,i.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=T(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,s=e.left-a-(1-o)*parseFloat(n),c=e.top-l-(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:s+u,bottom:c+d,left:s}}(n,t,r))}const{top:r,left:o,width:a,height:l,bottom:s,right:c}=n;return{top:r,left:o,width:a,height:l,bottom:s,right:c}}function P(e){return z(e,{ignoreTransform:!0})}function B(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,i.wz)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,i.sb)(o)||(0,i.xZ)(o))return n;if(n.includes(o))return n;const a=(0,i.zk)(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=(0,i.zk)(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,a)&&n.push(o),function(e,t){return void 0===t&&(t=(0,i.zk)(e).getComputedStyle(e)),"fixed"===t.position}(o,a)?n:r(o.parentNode)}(e):n}function I(e){const[t]=B(e,1);return null!=t?t:null}function W(e){return i.Sw&&e?(0,i.l6)(e)?e:(0,i.Ll)(e)?(0,i.wz)(e)||e===(0,i.TW)(e).scrollingElement?window:(0,i.sb)(e)?e:null:null:null}function F(e){return(0,i.l6)(e)?e.scrollX:e.scrollLeft}function K(e){return(0,i.l6)(e)?e.scrollY:e.scrollTop}function Y(e){return{x:F(e),y:K(e)}}var j;function U(e){return!(!i.Sw||!e)&&e===document.scrollingElement}function X(e){const t={x:0,y:0},n=U(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"}(j||(j={}));const G={x:.2,y:.2};function _(e,t,n,r,o){let{top:i,left:a,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===o&&(o=G);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=X(e),h={x:0,y:0},v={x:0,y:0},g=t.height*o.y,p=t.width*o.x;return!c&&i<=t.top+g?(h.y=j.Backward,v.y=r*Math.abs((t.top+g-i)/g)):!u&&s>=t.bottom-g&&(h.y=j.Forward,v.y=r*Math.abs((t.bottom-g-s)/g)),!f&&l>=t.right-p?(h.x=j.Forward,v.x=r*Math.abs((t.right-p-l)/p)):!d&&a<=t.left+p&&(h.x=j.Backward,v.x=r*Math.abs((t.left+p-a)/p)),{direction:h,speed:v}}function H(e){if(e===document.scrollingElement){const{innerWidth:e,innerHe
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 q(e){return e.reduce((e,t)=>(0,i.WQ)(e,Y(t)),b)}function J(e,t){if(void 0===t&&(t=z),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);I(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Q=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+F(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+K(t),0)}]];class V{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=B(t),r=q(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of Q)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Z{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 $(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}var ee,te;function ne(e){e.preventDefault()}function re(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"}(ee||(ee={})),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"}(te||(te={}));const oe={start:[te.Space,te.Enter],cancel:[te.Esc],end:[te.Space,te.Enter,te.Tab]},ie=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case te.Right:return{...n,x:n.x+25};case te.Left:return{...n,x:n.x-25};case te.Down:return{...n,y:n.y+25};case te.Up:return{...n,y:n.y-25}}};class ae{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 Z((0,i.TW)(t)),this.windowListeners=new Z((0,i.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ee.Resize,this.handleCancel),this.windowListeners.add(ee.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ee.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&J(n),t(b)}handleKeyDown(e){if((0,i.kx)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=oe,coordinateGetter:a=ie,scrollBehavior:l="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:c}=n.current,u=c?{x:c.left,y:c.top}:b;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=(0,i.Re)(d,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:a,isLeft:s,isBottom:c,maxScroll:u,minScroll:f}=X(n),h=H(n),v={x:Math.min(o===te.Right?h.right-h.width/2:h.right,Math.max(o===te.Right?h.left:h.left+h.width/2,d.x)),y:Math.min(o===te.Down?h.bottom-h.height/2:h.bottom,Math.max(o===te.Down?h.top:h.top+h.height/2,d.y))},g=o===te.Right&&!a||o===te.Left&&!s,p=o===te.Down&&!c||o===te.Up&&!i;if(g&&v.x!==d.x){const e=n.scrollLeft+t.x,i=o===te.Right&&e<=u.x||o===te.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:l});
1r.x=i?n.scrollLeft-e:o===te.Right?n.scrollLeft-u.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:l});break}if(p&&v.y!==d.y){const e=n.scrollTop+t.y,i=o===te.Down&&e<=u.y||o===te.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:l});r.y=i?n.scrollTop-e:o===te.Down?n.scrollTop-u.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:l});break}}this.handleMove(e,(0,i.WQ)((0,i.Re)(d,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 le(e){return Boolean(e&&"distance"in e)}function se(e){return Boolean(e&&"delay"in e)}ae.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=oe,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(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class ce{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,i.zk)(e);return e instanceof t?e:(0,i.TW)(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:a}=o;this.props=e,this.events=t,this.document=(0,i.TW)(a),this.documentListeners=new Z(this.document),this.listeners=new Z(n),this.windowListeners=new Z((0,i.zk)(a)),this.initialCoordinates=null!=(r=(0,i.e_)(o))?r:b,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(ee.Resize,this.handleCancel),this.windowListeners.add(ee.DragStart,ne),this.windowListeners.add(ee.VisibilityChange,this.handleCancel),this.windowListeners.add(ee.ContextMenu,ne),this.documentListeners.add(ee.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(se(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(le(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){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(ee.Click,re,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ee.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:a,options:{activationConstraint:l}}=o;if(!r)return;const s=null!=(t=(0,i.e_)(e))?t:b,c=(0,i.Re)(r,s);if(!n&&l){if(le(l)){if(null!=l.tolerance&&$(c,l.tolerance))return this.handleCancel();if($(c,l.distance))return this.handleStart()}return se(l)&&$(c,l.tolerance)?this.handleCancel():void this.handlePending(l,c)}e.cancelable&&e.preventDefault(),a(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===te.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ue={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class de extends ce{constructor(e){const{event:t}=e,n=(0,i.TW)(t.target);super(e,ue,n)}}de.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const fe={move:{name:"mousemove"},end:{name:"mouseup"}};var he;!function(e){e[e.RightClick=2]="RightClick"}(he||(he={}));class ve extends ce{constructor(e){super(e,fe,(0,i.TW)(e.event.target))}}ve.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==he.RightClick&&(null==r||r({event:n}),!0)}}];const ge={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class pe extends ce{constructor(e){super(e,ge)}static setup(){return window.addEventListener(ge.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ge.move.name,e)};function e(){}}}var be,me;pe.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(be||(be={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
1sedTreeOrder"}(me||(me={}));const ye={x:{[j.Backward]:!1,[j.Forward]:!1},y:{[j.Backward]:!1,[j.Forward]:!1}};var we,xe;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(we||(we={})),function(e){e.Optimized="optimized"}(xe||(xe={}));const Ce=new Map;function Ee(e,t){return(0,i.KG)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function De(e){let{callback:t,disabled:n}=e;const o=(0,i._q)(t),a=(0,r.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)},[n]);return(0,r.useEffect)(()=>()=>null==a?void 0:a.disconnect(),[a]),a}function Re(e){return new V(z(e),e)}function Se(e,t,n){void 0===t&&(t=Re);const[o,a]=(0,r.useState)(null);function l(){a(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 s=function(e){let{callback:t,disabled:n}=e;const o=(0,i._q)(t),a=(0,r.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)},[o,n]);return(0,r.useEffect)(()=>()=>null==a?void 0:a.disconnect(),[a]),a}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){l();break}}}}),c=De({callback:l});return(0,i.Es)(()=>{l(),e?(null==c||c.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==s||s.disconnect())},[e]),o}const Ne=[];function ke(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{n.current=null},t),(0,r.useEffect)(()=>{const t=e!==b;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,i.Re)(e,n.current):b}function Me(e){return(0,r.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])}const Oe=[];function Ae(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,i.sb)(t)?t:e}const Te=[{sensor:de,options:{}},{sensor:ae,options:{}}],Le={current:{}},ze={draggable:{measure:P},droppable:{measure:P,strategy:we.WhileDragging,frequency:xe.Optimized},dragOverlay:{measure:z}};class Pe 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}}const Be={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Pe,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:v},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ze,measureDroppableContainers:v,windowRect:null,measuringScheduled:!1},Ie={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:v,draggableNodes:new Map,over:null,measureDroppableContainers:v},We=(0,r.createContext)(Ie),Fe=(0,r.createContext)(Be);function Ke(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Pe}}}function Ye(e,t){switch(t.type){case h.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case h.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 h.DragEnd:case h.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case h.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Pe(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case h.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;
1const a=new Pe(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case h.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Pe(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function je(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:a}=(0,r.useContext)(We),l=(0,i.ZC)(o),s=(0,i.ZC)(null==n?void 0:n.id);return(0,r.useEffect)(()=>{if(!t&&!o&&l&&null!=s){if(!(0,i.kx)(l))return;if(document.activeElement===l.target)return;const e=a.get(s);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=(0,i.ag)(e);if(t){t.focus();break}}})}},[o,t,a,s,l]),null}function Ue(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}const Xe=(0,r.createContext)({...b,scaleX:1,scaleY:1});var Ge;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ge||(Ge={}));const _e=(0,r.memo)(function(e){var t,n,a,l;let{id:s,accessibility:u,autoScroll:d=!0,children:v,sensors:g=Te,collisionDetection:p=k,measuring:m,modifiers:y,...w}=e;const x=(0,r.useReducer)(Ye,void 0,Ke),[C,D]=x,[R,S]=function(){const[e]=(0,r.useState)(()=>new Set),t=(0,r.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,r.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]}(),[N,O]=(0,r.useState)(Ge.Uninitialized),T=N===Ge.Initialized,{draggable:{active:L,nodes:P,translate:F},droppable:{containers:K}}=C,X=null!=L?P.get(L):null,G=(0,r.useRef)({initial:null,translated:null}),H=(0,r.useMemo)(()=>{var e;return null!=L?{id:L,data:null!=(e=null==X?void 0:X.data)?e:Le,rect:G}:null},[L,X]),J=(0,r.useRef)(null),[Q,Z]=(0,r.useState)(null),[$,ee]=(0,r.useState)(null),te=(0,i.YN)(w,Object.values(w)),ne=(0,i.YG)("DndDescribedBy",s),re=(0,r.useMemo)(()=>K.getEnabled(),[K]),oe=(ie=m,(0,r.useMemo)(()=>({draggable:{...ze.draggable,...null==ie?void 0:ie.draggable},droppable:{...ze.droppable,...null==ie?void 0:ie.droppable},dragOverlay:{...ze.dragOverlay,...null==ie?void 0:ie.dragOverlay}}),[null==ie?void 0:ie.draggable,null==ie?void 0:ie.droppable,null==ie?void 0:ie.dragOverlay]));var ie;const{droppableRects:ae,measureDroppableContainers:le,measuringScheduled:se}=function(e,t){let{dragging:n,dependencies:o,config:a}=t;const[l,s]=(0,r.useState)(null),{frequency:c,measure:u,strategy:d}=a,f=(0,r.useRef)(e),h=function(){switch(d){case we.Always:return!1;case we.BeforeDragging:return n;default:return!n}}(),v=(0,i.YN)(h),g=(0,r.useCallback)(function(e){void 0===e&&(e=[]),v.current||s(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[v]),p=(0,r.useRef)(null),b=(0,i.KG)(t=>{if(h&&!n)return Ce;if(!t||t===Ce||f.current!==e||null!=l){const t=new Map;for(let n of e){if(!n)continue;if(l&&l.length>0&&!l.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new V(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,l,n,h,u]);return(0,r.useEffect)(()=>{f.current=e},[e]),(0,r.useEffect)(()=>{h||g()},[n,h]),(0,r.useEffect)(()=>{l&&l.length>0&&s(null)},[JSON.stringify(l)]),(0,r.useEffect)(()=>{h||"number"!=typeof c||null!==p.current||(p.current=setTimeout(()=>{g(),p.current=null},c))},[c,h,g,...o]),{droppableRects:b,measureDroppableContainers:g,measuringScheduled:null!=l}}(re,{dragging:T,dependencies:[F.x,F.y],config:oe.droppable}),ce=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,i.KG)(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(P,L),ue=(0,r.useMemo)(()=>$?(0,i.e_)($):null,[$]),de=function(){const e=!1===(null==Q?void 0:Q.autoScrollEnabled),t="object"==typeof d?!1===d.enabled:!1===d,n=T&&!e&&!t;return"object"==typeof d?{...d,enabled:n}:{enabled:n}}(),fe=function(e,t){return Ee(e,t)}(ce,oe.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:a=!0}=e;const l=(0,r.useRef)(!1),{x:s,y:c}="boolean"==typeof a?{x:a,y:a}:a;(0,i.Es)(()=>
1{if(!s&&!c||!t)return void(l.current=!1);if(l.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=M(n(e),o);if(s||(r.x=0),c||(r.y=0),l.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=I(e);t&&t.scrollBy({top:r.y,left:r.x})}},[t,s,c,o,n])}({activeNode:null!=L?P.get(L):null,config:de.layoutShiftCompensation,initialRect:fe,measure:oe.draggable.measure});const he=Se(ce,oe.draggable.measure,fe),ve=Se(ce?ce.parentElement:null),ge=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ce,collisionRect:null,collisions:null,droppableRects:ae,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:K,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),pe=K.getNodeFor(null==(t=ge.current.over)?void 0:t.id),xe=function(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),a=De({callback:(0,r.useCallback)(e=>{for(const{target:n}of e)if((0,i.sb)(n)){o(e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),l=(0,r.useCallback)(e=>{const n=Ae(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),o(n?t(n):null)},[t,a]),[s,c]=(0,i.lk)(l);return(0,r.useMemo)(()=>({nodeRef:s,rect:n,setRef:c}),[n,s,c])}({measure:oe.dragOverlay.measure}),Re=null!=(n=xe.nodeRef.current)?n:ce,Pe=T?null!=(a=xe.rect)?a:he:null,Be=Boolean(xe.nodeRef.current&&xe.rect),Ie=M(_e=Be?null:he,Ee(_e));var _e;const He=Me(Re?(0,i.zk)(Re):null),qe=function(e){const t=(0,r.useRef)(e),n=(0,i.KG)(n=>e?n&&n!==Ne&&e&&t.current&&e.parentNode===t.current.parentNode?n:B(e):Ne,[e]);return(0,r.useEffect)(()=>{t.current=e},[e]),n}(T?null!=pe?pe:ce:null),Je=function(e,t){void 0===t&&(t=z);const[n]=e,o=Me(n?(0,i.zk)(n):null),[a,l]=(0,r.useState)(Oe);function s(){l(()=>e.length?e.map(e=>U(e)?o:new V(t(e),e)):Oe)}const c=De({callback:s});return(0,i.Es)(()=>{null==c||c.disconnect(),s(),e.forEach(e=>null==c?void 0:c.observe(e))},[e]),a}(qe),Qe=Ue(y,{transform:{x:F.x-Ie.x,y:F.y-Ie.y,scaleX:1,scaleY:1},activatorEvent:$,active:H,activeNodeRect:he,containerNodeRect:ve,draggingNodeRect:Pe,over:ge.current.over,overlayNodeRect:xe.rect,scrollableAncestors:qe,scrollableAncestorRects:Je,windowRect:He}),Ve=ue?(0,i.WQ)(ue,F):null,Ze=function(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),a=(0,r.useCallback)(e=>{const t=W(e.target);t&&n(e=>e?(e.set(t,Y(t)),new Map(e)):null)},[]);return(0,r.useEffect)(()=>{const t=o.current;if(e!==t){r(t);const i=e.map(e=>{const t=W(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,Y(t)]):null}).filter(e=>null!=e);n(i.length?new Map(i):null),o.current=e}return()=>{r(e),r(t)};function r(e){e.forEach(e=>{const t=W(e);null==t||t.removeEventListener("scroll",a)})}},[a,e]),(0,r.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,i.WQ)(e,t),b):q(e):b,[e,t])}(qe),$e=ke(Ze),et=ke(Ze,[he]),tt=(0,i.WQ)(Qe,$e),nt=Pe?A(Pe,Qe):null,rt=H&&nt?p({active:H,collisionRect:nt,droppableRects:ae,droppableContainers:re,pointerCoordinates:Ve}):null,ot=E(rt,"id"),[it,at]=(0,r.useState)(null),lt=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Be?Qe:(0,i.WQ)(Qe,et),null!=(l=null==it?void 0:it.rect)?l:null,he),st=(0,r.useRef)(null),ct=(0,r.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==J.current)return;const i=P.get(J.current);if(!i)return;const a=e.nativeEvent,l=new n({active:J.current,activeNode:i,event:a,options:r,context:ge,onAbort(e){if(!P.get(e))return;const{onDragAbort:t}=te.current,n={id:e};null==t||t(n),R({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!P.get(e))return;const{onDragPending:o}=te.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==o||o(i),R({type:"onDragPending",event:i})},onStart(e){const t=J.current;if(null==t)return;const n=P.get(t);if(!n)return;const{onDragStart:r}=te.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:G}};(0,o.unstable_batchedUpdates)(()=>{null==r||r(i),O(Ge.Initializing),D({type:h.DragStart,initialCoordinates:e,active:t}),R({type:"onDragStart",event:i}),Z(st.current),ee(a)})},onMove(e){D({type:h.DragMove,coordinates:e})},onEnd:s(h.DragEnd),onCancel:s(h.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=ge.current;let l=null;if(t&&i){const{cancelDrop:o}=te.current;l={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===h.DragEnd&&"function"==typeof o&&await Promise.resolve(o(l))&&(e=h.DragCancel)}J.current=null,(0,o.unstable_batchedUpdates)(()=>{D({type:e}),O(Ge.Uninitialized),at(null),Z(null),ee(null),st.current=null;const t=e===h.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=te.current[t];null==e||e(l),R({type:t,event:l})}})}}st.current=l},[P]),ut=(0,r.useCallback)((e,t)=>(n,r)=>{const o=n.nativeEvent,i=P.get(r);if(null!==J.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},J.current=r,ct(n,t))},[P,ct]),dt=function(e,t){return(0,r.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])}(g,ut);!function(e){(0,r.useEffect)(()=>
1{if(!i.Sw)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(g),(0,i.Es)(()=>{he&&N===Ge.Initializing&&O(Ge.Initialized)},[he,N]),(0,r.useEffect)(()=>{const{onDragMove:e}=te.current,{active:t,activatorEvent:n,collisions:r,over:i}=ge.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:tt.x,y:tt.y},over:i};(0,o.unstable_batchedUpdates)(()=>{null==e||e(a),R({type:"onDragMove",event:a})})},[tt.x,tt.y]),(0,r.useEffect)(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=ge.current;if(!e||null==J.current||!t||!i)return;const{onDragOver:a}=te.current,l=r.get(ot),s=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,o.unstable_batchedUpdates)(()=>{at(s),null==a||a(c),R({type:"onDragOver",event:c})})},[ot]),(0,i.Es)(()=>{ge.current={activatorEvent:$,active:H,activeNode:ce,collisionRect:nt,collisions:rt,droppableRects:ae,draggableNodes:P,draggingNode:Re,draggingNodeRect:Pe,droppableContainers:K,over:it,scrollableAncestors:qe,scrollAdjustedTranslate:tt},G.current={initial:Pe,translated:nt}},[H,ce,rt,nt,P,Re,Pe,ae,K,it,qe,tt]),function(e){let{acceleration:t,activator:n=be.Pointer,canScroll:o,draggingRect:a,enabled:l,interval:s=5,order:c=me.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:f,delta:h,threshold:v}=e;const g=function(e){let{delta:t,disabled:n}=e;const r=(0,i.ZC)(t);return(0,i.KG)(e=>{if(n||!r||!e)return ye;const o=Math.sign(t.x-r.x),i=Math.sign(t.y-r.y);return{x:{[j.Backward]:e.x[j.Backward]||-1===o,[j.Forward]:e.x[j.Forward]||1===o},y:{[j.Backward]:e.y[j.Backward]||-1===i,[j.Forward]:e.y[j.Forward]||1===i}}},[n,t,r])}({delta:h,disabled:!l}),[p,b]=(0,i.$$)(),m=(0,r.useRef)({x:0,y:0}),y=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)(()=>{switch(n){case be.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case be.DraggableRect:return a}},[n,a,u]),x=(0,r.useRef)(null),C=(0,r.useCallback)(()=>{const e=x.current;if(!e)return;const t=m.current.x*y.current.x,n=m.current.y*y.current.y;e.scrollBy(t,n)},[]),E=(0,r.useMemo)(()=>c===me.TreeOrder?[...d].reverse():d,[c,d]);(0,r.useEffect)(()=>{if(l&&d.length&&w){for(const e of E){if(!1===(null==o?void 0:o(e)))continue;const n=d.indexOf(e),r=f[n];if(!r)continue;const{direction:i,speed:a}=_(e,r,w,t,v);for(const e of["x","y"])g[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return b(),x.current=e,p(C,s),m.current=a,void(y.current=i)}m.current={x:0,y:0},y.current={x:0,y:0},b()}else b()},[t,C,o,b,l,s,JSON.stringify(w),JSON.stringify(g),p,d,E,f,JSON.stringify(v)])}({...de,delta:F,draggingRect:nt,pointerCoordinates:Ve,scrollableAncestors:qe,scrollableAncestorRects:Je});
1const ft=(0,r.useMemo)(()=>({active:H,activeNode:ce,activeNodeRect:he,activatorEvent:$,collisions:rt,containerNodeRect:ve,dragOverlay:xe,draggableNodes:P,droppableContainers:K,droppableRects:ae,over:it,measureDroppableContainers:le,scrollableAncestors:qe,scrollableAncestorRects:Je,measuringConfiguration:oe,measuringScheduled:se,windowRect:He}),[H,ce,he,$,rt,ve,xe,P,K,ae,it,le,qe,Je,oe,se,He]),ht=(0,r.useMemo)(()=>({activatorEvent:$,activators:dt,active:H,activeNodeRect:he,ariaDescribedById:{draggable:ne},dispatch:D,draggableNodes:P,over:it,measureDroppableContainers:le}),[$,dt,H,he,D,ne,P,it,le]);return r.createElement(c.Provider,{value:S},r.createElement(We.Provider,{value:ht},r.createElement(Fe.Provider,{value:ft},r.createElement(Xe.Provider,{value:lt},v)),r.createElement(je,{disabled:!1===(null==u?void 0:u.restoreFocus)})),r.createElement(f,{...u,hiddenTextDescribedById:ne}))}),He=(0,r.createContext)(null),qe="button";function Je(e){let{id:t,data:n,disabled:o=!1,attributes:a}=e;const l=(0,i.YG)("Draggable"),{activators:s,activatorEvent:c,active:u,activeNodeRect:d,ariaDescribedById:f,draggableNodes:h,over:v}=(0,r.useContext)(We),{role:g=qe,roleDescription:p="draggable",tabIndex:b=0}=null!=a?a:{},m=(null==u?void 0:u.id)===t,y=(0,r.useContext)(m?Xe:He),[w,x]=(0,i.lk)(),[C,E]=(0,i.lk)(),D=function(e,t){return(0,r.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e},{}),[e,t])}(s,t),R=(0,i.YN)(n);return(0,i.Es)(()=>(h.set(t,{id:t,key:l,node:w,activatorNode:C,data:R}),()=>{const e=h.get(t);e&&e.key===l&&h.delete(t)}),[h,t]),{active:u,activatorEvent:c,activeNodeRect:d,attributes:(0,r.useMemo)(()=>({role:g,tabIndex:b,"aria-disabled":o,"aria-pressed":!(!m||g!==qe)||void 0,"aria-roledescription":p,"aria-describedby":f.draggable}),[o,g,b,m,p,f.draggable]),isDragging:m,listeners:o?void 0:D,node:w,over:v,setNodeRef:x,setActivatorNodeRef:E,transform:y}}function Qe(){return(0,r.useContext)(Fe)}const Ve={timeout:25};function Ze(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:a}=e;const l=(0,i.YG)("Droppable"),{active:s,dispatch:c,over:u,measureDroppableContainers:d}=(0,r.useContext)(We),f=(0,r.useRef)({disabled:n}),v=(0,r.useRef)(!1),g=(0,r.useRef)(null),p=(0,r.useRef)(null),{disabled:b,updateMeasurementsFor:m,timeout:y}={...Ve,...a},w=(0,i.YN)(null!=m?m:o),x=De({callback:(0,r.useCallback)(()=>{v.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{d(Array.isArray(w.current)?w.current:[w.current]),p.current=null},y)):v.current=!0},[y]),disabled:b||!s}),C=(0,r.useCallback)((e,t)=>{x&&(t&&(x.unobserve(t),v.current=!1),e&&x.observe(e))},[x]),[E,D]=(0,i.lk)(C),R=(0,i.YN)(t);return(0,r.useEffect)(()=>{x&&E.current&&(x.disconnect(),v.current=!1,x.observe(E.current))},[E,x]),(0,r.useEffect)(()=>(c({type:h.RegisterDroppable,element:{id:o,key:l,disabled:n,node:E,rect:g,data:R}}),()=>c({type:h.UnregisterDroppable,key:l,id:o})),[o]),(0,r.useEffect)(()=>{n!==f.current.disabled&&(c({type:h.SetDroppableDisabled,id:o,key:l,disabled:n}),f.current.disabled=n)},[o,l,n,c]),{active:s,rect:g,isOver:(null==u?void 0:u.id)===o,node:E,over:u,setNodeRef:D}}function $e(e){let{animation:t,children:n}=e;const[o,a]=(0,r.useState)(null),[l,s]=(0,r.useState)(null),c=(0,i.ZC)(n);return n||o||!c||a(c),(0,i.Es)(()=>{if(!l)return;const e=null==o?void 0:o.key,n=null==o?void 0:o.props.id;null!=e&&null!=n?Promise.resolve(t(n,l)).then(()=>{a(null)}):a(null)},[t,o,l]),r.createElement(r.Fragment,null,n,o?(0,r.cloneElement)(o,{ref:s}):null)}const et={x:0,y:0,scaleX:1,scaleY:1};function tt(e){let{children:t}=e;return r.createElement(We.Provider,{value:Ie},r.createElement(Xe.Provider,{value:et},t))}const nt={position:"fixed",touchAction:"none"},rt=e=>(0,i.kx)(e)?"transform 250ms ease":void 0,ot=(0,r.forwardRef)((e,t)=>{let{as:n,activatorEvent:o,adjustScale:a,children:l,className:s,rect:c,style:u,transform:d,transition:f=rt}=e;if(!c)return null;const h=a?d:{...d,scaleX:1,scaleY:1},v={...nt,width:c.width,height:c.height,top:c.top,left:c.left,transform:i.Ks.Transform.toString(h),transformOrigin:a&&o?y(o,c):void 0,transition:"function"==typeof f?f(o):f,...u};return r.createElement(n,{className:s,style:v,ref:t},l)}),it=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:i,className:a}=e;if(null!=i&&i.active)for(const[e,t]of Object.entries(i.active))void 0!==t&&(o[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(const[e,t]of Object.entries(i.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(o))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},at={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:i.Ks.Transform.toString(t)},{transform:i.Ks.Transform.toString(n)}]},sideEffects:it({styles:{active:{opacity:"0"}}})};let lt=0;function st(e){return(0,r.useMemo)(()=>
1{if(null!=e)return lt++,lt},[e])}const ct=r.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:a,transition:l,modifiers:s,wrapperElement:c="div",className:u,zIndex:d=999}=e;const{activatorEvent:f,active:h,activeNodeRect:v,containerNodeRect:g,draggableNodes:p,droppableContainers:b,dragOverlay:m,over:y,measuringConfiguration:w,scrollableAncestors:x,scrollableAncestorRects:C,windowRect:E}=Qe(),D=(0,r.useContext)(Xe),R=st(null==h?void 0:h.id),S=Ue(s,{activatorEvent:f,active:h,activeNodeRect:v,containerNodeRect:g,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:x,scrollableAncestorRects:C,transform:D,windowRect:E}),N=Ee(v),k=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return(0,i._q)((e,a)=>{if(null===t)return;const l=n.get(e);if(!l)return;const s=l.node.current;if(!s)return;const c=Ae(a);if(!c)return;const{transform:u}=(0,i.zk)(a).getComputedStyle(a),d=T(u);if(!d)return;const f="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...at,...e};return e=>{let{active:i,dragOverlay:a,transform:l,...s}=e;if(!t)return;const c=a.rect.left-i.rect.left,u=a.rect.top-i.rect.top,d={scaleX:1!==l.scaleX?i.rect.width*l.scaleX/a.rect.width:1,scaleY:1!==l.scaleY?i.rect.height*l.scaleY/a.rect.height:1},f={x:l.x-c,y:l.y-u,...d},h=o({...s,active:i,dragOverlay:a,transform:{initial:l,final:f}}),[v]=h,g=h[h.length-1];if(JSON.stringify(v)===JSON.stringify(g))return;const p=null==r?void 0:r({active:i,dragOverlay:a,...s}),b=a.node.animate(h,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{b.onfinish=()=>{null==p||p(),e()}})}}(t);return J(s,o.draggable.measure),f({active:{id:e,data:l.data,node:s,rect:o.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:o.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:o,transform:d})})}({config:o,draggableNodes:p,droppableContainers:b,measuringConfiguration:w}),M=N?m.setRef:void 0;return r.createElement(tt,null,r.createElement($e,{animation:k},h&&R?r.createElement(ot,{key:R,id:h.id,ref:M,as:c,activatorEvent:f,adjustScale:t,className:u,transition:l,rect:N,style:{zIndex:d,...a},transform:S},n):null))})}}]);

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.