filesbox/web/dist/32025.fb95a089.async.js
2024-07-26 14:10:54 +08:00

3 lines
55 KiB
JavaScript

(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[32025],{74707:function(Z,P,s){"use strict";s.d(P,{Z:function(){return k}});var p=s(28991),D=s(67294),y={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 64zm-80 600c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z"}}]},name:"pause-circle",theme:"filled"},O=y,E=s(27029),g=function(b,S){return D.createElement(E.Z,(0,p.Z)((0,p.Z)({},b),{},{ref:S,icon:O}))};g.displayName="PauseCircleFilled";var k=D.forwardRef(g)},39144:function(Z,P,s){"use strict";s.d(P,{Z:function(){return k}});var p=s(28991),D=s(67294),y={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 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"},O=y,E=s(27029),g=function(b,S){return D.createElement(E.Z,(0,p.Z)((0,p.Z)({},b),{},{ref:S,icon:O}))};g.displayName="PlayCircleFilled";var k=D.forwardRef(g)},1977:function(Z,P,s){"use strict";s.d(P,{Z:function(){return k}});var p=s(28991),D=s(67294),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"plus-circle",theme:"outlined"},O=y,E=s(27029),g=function(b,S){return D.createElement(E.Z,(0,p.Z)((0,p.Z)({},b),{},{ref:S,icon:O}))};g.displayName="PlusCircleOutlined";var k=D.forwardRef(g)},31045:function(Z,P,s){"use strict";s.d(P,{k:function(){return D}});var p=s(34155);function D(O,E,...g){if(y()&&E===void 0)throw new Error("invariant requires an error message argument");if(!O){let k;if(E===void 0)k=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let T=0;k=new Error(E.replace(/%s/g,function(){return g[T++]})),k.name="Invariant Violation"}throw k.framesToPop=1,k}}function y(){return typeof p!="undefined"&&!0}},63621:function(Z,P,s){"use strict";s.d(P,{w:function(){return p}});function p(D,y,O,E){let g=O?O.call(E,D,y):void 0;if(g!==void 0)return!!g;if(D===y)return!0;if(typeof D!="object"||!D||typeof y!="object"||!y)return!1;const k=Object.keys(D),T=Object.keys(y);if(k.length!==T.length)return!1;const b=Object.prototype.hasOwnProperty.bind(y);for(let S=0;S<k.length;S++){const H=k[S];if(!b(H))return!1;const x=D[H],_=y[H];if(g=O?O.call(E,x,_,H):void 0,g===!1||g===void 0&&x!==_)return!1}return!0}},42222:function(Z,P,s){"use strict";s.d(P,{L:function(){return D}});var p=s(67294),D=(0,p.createContext)({dragDropManager:void 0})},19034:function(Z,P,s){"use strict";s.d(P,{W:function(){return ht}});var p=s(2824),D=s(85893),y=s(14890),O=s(69610),E=s(54941),g=s(31045);function k(e,n,t){return n.split(".").reduce(function(i,u){return i&&i[u]?i[u]:t||null},e)}function T(e,n){return e.filter(function(t){return t!==n})}function b(e){return typeof e=="string"}function S(e){return typeof e=="object"}function H(e,n){var t=new Map,i=function(I){t.set(I,t.has(I)?t.get(I)+1:1)};e.forEach(i),n.forEach(i);var u=[];return t.forEach(function(v,I){v===1&&u.push(I)}),u}function x(e,n){return e.filter(function(t){return n.indexOf(t)>-1})}var _="dnd-core/INIT_COORDS",F="dnd-core/BEGIN_DRAG",W="dnd-core/PUBLISH_DRAG_SOURCE",j="dnd-core/HOVER",Y="dnd-core/DROP",ee="dnd-core/END_DRAG";function ie(e,n){return{type:_,payload:{sourceClientOffset:n||null,clientOffset:e||null}}}var te={type:_,payload:{clientOffset:null,sourceClientOffset:null}};function ae(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},u=i.publishSource,v=u===void 0?!0:u,I=i.clientOffset,N=i.getSourceClientOffset,U=e.getMonitor(),B=e.getRegistry();e.dispatch(ie(I)),oe(t,U,B);var G=w(t,U);if(G==null){e.dispatch(te);return}var de=null;if(I){if(!N)throw new Error("getSourceClientOffset must be defined");se(N),de=N(G)}e.dispatch(ie(I,de));var mt=B.getSource(G),Oe=mt.beginDrag(U,G);if(Oe!=null){ue(Oe),B.pinSource(G);var Dt=B.getSourceType(G);return{type:F,payload:{itemType:Dt,item:Oe,sourceId:G,clientOffset:I||null,sourceClientOffset:de||null,isSourcePublic:!!v}}}}}function oe(e,n,t){(0,g.k)(!n.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(i){(0,g.k)(t.getSource(i),"Expected sourceIds to be registered.")})}function se(e){(0,g.k)(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function ue(e){(0,g.k)(S(e),"Item must be an object.")}function w(e,n){for(var t=null,i=e.length-1;i>=0;i--)if(n.canDragSource(e[i])){t=e[i];break}return t}function m(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function d(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{},i=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable}))),i.forEach(function(u){m(e,u,t[u])})}return e}function l(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=e.getMonitor(),u=e.getRegistry();a(i);var v=f(i);v.forEach(function(I,N){var U=r(I,N,u,i),B={type:Y,payload:{dropResult:d({},t,U)}};e.dispatch(B)})}}function a(e){(0,g.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,g.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function r(e,n,t,i){var u=t.getTarget(e),v=u?u.drop(i,e):void 0;return o(v),typeof v=="undefined"&&(v=n===0?{}:i.getDropResult()),v}function o(e){(0,g.k)(typeof e=="undefined"||S(e),"Drop result must either be an object or undefined.")}function f(e){var n=e.getTargetIds().filter(e.canDropOnTarget,e);return n.reverse(),n}function c(e){return function(){var t=e.getMonitor(),i=e.getRegistry();h(t);var u=t.getSourceId();if(u!=null){var v=i.getSource(u,!0);v.endDrag(t,u),i.unpinSource()}return{type:ee}}}function h(e){(0,g.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}function R(e,n){return n===null?e===null:Array.isArray(e)?e.some(function(t){return t===n}):e===n}function C(e){return function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=i.clientOffset;L(t);var v=t.slice(0),I=e.getMonitor(),N=e.getRegistry(),U=I.getItemType();return A(v,N,U),V(v,I,N),z(v,I,N),{type:j,payload:{targetIds:v,clientOffset:u||null}}}}function L(e){(0,g.k)(Array.isArray(e),"Expected targetIds to be an array.")}function V(e,n,t){(0,g.k)(n.isDragging(),"Cannot call hover while not dragging."),(0,g.k)(!n.didDrop(),"Cannot call hover after drop.");for(var i=0;i<e.length;i++){var u=e[i];(0,g.k)(e.lastIndexOf(u)===i,"Expected targetIds to be unique in the passed array.");var v=t.getTarget(u);(0,g.k)(v,"Expected targetIds to be registered.")}}function A(e,n,t){for(var i=e.length-1;i>=0;i--){var u=e[i],v=n.getTargetType(u);R(v,t)||e.splice(i,1)}}function z(e,n,t){e.forEach(function(i){var u=t.getTarget(i);u.hover(n,i)})}function $(e){return function(){var t=e.getMonitor();if(t.isDragging())return{type:W}}}function X(e){return{beginDrag:ae(e),publishDragSource:$(e),hover:C(e),drop:l(e),endDrag:c(e)}}var M=function(){function e(n,t){var i=this;(0,O.Z)(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var u=i.store.getState().refCount>0;i.backend&&(u&&!i.isSetUp?(i.backend.setup(),i.isSetUp=!0):!u&&i.isSetUp&&(i.backend.teardown(),i.isSetUp=!1))},this.store=n,this.monitor=t,n.subscribe(this.handleRefCountChange)}return(0,E.Z)(e,[{key:"receiveBackend",value:function(t){this.backend=t}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var t=this,i=this.store.dispatch;function u(I){return function(){for(var N=arguments.length,U=new Array(N),B=0;B<N;B++)U[B]=arguments[B];var G=I.apply(t,U);typeof G!="undefined"&&i(G)}}var v=X(this);return Object.keys(v).reduce(function(I,N){var U=v[N];return I[N]=u(U),I},{})}},{key:"dispatch",value:function(t){this.store.dispatch(t)}}]),e}();function K(e,n){return{x:e.x+n.x,y:e.y+n.y}}function J(e,n){return{x:e.x-n.x,y:e.y-n.y}}function Q(e){var n=e.clientOffset,t=e.initialClientOffset,i=e.initialSourceClientOffset;return!n||!t||!i?null:J(K(n,i),t)}function re(e){var n=e.clientOffset,t=e.initialClientOffset;return!n||!t?null:J(n,t)}var ne=[],le=[];ne.__IS_NONE__=!0,le.__IS_ALL__=!0;function ve(e,n){if(e===ne)return!1;if(e===le||typeof n=="undefined")return!0;var t=x(n,e);return t.length>0}var ge=function(){function e(n,t){(0,O.Z)(this,e),this.store=n,this.registry=t}return(0,E.Z)(e,[{key:"subscribeToStateChange",value:function(t){var i=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=u.handlerIds;(0,g.k)(typeof t=="function","listener must be a function."),(0,g.k)(typeof v=="undefined"||Array.isArray(v),"handlerIds, when specified, must be an array of strings.");var I=this.store.getState().stateId,N=function(){var B=i.store.getState(),G=B.stateId;try{var de=G===I||G===I+1&&!ve(B.dirtyHandlerIds,v);de||t()}finally{I=G}};return this.store.subscribe(N)}},{key:"subscribeToOffsetChange",value:function(t){var i=this;(0,g.k)(typeof t=="function","listener must be a function.");var u=this.store.getState().dragOffset,v=function(){var N=i.store.getState().dragOffset;N!==u&&(u=N,t())};return this.store.subscribe(v)}},{key:"canDragSource",value:function(t){if(!t)return!1;var i=this.registry.getSource(t);return(0,g.k)(i,"Expected to find a valid source. sourceId=".concat(t)),this.isDragging()?!1:i.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){if(!t)return!1;var i=this.registry.getTarget(t);if((0,g.k)(i,"Expected to find a valid target. targetId=".concat(t)),!this.isDragging()||this.didDrop())return!1;var u=this.registry.getTargetType(t),v=this.getItemType();return R(u,v)&&i.canDrop(this,t)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){if(!t)return!1;var i=this.registry.getSource(t,!0);if((0,g.k)(i,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()||!this.isSourcePublic())return!1;var u=this.registry.getSourceType(t),v=this.getItemType();return u!==v?!1:i.isDragging(this,t)}},{key:"isOverTarget",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!t)return!1;var u=i.shallow;if(!this.isDragging())return!1;var v=this.registry.getTargetType(t),I=this.getItemType();if(I&&!R(v,I))return!1;var N=this.getTargetIds();if(!N.length)return!1;var U=N.indexOf(t);return u?U===N.length-1:U>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return Q(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return re(this.store.getState().dragOffset)}}]),e}();const Te=typeof global!="undefined"?global:self,Se=Te.MutationObserver||Te.WebKitMutationObserver;function Ie(e){return function(){const t=setTimeout(u,0),i=setInterval(u,50);function u(){clearTimeout(t),clearInterval(i),e()}}}function Re(e){let n=1;const t=new Se(e),i=document.createTextNode("");return t.observe(i,{characterData:!0}),function(){n=-n,i.data=n}}const Me=typeof Se=="function"?Re:Ie;class xe{enqueueTask(n){const{queue:t,requestFlush:i}=this;t.length||(i(),this.flushing=!0),t[t.length]=n}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:n}=this;for(;this.index<n.length;){const t=this.index;if(this.index++,n[t].call(),this.index>this.capacity){for(let i=0,u=n.length-this.index;i<u;i++)n[i]=n[i+this.index];n.length-=this.index,this.index=0}}n.length=0,this.index=0,this.flushing=!1},this.registerPendingError=n=>{this.pendingErrors.push(n),this.requestErrorThrow()},this.requestFlush=Me(this.flush),this.requestErrorThrow=Ie(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Le{call(){try{this.task&&this.task()}catch(n){this.onError(n)}finally{this.task=null,this.release(this)}}constructor(n,t){this.onError=n,this.release=t,this.task=null}}class He{create(n){const t=this.freeTasks,i=t.length?t.pop():new Le(this.onError,u=>t[t.length]=u);return i.task=n,i}constructor(n){this.onError=n,this.freeTasks=[]}}const Ce=new xe,Ae=new He(Ce.registerPendingError);function _e(e){Ce.enqueueTask(Ae.create(e))}var pe="dnd-core/ADD_SOURCE",me="dnd-core/ADD_TARGET",De="dnd-core/REMOVE_SOURCE",fe="dnd-core/REMOVE_TARGET";function Fe(e){return{type:pe,payload:{sourceId:e}}}function Ue(e){return{type:me,payload:{targetId:e}}}function je(e){return{type:De,payload:{sourceId:e}}}function Ze(e){return{type:fe,payload:{targetId:e}}}function Be(e){(0,g.k)(typeof e.canDrag=="function","Expected canDrag to be a function."),(0,g.k)(typeof e.beginDrag=="function","Expected beginDrag to be a function."),(0,g.k)(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Ge(e){(0,g.k)(typeof e.canDrop=="function","Expected canDrop to be a function."),(0,g.k)(typeof e.hover=="function","Expected hover to be a function."),(0,g.k)(typeof e.drop=="function","Expected beginDrag to be a function.")}function ye(e,n){if(n&&Array.isArray(e)){e.forEach(function(t){return ye(t,!1)});return}(0,g.k)(typeof e=="string"||typeof e=="symbol",n?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var q;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(q||(q={}));var Ve=0;function We(){return Ve++}function ze(e){var n=We().toString();switch(e){case q.SOURCE:return"S".concat(n);case q.TARGET:return"T".concat(n);default:throw new Error("Unknown Handler Role: ".concat(e))}}function Ee(e){switch(e[0]){case"S":return q.SOURCE;case"T":return q.TARGET;default:throw new Error("Cannot parse handler ID: ".concat(e))}}function be(e,n){var t=e.entries(),i=!1;do{var u=t.next(),v=u.done,I=(0,p.Z)(u.value,2),N=I[1];if(N===n)return!0;i=!!v}while(!i);return!1}var Xe=function(){function e(n){(0,O.Z)(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=n}return(0,E.Z)(e,[{key:"addSource",value:function(t,i){ye(t),Be(i);var u=this.addHandler(q.SOURCE,t,i);return this.store.dispatch(Fe(u)),u}},{key:"addTarget",value:function(t,i){ye(t,!0),Ge(i);var u=this.addHandler(q.TARGET,t,i);return this.store.dispatch(Ue(u)),u}},{key:"containsHandler",value:function(t){return be(this.dragSources,t)||be(this.dropTargets,t)}},{key:"getSource",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,g.k)(this.isSourceId(t),"Expected a valid source ID.");var u=i&&t===this.pinnedSourceId,v=u?this.pinnedSource:this.dragSources.get(t);return v}},{key:"getTarget",value:function(t){return(0,g.k)(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return(0,g.k)(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return(0,g.k)(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){var i=Ee(t);return i===q.SOURCE}},{key:"isTargetId",value:function(t){var i=Ee(t);return i===q.TARGET}},{key:"removeSource",value:function(t){var i=this;(0,g.k)(this.getSource(t),"Expected an existing source."),this.store.dispatch(je(t)),_e(function(){i.dragSources.delete(t),i.types.delete(t)})}},{key:"removeTarget",value:function(t){(0,g.k)(this.getTarget(t),"Expected an existing target."),this.store.dispatch(Ze(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var i=this.getSource(t);(0,g.k)(i,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=i}},{key:"unpinSource",value:function(){(0,g.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,i,u){var v=ze(t);return this.types.set(v,i),t===q.SOURCE?this.dragSources.set(v,u):t===q.TARGET&&this.dropTargets.set(v,u),v}}]),e}(),Ye=function(n,t){return n===t};function $e(e,n){return!e&&!n?!0:!e||!n?!1:e.x===n.x&&e.y===n.y}function Ke(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ye;if(e.length!==n.length)return!1;for(var i=0;i<e.length;++i)if(!t(e[i],n[i]))return!1;return!0}function Je(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ne,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case j:break;case pe:case me:case fe:case De:return ne;case F:case W:case ee:case Y:default:return le}var t=n.payload,i=t.targetIds,u=i===void 0?[]:i,v=t.prevTargetIds,I=v===void 0?[]:v,N=H(u,I),U=N.length>0||!Ke(u,I);if(!U)return ne;var B=I[I.length-1],G=u[u.length-1];return B!==G&&(B&&N.push(B),G&&N.push(G)),N}function Qe(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function qe(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{},i=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable}))),i.forEach(function(u){Qe(e,u,t[u])})}return e}var we={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function et(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:we,n=arguments.length>1?arguments[1]:void 0,t=n.payload;switch(n.type){case _:case F:return{initialSourceClientOffset:t.sourceClientOffset,initialClientOffset:t.clientOffset,clientOffset:t.clientOffset};case j:return $e(e.clientOffset,t.clientOffset)?e:qe({},e,{clientOffset:t.clientOffset});case ee:case Y:return we;default:return e}}function tt(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ce(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{},i=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable}))),i.forEach(function(u){tt(e,u,t[u])})}return e}var rt={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function nt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rt,n=arguments.length>1?arguments[1]:void 0,t=n.payload;switch(n.type){case F:return ce({},e,{itemType:t.itemType,item:t.item,sourceId:t.sourceId,isSourcePublic:t.isSourcePublic,dropResult:null,didDrop:!1});case W:return ce({},e,{isSourcePublic:!0});case j:return ce({},e,{targetIds:t.targetIds});case fe:return e.targetIds.indexOf(t.targetId)===-1?e:ce({},e,{targetIds:T(e.targetIds,t.targetId)});case Y:return ce({},e,{dropResult:t.dropResult,didDrop:!0,targetIds:[]});case ee:return ce({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function it(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case pe:case me:return e+1;case De:case fe:return e-1;default:return e}}function at(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e+1}function ot(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function st(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{},i=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable}))),i.forEach(function(u){ot(e,u,t[u])})}return e}function ut(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Je(e.dirtyHandlerIds,{type:n.type,payload:st({},n.payload,{prevTargetIds:k(e,"dragOperation.targetIds",[])})}),dragOffset:et(e.dragOffset,n),refCount:it(e.refCount,n),dragOperation:nt(e.dragOperation,n),stateId:at(e.stateId)}}function ct(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,u=lt(i),v=new ge(u,new Xe(u)),I=new M(u,v),N=e(I,n,t);return I.receiveBackend(N),I}function lt(e){var n=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,y.MT)(ut,e&&n&&n({name:"dnd-core",instanceId:"dnd-core"}))}var Pe=s(67294),dt=s(42222);function gt(e,n){if(e==null)return{};var t=ft(e,n),i,u;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(e);for(u=0;u<v.length;u++)i=v[u],!(n.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(t[i]=e[i]))}return t}function ft(e,n){if(e==null)return{};var t={},i=Object.keys(e),u,v;for(v=0;v<i.length;v++)u=i[v],!(n.indexOf(u)>=0)&&(t[u]=e[u]);return t}var ke=0,he=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),ht=(0,Pe.memo)(function(n){var t=n.children,i=gt(n,["children"]),u=vt(i),v=(0,p.Z)(u,2),I=v[0],N=v[1];return(0,Pe.useEffect)(function(){if(N){var U=Ne();return++ke,function(){--ke==0&&(U[he]=null)}}},[]),(0,D.jsx)(dt.L.Provider,{value:I,children:t})});function vt(e){if("manager"in e){var n={dragDropManager:e.manager};return[n,!1]}var t=pt(e.backend,e.context,e.options,e.debugMode),i=!e.context;return[t,i]}function pt(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ne(),t=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,u=n;return u[he]||(u[he]={dragDropManager:ct(e,n,t,i)}),u[he]}function Ne(){return typeof global!="undefined"?global:window}},99469:function(Z,P,s){"use strict";s.d(P,{J:function(){return k}});var p=s(2824),D=s(64063),y=s(67294),O=s(66612);function E(T,b,S){var H=(0,y.useState)(function(){return b(T)}),x=(0,p.Z)(H,2),_=x[0],F=x[1],W=(0,y.useCallback)(function(){var j=b(T);D(_,j)||(F(j),S&&S())},[_,T,S]);return(0,O.L)(W),[_,W]}function g(T,b,S){var H=E(T,b,S),x=(0,p.Z)(H,2),_=x[0],F=x[1];return(0,O.L)(function(){var j=T.getHandlerId();if(j!=null)return T.subscribeToStateChange(F,{handlerIds:[j]})},[T,F]),_}function k(T,b,S){return g(b,T||function(){return{}},function(){return S.reconnect()})}},15197:function(Z,P,s){"use strict";s.d(P,{N:function(){return O}});var p=s(31045),D=s(67294),y=s(42222);function O(){var E=(0,D.useContext)(y.L),g=E.dragDropManager;return(0,p.k)(g!=null,"Expected drag drop context"),g}},71879:function(Z,P,s){"use strict";s.d(P,{c:function(){return m}});var p=s(31045),D=s(99469),y=s(20906),O=s(67294);function E(d){return(0,O.useMemo)(function(){return d.hooks.dragSource()},[d])}function g(d){return(0,O.useMemo)(function(){return d.hooks.dragPreview()},[d])}var k=s(69610),T=s(54941),b=s(63621),S=s(90323),H=s(38493),x=function(){function d(l){var a=this;(0,k.Z)(this,d),this.hooks=(0,H.p)({dragSource:function(o,f){a.clearDragSource(),a.dragSourceOptions=f||null,(0,S.d)(o)?a.dragSourceRef=o:a.dragSourceNode=o,a.reconnectDragSource()},dragPreview:function(o,f){a.clearDragPreview(),a.dragPreviewOptions=f||null,(0,S.d)(o)?a.dragPreviewRef=o:a.dragPreviewNode=o,a.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=l}return(0,T.Z)(d,[{key:"receiveHandlerId",value:function(a){this.handlerId!==a&&(this.handlerId=a,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(a){this.dragSourceOptionsInternal=a}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(a){this.dragPreviewOptionsInternal=a}},{key:"reconnect",value:function(){var a=this.reconnectDragSource();this.reconnectDragPreview(a)}},{key:"reconnectDragSource",value:function(){var a=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?a?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=a,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,a,this.dragSourceOptions)),r):(this.lastConnectedDragSource=a,r):r}},{key:"reconnectDragPreview",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.dragPreview,o=a||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(o&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}o&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!(0,b.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!(0,b.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}]),d}(),_=s(15197),F=s(66612);function W(d,l){var a=(0,_.N)(),r=(0,O.useMemo)(function(){return new x(a.getBackend())},[a]);return(0,F.L)(function(){return r.dragSourceOptions=d||null,r.reconnect(),function(){return r.disconnectDragSource()}},[r,d]),(0,F.L)(function(){return r.dragPreviewOptions=l||null,r.reconnect(),function(){return r.disconnectDragPreview()}},[r,l]),r}var j=!1,Y=!1,ee=function(){function d(l){(0,k.Z)(this,d),this.sourceId=null,this.internalMonitor=l.getMonitor()}return(0,T.Z)(d,[{key:"receiveHandlerId",value:function(a){this.sourceId=a}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){(0,p.k)(!j,"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 j=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{j=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;(0,p.k)(!Y,"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 Y=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Y=!1}}},{key:"subscribeToStateChange",value:function(a,r){return this.internalMonitor.subscribeToStateChange(a,r)}},{key:"isDraggingSource",value:function(a){return this.internalMonitor.isDraggingSource(a)}},{key:"isOverTarget",value:function(a,r){return this.internalMonitor.isOverTarget(a,r)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(a){return this.internalMonitor.subscribeToOffsetChange(a)}},{key:"canDragSource",value:function(a){return this.internalMonitor.canDragSource(a)}},{key:"canDropOnTarget",value:function(a){return this.internalMonitor.canDropOnTarget(a)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),d}();function ie(){var d=(0,_.N)();return(0,O.useMemo)(function(){return new ee(d)},[d])}var te=s(2824),ae=s(8263),oe=function(){function d(l,a,r){(0,k.Z)(this,d),this.spec=l,this.monitor=a,this.connector=r}return(0,T.Z)(d,[{key:"beginDrag",value:function(){var a=this.spec,r=this.monitor,o=null;return typeof a.item=="object"?o=a.item:typeof a.item=="function"?o=a.item(r):o={},o!=null?o:null}},{key:"canDrag",value:function(){var a=this.spec,r=this.monitor;return typeof a.canDrag=="boolean"?a.canDrag:typeof a.canDrag=="function"?a.canDrag(r):!0}},{key:"isDragging",value:function(a,r){var o=this.spec,f=this.monitor,c=o.isDragging;return c?c(f):r===a.getSourceId()}},{key:"endDrag",value:function(){var a=this.spec,r=this.monitor,o=this.connector,f=a.end;f&&f(r.getItem(),r),o.reconnect()}}]),d}();function se(d,l,a){var r=(0,O.useMemo)(function(){return new oe(d,l,a)},[l,a]);return(0,O.useEffect)(function(){r.spec=d},[d]),r}function ue(d){return(0,O.useMemo)(function(){var l=d.type;return(0,p.k)(l!=null,"spec.type must be defined"),l},[d])}function w(d,l,a){var r=(0,_.N)(),o=se(d,l,a),f=ue(d);(0,F.L)(function(){if(f!=null){var h=(0,ae.w)(f,o,r),R=(0,te.Z)(h,2),C=R[0],L=R[1];return l.receiveHandlerId(C),a.receiveHandlerId(C),L}},[r,l,a,o,f])}function m(d,l){var a=(0,y.w)(d,l);(0,p.k)(!a.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)");var r=ie(),o=W(a.options,a.previewOptions);return w(a,r,o),[(0,D.J)(a.collect,r,o),E(o),g(o)]}},37266:function(Z,P,s){"use strict";s.d(P,{L:function(){return ue}});var p=s(99469),D=s(20906),y=s(67294);function O(w){return(0,y.useMemo)(function(){return w.hooks.dropTarget()},[w])}var E=s(69610),g=s(54941),k=s(63621),T=s(90323),b=s(38493),S=function(){function w(m){var d=this;(0,E.Z)(this,w),this.hooks=(0,b.p)({dropTarget:function(a,r){d.clearDropTarget(),d.dropTargetOptions=r,(0,T.d)(a)?d.dropTargetRef=a:d.dropTargetNode=a,d.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=m}return(0,g.Z)(w,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var d=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();d&&this.disconnectDropTarget();var l=this.dropTarget;if(!!this.handlerId){if(!l){this.lastConnectedDropTarget=l;return}d&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=l,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,l,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(d){d!==this.handlerId&&(this.handlerId=d,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(d){this.dropTargetOptionsInternal=d}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!(0,k.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}]),w}(),H=s(15197),x=s(66612);function _(w){var m=(0,H.N)(),d=(0,y.useMemo)(function(){return new S(m.getBackend())},[m]);return(0,x.L)(function(){return d.dropTargetOptions=w||null,d.reconnect(),function(){return d.disconnectDropTarget()}},[w]),d}var F=s(31045),W=!1,j=function(){function w(m){(0,E.Z)(this,w),this.targetId=null,this.internalMonitor=m.getMonitor()}return(0,g.Z)(w,[{key:"receiveHandlerId",value:function(d){this.targetId=d}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(d,l){return this.internalMonitor.subscribeToStateChange(d,l)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;(0,F.k)(!W,"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 W=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{W=!1}}},{key:"isOver",value:function(d){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,d):!1}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),w}();function Y(){var w=(0,H.N)();return(0,y.useMemo)(function(){return new j(w)},[w])}var ee=s(2824),ie=s(8263);function te(w){var m=w.accept;return(0,y.useMemo)(function(){return(0,F.k)(w.accept!=null,"accept must be defined"),Array.isArray(m)?m:[m]},[m])}var ae=function(){function w(m,d){(0,E.Z)(this,w),this.spec=m,this.monitor=d}return(0,g.Z)(w,[{key:"canDrop",value:function(){var d=this.spec,l=this.monitor;return d.canDrop?d.canDrop(l.getItem(),l):!0}},{key:"hover",value:function(){var d=this.spec,l=this.monitor;d.hover&&d.hover(l.getItem(),l)}},{key:"drop",value:function(){var d=this.spec,l=this.monitor;if(d.drop)return d.drop(l.getItem(),l)}}]),w}();function oe(w,m){var d=(0,y.useMemo)(function(){return new ae(w,m)},[m]);return(0,y.useEffect)(function(){d.spec=w},[w]),d}function se(w,m,d){var l=(0,H.N)(),a=oe(w,m),r=te(w);(0,x.L)(function(){var f=(0,ie.n)(r,a,l),c=(0,ee.Z)(f,2),h=c[0],R=c[1];return m.receiveHandlerId(h),d.receiveHandlerId(h),R},[l,m,a,d,r.map(function(o){return o.toString()}).join("|")])}function ue(w,m){var d=(0,D.w)(w,m),l=Y(),a=_(d.options);return se(d,l,a),[(0,p.J)(d.collect,l,a),O(a)]}},66612:function(Z,P,s){"use strict";s.d(P,{L:function(){return D}});var p=s(67294),D=typeof window!="undefined"?p.useLayoutEffect:p.useEffect},20906:function(Z,P,s){"use strict";s.d(P,{w:function(){return y}});var p=s(86582),D=s(67294);function y(O,E){var g=(0,p.Z)(E||[]);return E==null&&typeof O!="function"&&g.push(O),(0,D.useMemo)(function(){return typeof O=="function"?O():O},g)}},90323:function(Z,P,s){"use strict";s.d(P,{d:function(){return p}});function p(D){return D!==null&&typeof D=="object"&&Object.prototype.hasOwnProperty.call(D,"current")}},8263:function(Z,P,s){"use strict";s.d(P,{n:function(){return p},w:function(){return D}});function p(y,O,E){var g=E.getRegistry(),k=g.addTarget(y,O);return[k,function(){return g.removeTarget(k)}]}function D(y,O,E){var g=E.getRegistry(),k=g.addSource(y,O);return[k,function(){return g.removeSource(k)}]}},38493:function(Z,P,s){"use strict";s.d(P,{p:function(){return E}});var p=s(31045),D=s(67294);function y(T){if(typeof T.type!="string"){var b=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 ".concat(b," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function O(T){return function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!(0,D.isValidElement)(b)){var H=b;return T(H,S),H}var x=b;y(x);var _=S?function(F){return T(F,S)}:T;return k(x,_)}}function E(T){var b={};return Object.keys(T).forEach(function(S){var H=T[S];if(S.endsWith("Ref"))b[S]=T[S];else{var x=O(H);b[S]=function(){return x}}}),b}function g(T,b){typeof T=="function"?T(b):T.current=b}function k(T,b){var S=T.ref;return(0,p.k)(typeof S!="string","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"),S?(0,D.cloneElement)(T,{ref:function(x){g(S,x),g(b,x)}}):(0,D.cloneElement)(T,{ref:b})}},64063:function(Z){"use strict";Z.exports=function P(s,p){if(s===p)return!0;if(s&&p&&typeof s=="object"&&typeof p=="object"){if(s.constructor!==p.constructor)return!1;var D,y,O;if(Array.isArray(s)){if(D=s.length,D!=p.length)return!1;for(y=D;y--!=0;)if(!P(s[y],p[y]))return!1;return!0}if(s.constructor===RegExp)return s.source===p.source&&s.flags===p.flags;if(s.valueOf!==Object.prototype.valueOf)return s.valueOf()===p.valueOf();if(s.toString!==Object.prototype.toString)return s.toString()===p.toString();if(O=Object.keys(s),D=O.length,D!==Object.keys(p).length)return!1;for(y=D;y--!=0;)if(!Object.prototype.hasOwnProperty.call(p,O[y]))return!1;for(y=D;y--!=0;){var E=O[y];if(!P(s[E],p[E]))return!1}return!0}return s!==s&&p!==p}},20157:function(Z,P,s){"use strict";s.d(P,{PD:function(){return l}});var p={};s.r(p),s.d(p,{FILE:function(){return k},HTML:function(){return S},TEXT:function(){return b},URL:function(){return T}});function D(a){let r=null;return()=>(r==null&&(r=a()),r)}function y(a,r){return a.filter(o=>o!==r)}function O(a,r){const o=new Set,f=h=>o.add(h);a.forEach(f),r.forEach(f);const c=[];return o.forEach(h=>c.push(h)),c}class E{enter(r){const o=this.entered.length,f=c=>this.isNodeInDocument(c)&&(!c.contains||c.contains(r));return this.entered=O(this.entered.filter(f),[r]),o===0&&this.entered.length>0}leave(r){const o=this.entered.length;return this.entered=y(this.entered.filter(this.isNodeInDocument),r),o>0&&this.entered.length===0}reset(){this.entered=[]}constructor(r){this.entered=[],this.isNodeInDocument=r}}class g{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(r=>{Object.defineProperty(this.item,r,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${r}" until the drop event.`),null}})})}loadDataTransfer(r){if(r){const o={};Object.keys(this.config.exposeProperties).forEach(f=>{const c=this.config.exposeProperties[f];c!=null&&(o[f]={value:c(r,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,o)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(r,o){return o===r.getSourceId()}endDrag(){}constructor(r){this.config=r,this.item={},this.initializeExposedProperties()}}const k="__NATIVE_FILE__",T="__NATIVE_URL__",b="__NATIVE_TEXT__",S="__NATIVE_HTML__";function H(a,r,o){const f=r.reduce((c,h)=>c||a.getData(h),"");return f!=null?f:o}const x={[k]:{exposeProperties:{files:a=>Array.prototype.slice.call(a.files),items:a=>a.items,dataTransfer:a=>a},matchesTypes:["Files"]},[S]:{exposeProperties:{html:(a,r)=>H(a,r,""),dataTransfer:a=>a},matchesTypes:["Html","text/html"]},[T]:{exposeProperties:{urls:(a,r)=>H(a,r,"").split(`
`),dataTransfer:a=>a},matchesTypes:["Url","text/uri-list"]},[b]:{exposeProperties:{text:(a,r)=>H(a,r,""),dataTransfer:a=>a},matchesTypes:["Text","text/plain"]}};function _(a,r){const o=x[a];if(!o)throw new Error(`native type ${a} has no configuration`);const f=new g(o);return f.loadDataTransfer(r),f}function F(a){if(!a)return null;const r=Array.prototype.slice.call(a.types||[]);return Object.keys(x).filter(o=>{const f=x[o];return(f==null?void 0:f.matchesTypes)?f.matchesTypes.some(c=>r.indexOf(c)>-1):!1})[0]||null}const W=D(()=>/firefox/i.test(navigator.userAgent)),j=D(()=>Boolean(window.safari));class Y{interpolate(r){const{xs:o,ys:f,c1s:c,c2s:h,c3s:R}=this;let C=o.length-1;if(r===o[C])return f[C];let L=0,V=R.length-1,A;for(;L<=V;){A=Math.floor(.5*(L+V));const X=o[A];if(X<r)L=A+1;else if(X>r)V=A-1;else return f[A]}C=Math.max(0,V);const z=r-o[C],$=z*z;return f[C]+c[C]*z+h[C]*$+R[C]*z*$}constructor(r,o){const{length:f}=r,c=[];for(let M=0;M<f;M++)c.push(M);c.sort((M,K)=>r[M]<r[K]?-1:1);const h=[],R=[],C=[];let L,V;for(let M=0;M<f-1;M++)L=r[M+1]-r[M],V=o[M+1]-o[M],R.push(L),h.push(V),C.push(V/L);const A=[C[0]];for(let M=0;M<R.length-1;M++){const K=C[M],J=C[M+1];if(K*J<=0)A.push(0);else{L=R[M];const Q=R[M+1],re=L+Q;A.push(3*re/((re+Q)/K+(re+L)/J))}}A.push(C[C.length-1]);const z=[],$=[];let X;for(let M=0;M<A.length-1;M++){X=C[M];const K=A[M],J=1/R[M],Q=K+A[M+1]-X-X;z.push((X-K-Q)*J),$.push(Q*J*J)}this.xs=r,this.ys=o,this.c1s=A,this.c2s=z,this.c3s=$}}const ee=1;function ie(a){const r=a.nodeType===ee?a:a.parentElement;if(!r)return null;const{top:o,left:f}=r.getBoundingClientRect();return{x:f,y:o}}function te(a){return{x:a.clientX,y:a.clientY}}function ae(a){var r;return a.nodeName==="IMG"&&(W()||!((r=document.documentElement)===null||r===void 0?void 0:r.contains(a)))}function oe(a,r,o,f){let c=a?r.width:o,h=a?r.height:f;return j()&&a&&(h/=window.devicePixelRatio,c/=window.devicePixelRatio),{dragPreviewWidth:c,dragPreviewHeight:h}}function se(a,r,o,f,c){const h=ae(r),C=ie(h?a:r),L={x:o.x-C.x,y:o.y-C.y},{offsetWidth:V,offsetHeight:A}=a,{anchorX:z,anchorY:$}=f,{dragPreviewWidth:X,dragPreviewHeight:M}=oe(h,r,V,A),K=()=>{let ge=new Y([0,.5,1],[L.y,L.y/A*M,L.y+M-A]).interpolate($);return j()&&h&&(ge+=(window.devicePixelRatio-1)*M),ge},J=()=>new Y([0,.5,1],[L.x,L.x/V*X,L.x+X-V]).interpolate(z),{offsetX:Q,offsetY:re}=c,ne=Q===0||Q,le=re===0||re;return{x:ne?Q:J(),y:le?re:K()}}class ue{get window(){if(this.globalContext)return this.globalContext;if(typeof window!="undefined")return window}get document(){var r;return((r=this.globalContext)===null||r===void 0?void 0:r.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var r;return((r=this.optionsArgs)===null||r===void 0?void 0:r.rootElement)||this.window}constructor(r,o){this.ownerDocument=null,this.globalContext=r,this.optionsArgs=o}}function w(a,r,o){return r in a?Object.defineProperty(a,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[r]=o,a}function m(a){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{},f=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(o).filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable}))),f.forEach(function(c){w(a,c,o[c])})}return a}class d{profile(){var r,o;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((r=this.dragStartSourceIds)===null||r===void 0?void 0:r.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((o=this.dragOverTargetIds)===null||o===void 0?void 0:o.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const r=this.rootElement;if(r!==void 0){if(r.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");r.__isReactDndBackendSetUp=!0,this.addEventListeners(r)}}teardown(){const r=this.rootElement;if(r!==void 0&&(r.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var o;(o=this.window)===null||o===void 0||o.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(r,o,f){return this.sourcePreviewNodeOptions.set(r,f),this.sourcePreviewNodes.set(r,o),()=>{this.sourcePreviewNodes.delete(r),this.sourcePreviewNodeOptions.delete(r)}}connectDragSource(r,o,f){this.sourceNodes.set(r,o),this.sourceNodeOptions.set(r,f);const c=R=>this.handleDragStart(R,r),h=R=>this.handleSelectStart(R);return o.setAttribute("draggable","true"),o.addEventListener("dragstart",c),o.addEventListener("selectstart",h),()=>{this.sourceNodes.delete(r),this.sourceNodeOptions.delete(r),o.removeEventListener("dragstart",c),o.removeEventListener("selectstart",h),o.setAttribute("draggable","false")}}connectDropTarget(r,o){const f=R=>this.handleDragEnter(R,r),c=R=>this.handleDragOver(R,r),h=R=>this.handleDrop(R,r);return o.addEventListener("dragenter",f),o.addEventListener("dragover",c),o.addEventListener("drop",h),()=>{o.removeEventListener("dragenter",f),o.removeEventListener("dragover",c),o.removeEventListener("drop",h)}}addEventListeners(r){!r.addEventListener||(r.addEventListener("dragstart",this.handleTopDragStart),r.addEventListener("dragstart",this.handleTopDragStartCapture,!0),r.addEventListener("dragend",this.handleTopDragEndCapture,!0),r.addEventListener("dragenter",this.handleTopDragEnter),r.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.addEventListener("dragover",this.handleTopDragOver),r.addEventListener("dragover",this.handleTopDragOverCapture,!0),r.addEventListener("drop",this.handleTopDrop),r.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(r){!r.removeEventListener||(r.removeEventListener("dragstart",this.handleTopDragStart),r.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),r.removeEventListener("dragend",this.handleTopDragEndCapture,!0),r.removeEventListener("dragenter",this.handleTopDragEnter),r.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.removeEventListener("dragover",this.handleTopDragOver),r.removeEventListener("dragover",this.handleTopDragOverCapture,!0),r.removeEventListener("drop",this.handleTopDrop),r.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const r=this.monitor.getSourceId(),o=this.sourceNodeOptions.get(r);return m({dropEffect:this.altKeyPressed?"copy":"move"},o||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const r=this.monitor.getSourceId(),o=this.sourcePreviewNodeOptions.get(r);return m({anchorX:.5,anchorY:.5,captureDraggingState:!1},o||{})}isDraggingNativeItem(){const r=this.monitor.getItemType();return Object.keys(p).some(o=>p[o]===r)}beginDragNativeItem(r,o){this.clearCurrentDragSourceNode(),this.currentNativeSource=_(r,o),this.currentNativeHandle=this.registry.addSource(r,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(r){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=r;const o=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var f;return(f=this.rootElement)===null||f===void 0?void 0:f.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},o)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var r;(r=this.window)===null||r===void 0||r.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(r,o){r.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(o))}handleDragEnter(r,o){this.dragEnterTargetIds.unshift(o)}handleDragOver(r,o){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(o)}handleDrop(r,o){this.dropTargetIds.unshift(o)}constructor(r,o,f){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=c=>{const h=this.sourceNodes.get(c);return h&&ie(h)||null},this.endDragNativeItem=()=>{!this.isDraggingNativeItem()||(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=c=>Boolean(c&&this.document&&this.document.body&&this.document.body.contains(c)),this.endDragIfSourceWasRemovedFromDOM=()=>{const c=this.currentDragSourceNode;c==null||this.isNodeInDocument(c)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=c=>{this.hoverRafId===null&&typeof requestAnimationFrame!="undefined"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(c||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame!="undefined"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=c=>{if(c.defaultPrevented)return;const{dragStartSourceIds:h}=this;this.dragStartSourceIds=null;const R=te(c);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(h||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:R});const{dataTransfer:C}=c,L=F(C);if(this.monitor.isDragging()){if(C&&typeof C.setDragImage=="function"){const A=this.monitor.getSourceId(),z=this.sourceNodes.get(A),$=this.sourcePreviewNodes.get(A)||z;if($){const{anchorX:X,anchorY:M,offsetX:K,offsetY:J}=this.getCurrentSourcePreviewNodeOptions(),ne=se(z,$,R,{anchorX:X,anchorY:M},{offsetX:K,offsetY:J});C.setDragImage($,ne.x,ne.y)}}try{C==null||C.setData("application/json",{})}catch(A){}this.setCurrentDragSourceNode(c.target);const{captureDraggingState:V}=this.getCurrentSourcePreviewNodeOptions();V?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(L)this.beginDragNativeItem(L);else{if(C&&!C.types&&(c.target&&!c.target.hasAttribute||!c.target.hasAttribute("draggable")))return;c.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=c=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var h;(h=this.currentNativeSource)===null||h===void 0||h.loadDataTransfer(c.dataTransfer)}if(!this.enterLeaveCounter.enter(c.target)||this.monitor.isDragging())return;const{dataTransfer:C}=c,L=F(C);L&&this.beginDragNativeItem(L,C)},this.handleTopDragEnter=c=>{const{dragEnterTargetIds:h}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=c.altKey,h.length>0&&this.actions.hover(h,{clientOffset:te(c)}),h.some(C=>this.monitor.canDropOnTarget(C))&&(c.preventDefault(),c.dataTransfer&&(c.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=c=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var h;(h=this.currentNativeSource)===null||h===void 0||h.loadDataTransfer(c.dataTransfer)}},this.handleTopDragOver=c=>{const{dragOverTargetIds:h}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){c.preventDefault(),c.dataTransfer&&(c.dataTransfer.dropEffect="none");return}this.altKeyPressed=c.altKey,this.lastClientOffset=te(c),this.scheduleHover(h),(h||[]).some(C=>this.monitor.canDropOnTarget(C))?(c.preventDefault(),c.dataTransfer&&(c.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?c.preventDefault():(c.preventDefault(),c.dataTransfer&&(c.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=c=>{this.isDraggingNativeItem()&&c.preventDefault(),!!this.enterLeaveCounter.leave(c.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=c=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var h;c.preventDefault(),(h=this.currentNativeSource)===null||h===void 0||h.loadDataTransfer(c.dataTransfer)}else F(c.dataTransfer)&&c.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=c=>{const{dropTargetIds:h}=this;this.dropTargetIds=[],this.actions.hover(h,{clientOffset:te(c)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=c=>{const h=c.target;typeof h.dragDrop=="function"&&(h.tagName==="INPUT"||h.tagName==="SELECT"||h.tagName==="TEXTAREA"||h.isContentEditable||(c.preventDefault(),h.dragDrop()))},this.options=new ue(o,f),this.actions=r.getActions(),this.monitor=r.getMonitor(),this.registry=r.getRegistry(),this.enterLeaveCounter=new E(this.isNodeInDocument)}}const l=function(r,o,f){return new d(r,o,f)}}}]);