You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/41358.ba33a5df.async.js

1 line
52 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[41358],{80205:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(5891),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(88853),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},87512:function(e,t,n){"use strict";n.d(t,{LB:function(){return Le},g4:function(){return J},VK:function(){return E},Cj:function(){return $e},O1:function(){return Fe},Zj:function(){return Ue}});var r=n(59301),o=n(4676),i=n(35241);const a={display:"none"};function l(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:a},n)}function c(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return r.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},n)}const s=(0,r.createContext)(null);const u={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},d={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function f(e){let{announcements:t=d,container:n,hiddenTextDescribedById:a,screenReaderInstructions:f=u}=e;const{announce:h,announcement:g}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),v=(0,i.Ld)("DndLiveRegion"),[p,b]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{b(!0)}),[]),function(e){const t=(0,r.useContext)(s);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;h(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&h(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;h(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;h(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;h(t.onDragCancel({active:n,over:r}))}})),[h,t])),!p)return null;const m=r.createElement(r.Fragment,null,r.createElement(l,{id:a,value:f.draggable}),r.createElement(c,{id:v,announcement:g}));return n?(0,o.createPortal)(m,n):m}var h;function g(){}!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 v=Object.freeze({x:0,y:0});function p(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function b(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const m=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=b(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(p)};function y(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:v}function w(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 x=w(1);function C(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 D={ignoreTransform:!1};function E(e,t){void 0===t&&(t=D);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=C(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,c=e.left-a-(1-o)*parseFloat(n),s=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:s,right:c+u,bottom:s+d,left:c}}(n,t,r))}const{top:r,left:o,width:a,height:l,bottom:c,right:s}=n;return{top:r,left:o,width:a,height:l,bottom:c,right:s}}function R(e){return E(e,{ignoreTransform:!0})}function S(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 I(e){const[t]=S(e,1);return null!=t?t:null}function M(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 A(e){return(0,i.FJ)(e)?e.scrollX:e.scrollLeft}function N(e){return(0,i.FJ)(e)?e.scrollY:e.scrollTop}function O(e){return{x:A(e),y:N(e)}}var k;function B(e){return!(!i.Nq||!e)&&e===document.scrollingElement}function T(e){const t={x:0,y:0},n=B(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"}(k||(k={}));const L={x:.2,y:.2};function z(e,t,n,r,o){let{top:i,left:a,right:l,bottom:c}=n;void 0===r&&(r=10),void 0===o&&(o=L);const{isTop:s,isBottom:u,isLeft:d,isRight:f}=T(e),h={x:0,y:0},g={x:0,y:0},v=t.height*o.y,p=t.width*o.x;return!s&&i<=t.top+v?(h.y=k.Backward,g.y=r*Math.abs((t.top+v-i)/v)):!u&&c>=t.bottom-v&&(h.y=k.Forward,g.y=r*Math.abs((t.bottom-v-c)/v)),!f&&l>=t.right-p?(h.x=k.Forward,g.x=r*Math.abs((t.right-p-l)/p)):!d&&a<=t.left+p&&(h.x=k.Backward,g.x=r*Math.abs((t.left+p-a)/p)),{direction:h,speed:g}}function j(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 F(e){return e.reduce(((e,t)=>(0,i.IH)(e,O(t))),v)}function $(e,t){if(void 0===t&&(t=E),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);I(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const P=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+A(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+N(t)),0)}]];class U{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=S(t),r=F(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of P)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class X{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 H(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 W,J;function Y(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"}(W||(W={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(J||(J={}));const G={start:[J.Space,J.Enter],cancel:[J.Esc],end:[J.Space,J.Enter]},q=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case J.Right:return{...n,x:n.x+25};case J.Left:return{...n,x:n.x-25};case J.Down:return{...n,y:n.y+25};case J.Up:return{...n,y:n.y-25}}};class Z{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 X((0,i.r3)(t)),this.windowListeners=new X((0,i.Jj)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(W.Resize,this.handleCancel),this.windowListeners.add(W.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(W.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&$(n),t(v)}handleKeyDown(e){if((0,i.vd)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=G,coordinateGetter:a=q,scrollBehavior:l="smooth"}=r,{code:c}=e;if(o.end.includes(c))return void this.handleEnd(e);if(o.cancel.includes(c))return void this.handleCancel(e);const{collisionRect:s}=n.current,u=s?{x:s.left,y:s.top}:v;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=(0,i.$X)(d,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:a,isLeft:c,isBottom:s,maxScroll:u,minScroll:f}=T(n),h=j(n),g={x:Math.min(o===J.Right?h.right-h.width/2:h.right,Math.max(o===J.Right?h.left:h.left+h.width/2,d.x)),y:Math.min(o===J.Down?h.bottom-h.height/2:h.bottom,Math.max(o===J.Down?h.top:h.top+h.height/2,d.y))},v=o===J.Right&&!a||o===J.Left&&!c,p=o===J.Down&&!s||o===J.Up&&!i;if(v&&g.x!==d.x){const e=n.scrollLeft+t.x,i=o===J.Right&&e<=u.x||o===J.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:l});r.x=i?n.scrollLeft-e:o===J.Right?n.scrollLeft-u.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:l});break}if(p&&g.y!==d.y){const e=n.scrollTop+t.y,i=o===J.Down&&e<=u.y||o===J.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:l});r.y=i?n.scrollTop-e:o===J.Down?n.scrollTop-u.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:l});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 V(e){return Boolean(e&&"distance"in e)}function _(e){return Boolean(e&&"delay"in e)}Z.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=G,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 Q{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 X(this.document),this.listeners=new X(n),this.windowListeners=new X((0,i.Jj)(a)),this.initialCoordinates=null!=(r=(0,i.DC)(o))?r:v,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(W.Resize,this.handleCancel),this.windowListeners.add(W.DragStart,Y),this.windowListeners.add(W.VisibilityChange,this.handleCancel),this.windowListeners.add(W.ContextMenu,Y),this.documentListeners.add(W.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(_(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(V(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(W.Click,K,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(W.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:a,options:{activationConstraint:l}}=o;if(!r)return;const c=null!=(t=(0,i.DC)(e))?t:v,s=(0,i.$X)(r,c);if(!n&&l){if(V(l)){if(null!=l.tolerance&&H(s,l.tolerance))return this.handleCancel();if(H(s,l.distance))return this.handleStart()}return _(l)&&H(s,l.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),a(c)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===J.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ee={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class te extends Q{constructor(e){const{event:t}=e,n=(0,i.r3)(t.target);super(e,ee,n)}}te.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 ne={move:{name:"mousemove"},end:{name:"mouseup"}};var re;!function(e){e[e.RightClick=2]="RightClick"}(re||(re={}));(class extends Q{constructor(e){super(e,ne,(0,i.r3)(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==re.RightClick&&(null==r||r({event:n}),!0)}}];const oe={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var ie,ae;function le(e){let{acceleration:t,activator:n=ie.Pointer,canScroll:o,draggingRect:a,enabled:l,interval:c=5,order:s=ae.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:f,delta:h,threshold:g}=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 ce;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[k.Backward]:e.x[k.Backward]||-1===o.x,[k.Forward]:e.x[k.Forward]||1===o.x},y:{[k.Backward]:e.y[k.Backward]||-1===o.y,[k.Forward]:e.y[k.Forward]||1===o.y}}}),[n,t,r])}({delta:h,disabled:!l}),[p,b]=(0,i.Yz)(),m=(0,r.useRef)({x:0,y:0}),y=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case ie.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case ie.DraggableRect:return a}}),[n,a,u]),x=(0,r.useRef)(null),C=(0,r.useCallback)((()=>{const e=x.current;if(!e)return;const t=m.current.x*y.current.x,n=m.current.y*y.current.y;e.scrollBy(t,n)}),[]),D=(0,r.useMemo)((()=>s===ae.TreeOrder?[...d].reverse():d),[s,d]);(0,r.useEffect)((()=>{if(l&&d.length&&w){for(const e of D){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}=z(e,r,w,t,g);for(const e of["x","y"])v[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return b(),x.current=e,p(C,c),m.current=a,void(y.current=i)}m.current={x:0,y:0},y.current={x:0,y:0},b()}else b()}),[t,C,o,b,l,c,JSON.stringify(w),JSON.stringify(v),p,d,D,f,JSON.stringify(g)])}(class extends Q{constructor(e){super(e,oe)}static setup(){return window.addEventListener(oe.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(oe.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(ie||(ie={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(ae||(ae={}));const ce={x:{[k.Backward]:!1,[k.Forward]:!1},y:{[k.Backward]:!1,[k.Forward]:!1}};var se,ue;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(se||(se={})),function(e){e.Optimized="optimized"}(ue||(ue={}));const de=new Map;function fe(e,t){return(0,i.Gj)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function he(e){let{callback:t,disabled:n}=e;const o=(0,i.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}function ge(e){return new U(E(e),e)}function ve(e,t,n){void 0===t&&(t=ge);const[o,a]=(0,r.useState)(null);function l(){a((r=>{if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i}))}const c=function(e){let{callback:t,disabled:n}=e;const o=(0,i.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){l();break}}}}),s=he({callback:l});return(0,i.LI)((()=>{l(),e?(null==s||s.observe(e),null==c||c.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==c||c.disconnect())}),[e]),o}const pe=[];function be(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!==v;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,i.$X)(e,n.current):v}function me(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const ye=[];function we(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 xe=[{sensor:te,options:{}},{sensor:Z,options:{}}],Ce={current:{}},De={draggable:{measure:R},droppable:{measure:R,strategy:se.WhileDragging,frequency:ue.Optimized},dragOverlay:{measure:E}};class Ee 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 Re={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ee,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:g},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:De,measureDroppableContainers:g,windowRect:null,measuringScheduled:!1},Se={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:g,draggableNodes:new Map,over:null,measureDroppableContainers:g},Ie=(0,r.createContext)(Se),Me=(0,r.createContext)(Re);function Ae(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ee}}}function Ne(e,t){switch(t.type){case h.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case h.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case h.DragEnd:case h.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case h.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Ee(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 Ee(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 Ee(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Oe(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:a}=(0,r.useContext)(Ie),l=(0,i.D9)(o),c=(0,i.D9)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!o&&l&&null!=c){if(!(0,i.vd)(l))return;if(document.activeElement===l.target)return;const e=a.get(c);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,c,l]),null}function ke(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Be=(0,r.createContext)({...v,scaleX:1,scaleY:1});var Te;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Te||(Te={}));const Le=(0,r.memo)((function(e){var t,n,a,l;let{id:c,accessibility:u,autoScroll:d=!0,children:g,sensors:p=xe,collisionDetection:b=m,measuring:w,modifiers:C,...D}=e;const R=(0,r.useReducer)(Ne,void 0,Ae),[A,N]=R,[k,T]=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]}(),[L,z]=(0,r.useState)(Te.Uninitialized),j=L===Te.Initialized,{draggable:{active:$,nodes:P,translate:X},droppable:{containers:H}}=A,W=null!=$?P.get($):null,J=(0,r.useRef)({initial:null,translated:null}),Y=(0,r.useMemo)((()=>{var e;return null!=$?{id:$,data:null!=(e=null==W?void 0:W.data)?e:Ce,rect:J}:null}),[$,W]),K=(0,r.useRef)(null),[G,q]=(0,r.useState)(null),[Z,V]=(0,r.useState)(null),_=(0,i.Ey)(D,Object.values(D)),Q=(0,i.Ld)("DndDescribedBy",c),ee=(0,r.useMemo)((()=>H.getEnabled()),[H]),te=(ne=w,(0,r.useMemo)((()=>({draggable:{...De.draggable,...null==ne?void 0:ne.draggable},droppable:{...De.droppable,...null==ne?void 0:ne.droppable},dragOverlay:{...De.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[l,c]=(0,r.useState)(null),{frequency:s,measure:u,strategy:d}=a,f=(0,r.useRef)(e),h=function(){switch(d){case se.Always:return!1;case se.BeforeDragging:return n;default:return!n}}(),g=(0,i.Ey)(h),v=(0,r.useCallback)((function(e){void 0===e&&(e=[]),g.current||c((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[g]),p=(0,r.useRef)(null),b=(0,i.Gj)((t=>{if(h&&!n)return de;if(!t||t===de||f.current!==e||null!=l){const t=new Map;for(let n of e){if(!n)continue;if(l&&l.length>0&&!l.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new U(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,l,n,h,u]);return(0,r.useEffect)((()=>{f.current=e}),[e]),(0,r.useEffect)((()=>{h||v()}),[n,h]),(0,r.useEffect)((()=>{l&&l.length>0&&c(null)}),[JSON.stringify(l)]),(0,r.useEffect)((()=>{h||"number"!=typeof s||null!==p.current||(p.current=setTimeout((()=>{v(),p.current=null}),s))}),[s,h,v,...o]),{droppableRects:b,measureDroppableContainers:v,measuringScheduled:null!=l}}(ee,{dragging:j,dependencies:[X.x,X.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])}(P,$),ce=(0,r.useMemo)((()=>Z?(0,i.DC)(Z):null),[Z]),ue=function(){const e=!1===(null==G?void 0:G.autoScrollEnabled),t="object"==typeof d?!1===d.enabled:!1===d,n=j&&!e&&!t;if("object"==typeof d)return{...d,enabled:n};return{enabled:n}}(),ge=function(e,t){return fe(e,t)}(ae,te.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:a=!0}=e;const l=(0,r.useRef)(!1),{x:c,y:s}="boolean"==typeof a?{x:a,y:a}:a;(0,i.LI)((()=>{if(!c&&!s||!t)return void(l.current=!1);if(l.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=y(n(e),o);if(c||(r.x=0),s||(r.y=0),l.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=I(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,c,s,o,n])}({activeNode:null!=$?P.get($):null,config:ue.layoutShiftCompensation,initialRect:ge,measure:te.draggable.measure});const Ee=ve(ae,te.draggable.measure,ge),Re=ve(ae?ae.parentElement:null),Se=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ae,collisionRect:null,collisions:null,droppableRects:re,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:H,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Le=H.getNodeFor(null==(t=Se.current.over)?void 0:t.id),ze=function(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),a=he({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])}),l=(0,r.useCallback)((e=>{const n=we(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),o(n?t(n):null)}),[t,a]),[c,s]=(0,i.wm)(l);return(0,r.useMemo)((()=>({nodeRef:c,rect:n,setRef:s})),[n,c,s])}({measure:te.dragOverlay.measure}),je=null!=(n=ze.nodeRef.current)?n:ae,Fe=j?null!=(a=ze.rect)?a:Ee:null,$e=Boolean(ze.nodeRef.current&&ze.rect),Pe=y(Ue=$e?null:Ee,fe(Ue));var Ue;const Xe=me(je?(0,i.Jj)(je):null),He=function(e){const t=(0,r.useRef)(e),n=(0,i.Gj)((n=>e?n&&n!==pe&&e&&t.current&&e.parentNode===t.current.parentNode?n:S(e):pe),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(j?null!=Le?Le:ae:null),We=function(e,t){void 0===t&&(t=E);const[n]=e,o=me(n?(0,i.Jj)(n):null),[a,l]=(0,r.useState)(ye);function c(){l((()=>e.length?e.map((e=>B(e)?o:new U(t(e),e))):ye))}const s=he({callback:c});return(0,i.LI)((()=>{null==s||s.disconnect(),c(),e.forEach((e=>null==s?void 0:s.observe(e)))}),[e]),a}(He),Je=ke(C,{transform:{x:X.x-Pe.x,y:X.y-Pe.y,scaleX:1,scaleY:1},activatorEvent:Z,active:Y,activeNodeRect:Ee,containerNodeRect:Re,draggingNodeRect:Fe,over:Se.current.over,overlayNodeRect:ze.rect,scrollableAncestors:He,scrollableAncestorRects:We,windowRect:Xe}),Ye=ce?(0,i.IH)(ce,X):null,Ke=function(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),a=(0,r.useCallback)((e=>{const t=M(e.target);t&&n((e=>e?(e.set(t,O(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=M(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,O(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=M(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)),v):F(e):v),[e,t])}(He),Ge=be(Ke),qe=be(Ke,[Ee]),Ze=(0,i.IH)(Je,Ge),Ve=Fe?x(Fe,Je):null,_e=Y&&Ve?b({active:Y,collisionRect:Ve,droppableRects:re,droppableContainers:ee,pointerCoordinates:Ye}):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}}($e?Je:(0,i.IH)(Je,qe),null!=(l=null==et?void 0:et.rect)?l:null,Ee),rt=(0,r.useRef)(null),ot=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==K.current)return;const i=P.get(K.current);if(!i)return;const a=e.nativeEvent,l=new n({active:K.current,activeNode:i,event:a,options:r,context:Se,onStart(e){const t=K.current;if(null==t)return;const n=P.get(t);if(!n)return;const{onDragStart:r}=_.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:J}};(0,o.unstable_batchedUpdates)((()=>{null==r||r(i),z(Te.Initializing),N({type:h.DragStart,initialCoordinates:e,active:t}),k({type:"onDragStart",event:i}),q(rt.current),V(a)}))},onMove(e){N({type:h.DragMove,coordinates:e})},onEnd:c(h.DragEnd),onCancel:c(h.DragCancel)});function c(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=Se.current;let l=null;if(t&&i){const{cancelDrop:o}=_.current;if(l={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===h.DragEnd&&"function"==typeof o){await Promise.resolve(o(l))&&(e=h.DragCancel)}}K.current=null,(0,o.unstable_batchedUpdates)((()=>{N({type:e}),z(Te.Uninitialized),tt(null),q(null),V(null),rt.current=null;const t=e===h.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=_.current[t];null==e||e(l),k({type:t,event:l})}}))}}rt.current=l}),[P]),it=(0,r.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=P.get(r);if(null!==K.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},K.current=r,ot(n,t))}),[P,ot]),at=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])}(p,it);!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})))}(p),(0,i.LI)((()=>{Ee&&L===Te.Initializing&&z(Te.Initialized)}),[Ee,L]),(0,r.useEffect)((()=>{const{onDragMove:e}=_.current,{active:t,activatorEvent:n,collisions:r,over:i}=Se.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:Ze.x,y:Ze.y},over:i};(0,o.unstable_batchedUpdates)((()=>{null==e||e(a),k({type:"onDragMove",event:a})}))}),[Ze.x,Ze.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=Se.current;if(!e||null==K.current||!t||!i)return;const{onDragOver:a}=_.current,l=r.get(Qe),c=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,s={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:c};(0,o.unstable_batchedUpdates)((()=>{tt(c),null==a||a(s),k({type:"onDragOver",event:s})}))}),[Qe]),(0,i.LI)((()=>{Se.current={activatorEvent:Z,active:Y,activeNode:ae,collisionRect:Ve,collisions:_e,droppableRects:re,draggableNodes:P,draggingNode:je,draggingNodeRect:Fe,droppableContainers:H,over:et,scrollableAncestors:He,scrollAdjustedTranslate:Ze},J.current={initial:Fe,translated:Ve}}),[Y,ae,_e,Ve,P,je,Fe,re,H,et,He,Ze]),le({...ue,delta:X,draggingRect:Ve,pointerCoordinates:Ye,scrollableAncestors:He,scrollableAncestorRects:We});const lt=(0,r.useMemo)((()=>({active:Y,activeNode:ae,activeNodeRect:Ee,activatorEvent:Z,collisions:_e,containerNodeRect:Re,dragOverlay:ze,draggableNodes:P,droppableContainers:H,droppableRects:re,over:et,measureDroppableContainers:oe,scrollableAncestors:He,scrollableAncestorRects:We,measuringConfiguration:te,measuringScheduled:ie,windowRect:Xe})),[Y,ae,Ee,Z,_e,Re,ze,P,H,re,et,oe,He,We,te,ie,Xe]),ct=(0,r.useMemo)((()=>({activatorEvent:Z,activators:at,active:Y,activeNodeRect:Ee,ariaDescribedById:{draggable:Q},dispatch:N,draggableNodes:P,over:et,measureDroppableContainers:oe})),[Z,at,Y,Ee,N,Q,P,et,oe]);return r.createElement(s.Provider,{value:T},r.createElement(Ie.Provider,{value:ct},r.createElement(Me.Provider,{value:lt},r.createElement(Be.Provider,{value:nt},g)),r.createElement(Oe,{disabled:!1===(null==u?void 0:u.restoreFocus)})),r.createElement(f,{...u,hiddenTextDescribedById:Q}))})),ze=(0,r.createContext)(null),je="button";function Fe(e){let{id:t,data:n,disabled:o=!1,attributes:a}=e;const l=(0,i.Ld)("Draggable"),{activators:c,activatorEvent:s,active:u,activeNodeRect:d,ariaDescribedById:f,draggableNodes:h,over:g}=(0,r.useContext)(Ie),{role:v=je,roleDescription:p="draggable",tabIndex:b=0}=null!=a?a:{},m=(null==u?void 0:u.id)===t,y=(0,r.useContext)(m?Be:ze),[w,x]=(0,i.wm)(),[C,D]=(0,i.wm)(),E=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])}(c,t),R=(0,i.Ey)(n);(0,i.LI)((()=>(h.set(t,{id:t,key:l,node:w,activatorNode:C,data:R}),()=>{const e=h.get(t);e&&e.key===l&&h.delete(t)})),[h,t]);return{active:u,activatorEvent:s,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:v,tabIndex:b,"aria-disabled":o,"aria-pressed":!(!m||v!==je)||void 0,"aria-roledescription":p,"aria-describedby":f.draggable})),[o,v,b,m,p,f.draggable]),isDragging:m,listeners:o?void 0:E,node:w,over:g,setNodeRef:x,setActivatorNodeRef:D,transform:y}}function $e(){return(0,r.useContext)(Me)}const Pe={timeout:25};function Ue(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:a}=e;const l=(0,i.Ld)("Droppable"),{active:c,dispatch:s,over:u,measureDroppableContainers:d}=(0,r.useContext)(Ie),f=(0,r.useRef)({disabled:n}),g=(0,r.useRef)(!1),v=(0,r.useRef)(null),p=(0,r.useRef)(null),{disabled:b,updateMeasurementsFor:m,timeout:y}={...Pe,...a},w=(0,i.Ey)(null!=m?m:o),x=he({callback:(0,r.useCallback)((()=>{g.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),p.current=null}),y)):g.current=!0}),[y]),disabled:b||!c}),C=(0,r.useCallback)(((e,t)=>{x&&(t&&(x.unobserve(t),g.current=!1),e&&x.observe(e))}),[x]),[D,E]=(0,i.wm)(C),R=(0,i.Ey)(t);return(0,r.useEffect)((()=>{x&&D.current&&(x.disconnect(),g.current=!1,x.observe(D.current))}),[D,x]),(0,r.useEffect)((()=>(s({type:h.RegisterDroppable,element:{id:o,key:l,disabled:n,node:D,rect:v,data:R}}),()=>s({type:h.UnregisterDroppable,key:l,id:o}))),[o]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(s({type:h.SetDroppableDisabled,id:o,key:l,disabled:n}),f.current.disabled=n)}),[o,l,n,s]),{active:c,rect:v,isOver:(null==u?void 0:u.id)===o,node:D,over:u,setNodeRef:E}}},18257:function(e,t,n){"use strict";n.d(t,{DL:function(){return r}});n(35241);const r=e=>{let{transform:t}=e;return{...t,x:0}}},19719:function(e,t,n){"use strict";n.d(t,{Fo:function(){return g},Rp:function(){return a},nB:function(){return x},qw:function(){return d}});var r=n(59301),o=n(87512),i=n(35241);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 l(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function c(e){return null!==e&&e>=0}const s=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=a(t,r,n),l=t[o],c=i[o];return c&&l?{x:c.left-l.left,y:c.top-l.top,scaleX:c.width/l.width,scaleY:c.height/l.height}:null},u={scaleX:1,scaleY:1},d=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const l=null!=(t=i[n])?t:r;if(!l)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(l.top+l.height):e.top-l.top,...u}:null}const c=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];if(!r)return 0;if(n<t)return o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0;return i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(i,o,n);return o>n&&o<=a?{x:0,y:-l.height-c,...u}:o<n&&o>=a?{x:0,y:l.height+c,...u}:{x:0,y:0,...u}};const f="Sortable",h=r.createContext({activeIndex:-1,containerId:f,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:s,disabled:{draggable:!1,droppable:!1}});function g(e){let{children:t,id:n,items:a,strategy:c=s,disabled:u=!1}=e;const{active:d,dragOverlay:g,droppableRects:v,over:p,measureDroppableContainers:b}=(0,o.Cj)(),m=(0,i.Ld)(f,n),y=Boolean(null!==g.rect),w=(0,r.useMemo)((()=>a.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[a]),x=null!=d,C=d?w.indexOf(d.id):-1,D=p?w.indexOf(p.id):-1,E=(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,E.current),S=-1!==D&&-1===C||R,I=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(u);(0,i.LI)((()=>{R&&x&&b(w)}),[R,w,x,b]),(0,r.useEffect)((()=>{E.current=w}),[w]);const M=(0,r.useMemo)((()=>({activeIndex:C,containerId:m,disabled:I,disableTransforms:S,items:w,overIndex:D,useDragOverlay:y,sortedRects:l(w,v),strategy:c})),[C,m,I.draggable,I.droppable,S,w,D,v,y,c]);return r.createElement(h.Provider,{value:M},t)}const v=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return a(n,r,o).indexOf(t)},p=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:c,transition:s}=e;return!(!s||!r)&&((l===i||o!==a)&&(!!n||a!==o&&t===c))},b={duration:200,easing:"ease"},m="transform",y=i.ux.Transition.toString({property:m,duration:0,easing:"linear"}),w={roleDescription:"sortable"};function x(e){let{animateLayoutChanges:t=p,attributes:n,disabled:a,data:l,getNewIndex:s=v,id:u,strategy:d,resizeObserverConfig:f,transition:g=b}=e;const{items:x,containerId:C,activeIndex:D,disabled:E,disableTransforms:R,sortedRects:S,overIndex:I,useDragOverlay:M,strategy:A}=(0,r.useContext)(h),N=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,E),O=x.indexOf(u),k=(0,r.useMemo)((()=>({sortable:{containerId:C,index:O,items:x},...l})),[C,l,O,x]),B=(0,r.useMemo)((()=>x.slice(x.indexOf(u))),[x,u]),{rect:T,node:L,isOver:z,setNodeRef:j}=(0,o.Zj)({id:u,data:k,disabled:N.droppable,resizeObserverConfig:{updateMeasurementsFor:B,...f}}),{active:F,activatorEvent:$,activeNodeRect:P,attributes:U,setNodeRef:X,listeners:H,isDragging:W,over:J,setActivatorNodeRef:Y,transform:K}=(0,o.O1)({id:u,data:k,attributes:{...w,...n},disabled:N.draggable}),G=(0,i.HB)(j,X),q=Boolean(F),Z=q&&!R&&c(D)&&c(I),V=!M&&W,_=V&&Z?K:null,Q=Z?null!=_?_:(null!=d?d:A)({rects:S,activeNodeRect:P,activeIndex:D,overIndex:I,index:O}):null,ee=c(D)&&c(I)?s({id:u,items:x,activeIndex:D,overIndex:I}):O,te=null==F?void 0:F.id,ne=(0,r.useRef)({activeId:te,items:x,newIndex:ee,containerId:C}),re=x!==ne.current.items,oe=t({active:F,containerId:C,isDragging:W,isSorting:q,id:u,index:O,items:x,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:g,wasDragging:null!=ne.current.activeId}),ie=function(e){let{disabled:t,index:n,node:a,rect:l}=e;const[c,s]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,i.LI)((()=>{if(!t&&n!==u.current&&a.current){const e=l.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)&&s(n)}}n!==u.current&&(u.current=n)}),[t,n,a,l]),(0,r.useEffect)((()=>{c&&s(null)}),[c]),c}({disabled:!oe,index:O,node:L,rect:T});return(0,r.useEffect)((()=>{q&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),C!==ne.current.containerId&&(ne.current.containerId=C),x!==ne.current.items&&(ne.current.items=x)}),[q,ee,C,x]),(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:F,activeIndex:D,attributes:U,data:k,rect:T,index:O,newIndex:ee,items:x,isOver:z,isSorting:q,isDragging:W,listeners:H,node:L,overIndex:I,over:J,setNodeRef:G,setActivatorNodeRef:Y,setDroppableNodeRef:j,setDraggableNodeRef:X,transform:null!=ie?ie:Q,transition:function(){if(ie||re&&ne.current.newIndex===O)return y;if(V&&!(0,i.vd)($)||!g)return;if(q||oe)return i.ux.Transition.toString({...g,property:m});return}()}}o.g4.Down,o.g4.Right,o.g4.Up,o.g4.Left},35241:function(e,t,n){"use strict";n.d(t,{$X:function(){return E},D9:function(){return y},DC:function(){return S},Ey:function(){return p},FJ:function(){return a},Gj:function(){return b},HB:function(){return o},IH:function(){return D},Jj:function(){return c},LI:function(){return h},Ld:function(){return x},Nq:function(){return i},Re:function(){return u},UG:function(){return l},Yz:function(){return v},qk:function(){return s},r3:function(){return f},so:function(){return A},ux:function(){return I},vZ:function(){return d},vd:function(){return R},wm:function(){return m},zX:function(){return g}});var r=n(59301);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&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function c(e){var t,n;return e?a(e)?e:l(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function s(e){const{Document:t}=c(e);return e instanceof t}function u(e){return!a(e)&&e instanceof c(e).HTMLElement}function d(e){return e instanceof c(e).SVGElement}function f(e){return e?a(e)?e.document:l(e)?s(e)?e:u(e)||d(e)?e.ownerDocument:document:document:document}const h=i?r.useLayoutEffect:r.useEffect;function g(e){const t=(0,r.useRef)(e);return h((()=>{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 p(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return h((()=>{n.current!==e&&(n.current=e)}),t),n}function b(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function m(e){const t=g(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 x(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 C(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const D=C(1),E=C(-1);function R(e){if(!e)return!1;const{KeyboardEvent:t}=c(e.target);return t&&e instanceof t}function S(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=c(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:r}=e;return t+" "+n+"ms "+r}}}),M="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function A(e){return e.matches(M)?e:e.querySelector(M)}},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(92310),o=n.n(r),i=n(59301),a=n(36355),l=n(17313),c=n(83116),s=n(37613);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:c}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:c,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,c.Z)("Divider",(e=>{const t=(0,s.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var h=e=>{const{getPrefixCls:t,direction:n,divider:r}=i.useContext(a.E_),{prefixCls:l,type:c="horizontal",orientation:s="center",orientationMargin:u,className:h,rootClassName:g,children:v,dashed:p,plain:b,style:m}=e,y=f(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),w=t("divider",l),[x,C]=d(w),D=s.length>0?`-${s}`:s,E=!!v,R="left"===s&&null!=u,S="right"===s&&null!=u,I=o()(w,null==r?void 0:r.className,C,`${w}-${c}`,{[`${w}-with-text`]:E,[`${w}-with-text${D}`]:E,[`${w}-dashed`]:!!p,[`${w}-plain`]:!!b,[`${w}-rtl`]:"rtl"===n,[`${w}-no-default-orientation-margin-left`]:R,[`${w}-no-default-orientation-margin-right`]:S},h,g),M=i.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),A=Object.assign(Object.assign({},R&&{marginLeft:M}),S&&{marginRight:M});return x(i.createElement("div",Object.assign({className:I,style:Object.assign(Object.assign({},null==r?void 0:r.style),m)},y,{role:"separator"}),v&&"vertical"!==c&&i.createElement("span",{className:`${w}-inner-text`,style:A},v)))}},24334:function(e,t,n){var r,o;o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:this,e.exports=function(n){"use strict";var o,i=(n=n||{}).Base64,a="2.6.4",l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(l),s=String.fromCharCode,u=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?s(192|t>>>6)+s(128|63&t):s(224|t>>>12&15)+s(128|t>>>6&63)+s(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return s(240|t>>>18&7)+s(128|t>>>12&63)+s(128|t>>>6&63)+s(128|63&t)},d=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,f=function(e){return e.replace(d,u)},h=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[l.charAt(n>>>18),l.charAt(n>>>12&63),t>=2?"=":l.charAt(n>>>6&63),t>=1?"=":l.charAt(63&n)].join("")},g=n.btoa&&"function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,h)},v=function(e){return g(f(String(e)))},p=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},b=function(e,t){return t?p(v(e)):v(e)},m=function(e){return b(e,!0)};n.Uint8Array&&(o=function(e,t){for(var n="",r=0,o=e.length;r<o;r+=3){var i=e[r],a=e[r+1],c=e[r+2],s=i<<16|a<<8|c;n+=l.charAt(s>>>18)+l.charAt(s>>>12&63)+(void 0!==a?l.charAt(s>>>6&63):"=")+(void 0!==c?l.charAt(63&s):"=")}return t?p(n):n});var y,w=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,x=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return s(55296+(t>>>10))+s(56320+(1023&t));case 3:return s((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return s((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},C=function(e){return e.replace(w,x)},D=function(e){var t=e.length,n=t%4,r=(t>0?c[e.charAt(0)]<<18:0)|(t>1?c[e.charAt(1)]<<12:0)|(t>2?c[e.charAt(2)]<<6:0)|(t>3?c[e.charAt(3)]:0),o=[s(r>>>16),s(r>>>8&255),s(255&r)];return o.length-=[0,0,2,1][n],o.join("")},E=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,D)},R=function(e){return E(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},S=function(e){return C(E(e))},I=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},M=function(e){return S(I(e))};n.Uint8Array&&(y=function(e){return Uint8Array.from(R(I(e)),(function(e){return e.charCodeAt(0)}))});var A=function(){var e=n.Base64;return n.Base64=i,e};if(n.Base64={VERSION:a,atob:R,btoa:g,fromBase64:M,toBase64:b,utob:f,encode:b,encodeURI:m,btou:C,decode:M,noConflict:A,fromUint8Array:o,toUint8Array:y},"function"==typeof Object.defineProperty){var N=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",N((function(){return M(this)}))),Object.defineProperty(String.prototype,"toBase64",N((function(e){return b(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",N((function(){return b(this,!0)})))}}return n.Meteor&&(Base64=n.Base64),e.exports?e.exports.Base64=n.Base64:void 0===(r=function(){return n.Base64}.apply(t,[]))||(e.exports=r),{Base64:n.Base64}}(o)}}]);