UNPKG

@zoom/meetingsdk

Version:
2 lines 4.21 MB
/*! For license information please see zoomus-websdk-main-client.umd.min.js.LICENSE.txt */ (self.webpackChunk_zoom_webclientjs=self.webpackChunk_zoom_webclientjs||[]).push([[2640],{19251:(e,t,n)=>{"use strict";n.d(t,{Aw:()=>s,L4:()=>a,bO:()=>l});var o=n(31099),i=n.n(o);const r={display:"none"};function s(e){let{id:t,value:n}=e;return i().createElement("div",{id:t,style:r},n)}function a(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return i().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)}function l(){const[e,t]=(0,o.useState)("");return{announce:(0,o.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}},15871:(e,t,n)=>{"use strict";n.d(t,{AN:()=>oe,FR:()=>f,Hd:()=>it,IG:()=>ae,MS:()=>m,Mp:()=>Be,PM:()=>He,Sj:()=>_,fF:()=>ze,vL:()=>Z,zM:()=>qe});var o=n(31099),i=n.n(o),r=n(40961),s=n(74979),a=n(19251);const l=(0,o.createContext)(null);const c={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 u(e){let{announcements:t=d,container:n,hiddenTextDescribedById:u,screenReaderInstructions:p=c}=e;const{announce:h,announcement:m}=(0,a.bO)(),f=(0,s.YG)("DndLiveRegion"),[g,v]=(0,o.useState)(!1);if((0,o.useEffect)(()=>{v(!0)},[]),function(e){const t=(0,o.useContext)(l);(0,o.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}((0,o.useMemo)(()=>({onDragStart(e){let{active:n}=e;h(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:o}=e;t.onDragMove&&h(t.onDragMove({active:n,over:o}))},onDragOver(e){let{active:n,over:o}=e;h(t.onDragOver({active:n,over:o}))},onDragEnd(e){let{active:n,over:o}=e;h(t.onDragEnd({active:n,over:o}))},onDragCancel(e){let{active:n,over:o}=e;h(t.onDragCancel({active:n,over:o}))}}),[h,t])),!g)return null;const b=i().createElement(i().Fragment,null,i().createElement(a.Aw,{id:u,value:p.draggable}),i().createElement(a.L4,{id:f,announcement:m}));return n?(0,r.createPortal)(b,n):b}var p;function h(){}function m(e,t){return(0,o.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(p||(p={}));const g=Object.freeze({x:0,y:0});function v(e,t){const n=(0,s.e_)(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function b(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function y(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),r=Math.min(t.top+t.height,e.top+e.height),s=i-o,a=r-n;if(o<i&&n<r){const n=t.width*t.height,o=e.width*e.height,i=s*a;return Number((i/(n+o-i)).toFixed(4))}return 0}const w=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const i=[];for(const r of o){const{id:e}=r,o=n.get(e);if(o){const n=y(o,t);n>0&&i.push({id:e,data:{droppableContainer:r,value:n}})}}return i.sort(b)};function C(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:g}function S(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return o.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 x=S(1);function A(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 E={ignoreTransform:!1};function _(e,t){void 0===t&&(t=E);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:o}=(0,s.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){const o=A(t);if(!o)return e;const{scaleX:i,scaleY:r,x:s,y:a}=o,l=e.left-s-(1-i)*parseFloat(n),c=e.top-a-(1-r)*parseFloat(n.slice(n.indexOf(" ")+1)),d=i?e.width/i:e.width,u=r?e.height/r:e.height;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l}}(n,t,o))}const{top:o,left:i,width:r,height:a,bottom:l,right:c}=n;return{top:o,left:i,width:r,height:a,bottom:l,right:c}}function I(e){return _(e,{ignoreTransform:!0})}function T(e,t){const n=[];return e?function o(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if((0,s.wz)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,s.sb)(i)||(0,s.xZ)(i))return n;if(n.includes(i))return n;const r=(0,s.zk)(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=(0,s.zk)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const o=t[e];return"string"===typeof o&&n.test(o)})}(i,r)&&n.push(i),function(e,t){return void 0===t&&(t=(0,s.zk)(e).getComputedStyle(e)),"fixed"===t.position}(i,r)?n:o(i.parentNode)}(e):n}function O(e){const[t]=T(e,1);return null!=t?t:null}function j(e){return s.Sw&&e?(0,s.l6)(e)?e:(0,s.Ll)(e)?(0,s.wz)(e)||e===(0,s.TW)(e).scrollingElement?window:(0,s.sb)(e)?e:null:null:null}function R(e){return(0,s.l6)(e)?e.scrollX:e.scrollLeft}function N(e){return(0,s.l6)(e)?e.scrollY:e.scrollTop}function k(e){return{x:R(e),y:N(e)}}var P;function M(e){return!(!s.Sw||!e)&&e===document.scrollingElement}function L(e){const t={x:0,y:0},n=M(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=o.y,isRight:e.scrollLeft>=o.x,maxScroll:o,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(P||(P={}));const D={x:.2,y:.2};function B(e,t,n,o,i){let{top:r,left:s,right:a,bottom:l}=n;void 0===o&&(o=10),void 0===i&&(i=D);const{isTop:c,isBottom:d,isLeft:u,isRight:p}=L(e),h={x:0,y:0},m={x:0,y:0},f=t.height*i.y,g=t.width*i.x;return!c&&r<=t.top+f?(h.y=P.Backward,m.y=o*Math.abs((t.top+f-r)/f)):!d&&l>=t.bottom-f&&(h.y=P.Forward,m.y=o*Math.abs((t.bottom-f-l)/f)),!p&&a>=t.right-g?(h.x=P.Forward,m.x=o*Math.abs((t.right-g-a)/g)):!u&&s<=t.left+g&&(h.x=P.Backward,m.x=o*Math.abs((t.left+g-s)/g)),{direction:h,speed:m}}function F(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:o,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:i,width:e.clientWidth,height:e.clientHeight}}function U(e){return e.reduce((e,t)=>(0,s.WQ)(e,k(t)),g)}function V(e,t){if(void 0===t&&(t=_),!e)return;const{top:n,left:o,bottom:i,right:r}=t(e);O(e)&&(i<=0||r<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const H=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+R(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+N(t),0)}]];class z{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=T(t),o=U(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,r,s]of H)for(const e of r)Object.defineProperty(this,e,{get:()=>{const t=s(n),r=o[i]-t;return this.rect[e]+r},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class W{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 o;null==(o=this.target)||o.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function $(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return"number"===typeof t?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t&&o>t.y}var q,Z;function G(e){e.preventDefault()}function K(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"}(q||(q={})),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"}(Z||(Z={}));const Y={start:[Z.Space,Z.Enter],cancel:[Z.Esc],end:[Z.Space,Z.Enter,Z.Tab]},Q=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Z.Right:return{...n,x:n.x+25};case Z.Left:return{...n,x:n.x-25};case Z.Down:return{...n,y:n.y+25};case Z.Up:return{...n,y:n.y-25}}};class J{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 W((0,s.TW)(t)),this.windowListeners=new W((0,s.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(q.Resize,this.handleCancel),this.windowListeners.add(q.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(q.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&V(n),t(g)}handleKeyDown(e){if((0,s.kx)(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:i=Y,coordinateGetter:r=Q,scrollBehavior:a="smooth"}=o,{code:l}=e;if(i.end.includes(l))return void this.handleEnd(e);if(i.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:c}=n.current,d=c?{x:c.left,y:c.top}:g;this.referenceCoordinates||(this.referenceCoordinates=d);const u=r(e,{active:t,context:n.current,currentCoordinates:d});if(u){const t=(0,s.Re)(u,d),o={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:r,isRight:s,isLeft:l,isBottom:c,maxScroll:d,minScroll:p}=L(n),h=F(n),m={x:Math.min(i===Z.Right?h.right-h.width/2:h.right,Math.max(i===Z.Right?h.left:h.left+h.width/2,u.x)),y:Math.min(i===Z.Down?h.bottom-h.height/2:h.bottom,Math.max(i===Z.Down?h.top:h.top+h.height/2,u.y))},f=i===Z.Right&&!s||i===Z.Left&&!l,g=i===Z.Down&&!c||i===Z.Up&&!r;if(f&&m.x!==u.x){const e=n.scrollLeft+t.x,r=i===Z.Right&&e<=d.x||i===Z.Left&&e>=p.x;if(r&&!t.y)return void n.scrollTo({left:e,behavior:a});o.x=r?n.scrollLeft-e:i===Z.Right?n.scrollLeft-d.x:n.scrollLeft-p.x,o.x&&n.scrollBy({left:-o.x,behavior:a});break}if(g&&m.y!==u.y){const e=n.scrollTop+t.y,r=i===Z.Down&&e<=d.y||i===Z.Up&&e>=p.y;if(r&&!t.x)return void n.scrollTo({top:e,behavior:a});o.y=r?n.scrollTop-e:i===Z.Down?n.scrollTop-d.y:n.scrollTop-p.y,o.y&&n.scrollBy({top:-o.y,behavior:a});break}}this.handleMove(e,(0,s.WQ)((0,s.Re)(u,this.referenceCoordinates),o))}}}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 X(e){return Boolean(e&&"distance"in e)}function ee(e){return Boolean(e&&"delay"in e)}J.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=Y,onActivation:i}=t,{active:r}=n;const{code:s}=e.nativeEvent;if(o.start.includes(s)){const t=r.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class te{constructor(e,t,n){var o;void 0===n&&(n=function(e){const{EventTarget:t}=(0,s.zk)(e);return e instanceof t?e:(0,s.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:i}=e,{target:r}=i;this.props=e,this.events=t,this.document=(0,s.TW)(r),this.documentListeners=new W(this.document),this.listeners=new W(n),this.windowListeners=new W((0,s.zk)(r)),this.initialCoordinates=null!=(o=(0,s.e_)(i))?o:g,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(q.Resize,this.handleCancel),this.windowListeners.add(q.DragStart,G),this.windowListeners.add(q.VisibilityChange,this.handleCancel),this.windowListeners.add(q.ContextMenu,G),this.documentListeners.add(q.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ee(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(X(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:o}=this.props;o(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(q.Click,K,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(q.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:o,props:i}=this,{onMove:r,options:{activationConstraint:a}}=i;if(!o)return;const l=null!=(t=(0,s.e_)(e))?t:g,c=(0,s.Re)(o,l);if(!n&&a){if(X(a)){if(null!=a.tolerance&&$(c,a.tolerance))return this.handleCancel();if($(c,a.distance))return this.handleStart()}return ee(a)&&$(c,a.tolerance)?this.handleCancel():void this.handlePending(a,c)}e.cancelable&&e.preventDefault(),r(l)}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===Z.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ne={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class oe extends te{constructor(e){const{event:t}=e,n=(0,s.TW)(t.target);super(e,ne,n)}}oe.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!(!n.isPrimary||0!==n.button)&&(null==o||o({event:n}),!0)}}];const ie={move:{name:"mousemove"},end:{name:"mouseup"}};var re;!function(e){e[e.RightClick=2]="RightClick"}(re||(re={}));(class extends te{constructor(e){super(e,ie,(0,s.TW)(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==re.RightClick&&(null==o||o({event:n}),!0)}}];const se={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class ae extends te{constructor(e){super(e,se)}static setup(){return window.addEventListener(se.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(se.move.name,e)};function e(){}}}var le,ce;function de(e){let{acceleration:t,activator:n=le.Pointer,canScroll:i,draggingRect:r,enabled:a,interval:l=5,order:c=ce.TreeOrder,pointerCoordinates:d,scrollableAncestors:u,scrollableAncestorRects:p,delta:h,threshold:m}=e;const f=function(e){let{delta:t,disabled:n}=e;const o=(0,s.ZC)(t);return(0,s.KG)(e=>{if(n||!o||!e)return ue;const i={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[P.Backward]:e.x[P.Backward]||-1===i.x,[P.Forward]:e.x[P.Forward]||1===i.x},y:{[P.Backward]:e.y[P.Backward]||-1===i.y,[P.Forward]:e.y[P.Forward]||1===i.y}}},[n,t,o])}({delta:h,disabled:!a}),[g,v]=(0,s.$$)(),b=(0,o.useRef)({x:0,y:0}),y=(0,o.useRef)({x:0,y:0}),w=(0,o.useMemo)(()=>{switch(n){case le.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case le.DraggableRect:return r}},[n,r,d]),C=(0,o.useRef)(null),S=(0,o.useCallback)(()=>{const e=C.current;if(!e)return;const t=b.current.x*y.current.x,n=b.current.y*y.current.y;e.scrollBy(t,n)},[]),x=(0,o.useMemo)(()=>c===ce.TreeOrder?[...u].reverse():u,[c,u]);(0,o.useEffect)(()=>{if(a&&u.length&&w){for(const e of x){if(!1===(null==i?void 0:i(e)))continue;const n=u.indexOf(e),o=p[n];if(!o)continue;const{direction:r,speed:s}=B(e,o,w,t,m);for(const e of["x","y"])f[e][r[e]]||(s[e]=0,r[e]=0);if(s.x>0||s.y>0)return v(),C.current=e,g(S,l),b.current=s,void(y.current=r)}b.current={x:0,y:0},y.current={x:0,y:0},v()}else v()},[t,S,i,v,a,l,JSON.stringify(w),JSON.stringify(f),g,u,x,p,JSON.stringify(m)])}ae.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:i}=n;return!(i.length>1)&&(null==o||o({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(le||(le={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(ce||(ce={}));const ue={x:{[P.Backward]:!1,[P.Forward]:!1},y:{[P.Backward]:!1,[P.Forward]:!1}};var pe,he;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(pe||(pe={})),function(e){e.Optimized="optimized"}(he||(he={}));const me=new Map;function fe(e,t){return(0,s.KG)(n=>e?n||("function"===typeof t?t(e):e):null,[t,e])}function ge(e){let{callback:t,disabled:n}=e;const i=(0,s._q)(t),r=(0,o.useMemo)(()=>{if(n||"undefined"===typeof window||"undefined"===typeof window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)},[n]);return(0,o.useEffect)(()=>()=>null==r?void 0:r.disconnect(),[r]),r}function ve(e){return new z(_(e),e)}function be(e,t,n){void 0===t&&(t=ve);const[i,r]=(0,o.useState)(null);function a(){r(o=>{if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=o?o:n)?i:null;const r=t(e);return JSON.stringify(o)===JSON.stringify(r)?o:r})}const l=function(e){let{callback:t,disabled:n}=e;const i=(0,s._q)(t),r=(0,o.useMemo)(()=>{if(n||"undefined"===typeof window||"undefined"===typeof window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)},[i,n]);return(0,o.useEffect)(()=>()=>null==r?void 0:r.disconnect(),[r]),r}({callback(t){if(e)for(const n of t){const{type:t,target:o}=n;if("childList"===t&&o instanceof HTMLElement&&o.contains(e)){a();break}}}}),c=ge({callback:a});return(0,s.Es)(()=>{a(),e?(null==c||c.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==l||l.disconnect())},[e]),i}const ye=[];function we(e,t){void 0===t&&(t=[]);const n=(0,o.useRef)(null);return(0,o.useEffect)(()=>{n.current=null},t),(0,o.useEffect)(()=>{const t=e!==g;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,s.Re)(e,n.current):g}function Ce(e){return(0,o.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 Se=[];function xe(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,s.sb)(t)?t:e}const Ae=[{sensor:oe,options:{}},{sensor:J,options:{}}],Ee={current:{}},_e={draggable:{measure:I},droppable:{measure:I,strategy:pe.WhileDragging,frequency:he.Optimized},dragOverlay:{measure:_}};class Ie 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 Te={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ie,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:h},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:_e,measureDroppableContainers:h,windowRect:null,measuringScheduled:!1},Oe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:h,draggableNodes:new Map,over:null,measureDroppableContainers:h},je=(0,o.createContext)(Oe),Re=(0,o.createContext)(Te);function Ne(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ie}}}function ke(e,t){switch(t.type){case p.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case p.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case p.DragEnd:case p.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case p.RegisterDroppable:{const{element:n}=t,{id:o}=n,i=new Ie(e.droppable.containers);return i.set(o,n),{...e,droppable:{...e.droppable,containers:i}}}case p.SetDroppableDisabled:{const{id:n,key:o,disabled:i}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const s=new Ie(e.droppable.containers);return s.set(n,{...r,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case p.UnregisterDroppable:{const{id:n,key:o}=t,i=e.droppable.containers.get(n);if(!i||o!==i.key)return e;const r=new Ie(e.droppable.containers);return r.delete(n),{...e,droppable:{...e.droppable,containers:r}}}default:return e}}function Pe(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:r}=(0,o.useContext)(je),a=(0,s.ZC)(i),l=(0,s.ZC)(null==n?void 0:n.id);return(0,o.useEffect)(()=>{if(!t&&!i&&a&&null!=l){if(!(0,s.kx)(a))return;if(document.activeElement===a.target)return;const e=r.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,s.ag)(e);if(t){t.focus();break}}})}},[i,t,r,l,a]),null}function Me(e,t){let{transform:n,...o}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...o}),n):n}const Le=(0,o.createContext)({...g,scaleX:1,scaleY:1});var De;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(De||(De={}));const Be=(0,o.memo)(function(e){var t,n,a,c;let{id:d,accessibility:h,autoScroll:m=!0,children:f,sensors:v=Ae,collisionDetection:b=w,measuring:y,modifiers:S,...A}=e;const E=(0,o.useReducer)(ke,void 0,Ne),[I,R]=E,[N,P]=function(){const[e]=(0,o.useState)(()=>new Set),t=(0,o.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,o.useCallback)(t=>{let{type:n,event:o}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,o)})},[e]),t]}(),[L,D]=(0,o.useState)(De.Uninitialized),B=L===De.Initialized,{draggable:{active:F,nodes:V,translate:H},droppable:{containers:W}}=I,$=null!=F?V.get(F):null,q=(0,o.useRef)({initial:null,translated:null}),Z=(0,o.useMemo)(()=>{var e;return null!=F?{id:F,data:null!=(e=null==$?void 0:$.data)?e:Ee,rect:q}:null},[F,$]),G=(0,o.useRef)(null),[K,Y]=(0,o.useState)(null),[Q,J]=(0,o.useState)(null),X=(0,s.YN)(A,Object.values(A)),ee=(0,s.YG)("DndDescribedBy",d),te=(0,o.useMemo)(()=>W.getEnabled(),[W]),ne=(oe=y,(0,o.useMemo)(()=>({draggable:{..._e.draggable,...null==oe?void 0:oe.draggable},droppable:{..._e.droppable,...null==oe?void 0:oe.droppable},dragOverlay:{..._e.dragOverlay,...null==oe?void 0:oe.dragOverlay}}),[null==oe?void 0:oe.draggable,null==oe?void 0:oe.droppable,null==oe?void 0:oe.dragOverlay]));var oe;const{droppableRects:ie,measureDroppableContainers:re,measuringScheduled:se}=function(e,t){let{dragging:n,dependencies:i,config:r}=t;const[a,l]=(0,o.useState)(null),{frequency:c,measure:d,strategy:u}=r,p=(0,o.useRef)(e),h=function(){switch(u){case pe.Always:return!1;case pe.BeforeDragging:return n;default:return!n}}(),m=(0,s.YN)(h),f=(0,o.useCallback)(function(e){void 0===e&&(e=[]),m.current||l(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[m]),g=(0,o.useRef)(null),v=(0,s.KG)(t=>{if(h&&!n)return me;if(!t||t===me||p.current!==e||null!=a){const t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,o=e?new z(d(e),e):null;n.rect.current=o,o&&t.set(n.id,o)}return t}return t},[e,a,n,h,d]);return(0,o.useEffect)(()=>{p.current=e},[e]),(0,o.useEffect)(()=>{h||f()},[n,h]),(0,o.useEffect)(()=>{a&&a.length>0&&l(null)},[JSON.stringify(a)]),(0,o.useEffect)(()=>{h||"number"!==typeof c||null!==g.current||(g.current=setTimeout(()=>{f(),g.current=null},c))},[c,h,f,...i]),{droppableRects:v,measureDroppableContainers:f,measuringScheduled:null!=a}}(te,{dragging:B,dependencies:[H.x,H.y],config:ne.droppable}),ae=function(e,t){const n=null!=t?e.get(t):void 0,o=n?n.node.current:null;return(0,s.KG)(e=>{var n;return null==t?null:null!=(n=null!=o?o:e)?n:null},[o,t])}(V,F),le=(0,o.useMemo)(()=>Q?(0,s.e_)(Q):null,[Q]),ce=function(){const e=!1===(null==K?void 0:K.autoScrollEnabled),t="object"===typeof m?!1===m.enabled:!1===m,n=B&&!e&&!t;if("object"===typeof m)return{...m,enabled:n};return{enabled:n}}(),ue=function(e,t){return fe(e,t)}(ae,ne.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:i,config:r=!0}=e;const a=(0,o.useRef)(!1),{x:l,y:c}="boolean"===typeof r?{x:r,y:r}:r;(0,s.Es)(()=>{if(!l&&!c||!t)return void(a.current=!1);if(a.current||!i)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const o=C(n(e),i);if(l||(o.x=0),c||(o.y=0),a.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const t=O(e);t&&t.scrollBy({top:o.y,left:o.x})}},[t,l,c,i,n])}({activeNode:null!=F?V.get(F):null,config:ce.layoutShiftCompensation,initialRect:ue,measure:ne.draggable.measure});const he=be(ae,ne.draggable.measure,ue),ve=be(ae?ae.parentElement:null),Ie=(0,o.useRef)({activatorEvent:null,active:null,activeNode:ae,collisionRect:null,collisions:null,droppableRects:ie,draggableNodes:V,draggingNode:null,draggingNodeRect:null,droppableContainers:W,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Te=W.getNodeFor(null==(t=Ie.current.over)?void 0:t.id),Oe=function(e){let{measure:t}=e;const[n,i]=(0,o.useState)(null),r=ge({callback:(0,o.useCallback)(e=>{for(const{target:n}of e)if((0,s.sb)(n)){i(e=>{const o=t(n);return e?{...e,width:o.width,height:o.height}:o});break}},[t])}),a=(0,o.useCallback)(e=>{const n=xe(e);null==r||r.disconnect(),n&&(null==r||r.observe(n)),i(n?t(n):null)},[t,r]),[l,c]=(0,s.lk)(a);return(0,o.useMemo)(()=>({nodeRef:l,rect:n,setRef:c}),[n,l,c])}({measure:ne.dragOverlay.measure}),Be=null!=(n=Oe.nodeRef.current)?n:ae,Fe=B?null!=(a=Oe.rect)?a:he:null,Ue=Boolean(Oe.nodeRef.current&&Oe.rect),Ve=C(He=Ue?null:he,fe(He));var He;const ze=Ce(Be?(0,s.zk)(Be):null),We=function(e){const t=(0,o.useRef)(e),n=(0,s.KG)(n=>e?n&&n!==ye&&e&&t.current&&e.parentNode===t.current.parentNode?n:T(e):ye,[e]);return(0,o.useEffect)(()=>{t.current=e},[e]),n}(B?null!=Te?Te:ae:null),$e=function(e,t){void 0===t&&(t=_);const[n]=e,i=Ce(n?(0,s.zk)(n):null),[r,a]=(0,o.useState)(Se);function l(){a(()=>e.length?e.map(e=>M(e)?i:new z(t(e),e)):Se)}const c=ge({callback:l});return(0,s.Es)(()=>{null==c||c.disconnect(),l(),e.forEach(e=>null==c?void 0:c.observe(e))},[e]),r}(We),qe=Me(S,{transform:{x:H.x-Ve.x,y:H.y-Ve.y,scaleX:1,scaleY:1},activatorEvent:Q,active:Z,activeNodeRect:he,containerNodeRect:ve,draggingNodeRect:Fe,over:Ie.current.over,overlayNodeRect:Oe.rect,scrollableAncestors:We,scrollableAncestorRects:$e,windowRect:ze}),Ze=le?(0,s.WQ)(le,H):null,Ge=function(e){const[t,n]=(0,o.useState)(null),i=(0,o.useRef)(e),r=(0,o.useCallback)(e=>{const t=j(e.target);t&&n(e=>e?(e.set(t,k(t)),new Map(e)):null)},[]);return(0,o.useEffect)(()=>{const t=i.current;if(e!==t){o(t);const s=e.map(e=>{const t=j(e);return t?(t.addEventListener("scroll",r,{passive:!0}),[t,k(t)]):null}).filter(e=>null!=e);n(s.length?new Map(s):null),i.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{const t=j(e);null==t||t.removeEventListener("scroll",r)})}},[r,e]),(0,o.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,s.WQ)(e,t),g):U(e):g,[e,t])}(We),Ke=we(Ge),Ye=we(Ge,[he]),Qe=(0,s.WQ)(qe,Ke),Je=Fe?x(Fe,qe):null,Xe=Z&&Je?b({active:Z,collisionRect:Je,droppableRects:ie,droppableContainers:te,pointerCoordinates:Ze}):null,et=function(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}(Xe,"id"),[tt,nt]=(0,o.useState)(null),ot=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Ue?qe:(0,s.WQ)(qe,Ye),null!=(c=null==tt?void 0:tt.rect)?c:null,he),it=(0,o.useRef)(null),rt=(0,o.useCallback)((e,t)=>{let{sensor:n,options:o}=t;if(null==G.current)return;const i=V.get(G.current);if(!i)return;const s=e.nativeEvent,a=new n({active:G.current,activeNode:i,event:s,options:o,context:Ie,onAbort(e){if(!V.get(e))return;const{onDragAbort:t}=X.current,n={id:e};null==t||t(n),N({type:"onDragAbort",event:n})},onPending(e,t,n,o){if(!V.get(e))return;const{onDragPending:i}=X.current,r={id:e,constraint:t,initialCoordinates:n,offset:o};null==i||i(r),N({type:"onDragPending",event:r})},onStart(e){const t=G.current;if(null==t)return;const n=V.get(t);if(!n)return;const{onDragStart:o}=X.current,i={activatorEvent:s,active:{id:t,data:n.data,rect:q}};(0,r.unstable_batchedUpdates)(()=>{null==o||o(i),D(De.Initializing),R({type:p.DragStart,initialCoordinates:e,active:t}),N({type:"onDragStart",event:i}),Y(it.current),J(s)})},onMove(e){R({type:p.DragMove,coordinates:e})},onEnd:l(p.DragEnd),onCancel:l(p.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:o,scrollAdjustedTranslate:i}=Ie.current;let a=null;if(t&&i){const{cancelDrop:r}=X.current;if(a={activatorEvent:s,active:t,collisions:n,delta:i,over:o},e===p.DragEnd&&"function"===typeof r){await Promise.resolve(r(a))&&(e=p.DragCancel)}}G.current=null,(0,r.unstable_batchedUpdates)(()=>{R({type:e}),D(De.Uninitialized),nt(null),Y(null),J(null),it.current=null;const t=e===p.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=X.current[t];null==e||e(a),N({type:t,event:a})}})}}it.current=a},[V]),st=(0,o.useCallback)((e,t)=>(n,o)=>{const i=n.nativeEvent,r=V.get(o);if(null!==G.current||!r||i.dndKit||i.defaultPrevented)return;const s={active:r};!0===e(n,t.options,s)&&(i.dndKit={capturedBy:t.sensor},G.current=o,rt(n,t))},[V,rt]),at=function(e,t){return(0,o.useMemo)(()=>e.reduce((e,n)=>{const{sensor:o}=n;return[...e,...o.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(v,st);!function(e){(0,o.useEffect)(()=>{if(!s.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}))}(v),(0,s.Es)(()=>{he&&L===De.Initializing&&D(De.Initialized)},[he,L]),(0,o.useEffect)(()=>{const{onDragMove:e}=X.current,{active:t,activatorEvent:n,collisions:o,over:i}=Ie.current;if(!t||!n)return;const s={active:t,activatorEvent:n,collisions:o,delta:{x:Qe.x,y:Qe.y},over:i};(0,r.unstable_batchedUpdates)(()=>{null==e||e(s),N({type:"onDragMove",event:s})})},[Qe.x,Qe.y]),(0,o.useEffect)(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:o,scrollAdjustedTranslate:i}=Ie.current;if(!e||null==G.current||!t||!i)return;const{onDragOver:s}=X.current,a=o.get(et),l=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:l};(0,r.unstable_batchedUpdates)(()=>{nt(l),null==s||s(c),N({type:"onDragOver",event:c})})},[et]),(0,s.Es)(()=>{Ie.current={activatorEvent:Q,active:Z,activeNode:ae,collisionRect:Je,collisions:Xe,droppableRects:ie,draggableNodes:V,draggingNode:Be,draggingNodeRect:Fe,droppableContainers:W,over:tt,scrollableAncestors:We,scrollAdjustedTranslate:Qe},q.current={initial:Fe,translated:Je}},[Z,ae,Xe,Je,V,Be,Fe,ie,W,tt,We,Qe]),de({...ce,delta:H,draggingRect:Je,pointerCoordinates:Ze,scrollableAncestors:We,scrollableAncestorRects:$e});const lt=(0,o.useMemo)(()=>({active:Z,activeNode:ae,activeNodeRect:he,activatorEvent:Q,collisions:Xe,containerNodeRect:ve,dragOverlay:Oe,draggableNodes:V,droppableContainers:W,droppableRects:ie,over:tt,measureDroppableContainers:re,scrollableAncestors:We,scrollableAncestorRects:$e,measuringConfiguration:ne,measuringScheduled:se,windowRect:ze}),[Z,ae,he,Q,Xe,ve,Oe,V,W,ie,tt,re,We,$e,ne,se,ze]),ct=(0,o.useMemo)(()=>({activatorEvent:Q,activators:at,active:Z,activeNodeRect:he,ariaDescribedById:{draggable:ee},dispatch:R,draggableNodes:V,over:tt,measureDroppableContainers:re}),[Q,at,Z,he,R,ee,V,tt,re]);return i().createElement(l.Provider,{value:P},i().createElement(je.Provider,{value:ct},i().createElement(Re.Provider,{value:lt},i().createElement(Le.Provider,{value:ot},f)),i().createElement(Pe,{disabled:!1===(null==h?void 0:h.restoreFocus)})),i().createElement(u,{...h,hiddenTextDescribedById:ee}))}),Fe=(0,o.createContext)(null),Ue="button",Ve="Draggable";function He(e){let{id:t,data:n,disabled:i=!1,attributes:r}=e;const a=(0,s.YG)(Ve),{activators:l,activatorEvent:c,active:d,activeNodeRect:u,ariaDescribedById:p,draggableNodes:h,over:m}=(0,o.useContext)(je),{role:f=Ue,roleDescription:g="draggable",tabIndex:v=0}=null!=r?r:{},b=(null==d?void 0:d.id)===t,y=(0,o.useContext)(b?Le:Fe),[w,C]=(0,s.lk)(),[S,x]=(0,s.lk)(),A=function(e,t){return(0,o.useMemo)(()=>e.reduce((e,n)=>{let{eventName:o,handler:i}=n;return e[o]=e=>{i(e,t)},e},{}),[e,t])}(l,t),E=(0,s.YN)(n);(0,s.Es)(()=>(h.set(t,{id:t,key:a,node:w,activatorNode:S,data:E}),()=>{const e=h.get(t);e&&e.key===a&&h.delete(t)}),[h,t]);return{active:d,activatorEvent:c,activeNodeRect:u,attributes:(0,o.useMemo)(()=>({role:f,tabIndex:v,"aria-disabled":i,"aria-pressed":!(!b||f!==Ue)||void 0,"aria-roledescription":g,"aria-describedby":p.draggable}),[i,f,v,b,g,p.draggable]),isDragging:b,listeners:i?void 0:A,node:w,over:m,setNodeRef:C,setActivatorNodeRef:x,transform:y}}function ze(){return(0,o.useContext)(Re)}const We="Droppable",$e={timeout:25};function qe(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:r}=e;const a=(0,s.YG)(We),{active:l,dispatch:c,over:d,measureDroppableContainers:u}=(0,o.useContext)(je),h=(0,o.useRef)({disabled:n}),m=(0,o.useRef)(!1),f=(0,o.useRef)(null),g=(0,o.useRef)(null),{disabled:v,updateMeasurementsFor:b,timeout:y}={...$e,...r},w=(0,s.YN)(null!=b?b:i),C=ge({callback:(0,o.useCallback)(()=>{m.current?(null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(w.current)?w.current:[w.current]),g.current=null},y)):m.current=!0},[y]),disabled:v||!l}),S=(0,o.useCallback)((e,t)=>{C&&(t&&(C.unobserve(t),m.current=!1),e&&C.observe(e))},[C]),[x,A]=(0,s.lk)(S),E=(0,s.YN)(t);return(0,o.useEffect)(()=>{C&&x.current&&(C.disconnect(),m.current=!1,C.observe(x.current))},[x,C]),(0,o.useEffect)(()=>(c({type:p.RegisterDroppable,element:{id:i,key:a,disabled:n,node:x,rect:f,data:E}}),()=>c({type:p.UnregisterDroppable,key:a,id:i})),[i]),(0,o.useEffect)(()=>{n!==h.current.disabled&&(c({type:p.SetDroppableDisabled,id:i,key:a,disabled:n}),h.current.disabled=n)},[i,a,n,c]),{active:l,rect:f,isOver:(null==d?void 0:d.id)===i,node:x,over:d,setNodeRef:A}}function Ze(e){let{animation:t,children:n}=e;const[r,a]=(0,o.useState)(null),[l,c]=(0,o.useState)(null),d=(0,s.ZC)(n);return n||r||!d||a(d),(0,s.Es)(()=>{if(!l)return;const e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;null!=e&&null!=n?Promise.resolve(t(n,l)).then(()=>{a(null)}):a(null)},[t,r,l]),i().createElement(i().Fragment,null,n,r?(0,o.cloneElement)(r,{ref:c}):null)}const Ge={x:0,y:0,scaleX:1,scaleY:1};function Ke(e){let{children:t}=e;return i().createElement(je.Provider,{value:Oe},i().createElement(Le.Provider,{value:Ge},t))}const Ye={position:"fixed",touchAction:"none"},Qe=e=>(0,s.kx)(e)?"transform 250ms ease":void 0,Je=(0,o.forwardRef)((e,t)=>{let{as:n,activatorEvent:o,adjustScale:r,children:a,className:l,rect:c,style:d,transform:u,transition:p=Qe}=e;if(!c)return null;const h=r?u:{...u,scaleX:1,scaleY:1},m={...Ye,width:c.width,height:c.height,top:c.top,left:c.left,transform:s.Ks.Transform.toString(h),transformOrigin:r&&o?v(o,c):void 0,transition:"function"===typeof p?p(o):p,...d};return i().createElement(n,{className:l,style:m,ref:t},a)}),Xe=e=>t=>{let{active:n,dragOverlay:o}=t;const i={},{styles:r,className:s}=e;if(null!=r&&r.active)for(const[e,a]of Object.entries(r.active))void 0!==a&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,a));if(null!=r&&r.dragOverlay)for(const[e,a]of Object.entries(r.dragOverlay))void 0!==a&&o.node.style.setProperty(e,a);return null!=s&&s.active&&n.node.classList.add(s.active),null!=s&&s.dragOverlay&&o.node.classList.add(s.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=s&&s.active&&n.node.classList.remove(s.active)}},et={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:s.Ks.Transform.toString(t)},{transform:s.Ks.Transform.toString(n)}]},sideEffects:Xe({styles:{active:{opacity:"0"}}})};function tt(e){let{config:t,draggableNodes:n,droppableContainers:o,measuringConfiguration:i}=e;return(0,s._q)((e,r)=>{if(null===t)return;const a=n.get(e);if(!a)return;const l=a.node.current;if(!l)return;const c=xe(r);if(!c)return;const{transform:d}=(0,s.zk)(r).getComputedStyle(r),u=A(d);if(!u)return;const p="function"===typeof t?t:function(e){const{duration:t,easing:n,sideEffects:o,keyframes:i}={...et,...e};return e=>{let{active:r,dragOverlay:s,transform:a,...l}=e;if(!t)return;const c={x:s.rect.left-r.rect.left,y:s.rect.top-r.rect.top},d={scaleX:1!==a.scaleX?r.rect.width*a.scaleX/s.rect.width:1,scaleY:1!==a.scaleY?r.rect.height*a.scaleY/s.rect.height:1},u={x:a.x-c.x,y:a.y-c.y,...d},p=i({...l,active:r,dragOverlay:s,transform:{initial:a,final:u}}),[h]=p,m=p[p.length-1];if(JSON.stringify(h)===JSON.stringify(m))return;const f=null==o?void 0:o({active:r,dragOverlay:s,...l}),g=s.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{g.onfinish=()=>{null==f||f(),e()}})}}(t);return V(l,i.draggable.measure),p({active:{id:e,data:a.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:r,rect:i.dragOverlay.measure(c)},droppableContainers:o,measuringConfiguration:i,transform:u})})}let nt=0;function ot(e){return(0,o.useMemo)(()=>{if(null!=e)return nt++,nt},[e])}const it=i().memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:s,transition:a,modifiers:l,wrapperElement:c="div",className:d,zIndex:u=999}=e;const{activatorEvent:p,active:h,activeNodeRect:m,containerNodeRect:f,draggableNodes:g,droppableContainers:v,dragOverlay:b,over:y,measuringConfiguration:w,scrollableAncestors:C,scrollableAncestorRects:S,windowRect:x}=ze(),A=(0,o.useContext)(Le),E=ot(null==h?void 0:h.id),_=Me(l,{activatorEvent:p,active:h,activeNodeRect:m,containerNodeRect:f,draggingNodeRect:b.rect,over:y,overlayNodeRect:b.rect,scrollableAncestors:C,scrollableAncestorRects:S,transform:A,windowRect:x}),I=fe(m),T=tt({config:r,draggableNodes:g,droppableContainers:v,measuringConfiguration:w}),O=I?b.setRef:void 0;return i().createElement(Ke,null,i().createElement(Ze,{animation:T},h&&E?i().createElement(Je,{key:E,id:h.id,ref:O,as:c,activatorEvent:p,adjustScale:t,className:d,transition:a,rect:I,style:{zIndex:u,...s},transform:_},n):null))})},43627:(e,t,n)=>{"use strict";n.d(t,{be:()=>a,gB:()=>f,gl:()=>S,m$:()=>u});var o=n(31099),i=n.n(o),r=n(15871),s=n(74979);function a(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function l(e,t){return e.reduce((e,n,o)=>{const i=t.get(n);return i&&(e[o]=i),e},Array(e.length))}function c(e){return null!==e&&e>=0}const d={scaleX:1,scaleY:1},u=e=>{var t;let{rects:n,activeNodeRect:o,activeIndex:i,overIndex:r,index:s}=e;const a=null!=(t=n[i])?t:o;if(!a)return null;const l=function(e,t,n){const o=e[t],i=e[t-1],r=e[t+1];if(!o||!i&&!r)return 0;if(n<t)return i?o.left-(i.left+i.width):r.left-(o.left+o.width);return r?r.left-(o.left+o.width):o.left-(i.left+i.width)}(n,s,i);if(s===i){const e=n[r];return e?{x:i<r?e.left+e.width-(a.left+a.width):e.left-a.left,y:0,...d}:null}return s>i&&s<=r?{x:-a.width-l,y:0,...d}:s<i&&s>=r?{x:a.width+l,y:0,...d}:{x:0,y:0,...d}};const p=e=>{let{rects:t,activeIndex:n,overIndex:o,index:i}=e;const r=a(t,o,n),s=t[i],l=r[i];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 h="Sortable",m=i().createContext({activeIndex:-1,containerId:h,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:p,disabled:{draggable:!1,droppable:!1}});function f(e){let{children:t,id:n,items:a,strategy:c=p,disabled:d=!1}=e;const{active:u,dragOverlay:f,droppableRects:g,over:v,measureDroppableContainers:b}=(0,r.fF)(),y=(0,s.YG)(h,n),w=Boolean(null!==f.rect),C=(0,o.useMemo)(()=>a.map(e=>"object"===typeof e&&"id"in e?e.id:e),[a]),S=null!=u,x=u?C.indexOf(u.id):-1,A=v?C.indexOf(v.id):-1,E=(0,o.useRef)(C),_=!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}(C,E.current),I=-1!==A&&-1===x||_,T=function(e){return"boolean"===typeof e?{draggable:e,droppable:e}:e}(d);(0,s.Es)(()=>{_&&S&&b(C)},[_,C,S,b]),(0,o.useEffect)(()=>{E.current=C},[C]);const O=(0,o.useMemo)(()=>({activeIndex:x,containerId:y,disabled:T,disableTransforms:I,items:C,overIndex:A,useDragOverlay:w,sortedRects:l(C,g),strategy:c}),[x,y,T.draggable,T.droppable,I,C,A,g,w,c]);return i().createElement(m.Provider,{value:O},t)}const g=e=>{let{id:t,items:n,activeIndex:o,overIndex:i}=e;return a(n,o,i).indexOf(t)},v=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:i,items:r,newIndex:s,previousItems:a,previousContainerId:l,transition:c}=e;return!(!c||!o)&&((a===r||i!==s)&&(!!n||s!==i&&t===l))},b={duration:200,easing:"ease"},y="transform",w=s.Ks.Transition.toString({property:y,duration:0,easing:"linear"}),C={roleDescription:"sortable"};function S(e){let{animateLayoutChanges:t=v,attributes:n,disabled:i,data:a,getNewIndex:l=g,id:d,strategy:u,resizeObserverConfig:p,transition:h=b}=e;const{items:f,containerId:S,activeIndex:x,disabled:A,disableTransforms:E,sortedRects:_,overIndex:I,useDragOverlay:T,strategy:O}=(0,o.useContext)(m),j=function(e,t){var n,o;if("boolean"===typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(o=null==e?void 0:e.droppable)?o:t.droppable}}(i,A),R=f.indexOf(d),N=(0,o.useMemo)(()=>({sortable:{containerId:S,index:R,items:f},...a}),[S,a,R,f]),k=(0,o.useMemo)(()=>f.slice(f.indexOf(d)),[f,d]),{rect:P,node:M,isOver:L,setNodeRef:D}=(0,r.zM)({id:d,data:N,disabled:j.droppable,resizeObserverConfig:{updateMeasurementsFor:k,...p}}),{active:B,activatorEvent:F,activeNodeRect:U,attributes:V,setNodeRef:H,listeners:z,isDragging:W,over:$,setActivatorNodeRef:q,transform:Z}=(0,r.PM)({id:d,data:N,attributes:{...C,...n},disabled:j.draggable}),G=(0,s.jn)(D,H),K=Boolean(B),Y=K&&!E&&c(x)&&c(I),Q=!T&&W,J=Q&&Y?Z:null,X=Y?null!=J?J:(null!=u?u:O)({rects:_,activeNodeRect:U,activeIndex:x,overIndex:I,index:R}):null,ee=c(x)&&c(I)?l({id:d,items:f,activeIndex:x,overIndex:I}):R,te=null==B?void 0:B.id,ne=(0,o.useRef)({activeId:te,items:f,newIndex:ee,containerId:S}),oe=f!==ne.current.items,ie=t({active:B,containerId:S,isDragging:W,isSorting:K,id:d,index:R,items:f,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:h,wasDragging:null!=ne.current.activeId}),re=function(e){let{disabled:t,index:n,node:i,rect:a}=e;const[l,c]=(0,o.useState)(null),d=(0,o.useRef)(n);return(0,s.Es)(()=>{if(!t&&n!==d.current&&i.current){const e=a.current;if(e){const t=(0,r.Sj)(i.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)&&c(n)}}n!==d.current&&(d.current=n)},[t,n,i,a]),(0,o.useEffect)(()=>{l&&c(null)},[l]),l}({disabled:!ie,index:R,node:M,rect:P});return(0,o.useEffect)(()=>{K&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),S!==ne.current.containerId&&(ne.current.containerId=S),f!==ne.current.items&&(ne.current.items=f)},[K,ee,S,f]),(0,o.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:B,activeIndex:x,attributes:V,data:N,rect:P,index:R,newIndex:ee,items:f,isOver:L,isSorting:K,isDragging:W,listeners:z,node:M,overIndex:I,over:$,setNodeRef:G,setActivatorNodeRef:q,setDroppableNodeRef:D,setDraggableNodeRef:H,transform:null!=re?re:X,transition:function(){if(re||oe&&ne.current.newIndex===R)return w;if(Q&&!(0,s.kx)(F)||!h)return;if(K||ie)return s.Ks.Transition.toString({...h,property:y});return}()}}r.vL.Down,r.vL.Right,r.vL.Up,r.vL.Left},74979:(e,t,n)=>{"use strict";n.d(t,{$$:()=>f,Es:()=>h,KG:()=>v,Ks:()=>I,Ll:()=>a,Re:()=>A,Sw:()=>r,TW:()=>p,WQ:()=>x,YG:()=>C,YN:()=>g,ZC:()=>y,_q:()=>m,ag:()=>O,e_:()=>_,jn:()=>i,kx:()=>E,l6:()=>s,lk:()=>b,sb:()=>d,wz:()=>c,xZ:()=>u,zk:()=>l});var o=n(31099);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}const r="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function s(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function a(e){return"nodeType"in e}function l(e){var t,n;return e?s(e)?e:a(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){const{Document:t}=l(e);return e instanceof t}function d(e){return!s(e)&&e instanceof l(e).HTMLElement}function u(e){return e instanceof l(e).SVGElement}function p(e){return e?s(e)?e.document:a(e)?c(e)?e:d(e)||u(e)?e.ownerDocument:document:document:document}const h=r?o.useLayoutEffect:o.useEffect;function m(e){const t=(0,o.useRef)(e);return h(()=>{t.current=e}),(0,o.useCallback)(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return null==t.current?void 0:t.current(...n)},[])}function f(){const e=(0,o.useRef)(null);return[(0,o.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,o.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function g(e,t){void 0===t&&(t=[e]);const n=(0,o.useRef)(e);return h(()=>{n.current!==e&&(n.current=e)},t),n}function v(e,t){const n=(0,o.useRef)();return(0,o.useMemo)(()=>{const t=e(n.current);return n.current=t,t},[...t])}function b(e){const t=m(e),n=(0,o.useRef)(null),i=(0,o.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,i]}function y(e){const t=(0,o.useRef)();return(0,o.useEffect)(()=>{t.current=e},[e]),t.current}let w={};function C(e,t){return(0,o.useMemo)(()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n},[e,t])}function S(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return o.reduce((t,n)=>{const o=Object.entries(n);for(const[i,r]of o){const n=t[i];null!=n&&(t[i]=n+e*r)}return t},{...t})}}const x=S(1),A=S(-1);function E(e){if(!e)return!1;const{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function _(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 I=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[I.Translate.toString(e),I.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),T="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function O(e){return e.matches(T)?e:e.querySelector(T)}},25815:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var o=n(65047),i=n(40390),r=n(19735),s=n(24534),a=n(50483),l=n(49503),c=n(73716),d=function(e,t,n){for(var o=0,r=0;o=r,r=(0,i.se)(),38===o&&12===r&&(t[n]=1),!(0,i.Sh)(r);)(0,i.K2)();return(0,i.di)(e,i.G1)},u=function(e,t){return(0,i.VF)(function(e,t){var n=-1,o=44;do{switch((0,i.Sh)(o)){case 0:38===o&&12===(0,i.se)()&&(t[n]=1),e[n]+=d(i.G1-1,t,n);break;case 2:e[n]+=(0,i.Tb)(o);break;case 4:if(44===o){e[++n]=58===(0,i.se)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=(0,r.HT)(o)}}while(o=(0,i.K2)());return e}((0,i.c4)(e),t))},p=new WeakMap,h=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=