text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM"),require("ReactDnD")):"function"==typeof define&&define.amd?define(["React","ReactDOM","ReactDnD"],t):"object"==typeof exports?exports.ReactTags=t(require("React"),require("ReactDOM"),require("ReactDnD")):e.ReactTags=t(e.React,e.ReactDOM,e.ReactDnD)}("undefined"!=typeof self?self:this,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=55)}([function(e,t,n){var r=n(31),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){function r(e,t){var n=i(e,t);return o(n)?n:void 0}var o=n(64),i=n(70);e.exports=r},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){function r(e){return null==e?void 0===e?u:s:c&&c in Object(e)?i(e):a(e)}var o=n(6),i=n(66),a=n(67),s="[object Null]",u="[object Undefined]",c=o?o.toStringTag:void 0;e.exports=r},function(e,t,n){var r=n(0),o=r.Symbol;e.exports=o},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){function r(e){return null!=e&&i(e.length)&&!o(e)}var o=n(30),i=n(33);e.exports=r},function(e,t,n){var r=n(1),o=r(Object,"create");e.exports=o},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(93),i=n(94),a=n(95),s=n(96),u=n(97);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}var o=n(7);e.exports=r},function(e,t,n){function r(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}var o=n(99);e.exports=r},function(t,n){t.exports=e},function(e,t,n){function r(e,t){return a(i(e,t,o),e+"")}var o=n(27),i=n(28),a=n(29);e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o;++t<n;)this.add(e[t])}var o=n(16),i=n(103),a=n(104);r.prototype.add=r.prototype.push=i,r.prototype.has=a,e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(86),i=n(98),a=n(100),s=n(101),u=n(102);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t,n){var r=n(1),o=n(0),i=r(o,"Map");e.exports=i},function(e,t){function n(e,t){return e.has(t)}e.exports=n},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FILE="__NATIVE_FILE__",t.URL="__NATIVE_URL__",t.TEXT="__NATIVE_TEXT__"},function(e,t,n){e.exports=n(119)()},function(e,t,n){function r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}var o=n(52),i=n(23);r.prototype=o(i.prototype),r.prototype.constructor=r,e.exports=r},function(e,t){function n(){}e.exports=n},function(e,t,n){function r(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=a,this.__views__=[]}var o=n(52),i=n(23),a=4294967295;r.prototype=o(i.prototype),r.prototype.constructor=r,e.exports=r},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){function r(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=i(r.length-t,0),u=Array(s);++a<s;)u[a]=r[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=r[a];return c[t]=n(u),o(e,this,c)}}var o=n(60),i=Math.max;e.exports=r},function(e,t,n){var r=n(61),o=n(71),i=o(r);e.exports=i},function(e,t,n){function r(e){if(!i(e))return!1;var t=o(e);return t==s||t==u||t==a||t==c}var o=n(5),i=n(4),a="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";e.exports=r},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(65))},function(e,t){function n(e){if(null!=e){try{return o.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,o=r.toString;e.exports=n},function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t){function n(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&o.test(e))&&e>-1&&e%1==0&&e<t}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t,n){function r(e,t){var n=a(e),r=!n&&i(e),f=!n&&!r&&s(e),d=!n&&!r&&!f&&c(e),p=n||r||f||d,h=p?o(e.length,String):[],v=h.length;for(var g in e)!t&&!l.call(e,g)||p&&("length"==g||f&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||u(g,v))||h.push(g);return h}var o=n(74),i=n(36),a=n(3),s=n(37),u=n(34),c=n(39),f=Object.prototype,l=f.hasOwnProperty;e.exports=r},function(e,t,n){var r=n(75),o=n(2),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){(function(e){var r=n(0),o=n(76),i="object"==typeof t&&t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i,u=s?r.Buffer:void 0,c=u?u.isBuffer:void 0,f=c||o;e.exports=f}).call(t,n(38)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(77),o=n(40),i=n(78),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=n},function(e,t,n){function r(e,t,n,a,s){var u=-1,c=e.length;for(n||(n=i),s||(s=[]);++u<c;){var f=e[u];t>0&&n(f)?t>1?r(f,t-1,n,a,s):o(s,f):a||(s[s.length]=f)}return s}var o=n(43),i=n(84);e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}e.exports=n},function(e,t,n){function r(e,t){return!!(null==e?0:e.length)&&o(e,t,0)>-1}var o=n(105);e.exports=r},function(e,t){function n(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}e.exports=n},function(e,t,n){var r=n(1),o=n(0),i=r(o,"Set");e.exports=i},function(e,t){function n(){}e.exports=n},function(e,t,n){function r(e){return i(e)&&o(e)}var o=n(8),i=n(2);e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSafari=t.isFirefox=void 0;var r=n(113),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.isFirefox=(0,o.default)(function(){return/firefox/i.test(navigator.userAgent)}),t.isSafari=(0,o.default)(function(){return Boolean(window.safari)})},function(e,t,n){function r(e,t,n,r,c,f){var l=n&s,d=e.length,p=t.length;if(d!=p&&!(l&&p>d))return!1;var h=f.get(e);if(h&&f.get(t))return h==t;var v=-1,g=!0,y=n&u?new o:void 0;for(f.set(e,t),f.set(t,e);++v<d;){var m=e[v],_=t[v];if(r)var b=l?r(_,m,v,t,e,f):r(m,_,v,e,t,f);if(void 0!==b){if(b)continue;g=!1;break}if(y){if(!i(t,function(e,t){if(!a(y,t)&&(m===e||c(m,e,n,r,f)))return y.push(t)})){g=!1;break}}else if(m!==_&&!c(m,_,n,r,f)){g=!1;break}}return f.delete(e),f.delete(t),g}var o=n(15),i=n(132),a=n(18),s=1,u=2;e.exports=r},function(e,t,n){var r=n(1),o=n(0),i=r(o,"WeakMap");e.exports=i},function(e,t,n){var r=n(4),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(154),o=n(47),i=r?function(e){return r.get(e)}:o;e.exports=i},function(e,t,n){function r(e){for(var t=e.name+"",n=o[t],r=a.call(o,t)?n.length:0;r--;){var i=n[r],s=i.func;if(null==s||s==e)return i.name}return t}var o=n(155),i=Object.prototype,a=i.hasOwnProperty;e.exports=r},function(e,t,n){e.exports=n(56)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(13),f=r(c),l=n(25),d=(r(l),n(26)),p=n(57),h=r(p),v=n(118),g=r(v),y=n(21),m=r(y),_=n(149),b=r(_),x={ENTER:13,TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27},D={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion"},O=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={suggestions:n.props.suggestions,query:"",isFocused:!1,selectedIndex:-1,selectionMode:!1},n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleChange=n.handleChange.bind(n),n.moveTag=n.moveTag.bind(n),n.handlePaste=n.handlePaste.bind(n),n.resetAndFocusInput=n.resetAndFocusInput.bind(n),n.handleSuggestionHover=n.handleSuggestionHover.bind(n),n.handleSuggestionClick=n.handleSuggestionClick.bind(n),n}return a(t,e),u(t,[{key:"componentWillMount",value:function(){this.setState({classNames:s({},D,this.props.classNames)})}},{key:"resetAndFocusInput",value:function(){this.textInput.value="",this.textInput.focus()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.autofocus,n=e.readOnly;t&&!n&&this.resetAndFocusInput()}},{key:"filteredSuggestions",value:function(e,t){return this.props.handleFilterSuggestions?this.props.handleFilterSuggestions(e,t):t.filter(function(t){return 0===t.toLowerCase().indexOf(e.toLowerCase())})}},{key:"componentWillReceiveProps",value:function(e){var t=this.filteredSuggestions(this.state.query,e.suggestions);this.setState({suggestions:t,classNames:s({},D,e.classNames)})}},{key:"handleDelete",value:function(e,t){this.props.handleDelete(e,t),this.setState({query:""}),this.resetAndFocusInput(),t.stopPropagation()}},{key:"handleTagClick",value:function(e,t){this.props.handleTagClick&&this.props.handleTagClick(e,t),this.setState({query:""}),this.resetAndFocusInput()}},{key:"handleChange",value:function(e){this.props.handleInputChange&&this.props.handleInputChange(e.target.value.trim());var t=e.target.value.trim(),n=this.filteredSuggestions(t,this.props.suggestions),r=this.state.selectedIndex;r>=n.length&&(r=n.length-1),this.setState({query:t,suggestions:n,selectedIndex:r})}},{key:"handleFocus",value:function(){this.setState({isFocused:!0})}},{key:"handleBlur",value:function(e){var t=e.target.value.trim();this.props.handleInputBlur&&(this.props.handleInputBlur(t),this.textInput.value=""),this.setState({isFocused:!1})}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.query,r=(t.selectedIndex,t.suggestions);if(e.keyCode===x.ESCAPE&&(e.preventDefault(),e.stopPropagation(),this.setState({selectedIndex:-1,selectionMode:!1,suggestions:[]})),-1===this.props.delimiters.indexOf(e.keyCode)||e.shiftKey||(e.keyCode===x.TAB&&""===n||e.preventDefault(),this.state.selectionMode&&-1!=this.state.selectedIndex&&(n=this.state.suggestions[this.state.selectedIndex]),""!==n&&this.addTag(n)),e.keyCode===x.BACKSPACE&&""==n&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,e),e.keyCode===x.UP_ARROW){e.preventDefault();var o=this.state,i=o.selectedIndex,a=o.suggestions;i=i<=0?a.length-1:i-1,this.setState({selectedIndex:i,selectionMode:!0})}e.keyCode===x.DOWN_ARROW&&(e.preventDefault(),this.setState({selectedIndex:(this.state.selectedIndex+1)%r.length,selectionMode:!0}))}},{key:"handlePaste",value:function(e){var t=this;e.preventDefault();var n=function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}(this.props.delimiters.map(function(e){var t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)}).join("")),r=e.clipboardData||window.clipboardData,o=r.getData("text"),i=new RegExp("["+n+"]+");o.split(i).forEach(function(e){return t.props.handleAddition(e)})}},{key:"addTag",value:function(e){if(this.props.autocomplete){var t=this.filteredSuggestions(e,this.props.suggestions);(1===this.props.autocomplete&&1===t.length||!0===this.props.autocomplete&&t.length)&&(e=t[0])}this.props.handleAddition(e),this.setState({query:"",selectionMode:!1,selectedIndex:-1}),this.resetAndFocusInput()}},{key:"handleSuggestionClick",value:function(e,t){this.addTag(this.state.suggestions[e])}},{key:"handleSuggestionHover",value:function(e,t){this.setState({selectedIndex:e,selectionMode:!0})}},{key:"moveTag",value:function(e,t){var n=this.props.tags,r=n[e];this.props.handleDrag(r,e,t)}},{key:"render",value:function(){var e=this,t=this.props.handleDrag?this.moveTag:null,n=this.props.tags.map(function(e,n){return f.default.createElement(b.default,{key:e.id?e.id:n,index:n,tag:e,labelField:this.props.labelField,onDelete:this.handleDelete.bind(this,n),moveTag:t,removeComponent:this.props.removeComponent,onTagClicked:this.handleTagClick.bind(this,n),readOnly:this.props.readOnly,classNames:this.state.classNames})}.bind(this)),r=this.state.query.trim(),o=this.state.selectedIndex,i=this.state.suggestions,a=this.props.placeholder,s=this.props.name,u=this.props.id,c=this.props.maxLength,l=this.props.readOnly?null:f.default.createElement("div",{className:this.state.classNames.tagInput},f.default.createElement("input",{ref:function(t){e.textInput=t},className:this.state.classNames.tagInputField,type:"text",placeholder:a,"aria-label":a,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,name:s,id:u,maxLength:c,value:this.props.inputValue}),f.default.createElement(g.default,{query:r,suggestions:i,selectedIndex:o,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,isFocused:this.state.isFocused,classNames:this.state.classNames}));return f.default.createElement("div",{className:this.state.classNames.tags},f.default.createElement("div",{className:this.state.classNames.selected},n,this.props.inline&&l),!this.props.inline&&l)}}]),t}(c.Component);O.propTypes={placeholder:m.default.string,labelField:m.default.string,suggestions:m.default.array,delimiters:m.default.array,autofocus:m.default.bool,inline:m.default.bool,handleDelete:m.default.func.isRequired,handleAddition:m.default.func.isRequired,handleDrag:m.default.func,handleFilterSuggestions:m.default.func,handleTagClick:m.default.func,allowDeleteFromEmptyInput:m.default.bool,handleInputChange:m.default.func,handleInputBlur:m.default.func,minQueryLength:m.default.number,shouldRenderSuggestions:m.default.func,removeComponent:m.default.func,autocomplete:m.default.oneOfType([m.default.bool,m.default.number]),readOnly:m.default.bool,classNames:m.default.object,name:m.default.string,id:m.default.string,maxLength:m.default.string,inputValue:m.default.string},O.defaultProps={placeholder:"Add new tag",tags:[],suggestions:[],delimiters:[x.ENTER,x.TAB],autofocus:!0,inline:!0,allowDeleteFromEmptyInput:!0,minQueryLength:2,autocomplete:!1,readOnly:!1},e.exports={WithContext:(0,d.DragDropContext)(h.default)(O),WithOutContext:O,Keys:x}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return new a.default(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyImage=t.NativeTypes=void 0,t.default=o;var i=n(58),a=r(i),s=n(117),u=r(s),c=n(20),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(c);t.NativeTypes=f,t.getEmptyImage=u.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(59),s=r(a),u=n(81),c=r(u),f=n(82),l=r(f),d=n(49),p=n(114),h=n(116),v=n(20),g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(v),y=function(){function e(t){o(this,e),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.context=t.getContext(),this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.sourceNodes={},this.sourceNodeOptions={},this.enterLeaveCounter=new l.default,this.dragStartSourceIds=[],this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.altKeyPressed=!1,this.getSourceClientOffset=this.getSourceClientOffset.bind(this),this.handleTopDragStart=this.handleTopDragStart.bind(this),this.handleTopDragStartCapture=this.handleTopDragStartCapture.bind(this),this.handleTopDragEndCapture=this.handleTopDragEndCapture.bind(this),this.handleTopDragEnter=this.handleTopDragEnter.bind(this),this.handleTopDragEnterCapture=this.handleTopDragEnterCapture.bind(this),this.handleTopDragLeaveCapture=this.handleTopDragLeaveCapture.bind(this),this.handleTopDragOver=this.handleTopDragOver.bind(this),this.handleTopDragOverCapture=this.handleTopDragOverCapture.bind(this),this.handleTopDrop=this.handleTopDrop.bind(this),this.handleTopDropCapture=this.handleTopDropCapture.bind(this),this.handleSelectStart=this.handleSelectStart.bind(this),this.endDragIfSourceWasRemovedFromDOM=this.endDragIfSourceWasRemovedFromDOM.bind(this),this.endDragNativeItem=this.endDragNativeItem.bind(this),this.asyncEndDragNativeItem=this.asyncEndDragNativeItem.bind(this),this.isNodeInDocument=this.isNodeInDocument.bind(this)}return i(e,[{key:"setup",value: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)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"addEventListeners",value: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))}},{key:"removeEventListeners",value: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))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions[e]=n,this.sourcePreviewNodes[e]=t,function(){delete r.sourcePreviewNodes[e],delete r.sourcePreviewNodeOptions[e]}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes[e]=t,this.sourceNodeOptions[e]=n;var o=function(t){return r.handleDragStart(t,e)},i=function(t){return r.handleSelectStart(t,e)};return t.setAttribute("draggable",!0),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){delete r.sourceNodes[e],delete r.sourceNodeOptions[e],t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable",!1)}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions[e];return(0,s.default)(t||{},{dropEffect:this.altKeyPressed?"copy":"move"})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions[e];return(0,s.default)(t||{},{anchorX:.5,anchorY:.5,captureDraggingState:!1})}},{key:"getSourceClientOffset",value:function(e){return(0,p.getNodeClientOffset)(this.sourceNodes[e])}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(g).some(function(t){return g[t]===e})}},{key:"beginDragNativeItem",value:function(e){this.clearCurrentDragSourceNode();var t=(0,h.createNativeDragSource)(e);this.currentNativeSource=new t,this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle]),(0,d.isFirefox)()&&this.window.addEventListener("mouseover",this.asyncEndDragNativeItem,!0)}},{key:"asyncEndDragNativeItem",value:function(){this.asyncEndDragFrameId=this.window.requestAnimationFrame(this.endDragNativeItem),(0,d.isFirefox)()&&(this.window.removeEventListener("mouseover",this.asyncEndDragNativeItem,!0),this.enterLeaveCounter.reset())}},{key:"endDragNativeItem",value:function(){this.isDraggingNativeItem()&&(this.actions.endDrag(),this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)}},{key:"isNodeInDocument",value:function(e){return!(!document.body.contains(e)&&!this.window)&&this.window.document.body.contains(e)}},{key:"endDragIfSourceWasRemovedFromDOM",value:function(){var e=this.currentDragSourceNode;this.isNodeInDocument(e)||this.clearCurrentDragSourceNode()&&this.actions.endDrag()}},{key:"setCurrentDragSourceNode",value:function(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.currentDragSourceNodeOffset=(0,p.getNodeClientOffset)(e),this.currentDragSourceNodeOffsetChanged=!1,this.window.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0),!0)}},{key:"checkIfCurrentDragSourceRectChanged",value:function(){var e=this.currentDragSourceNode;return!!e&&(!!this.currentDragSourceNodeOffsetChanged||(this.currentDragSourceNodeOffsetChanged=!(0,c.default)((0,p.getNodeClientOffset)(e),this.currentDragSourceNodeOffset),this.currentDragSourceNodeOffsetChanged))}},{key:"handleTopDragStartCapture",value:function(){this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]}},{key:"handleDragStart",value:function(e,t){this.dragStartSourceIds.unshift(t)}},{key:"handleTopDragStart",value:function(e){var t=this,n=this.dragStartSourceIds;this.dragStartSourceIds=null;var r=(0,p.getEventClientOffset)(e);this.monitor.isDragging()&&this.actions.endDrag(),this.actions.beginDrag(n,{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});var o=e.dataTransfer,i=(0,h.matchNativeItemType)(o);if(this.monitor.isDragging()){if("function"==typeof o.setDragImage){var a=this.monitor.getSourceId(),s=this.sourceNodes[a],u=this.sourcePreviewNodes[a]||s,c=this.getCurrentSourcePreviewNodeOptions(),f=c.anchorX,l=c.anchorY,d=c.offsetX,v=c.offsetY,g={anchorX:f,anchorY:l},y={offsetX:d,offsetY:v},m=(0,p.getDragPreviewOffset)(s,u,r,g,y);o.setDragImage(u,m.x,m.y)}try{o.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);this.getCurrentSourcePreviewNodeOptions().captureDraggingState?this.actions.publishDragSource():setTimeout(function(){return t.actions.publishDragSource()})}else if(i)this.beginDragNativeItem(i);else{if(!(o.types||e.target.hasAttribute&&e.target.hasAttribute("draggable")))return;e.preventDefault()}}},{key:"handleTopDragEndCapture",value:function(){this.clearCurrentDragSourceNode()&&this.actions.endDrag()}},{key:"handleTopDragEnterCapture",value:function(e){if(this.dragEnterTargetIds=[],this.enterLeaveCounter.enter(e.target)&&!this.monitor.isDragging()){var t=e.dataTransfer,n=(0,h.matchNativeItemType)(t);n&&this.beginDragNativeItem(n)}}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleTopDragEnter",value:function(e){var t=this,n=this.dragEnterTargetIds;if(this.dragEnterTargetIds=[],this.monitor.isDragging()){this.altKeyPressed=e.altKey,(0,d.isFirefox)()||this.actions.hover(n,{clientOffset:(0,p.getEventClientOffset)(e)});n.some(function(e){return t.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect())}}},{key:"handleTopDragOverCapture",value:function(){this.dragOverTargetIds=[]}},{key:"handleDragOver",value:function(e,t){this.dragOverTargetIds.unshift(t)}},{key:"handleTopDragOver",value:function(e){var t=this,n=this.dragOverTargetIds;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer.dropEffect="none");this.altKeyPressed=e.altKey,this.actions.hover(n,{clientOffset:(0,p.getEventClientOffset)(e)}),n.some(function(e){return t.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect()):this.isDraggingNativeItem()?(e.preventDefault(),e.dataTransfer.dropEffect="none"):this.checkIfCurrentDragSourceRectChanged()&&(e.preventDefault(),e.dataTransfer.dropEffect="move")}},{key:"handleTopDragLeaveCapture",value:function(e){this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&this.isDraggingNativeItem()&&this.endDragNativeItem()}},{key:"handleTopDropCapture",value:function(e){this.dropTargetIds=[],e.preventDefault(),this.isDraggingNativeItem()&&this.currentNativeSource.mutateItemByReadingDataTransfer(e.dataTransfer),this.enterLeaveCounter.reset()}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"handleTopDrop",value:function(e){var t=this.dropTargetIds;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:(0,p.getEventClientOffset)(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.endDragIfSourceWasRemovedFromDOM()}},{key:"handleSelectStart",value: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()))}},{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}}]),e}();t.default=y},function(e,t,n){var r=n(14),o=n(7),i=n(72),a=n(73),s=Object.prototype,u=s.hasOwnProperty,c=r(function(e,t){e=Object(e);var n=-1,r=t.length,c=r>2?t[2]:void 0;for(c&&i(t[0],t[1],c)&&(r=1);++n<r;)for(var f=t[n],l=a(f),d=-1,p=l.length;++d<p;){var h=l[d],v=e[h];(void 0===v||o(v,s[h])&&!u.call(e,h))&&(e[h]=f[h])}return e});e.exports=c},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},function(e,t,n){var r=n(62),o=n(63),i=n(27),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t,n){var r=n(1),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){function r(e){return!(!a(e)||i(e))&&(o(e)?h:c).test(s(e))}var o=n(30),i=n(68),a=n(4),s=n(32),u=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,f=Function.prototype,l=Object.prototype,d=f.toString,p=l.hasOwnProperty,h=RegExp("^"+d.call(p).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){function r(e){var t=a.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[u]=n:delete e[u]),o}var o=n(6),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,u=o?o.toStringTag:void 0;e.exports=r},function(e,t){function n(e){return o.call(e)}var r=Object.prototype,o=r.toString;e.exports=n},function(e,t,n){function r(e){return!!i&&i in e}var o=n(69),i=function(){var e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},function(e,t,n){var r=n(0),o=r["__core-js_shared__"];e.exports=o},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t){function n(e){var t=0,n=0;return function(){var a=i(),s=o-(a-n);if(n=a,s>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,o=16,i=Date.now;e.exports=n},function(e,t,n){function r(e,t,n){if(!s(n))return!1;var r=typeof t;return!!("number"==r?i(n)&&a(t,n.length):"string"==r&&t in n)&&o(n[t],e)}var o=n(7),i=n(8),a=n(34),s=n(4);e.exports=r},function(e,t,n){function r(e){return a(e)?o(e,!0):i(e)}var o=n(35),i=n(79),a=n(8);e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=n},function(e,t,n){function r(e){return i(e)&&o(e)==a}var o=n(5),i=n(2),a="[object Arguments]";e.exports=r},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){function r(e){return a(e)&&i(e.length)&&!!s[o(e)]}var o=n(5),i=n(33),a=n(2),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=r},function(e,t,n){(function(e){var r=n(31),o="object"==typeof t&&t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a&&r.process,u=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(t,n(38)(e))},function(e,t,n){function r(e){if(!o(e))return a(e);var t=i(e),n=[];for(var r in e)("constructor"!=r||!t&&u.call(e,r))&&n.push(r);return n}var o=n(4),i=n(41),a=n(80),s=Object.prototype,u=s.hasOwnProperty;e.exports=r},function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<n.length;i+=1){if(!o.call(t,n[i])||e[n[i]]!==t[n[i]])return!1;if(e[n[i]]!==t[n[i]])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(83),s=r(a),u=n(110),c=r(u),f=function(){function e(){o(this,e),this.entered=[]}return i(e,[{key:"enter",value:function(e){var t=this.entered.length,n=function(t){return document.documentElement.contains(t)&&(!t.contains||t.contains(e))};return this.entered=(0,s.default)(this.entered.filter(n),[e]),0===t&&this.entered.length>0}},{key:"leave",value:function(e){var t=this.entered.length;return this.entered=(0,c.default)(this.entered.filter(function(e){return document.documentElement.contains(e)}),e),t>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}]),e}();t.default=f},function(e,t,n){var r=n(42),o=n(14),i=n(85),a=n(48),s=o(function(e){return i(r(e,1,a,!0))});e.exports=s},function(e,t,n){function r(e){return a(e)||i(e)||!!(s&&e&&e[s])}var o=n(6),i=n(36),a=n(3),s=o?o.isConcatSpreadable:void 0;e.exports=r},function(e,t,n){function r(e,t,n){var r=-1,l=i,d=e.length,p=!0,h=[],v=h;if(n)p=!1,l=a;else if(d>=f){var g=t?null:u(e);if(g)return c(g);p=!1,l=s,v=new o}else v=t?[]:h;e:for(;++r<d;){var y=e[r],m=t?t(y):y;if(y=n||0!==y?y:0,p&&m===m){for(var _=v.length;_--;)if(v[_]===m)continue e;t&&v.push(m),h.push(y)}else l(v,m,n)||(v!==h&&v.push(m),h.push(y))}return h}var o=n(15),i=n(44),a=n(45),s=n(18),u=n(109),c=n(19),f=200;e.exports=r},function(e,t,n){function r(){this.size=0,this.__data__={hash:new o,map:new(a||i),string:new o}}var o=n(87),i=n(10),a=n(17);e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(88),i=n(89),a=n(90),s=n(91),u=n(92);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t,n){function r(){this.__data__=o?o(null):{},this.size=0}var o=n(9);e.exports=r},function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},function(e,t,n){function r(e){var t=this.__data__;if(o){var n=t[e];return n===i?void 0:n}return s.call(t,e)?t[e]:void 0}var o=n(9),i="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){var t=this.__data__;return o?void 0!==t[e]:a.call(t,e)}var o=n(9),i=Object.prototype,a=i.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?i:t,this}var o=n(9),i="__lodash_hash_undefined__";e.exports=r},function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}var o=n(11),i=Array.prototype,a=i.splice;e.exports=r},function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}var o=n(11);e.exports=r},function(e,t,n){function r(e){return o(this.__data__,e)>-1}var o=n(11);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var o=n(11);e.exports=r},function(e,t,n){function r(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}var o=n(12);e.exports=r},function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},function(e,t,n){function r(e){return o(this,e).get(e)}var o=n(12);e.exports=r},function(e,t,n){function r(e){return o(this,e).has(e)}var o=n(12);e.exports=r},function(e,t,n){function r(e,t){var n=o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var o=n(12);e.exports=r},function(e,t){function n(e){return this.__data__.set(e,r),this}var r="__lodash_hash_undefined__";e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function r(e,t,n){return t===t?a(e,t,n):o(e,i,n)}var o=n(106),i=n(107),a=n(108);e.exports=r},function(e,t){function n(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}e.exports=n},function(e,t){function n(e){return e!==e}e.exports=n},function(e,t){function n(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}e.exports=n},function(e,t,n){var r=n(46),o=n(47),i=n(19),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},function(e,t,n){var r=n(111),o=n(14),i=n(48),a=o(function(e,t){return i(e)?r(e,t):[]});e.exports=a},function(e,t,n){function r(e,t,n,r){var l=-1,d=i,p=!0,h=e.length,v=[],g=t.length;if(!h)return v;n&&(t=s(t,u(n))),r?(d=a,p=!1):t.length>=f&&(d=c,p=!1,t=new o(t));e:for(;++l<h;){var y=e[l],m=null==n?y:n(y);if(y=r||0!==y?y:0,p&&m===m){for(var _=g;_--;)if(t[_]===m)continue e;v.push(y)}else d(t,m,r)||v.push(y)}return v}var o=n(15),i=n(44),a=n(45),s=n(112),u=n(40),c=n(18),f=200;e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}e.exports=n},function(e,t,n){function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(r.Cache||o),n}var o=n(16),i="Expected a function";r.Cache=o,e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.nodeType===l?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function o(e){return{x:e.clientX,y:e.clientY}}function i(e){return"IMG"===e.nodeName&&((0,u.isFirefox)()||!document.documentElement.contains(e))}function a(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return(0,u.isSafari)()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}function s(e,t,n,o,s){var c=i(t),l=c?e:t,d=r(l),p={x:n.x-d.x,y:n.y-d.y},h=e.offsetWidth,v=e.offsetHeight,g=o.anchorX,y=o.anchorY,m=a(c,t,h,v),_=m.dragPreviewWidth,b=m.dragPreviewHeight,x=s.offsetX,D=s.offsetY,O=0===x||x,w=0===D||D;return{x:O?x:function(){return new f.default([0,.5,1],[p.x,p.x/h*_,p.x+_-h]).interpolate(g)}(),y:w?D:function(){var e=new f.default([0,.5,1],[p.y,p.y/v*b,p.y+b-v]),t=e.interpolate(y);return(0,u.isSafari)()&&c&&(t+=(window.devicePixelRatio-1)*b),t}()}}Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeClientOffset=r,t.getEventClientOffset=o,t.getDragPreviewOffset=s;var u=n(49),c=n(115),f=function(e){return e&&e.__esModule?e:{default:e}}(c),l=1},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n){r(this,e);for(var o=t.length,i=[],a=0;a<o;a++)i.push(a);i.sort(function(e,n){return t[e]<t[n]?-1:1});for(var s=[],u=[],c=[],f=void 0,l=void 0,d=0;d<o-1;d++)f=t[d+1]-t[d],l=n[d+1]-n[d],u.push(f),s.push(l),c.push(l/f);for(var p=[c[0]],h=0;h<u.length-1;h++){var v=c[h],g=c[h+1];if(v*g<=0)p.push(0);else{f=u[h];var y=u[h+1],m=f+y;p.push(3*m/((m+y)/v+(m+f)/g))}}p.push(c[c.length-1]);for(var _=[],b=[],x=void 0,D=0;D<p.length-1;D++){x=c[D];var O=p[D],w=1/u[D],T=O+p[D+1]-x-x;_.push((x-O-T)*w),b.push(T*w*w)}this.xs=t,this.ys=n,this.c1s=p,this.c2s=_,this.c3s=b}return o(e,[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s=0,u=i.length-1,c=void 0;s<=u;){c=Math.floor(.5*(s+u));var f=t[c];if(f<e)s=c+1;else{if(!(f>e))return n[c];u=c-1}}a=Math.max(0,u);var l=e-t[a],d=l*l;return n[a]+r[a]*l+o[a]*d+i[a]*l*d}}]),e}();t.default=i},function(e,t,n){"use strict";function r(e,t){for(var n in t){var r=t[n];r.configurable=r.enumerable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n,r)}return e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n){var r=t.reduce(function(t,n){return t||e.getData(n)},null);return null!=r?r:n}function s(e){var t=p[e],n=t.exposeProperty,i=t.matchesTypes,a=t.getData;return function(){function e(){var t,i;o(this,e),this.item=(t={},i={},i[n]=i[n]||{},i[n].get=function(){return console.warn("Browser doesn't allow reading \""+n+'" until the drop event.'),null},r(t,i),t)}return f(e,[{key:"mutateItemByReadingDataTransfer",value:function(e){delete this.item[n],this.item[n]=a(e,i)}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}]),e}()}function u(e){var t=Array.prototype.slice.call(e.types||[]);return Object.keys(p).filter(function(e){return p[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}Object.defineProperty(t,"__esModule",{value:!0});var c,f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.createNativeDragSource=s,t.matchNativeItemType=u;var l=n(20),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),p=(c={},i(c,d.FILE,{exposeProperty:"files",matchesTypes:["Files"],getData:function(e){return Array.prototype.slice.call(e.files)}}),i(c,d.URL,{exposeProperty:"urls",matchesTypes:["Url","text/uri-list"],getData:function(e,t){return a(e,t,"").split("\n")}}),i(c,d.TEXT,{exposeProperty:"text",matchesTypes:["Text","text/plain"],getData:function(e,t){return a(e,t,"")}}),c)},function(e,t,n){"use strict";function r(){return o||(o=new Image,o.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=void 0},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(13),c=r(u),f=n(21),l=r(f),d=n(123),p=r(d),h=function(e,t){var n=t.offsetHeight,r=e.offsetHeight,o=e.offsetTop-t.scrollTop;o+r>=n?t.scrollTop+=o-n+r:o<0&&(t.scrollTop+=o)},v=function(e){function t(){var e,n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.markIt=function(e,t){var n=t.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&");return{__html:e.replace(RegExp(n,"gi"),"<mark>$&</mark>")}},r.shouldRenderSuggestions=function(e){var t=r,n=t.props,o=Number.isInteger(n.minQueryLength)?n.minQueryLength:2;return e.length>=o&&n.isFocused},a=n,i(r,a)}return a(t,e),s(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return t.isFocused!==e.isFocused||!(0,p.default)(t.suggestions,e.suggestions)||n(e.query)||n(e.query)!=n(t.query)}},{key:"componentDidUpdate",value:function(e){var t=this.refs.suggestionsContainer,n=this.props,r=n.selectedIndex,o=n.classNames;if(t&&e.selectedIndex!==r){var i=t.querySelector(o.activeSuggestion);i&&h(i,t)}}},{key:"render",value:function(){var e=this.props,t=e.suggestions.map(function(t,n){return c.default.createElement("li",{key:n,onMouseDown:e.handleClick.bind(null,n),onMouseOver:e.handleHover.bind(null,n),className:n==e.selectedIndex?e.classNames.activeSuggestion:""},c.default.createElement("span",{dangerouslySetInnerHTML:this.markIt(t,e.query)}))}.bind(this)),n=e.shouldRenderSuggestions||this.shouldRenderSuggestions;return 0!==t.length&&n(e.query)?c.default.createElement("div",{ref:"suggestionsContainer",className:this.props.classNames.suggestions},c.default.createElement("ul",null," ",t," ")):null}}]),t}(u.Component);v.propTypes={query:l.default.string.isRequired,selectedIndex:l.default.number.isRequired,suggestions:l.default.array.isRequired,handleClick:l.default.func.isRequired,handleHover:l.default.func.isRequired,minQueryLength:l.default.number,shouldRenderSuggestions:l.default.func,isFocused:l.default.bool.isRequired,classNames:l.default.object},t.default=v},function(e,t,n){"use strict";var r=n(120),o=n(121),i=n(122);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,u){if(o(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,r,i,a,s,u],l=0;c=new Error(t.replace(/%s/g,function(){return f[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){function r(e,t){return o(e,t)}var o=n(124);e.exports=r},function(e,t,n){function r(e,t,n,a,s){return e===t||(null==e||null==t||!i(e)&&!i(t)?e!==e&&t!==t:o(e,t,n,a,r,s))}var o=n(125),i=n(2);e.exports=r},function(e,t,n){function r(e,t,n,r,g,m){var _=c(e),b=c(t),x=_?h:u(e),D=b?h:u(t);x=x==p?v:x,D=D==p?v:D;var O=x==v,w=D==v,T=x==D;if(T&&f(e)){if(!f(t))return!1;_=!0,O=!1}if(T&&!O)return m||(m=new o),_||l(e)?i(e,t,n,r,g,m):a(e,t,x,n,r,g,m);if(!(n&d)){var S=O&&y.call(e,"__wrapped__"),E=w&&y.call(t,"__wrapped__");if(S||E){var C=S?e.value():e,j=E?t.value():t;return m||(m=new o),g(C,j,n,r,m)}}return!!T&&(m||(m=new o),s(e,t,n,r,g,m))}var o=n(126),i=n(50),a=n(133),s=n(136),u=n(146),c=n(3),f=n(37),l=n(39),d=1,p="[object Arguments]",h="[object Array]",v="[object Object]",g=Object.prototype,y=g.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){var t=this.__data__=new o(e);this.size=t.size}var o=n(10),i=n(127),a=n(128),s=n(129),u=n(130),c=n(131);r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=u,r.prototype.set=c,e.exports=r},function(e,t,n){function r(){this.__data__=new o,this.size=0}var o=n(10);e.exports=r},function(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(e,t),this.size=n.size,this}var o=n(10),i=n(17),a=n(16),s=200;e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}e.exports=n},function(e,t,n){function r(e,t,n,r,o,O,T){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!O(new i(e),new i(t)));case d:case p:case g:return a(+e,+t);case h:return e.name==t.name&&e.message==t.message;case y:case _:return e==t+"";case v:var S=u;case m:var E=r&f;if(S||(S=c),e.size!=t.size&&!E)return!1;var C=T.get(e);if(C)return C==t;r|=l,T.set(e,t);var j=s(S(e),S(t),r,o,O,T);return T.delete(e),j;case b:if(w)return w.call(e)==w.call(t)}return!1}var o=n(6),i=n(134),a=n(7),s=n(50),u=n(135),c=n(19),f=1,l=2,d="[object Boolean]",p="[object Date]",h="[object Error]",v="[object Map]",g="[object Number]",y="[object RegExp]",m="[object Set]",_="[object String]",b="[object Symbol]",x="[object ArrayBuffer]",D="[object DataView]",O=o?o.prototype:void 0,w=O?O.valueOf:void 0;e.exports=r},function(e,t,n){var r=n(0),o=r.Uint8Array;e.exports=o},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}e.exports=n},function(e,t,n){function r(e,t,n,r,a,u){var c=n&i,f=o(e),l=f.length;if(l!=o(t).length&&!c)return!1;for(var d=l;d--;){var p=f[d];if(!(c?p in t:s.call(t,p)))return!1}var h=u.get(e);if(h&&u.get(t))return h==t;var v=!0;u.set(e,t),u.set(t,e);for(var g=c;++d<l;){p=f[d];var y=e[p],m=t[p];if(r)var _=c?r(m,y,p,t,e,u):r(y,m,p,e,t,u);if(!(void 0===_?y===m||a(y,m,n,r,u):_)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var b=e.constructor,x=t.constructor;b!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x)&&(v=!1)}return u.delete(e),u.delete(t),v}var o=n(137),i=1,a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){return o(e,a,i)}var o=n(138),i=n(139),a=n(142);e.exports=r},function(e,t,n){function r(e,t,n){var r=t(e);return i(e)?r:o(r,n(e))}var o=n(43),i=n(3);e.exports=r},function(e,t,n){var r=n(140),o=n(141),i=Object.prototype,a=i.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(e){return null==e?[]:(e=Object(e),r(s(e),function(t){return a.call(e,t)}))}:o;e.exports=u},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}e.exports=n},function(e,t){function n(){return[]}e.exports=n},function(e,t,n){function r(e){return a(e)?o(e):i(e)}var o=n(35),i=n(143),a=n(8);e.exports=r},function(e,t,n){function r(e){if(!o(e))return i(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}var o=n(41),i=n(144),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){var r=n(145),o=r(Object.keys,Object);e.exports=o},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){var r=n(147),o=n(17),i=n(148),a=n(46),s=n(51),u=n(5),c=n(32),f=c(r),l=c(o),d=c(i),p=c(a),h=c(s),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case f:return"[object DataView]";case l:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){var r=n(1),o=n(0),i=r(o,"DataView");e.exports=i},function(e,t,n){var r=n(1),o=n(0),i=r(o,"Promise");e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){if(e.readOnly)return c.default.createElement("span",null);if(e.removeComponent){var t=e.removeComponent;return c.default.createElement(t,e)}return c.default.createElement("a",{onClick:e.onClick,className:e.className},String.fromCharCode(215))}Object.defineProperty(t,"__esModule",{value:!0});var u=n(13),c=r(u),f=n(25),l=n(26),d=n(21),p=r(d),h=n(150),v=r(h),g={TAG:"tag"},y={beginDrag:function(e){return{id:e.tag.id,index:e.index}},canDrag:function(e){return e.moveTag&&!e.readOnly}},m={hover:function(e,t,n){var r=t.getItem().index,o=e.index;if(r!==o){var i=(0,f.findDOMNode)(n).getBoundingClientRect(),a=(i.right-i.left)/2,s=t.getClientOffset(),u=s.x-i.left;r<o&&u<a||r>o&&u>a||(e.moveTag(r,o),t.getItem().index=o)}},canDrop:function(e){return!e.readOnly}},_=function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}},b=function(e,t){return{connectDropTarget:e.dropTarget()}},x=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,f=Array(u),l=0;l<u;l++)f[l]=arguments[l];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(f))),r.render=function(){var e=r,t=e.props,n=t.tag[t.labelField],o=t.connectDragSource,i=t.isDragging,a=t.connectDropTarget;t.readOnly,t.CustomRemoveComponent;return o(a(c.default.createElement("span",{style:{opacity:i?0:1},className:t.classNames.tag,onClick:t.onTagClicked},n,c.default.createElement(s,{tag:t.tag,className:t.classNames.remove,removeComponent:t.removeComponent,onClick:t.onDelete,readOnly:t.readOnly}))))},a=n,i(r,a)}return a(t,e),t}(u.Component);x.propTypes={labelField:p.default.string,onDelete:p.default.func.isRequired,tag:p.default.object.isRequired,moveTag:p.default.func,removeComponent:p.default.func,onTagClicked:p.default.func,classNames:p.default.object,readOnly:p.default.bool,connectDragSource:p.default.func.isRequired,isDragging:p.default.bool.isRequired,connectDropTarget:p.default.func.isRequired},x.defaultProps={labelField:"text",readOnly:!1},t.default=(0,v.default)((0,l.DragSource)(g.TAG,y,_),(0,l.DropTarget)(g.TAG,m,b))(x)},function(e,t,n){var r=n(151),o=r();e.exports=o},function(e,t,n){function r(e){return i(function(t){var n=t.length,r=n,i=o.prototype.thru;for(e&&t.reverse();r--;){var v=t[r];if("function"!=typeof v)throw new TypeError(f);if(i&&!g&&"wrapper"==s(v))var g=new o([],!0)}for(r=g?r:n;++r<n;){v=t[r];var y=s(v),m="wrapper"==y?a(v):void 0;g=m&&c(m[0])&&m[1]==(p|l|d|h)&&!m[4].length&&1==m[9]?g[s(m[0])].apply(g,m[3]):1==v.length&&c(v)?g[y]():g.thru(v)}return function(){var e=arguments,r=e[0];if(g&&1==e.length&&u(r))return g.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}var o=n(22),i=n(152),a=n(53),s=n(54),u=n(3),c=n(156),f="Expected a function",l=8,d=32,p=128,h=256;e.exports=r},function(e,t,n){function r(e){return a(i(e,void 0,o),e+"")}var o=n(153),i=n(28),a=n(29);e.exports=r},function(e,t,n){function r(e){return(null==e?0:e.length)?o(e,1):[]}var o=n(42);e.exports=r},function(e,t,n){var r=n(51),o=r&&new r;e.exports=o},function(e,t){var n={};e.exports=n},function(e,t,n){function r(e){var t=a(e),n=s[t];if("function"!=typeof n||!(t in o.prototype))return!1;if(e===n)return!0;var r=i(n);return!!r&&e===r[0]}var o=n(24),i=n(53),a=n(54),s=n(157);e.exports=r},function(e,t,n){function r(e){if(u(e)&&!s(e)&&!(e instanceof o)){if(e instanceof i)return e;if(l.call(e,"__wrapped__"))return c(e)}return new i(e)}var o=n(24),i=n(22),a=n(23),s=n(3),u=n(2),c=n(158),f=Object.prototype,l=f.hasOwnProperty;r.prototype=a.prototype,r.prototype.constructor=r,e.exports=r},function(e,t,n){function r(e){if(e instanceof o)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var o=n(24),i=n(22),a=n(159);e.exports=r},function(e,t){function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}e.exports=n}])});