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

react-tag-input

Package Overview
Dependencies
Maintainers
3
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tag-input - npm Package Compare versions

Comparing version 6.4.1 to 6.4.2

82

dist-modules/components/ReactTags.js
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
//Constants
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = require('react');

@@ -20,2 +17,6 @@

var _isEqual = require('lodash/isEqual');
var _isEqual2 = _interopRequireDefault(_isEqual);
var _noop = require('lodash/noop');

@@ -41,6 +42,2 @@

var _memoizeOne = require('memoize-one');
var _memoizeOne2 = _interopRequireDefault(_memoizeOne);
var _Tag = require('./Tag');

@@ -64,8 +61,5 @@

var updateClassNames = (0, _memoizeOne2.default)(function (classNames) {
return {
classNames: _extends({}, _constants.DEFAULT_CLASSNAMES, classNames)
};
});
//Constants
var ReactTags = function (_Component) {

@@ -87,4 +81,3 @@ _inherits(ReactTags, _Component);

var suggestions = props.suggestions,
classNames = props.classNames;
var suggestions = props.suggestions;

@@ -96,6 +89,4 @@ _this.state = {

selectedIndex: -1,
selectionMode: false,
classNames: _extends({}, _constants.DEFAULT_CLASSNAMES, classNames)
selectionMode: false
};
// TODO : remove classNames from state and change updateClassNames to instance function
_this.handleFocus = _this.handleFocus.bind(_this);

@@ -110,3 +101,2 @@ _this.handleBlur = _this.handleBlur.bind(_this);

_this.handleSuggestionClick = _this.handleSuggestionClick.bind(_this);
return _this;

@@ -122,2 +112,3 @@ }

if (autofocus && !readOnly) {

@@ -128,2 +119,9 @@ this.resetAndFocusInput();

}, {
key: 'componentDidUpdate',
value: function componentDidUpdate(prevProps) {
if (!(0, _isEqual2.default)(prevProps.suggestions, this.props.suggestions)) {
this.updateSuggestions();
}
}
}, {
key: 'filteredSuggestions',

@@ -185,12 +183,4 @@ value: function filteredSuggestions(query, suggestions) {

var query = e.target.value.trim();
var suggestions = this.filteredSuggestions(query, this.props.suggestions);
var selectedIndex = this.state.selectedIndex;
this.setState({
query: query,
suggestions: suggestions,
selectedIndex: selectedIndex >= suggestions.length ? suggestions.length - 1 : selectedIndex
});
this.setState({ query: query }, this.updateSuggestions);
}

@@ -338,2 +328,3 @@ }, {

var tagItems = this.getTagItems();
var classNames = _extends({}, _constants.DEFAULT_CLASSNAMES, this.props.classNames);

@@ -358,3 +349,3 @@ // get the suggestions for the given query

'div',
{ className: this.state.classNames.tagInput },
{ className: classNames.tagInput },
_react2.default.createElement('input', {

@@ -364,3 +355,3 @@ ref: function ref(input) {

},
className: this.state.classNames.tagInputField,
className: classNames.tagInputField,
type: 'text',

@@ -389,3 +380,3 @@ placeholder: placeholder,

isFocused: this.state.isFocused,
classNames: this.state.classNames,
classNames: classNames,
renderSuggestion: this.props.renderSuggestion

@@ -397,7 +388,7 @@ })

'div',
{ className: (0, _classnames2.default)(this.state.classNames.tags, 'react-tags-wrapper') },
{ className: (0, _classnames2.default)(classNames.tags, 'react-tags-wrapper') },
position === _constants.INPUT_FIELD_POSITIONS.TOP && tagInput,
_react2.default.createElement(
'div',
{ className: this.state.classNames.selected },
{ className: classNames.selected },
tagItems,

@@ -409,9 +400,2 @@ position === _constants.INPUT_FIELD_POSITIONS.INLINE && tagInput

}
}], [{
key: 'getDerivedStateFromProps',
value: function getDerivedStateFromProps(props) {
var classNames = props.classNames;
return updateClassNames(classNames);
}
}]);

@@ -488,2 +472,15 @@

