Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-dnd-html5-backend

Package Overview
Dependencies
Maintainers
3
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dnd-html5-backend - npm Package Compare versions

Comparing version 7.4.0 to 7.4.4

lib/cjs/utils/discount_lodash.d.ts

2

dist/ReactDnDHTML5Backend.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ReactDnDHTML5Backend=e():t.ReactDnDHTML5Backend=e()}(window,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=30)}([function(t,e,r){var n=r(13),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){var n=r(48),o=r(52);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){var n=r(2)(Object,"create");t.exports=n},function(t,e,r){var n=r(10);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(70);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e,r){var n=r(0).Symbol;t.exports=n},function(t,e,r){var n=r(7),o=r(40),i=r(41),a="[object Null]",u="[object Undefined]",s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?u:a:s&&s in Object(t)?o(t):i(t)}},function(t,e,r){var n=r(16),o=r(42),i=r(44);t.exports=function(t,e){return i(o(t,e,n),t+"")}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(17),o=r(25);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FILE="__NATIVE_FILE__",e.URL="__NATIVE_URL__",e.TEXT="__NATIVE_TEXT__"},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(38))},function(t,e,r){var n=r(39),o=r(1),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},function(t,e){var r=Array.isArray;t.exports=r},function(t,e){t.exports=function(t){return t}},function(t,e,r){var n=r(8),o=r(3),i="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",s="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=n(t);return e==a||e==u||e==i||e==s}},function(t,e,r){var n=r(19),o=r(74),i=r(75);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,e,r){var n=r(55),o=r(69),i=r(71),a=r(72),u=r(73);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e,r){var n=r(76);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},function(t,e){t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},function(t,e,r){var n=r(11),o=r(1);t.exports=function(t){return o(t)&&n(t)}},function(t,e){var r=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(86);e.isFirefox=n(function(){return/firefox/i.test(navigator.userAgent)}),e.isSafari=n(function(){return Boolean(window.safari)})},function(t,e){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?r:e)&&("number"==o||"symbol"!=o&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}(r(31));var n=r(32),o=r(106);e.getEmptyImage=o.default;var i=r(12);e.NativeTypes=i,e.default=function(t){return new n.default(t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(33),o=r(27),i=r(87),a=r(89),u=r(12),s=r(93),c=function(){function t(t){var e=this;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.getSourceClientOffset=function(t){return i.getNodeClientOffset(e.sourceNodes.get(t))},this.endDragNativeItem=function(){e.isDraggingNativeItem()&&(e.actions.endDrag(),e.registry.removeSource(e.currentNativeHandle),e.currentNativeHandle=null,e.currentNativeSource=null)},this.isNodeInDocument=function(t){return!!document&&document.body.contains(t)||!!e.window&&e.window.document.body.contains(t)},this.endDragIfSourceWasRemovedFromDOM=function(){var t=e.currentDragSourceNode;e.isNodeInDocument(t)||e.clearCurrentDragSourceNode()&&e.actions.endDrag()},this.handleTopDragStartCapture=function(){e.clearCurrentDragSourceNode(),e.dragStartSourceIds=[]},this.handleTopDragStart=function(t){var r=e.dragStartSourceIds;e.dragStartSourceIds=null;var n=i.getEventClientOffset(t);e.monitor.isDragging()&&e.actions.endDrag(),e.actions.beginDrag(r||[],{publishSource:!1,getSourceClientOffset:e.getSourceClientOffset,clientOffset:n});var o=t.dataTransfer,u=a.matchNativeItemType(o);if(e.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var s=e.monitor.getSourceId(),c=e.sourceNodes.get(s),f=e.sourcePreviewNodes.get(s)||c;if(f){var p=e.getCurrentSourcePreviewNodeOptions(),d={anchorX:p.anchorX,anchorY:p.anchorY},l={offsetX:p.offsetX,offsetY:p.offsetY},v=i.getDragPreviewOffset(c,f,n,d,l);o.setDragImage(f,v.x,v.y)}}try{o.setData("application/json",{})}catch(t){}e.setCurrentDragSourceNode(t.target),e.getCurrentSourcePreviewNodeOptions().captureDraggingState?e.actions.publishDragSource():setTimeout(function(){return e.actions.publishDragSource()},0)}else if(u)e.beginDragNativeItem(u);else{if(o&&!o.types&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}},this.handleTopDragEndCapture=function(){e.clearCurrentDragSourceNode()&&e.actions.endDrag()},this.handleTopDragEnterCapture=function(t){if(e.dragEnterTargetIds=[],e.enterLeaveCounter.enter(t.target)&&!e.monitor.isDragging()){var r=t.dataTransfer,n=a.matchNativeItemType(r);n&&e.beginDragNativeItem(n)}},this.handleTopDragEnter=function(t){var r=e.dragEnterTargetIds;(e.dragEnterTargetIds=[],e.monitor.isDragging())&&(e.altKeyPressed=t.altKey,o.isFirefox()||e.actions.hover(r,{clientOffset:i.getEventClientOffset(t)}),r.some(function(t){return e.monitor.canDropOnTarget(t)})&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=e.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){e.dragOverTargetIds=[]},this.handleTopDragOver=function(t){var r=e.dragOverTargetIds;if(e.dragOverTargetIds=[],!e.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));e.altKeyPressed=t.altKey,e.actions.hover(r||[],{clientOffset:i.getEventClientOffset(t)}),(r||[]).some(function(t){return e.monitor.canDropOnTarget(t)})?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=e.getCurrentDropEffect())):e.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(t){e.isDraggingNativeItem()&&t.preventDefault(),e.enterLeaveCounter.leave(t.target)&&e.isDraggingNativeItem()&&e.endDragNativeItem()},this.handleTopDropCapture=function(t){e.dropTargetIds=[],t.preventDefault(),e.isDraggingNativeItem()&&e.currentNativeSource.mutateItemByReadingDataTransfer(t.dataTransfer),e.enterLeaveCounter.reset()},this.handleTopDrop=function(t){var r=e.dropTargetIds;e.dropTargetIds=[],e.actions.hover(r,{clientOffset:i.getEventClientOffset(t)}),e.actions.drop({dropEffect:e.getCurrentDropEffect()}),e.isDraggingNativeItem()?e.endDragNativeItem():e.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(t){var e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))},this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.context=t.getContext(),this.enterLeaveCounter=new n.default(this.isNodeInDocument)}return Object.defineProperty(t.prototype,"window",{get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0},enumerable:!0,configurable:!0}),t.prototype.setup=function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}},t.prototype.teardown=function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))},t.prototype.connectDragPreview=function(t,e,r){var n=this;return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,e),function(){n.sourcePreviewNodes.delete(t),n.sourcePreviewNodeOptions.delete(t)}},t.prototype.connectDragSource=function(t,e,r){var n=this;this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,r);var o=function(e){return n.handleDragStart(e,t)},i=function(t){return n.handleSelectStart(t)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",o),e.addEventListener("selectstart",i),function(){n.sourceNodes.delete(t),n.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",o),e.removeEventListener("selectstart",i),e.setAttribute("draggable","false")}},t.prototype.connectDropTarget=function(t,e){var r=this,n=function(e){return r.handleDragEnter(e,t)},o=function(e){return r.handleDragOver(e,t)},i=function(e){return r.handleDrop(e,t)};return e.addEventListener("dragenter",n),e.addEventListener("dragover",o),e.addEventListener("drop",i),function(){e.removeEventListener("dragenter",n),e.removeEventListener("dragover",o),e.removeEventListener("drop",i)}},t.prototype.addEventListeners=function(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))},t.prototype.removeEventListeners=function(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))},t.prototype.getCurrentSourceNodeOptions=function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return s(e||{},{dropEffect:this.altKeyPressed?"copy":"move"})},t.prototype.getCurrentDropEffect=function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect},t.prototype.getCurrentSourcePreviewNodeOptions=function(){var t=this.monitor.getSourceId(),e=this.sourcePreviewNodeOptions.get(t);return s(e||{},{anchorX:.5,anchorY:.5,captureDraggingState:!1})},t.prototype.isDraggingNativeItem=function(){var t=this.monitor.getItemType();return Object.keys(u).some(function(e){return u[e]===t})},t.prototype.beginDragNativeItem=function(t){this.clearCurrentDragSourceNode(),this.currentNativeSource=a.createNativeDragSource(t),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])},t.prototype.setCurrentDragSourceNode=function(t){var e=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;this.mouseMoveTimeoutTimer=setTimeout(function(){return e.window&&e.window.addEventListener("mousemove",e.endDragIfSourceWasRemovedFromDOM,!0)},1e3)},t.prototype.clearCurrentDragSourceNode=function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)},t.prototype.handleDragStart=function(t,e){this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e)},t.prototype.handleDragEnter=function(t,e){this.dragEnterTargetIds.unshift(e)},t.prototype.handleDragOver=function(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)},t.prototype.handleDrop=function(t,e){this.dropTargetIds.unshift(e)},t}();e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(34),o=r(83),i=function(){function t(t){this.entered=[],this.isNodeInDocument=t}return t.prototype.enter=function(t){var e=this,r=this.entered.length;return this.entered=n(this.entered.filter(function(r){return e.isNodeInDocument(r)&&(!r.contains||r.contains(t))}),[t]),0===r&&this.entered.length>0},t.prototype.leave=function(t){var e=this.entered.length;return this.entered=o(this.entered.filter(this.isNodeInDocument),t),e>0&&0===this.entered.length},t.prototype.reset=function(){this.entered=[]},t}();e.default=i},function(t,e,r){var n=r(35),o=r(9),i=r(54),a=r(24),u=o(function(t){return i(n(t,1,a,!0))});t.exports=u},function(t,e,r){var n=r(36),o=r(37);t.exports=function t(e,r,i,a,u){var s=-1,c=e.length;for(i||(i=o),u||(u=[]);++s<c;){var f=e[s];r>0&&i(f)?r>1?t(f,r-1,i,a,u):n(u,f):a||(u[u.length]=f)}return u}},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},function(t,e,r){var n=r(7),o=r(14),i=r(15),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(8),o=r(1),i="[object Arguments]";t.exports=function(t){return o(t)&&n(t)==i}},function(t,e,r){var n=r(7),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n=r(43),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),s=Array(u);++a<u;)s[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=r(s),n(t,this,c)}}},function(t,e){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},function(t,e,r){var n=r(45),o=r(53)(n);t.exports=o},function(t,e,r){var n=r(46),o=r(47),i=r(16),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,r){var n=r(2),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,r){var n=r(17),o=r(49),i=r(3),a=r(51),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,f=s.toString,p=c.hasOwnProperty,d=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?d:u).test(a(t))}},function(t,e,r){var n,o=r(50),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},function(t,e,r){var n=r(0)["__core-js_shared__"];t.exports=n},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){var r=800,n=16,o=Date.now;t.exports=function(t){var e=0,i=0;return function(){var a=o(),u=n-(a-i);if(i=a,u>0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,r){var n=r(18),o=r(20),i=r(21),a=r(22),u=r(80),s=r(23),c=200;t.exports=function(t,e,r){var f=-1,p=o,d=t.length,l=!0,v=[],h=v;if(r)l=!1,p=i;else if(d>=c){var g=e?null:u(t);if(g)return s(g);l=!1,p=a,h=new n}else h=e?[]:v;t:for(;++f<d;){var y=t[f],m=e?e(y):y;if(y=r||0!==y?y:0,l&&m==m){for(var D=h.length;D--;)if(h[D]===m)continue t;e&&h.push(m),v.push(y)}else p(h,m,r)||(h!==v&&h.push(m),v.push(y))}return v}},function(t,e,r){var n=r(56),o=r(62),i=r(68);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(t,e,r){var n=r(57),o=r(58),i=r(59),a=r(60),u=r(61);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e,r){var n=r(4);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(4),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return r===o?void 0:r}return i.call(e,t)?e[t]:void 0}},function(t,e,r){var n=r(4),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},function(t,e,r){var n=r(4),o="__lodash_hash_undefined__";t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?o:e,this}},function(t,e,r){var n=r(63),o=r(64),i=r(65),a=r(66),u=r(67);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(5),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},function(t,e,r){var n=r(5);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(5);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(5);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(2)(r(0),"Map");t.exports=n},function(t,e,r){var n=r(6);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(6);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(6);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(6);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},function(t,e){var r="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,r),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(77),o=r(78),i=r(79);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},function(t,e){t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},function(t,e,r){var n=r(81),o=r(82),i=r(23),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},function(t,e,r){var n=r(2)(r(0),"Set");t.exports=n},function(t,e){t.exports=function(){}},function(t,e,r){var n=r(84),o=r(9),i=r(24),a=o(function(t,e){return i(t)?n(t,e):[]});t.exports=a},function(t,e,r){var n=r(18),o=r(20),i=r(21),a=r(85),u=r(26),s=r(22),c=200;t.exports=function(t,e,r,f){var p=-1,d=o,l=!0,v=t.length,h=[],g=e.length;if(!v)return h;r&&(e=a(e,u(r))),f?(d=i,l=!1):e.length>=c&&(d=s,l=!1,e=new n(e));t:for(;++p<v;){var y=t[p],m=null==r?y:r(y);if(y=f||0!==y?y:0,l&&m==m){for(var D=g;D--;)if(e[D]===m)continue t;h.push(y)}else d(e,m,f)||h.push(y)}return h}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},function(t,e,r){var n=r(19),o="Expected a function";function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(i.Cache||n),r}i.Cache=n,t.exports=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(27),o=r(88),i=1;function a(t){var e=t.nodeType===i?t:t.parentElement;if(!e)return null;var r=e.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}e.getNodeClientOffset=a,e.getEventClientOffset=function(t){return{x:t.clientX,y:t.clientY}},e.getDragPreviewOffset=function(t,e,r,i,u){var s,c,f="IMG"===(s=e).nodeName&&(n.isFirefox()||!document.documentElement.contains(s)),p=a(f?t:e),d={x:r.x-p.x,y:r.y-p.y},l=t.offsetWidth,v=t.offsetHeight,h=i.anchorX,g=i.anchorY,y=function(t,e,r,o){var i=t?e.width:r,a=t?e.height:o;return n.isSafari()&&t&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}(f,e,l,v),m=y.dragPreviewWidth,D=y.dragPreviewHeight,x=u.offsetX,b=u.offsetY,_=0===b||b;return{x:0===x||x?x:new o.default([0,.5,1],[d.x,d.x/l*m,d.x+m-l]).interpolate(h),y:_?b:(c=new o.default([0,.5,1],[d.y,d.y/v*D,d.y+D-v]).interpolate(g),n.isSafari()&&f&&(c+=(window.devicePixelRatio-1)*D),c)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=t.length,n=[],o=0;o<r;o++)n.push(o);n.sort(function(e,r){return t[e]<t[r]?-1:1});var i,a,u=[],s=[],c=[];for(o=0;o<r-1;o++)i=t[o+1]-t[o],a=e[o+1]-e[o],s.push(i),u.push(a),c.push(a/i);var f=[c[0]];for(o=0;o<s.length-1;o++){var p=c[o],d=c[o+1];if(p*d<=0)f.push(0);else{i=s[o];var l=s[o+1],v=i+l;f.push(3*v/((v+l)/p+(v+i)/d))}}f.push(c[c.length-1]);var h,g=[],y=[];for(o=0;o<f.length-1;o++){h=c[o];var m=f[o],D=1/s[o];v=m+f[o+1]-h-h;g.push((h-m-v)*D),y.push(v*D*D)}this.xs=t,this.ys=e,this.c1s=f,this.c2s=g,this.c3s=y}return t.prototype.interpolate=function(t){var e=this,r=e.xs,n=e.ys,o=e.c1s,i=e.c2s,a=e.c3s,u=r.length-1;if(t===r[u])return n[u];for(var s,c=0,f=a.length-1;c<=f;){var p=r[s=Math.floor(.5*(c+f))];if(p<t)c=s+1;else{if(!(p>t))return n[s];f=s-1}}var d=t-r[u=Math.max(0,f)],l=d*d;return n[u]+o[u]*d+i[u]*l+a[u]*d*l},t}();e.default=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(90),o=r(92);e.createNativeDragSource=function(t){return new o.NativeDragSource(n.nativeTypesConfig[t])},e.matchNativeItemType=function(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(n.nativeTypesConfig).filter(function(t){return n.nativeTypesConfig[t].matchesTypes.some(function(t){return e.indexOf(t)>-1})})[0]||null}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0});var o=r(12),i=r(91);e.nativeTypesConfig=((n={})[o.FILE]={exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items}},matchesTypes:["Files"]},n[o.URL]={exposeProperties:{urls:function(t,e){return i.getDataFromDataTransfer(t,e,"").split("\n")}},matchesTypes:["Url","text/uri-list"]},n[o.TEXT]={exposeProperties:{text:function(t,e){return i.getDataFromDataTransfer(t,e,"")}},matchesTypes:["Text","text/plain"]},n)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDataFromDataTransfer=function(t,e,r){var n=e.reduce(function(e,r){return e||t.getData(r)},"");return null!=n?n:r}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){var e=this;this.config=t,this.item={},Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \""+t+'" until the drop event.'),null}})})}return t.prototype.mutateItemByReadingDataTransfer=function(t){var e=this,r={};t&&Object.keys(this.config.exposeProperties).forEach(function(n){r[n]={value:e.config.exposeProperties[n](t,e.config.matchesTypes)}}),Object.defineProperties(this.item,r)},t.prototype.canDrag=function(){return!0},t.prototype.beginDrag=function(){return this.item},t.prototype.isDragging=function(t,e){return e===t.getSourceId()},t.prototype.endDrag=function(){},t}();e.NativeDragSource=n},function(t,e,r){var n=r(9),o=r(10),i=r(94),a=r(95),u=Object.prototype,s=u.hasOwnProperty,c=n(function(t,e){t=Object(t);var r=-1,n=e.length,c=n>2?e[2]:void 0;for(c&&i(e[0],e[1],c)&&(n=1);++r<n;)for(var f=e[r],p=a(f),d=-1,l=p.length;++d<l;){var v=p[d],h=t[v];(void 0===h||o(h,u[v])&&!s.call(t,v))&&(t[v]=f[v])}return t});t.exports=c},function(t,e,r){var n=r(10),o=r(11),i=r(28),a=r(3);t.exports=function(t,e,r){if(!a(r))return!1;var u=typeof e;return!!("number"==u?o(r)&&i(e,r.length):"string"==u&&e in r)&&n(r[e],t)}},function(t,e,r){var n=r(96),o=r(103),i=r(11);t.exports=function(t){return i(t)?n(t,!0):o(t)}},function(t,e,r){var n=r(97),o=r(14),i=r(15),a=r(98),u=r(28),s=r(100),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),f=!r&&o(t),p=!r&&!f&&a(t),d=!r&&!f&&!p&&s(t),l=r||f||p||d,v=l?n(t.length,String):[],h=v.length;for(var g in t)!e&&!c.call(t,g)||l&&("length"==g||p&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||u(g,h))||v.push(g);return v}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){(function(t){var n=r(0),o=r(99),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=a&&a.exports===i?n.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;t.exports=s}).call(this,r(29)(t))},function(t,e){t.exports=function(){return!1}},function(t,e,r){var n=r(101),o=r(26),i=r(102),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},function(t,e,r){var n=r(8),o=r(25),i=r(1),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},function(t,e,r){(function(t){var n=r(13),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u}).call(this,r(29)(t))},function(t,e,r){var n=r(3),o=r(104),i=r(105),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var u in t)("constructor"!=u||!e&&a.call(t,u))&&r.push(u);return r}},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return n||((n=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),n}}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ReactDnDHTML5Backend=t():e.ReactDnDHTML5Backend=t()}(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FILE="__NATIVE_FILE__",t.URL="__NATIVE_URL__",t.TEXT="__NATIVE_TEXT__"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=function(e){var t=null;return function(){return null==t&&(t=e()),t}},t.without=function(e,t){return e.filter(function(e){return e!==t})},t.union=function(e,t){var r=new Set,n=function(e){return r.add(e)};e.forEach(n),t.forEach(n);var o=[];return r.forEach(function(e){return o.push(e)}),o}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.isFirefox=n.memoize(function(){return/firefox/i.test(navigator.userAgent)}),t.isSafari=n.memoize(function(){return Boolean(window.safari)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(4));var n=r(5),o=r(13);t.getEmptyImage=o.default;var i=r(0);t.NativeTypes=i,t.default=function(e){return new n.default(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=r(6),i=r(2),a=r(7),s=r(9),u=r(0),d=function(){function e(e){var t=this;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.getSourceClientOffset=function(e){return a.getNodeClientOffset(t.sourceNodes.get(e))},this.endDragNativeItem=function(){t.isDraggingNativeItem()&&(t.actions.endDrag(),t.registry.removeSource(t.currentNativeHandle),t.currentNativeHandle=null,t.currentNativeSource=null)},this.isNodeInDocument=function(e){return!!document&&document.body.contains(e)||!!t.window&&t.window.document.body.contains(e)},this.endDragIfSourceWasRemovedFromDOM=function(){var e=t.currentDragSourceNode;t.isNodeInDocument(e)||t.clearCurrentDragSourceNode()&&t.actions.endDrag()},this.handleTopDragStartCapture=function(){t.clearCurrentDragSourceNode(),t.dragStartSourceIds=[]},this.handleTopDragStart=function(e){var r=t.dragStartSourceIds;t.dragStartSourceIds=null;var n=a.getEventClientOffset(e);t.monitor.isDragging()&&t.actions.endDrag(),t.actions.beginDrag(r||[],{publishSource:!1,getSourceClientOffset:t.getSourceClientOffset,clientOffset:n});var o=e.dataTransfer,i=s.matchNativeItemType(o);if(t.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var u=t.monitor.getSourceId(),d=t.sourceNodes.get(u),c=t.sourcePreviewNodes.get(u)||d;if(c){var f=t.getCurrentSourcePreviewNodeOptions(),g={anchorX:f.anchorX,anchorY:f.anchorY},p={offsetX:f.offsetX,offsetY:f.offsetY},l=a.getDragPreviewOffset(d,c,n,g,p);o.setDragImage(c,l.x,l.y)}}try{o.setData("application/json",{})}catch(e){}t.setCurrentDragSourceNode(e.target),t.getCurrentSourcePreviewNodeOptions().captureDraggingState?t.actions.publishDragSource():setTimeout(function(){return t.actions.publishDragSource()},0)}else if(i)t.beginDragNativeItem(i);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=function(){t.clearCurrentDragSourceNode()&&t.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(t.dragEnterTargetIds=[],t.enterLeaveCounter.enter(e.target)&&!t.monitor.isDragging()){var r=e.dataTransfer,n=s.matchNativeItemType(r);n&&t.beginDragNativeItem(n)}},this.handleTopDragEnter=function(e){var r=t.dragEnterTargetIds;(t.dragEnterTargetIds=[],t.monitor.isDragging())&&(t.altKeyPressed=e.altKey,i.isFirefox()||t.actions.hover(r,{clientOffset:a.getEventClientOffset(e)}),r.some(function(e){return t.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=t.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){t.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var r=t.dragOverTargetIds;if(t.dragOverTargetIds=[],!t.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));t.altKeyPressed=e.altKey,t.actions.hover(r||[],{clientOffset:a.getEventClientOffset(e)}),(r||[]).some(function(e){return t.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=t.getCurrentDropEffect())):t.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){t.isDraggingNativeItem()&&e.preventDefault(),t.enterLeaveCounter.leave(e.target)&&t.isDraggingNativeItem()&&t.endDragNativeItem()},this.handleTopDropCapture=function(e){t.dropTargetIds=[],e.preventDefault(),t.isDraggingNativeItem()&&t.currentNativeSource.mutateItemByReadingDataTransfer(e.dataTransfer),t.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var r=t.dropTargetIds;t.dropTargetIds=[],t.actions.hover(r,{clientOffset:a.getEventClientOffset(e)}),t.actions.drop({dropEffect:t.getCurrentDropEffect()}),t.isDraggingNativeItem()?t.endDragNativeItem():t.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.context=e.getContext(),this.enterLeaveCounter=new o.default(this.isNodeInDocument)}return Object.defineProperty(e.prototype,"window",{get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0},enumerable:!0,configurable:!0}),e.prototype.setup=function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}},e.prototype.teardown=function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))},e.prototype.connectDragPreview=function(e,t,r){var n=this;return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),function(){n.sourcePreviewNodes.delete(e),n.sourcePreviewNodeOptions.delete(e)}},e.prototype.connectDragSource=function(e,t,r){var n=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);var o=function(t){return n.handleDragStart(t,e)},i=function(e){return n.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){n.sourceNodes.delete(e),n.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}},e.prototype.connectDropTarget=function(e,t){var r=this,n=function(t){return r.handleDragEnter(t,e)},o=function(t){return r.handleDragOver(t,e)},i=function(t){return r.handleDrop(t,e)};return t.addEventListener("dragenter",n),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",n),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}},e.prototype.addEventListeners=function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))},e.prototype.removeEventListeners=function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))},e.prototype.getCurrentSourceNodeOptions=function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return n({dropEffect:this.altKeyPressed?"copy":"move"},t||{})},e.prototype.getCurrentDropEffect=function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect},e.prototype.getCurrentSourcePreviewNodeOptions=function(){var e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions.get(e);return n({anchorX:.5,anchorY:.5,captureDraggingState:!1},t||{})},e.prototype.isDraggingNativeItem=function(){var e=this.monitor.getItemType();return Object.keys(u).some(function(t){return u[t]===e})},e.prototype.beginDragNativeItem=function(e){this.clearCurrentDragSourceNode(),this.currentNativeSource=s.createNativeDragSource(e),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])},e.prototype.setCurrentDragSourceNode=function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout(function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)},1e3)},e.prototype.clearCurrentDragSourceNode=function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)},e.prototype.handleDragStart=function(e,t){this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t)},e.prototype.handleDragEnter=function(e,t){this.dragEnterTargetIds.unshift(t)},e.prototype.handleDragOver=function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)},e.prototype.handleDrop=function(e,t){this.dropTargetIds.unshift(t)},e}();t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=function(){function e(e){this.entered=[],this.isNodeInDocument=e}return e.prototype.enter=function(e){var t=this,r=this.entered.length;return this.entered=n.union(this.entered.filter(function(r){return t.isNodeInDocument(r)&&(!r.contains||r.contains(e))}),[e]),0===r&&this.entered.length>0},e.prototype.leave=function(e){var t=this.entered.length;return this.entered=n.without(this.entered.filter(this.isNodeInDocument),e),t>0&&0===this.entered.length},e.prototype.reset=function(){this.entered=[]},e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o=r(8),i=1;function a(e){var t=e.nodeType===i?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}t.getNodeClientOffset=a,t.getEventClientOffset=function(e){return{x:e.clientX,y:e.clientY}},t.getDragPreviewOffset=function(e,t,r,i,s){var u,d,c="IMG"===(u=t).nodeName&&(n.isFirefox()||!document.documentElement.contains(u)),f=a(c?e:t),g={x:r.x-f.x,y:r.y-f.y},p=e.offsetWidth,l=e.offsetHeight,v=i.anchorX,h=i.anchorY,m=function(e,t,r,o){var i=e?t.width:r,a=e?t.height:o;return n.isSafari()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}(c,t,p,l),D=m.dragPreviewWidth,y=m.dragPreviewHeight,T=s.offsetX,E=s.offsetY,w=0===E||E;return{x:0===T||T?T:new o.default([0,.5,1],[g.x,g.x/p*D,g.x+D-p]).interpolate(v),y:w?E:(d=new o.default([0,.5,1],[g.y,g.y/l*y,g.y+y-l]).interpolate(h),n.isSafari()&&c&&(d+=(window.devicePixelRatio-1)*y),d)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=e.length,n=[],o=0;o<r;o++)n.push(o);n.sort(function(t,r){return e[t]<e[r]?-1:1});var i,a,s=[],u=[],d=[];for(o=0;o<r-1;o++)i=e[o+1]-e[o],a=t[o+1]-t[o],u.push(i),s.push(a),d.push(a/i);var c=[d[0]];for(o=0;o<u.length-1;o++){var f=d[o],g=d[o+1];if(f*g<=0)c.push(0);else{i=u[o];var p=u[o+1],l=i+p;c.push(3*l/((l+p)/f+(l+i)/g))}}c.push(d[d.length-1]);var v,h=[],m=[];for(o=0;o<c.length-1;o++){v=d[o];var D=c[o],y=1/u[o];l=D+c[o+1]-v-v;h.push((v-D-l)*y),m.push(l*y*y)}this.xs=e,this.ys=t,this.c1s=c,this.c2s=h,this.c3s=m}return e.prototype.interpolate=function(e){var t=this,r=t.xs,n=t.ys,o=t.c1s,i=t.c2s,a=t.c3s,s=r.length-1;if(e===r[s])return n[s];for(var u,d=0,c=a.length-1;d<=c;){var f=r[u=Math.floor(.5*(d+c))];if(f<e)d=u+1;else{if(!(f>e))return n[u];c=u-1}}var g=e-r[s=Math.max(0,c)],p=g*g;return n[s]+o[s]*g+i[s]*p+a[s]*g*p},e}();t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(10),o=r(12);t.createNativeDragSource=function(e){return new o.NativeDragSource(n.nativeTypesConfig[e])},t.matchNativeItemType=function(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(n.nativeTypesConfig).filter(function(e){return n.nativeTypesConfig[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),i=r(11);t.nativeTypesConfig=((n={})[o.FILE]={exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]},n[o.URL]={exposeProperties:{urls:function(e,t){return i.getDataFromDataTransfer(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]},n[o.TEXT]={exposeProperties:{text:function(e,t){return i.getDataFromDataTransfer(e,t,"")}},matchesTypes:["Text","text/plain"]},n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDataFromDataTransfer=function(e,t,r){var n=t.reduce(function(t,r){return t||e.getData(r)},"");return null!=n?n:r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){var t=this;this.config=e,this.item={},Object.keys(this.config.exposeProperties).forEach(function(e){Object.defineProperty(t.item,e,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \""+e+'" until the drop event.'),null}})})}return e.prototype.mutateItemByReadingDataTransfer=function(e){var t=this,r={};e&&Object.keys(this.config.exposeProperties).forEach(function(n){r[n]={value:t.config.exposeProperties[n](e,t.config.matchesTypes)}}),Object.defineProperties(this.item,r)},e.prototype.canDrag=function(){return!0},e.prototype.beginDrag=function(){return this.item},e.prototype.isDragging=function(e,t){return t===e.getSourceId()},e.prototype.endDrag=function(){},e}();t.NativeDragSource=n},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return n||((n=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),n}}])});
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var memoize = require('lodash/memoize');
exports.isFirefox = memoize(function () {
var discount_lodash_1 = require("./utils/discount_lodash");
exports.isFirefox = discount_lodash_1.memoize(function () {
return /firefox/i.test(navigator.userAgent);
});
exports.isSafari = memoize(function () { return Boolean(window.safari); });
exports.isSafari = discount_lodash_1.memoize(function () { return Boolean(window.safari); });
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var union = require('lodash/union');
var without = require('lodash/without');
var discount_lodash_1 = require("./utils/discount_lodash");
var EnterLeaveCounter = /** @class */ (function () {

@@ -17,3 +16,3 @@ function EnterLeaveCounter(isNodeInDocument) {

};
this.entered = union(this.entered.filter(isNodeEntered), [enteringNode]);
this.entered = discount_lodash_1.union(this.entered.filter(isNodeEntered), [enteringNode]);
return previousLength === 0 && this.entered.length > 0;

@@ -23,3 +22,3 @@ };

var previousLength = this.entered.length;
this.entered = without(this.entered.filter(this.isNodeInDocument), leavingNode);
this.entered = discount_lodash_1.without(this.entered.filter(this.isNodeInDocument), leavingNode);
return previousLength > 0 && this.entered.length === 0;

@@ -26,0 +25,0 @@ };

"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -8,3 +19,2 @@ var EnterLeaveCounter_1 = require("./EnterLeaveCounter");

var NativeTypes = require("./NativeTypes");
var defaults = require('lodash/defaults');
var HTML5Backend = /** @class */ (function () {

@@ -404,5 +414,3 @@ function HTML5Backend(manager) {

var sourceNodeOptions = this.sourceNodeOptions.get(sourceId);
return defaults(sourceNodeOptions || {}, {
dropEffect: this.altKeyPressed ? 'copy' : 'move',
});
return __assign({ dropEffect: this.altKeyPressed ? 'copy' : 'move' }, (sourceNodeOptions || {}));
};

@@ -419,7 +427,3 @@ HTML5Backend.prototype.getCurrentDropEffect = function () {

var sourcePreviewNodeOptions = this.sourcePreviewNodeOptions.get(sourceId);
return defaults(sourcePreviewNodeOptions || {}, {
anchorX: 0.5,
anchorY: 0.5,
captureDraggingState: false,
});
return __assign({ anchorX: 0.5, anchorY: 0.5, captureDraggingState: false }, (sourcePreviewNodeOptions || {}));
};

@@ -426,0 +430,0 @@ HTML5Backend.prototype.isDraggingNativeItem = function () {

@@ -1,3 +0,3 @@

const memoize = require('lodash/memoize');
import { memoize } from './utils/discount_lodash';
export const isFirefox = memoize(() => /firefox/i.test(navigator.userAgent));
export const isSafari = memoize(() => Boolean(window.safari));

@@ -1,3 +0,2 @@

const union = require('lodash/union');
const without = require('lodash/without');
import { union, without } from './utils/discount_lodash';
export default class EnterLeaveCounter {

@@ -4,0 +3,0 @@ constructor(isNodeInDocument) {

@@ -6,3 +6,2 @@ import EnterLeaveCounter from './EnterLeaveCounter';

import * as NativeTypes from './NativeTypes';
const defaults = require('lodash/defaults');
export default class HTML5Backend {

@@ -390,5 +389,3 @@ constructor(manager) {

const sourceNodeOptions = this.sourceNodeOptions.get(sourceId);
return defaults(sourceNodeOptions || {}, {
dropEffect: this.altKeyPressed ? 'copy' : 'move',
});
return Object.assign({ dropEffect: this.altKeyPressed ? 'copy' : 'move' }, (sourceNodeOptions || {}));
}

@@ -405,7 +402,3 @@ getCurrentDropEffect() {

const sourcePreviewNodeOptions = this.sourcePreviewNodeOptions.get(sourceId);
return defaults(sourcePreviewNodeOptions || {}, {
anchorX: 0.5,
anchorY: 0.5,
captureDraggingState: false,
});
return Object.assign({ anchorX: 0.5, anchorY: 0.5, captureDraggingState: false }, (sourcePreviewNodeOptions || {}));
}

@@ -412,0 +405,0 @@ isDraggingNativeItem() {

{
"name": "react-dnd-html5-backend",
"version": "7.4.0",
"version": "7.4.4",
"description": "HTML5 backend for React DnD",

@@ -24,18 +24,17 @@ "main": "lib/cjs/index.js",

"dependencies": {
"dnd-core": "^7.4.0",
"lodash": "^4.17.11"
"dnd-core": "^7.4.4"
},
"devDependencies": {
"@types/react": "^16.8.7",
"@types/react": "^16.8.10",
"npm-run-all": "^4.1.5",
"react": "link:../react-dnd/node_modules/react",
"react-dnd-test-backend": "^7.4.0",
"react-dom": "link:../react-dnd/node_modules/react-dom",
"react": "^16.8.6",
"react-dnd-test-backend": "^7.4.4",
"react-dom": "^16.8.6",
"rimraf": "^2.6.3",
"ts-loader": "^5.3.3",
"typescript": "^3.3.3333",
"typescript": "^3.4.1",
"webpack": "^4.29.6",
"webpack-cli": "^3.2.3"
},
"gitHead": "941dc2eb67e41ad924a31e4cbb793fa5dd3add71"
"gitHead": "5b58d291c6bcdb87c18cf3ad2a1d76b599a43c1f"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc