summaryrefslogtreecommitdiffstats
path: root/src/web/gui/v2/6161.5bd5b36302cc78e759b2.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/gui/v2/6161.5bd5b36302cc78e759b2.js')
-rw-r--r--src/web/gui/v2/6161.5bd5b36302cc78e759b2.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/web/gui/v2/6161.5bd5b36302cc78e759b2.js b/src/web/gui/v2/6161.5bd5b36302cc78e759b2.js
deleted file mode 100644
index 9ba7b85fd3..0000000000
--- a/src/web/gui/v2/6161.5bd5b36302cc78e759b2.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0b839cc8-ce46-4a8b-8665-af1d0ebe2ba7",e._sentryDebugIdIdentifier="sentry-dbid-0b839cc8-ce46-4a8b-8665-af1d0ebe2ba7")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"67fcafa0e89723987481f6de299b5bd1fcd6618a"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[6161],{51468:function(e,t,n){n.d(t,{LB:function(){return qe},y9:function(){return dt},g4:function(){return Q},uN:function(){return ye},MA:function(){return fe},LO:function(){return he},pE:function(){return x},Ai:function(){return at},VK:function(){return A},Cj:function(){return Ke},IJ:function(){return c},O1:function(){return Ye},Zj:function(){return Qe},VT:function(){return g},Dy:function(){return m}});var r=n(67294),o=n(73935),i=n(40198);const a={display:"none"};function s(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:a},n)}function l(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return r.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},n)}const u=(0,r.createContext)(null);function c(e){const t=(0,r.useContext)(u);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}const d={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 "},f={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 p(e){let{announcements:t=f,container:n,hiddenTextDescribedById:a,screenReaderInstructions:u=d}=e;const{announce:p,announcement:h}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),v=(0,i.Ld)("DndLiveRegion"),[g,m]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{m(!0)}),[]),c((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;p(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&p(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;p(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;p(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;p(t.onDragCancel({active:n,over:r}))}})),[p,t])),!g)return null;const b=r.createElement(r.Fragment,null,r.createElement(s,{id:a,value:u.draggable}),r.createElement(l,{id:v,announcement:h}));return n?(0,o.createPortal)(b,n):b}var h;function v(){}function g(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function m(){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 y(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function w(e,t){const n=(0,i.DC)(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function O(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function E(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function C(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 x=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=C(t,t.left,t.top),i=[];for(const a of r){const{id:e}=a,t=n.get(e);if(t){const n=y(C(t),o);i.push({id:e,data:{droppableContainer:a,value:n}})}}return i.sort(O)};function R(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}const S=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=R(r,t);n>0&&o.push({id:e,data:{droppableContainer:i,value:n}})}}return o.sort(E)};function D(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:b}function I(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 M=I(1);function L(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 T={ignoreTransform:!1};function A(e,t){void 0===t&&(t=T);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,i.Jj)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=L(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,l=e.left-a-(1-o)*parseFloat(n),u=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(n,t,r))}const{top:r,left:o,width:a,height:s,bottom:l,right:u}=n;return{top:r,left:o,width:a,height:s,bottom:l,right:u}}function k(e){return A(e,{ignoreTransform:!0})}function P(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,i.qk)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,i.Re)(o)||(0,i.vZ)(o))return n;if(n.includes(o))return n;const a=(0,i.Jj)(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=(0,i.Jj)(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.Jj)(e).getComputedStyle(e)),"fixed"===t.position}(o,a)?n:r(o.parentNode)}(e):n}function N(e){const[t]=P(e,1);return null!=t?t:null}function F(e){return i.Nq&&e?(0,i.FJ)(e)?e:(0,i.UG)(e)?(0,i.qk)(e)||e===(0,i.r3)(e).scrollingElement?window:(0,i.Re)(e)?e:null:null:null}function V(e){return(0,i.FJ)(e)?e.scrollX:e.scrollLeft}function Z(e){return(0,i.FJ)(e)?e.scrollY:e.scrollTop}function j(e){return{x:V(e),y:Z(e)}}var B;function U(e){return!(!i.Nq||!e)&&e===document.scrollingElement}function H(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"}(B||(B={}));const z={x:.2,y:.2};function _(e,t,n,r,o){let{top:i,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===o&&(o=z);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=H(e),p={x:0,y:0},h={x:0,y:0},v=t.height*o.y,g=t.width*o.x;return!u&&i<=t.top+v?(p.y=B.Backward,h.y=r*Math.abs((t.top+v-i)/v)):!c&&l>=t.bottom-v&&(p.y=B.Forward,h.y=r*Math.abs((t.bottom-v-l)/v)),!f&&s>=t.right-g?(p.x=B.Forward,h.x=r*Math.abs((t.right-g-s)/g)):!d&&a<=t.left+g&&(p.x=B.Backward,h.x=r*Math.abs((t.left+g-a)/g)),{direction:p,speed:h}}function q(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight: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 W(e){return e.reduce(((e,t)=>(0,i.IH)(e,j(t))),b)}function J(e,t){if(void 0===t&&(t=A),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);N(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const X=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+V(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+Z(t)),0)}]];class Y{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=P(t),r=W(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[o,i,a]of X)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})}}class K{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 G(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 $,Q;function ee(e){e.preventDefault()}function te(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"}($||($={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(Q||(Q={}));const ne={start:[Q.Space,Q.Enter],cancel:[Q.Esc],end:[Q.Space,Q.Enter]},re=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Q.Right:return{...n,x:n.x+25};case Q.Left:return{...n,x:n.x-25};case Q.Down:return{...n,y:n.y+25};case Q.Up:return{...n,y:n.y-25}}};class oe{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 K((0,i.r3)(t)),this.windowListeners=new K((0,i.Jj)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add($.Resize,this.handleCancel),this.windowListeners.add($.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add($.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&J(n),t(b)}handleKeyDown(e){if((0,i.vd)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=ne,coordinateGetter:a=re,scrollBehavior:s="smooth"}=r,{code:l}=e;if(o.end.includes(l))return void this.handleEnd(e);if(o.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:u}=n.current,c=u?{x:u.left,y:u.top}:b;this.referenceCoordinates||(this.referenceCoordinates=c);const d=a(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=(0,i.$X)(d,c),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:a,isLeft:l,isBottom:u,maxScroll:c,minScroll:f}=H(n),p=q(n),h={x:Math.min(o===Q.Right?p.right-p.width/2:p.right,Math.max(o===Q.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(o===Q.Down?p.bottom-p.height/2:p.bottom,Math.max(o===Q.Down?p.top:p.top+p.height/2,d.y))},v=o===Q.Right&&!a||o===Q.Left&&!l,g=o===Q.Down&&!u||o===Q.Up&&!i;if(v&&h.x!==d.x){const e=n.scrollLeft+t.x,i=o===Q.Right&&e<=c.x||o===Q.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:s});r.x=i?n.scrollLeft-e:o===Q.Right?n.scrollLeft-c.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break}if(g&&h.y!==d.y){const e=n.scrollTop+t.y,i=o===Q.Down&&e<=c.y||o===Q.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:s});r.y=i?n.scrollTop-e:o===Q.Down?n.scrollTop-c.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break}}this.handleMove(e,(0,i.IH)((0,i.$X)(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 ie(e){return Boolean(e&&"distance"in e)}function ae(e){return Boolean(e&&"delay"in e)}oe.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ne,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 se{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,i.Jj)(e);return e instanceof t?e:(0,i.r3)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:a}=o;this.props=e,this.events=t,this.document=(0,i.r3)(a),this.documentListeners=new K(this.document),this.listeners=new K(n),this.windowListeners=new K((0,i.Jj)(a)),this.initialCoordinates=null!=(r=(0,i.DC)(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),this.windowListeners.add($.Resize,this.handleCancel),this.windowListeners.add($.DragStart,ee),this.windowListeners.add($.VisibilityChange,this.handleCancel),this.windowListeners.add($.ContextMenu,ee),this.documentListeners.add($.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 void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(ie(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add($.Click,te,{capture:!0}),this.removeTextSelection(),this.documentListeners.add($.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:a,options:{activationConstraint:s}}=o;if(!r)return;const l=null!=(t=(0,i.DC)(e))?t:b,u=(0,i.$X)(r,l);if(!n&&s){if(ie(s)){if(null!=s.tolerance&&G(u,s.tolerance))return this.handleCancel();if(G(u,s.distance))return this.handleStart()}return ae(s)&&G(u,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),a(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===Q.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const le={move:{name:"pointermove"},end:{name:"pointerup"}};class ue extends se{constructor(e){const{event:t}=e,n=(0,i.r3)(t.target);super(e,le,n)}}ue.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 ce={move:{name:"mousemove"},end:{name:"mouseup"}};var de;!function(e){e[e.RightClick=2]="RightClick"}(de||(de={}));class fe extends se{constructor(e){super(e,ce,(0,i.r3)(e.event.target))}}fe.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==de.RightClick&&(null==r||r({event:n}),!0)}}];const pe={move:{name:"touchmove"},end:{name:"touchend"}};class he extends se{constructor(e){super(e,pe)}static setup(){return window.addEventListener(pe.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(pe.move.name,e)};function e(){}}}var ve,ge;function me(e){let{acceleration:t,activator:n=ve.Pointer,canScroll:o,draggingRect:a,enabled:s,interval:l=5,order:u=ge.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:f,delta:p,threshold:h}=e;const v=function(e){let{delta:t,disabled:n}=e;const r=(0,i.D9)(t);return(0,i.Gj)((e=>{if(n||!r||!e)return be;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[B.Backward]:e.x[B.Backward]||-1===o.x,[B.Forward]:e.x[B.Forward]||1===o.x},y:{[B.Backward]:e.y[B.Backward]||-1===o.y,[B.Forward]:e.y[B.Forward]||1===o.y}}}),[n,t,r])}({delta:p,disabled:!s}),[g,m]=(0,i.Yz)(),b=(0,r.useRef)({x:0,y:0}),y=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case ve.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case ve.DraggableRect:return a}}),[n,a,c]),O=(0,r.useRef)(null),E=(0,r.useCallback)((()=>{const e=O.current;if(!e)return;const t=b.current.x*y.current.x,n=b.current.y*y.current.y;e.scrollBy(t,n)}),[]),C=(0,r.useMemo)((()=>u===ge.TreeOrder?[...d].reverse():d),[u,d]);(0,r.useEffect)((()=>{if(s&&d.length&&w){for(const e of C){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,h);for(const e of["x","y"])v[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return m(),O.current=e,g(E,l),b.current=a,void(y.current=i)}b.current={x:0,y:0},y.current={x:0,y:0},m()}else m()}),[t,E,o,m,s,l,JSON.stringify(w),JSON.stringify(v),g,d,C,f,JSON.stringify(h)])}he.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"}(ve||(ve={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(ge||(ge={}));const be={x:{[B.Backward]:!1,[B.Forward]:!1},y:{[B.Backward]:!1,[B.Forward]:!1}};var ye,we;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(ye||(ye={})),function(e){e.Optimized="optimized"}(we||(we={}));const Oe=new Map;function Ee(e,t){return(0,i.Gj)((n=>e?n||("function"===typeof t?t(e):e):null),[t,e])}function Ce(e){let{callback:t,disabled:n}=e;const o=(0,i.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"===typeof window||"undefined"===typeof 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 xe(e){return new Y(A(e),e)}function Re(e,t,n){void 0===t&&(t=xe);const[o,a]=(0,r.useReducer)((function(r){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);if(JSON.stringify(r)===JSON.stringify(i))return r;return i}),null),s=function(e){let{callback:t,disabled:n}=e;const o=(0,i.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"===typeof window||"undefined"===typeof 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)){a();break}}}}),l=Ce({callback:a});return(0,i.LI)((()=>{a(),e?(null==l||l.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==s||s.disconnect())}),[e]),o}const Se=[];function De(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.$X)(e,n.current):b}function Ie(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 Me=[];function Le(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,i.Re)(t)?t:e}const Te=[{sensor:ue,options:{}},{sensor:oe,options:{}}],Ae={current:{}},ke={draggable:{measure:k},droppable:{measure:k,strategy:ye.WhileDragging,frequency:we.Optimized},dragOverlay:{measure:A}};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 Ne={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:ke,measureDroppableContainers:v,windowRect:null,measuringScheduled:!1},Fe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:v,draggableNodes:new Map,over:null,measureDroppableContainers:v},Ve=(0,r.createContext)(Fe),Ze=(0,r.createContext)(Ne);function je(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Pe}}}function Be(e,t){switch(t.type){case h.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case h.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;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;const 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 Ue(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:a}=(0,r.useContext)(Ve),s=(0,i.D9)(o),l=(0,i.D9)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!o&&s&&null!=l){if(!(0,i.vd)(s))return;if(document.activeElement===s.target)return;const e=a.get(l);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.so)(e);if(t){t.focus();break}}}))}}),[o,t,a,l,s]),null}function He(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const ze=(0,r.createContext)({...b,scaleX:1,scaleY:1});var _e;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(_e||(_e={}));const qe=(0,r.memo)((function(e){var t,n,a,s;let{id:l,accessibility:c,autoScroll:d=!0,children:f,sensors:v=Te,collisionDetection:g=S,measuring:m,modifiers:y,...w}=e;const O=(0,r.useReducer)(Be,void 0,je),[E,C]=O,[x,R]=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]}(),[I,L]=(0,r.useState)(_e.Uninitialized),T=I===_e.Initialized,{draggable:{active:k,nodes:V,translate:Z},droppable:{containers:B}}=E,H=k?V.get(k):null,z=(0,r.useRef)({initial:null,translated:null}),_=(0,r.useMemo)((()=>{var e;return null!=k?{id:k,data:null!=(e=null==H?void 0:H.data)?e:Ae,rect:z}:null}),[k,H]),q=(0,r.useRef)(null),[J,X]=(0,r.useState)(null),[K,G]=(0,r.useState)(null),$=(0,i.Ey)(w,Object.values(w)),Q=(0,i.Ld)("DndDescribedBy",l),ee=(0,r.useMemo)((()=>B.getEnabled()),[B]),te=(ne=m,(0,r.useMemo)((()=>({draggable:{...ke.draggable,...null==ne?void 0:ne.draggable},droppable:{...ke.droppable,...null==ne?void 0:ne.droppable},dragOverlay:{...ke.dragOverlay,...null==ne?void 0:ne.dragOverlay}})),[null==ne?void 0:ne.draggable,null==ne?void 0:ne.droppable,null==ne?void 0:ne.dragOverlay]));var ne;const{droppableRects:re,measureDroppableContainers:oe,measuringScheduled:ie}=function(e,t){let{dragging:n,dependencies:o,config:a}=t;const[s,l]=(0,r.useState)(null),{frequency:u,measure:c,strategy:d}=a,f=(0,r.useRef)(e),p=function(){switch(d){case ye.Always:return!1;case ye.BeforeDragging:return n;default:return!n}}(),h=(0,i.Ey)(p),v=(0,r.useCallback)((function(e){void 0===e&&(e=[]),h.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[h]),g=(0,r.useRef)(null),m=(0,i.Gj)((t=>{if(p&&!n)return Oe;if(!t||t===Oe||f.current!==e||null!=s){const t=new Map;for(let n of e){if(!n)continue;if(s&&s.length>0&&!s.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new Y(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,s,n,p,c]);return(0,r.useEffect)((()=>{f.current=e}),[e]),(0,r.useEffect)((()=>{p||v()}),[n,p]),(0,r.useEffect)((()=>{s&&s.length>0&&l(null)}),[JSON.stringify(s)]),(0,r.useEffect)((()=>{p||"number"!==typeof u||null!==g.current||(g.current=setTimeout((()=>{v(),g.current=null}),u))}),[u,p,v,...o]),{droppableRects:m,measureDroppableContainers:v,measuringScheduled:null!=s}}(ee,{dragging:T,dependencies:[Z.x,Z.y],config:te.droppable}),ae=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,i.Gj)((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(V,k),se=(0,r.useMemo)((()=>K?(0,i.DC)(K):null),[K]),le=function(){const e=!1===(null==J?void 0:J.autoScrollEnabled),t="object"===typeof d?!1===d.enabled:!1===d,n=T&&!e&&!t;if("object"===typeof d)return{...d,enabled:n};return{enabled:n}}(),ue=function(e,t){return Ee(e,t)}(ae,te.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:a=!0}=e;const s=(0,r.useRef)(!1),{x:l,y:u}="boolean"===typeof a?{x:a,y:a}:a;(0,i.LI)((()=>{if(!l&&!u||!t)return void(s.current=!1);if(s.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=D(n(e),o);if(l||(r.x=0),u||(r.y=0),s.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=N(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,l,u,o,n])}({activeNode:k?V.get(k):null,config:le.layoutShiftCompensation,initialRect:ue,measure:te.draggable.measure});const ce=Re(ae,te.draggable.measure,ue),de=Re(ae?ae.parentElement:null),fe=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ae,collisionRect:null,collisions:null,droppableRects:re,draggableNodes:V,draggingNode:null,draggingNodeRect:null,droppableContainers:B,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),pe=B.getNodeFor(null==(t=fe.current.over)?void 0:t.id),he=function(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),a=Ce({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,i.Re)(n)){o((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),s=(0,r.useCallback)((e=>{const n=Le(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),o(n?t(n):null)}),[t,a]),[l,u]=(0,i.wm)(s);return(0,r.useMemo)((()=>({nodeRef:l,rect:n,setRef:u})),[n,l,u])}({measure:te.dragOverlay.measure}),ve=null!=(n=he.nodeRef.current)?n:ae,ge=T?null!=(a=he.rect)?a:ce:null,be=Boolean(he.nodeRef.current&&he.rect),we=D(xe=be?null:ce,Ee(xe));var xe;const Pe=Ie(ve?(0,i.Jj)(ve):null),Ne=function(e){const t=(0,r.useRef)(e),n=(0,i.Gj)((n=>e?n&&n!==Se&&e&&t.current&&e.parentNode===t.current.parentNode?n:P(e):Se),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(T?null!=pe?pe:ae:null),Fe=function(e,t){void 0===t&&(t=A);const[n]=e,o=Ie(n?(0,i.Jj)(n):null),[a,s]=(0,r.useReducer)((function(){return e.length?e.map((e=>U(e)?o:new Y(t(e),e))):Me}),Me),l=Ce({callback:s});return e.length>0&&a===Me&&s(),(0,i.LI)((()=>{e.length?e.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),s())}),[e]),a}(Ne),qe=He(y,{transform:{x:Z.x-we.x,y:Z.y-we.y,scaleX:1,scaleY:1},activatorEvent:K,active:_,activeNodeRect:ce,containerNodeRect:de,draggingNodeRect:ge,over:fe.current.over,overlayNodeRect:he.rect,scrollableAncestors:Ne,scrollableAncestorRects:Fe,windowRect:Pe}),We=se?(0,i.IH)(se,Z):null,Je=function(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),a=(0,r.useCallback)((e=>{const t=F(e.target);t&&n((e=>e?(e.set(t,j(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=F(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,j(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=F(e);null==t||t.removeEventListener("scroll",a)}))}}),[a,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,i.IH)(e,t)),b):W(e):b),[e,t])}(Ne),Xe=De(Je),Ye=De(Je,[ce]),Ke=(0,i.IH)(qe,Xe),Ge=ge?M(ge,qe):null,$e=_&&Ge?g({active:_,collisionRect:Ge,droppableRects:re,droppableContainers:ee,pointerCoordinates:We}):null,Qe=function(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}($e,"id"),[et,tt]=(0,r.useState)(null),nt=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.IH)(qe,Ye),null!=(s=null==et?void 0:et.rect)?s:null,ce),rt=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==q.current)return;const i=V.get(q.current);if(!i)return;const a=e.nativeEvent,s=new n({active:q.current,activeNode:i,event:a,options:r,context:fe,onStart(e){const t=q.current;if(null==t)return;const n=V.get(t);if(!n)return;const{onDragStart:r}=$.current,i={active:{id:t,data:n.data,rect:z}};(0,o.unstable_batchedUpdates)((()=>{null==r||r(i),L(_e.Initializing),C({type:h.DragStart,initialCoordinates:e,active:t}),x({type:"onDragStart",event:i})}))},onMove(e){C({type:h.DragMove,coordinates:e})},onEnd:l(h.DragEnd),onCancel:l(h.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=fe.current;let s=null;if(t&&i){const{cancelDrop:o}=$.current;if(s={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===h.DragEnd&&"function"===typeof o){await Promise.resolve(o(s))&&(e=h.DragCancel)}}q.current=null,(0,o.unstable_batchedUpdates)((()=>{C({type:e}),L(_e.Uninitialized),tt(null),X(null),G(null);const t=e===h.DragEnd?"onDragEnd":"onDragCancel";if(s){const e=$.current[t];null==e||e(s),x({type:t,event:s})}}))}}(0,o.unstable_batchedUpdates)((()=>{X(s),G(e.nativeEvent)}))}),[V]),ot=(0,r.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=V.get(r);if(null!==q.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},q.current=r,rt(n,t))}),[V,rt]),it=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])}(v,ot);!function(e){(0,r.useEffect)((()=>{if(!i.Nq)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})))}(v),(0,i.LI)((()=>{ce&&I===_e.Initializing&&L(_e.Initialized)}),[ce,I]),(0,r.useEffect)((()=>{const{onDragMove:e}=$.current,{active:t,activatorEvent:n,collisions:r,over:i}=fe.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:Ke.x,y:Ke.y},over:i};(0,o.unstable_batchedUpdates)((()=>{null==e||e(a),x({type:"onDragMove",event:a})}))}),[Ke.x,Ke.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=fe.current;if(!e||null==q.current||!t||!i)return;const{onDragOver:a}=$.current,s=r.get(Qe),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,u={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:l};(0,o.unstable_batchedUpdates)((()=>{tt(l),null==a||a(u),x({type:"onDragOver",event:u})}))}),[Qe]),(0,i.LI)((()=>{fe.current={activatorEvent:K,active:_,activeNode:ae,collisionRect:Ge,collisions:$e,droppableRects:re,draggableNodes:V,draggingNode:ve,draggingNodeRect:ge,droppableContainers:B,over:et,scrollableAncestors:Ne,scrollAdjustedTranslate:Ke},z.current={initial:ge,translated:Ge}}),[_,ae,$e,Ge,V,ve,ge,re,B,et,Ne,Ke]),me({...le,delta:Z,draggingRect:Ge,pointerCoordinates:We,scrollableAncestors:Ne,scrollableAncestorRects:Fe});const at=(0,r.useMemo)((()=>({active:_,activeNode:ae,activeNodeRect:ce,activatorEvent:K,collisions:$e,containerNodeRect:de,dragOverlay:he,draggableNodes:V,droppableContainers:B,droppableRects:re,over:et,measureDroppableContainers:oe,scrollableAncestors:Ne,scrollableAncestorRects:Fe,measuringConfiguration:te,measuringScheduled:ie,windowRect:Pe})),[_,ae,ce,K,$e,de,he,V,B,re,et,oe,Ne,Fe,te,ie,Pe]),st=(0,r.useMemo)((()=>({activatorEvent:K,activators:it,active:_,activeNodeRect:ce,ariaDescribedById:{draggable:Q},dispatch:C,draggableNodes:V,over:et,measureDroppableContainers:oe})),[K,it,_,ce,C,Q,V,et,oe]);return r.createElement(u.Provider,{value:R},r.createElement(Ve.Provider,{value:st},r.createElement(Ze.Provider,{value:at},r.createElement(ze.Provider,{value:nt},f)),r.createElement(Ue,{disabled:!1===(null==c?void 0:c.restoreFocus)})),r.createElement(p,{...c,hiddenTextDescribedById:Q}))})),We=(0,r.createContext)(null),Je="button",Xe="Droppable";function Ye(e){let{id:t,data:n,disabled:o=!1,attributes:a}=e;const s=(0,i.Ld)(Xe),{activators:l,activatorEvent:u,active:c,activeNodeRect:d,ariaDescribedById:f,draggableNodes:p,over:h}=(0,r.useContext)(Ve),{role:v=Je,roleDescription:g="draggable",tabIndex:m=0}=null!=a?a:{},b=(null==c?void 0:c.id)===t,y=(0,r.useContext)(b?ze:We),[w,O]=(0,i.wm)(),[E,C]=(0,i.wm)(),x=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])}(l,t),R=(0,i.Ey)(n);(0,i.LI)((()=>(p.set(t,{id:t,key:s,node:w,activatorNode:E,data:R}),()=>{const e=p.get(t);e&&e.key===s&&p.delete(t)})),[p,t]);return{active:c,activatorEvent:u,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:v,tabIndex:m,"aria-disabled":o,"aria-pressed":!(!b||v!==Je)||void 0,"aria-roledescription":g,"aria-describedby":f.draggable})),[o,v,m,b,g,f.draggable]),isDragging:b,listeners:o?void 0:x,node:w,over:h,setNodeRef:O,setActivatorNodeRef:C,transform:y}}function Ke(){return(0,r.useContext)(Ze)}const Ge="Droppable",$e={timeout:25};function Qe(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:a}=e;const s=(0,i.Ld)(Ge),{active:l,dispatch:u,over:c,measureDroppableContainers:d}=(0,r.useContext)(Ve),f=(0,r.useRef)({disabled:n}),p=(0,r.useRef)(!1),v=(0,r.useRef)(null),g=(0,r.useRef)(null),{disabled:m,updateMeasurementsFor:b,timeout:y}={...$e,...a},w=(0,i.Ey)(null!=b?b:o),O=Ce({callback:(0,r.useCallback)((()=>{p.current?(null!=g.current&&clearTimeout(g.current),g.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),g.current=null}),y)):p.current=!0}),[y]),disabled:m||!l}),E=(0,r.useCallback)(((e,t)=>{O&&(t&&(O.unobserve(t),p.current=!1),e&&O.observe(e))}),[O]),[C,x]=(0,i.wm)(E),R=(0,i.Ey)(t);return(0,r.useEffect)((()=>{O&&C.current&&(O.disconnect(),p.current=!1,O.observe(C.current))}),[C,O]),(0,i.LI)((()=>(u({type:h.RegisterDroppable,element:{id:o,key:s,disabled:n,node:C,rect:v,data:R}}),()=>u({type:h.UnregisterDroppable,key:s,id:o}))),[o]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(u({type:h.SetDroppableDisabled,id:o,key:s,disabled:n}),f.current.disabled=n)}),[o,s,n,u]),{active:l,rect:v,isOver:(null==c?void 0:c.id)===o,node:C,over:c,setNodeRef:x}}function et(e){let{animation:t,children:n}=e;const[o,a]=(0,r.useState)(null),[s,l]=(0,r.useState)(null),u=(0,i.D9)(n);return n||o||!u||a(u),(0,i.LI)((()=>{if(!s)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,s)).then((()=>{a(null)})):a(null)}),[t,o,s]),r.createElement(r.Fragment,null,n,o?(0,r.cloneElement)(o,{ref:l}):null)}const tt={x:0,y:0,scaleX:1,scaleY:1};function nt(e){let{children:t}=e;return r.createElement(Ve.Provider,{value:Fe},r.createElement(ze.Provider,{value:tt},t))}const rt={position:"fixed",touchAction:"none"},ot=e=>(0,i.vd)(e)?"transform 250ms ease":void 0,it=(0,r.forwardRef)(((e,t)=>{let{as:n,activatorEvent:o,adjustScale:a,children:s,className:l,rect:u,style:c,transform:d,transition:f=ot}=e;if(!u)return null;const p=a?d:{...d,scaleX:1,scaleY:1},h={...rt,width:u.width,height:u.height,top:u.top,left:u.left,transform:i.ux.Transform.toString(p),transformOrigin:a&&o?w(o,u):void 0,transition:"function"===typeof f?f(o):f,...c};return r.createElement(n,{className:l,style:h,ref:t},s)})),at=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)}},st={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:i.ux.Transform.toString(t)},{transform:i.ux.Transform.toString(n)}]},sideEffects:at({styles:{active:{opacity:"0"}}})};function lt(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return(0,i.zX)(((e,a)=>{if(null===t)return;const s=n.get(e);if(!s)return;const l=s.node.current;if(!l)return;const u=Le(a);if(!u)return;const{transform:c}=(0,i.Jj)(a).getComputedStyle(a),d=L(c);if(!d)return;const f="function"===typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...st,...e};return e=>{let{active:i,dragOverlay:a,transform:s,...l}=e;if(!t)return;const u={x:a.rect.left-i.rect.left,y:a.rect.top-i.rect.top},c={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-u.x,y:s.y-u.y,...c},f=o({...l,active:i,dragOverlay:a,transform:{initial:s,final:d}}),[p]=f,h=f[f.length-1];if(JSON.stringify(p)===JSON.stringify(h))return;const v=null==r?void 0:r({active:i,dragOverlay:a,...l}),g=a.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{g.onfinish=()=>{null==v||v(),e()}}))}}(t);return J(l,o.draggable.measure),f({active:{id:e,data:s.data,node:l,rect:o.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:a,rect:o.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:o,transform:d})}))}let ut=0;function ct(e){return(0,r.useMemo)((()=>{if(null!=e)return ut++,ut}),[e])}const dt=r.memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:i,transition:a,modifiers:s,wrapperElement:l="div",className:u,zIndex:c=999}=e;const{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:h,draggableNodes:v,droppableContainers:g,dragOverlay:m,over:b,measuringConfiguration:y,scrollableAncestors:w,scrollableAncestorRects:O,windowRect:E}=Ke(),C=(0,r.useContext)(ze),x=ct(null==f?void 0:f.id),R=He(s,{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:h,draggingNodeRect:m.rect,over:b,overlayNodeRect:m.rect,scrollableAncestors:w,scrollableAncestorRects:O,transform:C,windowRect:E}),S=Ee(p),D=lt({config:o,draggableNodes:v,droppableContainers:g,measuringConfiguration:y}),I=S?m.setRef:void 0;return r.createElement(nt,null,r.createElement(et,{animation:D},f&&x?r.createElement(it,{key:x,id:f.id,ref:I,as:l,activatorEvent:d,adjustScale:t,className:u,transition:a,rect:S,style:{zIndex:c,...i},transform:R},n):null))}))},51819:function(e,t,n){n.d(t,{Fo:function(){return h},PG:function(){return c},cP:function(){return g},nB:function(){return O}});var r=n(67294),o=n(51468),i=n(40198);function a(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function s(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function l(e){return null!==e&&e>=0}const u={scaleX:1,scaleY:1},c=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:o,overIndex:i,index:a}=e;const s=null!=(t=n[o])?t:r;if(!s)return null;const l=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];if(!r||!o&&!i)return 0;if(n<t)return o?r.left-(o.left+o.width):i.left-(r.left+r.width);return i?i.left-(r.left+r.width):r.left-(o.left+o.width)}(n,a,o);if(a===o){const e=n[i];return e?{x:o<i?e.left+e.width-(s.left+s.width):e.left-s.left,y:0,...u}:null}return a>o&&a<=i?{x:-s.width-l,y:0,...u}:a<o&&a>=i?{x:s.width+l,y:0,...u}:{x:0,y:0,...u}};const d=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=a(t,r,n),s=t[o],l=i[o];return l&&s?{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}:null};const f="Sortable",p=r.createContext({activeIndex:-1,containerId:f,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:d,disabled:{draggable:!1,droppable:!1}});function h(e){let{children:t,id:n,items:a,strategy:l=d,disabled:u=!1}=e;const{active:c,dragOverlay:h,droppableRects:v,over:g,measureDroppableContainers:m}=(0,o.Cj)(),b=(0,i.Ld)(f,n),y=Boolean(null!==h.rect),w=(0,r.useMemo)((()=>a.map((e=>"object"===typeof e&&"id"in e?e.id:e))),[a]),O=null!=c,E=c?w.indexOf(c.id):-1,C=g?w.indexOf(g.id):-1,x=(0,r.useRef)(w),R=!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}(w,x.current),S=-1!==C&&-1===E||R,D=function(e){return"boolean"===typeof e?{draggable:e,droppable:e}:e}(u);(0,i.LI)((()=>{R&&O&&m(w)}),[R,w,O,m]),(0,r.useEffect)((()=>{x.current=w}),[w]);const I=(0,r.useMemo)((()=>({activeIndex:E,containerId:b,disabled:D,disableTransforms:S,items:w,overIndex:C,useDragOverlay:y,sortedRects:s(w,v),strategy:l})),[E,b,D.draggable,D.droppable,S,w,C,v,y,l]);return r.createElement(p.Provider,{value:I},t)}const v=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return a(n,r,o).indexOf(t)},g=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:u}=e;return!(!u||!r)&&((s===i||o!==a)&&(!!n||a!==o&&t===l))},m={duration:200,easing:"ease"},b="transform",y=i.ux.Transition.toString({property:b,duration:0,easing:"linear"}),w={roleDescription:"sortable"};function O(e){let{animateLayoutChanges:t=g,attributes:n,disabled:a,data:s,getNewIndex:u=v,id:c,strategy:d,resizeObserverConfig:f,transition:h=m}=e;const{items:O,containerId:E,activeIndex:C,disabled:x,disableTransforms:R,sortedRects:S,overIndex:D,useDragOverlay:I,strategy:M}=(0,r.useContext)(p),L=function(e,t){var n,r;if("boolean"===typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(a,x),T=O.indexOf(c),A=(0,r.useMemo)((()=>({sortable:{containerId:E,index:T,items:O},...s})),[E,s,T,O]),k=(0,r.useMemo)((()=>O.slice(O.indexOf(c))),[O,c]),{rect:P,node:N,isOver:F,setNodeRef:V}=(0,o.Zj)({id:c,data:A,disabled:L.droppable,resizeObserverConfig:{updateMeasurementsFor:k,...f}}),{active:Z,activatorEvent:j,activeNodeRect:B,attributes:U,setNodeRef:H,listeners:z,isDragging:_,over:q,setActivatorNodeRef:W,transform:J}=(0,o.O1)({id:c,data:A,attributes:{...w,...n},disabled:L.draggable}),X=(0,i.HB)(V,H),Y=Boolean(Z),K=Y&&!R&&l(C)&&l(D),G=!I&&_,$=G&&K?J:null,Q=K?null!=$?$:(null!=d?d:M)({rects:S,activeNodeRect:B,activeIndex:C,overIndex:D,index:T}):null,ee=l(C)&&l(D)?u({id:c,items:O,activeIndex:C,overIndex:D}):T,te=null==Z?void 0:Z.id,ne=(0,r.useRef)({activeId:te,items:O,newIndex:ee,containerId:E}),re=O!==ne.current.items,oe=t({active:Z,containerId:E,isDragging:_,isSorting:Y,id:c,index:T,items:O,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:h,wasDragging:null!=ne.current.activeId}),ie=function(e){let{disabled:t,index:n,node:a,rect:s}=e;const[l,u]=(0,r.useState)(null),c=(0,r.useRef)(n);return(0,i.LI)((()=>{if(!t&&n!==c.current&&a.current){const e=s.current;if(e){const t=(0,o.VK)(a.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)&&u(n)}}n!==c.current&&(c.current=n)}),[t,n,a,s]),(0,r.useEffect)((()=>{l&&u(null)}),[l]),l}({disabled:!oe,index:T,node:N,rect:P});return(0,r.useEffect)((()=>{Y&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),E!==ne.current.containerId&&(ne.current.containerId=E),O!==ne.current.items&&(ne.current.items=O)}),[Y,ee,E,O]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:Z,activeIndex:C,attributes:U,data:A,rect:P,index:T,newIndex:ee,items:O,isOver:F,isSorting:Y,isDragging:_,listeners:z,node:N,overIndex:D,over:q,setNodeRef:X,setActivatorNodeRef:W,setDroppableNodeRef:V,setDraggableNodeRef:H,transform:null!=ie?ie:Q,transition:function(){if(ie||re&&ne.current.newIndex===T)return y;if(G&&!(0,i.vd)(j)||!h)return;if(Y||oe)return i.ux.Transition.toString({...h,property:b});return}()}}o.g4.Down,o.g4.Right,o.g4.Up,o.g4.Left},40198:function(e,t,n){n.d(t,{$X:function(){return x},D9:function(){return y},DC:function(){return S},Ey:function(){return g},FJ:function(){return a},Gj:function(){return m},HB:function(){return o},IH:function(){return C},Jj:function(){return l},LI:function(){return p},Ld:function(){return O},Nq:function(){return i},Re:function(){return c},UG:function(){return s},Yz:function(){return v},qk:function(){return u},r3:function(){return f},so:function(){return M},ux:function(){return D},vZ:function(){return d},vd:function(){return R},wm:function(){return b},zX:function(){return h}});var r=n(67294);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}const i="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function s(e){return"nodeType"in e}function l(e){var t,n;return e?a(e)?e:s(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function u(e){const{Document:t}=l(e);return e instanceof t}function c(e){return!a(e)&&e instanceof l(e).HTMLElement}function d(e){return e instanceof l(e).SVGElement}function f(e){return e?a(e)?e.document:s(e)?u(e)?e:c(e)||d(e)?e.ownerDocument:document:document:document}const p=i?r.useLayoutEffect:r.useEffect;function h(e){const t=(0,r.useRef)(e);return p((()=>{t.current=e})),(0,r.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 v(){const e=(0,r.useRef)(null);return[(0,r.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function g(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return p((()=>{n.current!==e&&(n.current=e)}),t),n}function m(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function b(e){const t=h(e),n=(0,r.useRef)(null),o=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,o]}function y(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function O(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n}),[e,t])}function E(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})}}const C=E(1),x=E(-1);function R(e){if(!e)return!1;const{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function S(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=l(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}const D=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[D.Translate.toString(e),D.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),I="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(I)?e:e.querySelector(I)}},47689:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(87462),o=n(67294),i=n(43423),a=n(52194),s=n(1413),l=n(93433),u=n(45987),c=n(93770),d=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],f=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),o=String(t.getOptionLabel(e)).toLowerCase();return r===n||o===n},p={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return f(e,t,r)}))||n.some((function(t){return f(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};n(73935),n(73469);var h=(0,o.forwardRef)((function(e,t){var n=function(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,a=void 0===r?"last":r,f=e.formatCreateLabel,h=void 0===f?p.formatCreateLabel:f,v=e.isValidNewOption,g=void 0===v?p.isValidNewOption:v,m=e.getNewOptionData,b=void 0===m?p.getNewOptionData:m,y=e.onCreateOption,w=e.options,O=void 0===w?[]:w,E=e.onChange,C=(0,u.Z)(e,d),x=C.getOptionValue,R=void 0===x?i.g:x,S=C.getOptionLabel,D=void 0===S?i.b:S,I=C.inputValue,M=C.isLoading,L=C.isMulti,T=C.value,A=C.name,k=(0,o.useMemo)((function(){return g(I,(0,c.H)(T),O,{getOptionValue:R,getOptionLabel:D})?b(I,h(I)):void 0}),[h,b,D,R,I,g,O,T]),P=(0,o.useMemo)((function(){return!n&&M||!k?O:"first"===a?[k].concat((0,l.Z)(O)):[].concat((0,l.Z)(O),[k])}),[n,a,M,k,O]),N=(0,o.useCallback)((function(e,t){if("select-option"!==t.action)return E(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==k)E(e,t);else if(y)y(I);else{var r=b(I,I),o={action:"create-option",name:A,option:r};E((0,c.D)(L,[].concat((0,l.Z)((0,c.H)(T)),[r]),r),o)}}),[b,I,L,A,k,y,E,T]);return(0,s.Z)((0,s.Z)({},C),{},{options:P,onChange:N})}((0,a.u)(e));return o.createElement(i.S,(0,r.Z)({ref:t},n))}))},43423:function(e,t,n){n.d(t,{S:function(){return he},b:function(){return Y},g:function(){return K}});var r=n(87462),o=n(1413),i=n(15671),a=n(43144),s=n(60136),l=n(29388),u=n(93433),c=n(67294),d=n(93770),f=n(42849),p=n(30845),h=n(45987);for(var v={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},g=function(e){return(0,f.tZ)("span",(0,r.Z)({css:v},e))},m={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=