"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4482],{66181:function(t,e,r){r.d(e,{Z:function(){return o}});var n=r(93828),i=r(52023);function o(t){return(0,i.Z)(1,arguments),(0,n.Z)(t).getFullYear()}},98833:function(t){t.exports=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(i=n;0!==i--;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(i=n;0!==i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!==i--;){var s=o[i];if(!t(e[s],r[s]))return!1}return!0}return e!==e&&r!==r}},10593:function(t,e,r){function n(t,e,r,n){let i=r?r.call(n,t,e):void 0;if(void 0!==i)return!!i;if(t===e)return!0;if("object"!==typeof t||!t||"object"!==typeof e||!e)return!1;const o=Object.keys(t),s=Object.keys(e);if(o.length!==s.length)return!1;const a=Object.prototype.hasOwnProperty.bind(e);for(let c=0;c<o.length;c++){const s=o[c];if(!a(s))return!1;const u=t[s],d=e[s];if(i=r?r.call(n,u,d,s):void 0,!1===i||void 0===i&&u!==d)return!1}return!0}r.d(e,{w:function(){return n}})},74242:function(t,e,r){r.d(e,{J:function(){return a}});var n=r(98833),i=r(97176),o=r(59891);function s(t,e,r){const[s,a]=function(t,e,r){const[s,a]=(0,i.useState)((()=>e(t))),c=(0,i.useCallback)((()=>{const i=e(t);n(s,i)||(a(i),r&&r())}),[s,t,r]);return(0,o.L)(c),[s,c]}(t,e,r);return(0,o.L)((function(){const e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(a,{handlerIds:[e]})}),[t,a]),s}function a(t,e,r){return s(e,t||(()=>({})),(()=>r.reconnect()))}},56067:function(t,e,r){r.d(e,{c:function(){return S}});var n=r(53309),i=r(74242),o=r(24871),s=r(97176);function a(t){return(0,s.useMemo)((()=>t.hooks.dragSource()),[t])}function c(t){return(0,s.useMemo)((()=>t.hooks.dragPreview()),[t])}var u=r(10593),d=r(82741),g=r(37124);class l{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return e&&this.disconnectDragSource(),this.handlerId?t?(e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),e):(this.lastConnectedDragSource=t,e):e}reconnectDragPreview(t=!1){const e=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();r&&this.disconnectDragPreview(),this.handlerId&&(e?r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!(0,u.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!(0,u.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=(0,g.p)({dragSource:(t,e)=>{this.clearDragSource(),this.dragSourceOptions=e||null,(0,d.d)(t)?this.dragSourceRef=t:this.dragSourceNode=t,this.reconnectDragSource()},dragPreview:(t,e)=>{this.clearDragPreview(),this.dragPreviewOptions=e||null,(0,d.d)(t)?this.dragPreviewRef=t:this.dragPreviewNode=t,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}var h=r(62176),f=r(59891);let p=!1,D=!1;class v{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){(0,n.k)(!p,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return p=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{p=!1}}isDragging(){if(!this.sourceId)return!1;(0,n.k)(!D,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return D=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{D=!1}}subscribeToStateChange(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,e){return this.internalMonitor.isOverTarget(t,e)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}var O=r(32387);class I{beginDrag(){const t=this.spec,e=this.monitor;let r=null;return r="object"===typeof t.item?t.item:"function"===typeof t.item?t.item(e):{},null!==r&&void 0!==r?r:null}canDrag(){const t=this.spec,e=this.monitor;return"boolean"===typeof t.canDrag?t.canDrag:"function"!==typeof t.canDrag||t.canDrag(e)}isDragging(t,e){const r=this.spec,n=this.monitor,{isDragging:i}=r;return i?i(n):e===t.getSourceId()}endDrag(){const t=this.spec,e=this.monitor,r=this.connector,{end:n}=t;n&&n(e.getItem(),e),r.reconnect()}constructor(t,e,r){this.spec=t,this.monitor=e,this.connector=r}}function w(t,e,r){const i=(0,h.N)(),o=function(t,e,r){const n=(0,s.useMemo)((()=>new I(t,e,r)),[e,r]);return(0,s.useEffect)((()=>{n.spec=t}),[t]),n}(t,e,r),a=function(t){return(0,s.useMemo)((()=>{const e=t.type;return(0,n.k)(null!=e,"spec.type must be defined"),e}),[t])}(t);(0,f.L)((function(){if(null!=a){const[t,n]=(0,O.w)(a,o,i);return e.receiveHandlerId(t),r.receiveHandlerId(t),n}}),[i,e,r,o,a])}function S(t,e){const r=(0,o.w)(t,e);(0,n.k)(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const u=function(){const t=(0,h.N)();return(0,s.useMemo)((()=>new v(t)),[t])}(),d=function(t,e){const r=(0,h.N)(),n=(0,s.useMemo)((()=>new l(r.getBackend())),[r]);return(0,f.L)((()=>(n.dragSourceOptions=t||null,n.reconnect(),()=>n.disconnectDragSource())),[n,t]),(0,f.L)((()=>(n.dragPreviewOptions=e||null,n.reconnect(),()=>n.disconnectDragPreview())),[n,e]),n}(r.options,r.previewOptions);return w(r,u,d),[(0,i.J)(r.collect,u,d),a(d),c(d)]}},62176:function(t,e,r){r.d(e,{N:function(){return s}});var n=r(53309),i=r(97176),o=r(65887);function s(){const{dragDropManager:t}=(0,i.useContext)(o.L);return(0,n.k)(null!=t,"Expected drag drop context"),t}},56990:function(t,e,r){r.d(e,{L:function(){return I}});var n=r(74242),i=r(24871),o=r(97176);function s(t){return(0,o.useMemo)((()=>t.hooks.dropTarget()),[t])}var a=r(10593),c=r(82741),u=r(37124);class d{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const e=this.dropTarget;this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions)):this.lastConnectedDropTarget=e)}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!(0,a.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=(0,u.p)({dropTarget:(t,e)=>{this.clearDropTarget(),this.dropTargetOptions=e,(0,c.d)(t)?this.dropTargetRef=t:this.dropTargetNode=t,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}var g=r(62176),l=r(59891);var h=r(53309);let f=!1;class p{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}canDrop(){if(!this.targetId)return!1;(0,h.k)(!f,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return f=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{f=!1}}isOver(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}var D=r(32387);class v{canDrop(){const t=this.spec,e=this.monitor;return!t.canDrop||t.canDrop(e.getItem(),e)}hover(){const t=this.spec,e=this.monitor;t.hover&&t.hover(e.getItem(),e)}drop(){const t=this.spec,e=this.monitor;if(t.drop)return t.drop(e.getItem(),e)}constructor(t,e){this.spec=t,this.monitor=e}}function O(t,e,r){const n=(0,g.N)(),i=function(t,e){const r=(0,o.useMemo)((()=>new v(t,e)),[e]);return(0,o.useEffect)((()=>{r.spec=t}),[t]),r}(t,e),s=function(t){const{accept:e}=t;return(0,o.useMemo)((()=>((0,h.k)(null!=t.accept,"accept must be defined"),Array.isArray(e)?e:[e])),[e])}(t);(0,l.L)((function(){const[t,o]=(0,D.n)(s,i,n);return e.receiveHandlerId(t),r.receiveHandlerId(t),o}),[n,e,i,r,s.map((t=>t.toString())).join("|")])}function I(t,e){const r=(0,i.w)(t,e),a=function(){const t=(0,g.N)();return(0,o.useMemo)((()=>new p(t)),[t])}(),c=function(t){const e=(0,g.N)(),r=(0,o.useMemo)((()=>new d(e.getBackend())),[e]);return(0,l.L)((()=>(r.dropTargetOptions=t||null,r.reconnect(),()=>r.disconnectDropTarget())),[t]),r}(r.options);return O(r,a,c),[(0,n.J)(r.collect,a,c),s(c)]}},59891:function(t,e,r){r.d(e,{L:function(){return i}});var n=r(97176);const i="undefined"!==typeof window?n.useLayoutEffect:n.useEffect},24871:function(t,e,r){r.d(e,{w:function(){return i}});var n=r(97176);function i(t,e){const r=[...e||[]];return null==e&&"function"!==typeof t&&r.push(t),(0,n.useMemo)((()=>"function"===typeof t?t():t),r)}},82741:function(t,e,r){function n(t){return null!==t&&"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}r.d(e,{d:function(){return n}})},32387:function(t,e,r){function n(t,e,r){const n=r.getRegistry(),i=n.addTarget(t,e);return[i,()=>n.removeTarget(i)]}function i(t,e,r){const n=r.getRegistry(),i=n.addSource(t,e);return[i,()=>n.removeSource(i)]}r.d(e,{n:function(){return n},w:function(){return i}})},37124:function(t,e,r){r.d(e,{p:function(){return s}});var n=r(53309),i=r(97176);function o(t){return(e=null,r=null)=>{if(!(0,i.isValidElement)(e)){const n=e;return t(n,r),n}const o=e;!function(t){if("string"===typeof t.type)return;const e=t.type.displayName||t.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}(o);return function(t,e){const r=t.ref;return(0,n.k)("string"!==typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?(0,i.cloneElement)(t,{ref:t=>{a(r,t),a(e,t)}}):(0,i.cloneElement)(t,{ref:e})}(o,r?e=>t(e,r):t)}}function s(t){const e={};return Object.keys(t).forEach((r=>{const n=t[r];if(r.endsWith("Ref"))e[r]=t[r];else{const t=o(n);e[r]=()=>t}})),e}function a(t,e){"function"===typeof t?t(e):t.current=e}}}]);