this.updateSuggestions = function () {
var _state2 = _this5.state,
query = _state2.query,
selectedIndex = _state2.selectedIndex;
var suggestions = _this5.filteredSuggestions(query, _this5.props.suggestions);
_this5.setState({
suggestions: suggestions,
selectedIndex: selectedIndex >= suggestions.length ? suggestions.length - 1 : selectedIndex
});
};
this.addTag = function (tag) {

@@ -529,2 +526,3 @@ var _props3 = _this5.props,

var _props4 = _this5.props,
classNames = _props4.classNames,
tags = _props4.tags,

@@ -535,4 +533,4 @@ labelField = _props4.labelField,

allowDragDrop = _props4.allowDragDrop;
var classNames = _this5.state.classNames;
var moveTag = allowDragDrop ? _this5.moveTag : null;

@@ -550,3 +548,3 @@ return tags.map(function (tag, index) {

readOnly: readOnly,
classNames: classNames,
classNames: _extends({}, _constants.DEFAULT_CLASSNAMES, classNames),
allowDragDrop: allowDragDrop

@@ -553,0 +551,0 @@ });

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDnD"),require("ReactDOM"),require("ReactDnDHTML5Backend")):"function"==typeof define&&define.amd?define(["React","ReactDnD","ReactDOM","ReactDnDHTML5Backend"],t):"object"==typeof exports?exports.ReactTags=t(require("React"),require("ReactDnD"),require("ReactDOM"),require("ReactDnDHTML5Backend")):e.ReactTags=t(e.React,e.ReactDnD,e.ReactDOM,e.ReactDnDHTML5Backend)}(window,function(e,t,n,r){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=150)}([function(e,t,n){var r=n(37),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(143),o=n(137);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(0).Symbol;e.exports=r},function(e,t,n){var r=n(4),o=n(141),a=n(140),i="[object Null]",u="[object Undefined]",s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?u:i:s&&s in Object(e)?o(e):a(e)}},function(e,t,n){e.exports=n(112)()},function(e,t,n){var r=n(126);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(35);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(132),o=n(131),a=n(130),i=n(129),u=n(128);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=u,e.exports=s},function(e,t,n){var r=n(2)(Object,"create");e.exports=r},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildRegExpFromDelimiters=function(e){var t=e.map(function(e){var t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)}).join(""),n=(0,r.default)(t);return new RegExp("["+n+"]+")},t.canDrag=function(e){var t=e.moveTag,n=e.readOnly,r=e.allowDragDrop;return void 0!==t&&!n&&r},t.canDrop=function(e){var t=e.readOnly,n=e.allowDragDrop;return!t&&n};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(44))},function(e,t,n){var r=n(22),o=n(14),a=4294967295;function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=a,this.__views__=[]}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(22),o=n(14);function a(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}a.prototype=r(o.prototype),a.prototype.constructor=a,e.exports=a},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(2)(n(0),"Map");e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(51),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],a=o.call(r,t)?n.length:0;a--;){var i=n[a],u=i.func;if(null==u||u==e)return i.name}return t}},function(e,t,n){var r=n(52),o=n(19),a=r?function(e){return r.get(e)}:o;e.exports=a},function(e,t,n){var r=n(18),o=Object.create,a=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=a},function(e,t,n){var r;
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDnD"),require("ReactDOM"),require("ReactDnDHTML5Backend")):"function"==typeof define&&define.amd?define(["React","ReactDnD","ReactDOM","ReactDnDHTML5Backend"],t):"object"==typeof exports?exports.ReactTags=t(require("React"),require("ReactDnD"),require("ReactDOM"),require("ReactDnDHTML5Backend")):e.ReactTags=t(e.React,e.ReactDnD,e.ReactDOM,e.ReactDnDHTML5Backend)}(window,function(e,t,n,r){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=149)}([function(e,t,n){var r=n(38),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(134),o=n(128);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(0).Symbol;e.exports=r},function(e,t,n){var r=n(4),o=n(132),a=n(131),u="[object Null]",i="[object Undefined]",s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?i:u:s&&s in Object(e)?o(e):a(e)}},function(e,t,n){e.exports=n(76)()},function(e,t,n){var r=n(119);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(2)(Object,"create");e.exports=r},function(e,t,n){var r=n(40);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(144),o=n(143),a=n(142),u=n(141),i=n(140);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=u,s.prototype.set=i,e.exports=s},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildRegExpFromDelimiters=function(e){var t=e.map(function(e){var t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)}).join(""),n=(0,r.default)(t);return new RegExp("["+n+"]+")},t.canDrag=function(e){var t=e.moveTag,n=e.readOnly,r=e.allowDragDrop;return void 0!==t&&!n&&r},t.canDrop=function(e){var t=e.readOnly,n=e.allowDragDrop;return!t&&n};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(45))},function(e,t,n){var r=n(22),o=n(14),a=4294967295;function u(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=a,this.__views__=[]}u.prototype=r(o.prototype),u.prototype.constructor=u,e.exports=u},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(22),o=n(14);function a(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}a.prototype=r(o.prototype),a.prototype.constructor=a,e.exports=a},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(2)(n(0),"Map");e.exports=r},function(e,t,n){var r=n(52),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],a=o.call(r,t)?n.length:0;a--;){var u=n[a],i=u.func;if(null==i||i==e)return u.name}return t}},function(e,t,n){var r=n(53),o=n(16),a=r?function(e){return r.get(e)}:o;e.exports=a},function(e,t,n){var r=n(18),o=Object.create,a=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=a},function(e,t,n){var r;
/*!

@@ -12,3 +12,3 @@ Copyright (c) 2017 Jed Watson.

*/
!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var u in r)n.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}void 0!==e&&e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){var r=n(71);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(2)(n(0),"WeakMap");e.exports=r},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){var r=n(85),o=n(84),a=n(83),i=a&&a.isTypedArray,u=i?o(i):r;e.exports=u},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){(function(e){var r=n(0),o=n(87),a="object"==typeof t&&t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,u=i&&i.exports===a?r.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;e.exports=s}).call(this,n(28)(e))},function(e,t,n){var r=n(88),o=n(3),a=Object.prototype,i=a.hasOwnProperty,u=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!u.call(e,"callee")};e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(40),o=n(101),a=n(34),i=1,u=2;e.exports=function(e,t,n,s,c,l){var f=n&i,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var h=l.get(e);if(h&&l.get(t))return h==t;var g=-1,v=!0,y=n&u?new r:void 0;for(l.set(e,t),l.set(t,e);++g<p;){var _=e[g],b=t[g];if(s)var x=f?s(b,_,g,t,e,l):s(_,b,g,e,t,l);if(void 0!==x){if(x)continue;v=!1;break}if(y){if(!o(t,function(e,t){if(!a(y,t)&&(_===e||c(_,e,n,s,l)))return y.push(t)})){v=!1;break}}else if(_!==b&&!c(_,b,n,s,l)){v=!1;break}}return l.delete(e),l.delete(t),v}},function(e,t,n){var r=n(2)(n(0),"Set");e.exports=r},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(142))},function(e,t,n){var r=n(5),o=n(18),a="[object AsyncFunction]",i="[object Function]",u="[object GeneratorFunction]",s="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==i||t==u||t==a||t==s}},function(e,t,n){var r=n(146),o=n(127),a=n(125),i=n(124),u=n(123);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=u,e.exports=s},function(e,t,n){var r=n(39),o=n(122),a=n(121);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.KEYS={ENTER:13,TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27},t.DEFAULT_PLACEHOLDER="Add new tag",t.DEFAULT_LABEL_FIELD="text",t.DEFAULT_CLASSNAMES={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion"},t.INPUT_FIELD_POSITIONS={INLINE:"inline",TOP:"top",BOTTOM:"bottom"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(11)),o=a(n(6));function a(e){return e&&e.__esModule?e:{default:e}}var i=String.fromCharCode(215),u=function(e){var t=e.readOnly,n=e.removeComponent,o=e.onClick,a=e.className;if(t)return r.default.createElement("span",null);if(n){var u=n;return r.default.createElement(u,e)}return r.default.createElement("a",{onClick:o,className:a,onKeyDown:o},i)};u.propTypes={className:o.default.string,onClick:o.default.func.isRequired,readOnly:o.default.bool,removeComponent:o.default.func},t.default=u},function(e,t,n){var r=n(24),o=/[\\^$.*+?()[\]{}|]/g,a=RegExp(o.source);e.exports=function(e){return(e=r(e))&&a.test(e)?e.replace(o,"\\$&"):e}},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dropCollect=t.dragSource=t.tagTarget=t.tagSource=void 0;var r=n(45),o=n(12),a={beginDrag:function(e){return{id:e.tag.index,index:e.index}},canDrag:function(e){return(0,o.canDrag)(e)}},i={hover:function(e,t,n){var o=t.getItem().index,a=e.index;if(o!==a){var i=(0,r.findDOMNode)(n).getBoundingClientRect(),u=(i.right-i.left)/2,s=t.getClientOffset().x-i.left;o<a&&s<u||o>a&&s>u||(e.moveTag(o,a),t.getItem().index=a)}},canDrop:function(e){return(0,o.canDrop)(e)}};t.tagSource=a,t.tagTarget=i,t.dragSource=function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}},t.dropCollect=function(e){return{connectDropTarget:e.dropTarget()}}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(13),o=n(15),a=n(47);e.exports=function(e){if(e instanceof r)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},function(e,t,n){var r=n(13),o=n(15),a=n(14),i=n(1),u=n(3),s=n(48),c=Object.prototype.hasOwnProperty;function l(e){if(u(e)&&!i(e)&&!(e instanceof r)){if(e instanceof o)return e;if(c.call(e,"__wrapped__"))return s(e)}return new o(e)}l.prototype=a.prototype,l.prototype.constructor=l,e.exports=l},function(e,t,n){var r=n(13),o=n(21),a=n(20),i=n(49);e.exports=function(e){var t=a(e),n=i[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var u=o(n);return!!u&&e===u[0]}},function(e,t){e.exports={}},function(e,t,n){var r=n(25),o=r&&new r;e.exports=o},function(e,t){var n=800,r=16,o=Date.now;e.exports=function(e){var t=0,a=0;return function(){var i=o(),u=r-(i-a);if(a=i,u>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(2),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(56),o=n(55),a=n(54),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},function(e,t,n){var r=n(57),o=n(53)(r);e.exports=o},function(e,t){e.exports=function(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)}},function(e,t,n){var r=n(59),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,u=o(a.length-t,0),s=Array(u);++i<u;)s[i]=a[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=a[i];return c[t]=n(s),r(e,this,c)}}},function(e,t,n){var r=n(4),o=n(30),a=n(1),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},function(e,t,n){var r=n(31),o=n(61);e.exports=function e(t,n,a,i,u){var s=-1,c=t.length;for(a||(a=o),u||(u=[]);++s<c;){var l=t[s];n>0&&a(l)?n>1?e(l,n-1,a,i,u):r(u,l):i||(u[u.length]=l)}return u}},function(e,t,n){var r=n(62);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},function(e,t,n){var r=n(63),o=n(60),a=n(58);e.exports=function(e){return a(o(e,void 0,r),e+"")}},function(e,t,n){var r=n(15),o=n(64),a=n(21),i=n(20),u=n(1),s=n(50),c="Expected a function",l=8,f=32,p=128,d=256;e.exports=function(e){return o(function(t){var n=t.length,o=n,h=r.prototype.thru;for(e&&t.reverse();o--;){var g=t[o];if("function"!=typeof g)throw new TypeError(c);if(h&&!v&&"wrapper"==i(g))var v=new r([],!0)}for(o=v?o:n;++o<n;){g=t[o];var y=i(g),_="wrapper"==y?a(g):void 0;v=_&&s(_[0])&&_[1]==(p|l|f|d)&&!_[4].length&&1==_[9]?v[i(_[0])].apply(v,_[3]):1==g.length&&s(g)?v[y]():v.thru(g)}return function(){var e=arguments,r=e[0];if(v&&1==e.length&&u(r))return v.plant(r).value();for(var o=0,a=n?t[o].apply(this,e):r;++o<n;)a=t[o].call(this,a);return a}})}},function(e,t,n){var r=n(65)();e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=n(11),a=d(o),i=n(41),u=d(n(6)),s=d(n(66)),c=d(n(23)),l=n(46),f=n(12),p=d(n(43));function d(e){return e&&e.__esModule?e:{default:e}}var h="tag",g=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,o.Component),r(t,[{key:"render",value:function(){var e=this.props,t=e.tag[e.labelField],n=e.connectDragSource,r=e.isDragging,o=e.connectDropTarget,i=e.readOnly,u=e.tag,s=e.classNames,l=u.className,d=void 0===l?"":l;return n(o(a.default.createElement("span",{className:(0,c.default)("tag-wrapper",s.tag,d),style:{opacity:r?0:1,cursor:(0,f.canDrag)(e)?"move":"auto"},onClick:e.onTagClicked,onKeyDown:e.onTagClicked,onTouchStart:e.onTagClicked},t,a.default.createElement(p.default,{tag:e.tag,className:s.remove,removeComponent:e.removeComponent,onClick:e.onDelete,readOnly:i}))))}}]),t}();g.propTypes={labelField:u.default.string,onDelete:u.default.func.isRequired,tag:u.default.shape({id:u.default.string.isRequired,className:u.default.string}),moveTag:u.default.func,removeComponent:u.default.func,onTagClicked:u.default.func,classNames:u.default.object,readOnly:u.default.bool,connectDragSource:u.default.func.isRequired,isDragging:u.default.bool.isRequired,connectDropTarget:u.default.func.isRequired},g.defaultProps={labelField:"text",readOnly:!1},t.default=(0,s.default)((0,i.DragSource)(h,l.tagSource,l.dragSource),(0,i.DropTarget)(h,l.tagTarget,l.dropCollect))(g)},function(e,t,n){"use strict";n.r(t);var r=function(e,t){return e.length===t.length&&e.every(function(e,n){return function(e,t){return e===t}(e,t[n])})};t.default=function(e,t){var n;void 0===t&&(t=r);var o,a=[],i=!1;return function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];return i&&n===this&&t(u,a)?o:(o=e.apply(this,u),i=!0,n=this,a=u,o)}}},function(e,t,n){var r=n(5),o=n(3),a="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==a}},function(e,t){e.exports=function(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}},function(e,t,n){var r=n(4),o=n(70),a=n(1),i=n(69),u=1/0,s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-u?"-0":n}},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(72)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});e.exports=r},function(e,t,n){var r=n(73),o=n(24),a=/[&<>"']/g,i=RegExp(a.source);e.exports=function(e){return(e=o(e))&&i.test(e)?e.replace(a,r):e}},function(e,t,n){var r=n(2)(n(0),"Promise");e.exports=r},function(e,t,n){var r=n(2)(n(0),"DataView");e.exports=r},function(e,t,n){var r=n(76),o=n(17),a=n(75),i=n(33),u=n(25),s=n(5),c=n(36),l=c(r),f=c(o),p=c(a),d=c(i),h=c(u),g=s;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=g(new o)||a&&"[object Promise]"!=g(a.resolve())||i&&"[object Set]"!=g(new i)||u&&"[object WeakMap]"!=g(new u))&&(g=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=g},function(e,t,n){var r=n(38),o=n(26);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(79)(Object.keys,Object);e.exports=r},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(81),o=n(80),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){(function(e){var r=n(37),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=u}).call(this,n(28)(e))},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(5),o=n(26),a=n(3),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(5),o=n(3),a="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==a}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(89),o=n(30),a=n(1),i=n(29),u=n(86),s=n(27),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),l=!n&&o(e),f=!n&&!l&&i(e),p=!n&&!l&&!f&&s(e),d=n||l||f||p,h=d?r(e.length,String):[],g=h.length;for(var v in e)!t&&!c.call(e,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,g))||h.push(v);return h}},function(e,t,n){var r=n(90),o=n(82),a=n(78);e.exports=function(e){return a(e)?r(e):o(e)}},function(e,t){e.exports=function(){return[]}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},function(e,t,n){var r=n(93),o=n(92),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,u=i?function(e){return null==e?[]:(e=Object(e),r(i(e),function(t){return a.call(e,t)}))}:o;e.exports=u},function(e,t,n){var r=n(31),o=n(1);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},function(e,t,n){var r=n(95),o=n(94),a=n(91);e.exports=function(e){return r(e,a,o)}},function(e,t,n){var r=n(96),o=1,a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,u,s){var c=n&o,l=r(e),f=l.length;if(f!=r(t).length&&!c)return!1;for(var p=f;p--;){var d=l[p];if(!(c?d in t:a.call(t,d)))return!1}var h=s.get(e);if(h&&s.get(t))return h==t;var g=!0;s.set(e,t),s.set(t,e);for(var v=c;++p<f;){var y=e[d=l[p]],_=t[d];if(i)var b=c?i(_,y,d,t,e,s):i(y,_,d,e,t,s);if(!(void 0===b?y===_||u(y,_,n,i,s):b)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var x=e.constructor,m=t.constructor;x!=m&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof m&&m instanceof m)&&(g=!1)}return s.delete(e),s.delete(t),g}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t,n){var r=n(0).Uint8Array;e.exports=r},function(e,t,n){var r=n(4),o=n(99),a=n(35),i=n(32),u=n(98),s=n(16),c=1,l=2,f="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Map]",g="[object Number]",v="[object RegExp]",y="[object Set]",_="[object String]",b="[object Symbol]",x="[object ArrayBuffer]",m="[object DataView]",O=r?r.prototype:void 0,j=O?O.valueOf:void 0;e.exports=function(e,t,n,r,O,S,w){switch(n){case m:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!S(new o(e),new o(t)));case f:case p:case g:return a(+e,+t);case d:return e.name==t.name&&e.message==t.message;case v:case _:return e==t+"";case h:var D=u;case y:var T=r&c;if(D||(D=s),e.size!=t.size&&!T)return!1;var I=w.get(e);if(I)return I==t;r|=l,w.set(e,t);var E=i(D(e),D(t),r,O,S,w);return w.delete(e),E;case b:if(j)return j.call(e)==j.call(t)}return!1}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(9),o=n(17),a=n(39),i=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var u=n.__data__;if(!o||u.length<i-1)return u.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(u)}return n.set(e,t),this.size=n.size,this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t,n){var r=n(9);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t,n){var r=n(9),o=n(106),a=n(105),i=n(104),u=n(103),s=n(102);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=u,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(107),o=n(32),a=n(100),i=n(97),u=n(77),s=n(1),c=n(29),l=n(27),f=1,p="[object Arguments]",d="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,y,_){var b=s(e),x=s(t),m=b?d:u(e),O=x?d:u(t),j=(m=m==p?h:m)==h,S=(O=O==p?h:O)==h,w=m==O;if(w&&c(e)){if(!c(t))return!1;b=!0,j=!1}if(w&&!j)return _||(_=new r),b||l(e)?o(e,t,n,v,y,_):a(e,t,m,n,v,y,_);if(!(n&f)){var D=j&&g.call(e,"__wrapped__"),T=S&&g.call(t,"__wrapped__");if(D||T){var I=D?e.value():e,E=T?t.value():t;return _||(_=new r),y(I,E,n,v,_)}}return!!w&&(_||(_=new r),i(e,t,n,v,y,_))}},function(e,t,n){var r=n(108),o=n(3);e.exports=function e(t,n,a,i,u){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,u))}},function(e,t,n){var r=n(109);e.exports=function(e,t){return r(e,t)}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(111);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var u=new Error("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");throw u.name="Invariant Violation",u}}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,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=n(11),a=c(o),i=c(n(6)),u=c(n(110)),s=c(n(74));function c(e){return e&&e.__esModule?e:{default:e}}function l(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}var f=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return n=r=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.markIt=function(e,t){var n=t.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&");return{__html:e[r.props.labelField].replace(RegExp(n,"gi"),function(e){return"<mark>"+(0,s.default)(e)+"</mark>"})}},r.shouldRenderSuggestions=function(e){var t=r.props,n=t.minQueryLength,o=t.isFocused;return e.length>=n&&o},r.renderSuggestion=function(e,t){var n=r.props.renderSuggestion;return"function"==typeof n?n(e,t):a.default.createElement("span",{dangerouslySetInnerHTML:r.markIt(e,t)})},l(r,n)}return function(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)}(t,o.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return t.isFocused!==e.isFocused||!(0,u.default)(t.suggestions,e.suggestions)||n(e.query)||n(e.query)!==n(t.query)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.selectedIndex,r=t.classNames;if(this.suggestionsContainer&&e.selectedIndex!==n){var o=this.suggestionsContainer.querySelector(r.activeSuggestion);o&&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)}(o,this.suggestionsContainer)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions.map(function(e,n){return a.default.createElement("li",{key:n,onMouseDown:t.handleClick.bind(null,n),onTouchStart:t.handleClick.bind(null,n),onMouseOver:t.handleHover.bind(null,n),className:n===t.selectedIndex?t.classNames.activeSuggestion:""},this.renderSuggestion(e,t.query))}.bind(this)),r=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return 0!==n.length&&r(t.query)?a.default.createElement("div",{ref:function(t){e.suggestionsContainer=t},className:this.props.classNames.suggestions},a.default.createElement("ul",null," ",n," ")):null}}]),t}();f.propTypes={query:i.default.string.isRequired,selectedIndex:i.default.number.isRequired,suggestions:i.default.array.isRequired,handleClick:i.default.func.isRequired,handleHover:i.default.func.isRequired,minQueryLength:i.default.number,shouldRenderSuggestions:i.default.func,isFocused:i.default.bool.isRequired,classNames:i.default.object,labelField:i.default.string.isRequired,renderSuggestion:i.default.func},f.defaultProps={minQueryLength:2},t.default=f},function(e,t,n){var r=n(33),o=n(19),a=n(16),i=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=i},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},function(e,t,n){var r=n(118),o=n(117),a=n(116);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,o,n)}},function(e,t,n){var r=n(119);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t,n){var r=n(7);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(7);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(7);e.exports=function(e){return r(this,e).get(e)}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(7);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t,n){var r=n(8);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(8);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(8);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(8),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(10),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t,n){var r=n(10),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(10),o="__lodash_hash_undefined__",a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return a.call(t,e)?t[e]:void 0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(0)["__core-js_shared__"];e.exports=r},function(e,t,n){var r=n(138),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(4),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[u]=n:delete e[u]),o}},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){var r=n(38),o=n(139),a=n(18),i=n(36),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?p:u).test(i(e))}},function(e,t,n){var r=n(10);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(144),o=n(136),a=n(135),i=n(134),u=n(133);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=u,e.exports=s},function(e,t,n){var r=n(145),o=n(9),a=n(17);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(40),o=n(120),a=n(115),i=n(34),u=n(114),s=n(16),c=200;e.exports=function(e,t,n){var l=-1,f=o,p=e.length,d=!0,h=[],g=h;if(n)d=!1,f=a;else if(p>=c){var v=t?null:u(e);if(v)return s(v);d=!1,f=i,g=new r}else g=t?[]:h;e:for(;++l<p;){var y=e[l],_=t?t(y):y;if(y=n||0!==y?y:0,d&&_==_){for(var b=g.length;b--;)if(g[b]===_)continue e;t&&g.push(_),h.push(y)}else f(g,_,n)||(g!==h&&g.push(_),h.push(y))}return h}},function(e,t,n){var r=n(147);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t){e.exports=r},function(e,t,n){"use strict";var r=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}}(),o=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},a=n(11),i=_(a),u=n(41),s=_(n(149)),c=_(n(19)),l=_(n(148)),f=_(n(113)),p=_(n(6)),d=_(n(23)),h=_(n(68)),g=_(n(67)),v=n(12),y=n(42);function _(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=(0,h.default)(function(e){return{classNames:o({},y.DEFAULT_CLASSNAMES,e)}}),m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));O.call(n),e.inline||console.warn("[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.");var r=e.suggestions,a=e.classNames;return n.state={suggestions:r,query:"",isFocused:!1,selectedIndex:-1,selectionMode:!1,classNames:o({},y.DEFAULT_CLASSNAMES,a)},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 function(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)}(t,a.Component),r(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.autofocus,n=e.readOnly;t&&!n&&this.resetAndFocusInput()}},{key:"filteredSuggestions",value:function(e,t){var n=this;if(this.props.handleFilterSuggestions)return this.props.handleFilterSuggestions(e,t);var r=t.filter(function(t){return 0===n.getQueryIndex(e,t)}),o=t.filter(function(t){return n.getQueryIndex(e,t)>0});return r.concat(o)}},{key:"resetAndFocusInput",value:function(){this.setState({query:""}),this.textInput&&(this.textInput.value="",this.textInput.focus())}},{key:"handleDelete",value:function(e,t){this.props.handleDelete(e,t),this.props.resetInputOnDelete?this.resetAndFocusInput():this.textInput&&this.textInput.focus(),t.stopPropagation()}},{key:"handleTagClick",value:function(e,t){this.props.handleTagClick&&this.props.handleTagClick(e,t),this.props.resetInputOnDelete?this.resetAndFocusInput():this.textInput&&this.textInput.focus()}},{key:"handleChange",value:function(e){this.props.handleInputChange&&this.props.handleInputChange(e.target.value);var t=e.target.value.trim(),n=this.filteredSuggestions(t,this.props.suggestions),r=this.state.selectedIndex;this.setState({query:t,suggestions:n,selectedIndex:r>=n.length?n.length-1:r})}},{key:"handleFocus",value:function(e){var t=e.target.value;this.props.handleInputFocus&&this.props.handleInputFocus(t),this.setState({isFocused:!0})}},{key:"handleBlur",value:function(e){var t=e.target.value;this.props.handleInputBlur&&(this.props.handleInputBlur(t),this.textInput&&(this.textInput.value="")),this.setState({isFocused:!1})}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.query,r=t.selectedIndex,o=t.suggestions,a=t.selectionMode;if(e.keyCode===y.KEYS.ESCAPE&&(e.preventDefault(),e.stopPropagation(),this.setState({selectedIndex:-1,selectionMode:!1,suggestions:[]})),-1!==this.props.delimiters.indexOf(e.keyCode)&&!e.shiftKey){e.keyCode===y.KEYS.TAB&&""===n||e.preventDefault();var i=a&&-1!==r?o[r]:b({id:n},this.props.labelField,n);""!==i&&this.addTag(i)}e.keyCode===y.KEYS.BACKSPACE&&""===n&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,e),e.keyCode===y.KEYS.UP_ARROW&&(e.preventDefault(),this.setState({selectedIndex:r<=0?o.length-1:r-1,selectionMode:!0})),e.keyCode===y.KEYS.DOWN_ARROW&&(e.preventDefault(),this.setState({selectedIndex:0===o.length?-1:(r+1)%o.length,selectionMode:!0}))}},{key:"handlePaste",value:function(e){var t=this;if(this.props.allowAdditionFromPaste){e.preventDefault();var n=e.clipboardData||window.clipboardData,r=n.getData("text"),o=this.props.maxLength,a=void 0===o?r.length:o,i=Math.min(a,r.length),u=n.getData("text").substr(0,i),s=(0,v.buildRegExpFromDelimiters)(this.props.delimiters),c=u.split(s);(0,l.default)(c).forEach(function(e){return t.addTag(b({id:e},t.props.labelField,e))})}}},{key:"handleSuggestionClick",value:function(e){this.addTag(this.state.suggestions[e])}},{key:"handleSuggestionHover",value:function(e){this.setState({selectedIndex:e,selectionMode:!0})}},{key:"moveTag",value:function(e,t){var n=this.props.tags[e];this.props.handleDrag(n,e,t)}},{key:"render",value:function(){var e=this,t=this.getTagItems(),n=this.state.query.trim(),r=this.state.selectedIndex,o=this.state.suggestions,a=this.props,u=a.placeholder,s=a.name,c=a.id,l=a.maxLength,p=a.inline,h=a.inputFieldPosition,g=p?h:y.INPUT_FIELD_POSITIONS.BOTTOM,v=this.props.readOnly?null:i.default.createElement("div",{className:this.state.classNames.tagInput},i.default.createElement("input",{ref:function(t){e.textInput=t},className:this.state.classNames.tagInputField,type:"text",placeholder:u,"aria-label":u,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,name:s,id:c,maxLength:l,value:this.props.inputValue}),i.default.createElement(f.default,{query:n,suggestions:o,labelField:this.props.labelField,selectedIndex:r,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,isFocused:this.state.isFocused,classNames:this.state.classNames,renderSuggestion:this.props.renderSuggestion}));return i.default.createElement("div",{className:(0,d.default)(this.state.classNames.tags,"react-tags-wrapper")},g===y.INPUT_FIELD_POSITIONS.TOP&&v,i.default.createElement("div",{className:this.state.classNames.selected},t,g===y.INPUT_FIELD_POSITIONS.INLINE&&v),g===y.INPUT_FIELD_POSITIONS.BOTTOM&&v)}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.classNames;return x(t)}}]),t}();m.propTypes={placeholder:p.default.string,labelField:p.default.string,suggestions:p.default.arrayOf(p.default.shape({id:p.default.string.isRequired})),delimiters:p.default.arrayOf(p.default.number),autofocus:p.default.bool,inline:p.default.bool,inputFieldPosition:p.default.oneOf([y.INPUT_FIELD_POSITIONS.INLINE,y.INPUT_FIELD_POSITIONS.TOP,y.INPUT_FIELD_POSITIONS.BOTTOM]),handleDelete:p.default.func,handleAddition:p.default.func,handleDrag:p.default.func,handleFilterSuggestions:p.default.func,handleTagClick:p.default.func,allowDeleteFromEmptyInput:p.default.bool,allowAdditionFromPaste:p.default.bool,allowDragDrop:p.default.bool,resetInputOnDelete:p.default.bool,handleInputChange:p.default.func,handleInputFocus:p.default.func,handleInputBlur:p.default.func,minQueryLength:p.default.number,shouldRenderSuggestions:p.default.func,removeComponent:p.default.func,autocomplete:p.default.oneOfType([p.default.bool,p.default.number]),readOnly:p.default.bool,classNames:p.default.object,name:p.default.string,id:p.default.string,maxLength:p.default.number,inputValue:p.default.string,tags:p.default.arrayOf(p.default.shape({id:p.default.string.isRequired,className:p.default.string})),allowUnique:p.default.bool,renderSuggestion:p.default.func},m.defaultProps={placeholder:y.DEFAULT_PLACEHOLDER,labelField:y.DEFAULT_LABEL_FIELD,suggestions:[],delimiters:[y.KEYS.ENTER,y.KEYS.TAB],autofocus:!0,inline:!0,inputFieldPosition:y.INPUT_FIELD_POSITIONS.INLINE,handleDelete:c.default,handleAddition:c.default,allowDeleteFromEmptyInput:!0,allowAdditionFromPaste:!0,resetInputOnDelete:!0,autocomplete:!1,readOnly:!1,allowUnique:!0,allowDragDrop:!0,tags:[]};var O=function(){var e=this;this.getQueryIndex=function(t,n){return n[e.props.labelField].toLowerCase().indexOf(t.toLowerCase())},this.addTag=function(t){var n=e.props,r=n.tags,o=n.labelField,a=n.allowUnique;if(t.id&&t[o]){var i=r.map(function(e){return e.id.toLowerCase()});if(!(a&&i.indexOf(t.id.toLowerCase())>=0)){if(e.props.autocomplete){var u=e.filteredSuggestions(t[o],e.props.suggestions);(1===e.props.autocomplete&&1===u.length||!0===e.props.autocomplete&&u.length)&&(t=u[0])}e.props.handleAddition(t),e.setState({query:"",selectionMode:!1,selectedIndex:-1}),e.resetAndFocusInput()}}},this.getTagItems=function(){var t=e.props,n=t.tags,r=t.labelField,o=t.removeComponent,a=t.readOnly,u=t.allowDragDrop,s=e.state.classNames,c=u?e.moveTag:null;return n.map(function(t,n){return i.default.createElement(g.default,{key:t.id+"-"+n,index:n,tag:t,labelField:r,onDelete:e.handleDelete.bind(e,n),moveTag:c,removeComponent:o,onTagClicked:e.handleTagClick.bind(e,n),readOnly:a,classNames:s,allowDragDrop:u})})}};e.exports={WithContext:(0,u.DragDropContext)(s.default)(m),WithOutContext:m,KEYS:y.KEYS}}])});
!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var u=o.apply(null,r);u&&e.push(u)}else if("object"===a)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}void 0!==e&&e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){var r=n(71);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(2)(n(0),"WeakMap");e.exports=r},function(e,t,n){var r=n(2)(n(0),"Set");e.exports=r},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){var r=n(97),o=n(96),a=n(95),u=a&&a.isTypedArray,i=u?o(u):r;e.exports=i},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){(function(e){var r=n(0),o=n(99),a="object"==typeof t&&t&&!t.nodeType&&t,u=a&&"object"==typeof e&&e&&!e.nodeType&&e,i=u&&u.exports===a?r.Buffer:void 0,s=(i?i.isBuffer:void 0)||o;e.exports=s}).call(this,n(29)(e))},function(e,t,n){var r=n(100),o=n(3),a=Object.prototype,u=a.hasOwnProperty,i=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&u.call(e,"callee")&&!i.call(e,"callee")};e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(36),o=n(115),a=n(114);function u(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}u.prototype.add=u.prototype.push=o,u.prototype.has=a,e.exports=u},function(e,t,n){var r=n(34),o=n(113),a=n(33),u=1,i=2;e.exports=function(e,t,n,s,c,l){var f=n&u,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var h=l.get(e);if(h&&l.get(t))return h==t;var g=-1,v=!0,y=n&i?new r:void 0;for(l.set(e,t),l.set(t,e);++g<p;){var _=e[g],b=t[g];if(s)var x=f?s(b,_,g,t,e,l):s(_,b,g,e,t,l);if(void 0!==x){if(x)continue;v=!1;break}if(y){if(!o(t,function(e,t){if(!a(y,t)&&(_===e||c(_,e,n,s,l)))return y.push(t)})){v=!1;break}}else if(_!==b&&!c(_,b,n,s,l)){v=!1;break}}return l.delete(e),l.delete(t),v}},function(e,t,n){var r=n(127),o=n(120),a=n(118),u=n(117),i=n(116);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=u,s.prototype.set=i,e.exports=s},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(133))},function(e,t,n){var r=n(5),o=n(18),a="[object AsyncFunction]",u="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==u||t==i||t==a||t==s}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(147);e.exports=function(e,t){return r(e,t)}},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.KEYS={ENTER:13,TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27},t.DEFAULT_PLACEHOLDER="Add new tag",t.DEFAULT_LABEL_FIELD="text",t.DEFAULT_CLASSNAMES={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion"},t.INPUT_FIELD_POSITIONS={INLINE:"inline",TOP:"top",BOTTOM:"bottom"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(11)),o=a(n(6));function a(e){return e&&e.__esModule?e:{default:e}}var u=String.fromCharCode(215),i=function(e){var t=e.readOnly,n=e.removeComponent,o=e.onClick,a=e.className;if(t)return r.default.createElement("span",null);if(n){var i=n;return r.default.createElement(i,e)}return r.default.createElement("a",{onClick:o,className:a,onKeyDown:o},u)};i.propTypes={className:o.default.string,onClick:o.default.func.isRequired,readOnly:o.default.bool,removeComponent:o.default.func},t.default=i},function(e,t,n){var r=n(24),o=/[\\^$.*+?()[\]{}|]/g,a=RegExp(o.source);e.exports=function(e){return(e=r(e))&&a.test(e)?e.replace(o,"\\$&"):e}},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dropCollect=t.dragSource=t.tagTarget=t.tagSource=void 0;var r=n(46),o=n(12),a={beginDrag:function(e){return{id:e.tag.index,index:e.index}},canDrag:function(e){return(0,o.canDrag)(e)}},u={hover:function(e,t,n){var o=t.getItem().index,a=e.index;if(o!==a){var u=(0,r.findDOMNode)(n).getBoundingClientRect(),i=(u.right-u.left)/2,s=t.getClientOffset().x-u.left;o<a&&s<i||o>a&&s>i||(e.moveTag(o,a),t.getItem().index=a)}},canDrop:function(e){return(0,o.canDrop)(e)}};t.tagSource=a,t.tagTarget=u,t.dragSource=function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}},t.dropCollect=function(e){return{connectDropTarget:e.dropTarget()}}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(13),o=n(15),a=n(48);e.exports=function(e){if(e instanceof r)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},function(e,t,n){var r=n(13),o=n(15),a=n(14),u=n(1),i=n(3),s=n(49),c=Object.prototype.hasOwnProperty;function l(e){if(i(e)&&!u(e)&&!(e instanceof r)){if(e instanceof o)return e;if(c.call(e,"__wrapped__"))return s(e)}return new o(e)}l.prototype=a.prototype,l.prototype.constructor=l,e.exports=l},function(e,t,n){var r=n(13),o=n(21),a=n(20),u=n(50);e.exports=function(e){var t=a(e),n=u[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var i=o(n);return!!i&&e===i[0]}},function(e,t){e.exports={}},function(e,t,n){var r=n(25),o=r&&new r;e.exports=o},function(e,t){var n=800,r=16,o=Date.now;e.exports=function(e){var t=0,a=0;return function(){var u=o(),i=r-(u-a);if(a=u,i>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(2),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(57),o=n(56),a=n(55),u=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=u},function(e,t,n){var r=n(58),o=n(54)(r);e.exports=o},function(e,t){e.exports=function(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)}},function(e,t,n){var r=n(60),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,u=-1,i=o(a.length-t,0),s=Array(i);++u<i;)s[u]=a[t+u];u=-1;for(var c=Array(t+1);++u<t;)c[u]=a[u];return c[t]=n(s),r(e,this,c)}}},function(e,t,n){var r=n(4),o=n(31),a=n(1),u=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(u&&e&&e[u])}},function(e,t,n){var r=n(32),o=n(62);e.exports=function e(t,n,a,u,i){var s=-1,c=t.length;for(a||(a=o),i||(i=[]);++s<c;){var l=t[s];n>0&&a(l)?n>1?e(l,n-1,a,u,i):r(i,l):u||(i[i.length]=l)}return i}},function(e,t,n){var r=n(63);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},function(e,t,n){var r=n(64),o=n(61),a=n(59);e.exports=function(e){return a(o(e,void 0,r),e+"")}},function(e,t,n){var r=n(15),o=n(65),a=n(21),u=n(20),i=n(1),s=n(51),c="Expected a function",l=8,f=32,p=128,d=256;e.exports=function(e){return o(function(t){var n=t.length,o=n,h=r.prototype.thru;for(e&&t.reverse();o--;){var g=t[o];if("function"!=typeof g)throw new TypeError(c);if(h&&!v&&"wrapper"==u(g))var v=new r([],!0)}for(o=v?o:n;++o<n;){g=t[o];var y=u(g),_="wrapper"==y?a(g):void 0;v=_&&s(_[0])&&_[1]==(p|l|f|d)&&!_[4].length&&1==_[9]?v[u(_[0])].apply(v,_[3]):1==g.length&&s(g)?v[y]():v.thru(g)}return function(){var e=arguments,r=e[0];if(v&&1==e.length&&i(r))return v.plant(r).value();for(var o=0,a=n?t[o].apply(this,e):r;++o<n;)a=t[o].call(this,a);return a}})}},function(e,t,n){var r=n(66)();e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=n(11),a=d(o),u=n(42),i=d(n(6)),s=d(n(67)),c=d(n(23)),l=n(47),f=n(12),p=d(n(44));function d(e){return e&&e.__esModule?e:{default:e}}var h="tag",g=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,o.Component),r(t,[{key:"render",value:function(){var e=this.props,t=e.tag[e.labelField],n=e.connectDragSource,r=e.isDragging,o=e.connectDropTarget,u=e.readOnly,i=e.tag,s=e.classNames,l=i.className,d=void 0===l?"":l;return n(o(a.default.createElement("span",{className:(0,c.default)("tag-wrapper",s.tag,d),style:{opacity:r?0:1,cursor:(0,f.canDrag)(e)?"move":"auto"},onClick:e.onTagClicked,onKeyDown:e.onTagClicked,onTouchStart:e.onTagClicked},t,a.default.createElement(p.default,{tag:e.tag,className:s.remove,removeComponent:e.removeComponent,onClick:e.onDelete,readOnly:u}))))}}]),t}();g.propTypes={labelField:i.default.string,onDelete:i.default.func.isRequired,tag:i.default.shape({id:i.default.string.isRequired,className:i.default.string}),moveTag:i.default.func,removeComponent:i.default.func,onTagClicked:i.default.func,classNames:i.default.object,readOnly:i.default.bool,connectDragSource:i.default.func.isRequired,isDragging:i.default.bool.isRequired,connectDropTarget:i.default.func.isRequired},g.defaultProps={labelField:"text",readOnly:!1},t.default=(0,s.default)((0,u.DragSource)(h,l.tagSource,l.dragSource),(0,u.DropTarget)(h,l.tagTarget,l.dropCollect))(g)},function(e,t,n){var r=n(5),o=n(3),a="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==a}},function(e,t){e.exports=function(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}},function(e,t,n){var r=n(4),o=n(70),a=n(1),u=n(69),i=1/0,s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(u(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-i?"-0":n}},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(72)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});e.exports=r},function(e,t,n){var r=n(73),o=n(24),a=/[&<>"']/g,u=RegExp(a.source);e.exports=function(e){return(e=o(e))&&u.test(e)?e.replace(a,r):e}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(75);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,u){if(u!==r){var i=new Error("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");throw i.name="Invariant Violation",i}}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,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=n(11),a=c(o),u=c(n(6)),i=c(n(41)),s=c(n(74));function c(e){return e&&e.__esModule?e:{default:e}}function l(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}var f=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,u=Array(o),i=0;i<o;i++)u[i]=arguments[i];return n=r=l(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[r.props.labelField].replace(RegExp(n,"gi"),function(e){return"<mark>"+(0,s.default)(e)+"</mark>"})}},r.shouldRenderSuggestions=function(e){var t=r.props,n=t.minQueryLength,o=t.isFocused;return e.length>=n&&o},r.renderSuggestion=function(e,t){var n=r.props.renderSuggestion;return"function"==typeof n?n(e,t):a.default.createElement("span",{dangerouslySetInnerHTML:r.markIt(e,t)})},l(r,n)}return function(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)}(t,o.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return t.isFocused!==e.isFocused||!(0,i.default)(t.suggestions,e.suggestions)||n(e.query)||n(e.query)!==n(t.query)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.selectedIndex,r=t.classNames;if(this.suggestionsContainer&&e.selectedIndex!==n){var o=this.suggestionsContainer.querySelector(r.activeSuggestion);o&&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)}(o,this.suggestionsContainer)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions.map(function(e,n){return a.default.createElement("li",{key:n,onMouseDown:t.handleClick.bind(null,n),onTouchStart:t.handleClick.bind(null,n),onMouseOver:t.handleHover.bind(null,n),className:n===t.selectedIndex?t.classNames.activeSuggestion:""},this.renderSuggestion(e,t.query))}.bind(this)),r=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return 0!==n.length&&r(t.query)?a.default.createElement("div",{ref:function(t){e.suggestionsContainer=t},className:this.props.classNames.suggestions},a.default.createElement("ul",null," ",n," ")):null}}]),t}();f.propTypes={query:u.default.string.isRequired,selectedIndex:u.default.number.isRequired,suggestions:u.default.array.isRequired,handleClick:u.default.func.isRequired,handleHover:u.default.func.isRequired,minQueryLength:u.default.number,shouldRenderSuggestions:u.default.func,isFocused:u.default.bool.isRequired,classNames:u.default.object,labelField:u.default.string.isRequired,renderSuggestion:u.default.func},f.defaultProps={minQueryLength:2},t.default=f},function(e,t,n){var r=n(26),o=n(16),a=n(17),u=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=u},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},function(e,t,n){var r=n(82),o=n(81),a=n(80);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,o,n)}},function(e,t,n){var r=n(83);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(34),o=n(84),a=n(79),u=n(33),i=n(78),s=n(17),c=200;e.exports=function(e,t,n){var l=-1,f=o,p=e.length,d=!0,h=[],g=h;if(n)d=!1,f=a;else if(p>=c){var v=t?null:i(e);if(v)return s(v);d=!1,f=u,g=new r}else g=t?[]:h;e:for(;++l<p;){var y=e[l],_=t?t(y):y;if(y=n||0!==y?y:0,d&&_==_){for(var b=g.length;b--;)if(g[b]===_)continue e;t&&g.push(_),h.push(y)}else f(g,_,n)||(g!==h&&g.push(_),h.push(y))}return h}},function(e,t,n){var r=n(85);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t,n){var r=n(2)(n(0),"Promise");e.exports=r},function(e,t,n){var r=n(2)(n(0),"DataView");e.exports=r},function(e,t,n){var r=n(88),o=n(19),a=n(87),u=n(26),i=n(25),s=n(5),c=n(37),l=c(r),f=c(o),p=c(a),d=c(u),h=c(i),g=s;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=g(new o)||a&&"[object Promise]"!=g(a.resolve())||u&&"[object Set]"!=g(new u)||i&&"[object WeakMap]"!=g(new i))&&(g=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=g},function(e,t,n){var r=n(39),o=n(27);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(91)(Object.keys,Object);e.exports=r},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(93),o=n(92),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){(function(e){var r=n(38),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,u=a&&a.exports===o&&r.process,i=function(){try{var e=a&&a.require&&a.require("util").types;return e||u&&u.binding&&u.binding("util")}catch(e){}}();e.exports=i}).call(this,n(29)(e))},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(5),o=n(27),a=n(3),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!u[r(e)]}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(5),o=n(3),a="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==a}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(101),o=n(31),a=n(1),u=n(30),i=n(98),s=n(28),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),l=!n&&o(e),f=!n&&!l&&u(e),p=!n&&!l&&!f&&s(e),d=n||l||f||p,h=d?r(e.length,String):[],g=h.length;for(var v in e)!t&&!c.call(e,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||i(v,g))||h.push(v);return h}},function(e,t,n){var r=n(102),o=n(94),a=n(90);e.exports=function(e){return a(e)?r(e):o(e)}},function(e,t){e.exports=function(){return[]}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var u=e[n];t(u,n,e)&&(a[o++]=u)}return a}},function(e,t,n){var r=n(105),o=n(104),a=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols,i=u?function(e){return null==e?[]:(e=Object(e),r(u(e),function(t){return a.call(e,t)}))}:o;e.exports=i},function(e,t,n){var r=n(32),o=n(1);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},function(e,t,n){var r=n(107),o=n(106),a=n(103);e.exports=function(e){return r(e,a,o)}},function(e,t,n){var r=n(108),o=1,a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,u,i,s){var c=n&o,l=r(e),f=l.length;if(f!=r(t).length&&!c)return!1;for(var p=f;p--;){var d=l[p];if(!(c?d in t:a.call(t,d)))return!1}var h=s.get(e);if(h&&s.get(t))return h==t;var g=!0;s.set(e,t),s.set(t,e);for(var v=c;++p<f;){var y=e[d=l[p]],_=t[d];if(u)var b=c?u(_,y,d,t,e,s):u(y,_,d,e,t,s);if(!(void 0===b?y===_||i(y,_,n,u,s):b)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var x=e.constructor,m=t.constructor;x!=m&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof m&&m instanceof m)&&(g=!1)}return s.delete(e),s.delete(t),g}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t,n){var r=n(0).Uint8Array;e.exports=r},function(e,t,n){var r=n(4),o=n(111),a=n(40),u=n(35),i=n(110),s=n(17),c=1,l=2,f="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Map]",g="[object Number]",v="[object RegExp]",y="[object Set]",_="[object String]",b="[object Symbol]",x="[object ArrayBuffer]",m="[object DataView]",O=r?r.prototype:void 0,j=O?O.valueOf:void 0;e.exports=function(e,t,n,r,O,S,w){switch(n){case m:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!S(new o(e),new o(t)));case f:case p:case g:return a(+e,+t);case d:return e.name==t.name&&e.message==t.message;case v:case _:return e==t+"";case h:var D=i;case y:var T=r&c;if(D||(D=s),e.size!=t.size&&!T)return!1;var I=w.get(e);if(I)return I==t;r|=l,w.set(e,t);var E=u(D(e),D(t),r,O,S,w);return w.delete(e),E;case b:if(j)return j.call(e)==j.call(t)}return!1}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t,n){var r=n(7);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(7);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(7);e.exports=function(e){return r(this,e).get(e)}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(7);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t,n){var r=n(8),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t,n){var r=n(8),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(8),o="__lodash_hash_undefined__",a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return a.call(t,e)?t[e]:void 0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(125),o=n(124),a=n(123),u=n(122),i=n(121);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=u,s.prototype.set=i,e.exports=s},function(e,t,n){var r=n(126),o=n(10),a=n(19);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(0)["__core-js_shared__"];e.exports=r},function(e,t,n){var r=n(129),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(4),o=Object.prototype,a=o.hasOwnProperty,u=o.toString,i=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,i),n=e[i];try{e[i]=void 0;var r=!0}catch(e){}var o=u.call(e);return r&&(t?e[i]=n:delete e[i]),o}},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){var r=n(39),o=n(130),a=n(18),u=n(37),i=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?p:i).test(u(e))}},function(e,t,n){var r=n(10),o=n(19),a=n(36),u=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<u-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t,n){var r=n(10);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t,n){var r=n(9);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(9);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(9);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(9),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(10),o=n(139),a=n(138),u=n(137),i=n(136),s=n(135);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=u,c.prototype.has=i,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(145),o=n(35),a=n(112),u=n(109),i=n(89),s=n(1),c=n(30),l=n(28),f=1,p="[object Arguments]",d="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,y,_){var b=s(e),x=s(t),m=b?d:i(e),O=x?d:i(t),j=(m=m==p?h:m)==h,S=(O=O==p?h:O)==h,w=m==O;if(w&&c(e)){if(!c(t))return!1;b=!0,j=!1}if(w&&!j)return _||(_=new r),b||l(e)?o(e,t,n,v,y,_):a(e,t,m,n,v,y,_);if(!(n&f)){var D=j&&g.call(e,"__wrapped__"),T=S&&g.call(t,"__wrapped__");if(D||T){var I=D?e.value():e,E=T?t.value():t;return _||(_=new r),y(I,E,n,v,_)}}return!!w&&(_||(_=new r),u(e,t,n,v,y,_))}},function(e,t,n){var r=n(146),o=n(3);e.exports=function e(t,n,a,u,i){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,u,e,i))}},function(e,t){e.exports=r},function(e,t,n){"use strict";var r=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},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}}(),a=n(11),u=_(a),i=n(42),s=_(n(148)),c=_(n(41)),l=_(n(16)),f=_(n(86)),p=_(n(77)),d=_(n(6)),h=_(n(23)),g=_(n(68)),v=n(12),y=n(43);function _(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));m.call(n),e.inline||console.warn("[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.");var r=e.suggestions;return n.state={suggestions:r,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 function(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)}(t,a.Component),o(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.autofocus,n=e.readOnly;t&&!n&&this.resetAndFocusInput()}},{key:"componentDidUpdate",value:function(e){(0,c.default)(e.suggestions,this.props.suggestions)||this.updateSuggestions()}},{key:"filteredSuggestions",value:function(e,t){var n=this;if(this.props.handleFilterSuggestions)return this.props.handleFilterSuggestions(e,t);var r=t.filter(function(t){return 0===n.getQueryIndex(e,t)}),o=t.filter(function(t){return n.getQueryIndex(e,t)>0});return r.concat(o)}},{key:"resetAndFocusInput",value:function(){this.setState({query:""}),this.textInput&&(this.textInput.value="",this.textInput.focus())}},{key:"handleDelete",value:function(e,t){this.props.handleDelete(e,t),this.props.resetInputOnDelete?this.resetAndFocusInput():this.textInput&&this.textInput.focus(),t.stopPropagation()}},{key:"handleTagClick",value:function(e,t){this.props.handleTagClick&&this.props.handleTagClick(e,t),this.props.resetInputOnDelete?this.resetAndFocusInput():this.textInput&&this.textInput.focus()}},{key:"handleChange",value:function(e){this.props.handleInputChange&&this.props.handleInputChange(e.target.value);var t=e.target.value.trim();this.setState({query:t},this.updateSuggestions)}},{key:"handleFocus",value:function(e){var t=e.target.value;this.props.handleInputFocus&&this.props.handleInputFocus(t),this.setState({isFocused:!0})}},{key:"handleBlur",value:function(e){var t=e.target.value;this.props.handleInputBlur&&(this.props.handleInputBlur(t),this.textInput&&(this.textInput.value="")),this.setState({isFocused:!1})}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.query,r=t.selectedIndex,o=t.suggestions,a=t.selectionMode;if(e.keyCode===y.KEYS.ESCAPE&&(e.preventDefault(),e.stopPropagation(),this.setState({selectedIndex:-1,selectionMode:!1,suggestions:[]})),-1!==this.props.delimiters.indexOf(e.keyCode)&&!e.shiftKey){e.keyCode===y.KEYS.TAB&&""===n||e.preventDefault();var u=a&&-1!==r?o[r]:b({id:n},this.props.labelField,n);""!==u&&this.addTag(u)}e.keyCode===y.KEYS.BACKSPACE&&""===n&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,e),e.keyCode===y.KEYS.UP_ARROW&&(e.preventDefault(),this.setState({selectedIndex:r<=0?o.length-1:r-1,selectionMode:!0})),e.keyCode===y.KEYS.DOWN_ARROW&&(e.preventDefault(),this.setState({selectedIndex:0===o.length?-1:(r+1)%o.length,selectionMode:!0}))}},{key:"handlePaste",value:function(e){var t=this;if(this.props.allowAdditionFromPaste){e.preventDefault();var n=e.clipboardData||window.clipboardData,r=n.getData("text"),o=this.props.maxLength,a=void 0===o?r.length:o,u=Math.min(a,r.length),i=n.getData("text").substr(0,u),s=(0,v.buildRegExpFromDelimiters)(this.props.delimiters),c=i.split(s);(0,f.default)(c).forEach(function(e){return t.addTag(b({id:e},t.props.labelField,e))})}}},{key:"handleSuggestionClick",value:function(e){this.addTag(this.state.suggestions[e])}},{key:"handleSuggestionHover",value:function(e){this.setState({selectedIndex:e,selectionMode:!0})}},{key:"moveTag",value:function(e,t){var n=this.props.tags[e];this.props.handleDrag(n,e,t)}},{key:"render",value:function(){var e=this,t=this.getTagItems(),n=r({},y.DEFAULT_CLASSNAMES,this.props.classNames),o=this.state.query.trim(),a=this.state.selectedIndex,i=this.state.suggestions,s=this.props,c=s.placeholder,l=s.name,f=s.id,d=s.maxLength,g=s.inline,v=s.inputFieldPosition,_=g?v:y.INPUT_FIELD_POSITIONS.BOTTOM,b=this.props.readOnly?null:u.default.createElement("div",{className:n.tagInput},u.default.createElement("input",{ref:function(t){e.textInput=t},className:n.tagInputField,type:"text",placeholder:c,"aria-label":c,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,name:l,id:f,maxLength:d,value:this.props.inputValue}),u.default.createElement(p.default,{query:o,suggestions:i,labelField:this.props.labelField,selectedIndex:a,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,isFocused:this.state.isFocused,classNames:n,renderSuggestion:this.props.renderSuggestion}));return u.default.createElement("div",{className:(0,h.default)(n.tags,"react-tags-wrapper")},_===y.INPUT_FIELD_POSITIONS.TOP&&b,u.default.createElement("div",{className:n.selected},t,_===y.INPUT_FIELD_POSITIONS.INLINE&&b),_===y.INPUT_FIELD_POSITIONS.BOTTOM&&b)}}]),t}();x.propTypes={placeholder:d.default.string,labelField:d.default.string,suggestions:d.default.arrayOf(d.default.shape({id:d.default.string.isRequired})),delimiters:d.default.arrayOf(d.default.number),autofocus:d.default.bool,inline:d.default.bool,inputFieldPosition:d.default.oneOf([y.INPUT_FIELD_POSITIONS.INLINE,y.INPUT_FIELD_POSITIONS.TOP,y.INPUT_FIELD_POSITIONS.BOTTOM]),handleDelete:d.default.func,handleAddition:d.default.func,handleDrag:d.default.func,handleFilterSuggestions:d.default.func,handleTagClick:d.default.func,allowDeleteFromEmptyInput:d.default.bool,allowAdditionFromPaste:d.default.bool,allowDragDrop:d.default.bool,resetInputOnDelete:d.default.bool,handleInputChange:d.default.func,handleInputFocus:d.default.func,handleInputBlur:d.default.func,minQueryLength:d.default.number,shouldRenderSuggestions:d.default.func,removeComponent:d.default.func,autocomplete:d.default.oneOfType([d.default.bool,d.default.number]),readOnly:d.default.bool,classNames:d.default.object,name:d.default.string,id:d.default.string,maxLength:d.default.number,inputValue:d.default.string,tags:d.default.arrayOf(d.default.shape({id:d.default.string.isRequired,className:d.default.string})),allowUnique:d.default.bool,renderSuggestion:d.default.func},x.defaultProps={placeholder:y.DEFAULT_PLACEHOLDER,labelField:y.DEFAULT_LABEL_FIELD,suggestions:[],delimiters:[y.KEYS.ENTER,y.KEYS.TAB],autofocus:!0,inline:!0,inputFieldPosition:y.INPUT_FIELD_POSITIONS.INLINE,handleDelete:l.default,handleAddition:l.default,allowDeleteFromEmptyInput:!0,allowAdditionFromPaste:!0,resetInputOnDelete:!0,autocomplete:!1,readOnly:!1,allowUnique:!0,allowDragDrop:!0,tags:[]};var m=function(){var e=this;this.getQueryIndex=function(t,n){return n[e.props.labelField].toLowerCase().indexOf(t.toLowerCase())},this.updateSuggestions=function(){var t=e.state,n=t.query,r=t.selectedIndex,o=e.filteredSuggestions(n,e.props.suggestions);e.setState({suggestions:o,selectedIndex:r>=o.length?o.length-1:r})},this.addTag=function(t){var n=e.props,r=n.tags,o=n.labelField,a=n.allowUnique;if(t.id&&t[o]){var u=r.map(function(e){return e.id.toLowerCase()});if(!(a&&u.indexOf(t.id.toLowerCase())>=0)){if(e.props.autocomplete){var i=e.filteredSuggestions(t[o],e.props.suggestions);(1===e.props.autocomplete&&1===i.length||!0===e.props.autocomplete&&i.length)&&(t=i[0])}e.props.handleAddition(t),e.setState({query:"",selectionMode:!1,selectedIndex:-1}),e.resetAndFocusInput()}}},this.getTagItems=function(){var t=e.props,n=t.classNames,o=t.tags,a=t.labelField,i=t.removeComponent,s=t.readOnly,c=t.allowDragDrop,l=c?e.moveTag:null;return o.map(function(t,o){return u.default.createElement(g.default,{key:t.id+"-"+o,index:o,tag:t,labelField:a,onDelete:e.handleDelete.bind(e,o),moveTag:l,removeComponent:i,onTagClicked:e.handleTagClick.bind(e,o),readOnly:s,classNames:r({},y.DEFAULT_CLASSNAMES,n),allowDragDrop:c})})}};e.exports={WithContext:(0,i.DragDropContext)(s.default)(x),WithOutContext:x,KEYS:y.KEYS}}])});
//# sourceMappingURL=ReactTags.min.js.map
{
"name": "react-tag-input",
"version": "6.4.1",
"version": "6.4.2",
"description": "React tags is a fantastically simple tagging component for your React projects",

@@ -42,3 +42,2 @@ "main": "dist-modules/components/ReactTags.js",

"lodash": "~4.17.12",
"memoize-one": "~5.0.1",
"prop-types": "~15.7.0"

@@ -58,7 +57,7 @@ },

"commitizen": "^3.0.1",
"css-loader": "^2.0.0",
"css-loader": "^3.2.1",
"cz-conventional-changelog": "^3.0.0",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.9.1",
"eslint": "^5.15.0",
"eslint": "^6.4.0",
"eslint-plugin-jest": "^22.1.3",

@@ -84,3 +83,3 @@ "eslint-plugin-jsx-a11y": "^6.2.1",

"sinon": "^7.2.7",
"style-loader": "^0.23.1",
"style-loader": "^1.0.1",
"webpack": "^4.14.0",

@@ -87,0 +86,0 @@ "webpack-bundle-analyzer": "^3.3.2",

Sorry, the diff of this file is not supported yet

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